Alpha porting fix.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54 for Wine 20021125.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
40 do
41   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42     eval $as_var=C; export $as_var
43   else
44     $as_unset $as_var
45   fi
46 done
47
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
50   as_expr=expr
51 else
52   as_expr=false
53 fi
54
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56   as_basename=basename
57 else
58   as_basename=false
59 fi
60
61
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65          X"$0" : 'X\(//\)$' \| \
66          X"$0" : 'X\(/\)$' \| \
67          .     : '\(.\)' 2>/dev/null ||
68 echo X/"$0" |
69     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70           /^X\/\(\/\/\)$/{ s//\1/; q; }
71           /^X\/\(\/\).*/{ s//\1/; q; }
72           s/.*/./; q'`
73
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85   echo "#! /bin/sh" >conftest.sh
86   echo  "exit 0"   >>conftest.sh
87   chmod +x conftest.sh
88   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
89     PATH_SEPARATOR=';'
90   else
91     PATH_SEPARATOR=:
92   fi
93   rm -f conftest.sh
94 fi
95
96
97   as_lineno_1=$LINENO
98   as_lineno_2=$LINENO
99   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100   test "x$as_lineno_1" != "x$as_lineno_2" &&
101   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102   # Find who we are.  Look in the path if we contain no path at all
103   # relative or not.
104   case $0 in
105     *[\\/]* ) as_myself=$0 ;;
106     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109   IFS=$as_save_IFS
110   test -z "$as_dir" && as_dir=.
111   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114        ;;
115   esac
116   # We did not find ourselves, most probably we were run as `sh COMMAND'
117   # in which case we are not to be found in the path.
118   if test "x$as_myself" = x; then
119     as_myself=$0
120   fi
121   if test ! -f "$as_myself"; then
122     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123    { (exit 1); exit 1; }; }
124   fi
125   case $CONFIG_SHELL in
126   '')
127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130   IFS=$as_save_IFS
131   test -z "$as_dir" && as_dir=.
132   for as_base in sh bash ksh sh5; do
133          case $as_dir in
134          /*)
135            if ("$as_dir/$as_base" -c '
136   as_lineno_1=$LINENO
137   as_lineno_2=$LINENO
138   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139   test "x$as_lineno_1" != "x$as_lineno_2" &&
140   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143              CONFIG_SHELL=$as_dir/$as_base
144              export CONFIG_SHELL
145              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146            fi;;
147          esac
148        done
149 done
150 ;;
151   esac
152
153   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154   # uniformly replaced by the line number.  The first 'sed' inserts a
155   # line-number line before each line; the second 'sed' does the real
156   # work.  The second script uses 'N' to pair each line-number line
157   # with the numbered line, and appends trailing '-' during
158   # substitution so that $LINENO is not a special case at line end.
159   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
161   sed '=' <$as_myself |
162     sed '
163       N
164       s,$,-,
165       : loop
166       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167       t loop
168       s,-$,,
169       s,^['$as_cr_digits']*\n,,
170     ' >$as_me.lineno &&
171   chmod +x $as_me.lineno ||
172     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173    { (exit 1); exit 1; }; }
174
175   # Don't try to exec as it changes $[0], causing all sort of problems
176   # (the dirname of $[0] is not the place where we might find the
177   # original and so on.  Autoconf is especially sensible to this).
178   . ./$as_me.lineno
179   # Exit status is that of the last command.
180   exit
181 }
182
183
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185   *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T='      ' ;;
187   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
190
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192   as_expr=expr
193 else
194   as_expr=false
195 fi
196
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200   # We could just check for DJGPP; but this test a) works b) is more generic
201   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202   if test -f conf$$.exe; then
203     # Don't use ln at all; we don't have any links
204     as_ln_s='cp -p'
205   else
206     as_ln_s='ln -s'
207   fi
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209   as_ln_s=ln
210 else
211   as_ln_s='cp -p'
212 fi
213 rm -f conf$$ conf$$.exe conf$$.file
214
215 if mkdir -p . 2>/dev/null; then
216   as_mkdir_p=:
217 else
218   as_mkdir_p=false
219 fi
220
221 as_executable_p="test -f"
222
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
225
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
228
229
230 # IFS
231 # We need space, tab and new line, in precisely that order.
232 as_nl='
233 '
234 IFS="   $as_nl"
235
236 # CDPATH.
237 $as_unset CDPATH
238
239
240 # Name of the host.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
244
245 exec 6>&1
246
247 #
248 # Initializations.
249 #
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
252 cross_compiling=no
253 subdirs=
254 MFLAGS=
255 MAKEFLAGS=
256 SHELL=${CONFIG_SHELL-/bin/sh}
257
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete.  It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
262
263 # Identity of this package.
264 PACKAGE_NAME='Wine'
265 PACKAGE_TARNAME='wine'
266 PACKAGE_VERSION='20021125'
267 PACKAGE_STRING='Wine 20021125'
268 PACKAGE_BUGREPORT=''
269
270 ac_unique_file="server/atom.c"
271 # Factoring default headers for most tests.
272 ac_includes_default="\
273 #include <stdio.h>
274 #if HAVE_SYS_TYPES_H
275 # include <sys/types.h>
276 #endif
277 #if HAVE_SYS_STAT_H
278 # include <sys/stat.h>
279 #endif
280 #if STDC_HEADERS
281 # include <stdlib.h>
282 # include <stddef.h>
283 #else
284 # if HAVE_STDLIB_H
285 #  include <stdlib.h>
286 # endif
287 #endif
288 #if HAVE_STRING_H
289 # if !STDC_HEADERS && HAVE_MEMORY_H
290 #  include <memory.h>
291 # endif
292 # include <string.h>
293 #endif
294 #if HAVE_STRINGS_H
295 # include <strings.h>
296 #endif
297 #if HAVE_INTTYPES_H
298 # include <inttypes.h>
299 #else
300 # if HAVE_STDINT_H
301 #  include <stdint.h>
302 # endif
303 #endif
304 #if HAVE_UNISTD_H
305 # include <unistd.h>
306 #endif"
307
308 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 LIBEXT OPTIONS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S LN C2MAN LDCONFIG LINT LINTFLAGS DB2HTML DB2PDF DB2PS JPEGLIB EGREP XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED DLLWRAP ac_ct_DLLWRAP CROSSTEST CROSSCC DLLTOOL LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS'
309 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_PROG_RULES'
310
311 # Initialize some variables set by options.
312 ac_init_help=
313 ac_init_version=false
314 # The variables have the same names as the options, with
315 # dashes changed to underlines.
316 cache_file=/dev/null
317 exec_prefix=NONE
318 no_create=
319 no_recursion=
320 prefix=NONE
321 program_prefix=NONE
322 program_suffix=NONE
323 program_transform_name=s,x,x,
324 silent=
325 site=
326 srcdir=
327 verbose=
328 x_includes=NONE
329 x_libraries=NONE
330
331 # Installation directory options.
332 # These are left unexpanded so users can "make install exec_prefix=/foo"
333 # and all the variables that are supposed to be based on exec_prefix
334 # by default will actually change.
335 # Use braces instead of parens because sh, perl, etc. also accept them.
336 bindir='${exec_prefix}/bin'
337 sbindir='${exec_prefix}/sbin'
338 libexecdir='${exec_prefix}/libexec'
339 datadir='${prefix}/share'
340 sysconfdir='${prefix}/etc'
341 sharedstatedir='${prefix}/com'
342 localstatedir='${prefix}/var'
343 libdir='${exec_prefix}/lib'
344 includedir='${prefix}/include'
345 oldincludedir='/usr/include'
346 infodir='${prefix}/info'
347 mandir='${prefix}/man'
348
349 ac_prev=
350 for ac_option
351 do
352   # If the previous option needs an argument, assign it.
353   if test -n "$ac_prev"; then
354     eval "$ac_prev=\$ac_option"
355     ac_prev=
356     continue
357   fi
358
359   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
360
361   # Accept the important Cygnus configure options, so we can diagnose typos.
362
363   case $ac_option in
364
365   -bindir | --bindir | --bindi | --bind | --bin | --bi)
366     ac_prev=bindir ;;
367   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
368     bindir=$ac_optarg ;;
369
370   -build | --build | --buil | --bui | --bu)
371     ac_prev=build_alias ;;
372   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
373     build_alias=$ac_optarg ;;
374
375   -cache-file | --cache-file | --cache-fil | --cache-fi \
376   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
377     ac_prev=cache_file ;;
378   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
379   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
380     cache_file=$ac_optarg ;;
381
382   --config-cache | -C)
383     cache_file=config.cache ;;
384
385   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
386     ac_prev=datadir ;;
387   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
388   | --da=*)
389     datadir=$ac_optarg ;;
390
391   -disable-* | --disable-*)
392     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
393     # Reject names that are not valid shell variable names.
394     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396    { (exit 1); exit 1; }; }
397     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398     eval "enable_$ac_feature=no" ;;
399
400   -enable-* | --enable-*)
401     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
402     # Reject names that are not valid shell variable names.
403     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405    { (exit 1); exit 1; }; }
406     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407     case $ac_option in
408       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
409       *) ac_optarg=yes ;;
410     esac
411     eval "enable_$ac_feature='$ac_optarg'" ;;
412
413   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
414   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
415   | --exec | --exe | --ex)
416     ac_prev=exec_prefix ;;
417   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
418   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
419   | --exec=* | --exe=* | --ex=*)
420     exec_prefix=$ac_optarg ;;
421
422   -gas | --gas | --ga | --g)
423     # Obsolete; use --with-gas.
424     with_gas=yes ;;
425
426   -help | --help | --hel | --he | -h)
427     ac_init_help=long ;;
428   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
429     ac_init_help=recursive ;;
430   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
431     ac_init_help=short ;;
432
433   -host | --host | --hos | --ho)
434     ac_prev=host_alias ;;
435   -host=* | --host=* | --hos=* | --ho=*)
436     host_alias=$ac_optarg ;;
437
438   -includedir | --includedir | --includedi | --included | --include \
439   | --includ | --inclu | --incl | --inc)
440     ac_prev=includedir ;;
441   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
442   | --includ=* | --inclu=* | --incl=* | --inc=*)
443     includedir=$ac_optarg ;;
444
445   -infodir | --infodir | --infodi | --infod | --info | --inf)
446     ac_prev=infodir ;;
447   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
448     infodir=$ac_optarg ;;
449
450   -libdir | --libdir | --libdi | --libd)
451     ac_prev=libdir ;;
452   -libdir=* | --libdir=* | --libdi=* | --libd=*)
453     libdir=$ac_optarg ;;
454
455   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
456   | --libexe | --libex | --libe)
457     ac_prev=libexecdir ;;
458   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
459   | --libexe=* | --libex=* | --libe=*)
460     libexecdir=$ac_optarg ;;
461
462   -localstatedir | --localstatedir | --localstatedi | --localstated \
463   | --localstate | --localstat | --localsta | --localst \
464   | --locals | --local | --loca | --loc | --lo)
465     ac_prev=localstatedir ;;
466   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
467   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
468   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
469     localstatedir=$ac_optarg ;;
470
471   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
472     ac_prev=mandir ;;
473   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
474     mandir=$ac_optarg ;;
475
476   -nfp | --nfp | --nf)
477     # Obsolete; use --without-fp.
478     with_fp=no ;;
479
480   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481   | --no-cr | --no-c | -n)
482     no_create=yes ;;
483
484   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
485   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
486     no_recursion=yes ;;
487
488   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
489   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
490   | --oldin | --oldi | --old | --ol | --o)
491     ac_prev=oldincludedir ;;
492   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
493   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
494   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
495     oldincludedir=$ac_optarg ;;
496
497   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
498     ac_prev=prefix ;;
499   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
500     prefix=$ac_optarg ;;
501
502   -program-prefix | --program-prefix | --program-prefi | --program-pref \
503   | --program-pre | --program-pr | --program-p)
504     ac_prev=program_prefix ;;
505   -program-prefix=* | --program-prefix=* | --program-prefi=* \
506   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
507     program_prefix=$ac_optarg ;;
508
509   -program-suffix | --program-suffix | --program-suffi | --program-suff \
510   | --program-suf | --program-su | --program-s)
511     ac_prev=program_suffix ;;
512   -program-suffix=* | --program-suffix=* | --program-suffi=* \
513   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
514     program_suffix=$ac_optarg ;;
515
516   -program-transform-name | --program-transform-name \
517   | --program-transform-nam | --program-transform-na \
518   | --program-transform-n | --program-transform- \
519   | --program-transform | --program-transfor \
520   | --program-transfo | --program-transf \
521   | --program-trans | --program-tran \
522   | --progr-tra | --program-tr | --program-t)
523     ac_prev=program_transform_name ;;
524   -program-transform-name=* | --program-transform-name=* \
525   | --program-transform-nam=* | --program-transform-na=* \
526   | --program-transform-n=* | --program-transform-=* \
527   | --program-transform=* | --program-transfor=* \
528   | --program-transfo=* | --program-transf=* \
529   | --program-trans=* | --program-tran=* \
530   | --progr-tra=* | --program-tr=* | --program-t=*)
531     program_transform_name=$ac_optarg ;;
532
533   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
534   | -silent | --silent | --silen | --sile | --sil)
535     silent=yes ;;
536
537   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
538     ac_prev=sbindir ;;
539   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
540   | --sbi=* | --sb=*)
541     sbindir=$ac_optarg ;;
542
543   -sharedstatedir | --sharedstatedir | --sharedstatedi \
544   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
545   | --sharedst | --shareds | --shared | --share | --shar \
546   | --sha | --sh)
547     ac_prev=sharedstatedir ;;
548   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
549   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
550   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
551   | --sha=* | --sh=*)
552     sharedstatedir=$ac_optarg ;;
553
554   -site | --site | --sit)
555     ac_prev=site ;;
556   -site=* | --site=* | --sit=*)
557     site=$ac_optarg ;;
558
559   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
560     ac_prev=srcdir ;;
561   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
562     srcdir=$ac_optarg ;;
563
564   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
565   | --syscon | --sysco | --sysc | --sys | --sy)
566     ac_prev=sysconfdir ;;
567   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
568   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
569     sysconfdir=$ac_optarg ;;
570
571   -target | --target | --targe | --targ | --tar | --ta | --t)
572     ac_prev=target_alias ;;
573   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
574     target_alias=$ac_optarg ;;
575
576   -v | -verbose | --verbose | --verbos | --verbo | --verb)
577     verbose=yes ;;
578
579   -version | --version | --versio | --versi | --vers | -V)
580     ac_init_version=: ;;
581
582   -with-* | --with-*)
583     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
584     # Reject names that are not valid shell variable names.
585     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
586       { echo "$as_me: error: invalid package name: $ac_package" >&2
587    { (exit 1); exit 1; }; }
588     ac_package=`echo $ac_package| sed 's/-/_/g'`
589     case $ac_option in
590       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
591       *) ac_optarg=yes ;;
592     esac
593     eval "with_$ac_package='$ac_optarg'" ;;
594
595   -without-* | --without-*)
596     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
597     # Reject names that are not valid shell variable names.
598     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
599       { echo "$as_me: error: invalid package name: $ac_package" >&2
600    { (exit 1); exit 1; }; }
601     ac_package=`echo $ac_package | sed 's/-/_/g'`
602     eval "with_$ac_package=no" ;;
603
604   --x)
605     # Obsolete; use --with-x.
606     with_x=yes ;;
607
608   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
609   | --x-incl | --x-inc | --x-in | --x-i)
610     ac_prev=x_includes ;;
611   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
612   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
613     x_includes=$ac_optarg ;;
614
615   -x-libraries | --x-libraries | --x-librarie | --x-librari \
616   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
617     ac_prev=x_libraries ;;
618   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
619   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
620     x_libraries=$ac_optarg ;;
621
622   -*) { echo "$as_me: error: unrecognized option: $ac_option
623 Try \`$0 --help' for more information." >&2
624    { (exit 1); exit 1; }; }
625     ;;
626
627   *=*)
628     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
629     # Reject names that are not valid shell variable names.
630     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
631       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
632    { (exit 1); exit 1; }; }
633     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
634     eval "$ac_envvar='$ac_optarg'"
635     export $ac_envvar ;;
636
637   *)
638     # FIXME: should be removed in autoconf 3.0.
639     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
640     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
641       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
642     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
643     ;;
644
645   esac
646 done
647
648 if test -n "$ac_prev"; then
649   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
650   { echo "$as_me: error: missing argument to $ac_option" >&2
651    { (exit 1); exit 1; }; }
652 fi
653
654 # Be sure to have absolute paths.
655 for ac_var in exec_prefix prefix
656 do
657   eval ac_val=$`echo $ac_var`
658   case $ac_val in
659     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
660     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661    { (exit 1); exit 1; }; };;
662   esac
663 done
664
665 # Be sure to have absolute paths.
666 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
667               localstatedir libdir includedir oldincludedir infodir mandir
668 do
669   eval ac_val=$`echo $ac_var`
670   case $ac_val in
671     [\\/$]* | ?:[\\/]* ) ;;
672     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
673    { (exit 1); exit 1; }; };;
674   esac
675 done
676
677 # There might be people who depend on the old broken behavior: `$host'
678 # used to hold the argument of --host etc.
679 # FIXME: To remove some day.
680 build=$build_alias
681 host=$host_alias
682 target=$target_alias
683
684 # FIXME: To remove some day.
685 if test "x$host_alias" != x; then
686   if test "x$build_alias" = x; then
687     cross_compiling=maybe
688     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
689     If a cross compiler is detected then cross compile mode will be used." >&2
690   elif test "x$build_alias" != "x$host_alias"; then
691     cross_compiling=yes
692   fi
693 fi
694
695 ac_tool_prefix=
696 test -n "$host_alias" && ac_tool_prefix=$host_alias-
697
698 test "$silent" = yes && exec 6>/dev/null
699
700
701 # Find the source files, if location was not specified.
702 if test -z "$srcdir"; then
703   ac_srcdir_defaulted=yes
704   # Try the directory containing this script, then its parent.
705   ac_confdir=`(dirname "$0") 2>/dev/null ||
706 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
707          X"$0" : 'X\(//\)[^/]' \| \
708          X"$0" : 'X\(//\)$' \| \
709          X"$0" : 'X\(/\)' \| \
710          .     : '\(.\)' 2>/dev/null ||
711 echo X"$0" |
712     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
713           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
714           /^X\(\/\/\)$/{ s//\1/; q; }
715           /^X\(\/\).*/{ s//\1/; q; }
716           s/.*/./; q'`
717   srcdir=$ac_confdir
718   if test ! -r $srcdir/$ac_unique_file; then
719     srcdir=..
720   fi
721 else
722   ac_srcdir_defaulted=no
723 fi
724 if test ! -r $srcdir/$ac_unique_file; then
725   if test "$ac_srcdir_defaulted" = yes; then
726     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
727    { (exit 1); exit 1; }; }
728   else
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
730    { (exit 1); exit 1; }; }
731   fi
732 fi
733 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
734   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
735    { (exit 1); exit 1; }; }
736 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
737 ac_env_build_alias_set=${build_alias+set}
738 ac_env_build_alias_value=$build_alias
739 ac_cv_env_build_alias_set=${build_alias+set}
740 ac_cv_env_build_alias_value=$build_alias
741 ac_env_host_alias_set=${host_alias+set}
742 ac_env_host_alias_value=$host_alias
743 ac_cv_env_host_alias_set=${host_alias+set}
744 ac_cv_env_host_alias_value=$host_alias
745 ac_env_target_alias_set=${target_alias+set}
746 ac_env_target_alias_value=$target_alias
747 ac_cv_env_target_alias_set=${target_alias+set}
748 ac_cv_env_target_alias_value=$target_alias
749 ac_env_CC_set=${CC+set}
750 ac_env_CC_value=$CC
751 ac_cv_env_CC_set=${CC+set}
752 ac_cv_env_CC_value=$CC
753 ac_env_CFLAGS_set=${CFLAGS+set}
754 ac_env_CFLAGS_value=$CFLAGS
755 ac_cv_env_CFLAGS_set=${CFLAGS+set}
756 ac_cv_env_CFLAGS_value=$CFLAGS
757 ac_env_LDFLAGS_set=${LDFLAGS+set}
758 ac_env_LDFLAGS_value=$LDFLAGS
759 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
760 ac_cv_env_LDFLAGS_value=$LDFLAGS
761 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
762 ac_env_CPPFLAGS_value=$CPPFLAGS
763 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
764 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
765 ac_env_CPP_set=${CPP+set}
766 ac_env_CPP_value=$CPP
767 ac_cv_env_CPP_set=${CPP+set}
768 ac_cv_env_CPP_value=$CPP
769
770 #
771 # Report the --help message.
772 #
773 if test "$ac_init_help" = "long"; then
774   # Omit some internal or obsolete options to make the list less imposing.
775   # This message is too long to be a string in the A/UX 3.1 sh.
776   cat <<_ACEOF
777 \`configure' configures Wine 20021125 to adapt to many kinds of systems.
778
779 Usage: $0 [OPTION]... [VAR=VALUE]...
780
781 To assign environment variables (e.g., CC, CFLAGS...), specify them as
782 VAR=VALUE.  See below for descriptions of some of the useful variables.
783
784 Defaults for the options are specified in brackets.
785
786 Configuration:
787   -h, --help              display this help and exit
788       --help=short        display options specific to this package
789       --help=recursive    display the short help of all the included packages
790   -V, --version           display version information and exit
791   -q, --quiet, --silent   do not print \`checking...' messages
792       --cache-file=FILE   cache test results in FILE [disabled]
793   -C, --config-cache      alias for \`--cache-file=config.cache'
794   -n, --no-create         do not create output files
795       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
796
797 _ACEOF
798
799   cat <<_ACEOF
800 Installation directories:
801   --prefix=PREFIX         install architecture-independent files in PREFIX
802                           [$ac_default_prefix]
803   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
804                           [PREFIX]
805
806 By default, \`make install' will install all the files in
807 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
808 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
809 for instance \`--prefix=\$HOME'.
810
811 For better control, use the options below.
812
813 Fine tuning of the installation directories:
814   --bindir=DIR           user executables [EPREFIX/bin]
815   --sbindir=DIR          system admin executables [EPREFIX/sbin]
816   --libexecdir=DIR       program executables [EPREFIX/libexec]
817   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
818   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
819   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
820   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
821   --libdir=DIR           object code libraries [EPREFIX/lib]
822   --includedir=DIR       C header files [PREFIX/include]
823   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
824   --infodir=DIR          info documentation [PREFIX/info]
825   --mandir=DIR           man documentation [PREFIX/man]
826 _ACEOF
827
828   cat <<\_ACEOF
829
830 X features:
831   --x-includes=DIR    X include files are in DIR
832   --x-libraries=DIR   X library files are in DIR
833
834 System types:
835   --build=BUILD     configure for building on BUILD [guessed]
836   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
837 _ACEOF
838 fi
839
840 if test -n "$ac_init_help"; then
841   case $ac_init_help in
842      short | recursive ) echo "Configuration of Wine 20021125:";;
843    esac
844   cat <<\_ACEOF
845
846 Optional Features:
847   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
848   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
849   --disable-win16         do not include Win16 support
850   --disable-debug         compile out all debugging messages
851   --disable-trace         compile out TRACE messages
852
853 Optional Packages:
854   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
855   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
856   --without-opengl        do not use OpenGL
857   --without-curses        do not use curses
858   --with-wine-tools=<dir> use Wine tools from directory <dir>
859   --with-x                use the X Window System
860
861 Some influential environment variables:
862   CC          C compiler command
863   CFLAGS      C compiler flags
864   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
865               nonstandard directory <lib dir>
866   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
867               headers in a nonstandard directory <include dir>
868   CPP         C preprocessor
869
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
872
873 _ACEOF
874 fi
875
876 if test "$ac_init_help" = "recursive"; then
877   # If there are subdirs, report their specific --help.
878   ac_popdir=`pwd`
879   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880     test -d $ac_dir || continue
881     ac_builddir=.
882
883 if test "$ac_dir" != .; then
884   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885   # A "../" for each directory in $ac_dir_suffix.
886   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888   ac_dir_suffix= ac_top_builddir=
889 fi
890
891 case $srcdir in
892   .)  # No --srcdir option.  We are building in place.
893     ac_srcdir=.
894     if test -z "$ac_top_builddir"; then
895        ac_top_srcdir=.
896     else
897        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898     fi ;;
899   [\\/]* | ?:[\\/]* )  # Absolute path.
900     ac_srcdir=$srcdir$ac_dir_suffix;
901     ac_top_srcdir=$srcdir ;;
902   *) # Relative path.
903     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904     ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
906 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
907 # absolute.
908 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
909 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
910 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
911 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
912
913     cd $ac_dir
914     # Check for guested configure; otherwise get Cygnus style configure.
915     if test -f $ac_srcdir/configure.gnu; then
916       echo
917       $SHELL $ac_srcdir/configure.gnu  --help=recursive
918     elif test -f $ac_srcdir/configure; then
919       echo
920       $SHELL $ac_srcdir/configure  --help=recursive
921     elif test -f $ac_srcdir/configure.ac ||
922            test -f $ac_srcdir/configure.in; then
923       echo
924       $ac_configure --help
925     else
926       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
927     fi
928     cd $ac_popdir
929   done
930 fi
931
932 test -n "$ac_init_help" && exit 0
933 if $ac_init_version; then
934   cat <<\_ACEOF
935 Wine configure 20021125
936 generated by GNU Autoconf 2.54
937
938 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
939 Free Software Foundation, Inc.
940 This configure script is free software; the Free Software Foundation
941 gives unlimited permission to copy, distribute and modify it.
942 _ACEOF
943   exit 0
944 fi
945 exec 5>config.log
946 cat >&5 <<_ACEOF
947 This file contains any messages produced by compilers while
948 running configure, to aid debugging if configure makes a mistake.
949
950 It was created by Wine $as_me 20021125, which was
951 generated by GNU Autoconf 2.54.  Invocation command line was
952
953   $ $0 $@
954
955 _ACEOF
956 {
957 cat <<_ASUNAME
958 ## --------- ##
959 ## Platform. ##
960 ## --------- ##
961
962 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
963 uname -m = `(uname -m) 2>/dev/null || echo unknown`
964 uname -r = `(uname -r) 2>/dev/null || echo unknown`
965 uname -s = `(uname -s) 2>/dev/null || echo unknown`
966 uname -v = `(uname -v) 2>/dev/null || echo unknown`
967
968 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
969 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
970
971 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
972 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
973 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
974 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
975 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
976 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
977 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
978
979 _ASUNAME
980
981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
982 for as_dir in $PATH
983 do
984   IFS=$as_save_IFS
985   test -z "$as_dir" && as_dir=.
986   echo "PATH: $as_dir"
987 done
988
989 } >&5
990
991 cat >&5 <<_ACEOF
992
993
994 ## ----------- ##
995 ## Core tests. ##
996 ## ----------- ##
997
998 _ACEOF
999
1000
1001 # Keep a trace of the command line.
1002 # Strip out --no-create and --no-recursion so they do not pile up.
1003 # Also quote any args containing shell meta-characters.
1004 ac_configure_args=
1005 ac_sep=
1006 for ac_arg
1007 do
1008   case $ac_arg in
1009   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010   | --no-cr | --no-c | -n ) continue ;;
1011   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013     continue ;;
1014   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1015     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1016   esac
1017   ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1018   # Get rid of the leading space.
1019   ac_sep=" "
1020 done
1021
1022 # When interrupted or exit'd, cleanup temporary files, and complete
1023 # config.log.  We remove comments because anyway the quotes in there
1024 # would cause problems or look ugly.
1025 # WARNING: Be sure not to use single quotes in there, as some shells,
1026 # such as our DU 5.0 friend, will then `close' the trap.
1027 trap 'exit_status=$?
1028   # Save into config.log some information that might help in debugging.
1029   {
1030     echo
1031
1032     cat <<\_ASBOX
1033 ## ---------------- ##
1034 ## Cache variables. ##
1035 ## ---------------- ##
1036 _ASBOX
1037     echo
1038     # The following way of writing the cache mishandles newlines in values,
1039 {
1040   (set) 2>&1 |
1041     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1042     *ac_space=\ *)
1043       sed -n \
1044         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1045           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1046       ;;
1047     *)
1048       sed -n \
1049         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1050       ;;
1051     esac;
1052 }
1053     echo
1054
1055     cat <<\_ASBOX
1056 ## ----------------- ##
1057 ## Output variables. ##
1058 ## ----------------- ##
1059 _ASBOX
1060     echo
1061     for ac_var in $ac_subst_vars
1062     do
1063       eval ac_val=$`echo $ac_var`
1064       echo "$ac_var='"'"'$ac_val'"'"'"
1065     done | sort
1066     echo
1067
1068     if test -n "$ac_subst_files"; then
1069       cat <<\_ASBOX
1070 ## ------------- ##
1071 ## Output files. ##
1072 ## ------------- ##
1073 _ASBOX
1074       echo
1075       for ac_var in $ac_subst_files
1076       do
1077         eval ac_val=$`echo $ac_var`
1078         echo "$ac_var='"'"'$ac_val'"'"'"
1079       done | sort
1080       echo
1081     fi
1082
1083     if test -s confdefs.h; then
1084       cat <<\_ASBOX
1085 ## ----------- ##
1086 ## confdefs.h. ##
1087 ## ----------- ##
1088 _ASBOX
1089       echo
1090       sed "/^$/d" confdefs.h | sort
1091       echo
1092     fi
1093     test "$ac_signal" != 0 &&
1094       echo "$as_me: caught signal $ac_signal"
1095     echo "$as_me: exit $exit_status"
1096   } >&5
1097   rm -f core core.* *.core &&
1098   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1099     exit $exit_status
1100      ' 0
1101 for ac_signal in 1 2 13 15; do
1102   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1103 done
1104 ac_signal=0
1105
1106 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1107 rm -rf conftest* confdefs.h
1108 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1109 echo >confdefs.h
1110
1111 # Predefined preprocessor variables.
1112
1113 cat >>confdefs.h <<_ACEOF
1114 #define PACKAGE_NAME "$PACKAGE_NAME"
1115 _ACEOF
1116
1117
1118 cat >>confdefs.h <<_ACEOF
1119 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1120 _ACEOF
1121
1122
1123 cat >>confdefs.h <<_ACEOF
1124 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1125 _ACEOF
1126
1127
1128 cat >>confdefs.h <<_ACEOF
1129 #define PACKAGE_STRING "$PACKAGE_STRING"
1130 _ACEOF
1131
1132
1133 cat >>confdefs.h <<_ACEOF
1134 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1135 _ACEOF
1136
1137
1138 # Let the site file select an alternate cache file if it wants to.
1139 # Prefer explicitly selected file to automatically selected ones.
1140 if test -z "$CONFIG_SITE"; then
1141   if test "x$prefix" != xNONE; then
1142     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1143   else
1144     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1145   fi
1146 fi
1147 for ac_site_file in $CONFIG_SITE; do
1148   if test -r "$ac_site_file"; then
1149     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1150 echo "$as_me: loading site script $ac_site_file" >&6;}
1151     sed 's/^/| /' "$ac_site_file" >&5
1152     . "$ac_site_file"
1153   fi
1154 done
1155
1156 if test -r "$cache_file"; then
1157   # Some versions of bash will fail to source /dev/null (special
1158   # files actually), so we avoid doing that.
1159   if test -f "$cache_file"; then
1160     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1161 echo "$as_me: loading cache $cache_file" >&6;}
1162     case $cache_file in
1163       [\\/]* | ?:[\\/]* ) . $cache_file;;
1164       *)                      . ./$cache_file;;
1165     esac
1166   fi
1167 else
1168   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1169 echo "$as_me: creating cache $cache_file" >&6;}
1170   >$cache_file
1171 fi
1172
1173 # Check that the precious variables saved in the cache have kept the same
1174 # value.
1175 ac_cache_corrupted=false
1176 for ac_var in `(set) 2>&1 |
1177                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1178   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1179   eval ac_new_set=\$ac_env_${ac_var}_set
1180   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1181   eval ac_new_val="\$ac_env_${ac_var}_value"
1182   case $ac_old_set,$ac_new_set in
1183     set,)
1184       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1185 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1186       ac_cache_corrupted=: ;;
1187     ,set)
1188       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1189 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1190       ac_cache_corrupted=: ;;
1191     ,);;
1192     *)
1193       if test "x$ac_old_val" != "x$ac_new_val"; then
1194         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1195 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1196         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1197 echo "$as_me:   former value:  $ac_old_val" >&2;}
1198         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1199 echo "$as_me:   current value: $ac_new_val" >&2;}
1200         ac_cache_corrupted=:
1201       fi;;
1202   esac
1203   # Pass precious variables to config.status.
1204   if test "$ac_new_set" = set; then
1205     case $ac_new_val in
1206     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1207       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1208     *) ac_arg=$ac_var=$ac_new_val ;;
1209     esac
1210     case " $ac_configure_args " in
1211       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1212       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1213     esac
1214   fi
1215 done
1216 if $ac_cache_corrupted; then
1217   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1218 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1219   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1220 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1221    { (exit 1); exit 1; }; }
1222 fi
1223
1224 ac_ext=c
1225 ac_cpp='$CPP $CPPFLAGS'
1226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257           ac_config_headers="$ac_config_headers include/config.h"
1258
1259 ac_aux_dir=
1260 for ac_dir in tools $srcdir/tools; do
1261   if test -f $ac_dir/install-sh; then
1262     ac_aux_dir=$ac_dir
1263     ac_install_sh="$ac_aux_dir/install-sh -c"
1264     break
1265   elif test -f $ac_dir/install.sh; then
1266     ac_aux_dir=$ac_dir
1267     ac_install_sh="$ac_aux_dir/install.sh -c"
1268     break
1269   elif test -f $ac_dir/shtool; then
1270     ac_aux_dir=$ac_dir
1271     ac_install_sh="$ac_aux_dir/shtool install -c"
1272     break
1273   fi
1274 done
1275 if test -z "$ac_aux_dir"; then
1276   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1277 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1278    { (exit 1); exit 1; }; }
1279 fi
1280 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1281 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1282 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1283
1284
1285
1286 LIBEXT="so"
1287
1288
1289 # Check whether --enable-win16 or --disable-win16 was given.
1290 if test "${enable_win16+set}" = set; then
1291   enableval="$enable_win16"
1292
1293 fi;
1294 # Check whether --enable-debug or --disable-debug was given.
1295 if test "${enable_debug+set}" = set; then
1296   enableval="$enable_debug"
1297
1298 fi;
1299 # Check whether --enable-trace or --disable-trace was given.
1300 if test "${enable_trace+set}" = set; then
1301   enableval="$enable_trace"
1302
1303 fi;
1304
1305
1306 # Check whether --with-opengl or --without-opengl was given.
1307 if test "${with_opengl+set}" = set; then
1308   withval="$with_opengl"
1309
1310 fi;
1311
1312 # Check whether --with-curses or --without-curses was given.
1313 if test "${with_curses+set}" = set; then
1314   withval="$with_curses"
1315
1316 fi;
1317
1318 # Check whether --with-wine-tools or --without-wine-tools was given.
1319 if test "${with_wine_tools+set}" = set; then
1320   withval="$with_wine_tools"
1321
1322 fi;
1323
1324
1325 WIN16_FILES="\$(WIN16_FILES)"
1326
1327 WIN16_INSTALL="\$(WIN16_INSTALL)"
1328
1329 if test "x$enable_win16" = "xno"
1330 then
1331   WIN16_FILES=""
1332   WIN16_INSTALL=""
1333 fi
1334 if test "x$enable_debug" = "xno"
1335 then
1336
1337 cat >>confdefs.h <<\_ACEOF
1338 #define NO_DEBUG_MSGS 1
1339 _ACEOF
1340
1341 fi
1342 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1343 then
1344
1345 cat >>confdefs.h <<\_ACEOF
1346 #define NO_TRACE_MSGS 1
1347 _ACEOF
1348
1349 fi
1350
1351
1352 # Make sure we can run config.sub.
1353 $ac_config_sub sun4 >/dev/null 2>&1 ||
1354   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1355 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1356    { (exit 1); exit 1; }; }
1357
1358 echo "$as_me:$LINENO: checking build system type" >&5
1359 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1360 if test "${ac_cv_build+set}" = set; then
1361   echo $ECHO_N "(cached) $ECHO_C" >&6
1362 else
1363   ac_cv_build_alias=$build_alias
1364 test -z "$ac_cv_build_alias" &&
1365   ac_cv_build_alias=`$ac_config_guess`
1366 test -z "$ac_cv_build_alias" &&
1367   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1368 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1369    { (exit 1); exit 1; }; }
1370 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1371   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1372 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1373    { (exit 1); exit 1; }; }
1374
1375 fi
1376 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1377 echo "${ECHO_T}$ac_cv_build" >&6
1378 build=$ac_cv_build
1379 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1382
1383
1384 echo "$as_me:$LINENO: checking host system type" >&5
1385 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1386 if test "${ac_cv_host+set}" = set; then
1387   echo $ECHO_N "(cached) $ECHO_C" >&6
1388 else
1389   ac_cv_host_alias=$host_alias
1390 test -z "$ac_cv_host_alias" &&
1391   ac_cv_host_alias=$ac_cv_build_alias
1392 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1393   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1394 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1395    { (exit 1); exit 1; }; }
1396
1397 fi
1398 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1399 echo "${ECHO_T}$ac_cv_host" >&6
1400 host=$ac_cv_host
1401 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1404
1405
1406 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1407 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1408 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1409 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1410   echo $ECHO_N "(cached) $ECHO_C" >&6
1411 else
1412   cat >conftest.make <<\_ACEOF
1413 all:
1414         @echo 'ac_maketemp="${MAKE}"'
1415 _ACEOF
1416 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1417 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1418 if test -n "$ac_maketemp"; then
1419   eval ac_cv_prog_make_${ac_make}_set=yes
1420 else
1421   eval ac_cv_prog_make_${ac_make}_set=no
1422 fi
1423 rm -f conftest.make
1424 fi
1425 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1426   echo "$as_me:$LINENO: result: yes" >&5
1427 echo "${ECHO_T}yes" >&6
1428   SET_MAKE=
1429 else
1430   echo "$as_me:$LINENO: result: no" >&5
1431 echo "${ECHO_T}no" >&6
1432   SET_MAKE="MAKE=${MAKE-make}"
1433 fi
1434
1435 ac_ext=c
1436 ac_cpp='$CPP $CPPFLAGS'
1437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1440 if test -n "$ac_tool_prefix"; then
1441   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1442 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_CC+set}" = set; then
1446   echo $ECHO_N "(cached) $ECHO_C" >&6
1447 else
1448   if test -n "$CC"; then
1449   ac_cv_prog_CC="$CC" # Let the user override the test.
1450 else
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 for as_dir in $PATH
1453 do
1454   IFS=$as_save_IFS
1455   test -z "$as_dir" && as_dir=.
1456   for ac_exec_ext in '' $ac_executable_extensions; do
1457   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460     break 2
1461   fi
1462 done
1463 done
1464
1465 fi
1466 fi
1467 CC=$ac_cv_prog_CC
1468 if test -n "$CC"; then
1469   echo "$as_me:$LINENO: result: $CC" >&5
1470 echo "${ECHO_T}$CC" >&6
1471 else
1472   echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1474 fi
1475
1476 fi
1477 if test -z "$ac_cv_prog_CC"; then
1478   ac_ct_CC=$CC
1479   # Extract the first word of "gcc", so it can be a program name with args.
1480 set dummy gcc; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1484   echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486   if test -n "$ac_ct_CC"; then
1487   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1488 else
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490 for as_dir in $PATH
1491 do
1492   IFS=$as_save_IFS
1493   test -z "$as_dir" && as_dir=.
1494   for ac_exec_ext in '' $ac_executable_extensions; do
1495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496     ac_cv_prog_ac_ct_CC="gcc"
1497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498     break 2
1499   fi
1500 done
1501 done
1502
1503 fi
1504 fi
1505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1506 if test -n "$ac_ct_CC"; then
1507   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1508 echo "${ECHO_T}$ac_ct_CC" >&6
1509 else
1510   echo "$as_me:$LINENO: result: no" >&5
1511 echo "${ECHO_T}no" >&6
1512 fi
1513
1514   CC=$ac_ct_CC
1515 else
1516   CC="$ac_cv_prog_CC"
1517 fi
1518
1519 if test -z "$CC"; then
1520   if test -n "$ac_tool_prefix"; then
1521   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1522 set dummy ${ac_tool_prefix}cc; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_CC+set}" = set; then
1526   echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528   if test -n "$CC"; then
1529   ac_cv_prog_CC="$CC" # Let the user override the test.
1530 else
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 for as_dir in $PATH
1533 do
1534   IFS=$as_save_IFS
1535   test -z "$as_dir" && as_dir=.
1536   for ac_exec_ext in '' $ac_executable_extensions; do
1537   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538     ac_cv_prog_CC="${ac_tool_prefix}cc"
1539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540     break 2
1541   fi
1542 done
1543 done
1544
1545 fi
1546 fi
1547 CC=$ac_cv_prog_CC
1548 if test -n "$CC"; then
1549   echo "$as_me:$LINENO: result: $CC" >&5
1550 echo "${ECHO_T}$CC" >&6
1551 else
1552   echo "$as_me:$LINENO: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1554 fi
1555
1556 fi
1557 if test -z "$ac_cv_prog_CC"; then
1558   ac_ct_CC=$CC
1559   # Extract the first word of "cc", so it can be a program name with args.
1560 set dummy cc; ac_word=$2
1561 echo "$as_me:$LINENO: checking for $ac_word" >&5
1562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1564   echo $ECHO_N "(cached) $ECHO_C" >&6
1565 else
1566   if test -n "$ac_ct_CC"; then
1567   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1568 else
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 for as_dir in $PATH
1571 do
1572   IFS=$as_save_IFS
1573   test -z "$as_dir" && as_dir=.
1574   for ac_exec_ext in '' $ac_executable_extensions; do
1575   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576     ac_cv_prog_ac_ct_CC="cc"
1577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578     break 2
1579   fi
1580 done
1581 done
1582
1583 fi
1584 fi
1585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1586 if test -n "$ac_ct_CC"; then
1587   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1588 echo "${ECHO_T}$ac_ct_CC" >&6
1589 else
1590   echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1592 fi
1593
1594   CC=$ac_ct_CC
1595 else
1596   CC="$ac_cv_prog_CC"
1597 fi
1598
1599 fi
1600 if test -z "$CC"; then
1601   # Extract the first word of "cc", so it can be a program name with args.
1602 set dummy cc; ac_word=$2
1603 echo "$as_me:$LINENO: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_CC+set}" = set; then
1606   echo $ECHO_N "(cached) $ECHO_C" >&6
1607 else
1608   if test -n "$CC"; then
1609   ac_cv_prog_CC="$CC" # Let the user override the test.
1610 else
1611   ac_prog_rejected=no
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 for as_dir in $PATH
1614 do
1615   IFS=$as_save_IFS
1616   test -z "$as_dir" && as_dir=.
1617   for ac_exec_ext in '' $ac_executable_extensions; do
1618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1619     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1620        ac_prog_rejected=yes
1621        continue
1622      fi
1623     ac_cv_prog_CC="cc"
1624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625     break 2
1626   fi
1627 done
1628 done
1629
1630 if test $ac_prog_rejected = yes; then
1631   # We found a bogon in the path, so make sure we never use it.
1632   set dummy $ac_cv_prog_CC
1633   shift
1634   if test $# != 0; then
1635     # We chose a different compiler from the bogus one.
1636     # However, it has the same basename, so the bogon will be chosen
1637     # first if we set CC to just the basename; use the full file name.
1638     shift
1639     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1640   fi
1641 fi
1642 fi
1643 fi
1644 CC=$ac_cv_prog_CC
1645 if test -n "$CC"; then
1646   echo "$as_me:$LINENO: result: $CC" >&5
1647 echo "${ECHO_T}$CC" >&6
1648 else
1649   echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1651 fi
1652
1653 fi
1654 if test -z "$CC"; then
1655   if test -n "$ac_tool_prefix"; then
1656   for ac_prog in cl
1657   do
1658     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1660 echo "$as_me:$LINENO: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_CC+set}" = set; then
1663   echo $ECHO_N "(cached) $ECHO_C" >&6
1664 else
1665   if test -n "$CC"; then
1666   ac_cv_prog_CC="$CC" # Let the user override the test.
1667 else
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 for as_dir in $PATH
1670 do
1671   IFS=$as_save_IFS
1672   test -z "$as_dir" && as_dir=.
1673   for ac_exec_ext in '' $ac_executable_extensions; do
1674   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677     break 2
1678   fi
1679 done
1680 done
1681
1682 fi
1683 fi
1684 CC=$ac_cv_prog_CC
1685 if test -n "$CC"; then
1686   echo "$as_me:$LINENO: result: $CC" >&5
1687 echo "${ECHO_T}$CC" >&6
1688 else
1689   echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1691 fi
1692
1693     test -n "$CC" && break
1694   done
1695 fi
1696 if test -z "$CC"; then
1697   ac_ct_CC=$CC
1698   for ac_prog in cl
1699 do
1700   # Extract the first word of "$ac_prog", so it can be a program name with args.
1701 set dummy $ac_prog; ac_word=$2
1702 echo "$as_me:$LINENO: checking for $ac_word" >&5
1703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1705   echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707   if test -n "$ac_ct_CC"; then
1708   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1709 else
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     ac_cv_prog_ac_ct_CC="$ac_prog"
1718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719     break 2
1720   fi
1721 done
1722 done
1723
1724 fi
1725 fi
1726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1727 if test -n "$ac_ct_CC"; then
1728   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1729 echo "${ECHO_T}$ac_ct_CC" >&6
1730 else
1731   echo "$as_me:$LINENO: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1733 fi
1734
1735   test -n "$ac_ct_CC" && break
1736 done
1737
1738   CC=$ac_ct_CC
1739 fi
1740
1741 fi
1742
1743
1744 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1745 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1746    { (exit 1); exit 1; }; }
1747
1748 # Provide some information about the compiler.
1749 echo "$as_me:$LINENO:" \
1750      "checking for C compiler version" >&5
1751 ac_compiler=`set X $ac_compile; echo $2`
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1753   (eval $ac_compiler --version </dev/null >&5) 2>&5
1754   ac_status=$?
1755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756   (exit $ac_status); }
1757 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1758   (eval $ac_compiler -v </dev/null >&5) 2>&5
1759   ac_status=$?
1760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761   (exit $ac_status); }
1762 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1763   (eval $ac_compiler -V </dev/null >&5) 2>&5
1764   ac_status=$?
1765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1766   (exit $ac_status); }
1767
1768 cat >conftest.$ac_ext <<_ACEOF
1769 #line $LINENO "configure"
1770 #include "confdefs.h"
1771
1772 int
1773 main ()
1774 {
1775
1776   ;
1777   return 0;
1778 }
1779 _ACEOF
1780 ac_clean_files_save=$ac_clean_files
1781 ac_clean_files="$ac_clean_files a.out a.exe"
1782 # Try to create an executable without -o first, disregard a.out.
1783 # It will help us diagnose broken compilers, and finding out an intuition
1784 # of exeext.
1785 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1786 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1787 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1788 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1789   (eval $ac_link_default) 2>&5
1790   ac_status=$?
1791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792   (exit $ac_status); }; then
1793   # Find the output, starting from the most likely.  This scheme is
1794 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1795 # resort.
1796
1797 # Be careful to initialize this variable, since it used to be cached.
1798 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799 ac_cv_exeext=
1800 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1801   test -f "$ac_file" || continue
1802   case $ac_file in
1803     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1804     a.out ) # We found the default executable, but exeext='' is most
1805             # certainly right.
1806             break;;
1807     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1808           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1809           export ac_cv_exeext
1810           break;;
1811     * ) break;;
1812   esac
1813 done
1814 else
1815   echo "$as_me: failed program was:" >&5
1816 cat conftest.$ac_ext >&5
1817 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1818 check \`config.log' for details." >&5
1819 echo "$as_me: error: C compiler cannot create executables
1820 check \`config.log' for details." >&2;}
1821    { (exit 77); exit 77; }; }
1822 fi
1823
1824 ac_exeext=$ac_cv_exeext
1825 echo "$as_me:$LINENO: result: $ac_file" >&5
1826 echo "${ECHO_T}$ac_file" >&6
1827
1828 # Check the compiler produces executables we can run.  If not, either
1829 # the compiler is broken, or we cross compile.
1830 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1831 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1832 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1833 # If not cross compiling, check that we can run a simple program.
1834 if test "$cross_compiling" != yes; then
1835   if { ac_try='./$ac_file'
1836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1837   (eval $ac_try) 2>&5
1838   ac_status=$?
1839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840   (exit $ac_status); }; }; then
1841     cross_compiling=no
1842   else
1843     if test "$cross_compiling" = maybe; then
1844         cross_compiling=yes
1845     else
1846         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1847 If you meant to cross compile, use \`--host'." >&5
1848 echo "$as_me: error: cannot run C compiled programs.
1849 If you meant to cross compile, use \`--host'." >&2;}
1850    { (exit 1); exit 1; }; }
1851     fi
1852   fi
1853 fi
1854 echo "$as_me:$LINENO: result: yes" >&5
1855 echo "${ECHO_T}yes" >&6
1856
1857 rm -f a.out a.exe conftest$ac_cv_exeext
1858 ac_clean_files=$ac_clean_files_save
1859 # Check the compiler produces executables we can run.  If not, either
1860 # the compiler is broken, or we cross compile.
1861 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1862 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1863 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1864 echo "${ECHO_T}$cross_compiling" >&6
1865
1866 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1867 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1869   (eval $ac_link) 2>&5
1870   ac_status=$?
1871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872   (exit $ac_status); }; then
1873   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1874 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1875 # work properly (i.e., refer to `conftest.exe'), while it won't with
1876 # `rm'.
1877 for ac_file in conftest.exe conftest conftest.*; do
1878   test -f "$ac_file" || continue
1879   case $ac_file in
1880     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1881     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1882           export ac_cv_exeext
1883           break;;
1884     * ) break;;
1885   esac
1886 done
1887 else
1888   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1889 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1890    { (exit 1); exit 1; }; }
1891 fi
1892
1893 rm -f conftest$ac_cv_exeext
1894 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1895 echo "${ECHO_T}$ac_cv_exeext" >&6
1896
1897 rm -f conftest.$ac_ext
1898 EXEEXT=$ac_cv_exeext
1899 ac_exeext=$EXEEXT
1900 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1901 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1902 if test "${ac_cv_objext+set}" = set; then
1903   echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905   cat >conftest.$ac_ext <<_ACEOF
1906 #line $LINENO "configure"
1907 #include "confdefs.h"
1908
1909 int
1910 main ()
1911 {
1912
1913   ;
1914   return 0;
1915 }
1916 _ACEOF
1917 rm -f conftest.o conftest.obj
1918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1919   (eval $ac_compile) 2>&5
1920   ac_status=$?
1921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922   (exit $ac_status); }; then
1923   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1924   case $ac_file in
1925     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1926     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1927        break;;
1928   esac
1929 done
1930 else
1931   echo "$as_me: failed program was:" >&5
1932 cat conftest.$ac_ext >&5
1933 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1934 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1935    { (exit 1); exit 1; }; }
1936 fi
1937
1938 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1939 fi
1940 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1941 echo "${ECHO_T}$ac_cv_objext" >&6
1942 OBJEXT=$ac_cv_objext
1943 ac_objext=$OBJEXT
1944 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1945 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1946 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1947   echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949   cat >conftest.$ac_ext <<_ACEOF
1950 #line $LINENO "configure"
1951 #include "confdefs.h"
1952
1953 int
1954 main ()
1955 {
1956 #ifndef __GNUC__
1957        choke me
1958 #endif
1959
1960   ;
1961   return 0;
1962 }
1963 _ACEOF
1964 rm -f conftest.$ac_objext
1965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966   (eval $ac_compile) 2>&5
1967   ac_status=$?
1968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969   (exit $ac_status); } &&
1970          { ac_try='test -s conftest.$ac_objext'
1971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1972   (eval $ac_try) 2>&5
1973   ac_status=$?
1974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975   (exit $ac_status); }; }; then
1976   ac_compiler_gnu=yes
1977 else
1978   echo "$as_me: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1980 ac_compiler_gnu=no
1981 fi
1982 rm -f conftest.$ac_objext conftest.$ac_ext
1983 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1984
1985 fi
1986 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1987 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1988 GCC=`test $ac_compiler_gnu = yes && echo yes`
1989 ac_test_CFLAGS=${CFLAGS+set}
1990 ac_save_CFLAGS=$CFLAGS
1991 CFLAGS="-g"
1992 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1993 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1994 if test "${ac_cv_prog_cc_g+set}" = set; then
1995   echo $ECHO_N "(cached) $ECHO_C" >&6
1996 else
1997   cat >conftest.$ac_ext <<_ACEOF
1998 #line $LINENO "configure"
1999 #include "confdefs.h"
2000
2001 int
2002 main ()
2003 {
2004
2005   ;
2006   return 0;
2007 }
2008 _ACEOF
2009 rm -f conftest.$ac_objext
2010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2011   (eval $ac_compile) 2>&5
2012   ac_status=$?
2013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014   (exit $ac_status); } &&
2015          { ac_try='test -s conftest.$ac_objext'
2016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2017   (eval $ac_try) 2>&5
2018   ac_status=$?
2019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020   (exit $ac_status); }; }; then
2021   ac_cv_prog_cc_g=yes
2022 else
2023   echo "$as_me: failed program was:" >&5
2024 cat conftest.$ac_ext >&5
2025 ac_cv_prog_cc_g=no
2026 fi
2027 rm -f conftest.$ac_objext conftest.$ac_ext
2028 fi
2029 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2030 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2031 if test "$ac_test_CFLAGS" = set; then
2032   CFLAGS=$ac_save_CFLAGS
2033 elif test $ac_cv_prog_cc_g = yes; then
2034   if test "$GCC" = yes; then
2035     CFLAGS="-g -O2"
2036   else
2037     CFLAGS="-g"
2038   fi
2039 else
2040   if test "$GCC" = yes; then
2041     CFLAGS="-O2"
2042   else
2043     CFLAGS=
2044   fi
2045 fi
2046 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2047 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2048 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2049   echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051   ac_cv_prog_cc_stdc=no
2052 ac_save_CC=$CC
2053 cat >conftest.$ac_ext <<_ACEOF
2054 #line $LINENO "configure"
2055 #include "confdefs.h"
2056 #include <stdarg.h>
2057 #include <stdio.h>
2058 #include <sys/types.h>
2059 #include <sys/stat.h>
2060 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2061 struct buf { int x; };
2062 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2063 static char *e (p, i)
2064      char **p;
2065      int i;
2066 {
2067   return p[i];
2068 }
2069 static char *f (char * (*g) (char **, int), char **p, ...)
2070 {
2071   char *s;
2072   va_list v;
2073   va_start (v,p);
2074   s = g (p, va_arg (v,int));
2075   va_end (v);
2076   return s;
2077 }
2078 int test (int i, double x);
2079 struct s1 {int (*f) (int a);};
2080 struct s2 {int (*f) (double a);};
2081 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2082 int argc;
2083 char **argv;
2084 int
2085 main ()
2086 {
2087 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2088   ;
2089   return 0;
2090 }
2091 _ACEOF
2092 # Don't try gcc -ansi; that turns off useful extensions and
2093 # breaks some systems' header files.
2094 # AIX                   -qlanglvl=ansi
2095 # Ultrix and OSF/1      -std1
2096 # HP-UX 10.20 and later -Ae
2097 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2098 # SVR4                  -Xc -D__EXTENSIONS__
2099 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2100 do
2101   CC="$ac_save_CC $ac_arg"
2102   rm -f conftest.$ac_objext
2103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2104   (eval $ac_compile) 2>&5
2105   ac_status=$?
2106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107   (exit $ac_status); } &&
2108          { ac_try='test -s conftest.$ac_objext'
2109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110   (eval $ac_try) 2>&5
2111   ac_status=$?
2112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113   (exit $ac_status); }; }; then
2114   ac_cv_prog_cc_stdc=$ac_arg
2115 break
2116 else
2117   echo "$as_me: failed program was:" >&5
2118 cat conftest.$ac_ext >&5
2119 fi
2120 rm -f conftest.$ac_objext
2121 done
2122 rm -f conftest.$ac_ext conftest.$ac_objext
2123 CC=$ac_save_CC
2124
2125 fi
2126
2127 case "x$ac_cv_prog_cc_stdc" in
2128   x|xno)
2129     echo "$as_me:$LINENO: result: none needed" >&5
2130 echo "${ECHO_T}none needed" >&6 ;;
2131   *)
2132     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2133 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2134     CC="$CC $ac_cv_prog_cc_stdc" ;;
2135 esac
2136
2137 # Some people use a C++ compiler to compile C.  Since we use `exit',
2138 # in C++ we need to declare it.  In case someone uses the same compiler
2139 # for both compiling C and C++ we need to have the C++ compiler decide
2140 # the declaration of exit, since it's the most demanding environment.
2141 cat >conftest.$ac_ext <<_ACEOF
2142 #ifndef __cplusplus
2143   choke me
2144 #endif
2145 _ACEOF
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148   (eval $ac_compile) 2>&5
2149   ac_status=$?
2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151   (exit $ac_status); } &&
2152          { ac_try='test -s conftest.$ac_objext'
2153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154   (eval $ac_try) 2>&5
2155   ac_status=$?
2156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157   (exit $ac_status); }; }; then
2158   for ac_declaration in \
2159    ''\
2160    '#include <stdlib.h>' \
2161    'extern "C" void std::exit (int) throw (); using std::exit;' \
2162    'extern "C" void std::exit (int); using std::exit;' \
2163    'extern "C" void exit (int) throw ();' \
2164    'extern "C" void exit (int);' \
2165    'void exit (int);'
2166 do
2167   cat >conftest.$ac_ext <<_ACEOF
2168 #line $LINENO "configure"
2169 #include "confdefs.h"
2170 #include <stdlib.h>
2171 $ac_declaration
2172 int
2173 main ()
2174 {
2175 exit (42);
2176   ;
2177   return 0;
2178 }
2179 _ACEOF
2180 rm -f conftest.$ac_objext
2181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2182   (eval $ac_compile) 2>&5
2183   ac_status=$?
2184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185   (exit $ac_status); } &&
2186          { ac_try='test -s conftest.$ac_objext'
2187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188   (eval $ac_try) 2>&5
2189   ac_status=$?
2190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191   (exit $ac_status); }; }; then
2192   :
2193 else
2194   echo "$as_me: failed program was:" >&5
2195 cat conftest.$ac_ext >&5
2196 continue
2197 fi
2198 rm -f conftest.$ac_objext conftest.$ac_ext
2199   cat >conftest.$ac_ext <<_ACEOF
2200 #line $LINENO "configure"
2201 #include "confdefs.h"
2202 $ac_declaration
2203 int
2204 main ()
2205 {
2206 exit (42);
2207   ;
2208   return 0;
2209 }
2210 _ACEOF
2211 rm -f conftest.$ac_objext
2212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2213   (eval $ac_compile) 2>&5
2214   ac_status=$?
2215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216   (exit $ac_status); } &&
2217          { ac_try='test -s conftest.$ac_objext'
2218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219   (eval $ac_try) 2>&5
2220   ac_status=$?
2221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222   (exit $ac_status); }; }; then
2223   break
2224 else
2225   echo "$as_me: failed program was:" >&5
2226 cat conftest.$ac_ext >&5
2227 fi
2228 rm -f conftest.$ac_objext conftest.$ac_ext
2229 done
2230 rm -f conftest*
2231 if test -n "$ac_declaration"; then
2232   echo '#ifdef __cplusplus' >>confdefs.h
2233   echo $ac_declaration      >>confdefs.h
2234   echo '#endif'             >>confdefs.h
2235 fi
2236
2237 else
2238   echo "$as_me: failed program was:" >&5
2239 cat conftest.$ac_ext >&5
2240 fi
2241 rm -f conftest.$ac_objext conftest.$ac_ext
2242 ac_ext=c
2243 ac_cpp='$CPP $CPPFLAGS'
2244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2247
2248 ac_ext=c
2249 ac_cpp='$CPP $CPPFLAGS'
2250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2253 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2254 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2255 # On Suns, sometimes $CPP names a directory.
2256 if test -n "$CPP" && test -d "$CPP"; then
2257   CPP=
2258 fi
2259 if test -z "$CPP"; then
2260   if test "${ac_cv_prog_CPP+set}" = set; then
2261   echo $ECHO_N "(cached) $ECHO_C" >&6
2262 else
2263       # Double quotes because CPP needs to be expanded
2264     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2265     do
2266       ac_preproc_ok=false
2267 for ac_c_preproc_warn_flag in '' yes
2268 do
2269   # Use a header file that comes with gcc, so configuring glibc
2270   # with a fresh cross-compiler works.
2271   # On the NeXT, cc -E runs the code through the compiler's parser,
2272   # not just through cpp. "Syntax error" is here to catch this case.
2273   cat >conftest.$ac_ext <<_ACEOF
2274 #line $LINENO "configure"
2275 #include "confdefs.h"
2276 #include <assert.h>
2277                      Syntax error
2278 _ACEOF
2279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2280   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2281   ac_status=$?
2282   grep -v '^ *+' conftest.er1 >conftest.err
2283   rm -f conftest.er1
2284   cat conftest.err >&5
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); } >/dev/null; then
2287   if test -s conftest.err; then
2288     ac_cpp_err=$ac_c_preproc_warn_flag
2289   else
2290     ac_cpp_err=
2291   fi
2292 else
2293   ac_cpp_err=yes
2294 fi
2295 if test -z "$ac_cpp_err"; then
2296   :
2297 else
2298   echo "$as_me: failed program was:" >&5
2299   cat conftest.$ac_ext >&5
2300   # Broken: fails on valid input.
2301 continue
2302 fi
2303 rm -f conftest.err conftest.$ac_ext
2304
2305   # OK, works on sane cases.  Now check whether non-existent headers
2306   # can be detected and how.
2307   cat >conftest.$ac_ext <<_ACEOF
2308 #line $LINENO "configure"
2309 #include "confdefs.h"
2310 #include <ac_nonexistent.h>
2311 _ACEOF
2312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2313   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2314   ac_status=$?
2315   grep -v '^ *+' conftest.er1 >conftest.err
2316   rm -f conftest.er1
2317   cat conftest.err >&5
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); } >/dev/null; then
2320   if test -s conftest.err; then
2321     ac_cpp_err=$ac_c_preproc_warn_flag
2322   else
2323     ac_cpp_err=
2324   fi
2325 else
2326   ac_cpp_err=yes
2327 fi
2328 if test -z "$ac_cpp_err"; then
2329   # Broken: success on invalid input.
2330 continue
2331 else
2332   echo "$as_me: failed program was:" >&5
2333   cat conftest.$ac_ext >&5
2334   # Passes both tests.
2335 ac_preproc_ok=:
2336 break
2337 fi
2338 rm -f conftest.err conftest.$ac_ext
2339
2340 done
2341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2342 rm -f conftest.err conftest.$ac_ext
2343 if $ac_preproc_ok; then
2344   break
2345 fi
2346
2347     done
2348     ac_cv_prog_CPP=$CPP
2349
2350 fi
2351   CPP=$ac_cv_prog_CPP
2352 else
2353   ac_cv_prog_CPP=$CPP
2354 fi
2355 echo "$as_me:$LINENO: result: $CPP" >&5
2356 echo "${ECHO_T}$CPP" >&6
2357 ac_preproc_ok=false
2358 for ac_c_preproc_warn_flag in '' yes
2359 do
2360   # Use a header file that comes with gcc, so configuring glibc
2361   # with a fresh cross-compiler works.
2362   # On the NeXT, cc -E runs the code through the compiler's parser,
2363   # not just through cpp. "Syntax error" is here to catch this case.
2364   cat >conftest.$ac_ext <<_ACEOF
2365 #line $LINENO "configure"
2366 #include "confdefs.h"
2367 #include <assert.h>
2368                      Syntax error
2369 _ACEOF
2370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2371   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2372   ac_status=$?
2373   grep -v '^ *+' conftest.er1 >conftest.err
2374   rm -f conftest.er1
2375   cat conftest.err >&5
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); } >/dev/null; then
2378   if test -s conftest.err; then
2379     ac_cpp_err=$ac_c_preproc_warn_flag
2380   else
2381     ac_cpp_err=
2382   fi
2383 else
2384   ac_cpp_err=yes
2385 fi
2386 if test -z "$ac_cpp_err"; then
2387   :
2388 else
2389   echo "$as_me: failed program was:" >&5
2390   cat conftest.$ac_ext >&5
2391   # Broken: fails on valid input.
2392 continue
2393 fi
2394 rm -f conftest.err conftest.$ac_ext
2395
2396   # OK, works on sane cases.  Now check whether non-existent headers
2397   # can be detected and how.
2398   cat >conftest.$ac_ext <<_ACEOF
2399 #line $LINENO "configure"
2400 #include "confdefs.h"
2401 #include <ac_nonexistent.h>
2402 _ACEOF
2403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2404   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2405   ac_status=$?
2406   grep -v '^ *+' conftest.er1 >conftest.err
2407   rm -f conftest.er1
2408   cat conftest.err >&5
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); } >/dev/null; then
2411   if test -s conftest.err; then
2412     ac_cpp_err=$ac_c_preproc_warn_flag
2413   else
2414     ac_cpp_err=
2415   fi
2416 else
2417   ac_cpp_err=yes
2418 fi
2419 if test -z "$ac_cpp_err"; then
2420   # Broken: success on invalid input.
2421 continue
2422 else
2423   echo "$as_me: failed program was:" >&5
2424   cat conftest.$ac_ext >&5
2425   # Passes both tests.
2426 ac_preproc_ok=:
2427 break
2428 fi
2429 rm -f conftest.err conftest.$ac_ext
2430
2431 done
2432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2433 rm -f conftest.err conftest.$ac_ext
2434 if $ac_preproc_ok; then
2435   :
2436 else
2437   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2438 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2439    { (exit 1); exit 1; }; }
2440 fi
2441
2442 ac_ext=c
2443 ac_cpp='$CPP $CPPFLAGS'
2444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2447
2448
2449 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2450 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2451 if test "${wine_cv_toolsdir+set}" = set; then
2452   echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454   if test -z "$with_wine_tools"; then
2455      if test "$cross_compiling" = "yes"; then
2456        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2457 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2458    { (exit 1); exit 1; }; }
2459      else
2460        wine_cv_toolsdir="\$(TOPOBJDIR)"
2461      fi
2462    elif test -d "$with_wine_tools/tools/winebuild"; then
2463      case $with_wine_tools in
2464        /*) wine_cv_toolsdir="$with_wine_tools" ;;
2465        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2466      esac
2467    else
2468      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2469 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2470    { (exit 1); exit 1; }; }
2471    fi
2472 fi
2473 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2474 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2475 TOOLSDIR=$wine_cv_toolsdir
2476
2477
2478
2479
2480 echo "$as_me:$LINENO: checking for X" >&5
2481 echo $ECHO_N "checking for X... $ECHO_C" >&6
2482
2483
2484 # Check whether --with-x or --without-x was given.
2485 if test "${with_x+set}" = set; then
2486   withval="$with_x"
2487
2488 fi;
2489 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2490 if test "x$with_x" = xno; then
2491   # The user explicitly disabled X.
2492   have_x=disabled
2493 else
2494   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2495     # Both variables are already set.
2496     have_x=yes
2497   else
2498     if test "${ac_cv_have_x+set}" = set; then
2499   echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501   # One or both of the vars are not set, and there is no cached value.
2502 ac_x_includes=no ac_x_libraries=no
2503 rm -fr conftest.dir
2504 if mkdir conftest.dir; then
2505   cd conftest.dir
2506   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2507   cat >Imakefile <<'_ACEOF'
2508 acfindx:
2509         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2510 _ACEOF
2511   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2512     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2513     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2514     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2515     for ac_extension in a so sl; do
2516       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2517          test -f $ac_im_libdir/libX11.$ac_extension; then
2518         ac_im_usrlibdir=$ac_im_libdir; break
2519       fi
2520     done
2521     # Screen out bogus values from the imake configuration.  They are
2522     # bogus both because they are the default anyway, and because
2523     # using them would break gcc on systems where it needs fixed includes.
2524     case $ac_im_incroot in
2525         /usr/include) ;;
2526         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2527     esac
2528     case $ac_im_usrlibdir in
2529         /usr/lib | /lib) ;;
2530         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2531     esac
2532   fi
2533   cd ..
2534   rm -fr conftest.dir
2535 fi
2536
2537 # Standard set of common directories for X headers.
2538 # Check X11 before X11Rn because it is often a symlink to the current release.
2539 ac_x_header_dirs='
2540 /usr/X11/include
2541 /usr/X11R6/include
2542 /usr/X11R5/include
2543 /usr/X11R4/include
2544
2545 /usr/include/X11
2546 /usr/include/X11R6
2547 /usr/include/X11R5
2548 /usr/include/X11R4
2549
2550 /usr/local/X11/include
2551 /usr/local/X11R6/include
2552 /usr/local/X11R5/include
2553 /usr/local/X11R4/include
2554
2555 /usr/local/include/X11
2556 /usr/local/include/X11R6
2557 /usr/local/include/X11R5
2558 /usr/local/include/X11R4
2559
2560 /usr/X386/include
2561 /usr/x386/include
2562 /usr/XFree86/include/X11
2563
2564 /usr/include
2565 /usr/local/include
2566 /usr/unsupported/include
2567 /usr/athena/include
2568 /usr/local/x11r5/include
2569 /usr/lpp/Xamples/include
2570
2571 /usr/openwin/include
2572 /usr/openwin/share/include'
2573
2574 if test "$ac_x_includes" = no; then
2575   # Guess where to find include files, by looking for Intrinsic.h.
2576   # First, try using that file with no special directory specified.
2577   cat >conftest.$ac_ext <<_ACEOF
2578 #line $LINENO "configure"
2579 #include "confdefs.h"
2580 #include <X11/Intrinsic.h>
2581 _ACEOF
2582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2583   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2584   ac_status=$?
2585   grep -v '^ *+' conftest.er1 >conftest.err
2586   rm -f conftest.er1
2587   cat conftest.err >&5
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); } >/dev/null; then
2590   if test -s conftest.err; then
2591     ac_cpp_err=$ac_c_preproc_warn_flag
2592   else
2593     ac_cpp_err=
2594   fi
2595 else
2596   ac_cpp_err=yes
2597 fi
2598 if test -z "$ac_cpp_err"; then
2599   # We can compile using X headers with no special include directory.
2600 ac_x_includes=
2601 else
2602   echo "$as_me: failed program was:" >&5
2603   cat conftest.$ac_ext >&5
2604   for ac_dir in $ac_x_header_dirs; do
2605   if test -r "$ac_dir/X11/Intrinsic.h"; then
2606     ac_x_includes=$ac_dir
2607     break
2608   fi
2609 done
2610 fi
2611 rm -f conftest.err conftest.$ac_ext
2612 fi # $ac_x_includes = no
2613
2614 if test "$ac_x_libraries" = no; then
2615   # Check for the libraries.
2616   # See if we find them without any special options.
2617   # Don't add to $LIBS permanently.
2618   ac_save_LIBS=$LIBS
2619   LIBS="-lXt $LIBS"
2620   cat >conftest.$ac_ext <<_ACEOF
2621 #line $LINENO "configure"
2622 #include "confdefs.h"
2623 #include <X11/Intrinsic.h>
2624 int
2625 main ()
2626 {
2627 XtMalloc (0)
2628   ;
2629   return 0;
2630 }
2631 _ACEOF
2632 rm -f conftest.$ac_objext conftest$ac_exeext
2633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2634   (eval $ac_link) 2>&5
2635   ac_status=$?
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); } &&
2638          { ac_try='test -s conftest$ac_exeext'
2639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640   (eval $ac_try) 2>&5
2641   ac_status=$?
2642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643   (exit $ac_status); }; }; then
2644   LIBS=$ac_save_LIBS
2645 # We can link X programs with no special library path.
2646 ac_x_libraries=
2647 else
2648   echo "$as_me: failed program was:" >&5
2649 cat conftest.$ac_ext >&5
2650 LIBS=$ac_save_LIBS
2651 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2652 do
2653   # Don't even attempt the hair of trying to link an X program!
2654   for ac_extension in a so sl; do
2655     if test -r $ac_dir/libXt.$ac_extension; then
2656       ac_x_libraries=$ac_dir
2657       break 2
2658     fi
2659   done
2660 done
2661 fi
2662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2663 fi # $ac_x_libraries = no
2664
2665 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2666   # Didn't find X anywhere.  Cache the known absence of X.
2667   ac_cv_have_x="have_x=no"
2668 else
2669   # Record where we found X for the cache.
2670   ac_cv_have_x="have_x=yes \
2671                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2672 fi
2673 fi
2674
2675   fi
2676   eval "$ac_cv_have_x"
2677 fi # $with_x != no
2678
2679 if test "$have_x" != yes; then
2680   echo "$as_me:$LINENO: result: $have_x" >&5
2681 echo "${ECHO_T}$have_x" >&6
2682   no_x=yes
2683 else
2684   # If each of the values was on the command line, it overrides each guess.
2685   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2686   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2687   # Update the cache value to reflect the command line values.
2688   ac_cv_have_x="have_x=yes \
2689                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2690   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2691 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2692 fi
2693
2694 if test "$no_x" = yes; then
2695   # Not all programs may use this symbol, but it does not hurt to define it.
2696
2697 cat >>confdefs.h <<\_ACEOF
2698 #define X_DISPLAY_MISSING 1
2699 _ACEOF
2700
2701   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2702 else
2703   if test -n "$x_includes"; then
2704     X_CFLAGS="$X_CFLAGS -I$x_includes"
2705   fi
2706
2707   # It would also be nice to do this for all -L options, not just this one.
2708   if test -n "$x_libraries"; then
2709     X_LIBS="$X_LIBS -L$x_libraries"
2710     # For Solaris; some versions of Sun CC require a space after -R and
2711     # others require no space.  Words are not sufficient . . . .
2712     case `(uname -sr) 2>/dev/null` in
2713     "SunOS 5"*)
2714       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2715 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2716       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2717       cat >conftest.$ac_ext <<_ACEOF
2718 #line $LINENO "configure"
2719 #include "confdefs.h"
2720
2721 int
2722 main ()
2723 {
2724
2725   ;
2726   return 0;
2727 }
2728 _ACEOF
2729 rm -f conftest.$ac_objext conftest$ac_exeext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2731   (eval $ac_link) 2>&5
2732   ac_status=$?
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); } &&
2735          { ac_try='test -s conftest$ac_exeext'
2736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737   (eval $ac_try) 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }; }; then
2741   ac_R_nospace=yes
2742 else
2743   echo "$as_me: failed program was:" >&5
2744 cat conftest.$ac_ext >&5
2745 ac_R_nospace=no
2746 fi
2747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2748       if test $ac_R_nospace = yes; then
2749         echo "$as_me:$LINENO: result: no" >&5
2750 echo "${ECHO_T}no" >&6
2751         X_LIBS="$X_LIBS -R$x_libraries"
2752       else
2753         LIBS="$ac_xsave_LIBS -R $x_libraries"
2754         cat >conftest.$ac_ext <<_ACEOF
2755 #line $LINENO "configure"
2756 #include "confdefs.h"
2757
2758 int
2759 main ()
2760 {
2761
2762   ;
2763   return 0;
2764 }
2765 _ACEOF
2766 rm -f conftest.$ac_objext conftest$ac_exeext
2767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2768   (eval $ac_link) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); } &&
2772          { ac_try='test -s conftest$ac_exeext'
2773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774   (eval $ac_try) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }; }; then
2778   ac_R_space=yes
2779 else
2780   echo "$as_me: failed program was:" >&5
2781 cat conftest.$ac_ext >&5
2782 ac_R_space=no
2783 fi
2784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2785         if test $ac_R_space = yes; then
2786           echo "$as_me:$LINENO: result: yes" >&5
2787 echo "${ECHO_T}yes" >&6
2788           X_LIBS="$X_LIBS -R $x_libraries"
2789         else
2790           echo "$as_me:$LINENO: result: neither works" >&5
2791 echo "${ECHO_T}neither works" >&6
2792         fi
2793       fi
2794       LIBS=$ac_xsave_LIBS
2795     esac
2796   fi
2797
2798   # Check for system-dependent libraries X programs must link with.
2799   # Do this before checking for the system-independent R6 libraries
2800   # (-lICE), since we may need -lsocket or whatever for X linking.
2801
2802   if test "$ISC" = yes; then
2803     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2804   else
2805     # Martyn Johnson says this is needed for Ultrix, if the X
2806     # libraries were built with DECnet support.  And Karl Berry says
2807     # the Alpha needs dnet_stub (dnet does not exist).
2808     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2809     cat >conftest.$ac_ext <<_ACEOF
2810 #line $LINENO "configure"
2811 #include "confdefs.h"
2812
2813 /* Override any gcc2 internal prototype to avoid an error.  */
2814 #ifdef __cplusplus
2815 extern "C"
2816 #endif
2817 /* We use char because int might match the return type of a gcc2
2818    builtin and then its argument prototype would still apply.  */
2819 char XOpenDisplay ();
2820 int
2821 main ()
2822 {
2823 XOpenDisplay ();
2824   ;
2825   return 0;
2826 }
2827 _ACEOF
2828 rm -f conftest.$ac_objext conftest$ac_exeext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2830   (eval $ac_link) 2>&5
2831   ac_status=$?
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); } &&
2834          { ac_try='test -s conftest$ac_exeext'
2835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836   (eval $ac_try) 2>&5
2837   ac_status=$?
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); }; }; then
2840   :
2841 else
2842   echo "$as_me: failed program was:" >&5
2843 cat conftest.$ac_ext >&5
2844 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2845 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2846 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2847   echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849   ac_check_lib_save_LIBS=$LIBS
2850 LIBS="-ldnet  $LIBS"
2851 cat >conftest.$ac_ext <<_ACEOF
2852 #line $LINENO "configure"
2853 #include "confdefs.h"
2854
2855 /* Override any gcc2 internal prototype to avoid an error.  */
2856 #ifdef __cplusplus
2857 extern "C"
2858 #endif
2859 /* We use char because int might match the return type of a gcc2
2860    builtin and then its argument prototype would still apply.  */
2861 char dnet_ntoa ();
2862 int
2863 main ()
2864 {
2865 dnet_ntoa ();
2866   ;
2867   return 0;
2868 }
2869 _ACEOF
2870 rm -f conftest.$ac_objext conftest$ac_exeext
2871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2872   (eval $ac_link) 2>&5
2873   ac_status=$?
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); } &&
2876          { ac_try='test -s conftest$ac_exeext'
2877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878   (eval $ac_try) 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); }; }; then
2882   ac_cv_lib_dnet_dnet_ntoa=yes
2883 else
2884   echo "$as_me: failed program was:" >&5
2885 cat conftest.$ac_ext >&5
2886 ac_cv_lib_dnet_dnet_ntoa=no
2887 fi
2888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2889 LIBS=$ac_check_lib_save_LIBS
2890 fi
2891 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2892 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2893 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2894   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2895 fi
2896
2897     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2898       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2899 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2900 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2901   echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903   ac_check_lib_save_LIBS=$LIBS
2904 LIBS="-ldnet_stub  $LIBS"
2905 cat >conftest.$ac_ext <<_ACEOF
2906 #line $LINENO "configure"
2907 #include "confdefs.h"
2908
2909 /* Override any gcc2 internal prototype to avoid an error.  */
2910 #ifdef __cplusplus
2911 extern "C"
2912 #endif
2913 /* We use char because int might match the return type of a gcc2
2914    builtin and then its argument prototype would still apply.  */
2915 char dnet_ntoa ();
2916 int
2917 main ()
2918 {
2919 dnet_ntoa ();
2920   ;
2921   return 0;
2922 }
2923 _ACEOF
2924 rm -f conftest.$ac_objext conftest$ac_exeext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2926   (eval $ac_link) 2>&5
2927   ac_status=$?
2928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929   (exit $ac_status); } &&
2930          { ac_try='test -s conftest$ac_exeext'
2931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932   (eval $ac_try) 2>&5
2933   ac_status=$?
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); }; }; then
2936   ac_cv_lib_dnet_stub_dnet_ntoa=yes
2937 else
2938   echo "$as_me: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2940 ac_cv_lib_dnet_stub_dnet_ntoa=no
2941 fi
2942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2943 LIBS=$ac_check_lib_save_LIBS
2944 fi
2945 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2946 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2947 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2948   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2949 fi
2950
2951     fi
2952 fi
2953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2954     LIBS="$ac_xsave_LIBS"
2955
2956     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2957     # to get the SysV transport functions.
2958     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2959     # needs -lnsl.
2960     # The nsl library prevents programs from opening the X display
2961     # on Irix 5.2, according to T.E. Dickey.
2962     # The functions gethostbyname, getservbyname, and inet_addr are
2963     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2964     echo "$as_me:$LINENO: checking for gethostbyname" >&5
2965 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2966 if test "${ac_cv_func_gethostbyname+set}" = set; then
2967   echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969   cat >conftest.$ac_ext <<_ACEOF
2970 #line $LINENO "configure"
2971 #include "confdefs.h"
2972 /* System header to define __stub macros and hopefully few prototypes,
2973     which can conflict with char gethostbyname (); below.  */
2974 #include <assert.h>
2975 /* Override any gcc2 internal prototype to avoid an error.  */
2976 #ifdef __cplusplus
2977 extern "C"
2978 #endif
2979 /* We use char because int might match the return type of a gcc2
2980    builtin and then its argument prototype would still apply.  */
2981 char gethostbyname ();
2982 char (*f) ();
2983
2984 int
2985 main ()
2986 {
2987 /* The GNU C library defines this for functions which it implements
2988     to always fail with ENOSYS.  Some functions are actually named
2989     something starting with __ and the normal name is an alias.  */
2990 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2991 choke me
2992 #else
2993 f = gethostbyname;
2994 #endif
2995
2996   ;
2997   return 0;
2998 }
2999 _ACEOF
3000 rm -f conftest.$ac_objext conftest$ac_exeext
3001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3002   (eval $ac_link) 2>&5
3003   ac_status=$?
3004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005   (exit $ac_status); } &&
3006          { ac_try='test -s conftest$ac_exeext'
3007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008   (eval $ac_try) 2>&5
3009   ac_status=$?
3010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011   (exit $ac_status); }; }; then
3012   ac_cv_func_gethostbyname=yes
3013 else
3014   echo "$as_me: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3016 ac_cv_func_gethostbyname=no
3017 fi
3018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3019 fi
3020 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3021 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3022
3023     if test $ac_cv_func_gethostbyname = no; then
3024       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3025 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3026 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3027   echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029   ac_check_lib_save_LIBS=$LIBS
3030 LIBS="-lnsl  $LIBS"
3031 cat >conftest.$ac_ext <<_ACEOF
3032 #line $LINENO "configure"
3033 #include "confdefs.h"
3034
3035 /* Override any gcc2 internal prototype to avoid an error.  */
3036 #ifdef __cplusplus
3037 extern "C"
3038 #endif
3039 /* We use char because int might match the return type of a gcc2
3040    builtin and then its argument prototype would still apply.  */
3041 char gethostbyname ();
3042 int
3043 main ()
3044 {
3045 gethostbyname ();
3046   ;
3047   return 0;
3048 }
3049 _ACEOF
3050 rm -f conftest.$ac_objext conftest$ac_exeext
3051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3052   (eval $ac_link) 2>&5
3053   ac_status=$?
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); } &&
3056          { ac_try='test -s conftest$ac_exeext'
3057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058   (eval $ac_try) 2>&5
3059   ac_status=$?
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); }; }; then
3062   ac_cv_lib_nsl_gethostbyname=yes
3063 else
3064   echo "$as_me: failed program was:" >&5
3065 cat conftest.$ac_ext >&5
3066 ac_cv_lib_nsl_gethostbyname=no
3067 fi
3068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3069 LIBS=$ac_check_lib_save_LIBS
3070 fi
3071 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3072 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3073 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3074   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3075 fi
3076
3077       if test $ac_cv_lib_nsl_gethostbyname = no; then
3078         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3079 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3080 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3081   echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083   ac_check_lib_save_LIBS=$LIBS
3084 LIBS="-lbsd  $LIBS"
3085 cat >conftest.$ac_ext <<_ACEOF
3086 #line $LINENO "configure"
3087 #include "confdefs.h"
3088
3089 /* Override any gcc2 internal prototype to avoid an error.  */
3090 #ifdef __cplusplus
3091 extern "C"
3092 #endif
3093 /* We use char because int might match the return type of a gcc2
3094    builtin and then its argument prototype would still apply.  */
3095 char gethostbyname ();
3096 int
3097 main ()
3098 {
3099 gethostbyname ();
3100   ;
3101   return 0;
3102 }
3103 _ACEOF
3104 rm -f conftest.$ac_objext conftest$ac_exeext
3105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3106   (eval $ac_link) 2>&5
3107   ac_status=$?
3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); } &&
3110          { ac_try='test -s conftest$ac_exeext'
3111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3112   (eval $ac_try) 2>&5
3113   ac_status=$?
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); }; }; then
3116   ac_cv_lib_bsd_gethostbyname=yes
3117 else
3118   echo "$as_me: failed program was:" >&5
3119 cat conftest.$ac_ext >&5
3120 ac_cv_lib_bsd_gethostbyname=no
3121 fi
3122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3123 LIBS=$ac_check_lib_save_LIBS
3124 fi
3125 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3126 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3127 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3128   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3129 fi
3130
3131       fi
3132     fi
3133
3134     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3135     # socket/setsockopt and other routines are undefined under SCO ODT
3136     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3137     # on later versions), says Simon Leinen: it contains gethostby*
3138     # variants that don't use the name server (or something).  -lsocket
3139     # must be given before -lnsl if both are needed.  We assume that
3140     # if connect needs -lnsl, so does gethostbyname.
3141     echo "$as_me:$LINENO: checking for connect" >&5
3142 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3143 if test "${ac_cv_func_connect+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146   cat >conftest.$ac_ext <<_ACEOF
3147 #line $LINENO "configure"
3148 #include "confdefs.h"
3149 /* System header to define __stub macros and hopefully few prototypes,
3150     which can conflict with char connect (); below.  */
3151 #include <assert.h>
3152 /* Override any gcc2 internal prototype to avoid an error.  */
3153 #ifdef __cplusplus
3154 extern "C"
3155 #endif
3156 /* We use char because int might match the return type of a gcc2
3157    builtin and then its argument prototype would still apply.  */
3158 char connect ();
3159 char (*f) ();
3160
3161 int
3162 main ()
3163 {
3164 /* The GNU C library defines this for functions which it implements
3165     to always fail with ENOSYS.  Some functions are actually named
3166     something starting with __ and the normal name is an alias.  */
3167 #if defined (__stub_connect) || defined (__stub___connect)
3168 choke me
3169 #else
3170 f = connect;
3171 #endif
3172
3173   ;
3174   return 0;
3175 }
3176 _ACEOF
3177 rm -f conftest.$ac_objext conftest$ac_exeext
3178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3179   (eval $ac_link) 2>&5
3180   ac_status=$?
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); } &&
3183          { ac_try='test -s conftest$ac_exeext'
3184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185   (eval $ac_try) 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }; }; then
3189   ac_cv_func_connect=yes
3190 else
3191   echo "$as_me: failed program was:" >&5
3192 cat conftest.$ac_ext >&5
3193 ac_cv_func_connect=no
3194 fi
3195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3196 fi
3197 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3198 echo "${ECHO_T}$ac_cv_func_connect" >&6
3199
3200     if test $ac_cv_func_connect = no; then
3201       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3202 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3203 if test "${ac_cv_lib_socket_connect+set}" = set; then
3204   echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206   ac_check_lib_save_LIBS=$LIBS
3207 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3208 cat >conftest.$ac_ext <<_ACEOF
3209 #line $LINENO "configure"
3210 #include "confdefs.h"
3211
3212 /* Override any gcc2 internal prototype to avoid an error.  */
3213 #ifdef __cplusplus
3214 extern "C"
3215 #endif
3216 /* We use char because int might match the return type of a gcc2
3217    builtin and then its argument prototype would still apply.  */
3218 char connect ();
3219 int
3220 main ()
3221 {
3222 connect ();
3223   ;
3224   return 0;
3225 }
3226 _ACEOF
3227 rm -f conftest.$ac_objext conftest$ac_exeext
3228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3229   (eval $ac_link) 2>&5
3230   ac_status=$?
3231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232   (exit $ac_status); } &&
3233          { ac_try='test -s conftest$ac_exeext'
3234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235   (eval $ac_try) 2>&5
3236   ac_status=$?
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); }; }; then
3239   ac_cv_lib_socket_connect=yes
3240 else
3241   echo "$as_me: failed program was:" >&5
3242 cat conftest.$ac_ext >&5
3243 ac_cv_lib_socket_connect=no
3244 fi
3245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3246 LIBS=$ac_check_lib_save_LIBS
3247 fi
3248 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3249 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3250 if test $ac_cv_lib_socket_connect = yes; then
3251   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3252 fi
3253
3254     fi
3255
3256     # Guillermo Gomez says -lposix is necessary on A/UX.
3257     echo "$as_me:$LINENO: checking for remove" >&5
3258 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3259 if test "${ac_cv_func_remove+set}" = set; then
3260   echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262   cat >conftest.$ac_ext <<_ACEOF
3263 #line $LINENO "configure"
3264 #include "confdefs.h"
3265 /* System header to define __stub macros and hopefully few prototypes,
3266     which can conflict with char remove (); below.  */
3267 #include <assert.h>
3268 /* Override any gcc2 internal prototype to avoid an error.  */
3269 #ifdef __cplusplus
3270 extern "C"
3271 #endif
3272 /* We use char because int might match the return type of a gcc2
3273    builtin and then its argument prototype would still apply.  */
3274 char remove ();
3275 char (*f) ();
3276
3277 int
3278 main ()
3279 {
3280 /* The GNU C library defines this for functions which it implements
3281     to always fail with ENOSYS.  Some functions are actually named
3282     something starting with __ and the normal name is an alias.  */
3283 #if defined (__stub_remove) || defined (__stub___remove)
3284 choke me
3285 #else
3286 f = remove;
3287 #endif
3288
3289   ;
3290   return 0;
3291 }
3292 _ACEOF
3293 rm -f conftest.$ac_objext conftest$ac_exeext
3294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3295   (eval $ac_link) 2>&5
3296   ac_status=$?
3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); } &&
3299          { ac_try='test -s conftest$ac_exeext'
3300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301   (eval $ac_try) 2>&5
3302   ac_status=$?
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); }; }; then
3305   ac_cv_func_remove=yes
3306 else
3307   echo "$as_me: failed program was:" >&5
3308 cat conftest.$ac_ext >&5
3309 ac_cv_func_remove=no
3310 fi
3311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3312 fi
3313 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3314 echo "${ECHO_T}$ac_cv_func_remove" >&6
3315
3316     if test $ac_cv_func_remove = no; then
3317       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3318 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3319 if test "${ac_cv_lib_posix_remove+set}" = set; then
3320   echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322   ac_check_lib_save_LIBS=$LIBS
3323 LIBS="-lposix  $LIBS"
3324 cat >conftest.$ac_ext <<_ACEOF
3325 #line $LINENO "configure"
3326 #include "confdefs.h"
3327
3328 /* Override any gcc2 internal prototype to avoid an error.  */
3329 #ifdef __cplusplus
3330 extern "C"
3331 #endif
3332 /* We use char because int might match the return type of a gcc2
3333    builtin and then its argument prototype would still apply.  */
3334 char remove ();
3335 int
3336 main ()
3337 {
3338 remove ();
3339   ;
3340   return 0;
3341 }
3342 _ACEOF
3343 rm -f conftest.$ac_objext conftest$ac_exeext
3344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3345   (eval $ac_link) 2>&5
3346   ac_status=$?
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); } &&
3349          { ac_try='test -s conftest$ac_exeext'
3350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351   (eval $ac_try) 2>&5
3352   ac_status=$?
3353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354   (exit $ac_status); }; }; then
3355   ac_cv_lib_posix_remove=yes
3356 else
3357   echo "$as_me: failed program was:" >&5
3358 cat conftest.$ac_ext >&5
3359 ac_cv_lib_posix_remove=no
3360 fi
3361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3362 LIBS=$ac_check_lib_save_LIBS
3363 fi
3364 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3365 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3366 if test $ac_cv_lib_posix_remove = yes; then
3367   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3368 fi
3369
3370     fi
3371
3372     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3373     echo "$as_me:$LINENO: checking for shmat" >&5
3374 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3375 if test "${ac_cv_func_shmat+set}" = set; then
3376   echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378   cat >conftest.$ac_ext <<_ACEOF
3379 #line $LINENO "configure"
3380 #include "confdefs.h"
3381 /* System header to define __stub macros and hopefully few prototypes,
3382     which can conflict with char shmat (); below.  */
3383 #include <assert.h>
3384 /* Override any gcc2 internal prototype to avoid an error.  */
3385 #ifdef __cplusplus
3386 extern "C"
3387 #endif
3388 /* We use char because int might match the return type of a gcc2
3389    builtin and then its argument prototype would still apply.  */
3390 char shmat ();
3391 char (*f) ();
3392
3393 int
3394 main ()
3395 {
3396 /* The GNU C library defines this for functions which it implements
3397     to always fail with ENOSYS.  Some functions are actually named
3398     something starting with __ and the normal name is an alias.  */
3399 #if defined (__stub_shmat) || defined (__stub___shmat)
3400 choke me
3401 #else
3402 f = shmat;
3403 #endif
3404
3405   ;
3406   return 0;
3407 }
3408 _ACEOF
3409 rm -f conftest.$ac_objext conftest$ac_exeext
3410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3411   (eval $ac_link) 2>&5
3412   ac_status=$?
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); } &&
3415          { ac_try='test -s conftest$ac_exeext'
3416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417   (eval $ac_try) 2>&5
3418   ac_status=$?
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); }; }; then
3421   ac_cv_func_shmat=yes
3422 else
3423   echo "$as_me: failed program was:" >&5
3424 cat conftest.$ac_ext >&5
3425 ac_cv_func_shmat=no
3426 fi
3427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3428 fi
3429 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3430 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3431
3432     if test $ac_cv_func_shmat = no; then
3433       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3434 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3435 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3436   echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438   ac_check_lib_save_LIBS=$LIBS
3439 LIBS="-lipc  $LIBS"
3440 cat >conftest.$ac_ext <<_ACEOF
3441 #line $LINENO "configure"
3442 #include "confdefs.h"
3443
3444 /* Override any gcc2 internal prototype to avoid an error.  */
3445 #ifdef __cplusplus
3446 extern "C"
3447 #endif
3448 /* We use char because int might match the return type of a gcc2
3449    builtin and then its argument prototype would still apply.  */
3450 char shmat ();
3451 int
3452 main ()
3453 {
3454 shmat ();
3455   ;
3456   return 0;
3457 }
3458 _ACEOF
3459 rm -f conftest.$ac_objext conftest$ac_exeext
3460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3461   (eval $ac_link) 2>&5
3462   ac_status=$?
3463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464   (exit $ac_status); } &&
3465          { ac_try='test -s conftest$ac_exeext'
3466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467   (eval $ac_try) 2>&5
3468   ac_status=$?
3469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470   (exit $ac_status); }; }; then
3471   ac_cv_lib_ipc_shmat=yes
3472 else
3473   echo "$as_me: failed program was:" >&5
3474 cat conftest.$ac_ext >&5
3475 ac_cv_lib_ipc_shmat=no
3476 fi
3477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3478 LIBS=$ac_check_lib_save_LIBS
3479 fi
3480 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3481 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3482 if test $ac_cv_lib_ipc_shmat = yes; then
3483   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3484 fi
3485
3486     fi
3487   fi
3488
3489   # Check for libraries that X11R6 Xt/Xaw programs need.
3490   ac_save_LDFLAGS=$LDFLAGS
3491   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3492   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3493   # check for ICE first), but we must link in the order -lSM -lICE or
3494   # we get undefined symbols.  So assume we have SM if we have ICE.
3495   # These have to be linked with before -lX11, unlike the other
3496   # libraries we check for below, so use a different variable.
3497   # John Interrante, Karl Berry
3498   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3499 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3500 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3501   echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503   ac_check_lib_save_LIBS=$LIBS
3504 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3505 cat >conftest.$ac_ext <<_ACEOF
3506 #line $LINENO "configure"
3507 #include "confdefs.h"
3508
3509 /* Override any gcc2 internal prototype to avoid an error.  */
3510 #ifdef __cplusplus
3511 extern "C"
3512 #endif
3513 /* We use char because int might match the return type of a gcc2
3514    builtin and then its argument prototype would still apply.  */
3515 char IceConnectionNumber ();
3516 int
3517 main ()
3518 {
3519 IceConnectionNumber ();
3520   ;
3521   return 0;
3522 }
3523 _ACEOF
3524 rm -f conftest.$ac_objext conftest$ac_exeext
3525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3526   (eval $ac_link) 2>&5
3527   ac_status=$?
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); } &&
3530          { ac_try='test -s conftest$ac_exeext'
3531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532   (eval $ac_try) 2>&5
3533   ac_status=$?
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); }; }; then
3536   ac_cv_lib_ICE_IceConnectionNumber=yes
3537 else
3538   echo "$as_me: failed program was:" >&5
3539 cat conftest.$ac_ext >&5
3540 ac_cv_lib_ICE_IceConnectionNumber=no
3541 fi
3542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3543 LIBS=$ac_check_lib_save_LIBS
3544 fi
3545 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3546 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3547 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3548   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3549 fi
3550
3551   LDFLAGS=$ac_save_LDFLAGS
3552
3553 fi
3554
3555 for ac_prog in 'bison -y' byacc
3556 do
3557   # Extract the first word of "$ac_prog", so it can be a program name with args.
3558 set dummy $ac_prog; ac_word=$2
3559 echo "$as_me:$LINENO: checking for $ac_word" >&5
3560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3561 if test "${ac_cv_prog_YACC+set}" = set; then
3562   echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564   if test -n "$YACC"; then
3565   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3566 else
3567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 for as_dir in $PATH
3569 do
3570   IFS=$as_save_IFS
3571   test -z "$as_dir" && as_dir=.
3572   for ac_exec_ext in '' $ac_executable_extensions; do
3573   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3574     ac_cv_prog_YACC="$ac_prog"
3575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3576     break 2
3577   fi
3578 done
3579 done
3580
3581 fi
3582 fi
3583 YACC=$ac_cv_prog_YACC
3584 if test -n "$YACC"; then
3585   echo "$as_me:$LINENO: result: $YACC" >&5
3586 echo "${ECHO_T}$YACC" >&6
3587 else
3588   echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6
3590 fi
3591
3592   test -n "$YACC" && break
3593 done
3594 test -n "$YACC" || YACC="yacc"
3595
3596 for ac_prog in flex lex
3597 do
3598   # Extract the first word of "$ac_prog", so it can be a program name with args.
3599 set dummy $ac_prog; ac_word=$2
3600 echo "$as_me:$LINENO: checking for $ac_word" >&5
3601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3602 if test "${ac_cv_prog_LEX+set}" = set; then
3603   echo $ECHO_N "(cached) $ECHO_C" >&6
3604 else
3605   if test -n "$LEX"; then
3606   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3607 else
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3610 do
3611   IFS=$as_save_IFS
3612   test -z "$as_dir" && as_dir=.
3613   for ac_exec_ext in '' $ac_executable_extensions; do
3614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3615     ac_cv_prog_LEX="$ac_prog"
3616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3617     break 2
3618   fi
3619 done
3620 done
3621
3622 fi
3623 fi
3624 LEX=$ac_cv_prog_LEX
3625 if test -n "$LEX"; then
3626   echo "$as_me:$LINENO: result: $LEX" >&5
3627 echo "${ECHO_T}$LEX" >&6
3628 else
3629   echo "$as_me:$LINENO: result: no" >&5
3630 echo "${ECHO_T}no" >&6
3631 fi
3632
3633   test -n "$LEX" && break
3634 done
3635 test -n "$LEX" || LEX=":"
3636
3637 if test -z "$LEXLIB"
3638 then
3639   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3640 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3641 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3642   echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644   ac_check_lib_save_LIBS=$LIBS
3645 LIBS="-lfl  $LIBS"
3646 cat >conftest.$ac_ext <<_ACEOF
3647 #line $LINENO "configure"
3648 #include "confdefs.h"
3649
3650 /* Override any gcc2 internal prototype to avoid an error.  */
3651 #ifdef __cplusplus
3652 extern "C"
3653 #endif
3654 /* We use char because int might match the return type of a gcc2
3655    builtin and then its argument prototype would still apply.  */
3656 char yywrap ();
3657 int
3658 main ()
3659 {
3660 yywrap ();
3661   ;
3662   return 0;
3663 }
3664 _ACEOF
3665 rm -f conftest.$ac_objext conftest$ac_exeext
3666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3667   (eval $ac_link) 2>&5
3668   ac_status=$?
3669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); } &&
3671          { ac_try='test -s conftest$ac_exeext'
3672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673   (eval $ac_try) 2>&5
3674   ac_status=$?
3675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676   (exit $ac_status); }; }; then
3677   ac_cv_lib_fl_yywrap=yes
3678 else
3679   echo "$as_me: failed program was:" >&5
3680 cat conftest.$ac_ext >&5
3681 ac_cv_lib_fl_yywrap=no
3682 fi
3683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3684 LIBS=$ac_check_lib_save_LIBS
3685 fi
3686 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3687 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3688 if test $ac_cv_lib_fl_yywrap = yes; then
3689   LEXLIB="-lfl"
3690 else
3691   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3692 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3693 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3694   echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696   ac_check_lib_save_LIBS=$LIBS
3697 LIBS="-ll  $LIBS"
3698 cat >conftest.$ac_ext <<_ACEOF
3699 #line $LINENO "configure"
3700 #include "confdefs.h"
3701
3702 /* Override any gcc2 internal prototype to avoid an error.  */
3703 #ifdef __cplusplus
3704 extern "C"
3705 #endif
3706 /* We use char because int might match the return type of a gcc2
3707    builtin and then its argument prototype would still apply.  */
3708 char yywrap ();
3709 int
3710 main ()
3711 {
3712 yywrap ();
3713   ;
3714   return 0;
3715 }
3716 _ACEOF
3717 rm -f conftest.$ac_objext conftest$ac_exeext
3718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3719   (eval $ac_link) 2>&5
3720   ac_status=$?
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); } &&
3723          { ac_try='test -s conftest$ac_exeext'
3724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725   (eval $ac_try) 2>&5
3726   ac_status=$?
3727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728   (exit $ac_status); }; }; then
3729   ac_cv_lib_l_yywrap=yes
3730 else
3731   echo "$as_me: failed program was:" >&5
3732 cat conftest.$ac_ext >&5
3733 ac_cv_lib_l_yywrap=no
3734 fi
3735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3736 LIBS=$ac_check_lib_save_LIBS
3737 fi
3738 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3739 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3740 if test $ac_cv_lib_l_yywrap = yes; then
3741   LEXLIB="-ll"
3742 fi
3743
3744 fi
3745
3746 fi
3747
3748 if test "x$LEX" != "x:"; then
3749   echo "$as_me:$LINENO: checking lex output file root" >&5
3750 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3751 if test "${ac_cv_prog_lex_root+set}" = set; then
3752   echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754   # The minimal lex program is just a single line: %%.  But some broken lexes
3755 # (Solaris, I think it was) want two %% lines, so accommodate them.
3756 cat >conftest.l <<_ACEOF
3757 %%
3758 %%
3759 _ACEOF
3760 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3761   (eval $LEX conftest.l) 2>&5
3762   ac_status=$?
3763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764   (exit $ac_status); }
3765 if test -f lex.yy.c; then
3766   ac_cv_prog_lex_root=lex.yy
3767 elif test -f lexyy.c; then
3768   ac_cv_prog_lex_root=lexyy
3769 else
3770   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3771 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3772    { (exit 1); exit 1; }; }
3773 fi
3774 fi
3775 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3776 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3777 rm -f conftest.l
3778 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3779
3780 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3781 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3782 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3783   echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785   # POSIX says lex can declare yytext either as a pointer or an array; the
3786 # default is implementation-dependent. Figure out which it is, since
3787 # not all implementations provide the %pointer and %array declarations.
3788 ac_cv_prog_lex_yytext_pointer=no
3789 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3790 ac_save_LIBS=$LIBS
3791 LIBS="$LIBS $LEXLIB"
3792 cat >conftest.$ac_ext <<_ACEOF
3793 `cat $LEX_OUTPUT_ROOT.c`
3794 _ACEOF
3795 rm -f conftest.$ac_objext conftest$ac_exeext
3796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3797   (eval $ac_link) 2>&5
3798   ac_status=$?
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); } &&
3801          { ac_try='test -s conftest$ac_exeext'
3802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803   (eval $ac_try) 2>&5
3804   ac_status=$?
3805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806   (exit $ac_status); }; }; then
3807   ac_cv_prog_lex_yytext_pointer=yes
3808 else
3809   echo "$as_me: failed program was:" >&5
3810 cat conftest.$ac_ext >&5
3811 fi
3812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3813 LIBS=$ac_save_LIBS
3814 rm -f "${LEX_OUTPUT_ROOT}.c"
3815
3816 fi
3817 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3818 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3819 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3820
3821 cat >>confdefs.h <<\_ACEOF
3822 #define YYTEXT_POINTER 1
3823 _ACEOF
3824
3825 fi
3826
3827 fi
3828
3829 for ac_prog in $YACC bison yacc
3830 do
3831   # Extract the first word of "$ac_prog", so it can be a program name with args.
3832 set dummy $ac_prog; ac_word=$2
3833 echo "$as_me:$LINENO: checking for $ac_word" >&5
3834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3835 if test "${ac_cv_prog_XYACC+set}" = set; then
3836   echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838   if test -n "$XYACC"; then
3839   ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3840 else
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3843 do
3844   IFS=$as_save_IFS
3845   test -z "$as_dir" && as_dir=.
3846   for ac_exec_ext in '' $ac_executable_extensions; do
3847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848     ac_cv_prog_XYACC="$ac_prog"
3849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3850     break 2
3851   fi
3852 done
3853 done
3854
3855 fi
3856 fi
3857 XYACC=$ac_cv_prog_XYACC
3858 if test -n "$XYACC"; then
3859   echo "$as_me:$LINENO: result: $XYACC" >&5
3860 echo "${ECHO_T}$XYACC" >&6
3861 else
3862   echo "$as_me:$LINENO: result: no" >&5
3863 echo "${ECHO_T}no" >&6
3864 fi
3865
3866   test -n "$XYACC" && break
3867 done
3868 test -n "$XYACC" || XYACC="none"
3869
3870 if test "$XYACC" = "none"
3871 then
3872   { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
3873 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3874    { (exit 1); exit 1; }; }
3875 fi
3876 for ac_prog in $LEX flex lex
3877 do
3878   # Extract the first word of "$ac_prog", so it can be a program name with args.
3879 set dummy $ac_prog; ac_word=$2
3880 echo "$as_me:$LINENO: checking for $ac_word" >&5
3881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3882 if test "${ac_cv_prog_XLEX+set}" = set; then
3883   echo $ECHO_N "(cached) $ECHO_C" >&6
3884 else
3885   if test -n "$XLEX"; then
3886   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3887 else
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH
3890 do
3891   IFS=$as_save_IFS
3892   test -z "$as_dir" && as_dir=.
3893   for ac_exec_ext in '' $ac_executable_extensions; do
3894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3895     ac_cv_prog_XLEX="$ac_prog"
3896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3897     break 2
3898   fi
3899 done
3900 done
3901
3902 fi
3903 fi
3904 XLEX=$ac_cv_prog_XLEX
3905 if test -n "$XLEX"; then
3906   echo "$as_me:$LINENO: result: $XLEX" >&5
3907 echo "${ECHO_T}$XLEX" >&6
3908 else
3909   echo "$as_me:$LINENO: result: no" >&5
3910 echo "${ECHO_T}no" >&6
3911 fi
3912
3913   test -n "$XLEX" && break
3914 done
3915 test -n "$XLEX" || XLEX="none"
3916
3917 if test "$XLEX" = "none"
3918 then
3919   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
3920 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3921    { (exit 1); exit 1; }; }
3922 fi
3923
3924 if test -n "$ac_tool_prefix"; then
3925   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3926 set dummy ${ac_tool_prefix}ld; ac_word=$2
3927 echo "$as_me:$LINENO: checking for $ac_word" >&5
3928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3929 if test "${ac_cv_prog_LD+set}" = set; then
3930   echo $ECHO_N "(cached) $ECHO_C" >&6
3931 else
3932   if test -n "$LD"; then
3933   ac_cv_prog_LD="$LD" # Let the user override the test.
3934 else
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3937 do
3938   IFS=$as_save_IFS
3939   test -z "$as_dir" && as_dir=.
3940   for ac_exec_ext in '' $ac_executable_extensions; do
3941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3942     ac_cv_prog_LD="${ac_tool_prefix}ld"
3943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944     break 2
3945   fi
3946 done
3947 done
3948
3949 fi
3950 fi
3951 LD=$ac_cv_prog_LD
3952 if test -n "$LD"; then
3953   echo "$as_me:$LINENO: result: $LD" >&5
3954 echo "${ECHO_T}$LD" >&6
3955 else
3956   echo "$as_me:$LINENO: result: no" >&5
3957 echo "${ECHO_T}no" >&6
3958 fi
3959
3960 fi
3961 if test -z "$ac_cv_prog_LD"; then
3962   ac_ct_LD=$LD
3963   # Extract the first word of "ld", so it can be a program name with args.
3964 set dummy ld; ac_word=$2
3965 echo "$as_me:$LINENO: checking for $ac_word" >&5
3966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3967 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3968   echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970   if test -n "$ac_ct_LD"; then
3971   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3972 else
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3975 do
3976   IFS=$as_save_IFS
3977   test -z "$as_dir" && as_dir=.
3978   for ac_exec_ext in '' $ac_executable_extensions; do
3979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980     ac_cv_prog_ac_ct_LD="ld"
3981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982     break 2
3983   fi
3984 done
3985 done
3986
3987   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3988 fi
3989 fi
3990 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3991 if test -n "$ac_ct_LD"; then
3992   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3993 echo "${ECHO_T}$ac_ct_LD" >&6
3994 else
3995   echo "$as_me:$LINENO: result: no" >&5
3996 echo "${ECHO_T}no" >&6
3997 fi
3998
3999   LD=$ac_ct_LD
4000 else
4001   LD="$ac_cv_prog_LD"
4002 fi
4003
4004 if test -n "$ac_tool_prefix"; then
4005   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4006 set dummy ${ac_tool_prefix}ar; ac_word=$2
4007 echo "$as_me:$LINENO: checking for $ac_word" >&5
4008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4009 if test "${ac_cv_prog_AR+set}" = set; then
4010   echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012   if test -n "$AR"; then
4013   ac_cv_prog_AR="$AR" # Let the user override the test.
4014 else
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH
4017 do
4018   IFS=$as_save_IFS
4019   test -z "$as_dir" && as_dir=.
4020   for ac_exec_ext in '' $ac_executable_extensions; do
4021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4022     ac_cv_prog_AR="${ac_tool_prefix}ar"
4023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4024     break 2
4025   fi
4026 done
4027 done
4028
4029 fi
4030 fi
4031 AR=$ac_cv_prog_AR
4032 if test -n "$AR"; then
4033   echo "$as_me:$LINENO: result: $AR" >&5
4034 echo "${ECHO_T}$AR" >&6
4035 else
4036   echo "$as_me:$LINENO: result: no" >&5
4037 echo "${ECHO_T}no" >&6
4038 fi
4039
4040 fi
4041 if test -z "$ac_cv_prog_AR"; then
4042   ac_ct_AR=$AR
4043   # Extract the first word of "ar", so it can be a program name with args.
4044 set dummy ar; ac_word=$2
4045 echo "$as_me:$LINENO: checking for $ac_word" >&5
4046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4047 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050   if test -n "$ac_ct_AR"; then
4051   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4052 else
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4055 do
4056   IFS=$as_save_IFS
4057   test -z "$as_dir" && as_dir=.
4058   for ac_exec_ext in '' $ac_executable_extensions; do
4059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060     ac_cv_prog_ac_ct_AR="ar"
4061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4062     break 2
4063   fi
4064 done
4065 done
4066
4067   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4068 fi
4069 fi
4070 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4071 if test -n "$ac_ct_AR"; then
4072   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4073 echo "${ECHO_T}$ac_ct_AR" >&6
4074 else
4075   echo "$as_me:$LINENO: result: no" >&5
4076 echo "${ECHO_T}no" >&6
4077 fi
4078
4079   AR=$ac_ct_AR
4080 else
4081   AR="$ac_cv_prog_AR"
4082 fi
4083
4084 if test -n "$ac_tool_prefix"; then
4085   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4086 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4087 echo "$as_me:$LINENO: checking for $ac_word" >&5
4088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4089 if test "${ac_cv_prog_RANLIB+set}" = set; then
4090   echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092   if test -n "$RANLIB"; then
4093   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4094 else
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH
4097 do
4098   IFS=$as_save_IFS
4099   test -z "$as_dir" && as_dir=.
4100   for ac_exec_ext in '' $ac_executable_extensions; do
4101   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4102     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4104     break 2
4105   fi
4106 done
4107 done
4108
4109 fi
4110 fi
4111 RANLIB=$ac_cv_prog_RANLIB
4112 if test -n "$RANLIB"; then
4113   echo "$as_me:$LINENO: result: $RANLIB" >&5
4114 echo "${ECHO_T}$RANLIB" >&6
4115 else
4116   echo "$as_me:$LINENO: result: no" >&5
4117 echo "${ECHO_T}no" >&6
4118 fi
4119
4120 fi
4121 if test -z "$ac_cv_prog_RANLIB"; then
4122   ac_ct_RANLIB=$RANLIB
4123   # Extract the first word of "ranlib", so it can be a program name with args.
4124 set dummy ranlib; ac_word=$2
4125 echo "$as_me:$LINENO: checking for $ac_word" >&5
4126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4127 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4128   echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130   if test -n "$ac_ct_RANLIB"; then
4131   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4132 else
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH
4135 do
4136   IFS=$as_save_IFS
4137   test -z "$as_dir" && as_dir=.
4138   for ac_exec_ext in '' $ac_executable_extensions; do
4139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4140     ac_cv_prog_ac_ct_RANLIB="ranlib"
4141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142     break 2
4143   fi
4144 done
4145 done
4146
4147   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4148 fi
4149 fi
4150 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4151 if test -n "$ac_ct_RANLIB"; then
4152   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4153 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4154 else
4155   echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6
4157 fi
4158
4159   RANLIB=$ac_ct_RANLIB
4160 else
4161   RANLIB="$ac_cv_prog_RANLIB"
4162 fi
4163
4164 if test -n "$ac_tool_prefix"; then
4165   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4166 set dummy ${ac_tool_prefix}strip; ac_word=$2
4167 echo "$as_me:$LINENO: checking for $ac_word" >&5
4168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4169 if test "${ac_cv_prog_STRIP+set}" = set; then
4170   echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172   if test -n "$STRIP"; then
4173   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4174 else
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4177 do
4178   IFS=$as_save_IFS
4179   test -z "$as_dir" && as_dir=.
4180   for ac_exec_ext in '' $ac_executable_extensions; do
4181   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184     break 2
4185   fi
4186 done
4187 done
4188
4189 fi
4190 fi
4191 STRIP=$ac_cv_prog_STRIP
4192 if test -n "$STRIP"; then
4193   echo "$as_me:$LINENO: result: $STRIP" >&5
4194 echo "${ECHO_T}$STRIP" >&6
4195 else
4196   echo "$as_me:$LINENO: result: no" >&5
4197 echo "${ECHO_T}no" >&6
4198 fi
4199
4200 fi
4201 if test -z "$ac_cv_prog_STRIP"; then
4202   ac_ct_STRIP=$STRIP
4203   # Extract the first word of "strip", so it can be a program name with args.
4204 set dummy strip; ac_word=$2
4205 echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4207 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4208   echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210   if test -n "$ac_ct_STRIP"; then
4211   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4212 else
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4215 do
4216   IFS=$as_save_IFS
4217   test -z "$as_dir" && as_dir=.
4218   for ac_exec_ext in '' $ac_executable_extensions; do
4219   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220     ac_cv_prog_ac_ct_STRIP="strip"
4221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222     break 2
4223   fi
4224 done
4225 done
4226
4227   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4228 fi
4229 fi
4230 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4231 if test -n "$ac_ct_STRIP"; then
4232   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4233 echo "${ECHO_T}$ac_ct_STRIP" >&6
4234 else
4235   echo "$as_me:$LINENO: result: no" >&5
4236 echo "${ECHO_T}no" >&6
4237 fi
4238
4239   STRIP=$ac_ct_STRIP
4240 else
4241   STRIP="$ac_cv_prog_STRIP"
4242 fi
4243
4244 if test -n "$ac_tool_prefix"; then
4245   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4246 set dummy ${ac_tool_prefix}windres; ac_word=$2
4247 echo "$as_me:$LINENO: checking for $ac_word" >&5
4248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4249 if test "${ac_cv_prog_WINDRES+set}" = set; then
4250   echo $ECHO_N "(cached) $ECHO_C" >&6
4251 else
4252   if test -n "$WINDRES"; then
4253   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4254 else
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH
4257 do
4258   IFS=$as_save_IFS
4259   test -z "$as_dir" && as_dir=.
4260   for ac_exec_ext in '' $ac_executable_extensions; do
4261   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4262     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4264     break 2
4265   fi
4266 done
4267 done
4268
4269 fi
4270 fi
4271 WINDRES=$ac_cv_prog_WINDRES
4272 if test -n "$WINDRES"; then
4273   echo "$as_me:$LINENO: result: $WINDRES" >&5
4274 echo "${ECHO_T}$WINDRES" >&6
4275 else
4276   echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6
4278 fi
4279
4280 fi
4281 if test -z "$ac_cv_prog_WINDRES"; then
4282   ac_ct_WINDRES=$WINDRES
4283   # Extract the first word of "windres", so it can be a program name with args.
4284 set dummy windres; ac_word=$2
4285 echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4288   echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290   if test -n "$ac_ct_WINDRES"; then
4291   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4295 do
4296   IFS=$as_save_IFS
4297   test -z "$as_dir" && as_dir=.
4298   for ac_exec_ext in '' $ac_executable_extensions; do
4299   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300     ac_cv_prog_ac_ct_WINDRES="windres"
4301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302     break 2
4303   fi
4304 done
4305 done
4306
4307   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4308 fi
4309 fi
4310 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4311 if test -n "$ac_ct_WINDRES"; then
4312   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4313 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4314 else
4315   echo "$as_me:$LINENO: result: no" >&5
4316 echo "${ECHO_T}no" >&6
4317 fi
4318
4319   WINDRES=$ac_ct_WINDRES
4320 else
4321   WINDRES="$ac_cv_prog_WINDRES"
4322 fi
4323
4324 # Find a good install program.  We prefer a C program (faster),
4325 # so one script is as good as another.  But avoid the broken or
4326 # incompatible versions:
4327 # SysV /etc/install, /usr/sbin/install
4328 # SunOS /usr/etc/install
4329 # IRIX /sbin/install
4330 # AIX /bin/install
4331 # AmigaOS /C/install, which installs bootblocks on floppy discs
4332 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4333 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4334 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4335 # ./install, which can be erroneously created by make from ./install.sh.
4336 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4337 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4338 if test -z "$INSTALL"; then
4339 if test "${ac_cv_path_install+set}" = set; then
4340   echo $ECHO_N "(cached) $ECHO_C" >&6
4341 else
4342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH
4344 do
4345   IFS=$as_save_IFS
4346   test -z "$as_dir" && as_dir=.
4347   # Account for people who put trailing slashes in PATH elements.
4348 case $as_dir/ in
4349   ./ | .// | /cC/* | \
4350   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4351   /usr/ucb/* ) ;;
4352   *)
4353     # OSF1 and SCO ODT 3.0 have their own names for install.
4354     # Don't use installbsd from OSF since it installs stuff as root
4355     # by default.
4356     for ac_prog in ginstall scoinst install; do
4357       for ac_exec_ext in '' $ac_executable_extensions; do
4358         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4359           if test $ac_prog = install &&
4360             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4361             # AIX install.  It has an incompatible calling convention.
4362             :
4363           elif test $ac_prog = install &&
4364             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4365             # program-specific install script used by HP pwplus--don't use.
4366             :
4367           else
4368             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4369             break 3
4370           fi
4371         fi
4372       done
4373     done
4374     ;;
4375 esac
4376 done
4377
4378
4379 fi
4380   if test "${ac_cv_path_install+set}" = set; then
4381     INSTALL=$ac_cv_path_install
4382   else
4383     # As a last resort, use the slow shell script.  We don't cache a
4384     # path for INSTALL within a source directory, because that will
4385     # break other packages using the cache if that directory is
4386     # removed, or if the path is relative.
4387     INSTALL=$ac_install_sh
4388   fi
4389 fi
4390 echo "$as_me:$LINENO: result: $INSTALL" >&5
4391 echo "${ECHO_T}$INSTALL" >&6
4392
4393 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4394 # It thinks the first close brace ends the variable substitution.
4395 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4396
4397 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4398
4399 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4400
4401 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4402 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4403 LN_S=$as_ln_s
4404 if test "$LN_S" = "ln -s"; then
4405   echo "$as_me:$LINENO: result: yes" >&5
4406 echo "${ECHO_T}yes" >&6
4407 else
4408   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4409 echo "${ECHO_T}no, using $LN_S" >&6
4410 fi
4411
4412 echo "$as_me:$LINENO: checking whether ln works" >&5
4413 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4414 rm -f conf$$ conf$$.file
4415 echo >conf$$.file
4416 if ln conf$$.file conf$$ 2>/dev/null; then
4417   LN=ln
4418
4419   echo "$as_me:$LINENO: result: yes" >&5
4420 echo "${ECHO_T}yes" >&6
4421 else
4422   LN="cp -p"
4423
4424   echo "$as_me:$LINENO: result: no, using $LN" >&5
4425 echo "${ECHO_T}no, using $LN" >&6
4426 fi
4427 rm -f conf$$ conf$$.file
4428 # Extract the first word of "c2man", so it can be a program name with args.
4429 set dummy c2man; ac_word=$2
4430 echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4432 if test "${ac_cv_prog_C2MAN+set}" = set; then
4433   echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435   if test -n "$C2MAN"; then
4436   ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4440 do
4441   IFS=$as_save_IFS
4442   test -z "$as_dir" && as_dir=.
4443   for ac_exec_ext in '' $ac_executable_extensions; do
4444   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4445     ac_cv_prog_C2MAN="c2man"
4446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447     break 2
4448   fi
4449 done
4450 done
4451
4452   test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4453 fi
4454 fi
4455 C2MAN=$ac_cv_prog_C2MAN
4456 if test -n "$C2MAN"; then
4457   echo "$as_me:$LINENO: result: $C2MAN" >&5
4458 echo "${ECHO_T}$C2MAN" >&6
4459 else
4460   echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6
4462 fi
4463
4464 # Extract the first word of "ldconfig", so it can be a program name with args.
4465 set dummy ldconfig; ac_word=$2
4466 echo "$as_me:$LINENO: checking for $ac_word" >&5
4467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4468 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4469   echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471   case $LDCONFIG in
4472   [\\/]* | ?:[\\/]*)
4473   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4474   ;;
4475   *)
4476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in /sbin /usr/sbin $PATH
4478 do
4479   IFS=$as_save_IFS
4480   test -z "$as_dir" && as_dir=.
4481   for ac_exec_ext in '' $ac_executable_extensions; do
4482   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4483     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485     break 2
4486   fi
4487 done
4488 done
4489
4490   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4491   ;;
4492 esac
4493 fi
4494 LDCONFIG=$ac_cv_path_LDCONFIG
4495
4496 if test -n "$LDCONFIG"; then
4497   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4498 echo "${ECHO_T}$LDCONFIG" >&6
4499 else
4500   echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6
4502 fi
4503
4504
4505 for ac_prog in lclint lint
4506 do
4507   # Extract the first word of "$ac_prog", so it can be a program name with args.
4508 set dummy $ac_prog; ac_word=$2
4509 echo "$as_me:$LINENO: checking for $ac_word" >&5
4510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4511 if test "${ac_cv_prog_LINT+set}" = set; then
4512   echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514   if test -n "$LINT"; then
4515   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4519 do
4520   IFS=$as_save_IFS
4521   test -z "$as_dir" && as_dir=.
4522   for ac_exec_ext in '' $ac_executable_extensions; do
4523   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524     ac_cv_prog_LINT="$ac_prog"
4525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4526     break 2
4527   fi
4528 done
4529 done
4530
4531 fi
4532 fi
4533 LINT=$ac_cv_prog_LINT
4534 if test -n "$LINT"; then
4535   echo "$as_me:$LINENO: result: $LINT" >&5
4536 echo "${ECHO_T}$LINT" >&6
4537 else
4538   echo "$as_me:$LINENO: result: no" >&5
4539 echo "${ECHO_T}no" >&6
4540 fi
4541
4542   test -n "$LINT" && break
4543 done
4544
4545 if test "$LINT" = "lint"
4546 then
4547   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4548   fi
4549
4550
4551
4552 for ac_prog in docbook2html db2html
4553 do
4554   # Extract the first word of "$ac_prog", so it can be a program name with args.
4555 set dummy $ac_prog; ac_word=$2
4556 echo "$as_me:$LINENO: checking for $ac_word" >&5
4557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4558 if test "${ac_cv_prog_DB2HTML+set}" = set; then
4559   echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561   if test -n "$DB2HTML"; then
4562   ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567   IFS=$as_save_IFS
4568   test -z "$as_dir" && as_dir=.
4569   for ac_exec_ext in '' $ac_executable_extensions; do
4570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571     ac_cv_prog_DB2HTML="$ac_prog"
4572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573     break 2
4574   fi
4575 done
4576 done
4577
4578 fi
4579 fi
4580 DB2HTML=$ac_cv_prog_DB2HTML
4581 if test -n "$DB2HTML"; then
4582   echo "$as_me:$LINENO: result: $DB2HTML" >&5
4583 echo "${ECHO_T}$DB2HTML" >&6
4584 else
4585   echo "$as_me:$LINENO: result: no" >&5
4586 echo "${ECHO_T}no" >&6
4587 fi
4588
4589   test -n "$DB2HTML" && break
4590 done
4591 test -n "$DB2HTML" || DB2HTML="false"
4592
4593
4594
4595 for ac_prog in docbook2pdf db2pdf
4596 do
4597   # Extract the first word of "$ac_prog", so it can be a program name with args.
4598 set dummy $ac_prog; ac_word=$2
4599 echo "$as_me:$LINENO: checking for $ac_word" >&5
4600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4601 if test "${ac_cv_prog_DB2PDF+set}" = set; then
4602   echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604   if test -n "$DB2PDF"; then
4605   ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4609 do
4610   IFS=$as_save_IFS
4611   test -z "$as_dir" && as_dir=.
4612   for ac_exec_ext in '' $ac_executable_extensions; do
4613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614     ac_cv_prog_DB2PDF="$ac_prog"
4615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616     break 2
4617   fi
4618 done
4619 done
4620
4621 fi
4622 fi
4623 DB2PDF=$ac_cv_prog_DB2PDF
4624 if test -n "$DB2PDF"; then
4625   echo "$as_me:$LINENO: result: $DB2PDF" >&5
4626 echo "${ECHO_T}$DB2PDF" >&6
4627 else
4628   echo "$as_me:$LINENO: result: no" >&5
4629 echo "${ECHO_T}no" >&6
4630 fi
4631
4632   test -n "$DB2PDF" && break
4633 done
4634 test -n "$DB2PDF" || DB2PDF="false"
4635
4636
4637
4638 for ac_prog in docbook2ps db2ps
4639 do
4640   # Extract the first word of "$ac_prog", so it can be a program name with args.
4641 set dummy $ac_prog; ac_word=$2
4642 echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4644 if test "${ac_cv_prog_DB2PS+set}" = set; then
4645   echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647   if test -n "$DB2PS"; then
4648   ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653   IFS=$as_save_IFS
4654   test -z "$as_dir" && as_dir=.
4655   for ac_exec_ext in '' $ac_executable_extensions; do
4656   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657     ac_cv_prog_DB2PS="$ac_prog"
4658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659     break 2
4660   fi
4661 done
4662 done
4663
4664 fi
4665 fi
4666 DB2PS=$ac_cv_prog_DB2PS
4667 if test -n "$DB2PS"; then
4668   echo "$as_me:$LINENO: result: $DB2PS" >&5
4669 echo "${ECHO_T}$DB2PS" >&6
4670 else
4671   echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6
4673 fi
4674
4675   test -n "$DB2PS" && break
4676 done
4677 test -n "$DB2PS" || DB2PS="false"
4678
4679
4680
4681
4682
4683 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4684 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4685 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4686   echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688   ac_check_lib_save_LIBS=$LIBS
4689 LIBS="-lm  $LIBS"
4690 cat >conftest.$ac_ext <<_ACEOF
4691 #line $LINENO "configure"
4692 #include "confdefs.h"
4693
4694 /* Override any gcc2 internal prototype to avoid an error.  */
4695 #ifdef __cplusplus
4696 extern "C"
4697 #endif
4698 /* We use char because int might match the return type of a gcc2
4699    builtin and then its argument prototype would still apply.  */
4700 char sqrt ();
4701 int
4702 main ()
4703 {
4704 sqrt ();
4705   ;
4706   return 0;
4707 }
4708 _ACEOF
4709 rm -f conftest.$ac_objext conftest$ac_exeext
4710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4711   (eval $ac_link) 2>&5
4712   ac_status=$?
4713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714   (exit $ac_status); } &&
4715          { ac_try='test -s conftest$ac_exeext'
4716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717   (eval $ac_try) 2>&5
4718   ac_status=$?
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); }; }; then
4721   ac_cv_lib_m_sqrt=yes
4722 else
4723   echo "$as_me: failed program was:" >&5
4724 cat conftest.$ac_ext >&5
4725 ac_cv_lib_m_sqrt=no
4726 fi
4727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4728 LIBS=$ac_check_lib_save_LIBS
4729 fi
4730 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4731 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4732 if test $ac_cv_lib_m_sqrt = yes; then
4733   cat >>confdefs.h <<_ACEOF
4734 #define HAVE_LIBM 1
4735 _ACEOF
4736
4737   LIBS="-lm $LIBS"
4738
4739 fi
4740
4741
4742 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
4743 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4744 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4745   echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747   ac_check_lib_save_LIBS=$LIBS
4748 LIBS="-li386  $LIBS"
4749 cat >conftest.$ac_ext <<_ACEOF
4750 #line $LINENO "configure"
4751 #include "confdefs.h"
4752
4753 /* Override any gcc2 internal prototype to avoid an error.  */
4754 #ifdef __cplusplus
4755 extern "C"
4756 #endif
4757 /* We use char because int might match the return type of a gcc2
4758    builtin and then its argument prototype would still apply.  */
4759 char i386_set_ldt ();
4760 int
4761 main ()
4762 {
4763 i386_set_ldt ();
4764   ;
4765   return 0;
4766 }
4767 _ACEOF
4768 rm -f conftest.$ac_objext conftest$ac_exeext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4770   (eval $ac_link) 2>&5
4771   ac_status=$?
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); } &&
4774          { ac_try='test -s conftest$ac_exeext'
4775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776   (eval $ac_try) 2>&5
4777   ac_status=$?
4778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779   (exit $ac_status); }; }; then
4780   ac_cv_lib_i386_i386_set_ldt=yes
4781 else
4782   echo "$as_me: failed program was:" >&5
4783 cat conftest.$ac_ext >&5
4784 ac_cv_lib_i386_i386_set_ldt=no
4785 fi
4786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4787 LIBS=$ac_check_lib_save_LIBS
4788 fi
4789 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
4790 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4791 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
4792   cat >>confdefs.h <<_ACEOF
4793 #define HAVE_LIBI386 1
4794 _ACEOF
4795
4796   LIBS="-li386 $LIBS"
4797
4798 fi
4799
4800
4801 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4802 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4803 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4804   echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806   ac_check_lib_save_LIBS=$LIBS
4807 LIBS="-lossaudio  $LIBS"
4808 cat >conftest.$ac_ext <<_ACEOF
4809 #line $LINENO "configure"
4810 #include "confdefs.h"
4811
4812 /* Override any gcc2 internal prototype to avoid an error.  */
4813 #ifdef __cplusplus
4814 extern "C"
4815 #endif
4816 /* We use char because int might match the return type of a gcc2
4817    builtin and then its argument prototype would still apply.  */
4818 char _oss_ioctl ();
4819 int
4820 main ()
4821 {
4822 _oss_ioctl ();
4823   ;
4824   return 0;
4825 }
4826 _ACEOF
4827 rm -f conftest.$ac_objext conftest$ac_exeext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4829   (eval $ac_link) 2>&5
4830   ac_status=$?
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); } &&
4833          { ac_try='test -s conftest$ac_exeext'
4834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835   (eval $ac_try) 2>&5
4836   ac_status=$?
4837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838   (exit $ac_status); }; }; then
4839   ac_cv_lib_ossaudio__oss_ioctl=yes
4840 else
4841   echo "$as_me: failed program was:" >&5
4842 cat conftest.$ac_ext >&5
4843 ac_cv_lib_ossaudio__oss_ioctl=no
4844 fi
4845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4846 LIBS=$ac_check_lib_save_LIBS
4847 fi
4848 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4849 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4850 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4851   cat >>confdefs.h <<_ACEOF
4852 #define HAVE_LIBOSSAUDIO 1
4853 _ACEOF
4854
4855   LIBS="-lossaudio $LIBS"
4856
4857 fi
4858
4859
4860 for ac_func in iswalnum
4861 do
4862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4863 echo "$as_me:$LINENO: checking for $ac_func" >&5
4864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4865 if eval "test \"\${$as_ac_var+set}\" = set"; then
4866   echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868   cat >conftest.$ac_ext <<_ACEOF
4869 #line $LINENO "configure"
4870 #include "confdefs.h"
4871 /* System header to define __stub macros and hopefully few prototypes,
4872     which can conflict with char $ac_func (); below.  */
4873 #include <assert.h>
4874 /* Override any gcc2 internal prototype to avoid an error.  */
4875 #ifdef __cplusplus
4876 extern "C"
4877 #endif
4878 /* We use char because int might match the return type of a gcc2
4879    builtin and then its argument prototype would still apply.  */
4880 char $ac_func ();
4881 char (*f) ();
4882
4883 int
4884 main ()
4885 {
4886 /* The GNU C library defines this for functions which it implements
4887     to always fail with ENOSYS.  Some functions are actually named
4888     something starting with __ and the normal name is an alias.  */
4889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4890 choke me
4891 #else
4892 f = $ac_func;
4893 #endif
4894
4895   ;
4896   return 0;
4897 }
4898 _ACEOF
4899 rm -f conftest.$ac_objext conftest$ac_exeext
4900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4901   (eval $ac_link) 2>&5
4902   ac_status=$?
4903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904   (exit $ac_status); } &&
4905          { ac_try='test -s conftest$ac_exeext'
4906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907   (eval $ac_try) 2>&5
4908   ac_status=$?
4909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910   (exit $ac_status); }; }; then
4911   eval "$as_ac_var=yes"
4912 else
4913   echo "$as_me: failed program was:" >&5
4914 cat conftest.$ac_ext >&5
4915 eval "$as_ac_var=no"
4916 fi
4917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4918 fi
4919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4921 if test `eval echo '${'$as_ac_var'}'` = yes; then
4922   cat >>confdefs.h <<_ACEOF
4923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4924 _ACEOF
4925
4926 else
4927
4928 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
4929 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4930 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4931   echo $ECHO_N "(cached) $ECHO_C" >&6
4932 else
4933   ac_check_lib_save_LIBS=$LIBS
4934 LIBS="-lw  $LIBS"
4935 cat >conftest.$ac_ext <<_ACEOF
4936 #line $LINENO "configure"
4937 #include "confdefs.h"
4938
4939 /* Override any gcc2 internal prototype to avoid an error.  */
4940 #ifdef __cplusplus
4941 extern "C"
4942 #endif
4943 /* We use char because int might match the return type of a gcc2
4944    builtin and then its argument prototype would still apply.  */
4945 char iswalnum ();
4946 int
4947 main ()
4948 {
4949 iswalnum ();
4950   ;
4951   return 0;
4952 }
4953 _ACEOF
4954 rm -f conftest.$ac_objext conftest$ac_exeext
4955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4956   (eval $ac_link) 2>&5
4957   ac_status=$?
4958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959   (exit $ac_status); } &&
4960          { ac_try='test -s conftest$ac_exeext'
4961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962   (eval $ac_try) 2>&5
4963   ac_status=$?
4964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965   (exit $ac_status); }; }; then
4966   ac_cv_lib_w_iswalnum=yes
4967 else
4968   echo "$as_me: failed program was:" >&5
4969 cat conftest.$ac_ext >&5
4970 ac_cv_lib_w_iswalnum=no
4971 fi
4972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4973 LIBS=$ac_check_lib_save_LIBS
4974 fi
4975 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
4976 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4977 if test $ac_cv_lib_w_iswalnum = yes; then
4978   cat >>confdefs.h <<_ACEOF
4979 #define HAVE_LIBW 1
4980 _ACEOF
4981
4982   LIBS="-lw $LIBS"
4983
4984 fi
4985
4986 fi
4987 done
4988
4989
4990 for ac_func in gethostbyname
4991 do
4992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4993 echo "$as_me:$LINENO: checking for $ac_func" >&5
4994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4995 if eval "test \"\${$as_ac_var+set}\" = set"; then
4996   echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998   cat >conftest.$ac_ext <<_ACEOF
4999 #line $LINENO "configure"
5000 #include "confdefs.h"
5001 /* System header to define __stub macros and hopefully few prototypes,
5002     which can conflict with char $ac_func (); below.  */
5003 #include <assert.h>
5004 /* Override any gcc2 internal prototype to avoid an error.  */
5005 #ifdef __cplusplus
5006 extern "C"
5007 #endif
5008 /* We use char because int might match the return type of a gcc2
5009    builtin and then its argument prototype would still apply.  */
5010 char $ac_func ();
5011 char (*f) ();
5012
5013 int
5014 main ()
5015 {
5016 /* The GNU C library defines this for functions which it implements
5017     to always fail with ENOSYS.  Some functions are actually named
5018     something starting with __ and the normal name is an alias.  */
5019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5020 choke me
5021 #else
5022 f = $ac_func;
5023 #endif
5024
5025   ;
5026   return 0;
5027 }
5028 _ACEOF
5029 rm -f conftest.$ac_objext conftest$ac_exeext
5030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5031   (eval $ac_link) 2>&5
5032   ac_status=$?
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); } &&
5035          { ac_try='test -s conftest$ac_exeext'
5036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037   (eval $ac_try) 2>&5
5038   ac_status=$?
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); }; }; then
5041   eval "$as_ac_var=yes"
5042 else
5043   echo "$as_me: failed program was:" >&5
5044 cat conftest.$ac_ext >&5
5045 eval "$as_ac_var=no"
5046 fi
5047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5048 fi
5049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5051 if test `eval echo '${'$as_ac_var'}'` = yes; then
5052   cat >>confdefs.h <<_ACEOF
5053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5054 _ACEOF
5055
5056 else
5057
5058 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5059 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5060 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5061   echo $ECHO_N "(cached) $ECHO_C" >&6
5062 else
5063   ac_check_lib_save_LIBS=$LIBS
5064 LIBS="-lnsl  $LIBS"
5065 cat >conftest.$ac_ext <<_ACEOF
5066 #line $LINENO "configure"
5067 #include "confdefs.h"
5068
5069 /* Override any gcc2 internal prototype to avoid an error.  */
5070 #ifdef __cplusplus
5071 extern "C"
5072 #endif
5073 /* We use char because int might match the return type of a gcc2
5074    builtin and then its argument prototype would still apply.  */
5075 char gethostbyname ();
5076 int
5077 main ()
5078 {
5079 gethostbyname ();
5080   ;
5081   return 0;
5082 }
5083 _ACEOF
5084 rm -f conftest.$ac_objext conftest$ac_exeext
5085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5086   (eval $ac_link) 2>&5
5087   ac_status=$?
5088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089   (exit $ac_status); } &&
5090          { ac_try='test -s conftest$ac_exeext'
5091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092   (eval $ac_try) 2>&5
5093   ac_status=$?
5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095   (exit $ac_status); }; }; then
5096   ac_cv_lib_nsl_gethostbyname=yes
5097 else
5098   echo "$as_me: failed program was:" >&5
5099 cat conftest.$ac_ext >&5
5100 ac_cv_lib_nsl_gethostbyname=no
5101 fi
5102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5103 LIBS=$ac_check_lib_save_LIBS
5104 fi
5105 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5106 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5107 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5108   cat >>confdefs.h <<_ACEOF
5109 #define HAVE_LIBNSL 1
5110 _ACEOF
5111
5112   LIBS="-lnsl $LIBS"
5113
5114 fi
5115
5116 fi
5117 done
5118
5119
5120 for ac_func in connect
5121 do
5122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5123 echo "$as_me:$LINENO: checking for $ac_func" >&5
5124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5125 if eval "test \"\${$as_ac_var+set}\" = set"; then
5126   echo $ECHO_N "(cached) $ECHO_C" >&6
5127 else
5128   cat >conftest.$ac_ext <<_ACEOF
5129 #line $LINENO "configure"
5130 #include "confdefs.h"
5131 /* System header to define __stub macros and hopefully few prototypes,
5132     which can conflict with char $ac_func (); below.  */
5133 #include <assert.h>
5134 /* Override any gcc2 internal prototype to avoid an error.  */
5135 #ifdef __cplusplus
5136 extern "C"
5137 #endif
5138 /* We use char because int might match the return type of a gcc2
5139    builtin and then its argument prototype would still apply.  */
5140 char $ac_func ();
5141 char (*f) ();
5142
5143 int
5144 main ()
5145 {
5146 /* The GNU C library defines this for functions which it implements
5147     to always fail with ENOSYS.  Some functions are actually named
5148     something starting with __ and the normal name is an alias.  */
5149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5150 choke me
5151 #else
5152 f = $ac_func;
5153 #endif
5154
5155   ;
5156   return 0;
5157 }
5158 _ACEOF
5159 rm -f conftest.$ac_objext conftest$ac_exeext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5161   (eval $ac_link) 2>&5
5162   ac_status=$?
5163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164   (exit $ac_status); } &&
5165          { ac_try='test -s conftest$ac_exeext'
5166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167   (eval $ac_try) 2>&5
5168   ac_status=$?
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); }; }; then
5171   eval "$as_ac_var=yes"
5172 else
5173   echo "$as_me: failed program was:" >&5
5174 cat conftest.$ac_ext >&5
5175 eval "$as_ac_var=no"
5176 fi
5177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5178 fi
5179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5181 if test `eval echo '${'$as_ac_var'}'` = yes; then
5182   cat >>confdefs.h <<_ACEOF
5183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5184 _ACEOF
5185
5186 else
5187
5188 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5189 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5190 if test "${ac_cv_lib_socket_connect+set}" = set; then
5191   echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193   ac_check_lib_save_LIBS=$LIBS
5194 LIBS="-lsocket  $LIBS"
5195 cat >conftest.$ac_ext <<_ACEOF
5196 #line $LINENO "configure"
5197 #include "confdefs.h"
5198
5199 /* Override any gcc2 internal prototype to avoid an error.  */
5200 #ifdef __cplusplus
5201 extern "C"
5202 #endif
5203 /* We use char because int might match the return type of a gcc2
5204    builtin and then its argument prototype would still apply.  */
5205 char connect ();
5206 int
5207 main ()
5208 {
5209 connect ();
5210   ;
5211   return 0;
5212 }
5213 _ACEOF
5214 rm -f conftest.$ac_objext conftest$ac_exeext
5215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5216   (eval $ac_link) 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); } &&
5220          { ac_try='test -s conftest$ac_exeext'
5221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222   (eval $ac_try) 2>&5
5223   ac_status=$?
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); }; }; then
5226   ac_cv_lib_socket_connect=yes
5227 else
5228   echo "$as_me: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5230 ac_cv_lib_socket_connect=no
5231 fi
5232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5233 LIBS=$ac_check_lib_save_LIBS
5234 fi
5235 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5236 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5237 if test $ac_cv_lib_socket_connect = yes; then
5238   cat >>confdefs.h <<_ACEOF
5239 #define HAVE_LIBSOCKET 1
5240 _ACEOF
5241
5242   LIBS="-lsocket $LIBS"
5243
5244 fi
5245
5246 fi
5247 done
5248
5249
5250 for ac_func in inet_aton
5251 do
5252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5253 echo "$as_me:$LINENO: checking for $ac_func" >&5
5254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5255 if eval "test \"\${$as_ac_var+set}\" = set"; then
5256   echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258   cat >conftest.$ac_ext <<_ACEOF
5259 #line $LINENO "configure"
5260 #include "confdefs.h"
5261 /* System header to define __stub macros and hopefully few prototypes,
5262     which can conflict with char $ac_func (); below.  */
5263 #include <assert.h>
5264 /* Override any gcc2 internal prototype to avoid an error.  */
5265 #ifdef __cplusplus
5266 extern "C"
5267 #endif
5268 /* We use char because int might match the return type of a gcc2
5269    builtin and then its argument prototype would still apply.  */
5270 char $ac_func ();
5271 char (*f) ();
5272
5273 int
5274 main ()
5275 {
5276 /* The GNU C library defines this for functions which it implements
5277     to always fail with ENOSYS.  Some functions are actually named
5278     something starting with __ and the normal name is an alias.  */
5279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5280 choke me
5281 #else
5282 f = $ac_func;
5283 #endif
5284
5285   ;
5286   return 0;
5287 }
5288 _ACEOF
5289 rm -f conftest.$ac_objext conftest$ac_exeext
5290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5291   (eval $ac_link) 2>&5
5292   ac_status=$?
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); } &&
5295          { ac_try='test -s conftest$ac_exeext'
5296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297   (eval $ac_try) 2>&5
5298   ac_status=$?
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); }; }; then
5301   eval "$as_ac_var=yes"
5302 else
5303   echo "$as_me: failed program was:" >&5
5304 cat conftest.$ac_ext >&5
5305 eval "$as_ac_var=no"
5306 fi
5307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5308 fi
5309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5311 if test `eval echo '${'$as_ac_var'}'` = yes; then
5312   cat >>confdefs.h <<_ACEOF
5313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5314 _ACEOF
5315
5316 else
5317
5318 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5319 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5320 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5321   echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323   ac_check_lib_save_LIBS=$LIBS
5324 LIBS="-lresolv  $LIBS"
5325 cat >conftest.$ac_ext <<_ACEOF
5326 #line $LINENO "configure"
5327 #include "confdefs.h"
5328
5329 /* Override any gcc2 internal prototype to avoid an error.  */
5330 #ifdef __cplusplus
5331 extern "C"
5332 #endif
5333 /* We use char because int might match the return type of a gcc2
5334    builtin and then its argument prototype would still apply.  */
5335 char inet_aton ();
5336 int
5337 main ()
5338 {
5339 inet_aton ();
5340   ;
5341   return 0;
5342 }
5343 _ACEOF
5344 rm -f conftest.$ac_objext conftest$ac_exeext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5346   (eval $ac_link) 2>&5
5347   ac_status=$?
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); } &&
5350          { ac_try='test -s conftest$ac_exeext'
5351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352   (eval $ac_try) 2>&5
5353   ac_status=$?
5354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355   (exit $ac_status); }; }; then
5356   ac_cv_lib_resolv_inet_aton=yes
5357 else
5358   echo "$as_me: failed program was:" >&5
5359 cat conftest.$ac_ext >&5
5360 ac_cv_lib_resolv_inet_aton=no
5361 fi
5362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5363 LIBS=$ac_check_lib_save_LIBS
5364 fi
5365 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5366 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5367 if test $ac_cv_lib_resolv_inet_aton = yes; then
5368   cat >>confdefs.h <<_ACEOF
5369 #define HAVE_LIBRESOLV 1
5370 _ACEOF
5371
5372   LIBS="-lresolv $LIBS"
5373
5374 fi
5375
5376 fi
5377 done
5378
5379
5380 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5381 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5382 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5383   echo $ECHO_N "(cached) $ECHO_C" >&6
5384 else
5385   ac_check_lib_save_LIBS=$LIBS
5386 LIBS="-lxpg4  $LIBS"
5387 cat >conftest.$ac_ext <<_ACEOF
5388 #line $LINENO "configure"
5389 #include "confdefs.h"
5390
5391 /* Override any gcc2 internal prototype to avoid an error.  */
5392 #ifdef __cplusplus
5393 extern "C"
5394 #endif
5395 /* We use char because int might match the return type of a gcc2
5396    builtin and then its argument prototype would still apply.  */
5397 char _xpg4_setrunelocale ();
5398 int
5399 main ()
5400 {
5401 _xpg4_setrunelocale ();
5402   ;
5403   return 0;
5404 }
5405 _ACEOF
5406 rm -f conftest.$ac_objext conftest$ac_exeext
5407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5408   (eval $ac_link) 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); } &&
5412          { ac_try='test -s conftest$ac_exeext'
5413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414   (eval $ac_try) 2>&5
5415   ac_status=$?
5416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417   (exit $ac_status); }; }; then
5418   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5419 else
5420   echo "$as_me: failed program was:" >&5
5421 cat conftest.$ac_ext >&5
5422 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5423 fi
5424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5425 LIBS=$ac_check_lib_save_LIBS
5426 fi
5427 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5428 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5429 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5430   cat >>confdefs.h <<_ACEOF
5431 #define HAVE_LIBXPG4 1
5432 _ACEOF
5433
5434   LIBS="-lxpg4 $LIBS"
5435
5436 fi
5437
5438
5439 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5440 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5441 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5442   echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444   ac_check_lib_save_LIBS=$LIBS
5445 LIBS="-lmmap  $LIBS"
5446 cat >conftest.$ac_ext <<_ACEOF
5447 #line $LINENO "configure"
5448 #include "confdefs.h"
5449
5450 /* Override any gcc2 internal prototype to avoid an error.  */
5451 #ifdef __cplusplus
5452 extern "C"
5453 #endif
5454 /* We use char because int might match the return type of a gcc2
5455    builtin and then its argument prototype would still apply.  */
5456 char mmap ();
5457 int
5458 main ()
5459 {
5460 mmap ();
5461   ;
5462   return 0;
5463 }
5464 _ACEOF
5465 rm -f conftest.$ac_objext conftest$ac_exeext
5466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5467   (eval $ac_link) 2>&5
5468   ac_status=$?
5469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); } &&
5471          { ac_try='test -s conftest$ac_exeext'
5472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473   (eval $ac_try) 2>&5
5474   ac_status=$?
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); }; }; then
5477   ac_cv_lib_mmap_mmap=yes
5478 else
5479   echo "$as_me: failed program was:" >&5
5480 cat conftest.$ac_ext >&5
5481 ac_cv_lib_mmap_mmap=no
5482 fi
5483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5484 LIBS=$ac_check_lib_save_LIBS
5485 fi
5486 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5487 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5488 if test $ac_cv_lib_mmap_mmap = yes; then
5489   cat >>confdefs.h <<_ACEOF
5490 #define HAVE_LIBMMAP 1
5491 _ACEOF
5492
5493   LIBS="-lmmap $LIBS"
5494
5495 fi
5496
5497
5498 JPEGLIB=""
5499
5500 echo "$as_me:$LINENO: checking for egrep" >&5
5501 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5502 if test "${ac_cv_prog_egrep+set}" = set; then
5503   echo $ECHO_N "(cached) $ECHO_C" >&6
5504 else
5505   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5506     then ac_cv_prog_egrep='grep -E'
5507     else ac_cv_prog_egrep='egrep'
5508     fi
5509 fi
5510 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5511 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5512  EGREP=$ac_cv_prog_egrep
5513
5514
5515 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5516 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5517 if test "${ac_cv_header_stdc+set}" = set; then
5518   echo $ECHO_N "(cached) $ECHO_C" >&6
5519 else
5520   cat >conftest.$ac_ext <<_ACEOF
5521 #line $LINENO "configure"
5522 #include "confdefs.h"
5523 #include <stdlib.h>
5524 #include <stdarg.h>
5525 #include <string.h>
5526 #include <float.h>
5527
5528 _ACEOF
5529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5530   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5531   ac_status=$?
5532   grep -v '^ *+' conftest.er1 >conftest.err
5533   rm -f conftest.er1
5534   cat conftest.err >&5
5535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536   (exit $ac_status); } >/dev/null; then
5537   if test -s conftest.err; then
5538     ac_cpp_err=$ac_c_preproc_warn_flag
5539   else
5540     ac_cpp_err=
5541   fi
5542 else
5543   ac_cpp_err=yes
5544 fi
5545 if test -z "$ac_cpp_err"; then
5546   ac_cv_header_stdc=yes
5547 else
5548   echo "$as_me: failed program was:" >&5
5549   cat conftest.$ac_ext >&5
5550   ac_cv_header_stdc=no
5551 fi
5552 rm -f conftest.err conftest.$ac_ext
5553
5554 if test $ac_cv_header_stdc = yes; then
5555   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5556   cat >conftest.$ac_ext <<_ACEOF
5557 #line $LINENO "configure"
5558 #include "confdefs.h"
5559 #include <string.h>
5560
5561 _ACEOF
5562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5563   $EGREP "memchr" >/dev/null 2>&1; then
5564   :
5565 else
5566   ac_cv_header_stdc=no
5567 fi
5568 rm -f conftest*
5569
5570 fi
5571
5572 if test $ac_cv_header_stdc = yes; then
5573   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5574   cat >conftest.$ac_ext <<_ACEOF
5575 #line $LINENO "configure"
5576 #include "confdefs.h"
5577 #include <stdlib.h>
5578
5579 _ACEOF
5580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5581   $EGREP "free" >/dev/null 2>&1; then
5582   :
5583 else
5584   ac_cv_header_stdc=no
5585 fi
5586 rm -f conftest*
5587
5588 fi
5589
5590 if test $ac_cv_header_stdc = yes; then
5591   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5592   if test "$cross_compiling" = yes; then
5593   :
5594 else
5595   cat >conftest.$ac_ext <<_ACEOF
5596 #line $LINENO "configure"
5597 #include "confdefs.h"
5598 #include <ctype.h>
5599 #if ((' ' & 0x0FF) == 0x020)
5600 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5601 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5602 #else
5603 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5604                      || ('j' <= (c) && (c) <= 'r') \
5605                      || ('s' <= (c) && (c) <= 'z'))
5606 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5607 #endif
5608
5609 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5610 int
5611 main ()
5612 {
5613   int i;
5614   for (i = 0; i < 256; i++)
5615     if (XOR (islower (i), ISLOWER (i))
5616         || toupper (i) != TOUPPER (i))
5617       exit(2);
5618   exit (0);
5619 }
5620 _ACEOF
5621 rm -f conftest$ac_exeext
5622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5623   (eval $ac_link) 2>&5
5624   ac_status=$?
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628   (eval $ac_try) 2>&5
5629   ac_status=$?
5630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631   (exit $ac_status); }; }; then
5632   :
5633 else
5634   echo "$as_me: program exited with status $ac_status" >&5
5635 echo "$as_me: failed program was:" >&5
5636 cat conftest.$ac_ext >&5
5637 ( exit $ac_status )
5638 ac_cv_header_stdc=no
5639 fi
5640 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5641 fi
5642 fi
5643 fi
5644 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5645 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5646 if test $ac_cv_header_stdc = yes; then
5647
5648 cat >>confdefs.h <<\_ACEOF
5649 #define STDC_HEADERS 1
5650 _ACEOF
5651
5652 fi
5653
5654 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5665                   inttypes.h stdint.h unistd.h
5666 do
5667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5668 echo "$as_me:$LINENO: checking for $ac_header" >&5
5669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5671   echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673   cat >conftest.$ac_ext <<_ACEOF
5674 #line $LINENO "configure"
5675 #include "confdefs.h"
5676 $ac_includes_default
5677
5678 #include <$ac_header>
5679 _ACEOF
5680 rm -f conftest.$ac_objext
5681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5682   (eval $ac_compile) 2>&5
5683   ac_status=$?
5684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685   (exit $ac_status); } &&
5686          { ac_try='test -s conftest.$ac_objext'
5687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688   (eval $ac_try) 2>&5
5689   ac_status=$?
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); }; }; then
5692   eval "$as_ac_Header=yes"
5693 else
5694   echo "$as_me: failed program was:" >&5
5695 cat conftest.$ac_ext >&5
5696 eval "$as_ac_Header=no"
5697 fi
5698 rm -f conftest.$ac_objext conftest.$ac_ext
5699 fi
5700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5703   cat >>confdefs.h <<_ACEOF
5704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5705 _ACEOF
5706
5707 fi
5708
5709 done
5710
5711
5712
5713 for ac_header in jpeglib.h
5714 do
5715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5717   echo "$as_me:$LINENO: checking for $ac_header" >&5
5718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5720   echo $ECHO_N "(cached) $ECHO_C" >&6
5721 fi
5722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5724 else
5725   # Is the header compilable?
5726 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5728 cat >conftest.$ac_ext <<_ACEOF
5729 #line $LINENO "configure"
5730 #include "confdefs.h"
5731 $ac_includes_default
5732 #include <$ac_header>
5733 _ACEOF
5734 rm -f conftest.$ac_objext
5735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5736   (eval $ac_compile) 2>&5
5737   ac_status=$?
5738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739   (exit $ac_status); } &&
5740          { ac_try='test -s conftest.$ac_objext'
5741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742   (eval $ac_try) 2>&5
5743   ac_status=$?
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); }; }; then
5746   ac_header_compiler=yes
5747 else
5748   echo "$as_me: failed program was:" >&5
5749 cat conftest.$ac_ext >&5
5750 ac_header_compiler=no
5751 fi
5752 rm -f conftest.$ac_objext conftest.$ac_ext
5753 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5754 echo "${ECHO_T}$ac_header_compiler" >&6
5755
5756 # Is the header present?
5757 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5759 cat >conftest.$ac_ext <<_ACEOF
5760 #line $LINENO "configure"
5761 #include "confdefs.h"
5762 #include <$ac_header>
5763 _ACEOF
5764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5765   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5766   ac_status=$?
5767   grep -v '^ *+' conftest.er1 >conftest.err
5768   rm -f conftest.er1
5769   cat conftest.err >&5
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); } >/dev/null; then
5772   if test -s conftest.err; then
5773     ac_cpp_err=$ac_c_preproc_warn_flag
5774   else
5775     ac_cpp_err=
5776   fi
5777 else
5778   ac_cpp_err=yes
5779 fi
5780 if test -z "$ac_cpp_err"; then
5781   ac_header_preproc=yes
5782 else
5783   echo "$as_me: failed program was:" >&5
5784   cat conftest.$ac_ext >&5
5785   ac_header_preproc=no
5786 fi
5787 rm -f conftest.err conftest.$ac_ext
5788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5789 echo "${ECHO_T}$ac_header_preproc" >&6
5790
5791 # So?  What about this header?
5792 case $ac_header_compiler:$ac_header_preproc in
5793   yes:no )
5794     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5798   no:yes )
5799     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5801     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5802 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5805 esac
5806 echo "$as_me:$LINENO: checking for $ac_header" >&5
5807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5809   echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811   eval "$as_ac_Header=$ac_header_preproc"
5812 fi
5813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5815
5816 fi
5817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5818   cat >>confdefs.h <<_ACEOF
5819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5820 _ACEOF
5821  echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
5822 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5823 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5824   echo $ECHO_N "(cached) $ECHO_C" >&6
5825 else
5826   ac_check_lib_save_LIBS=$LIBS
5827 LIBS="-ljpeg  $LIBS"
5828 cat >conftest.$ac_ext <<_ACEOF
5829 #line $LINENO "configure"
5830 #include "confdefs.h"
5831
5832 /* Override any gcc2 internal prototype to avoid an error.  */
5833 #ifdef __cplusplus
5834 extern "C"
5835 #endif
5836 /* We use char because int might match the return type of a gcc2
5837    builtin and then its argument prototype would still apply.  */
5838 char jpeg_start_decompress ();
5839 int
5840 main ()
5841 {
5842 jpeg_start_decompress ();
5843   ;
5844   return 0;
5845 }
5846 _ACEOF
5847 rm -f conftest.$ac_objext conftest$ac_exeext
5848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5849   (eval $ac_link) 2>&5
5850   ac_status=$?
5851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852   (exit $ac_status); } &&
5853          { ac_try='test -s conftest$ac_exeext'
5854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855   (eval $ac_try) 2>&5
5856   ac_status=$?
5857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858   (exit $ac_status); }; }; then
5859   ac_cv_lib_jpeg_jpeg_start_decompress=yes
5860 else
5861   echo "$as_me: failed program was:" >&5
5862 cat conftest.$ac_ext >&5
5863 ac_cv_lib_jpeg_jpeg_start_decompress=no
5864 fi
5865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5866 LIBS=$ac_check_lib_save_LIBS
5867 fi
5868 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
5869 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5870 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
5871
5872 cat >>confdefs.h <<\_ACEOF
5873 #define HAVE_LIBJPEG 1
5874 _ACEOF
5875
5876         JPEGLIB="-ljpeg"
5877
5878 fi
5879
5880
5881 fi
5882
5883 done
5884
5885
5886
5887
5888
5889 XFILES=""
5890
5891 OPENGLFILES=""
5892
5893 GLU32FILES=""
5894
5895 OPENGL_LIBS=""
5896 if test "$have_x" = "yes"
5897 then
5898     XLIB="-lXext -lX11"
5899     ac_save_CPPFLAGS="$CPPFLAGS"
5900     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5901
5902
5903 for ac_header in X11/Xlib.h
5904 do
5905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5907   echo "$as_me:$LINENO: checking for $ac_header" >&5
5908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5910   echo $ECHO_N "(cached) $ECHO_C" >&6
5911 fi
5912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5914 else
5915   # Is the header compilable?
5916 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5918 cat >conftest.$ac_ext <<_ACEOF
5919 #line $LINENO "configure"
5920 #include "confdefs.h"
5921 $ac_includes_default
5922 #include <$ac_header>
5923 _ACEOF
5924 rm -f conftest.$ac_objext
5925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5926   (eval $ac_compile) 2>&5
5927   ac_status=$?
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); } &&
5930          { ac_try='test -s conftest.$ac_objext'
5931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932   (eval $ac_try) 2>&5
5933   ac_status=$?
5934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935   (exit $ac_status); }; }; then
5936   ac_header_compiler=yes
5937 else
5938   echo "$as_me: failed program was:" >&5
5939 cat conftest.$ac_ext >&5
5940 ac_header_compiler=no
5941 fi
5942 rm -f conftest.$ac_objext conftest.$ac_ext
5943 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5944 echo "${ECHO_T}$ac_header_compiler" >&6
5945
5946 # Is the header present?
5947 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5948 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5949 cat >conftest.$ac_ext <<_ACEOF
5950 #line $LINENO "configure"
5951 #include "confdefs.h"
5952 #include <$ac_header>
5953 _ACEOF
5954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5955   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5956   ac_status=$?
5957   grep -v '^ *+' conftest.er1 >conftest.err
5958   rm -f conftest.er1
5959   cat conftest.err >&5
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); } >/dev/null; then
5962   if test -s conftest.err; then
5963     ac_cpp_err=$ac_c_preproc_warn_flag
5964   else
5965     ac_cpp_err=
5966   fi
5967 else
5968   ac_cpp_err=yes
5969 fi
5970 if test -z "$ac_cpp_err"; then
5971   ac_header_preproc=yes
5972 else
5973   echo "$as_me: failed program was:" >&5
5974   cat conftest.$ac_ext >&5
5975   ac_header_preproc=no
5976 fi
5977 rm -f conftest.err conftest.$ac_ext
5978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5979 echo "${ECHO_T}$ac_header_preproc" >&6
5980
5981 # So?  What about this header?
5982 case $ac_header_compiler:$ac_header_preproc in
5983   yes:no )
5984     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5986     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5988   no:yes )
5989     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5991     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5993     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5995 esac
5996 echo "$as_me:$LINENO: checking for $ac_header" >&5
5997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5999   echo $ECHO_N "(cached) $ECHO_C" >&6
6000 else
6001   eval "$as_ac_Header=$ac_header_preproc"
6002 fi
6003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6005
6006 fi
6007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6008   cat >>confdefs.h <<_ACEOF
6009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6010 _ACEOF
6011
6012
6013 for ac_header in X11/XKBlib.h
6014 do
6015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6016 echo "$as_me:$LINENO: checking for $ac_header" >&5
6017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6019   echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021   cat >conftest.$ac_ext <<_ACEOF
6022 #line $LINENO "configure"
6023 #include "confdefs.h"
6024 #include <X11/Xlib.h>
6025
6026 #include <$ac_header>
6027 _ACEOF
6028 rm -f conftest.$ac_objext
6029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6030   (eval $ac_compile) 2>&5
6031   ac_status=$?
6032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033   (exit $ac_status); } &&
6034          { ac_try='test -s conftest.$ac_objext'
6035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036   (eval $ac_try) 2>&5
6037   ac_status=$?
6038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039   (exit $ac_status); }; }; then
6040   eval "$as_ac_Header=yes"
6041 else
6042   echo "$as_me: failed program was:" >&5
6043 cat conftest.$ac_ext >&5
6044 eval "$as_ac_Header=no"
6045 fi
6046 rm -f conftest.$ac_objext conftest.$ac_ext
6047 fi
6048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6051   cat >>confdefs.h <<_ACEOF
6052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6053 _ACEOF
6054                 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6055 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6056 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6057   echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059   ac_check_lib_save_LIBS=$LIBS
6060 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6061 cat >conftest.$ac_ext <<_ACEOF
6062 #line $LINENO "configure"
6063 #include "confdefs.h"
6064
6065 /* Override any gcc2 internal prototype to avoid an error.  */
6066 #ifdef __cplusplus
6067 extern "C"
6068 #endif
6069 /* We use char because int might match the return type of a gcc2
6070    builtin and then its argument prototype would still apply.  */
6071 char XkbQueryExtension ();
6072 int
6073 main ()
6074 {
6075 XkbQueryExtension ();
6076   ;
6077   return 0;
6078 }
6079 _ACEOF
6080 rm -f conftest.$ac_objext conftest$ac_exeext
6081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6082   (eval $ac_link) 2>&5
6083   ac_status=$?
6084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085   (exit $ac_status); } &&
6086          { ac_try='test -s conftest$ac_exeext'
6087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088   (eval $ac_try) 2>&5
6089   ac_status=$?
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); }; }; then
6092   ac_cv_lib_X11_XkbQueryExtension=yes
6093 else
6094   echo "$as_me: failed program was:" >&5
6095 cat conftest.$ac_ext >&5
6096 ac_cv_lib_X11_XkbQueryExtension=no
6097 fi
6098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6099 LIBS=$ac_check_lib_save_LIBS
6100 fi
6101 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6102 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6103 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6104
6105 cat >>confdefs.h <<\_ACEOF
6106 #define HAVE_XKB 1
6107 _ACEOF
6108
6109 fi
6110
6111
6112 else
6113   { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6114 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6115 fi
6116
6117 done
6118
6119
6120
6121 for ac_header in X11/extensions/XShm.h
6122 do
6123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6124 echo "$as_me:$LINENO: checking for $ac_header" >&5
6125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6127   echo $ECHO_N "(cached) $ECHO_C" >&6
6128 else
6129   cat >conftest.$ac_ext <<_ACEOF
6130 #line $LINENO "configure"
6131 #include "confdefs.h"
6132 #include <X11/Xlib.h>
6133
6134 #include <$ac_header>
6135 _ACEOF
6136 rm -f conftest.$ac_objext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6138   (eval $ac_compile) 2>&5
6139   ac_status=$?
6140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141   (exit $ac_status); } &&
6142          { ac_try='test -s conftest.$ac_objext'
6143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144   (eval $ac_try) 2>&5
6145   ac_status=$?
6146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147   (exit $ac_status); }; }; then
6148   eval "$as_ac_Header=yes"
6149 else
6150   echo "$as_me: failed program was:" >&5
6151 cat conftest.$ac_ext >&5
6152 eval "$as_ac_Header=no"
6153 fi
6154 rm -f conftest.$ac_objext conftest.$ac_ext
6155 fi
6156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6159   cat >>confdefs.h <<_ACEOF
6160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6161 _ACEOF
6162                 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6163 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6164 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6165   echo $ECHO_N "(cached) $ECHO_C" >&6
6166 else
6167   ac_check_lib_save_LIBS=$LIBS
6168 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6169 cat >conftest.$ac_ext <<_ACEOF
6170 #line $LINENO "configure"
6171 #include "confdefs.h"
6172
6173 /* Override any gcc2 internal prototype to avoid an error.  */
6174 #ifdef __cplusplus
6175 extern "C"
6176 #endif
6177 /* We use char because int might match the return type of a gcc2
6178    builtin and then its argument prototype would still apply.  */
6179 char XShmQueryExtension ();
6180 int
6181 main ()
6182 {
6183 XShmQueryExtension ();
6184   ;
6185   return 0;
6186 }
6187 _ACEOF
6188 rm -f conftest.$ac_objext conftest$ac_exeext
6189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6190   (eval $ac_link) 2>&5
6191   ac_status=$?
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); } &&
6194          { ac_try='test -s conftest$ac_exeext'
6195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196   (eval $ac_try) 2>&5
6197   ac_status=$?
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); }; }; then
6200   ac_cv_lib_Xext_XShmQueryExtension=yes
6201 else
6202   echo "$as_me: failed program was:" >&5
6203 cat conftest.$ac_ext >&5
6204 ac_cv_lib_Xext_XShmQueryExtension=no
6205 fi
6206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6207 LIBS=$ac_check_lib_save_LIBS
6208 fi
6209 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
6210 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6211 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
6212
6213 cat >>confdefs.h <<\_ACEOF
6214 #define HAVE_LIBXXSHM 1
6215 _ACEOF
6216
6217 fi
6218
6219
6220 else
6221   { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
6222 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
6223 fi
6224
6225 done
6226
6227
6228
6229 for ac_header in X11/Xutil.h
6230 do
6231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6232 echo "$as_me:$LINENO: checking for $ac_header" >&5
6233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6235   echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237   cat >conftest.$ac_ext <<_ACEOF
6238 #line $LINENO "configure"
6239 #include "confdefs.h"
6240 #include <X11/Xlib.h>
6241
6242 #include <$ac_header>
6243 _ACEOF
6244 rm -f conftest.$ac_objext
6245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6246   (eval $ac_compile) 2>&5
6247   ac_status=$?
6248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249   (exit $ac_status); } &&
6250          { ac_try='test -s conftest.$ac_objext'
6251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252   (eval $ac_try) 2>&5
6253   ac_status=$?
6254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255   (exit $ac_status); }; }; then
6256   eval "$as_ac_Header=yes"
6257 else
6258   echo "$as_me: failed program was:" >&5
6259 cat conftest.$ac_ext >&5
6260 eval "$as_ac_Header=no"
6261 fi
6262 rm -f conftest.$ac_objext conftest.$ac_ext
6263 fi
6264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6267   cat >>confdefs.h <<_ACEOF
6268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6269 _ACEOF
6270
6271 fi
6272
6273 done
6274
6275
6276
6277 for ac_header in X11/extensions/shape.h
6278 do
6279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6280 echo "$as_me:$LINENO: checking for $ac_header" >&5
6281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6283   echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285   cat >conftest.$ac_ext <<_ACEOF
6286 #line $LINENO "configure"
6287 #include "confdefs.h"
6288 #include <X11/Xlib.h>
6289              #ifdef HAVE_X11_XUTIL_H
6290              # include <X11/Xutil.h>
6291              #endif
6292
6293 #include <$ac_header>
6294 _ACEOF
6295 rm -f conftest.$ac_objext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297   (eval $ac_compile) 2>&5
6298   ac_status=$?
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); } &&
6301          { ac_try='test -s conftest.$ac_objext'
6302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303   (eval $ac_try) 2>&5
6304   ac_status=$?
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); }; }; then
6307   eval "$as_ac_Header=yes"
6308 else
6309   echo "$as_me: failed program was:" >&5
6310 cat conftest.$ac_ext >&5
6311 eval "$as_ac_Header=no"
6312 fi
6313 rm -f conftest.$ac_objext conftest.$ac_ext
6314 fi
6315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6318   cat >>confdefs.h <<_ACEOF
6319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6320 _ACEOF
6321                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
6322 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6323 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6324   echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326   ac_check_lib_save_LIBS=$LIBS
6327 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6328 cat >conftest.$ac_ext <<_ACEOF
6329 #line $LINENO "configure"
6330 #include "confdefs.h"
6331
6332 /* Override any gcc2 internal prototype to avoid an error.  */
6333 #ifdef __cplusplus
6334 extern "C"
6335 #endif
6336 /* We use char because int might match the return type of a gcc2
6337    builtin and then its argument prototype would still apply.  */
6338 char XShapeQueryExtension ();
6339 int
6340 main ()
6341 {
6342 XShapeQueryExtension ();
6343   ;
6344   return 0;
6345 }
6346 _ACEOF
6347 rm -f conftest.$ac_objext conftest$ac_exeext
6348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6349   (eval $ac_link) 2>&5
6350   ac_status=$?
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); } &&
6353          { ac_try='test -s conftest$ac_exeext'
6354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355   (eval $ac_try) 2>&5
6356   ac_status=$?
6357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358   (exit $ac_status); }; }; then
6359   ac_cv_lib_Xext_XShapeQueryExtension=yes
6360 else
6361   echo "$as_me: failed program was:" >&5
6362 cat conftest.$ac_ext >&5
6363 ac_cv_lib_Xext_XShapeQueryExtension=no
6364 fi
6365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6366 LIBS=$ac_check_lib_save_LIBS
6367 fi
6368 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6369 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6370 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6371
6372 cat >>confdefs.h <<\_ACEOF
6373 #define HAVE_LIBXSHAPE 1
6374 _ACEOF
6375
6376 fi
6377
6378
6379 else
6380   { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
6381 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
6382 fi
6383
6384 done
6385
6386
6387
6388 for ac_header in X11/extensions/xf86dga.h
6389 do
6390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6391 echo "$as_me:$LINENO: checking for $ac_header" >&5
6392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6394   echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6396   cat >conftest.$ac_ext <<_ACEOF
6397 #line $LINENO "configure"
6398 #include "confdefs.h"
6399 #include <X11/Xlib.h>
6400
6401 #include <$ac_header>
6402 _ACEOF
6403 rm -f conftest.$ac_objext
6404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405   (eval $ac_compile) 2>&5
6406   ac_status=$?
6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); } &&
6409          { ac_try='test -s conftest.$ac_objext'
6410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411   (eval $ac_try) 2>&5
6412   ac_status=$?
6413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414   (exit $ac_status); }; }; then
6415   eval "$as_ac_Header=yes"
6416 else
6417   echo "$as_me: failed program was:" >&5
6418 cat conftest.$ac_ext >&5
6419 eval "$as_ac_Header=no"
6420 fi
6421 rm -f conftest.$ac_objext conftest.$ac_ext
6422 fi
6423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6426   cat >>confdefs.h <<_ACEOF
6427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6428 _ACEOF
6429                               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
6430 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6431 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6432   echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434   ac_check_lib_save_LIBS=$LIBS
6435 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6436                $LIBS"
6437 cat >conftest.$ac_ext <<_ACEOF
6438 #line $LINENO "configure"
6439 #include "confdefs.h"
6440
6441 /* Override any gcc2 internal prototype to avoid an error.  */
6442 #ifdef __cplusplus
6443 extern "C"
6444 #endif
6445 /* We use char because int might match the return type of a gcc2
6446    builtin and then its argument prototype would still apply.  */
6447 char XDGAQueryExtension ();
6448 int
6449 main ()
6450 {
6451 XDGAQueryExtension ();
6452   ;
6453   return 0;
6454 }
6455 _ACEOF
6456 rm -f conftest.$ac_objext conftest$ac_exeext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6458   (eval $ac_link) 2>&5
6459   ac_status=$?
6460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461   (exit $ac_status); } &&
6462          { ac_try='test -s conftest$ac_exeext'
6463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464   (eval $ac_try) 2>&5
6465   ac_status=$?
6466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467   (exit $ac_status); }; }; then
6468   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
6469 else
6470   echo "$as_me: failed program was:" >&5
6471 cat conftest.$ac_ext >&5
6472 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
6473 fi
6474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6475 LIBS=$ac_check_lib_save_LIBS
6476 fi
6477 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
6478 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6479 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
6480
6481 cat >>confdefs.h <<\_ACEOF
6482 #define HAVE_LIBXXF86DGA2 1
6483 _ACEOF
6484
6485                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6486
6487 else
6488                                        echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
6489 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6490 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6491   echo $ECHO_N "(cached) $ECHO_C" >&6
6492 else
6493   ac_check_lib_save_LIBS=$LIBS
6494 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6495                    $LIBS"
6496 cat >conftest.$ac_ext <<_ACEOF
6497 #line $LINENO "configure"
6498 #include "confdefs.h"
6499
6500 /* Override any gcc2 internal prototype to avoid an error.  */
6501 #ifdef __cplusplus
6502 extern "C"
6503 #endif
6504 /* We use char because int might match the return type of a gcc2
6505    builtin and then its argument prototype would still apply.  */
6506 char XF86DGAQueryExtension ();
6507 int
6508 main ()
6509 {
6510 XF86DGAQueryExtension ();
6511   ;
6512   return 0;
6513 }
6514 _ACEOF
6515 rm -f conftest.$ac_objext conftest$ac_exeext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6517   (eval $ac_link) 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_Xxf86dga_XF86DGAQueryExtension=yes
6528 else
6529   echo "$as_me: failed program was:" >&5
6530 cat conftest.$ac_ext >&5
6531 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
6532 fi
6533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6534 LIBS=$ac_check_lib_save_LIBS
6535 fi
6536 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
6537 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6538 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
6539
6540 cat >>confdefs.h <<\_ACEOF
6541 #define HAVE_LIBXXF86DGA 1
6542 _ACEOF
6543
6544                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6545
6546 fi
6547
6548
6549 fi
6550
6551
6552 else
6553   { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
6554 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
6555 fi
6556
6557 done
6558
6559
6560
6561 for ac_header in X11/extensions/xf86vmode.h
6562 do
6563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6564 echo "$as_me:$LINENO: checking for $ac_header" >&5
6565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6567   echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569   cat >conftest.$ac_ext <<_ACEOF
6570 #line $LINENO "configure"
6571 #include "confdefs.h"
6572 #include <X11/Xlib.h>
6573
6574 #include <$ac_header>
6575 _ACEOF
6576 rm -f conftest.$ac_objext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6578   (eval $ac_compile) 2>&5
6579   ac_status=$?
6580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581   (exit $ac_status); } &&
6582          { ac_try='test -s conftest.$ac_objext'
6583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584   (eval $ac_try) 2>&5
6585   ac_status=$?
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); }; }; then
6588   eval "$as_ac_Header=yes"
6589 else
6590   echo "$as_me: failed program was:" >&5
6591 cat conftest.$ac_ext >&5
6592 eval "$as_ac_Header=no"
6593 fi
6594 rm -f conftest.$ac_objext conftest.$ac_ext
6595 fi
6596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6599   cat >>confdefs.h <<_ACEOF
6600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6601 _ACEOF
6602                   echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
6603 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6604 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6605   echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607   ac_check_lib_save_LIBS=$LIBS
6608 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6609                  $LIBS"
6610 cat >conftest.$ac_ext <<_ACEOF
6611 #line $LINENO "configure"
6612 #include "confdefs.h"
6613
6614 /* Override any gcc2 internal prototype to avoid an error.  */
6615 #ifdef __cplusplus
6616 extern "C"
6617 #endif
6618 /* We use char because int might match the return type of a gcc2
6619    builtin and then its argument prototype would still apply.  */
6620 char XF86VidModeQueryExtension ();
6621 int
6622 main ()
6623 {
6624 XF86VidModeQueryExtension ();
6625   ;
6626   return 0;
6627 }
6628 _ACEOF
6629 rm -f conftest.$ac_objext conftest$ac_exeext
6630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6631   (eval $ac_link) 2>&5
6632   ac_status=$?
6633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634   (exit $ac_status); } &&
6635          { ac_try='test -s conftest$ac_exeext'
6636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637   (eval $ac_try) 2>&5
6638   ac_status=$?
6639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640   (exit $ac_status); }; }; then
6641   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
6642 else
6643   echo "$as_me: failed program was:" >&5
6644 cat conftest.$ac_ext >&5
6645 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
6646 fi
6647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6648 LIBS=$ac_check_lib_save_LIBS
6649 fi
6650 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
6651 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6652 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
6653
6654 cat >>confdefs.h <<\_ACEOF
6655 #define HAVE_LIBXXF86VM 1
6656 _ACEOF
6657
6658                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
6659
6660 fi
6661
6662
6663 else
6664   { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
6665 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
6666 fi
6667
6668 done
6669
6670
6671
6672 for ac_header in X11/extensions/Xvlib.h
6673 do
6674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6675 echo "$as_me:$LINENO: checking for $ac_header" >&5
6676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6678   echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680   cat >conftest.$ac_ext <<_ACEOF
6681 #line $LINENO "configure"
6682 #include "confdefs.h"
6683 #include <X11/Xlib.h>
6684
6685 #include <$ac_header>
6686 _ACEOF
6687 rm -f conftest.$ac_objext
6688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6689   (eval $ac_compile) 2>&5
6690   ac_status=$?
6691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692   (exit $ac_status); } &&
6693          { ac_try='test -s conftest.$ac_objext'
6694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695   (eval $ac_try) 2>&5
6696   ac_status=$?
6697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698   (exit $ac_status); }; }; then
6699   eval "$as_ac_Header=yes"
6700 else
6701   echo "$as_me: failed program was:" >&5
6702 cat conftest.$ac_ext >&5
6703 eval "$as_ac_Header=no"
6704 fi
6705 rm -f conftest.$ac_objext conftest.$ac_ext
6706 fi
6707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6710   cat >>confdefs.h <<_ACEOF
6711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6712 _ACEOF
6713                   echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
6714 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6715 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6716   echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718   ac_check_lib_save_LIBS=$LIBS
6719 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6720                  $LIBS"
6721 cat >conftest.$ac_ext <<_ACEOF
6722 #line $LINENO "configure"
6723 #include "confdefs.h"
6724
6725 /* Override any gcc2 internal prototype to avoid an error.  */
6726 #ifdef __cplusplus
6727 extern "C"
6728 #endif
6729 /* We use char because int might match the return type of a gcc2
6730    builtin and then its argument prototype would still apply.  */
6731 char XvShmCreateImage ();
6732 int
6733 main ()
6734 {
6735 XvShmCreateImage ();
6736   ;
6737   return 0;
6738 }
6739 _ACEOF
6740 rm -f conftest.$ac_objext conftest$ac_exeext
6741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6742   (eval $ac_link) 2>&5
6743   ac_status=$?
6744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745   (exit $ac_status); } &&
6746          { ac_try='test -s conftest$ac_exeext'
6747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748   (eval $ac_try) 2>&5
6749   ac_status=$?
6750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751   (exit $ac_status); }; }; then
6752   ac_cv_lib_Xv_XvShmCreateImage=yes
6753 else
6754   echo "$as_me: failed program was:" >&5
6755 cat conftest.$ac_ext >&5
6756 ac_cv_lib_Xv_XvShmCreateImage=no
6757 fi
6758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6759 LIBS=$ac_check_lib_save_LIBS
6760 fi
6761 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
6762 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6763 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
6764
6765 cat >>confdefs.h <<\_ACEOF
6766 #define HAVE_XVIDEO 1
6767 _ACEOF
6768
6769                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
6770
6771 fi
6772
6773
6774 else
6775   { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
6776 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
6777 fi
6778
6779 done
6780
6781
6782
6783 for ac_header in X11/extensions/Xrender.h
6784 do
6785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6786 echo "$as_me:$LINENO: checking for $ac_header" >&5
6787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6789   echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791   cat >conftest.$ac_ext <<_ACEOF
6792 #line $LINENO "configure"
6793 #include "confdefs.h"
6794 #include <X11/Xlib.h>
6795
6796 #include <$ac_header>
6797 _ACEOF
6798 rm -f conftest.$ac_objext
6799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6800   (eval $ac_compile) 2>&5
6801   ac_status=$?
6802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803   (exit $ac_status); } &&
6804          { ac_try='test -s conftest.$ac_objext'
6805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806   (eval $ac_try) 2>&5
6807   ac_status=$?
6808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809   (exit $ac_status); }; }; then
6810   eval "$as_ac_Header=yes"
6811 else
6812   echo "$as_me: failed program was:" >&5
6813 cat conftest.$ac_ext >&5
6814 eval "$as_ac_Header=no"
6815 fi
6816 rm -f conftest.$ac_objext conftest.$ac_ext
6817 fi
6818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6821   cat >>confdefs.h <<_ACEOF
6822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6823 _ACEOF
6824
6825 fi
6826
6827 done
6828
6829
6830
6831 fi
6832
6833 done
6834
6835         if test "x$with_opengl" != "xno"
6836     then
6837         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
6838         then
6839             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
6840 This prevents linking to OpenGL. Delete the file and restart configure." >&5
6841 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6842 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6843    { (exit 1); exit 1; }; }
6844         fi
6845
6846
6847
6848 for ac_header in GL/gl.h GL/glx.h
6849 do
6850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6852   echo "$as_me:$LINENO: checking for $ac_header" >&5
6853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6855   echo $ECHO_N "(cached) $ECHO_C" >&6
6856 fi
6857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6859 else
6860   # Is the header compilable?
6861 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6863 cat >conftest.$ac_ext <<_ACEOF
6864 #line $LINENO "configure"
6865 #include "confdefs.h"
6866 $ac_includes_default
6867 #include <$ac_header>
6868 _ACEOF
6869 rm -f conftest.$ac_objext
6870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6871   (eval $ac_compile) 2>&5
6872   ac_status=$?
6873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874   (exit $ac_status); } &&
6875          { ac_try='test -s conftest.$ac_objext'
6876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877   (eval $ac_try) 2>&5
6878   ac_status=$?
6879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880   (exit $ac_status); }; }; then
6881   ac_header_compiler=yes
6882 else
6883   echo "$as_me: failed program was:" >&5
6884 cat conftest.$ac_ext >&5
6885 ac_header_compiler=no
6886 fi
6887 rm -f conftest.$ac_objext conftest.$ac_ext
6888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6889 echo "${ECHO_T}$ac_header_compiler" >&6
6890
6891 # Is the header present?
6892 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6894 cat >conftest.$ac_ext <<_ACEOF
6895 #line $LINENO "configure"
6896 #include "confdefs.h"
6897 #include <$ac_header>
6898 _ACEOF
6899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6901   ac_status=$?
6902   grep -v '^ *+' conftest.er1 >conftest.err
6903   rm -f conftest.er1
6904   cat conftest.err >&5
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); } >/dev/null; then
6907   if test -s conftest.err; then
6908     ac_cpp_err=$ac_c_preproc_warn_flag
6909   else
6910     ac_cpp_err=
6911   fi
6912 else
6913   ac_cpp_err=yes
6914 fi
6915 if test -z "$ac_cpp_err"; then
6916   ac_header_preproc=yes
6917 else
6918   echo "$as_me: failed program was:" >&5
6919   cat conftest.$ac_ext >&5
6920   ac_header_preproc=no
6921 fi
6922 rm -f conftest.err conftest.$ac_ext
6923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6924 echo "${ECHO_T}$ac_header_preproc" >&6
6925
6926 # So?  What about this header?
6927 case $ac_header_compiler:$ac_header_preproc in
6928   yes:no )
6929     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6933   no:yes )
6934     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6936     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6940 esac
6941 echo "$as_me:$LINENO: checking for $ac_header" >&5
6942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6944   echo $ECHO_N "(cached) $ECHO_C" >&6
6945 else
6946   eval "$as_ac_Header=$ac_header_preproc"
6947 fi
6948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6950
6951 fi
6952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6953   cat >>confdefs.h <<_ACEOF
6954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6955 _ACEOF
6956
6957 fi
6958
6959 done
6960
6961         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
6962         then
6963
6964 for ac_header in GL/glext.h
6965 do
6966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6967 echo "$as_me:$LINENO: checking for $ac_header" >&5
6968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6970   echo $ECHO_N "(cached) $ECHO_C" >&6
6971 else
6972   cat >conftest.$ac_ext <<_ACEOF
6973 #line $LINENO "configure"
6974 #include "confdefs.h"
6975 #include <GL/glx.h>
6976
6977 #include <$ac_header>
6978 _ACEOF
6979 rm -f conftest.$ac_objext
6980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6981   (eval $ac_compile) 2>&5
6982   ac_status=$?
6983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984   (exit $ac_status); } &&
6985          { ac_try='test -s conftest.$ac_objext'
6986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987   (eval $ac_try) 2>&5
6988   ac_status=$?
6989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990   (exit $ac_status); }; }; then
6991   eval "$as_ac_Header=yes"
6992 else
6993   echo "$as_me: failed program was:" >&5
6994 cat conftest.$ac_ext >&5
6995 eval "$as_ac_Header=no"
6996 fi
6997 rm -f conftest.$ac_objext conftest.$ac_ext
6998 fi
6999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7002   cat >>confdefs.h <<_ACEOF
7003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7004 _ACEOF
7005
7006 fi
7007
7008 done
7009
7010                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7011 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7012 if test "${wine_cv_opengl_version_OK+set}" = set; then
7013   echo $ECHO_N "(cached) $ECHO_C" >&6
7014 else
7015   cat >conftest.$ac_ext <<_ACEOF
7016 #line $LINENO "configure"
7017 #include "confdefs.h"
7018 #include <GL/gl.h>
7019 int
7020 main ()
7021 {
7022 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7023   ;
7024   return 0;
7025 }
7026 _ACEOF
7027 rm -f conftest.$ac_objext
7028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7029   (eval $ac_compile) 2>&5
7030   ac_status=$?
7031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032   (exit $ac_status); } &&
7033          { ac_try='test -s conftest.$ac_objext'
7034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035   (eval $ac_try) 2>&5
7036   ac_status=$?
7037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038   (exit $ac_status); }; }; then
7039   wine_cv_opengl_version_OK="yes"
7040 else
7041   echo "$as_me: failed program was:" >&5
7042 cat conftest.$ac_ext >&5
7043 wine_cv_opengl_version_OK="no"
7044
7045 fi
7046 rm -f conftest.$ac_objext conftest.$ac_ext
7047
7048 fi
7049 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7050 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7051
7052             if test "$wine_cv_opengl_version_OK" = "yes"
7053             then
7054                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7055 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7056 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7057   echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059   ac_check_lib_save_LIBS=$LIBS
7060 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7061 cat >conftest.$ac_ext <<_ACEOF
7062 #line $LINENO "configure"
7063 #include "confdefs.h"
7064
7065 /* Override any gcc2 internal prototype to avoid an error.  */
7066 #ifdef __cplusplus
7067 extern "C"
7068 #endif
7069 /* We use char because int might match the return type of a gcc2
7070    builtin and then its argument prototype would still apply.  */
7071 char glXCreateContext ();
7072 int
7073 main ()
7074 {
7075 glXCreateContext ();
7076   ;
7077   return 0;
7078 }
7079 _ACEOF
7080 rm -f conftest.$ac_objext conftest$ac_exeext
7081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7082   (eval $ac_link) 2>&5
7083   ac_status=$?
7084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085   (exit $ac_status); } &&
7086          { ac_try='test -s conftest$ac_exeext'
7087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088   (eval $ac_try) 2>&5
7089   ac_status=$?
7090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091   (exit $ac_status); }; }; then
7092   ac_cv_lib_GL_glXCreateContext=yes
7093 else
7094   echo "$as_me: failed program was:" >&5
7095 cat conftest.$ac_ext >&5
7096 ac_cv_lib_GL_glXCreateContext=no
7097 fi
7098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7099 LIBS=$ac_check_lib_save_LIBS
7100 fi
7101 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7102 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7103 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7104   OPENGL_LIBS="-lGL"
7105
7106 fi
7107
7108
7109                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7110                 then
7111                         OPENGLFILES='$(OPENGLFILES)'
7112
7113 cat >>confdefs.h <<\_ACEOF
7114 #define HAVE_OPENGL 1
7115 _ACEOF
7116
7117
7118                         echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7119 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7120 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7121   echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123   ac_check_lib_save_LIBS=$LIBS
7124 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7125 cat >conftest.$ac_ext <<_ACEOF
7126 #line $LINENO "configure"
7127 #include "confdefs.h"
7128
7129 /* Override any gcc2 internal prototype to avoid an error.  */
7130 #ifdef __cplusplus
7131 extern "C"
7132 #endif
7133 /* We use char because int might match the return type of a gcc2
7134    builtin and then its argument prototype would still apply.  */
7135 char glXGetProcAddressARB ();
7136 int
7137 main ()
7138 {
7139 glXGetProcAddressARB ();
7140   ;
7141   return 0;
7142 }
7143 _ACEOF
7144 rm -f conftest.$ac_objext conftest$ac_exeext
7145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7146   (eval $ac_link) 2>&5
7147   ac_status=$?
7148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149   (exit $ac_status); } &&
7150          { ac_try='test -s conftest$ac_exeext'
7151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152   (eval $ac_try) 2>&5
7153   ac_status=$?
7154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155   (exit $ac_status); }; }; then
7156   ac_cv_lib_GL_glXGetProcAddressARB=yes
7157 else
7158   echo "$as_me: failed program was:" >&5
7159 cat conftest.$ac_ext >&5
7160 ac_cv_lib_GL_glXGetProcAddressARB=no
7161 fi
7162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7163 LIBS=$ac_check_lib_save_LIBS
7164 fi
7165 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7166 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7167 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7168
7169 cat >>confdefs.h <<\_ACEOF
7170 #define HAVE_GLX_GETPROCADDRESS 1
7171 _ACEOF
7172
7173 fi
7174
7175
7176                         if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7177                         then
7178                                echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7179 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7180 if test "${wine_cv_extension_prototypes+set}" = set; then
7181   echo $ECHO_N "(cached) $ECHO_C" >&6
7182 else
7183   cat >conftest.$ac_ext <<_ACEOF
7184 #line $LINENO "configure"
7185 #include "confdefs.h"
7186 #include <GL/gl.h>
7187                                                   #ifdef HAVE_GL_GLEXT_H
7188                                                   # include <GL/glext.h>
7189                                                   #endif
7190
7191 int
7192 main ()
7193 {
7194 PFNGLCOLORTABLEEXTPROC test_proc;
7195   ;
7196   return 0;
7197 }
7198 _ACEOF
7199 rm -f conftest.$ac_objext
7200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7201   (eval $ac_compile) 2>&5
7202   ac_status=$?
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); } &&
7205          { ac_try='test -s conftest.$ac_objext'
7206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207   (eval $ac_try) 2>&5
7208   ac_status=$?
7209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210   (exit $ac_status); }; }; then
7211   wine_cv_extension_prototypes="yes"
7212 else
7213   echo "$as_me: failed program was:" >&5
7214 cat conftest.$ac_ext >&5
7215 wine_cv_extension_prototypes="no"
7216
7217 fi
7218 rm -f conftest.$ac_objext conftest.$ac_ext
7219
7220 fi
7221 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7222 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7223                                 if test "$wine_cv_extension_prototypes" = "yes"
7224                                 then
7225
7226 cat >>confdefs.h <<\_ACEOF
7227 #define HAVE_GLEXT_PROTOTYPES 1
7228 _ACEOF
7229
7230                                 fi
7231                         fi
7232
7233                 fi
7234                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7235 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7236 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7237   echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239   ac_check_lib_save_LIBS=$LIBS
7240 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7241                  $LIBS"
7242 cat >conftest.$ac_ext <<_ACEOF
7243 #line $LINENO "configure"
7244 #include "confdefs.h"
7245
7246 /* Override any gcc2 internal prototype to avoid an error.  */
7247 #ifdef __cplusplus
7248 extern "C"
7249 #endif
7250 /* We use char because int might match the return type of a gcc2
7251    builtin and then its argument prototype would still apply.  */
7252 char gluLookAt ();
7253 int
7254 main ()
7255 {
7256 gluLookAt ();
7257   ;
7258   return 0;
7259 }
7260 _ACEOF
7261 rm -f conftest.$ac_objext conftest$ac_exeext
7262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7263   (eval $ac_link) 2>&5
7264   ac_status=$?
7265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266   (exit $ac_status); } &&
7267          { ac_try='test -s conftest$ac_exeext'
7268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269   (eval $ac_try) 2>&5
7270   ac_status=$?
7271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272   (exit $ac_status); }; }; then
7273   ac_cv_lib_GLU_gluLookAt=yes
7274 else
7275   echo "$as_me: failed program was:" >&5
7276 cat conftest.$ac_ext >&5
7277 ac_cv_lib_GLU_gluLookAt=no
7278 fi
7279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7280 LIBS=$ac_check_lib_save_LIBS
7281 fi
7282 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7283 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7284 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7285   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
7286                              GLU32FILES='$(GLU32FILES)'
7287
7288 fi
7289
7290              fi
7291          fi
7292     fi
7293
7294         NASLIBS=""
7295
7296
7297 for ac_header in audio/audiolib.h
7298 do
7299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7301   echo "$as_me:$LINENO: checking for $ac_header" >&5
7302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7304   echo $ECHO_N "(cached) $ECHO_C" >&6
7305 fi
7306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7308 else
7309   # Is the header compilable?
7310 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7312 cat >conftest.$ac_ext <<_ACEOF
7313 #line $LINENO "configure"
7314 #include "confdefs.h"
7315 $ac_includes_default
7316 #include <$ac_header>
7317 _ACEOF
7318 rm -f conftest.$ac_objext
7319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7320   (eval $ac_compile) 2>&5
7321   ac_status=$?
7322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323   (exit $ac_status); } &&
7324          { ac_try='test -s conftest.$ac_objext'
7325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326   (eval $ac_try) 2>&5
7327   ac_status=$?
7328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329   (exit $ac_status); }; }; then
7330   ac_header_compiler=yes
7331 else
7332   echo "$as_me: failed program was:" >&5
7333 cat conftest.$ac_ext >&5
7334 ac_header_compiler=no
7335 fi
7336 rm -f conftest.$ac_objext conftest.$ac_ext
7337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7338 echo "${ECHO_T}$ac_header_compiler" >&6
7339
7340 # Is the header present?
7341 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7343 cat >conftest.$ac_ext <<_ACEOF
7344 #line $LINENO "configure"
7345 #include "confdefs.h"
7346 #include <$ac_header>
7347 _ACEOF
7348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7349   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7350   ac_status=$?
7351   grep -v '^ *+' conftest.er1 >conftest.err
7352   rm -f conftest.er1
7353   cat conftest.err >&5
7354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355   (exit $ac_status); } >/dev/null; then
7356   if test -s conftest.err; then
7357     ac_cpp_err=$ac_c_preproc_warn_flag
7358   else
7359     ac_cpp_err=
7360   fi
7361 else
7362   ac_cpp_err=yes
7363 fi
7364 if test -z "$ac_cpp_err"; then
7365   ac_header_preproc=yes
7366 else
7367   echo "$as_me: failed program was:" >&5
7368   cat conftest.$ac_ext >&5
7369   ac_header_preproc=no
7370 fi
7371 rm -f conftest.err conftest.$ac_ext
7372 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7373 echo "${ECHO_T}$ac_header_preproc" >&6
7374
7375 # So?  What about this header?
7376 case $ac_header_compiler:$ac_header_preproc in
7377   yes:no )
7378     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7379 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7380     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7382   no:yes )
7383     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7385     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7386 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7389 esac
7390 echo "$as_me:$LINENO: checking for $ac_header" >&5
7391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7393   echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395   eval "$as_ac_Header=$ac_header_preproc"
7396 fi
7397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7399
7400 fi
7401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7402   cat >>confdefs.h <<_ACEOF
7403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7404 _ACEOF
7405
7406 for ac_header in audio/soundlib.h
7407 do
7408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7409 echo "$as_me:$LINENO: checking for $ac_header" >&5
7410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7412   echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414   cat >conftest.$ac_ext <<_ACEOF
7415 #line $LINENO "configure"
7416 #include "confdefs.h"
7417 #include <audio/audiolib.h>
7418
7419 #include <$ac_header>
7420 _ACEOF
7421 rm -f conftest.$ac_objext
7422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7423   (eval $ac_compile) 2>&5
7424   ac_status=$?
7425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426   (exit $ac_status); } &&
7427          { ac_try='test -s conftest.$ac_objext'
7428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429   (eval $ac_try) 2>&5
7430   ac_status=$?
7431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432   (exit $ac_status); }; }; then
7433   eval "$as_ac_Header=yes"
7434 else
7435   echo "$as_me: failed program was:" >&5
7436 cat conftest.$ac_ext >&5
7437 eval "$as_ac_Header=no"
7438 fi
7439 rm -f conftest.$ac_objext conftest.$ac_ext
7440 fi
7441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7444   cat >>confdefs.h <<_ACEOF
7445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7446 _ACEOF
7447
7448 fi
7449
7450 done
7451
7452           echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
7453 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
7454 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
7455   echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457   ac_check_lib_save_LIBS=$LIBS
7458 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7459 cat >conftest.$ac_ext <<_ACEOF
7460 #line $LINENO "configure"
7461 #include "confdefs.h"
7462
7463 /* Override any gcc2 internal prototype to avoid an error.  */
7464 #ifdef __cplusplus
7465 extern "C"
7466 #endif
7467 /* We use char because int might match the return type of a gcc2
7468    builtin and then its argument prototype would still apply.  */
7469 char AuCreateFlow ();
7470 int
7471 main ()
7472 {
7473 AuCreateFlow ();
7474   ;
7475   return 0;
7476 }
7477 _ACEOF
7478 rm -f conftest.$ac_objext conftest$ac_exeext
7479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7480   (eval $ac_link) 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_audio_AuCreateFlow=yes
7491 else
7492   echo "$as_me: failed program was:" >&5
7493 cat conftest.$ac_ext >&5
7494 ac_cv_lib_audio_AuCreateFlow=no
7495 fi
7496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7497 LIBS=$ac_check_lib_save_LIBS
7498 fi
7499 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
7500 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
7501 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
7502
7503 cat >>confdefs.h <<\_ACEOF
7504 #define HAVE_NAS 1
7505 _ACEOF
7506
7507                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
7508 fi
7509
7510 fi
7511
7512 done
7513
7514
7515     CPPFLAGS="$ac_save_CPPFLAGS"
7516     XFILES='$(XFILES)'
7517 else
7518     XLIB=""
7519     X_CFLAGS=""
7520     X_LIBS=""
7521 fi
7522
7523 CURSESLIBS=""
7524 if test "x$with_curses" != "xno"
7525 then
7526
7527 for ac_header in ncurses.h
7528 do
7529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7531   echo "$as_me:$LINENO: checking for $ac_header" >&5
7532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7534   echo $ECHO_N "(cached) $ECHO_C" >&6
7535 fi
7536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7538 else
7539   # Is the header compilable?
7540 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7542 cat >conftest.$ac_ext <<_ACEOF
7543 #line $LINENO "configure"
7544 #include "confdefs.h"
7545 $ac_includes_default
7546 #include <$ac_header>
7547 _ACEOF
7548 rm -f conftest.$ac_objext
7549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7550   (eval $ac_compile) 2>&5
7551   ac_status=$?
7552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553   (exit $ac_status); } &&
7554          { ac_try='test -s conftest.$ac_objext'
7555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556   (eval $ac_try) 2>&5
7557   ac_status=$?
7558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559   (exit $ac_status); }; }; then
7560   ac_header_compiler=yes
7561 else
7562   echo "$as_me: failed program was:" >&5
7563 cat conftest.$ac_ext >&5
7564 ac_header_compiler=no
7565 fi
7566 rm -f conftest.$ac_objext conftest.$ac_ext
7567 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7568 echo "${ECHO_T}$ac_header_compiler" >&6
7569
7570 # Is the header present?
7571 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7573 cat >conftest.$ac_ext <<_ACEOF
7574 #line $LINENO "configure"
7575 #include "confdefs.h"
7576 #include <$ac_header>
7577 _ACEOF
7578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7579   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7580   ac_status=$?
7581   grep -v '^ *+' conftest.er1 >conftest.err
7582   rm -f conftest.er1
7583   cat conftest.err >&5
7584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585   (exit $ac_status); } >/dev/null; then
7586   if test -s conftest.err; then
7587     ac_cpp_err=$ac_c_preproc_warn_flag
7588   else
7589     ac_cpp_err=
7590   fi
7591 else
7592   ac_cpp_err=yes
7593 fi
7594 if test -z "$ac_cpp_err"; then
7595   ac_header_preproc=yes
7596 else
7597   echo "$as_me: failed program was:" >&5
7598   cat conftest.$ac_ext >&5
7599   ac_header_preproc=no
7600 fi
7601 rm -f conftest.err conftest.$ac_ext
7602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7603 echo "${ECHO_T}$ac_header_preproc" >&6
7604
7605 # So?  What about this header?
7606 case $ac_header_compiler:$ac_header_preproc in
7607   yes:no )
7608     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7610     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7612   no:yes )
7613     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7615     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7619 esac
7620 echo "$as_me:$LINENO: checking for $ac_header" >&5
7621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7623   echo $ECHO_N "(cached) $ECHO_C" >&6
7624 else
7625   eval "$as_ac_Header=$ac_header_preproc"
7626 fi
7627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7629
7630 fi
7631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7632   cat >>confdefs.h <<_ACEOF
7633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7634 _ACEOF
7635  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
7636 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7637 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7638   echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640   ac_check_lib_save_LIBS=$LIBS
7641 LIBS="-lncurses  $LIBS"
7642 cat >conftest.$ac_ext <<_ACEOF
7643 #line $LINENO "configure"
7644 #include "confdefs.h"
7645
7646 /* Override any gcc2 internal prototype to avoid an error.  */
7647 #ifdef __cplusplus
7648 extern "C"
7649 #endif
7650 /* We use char because int might match the return type of a gcc2
7651    builtin and then its argument prototype would still apply.  */
7652 char waddch ();
7653 int
7654 main ()
7655 {
7656 waddch ();
7657   ;
7658   return 0;
7659 }
7660 _ACEOF
7661 rm -f conftest.$ac_objext conftest$ac_exeext
7662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7663   (eval $ac_link) 2>&5
7664   ac_status=$?
7665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666   (exit $ac_status); } &&
7667          { ac_try='test -s conftest$ac_exeext'
7668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669   (eval $ac_try) 2>&5
7670   ac_status=$?
7671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672   (exit $ac_status); }; }; then
7673   ac_cv_lib_ncurses_waddch=yes
7674 else
7675   echo "$as_me: failed program was:" >&5
7676 cat conftest.$ac_ext >&5
7677 ac_cv_lib_ncurses_waddch=no
7678 fi
7679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7680 LIBS=$ac_check_lib_save_LIBS
7681 fi
7682 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
7683 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7684 if test $ac_cv_lib_ncurses_waddch = yes; then
7685
7686 cat >>confdefs.h <<\_ACEOF
7687 #define HAVE_LIBNCURSES 1
7688 _ACEOF
7689
7690              CURSESLIBS="-lncurses"
7691 else
7692
7693 for ac_header in curses.h
7694 do
7695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7697   echo "$as_me:$LINENO: checking for $ac_header" >&5
7698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7700   echo $ECHO_N "(cached) $ECHO_C" >&6
7701 fi
7702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7704 else
7705   # Is the header compilable?
7706 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7708 cat >conftest.$ac_ext <<_ACEOF
7709 #line $LINENO "configure"
7710 #include "confdefs.h"
7711 $ac_includes_default
7712 #include <$ac_header>
7713 _ACEOF
7714 rm -f conftest.$ac_objext
7715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7716   (eval $ac_compile) 2>&5
7717   ac_status=$?
7718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719   (exit $ac_status); } &&
7720          { ac_try='test -s conftest.$ac_objext'
7721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722   (eval $ac_try) 2>&5
7723   ac_status=$?
7724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725   (exit $ac_status); }; }; then
7726   ac_header_compiler=yes
7727 else
7728   echo "$as_me: failed program was:" >&5
7729 cat conftest.$ac_ext >&5
7730 ac_header_compiler=no
7731 fi
7732 rm -f conftest.$ac_objext conftest.$ac_ext
7733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7734 echo "${ECHO_T}$ac_header_compiler" >&6
7735
7736 # Is the header present?
7737 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7739 cat >conftest.$ac_ext <<_ACEOF
7740 #line $LINENO "configure"
7741 #include "confdefs.h"
7742 #include <$ac_header>
7743 _ACEOF
7744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7745   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7746   ac_status=$?
7747   grep -v '^ *+' conftest.er1 >conftest.err
7748   rm -f conftest.er1
7749   cat conftest.err >&5
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); } >/dev/null; then
7752   if test -s conftest.err; then
7753     ac_cpp_err=$ac_c_preproc_warn_flag
7754   else
7755     ac_cpp_err=
7756   fi
7757 else
7758   ac_cpp_err=yes
7759 fi
7760 if test -z "$ac_cpp_err"; then
7761   ac_header_preproc=yes
7762 else
7763   echo "$as_me: failed program was:" >&5
7764   cat conftest.$ac_ext >&5
7765   ac_header_preproc=no
7766 fi
7767 rm -f conftest.err conftest.$ac_ext
7768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7769 echo "${ECHO_T}$ac_header_preproc" >&6
7770
7771 # So?  What about this header?
7772 case $ac_header_compiler:$ac_header_preproc in
7773   yes:no )
7774     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7778   no:yes )
7779     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7781     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7782 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7785 esac
7786 echo "$as_me:$LINENO: checking for $ac_header" >&5
7787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7789   echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791   eval "$as_ac_Header=$ac_header_preproc"
7792 fi
7793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7795
7796 fi
7797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7798   cat >>confdefs.h <<_ACEOF
7799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7800 _ACEOF
7801  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
7802 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7803 if test "${ac_cv_lib_curses_waddch+set}" = set; then
7804   echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806   ac_check_lib_save_LIBS=$LIBS
7807 LIBS="-lcurses  $LIBS"
7808 cat >conftest.$ac_ext <<_ACEOF
7809 #line $LINENO "configure"
7810 #include "confdefs.h"
7811
7812 /* Override any gcc2 internal prototype to avoid an error.  */
7813 #ifdef __cplusplus
7814 extern "C"
7815 #endif
7816 /* We use char because int might match the return type of a gcc2
7817    builtin and then its argument prototype would still apply.  */
7818 char waddch ();
7819 int
7820 main ()
7821 {
7822 waddch ();
7823   ;
7824   return 0;
7825 }
7826 _ACEOF
7827 rm -f conftest.$ac_objext conftest$ac_exeext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7829   (eval $ac_link) 2>&5
7830   ac_status=$?
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); } &&
7833          { ac_try='test -s conftest$ac_exeext'
7834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835   (eval $ac_try) 2>&5
7836   ac_status=$?
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); }; }; then
7839   ac_cv_lib_curses_waddch=yes
7840 else
7841   echo "$as_me: failed program was:" >&5
7842 cat conftest.$ac_ext >&5
7843 ac_cv_lib_curses_waddch=no
7844 fi
7845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7846 LIBS=$ac_check_lib_save_LIBS
7847 fi
7848 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
7849 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7850 if test $ac_cv_lib_curses_waddch = yes; then
7851
7852 cat >>confdefs.h <<\_ACEOF
7853 #define HAVE_LIBCURSES 1
7854 _ACEOF
7855
7856                       CURSESLIBS="-lcurses"
7857 fi
7858
7859 fi
7860
7861 done
7862
7863 fi
7864
7865 fi
7866
7867 done
7868
7869     saved_libs="$LIBS"
7870     LIBS="$CURSESLIBS $LIBS"
7871
7872
7873 for ac_func in getbkgd resizeterm
7874 do
7875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7876 echo "$as_me:$LINENO: checking for $ac_func" >&5
7877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7878 if eval "test \"\${$as_ac_var+set}\" = set"; then
7879   echo $ECHO_N "(cached) $ECHO_C" >&6
7880 else
7881   cat >conftest.$ac_ext <<_ACEOF
7882 #line $LINENO "configure"
7883 #include "confdefs.h"
7884 /* System header to define __stub macros and hopefully few prototypes,
7885     which can conflict with char $ac_func (); below.  */
7886 #include <assert.h>
7887 /* Override any gcc2 internal prototype to avoid an error.  */
7888 #ifdef __cplusplus
7889 extern "C"
7890 #endif
7891 /* We use char because int might match the return type of a gcc2
7892    builtin and then its argument prototype would still apply.  */
7893 char $ac_func ();
7894 char (*f) ();
7895
7896 int
7897 main ()
7898 {
7899 /* The GNU C library defines this for functions which it implements
7900     to always fail with ENOSYS.  Some functions are actually named
7901     something starting with __ and the normal name is an alias.  */
7902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7903 choke me
7904 #else
7905 f = $ac_func;
7906 #endif
7907
7908   ;
7909   return 0;
7910 }
7911 _ACEOF
7912 rm -f conftest.$ac_objext conftest$ac_exeext
7913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7914   (eval $ac_link) 2>&5
7915   ac_status=$?
7916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); } &&
7918          { ac_try='test -s conftest$ac_exeext'
7919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920   (eval $ac_try) 2>&5
7921   ac_status=$?
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); }; }; then
7924   eval "$as_ac_var=yes"
7925 else
7926   echo "$as_me: failed program was:" >&5
7927 cat conftest.$ac_ext >&5
7928 eval "$as_ac_var=no"
7929 fi
7930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7931 fi
7932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7934 if test `eval echo '${'$as_ac_var'}'` = yes; then
7935   cat >>confdefs.h <<_ACEOF
7936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7937 _ACEOF
7938
7939 fi
7940 done
7941
7942     LIBS="$saved_libs"
7943 fi
7944
7945
7946 # Extract the first word of "sane-config", so it can be a program name with args.
7947 set dummy sane-config; ac_word=$2
7948 echo "$as_me:$LINENO: checking for $ac_word" >&5
7949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7950 if test "${ac_cv_prog_sane_devel+set}" = set; then
7951   echo $ECHO_N "(cached) $ECHO_C" >&6
7952 else
7953   if test -n "$sane_devel"; then
7954   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
7955 else
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $PATH
7958 do
7959   IFS=$as_save_IFS
7960   test -z "$as_dir" && as_dir=.
7961   for ac_exec_ext in '' $ac_executable_extensions; do
7962   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7963     ac_cv_prog_sane_devel="sane-config"
7964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7965     break 2
7966   fi
7967 done
7968 done
7969
7970   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
7971 fi
7972 fi
7973 sane_devel=$ac_cv_prog_sane_devel
7974 if test -n "$sane_devel"; then
7975   echo "$as_me:$LINENO: result: $sane_devel" >&5
7976 echo "${ECHO_T}$sane_devel" >&6
7977 else
7978   echo "$as_me:$LINENO: result: no" >&5
7979 echo "${ECHO_T}no" >&6
7980 fi
7981
7982 if test "$sane_devel" = "no"
7983 then
7984     SANELIBS=""
7985     SANEINCL=""
7986 else
7987     SANELIBS="`$sane_devel --libs`"
7988     SANEINCL="`$sane_devel --cflags`"
7989     ac_save_CPPFLAGS="$CPPFLAGS"
7990     ac_save_LIBS="$LIBS"
7991     CPPFLAGS="$CPPFLAGS $SANEINCL"
7992     LIBS="$LIBS $SANELIBS"
7993     if test "${ac_cv_header_sane_sane_h+set}" = set; then
7994   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
7995 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
7996 if test "${ac_cv_header_sane_sane_h+set}" = set; then
7997   echo $ECHO_N "(cached) $ECHO_C" >&6
7998 fi
7999 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8000 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8001 else
8002   # Is the header compilable?
8003 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8004 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8005 cat >conftest.$ac_ext <<_ACEOF
8006 #line $LINENO "configure"
8007 #include "confdefs.h"
8008 $ac_includes_default
8009 #include <sane/sane.h>
8010 _ACEOF
8011 rm -f conftest.$ac_objext
8012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8013   (eval $ac_compile) 2>&5
8014   ac_status=$?
8015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016   (exit $ac_status); } &&
8017          { ac_try='test -s conftest.$ac_objext'
8018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019   (eval $ac_try) 2>&5
8020   ac_status=$?
8021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022   (exit $ac_status); }; }; then
8023   ac_header_compiler=yes
8024 else
8025   echo "$as_me: failed program was:" >&5
8026 cat conftest.$ac_ext >&5
8027 ac_header_compiler=no
8028 fi
8029 rm -f conftest.$ac_objext conftest.$ac_ext
8030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8031 echo "${ECHO_T}$ac_header_compiler" >&6
8032
8033 # Is the header present?
8034 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8035 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8036 cat >conftest.$ac_ext <<_ACEOF
8037 #line $LINENO "configure"
8038 #include "confdefs.h"
8039 #include <sane/sane.h>
8040 _ACEOF
8041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8042   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8043   ac_status=$?
8044   grep -v '^ *+' conftest.er1 >conftest.err
8045   rm -f conftest.er1
8046   cat conftest.err >&5
8047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048   (exit $ac_status); } >/dev/null; then
8049   if test -s conftest.err; then
8050     ac_cpp_err=$ac_c_preproc_warn_flag
8051   else
8052     ac_cpp_err=
8053   fi
8054 else
8055   ac_cpp_err=yes
8056 fi
8057 if test -z "$ac_cpp_err"; then
8058   ac_header_preproc=yes
8059 else
8060   echo "$as_me: failed program was:" >&5
8061   cat conftest.$ac_ext >&5
8062   ac_header_preproc=no
8063 fi
8064 rm -f conftest.err conftest.$ac_ext
8065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8066 echo "${ECHO_T}$ac_header_preproc" >&6
8067
8068 # So?  What about this header?
8069 case $ac_header_compiler:$ac_header_preproc in
8070   yes:no )
8071     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8072 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8073     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8074 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8075   no:yes )
8076     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8077 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8078     { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8079 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8080     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8081 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8082 esac
8083 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8084 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8085 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8086   echo $ECHO_N "(cached) $ECHO_C" >&6
8087 else
8088   ac_cv_header_sane_sane_h=$ac_header_preproc
8089 fi
8090 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8091 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8092
8093 fi
8094 if test $ac_cv_header_sane_sane_h = yes; then
8095   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8096 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8097 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8098   echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100   ac_check_lib_save_LIBS=$LIBS
8101 LIBS="-lsane  $LIBS"
8102 cat >conftest.$ac_ext <<_ACEOF
8103 #line $LINENO "configure"
8104 #include "confdefs.h"
8105
8106 /* Override any gcc2 internal prototype to avoid an error.  */
8107 #ifdef __cplusplus
8108 extern "C"
8109 #endif
8110 /* We use char because int might match the return type of a gcc2
8111    builtin and then its argument prototype would still apply.  */
8112 char sane_open ();
8113 int
8114 main ()
8115 {
8116 sane_open ();
8117   ;
8118   return 0;
8119 }
8120 _ACEOF
8121 rm -f conftest.$ac_objext conftest$ac_exeext
8122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8123   (eval $ac_link) 2>&5
8124   ac_status=$?
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); } &&
8127          { ac_try='test -s conftest$ac_exeext'
8128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129   (eval $ac_try) 2>&5
8130   ac_status=$?
8131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132   (exit $ac_status); }; }; then
8133   ac_cv_lib_sane_sane_open=yes
8134 else
8135   echo "$as_me: failed program was:" >&5
8136 cat conftest.$ac_ext >&5
8137 ac_cv_lib_sane_sane_open=no
8138 fi
8139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8140 LIBS=$ac_check_lib_save_LIBS
8141 fi
8142 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8143 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8144 if test $ac_cv_lib_sane_sane_open = yes; then
8145
8146 cat >>confdefs.h <<\_ACEOF
8147 #define HAVE_SANE 1
8148 _ACEOF
8149
8150 else
8151   SANELIBS=""
8152                                   SANEINCL=""
8153 fi
8154
8155 else
8156   SANELIBS=""
8157                     SANEINCL=""
8158 fi
8159
8160
8161     LIBS="$ac_save_LIBS"
8162     CPPFLAGS="$ac_save_CPPFLAGS"
8163 fi
8164
8165
8166
8167 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8168 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8169 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8170   echo $ECHO_N "(cached) $ECHO_C" >&6
8171 else
8172   ac_check_lib_save_LIBS=$LIBS
8173 LIBS="-lfreetype $X_LIBS $LIBS"
8174 cat >conftest.$ac_ext <<_ACEOF
8175 #line $LINENO "configure"
8176 #include "confdefs.h"
8177
8178 /* Override any gcc2 internal prototype to avoid an error.  */
8179 #ifdef __cplusplus
8180 extern "C"
8181 #endif
8182 /* We use char because int might match the return type of a gcc2
8183    builtin and then its argument prototype would still apply.  */
8184 char FT_Init_FreeType ();
8185 int
8186 main ()
8187 {
8188 FT_Init_FreeType ();
8189   ;
8190   return 0;
8191 }
8192 _ACEOF
8193 rm -f conftest.$ac_objext conftest$ac_exeext
8194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8195   (eval $ac_link) 2>&5
8196   ac_status=$?
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); } &&
8199          { ac_try='test -s conftest$ac_exeext'
8200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201   (eval $ac_try) 2>&5
8202   ac_status=$?
8203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204   (exit $ac_status); }; }; then
8205   ac_cv_lib_freetype_FT_Init_FreeType=yes
8206 else
8207   echo "$as_me: failed program was:" >&5
8208 cat conftest.$ac_ext >&5
8209 ac_cv_lib_freetype_FT_Init_FreeType=no
8210 fi
8211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8212 LIBS=$ac_check_lib_save_LIBS
8213 fi
8214 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8215 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8216 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8217   ft_lib=yes
8218 else
8219   ft_lib=no
8220 fi
8221
8222 if test "$ft_lib" = "no"
8223 then
8224     FREETYPEINCL=""
8225     wine_cv_msg_freetype=no
8226 else
8227     # Extract the first word of "freetype-config", so it can be a program name with args.
8228 set dummy freetype-config; ac_word=$2
8229 echo "$as_me:$LINENO: checking for $ac_word" >&5
8230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8231 if test "${ac_cv_prog_ft_devel+set}" = set; then
8232   echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234   if test -n "$ft_devel"; then
8235   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8236 else
8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 for as_dir in $PATH
8239 do
8240   IFS=$as_save_IFS
8241   test -z "$as_dir" && as_dir=.
8242   for ac_exec_ext in '' $ac_executable_extensions; do
8243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8244     ac_cv_prog_ft_devel="freetype-config"
8245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8246     break 2
8247   fi
8248 done
8249 done
8250
8251   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8252 fi
8253 fi
8254 ft_devel=$ac_cv_prog_ft_devel
8255 if test -n "$ft_devel"; then
8256   echo "$as_me:$LINENO: result: $ft_devel" >&5
8257 echo "${ECHO_T}$ft_devel" >&6
8258 else
8259   echo "$as_me:$LINENO: result: no" >&5
8260 echo "${ECHO_T}no" >&6
8261 fi
8262
8263     if test "$ft_devel" = "no"
8264     then
8265         # Extract the first word of "freetype2-config", so it can be a program name with args.
8266 set dummy freetype2-config; ac_word=$2
8267 echo "$as_me:$LINENO: checking for $ac_word" >&5
8268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8269 if test "${ac_cv_prog_ft_devel2+set}" = set; then
8270   echo $ECHO_N "(cached) $ECHO_C" >&6
8271 else
8272   if test -n "$ft_devel2"; then
8273   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
8274 else
8275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276 for as_dir in $PATH
8277 do
8278   IFS=$as_save_IFS
8279   test -z "$as_dir" && as_dir=.
8280   for ac_exec_ext in '' $ac_executable_extensions; do
8281   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8282     ac_cv_prog_ft_devel2="freetype2-config"
8283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8284     break 2
8285   fi
8286 done
8287 done
8288
8289   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8290 fi
8291 fi
8292 ft_devel2=$ac_cv_prog_ft_devel2
8293 if test -n "$ft_devel2"; then
8294   echo "$as_me:$LINENO: result: $ft_devel2" >&5
8295 echo "${ECHO_T}$ft_devel2" >&6
8296 else
8297   echo "$as_me:$LINENO: result: no" >&5
8298 echo "${ECHO_T}no" >&6
8299 fi
8300
8301         if test "$ft_devel2" = "freetype2-config"
8302         then
8303                 ft_devel=$ft_devel2
8304         fi
8305     fi
8306     if test "$ft_devel" = "no"
8307     then
8308         FREETYPEINCL=""
8309         wine_cv_msg_freetype=yes
8310     else
8311         FREETYPEINCL=`$ft_devel --cflags`
8312         ac_save_CPPFLAGS="$CPPFLAGS"
8313         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
8314
8315
8316
8317
8318
8319
8320
8321
8322 for ac_header in freetype/freetype.h \
8323                          freetype/ftglyph.h \
8324                          freetype/tttables.h \
8325                          freetype/ftnames.h \
8326                          freetype/ftsnames.h \
8327                          freetype/ttnameid.h \
8328                          freetype/ftoutln.h \
8329                          freetype/internal/sfnt.h
8330 do
8331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8333   echo "$as_me:$LINENO: checking for $ac_header" >&5
8334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8336   echo $ECHO_N "(cached) $ECHO_C" >&6
8337 fi
8338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8340 else
8341   # Is the header compilable?
8342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8344 cat >conftest.$ac_ext <<_ACEOF
8345 #line $LINENO "configure"
8346 #include "confdefs.h"
8347 $ac_includes_default
8348 #include <$ac_header>
8349 _ACEOF
8350 rm -f conftest.$ac_objext
8351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8352   (eval $ac_compile) 2>&5
8353   ac_status=$?
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); } &&
8356          { ac_try='test -s conftest.$ac_objext'
8357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358   (eval $ac_try) 2>&5
8359   ac_status=$?
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); }; }; then
8362   ac_header_compiler=yes
8363 else
8364   echo "$as_me: failed program was:" >&5
8365 cat conftest.$ac_ext >&5
8366 ac_header_compiler=no
8367 fi
8368 rm -f conftest.$ac_objext conftest.$ac_ext
8369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8370 echo "${ECHO_T}$ac_header_compiler" >&6
8371
8372 # Is the header present?
8373 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8375 cat >conftest.$ac_ext <<_ACEOF
8376 #line $LINENO "configure"
8377 #include "confdefs.h"
8378 #include <$ac_header>
8379 _ACEOF
8380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8381   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8382   ac_status=$?
8383   grep -v '^ *+' conftest.er1 >conftest.err
8384   rm -f conftest.er1
8385   cat conftest.err >&5
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); } >/dev/null; then
8388   if test -s conftest.err; then
8389     ac_cpp_err=$ac_c_preproc_warn_flag
8390   else
8391     ac_cpp_err=
8392   fi
8393 else
8394   ac_cpp_err=yes
8395 fi
8396 if test -z "$ac_cpp_err"; then
8397   ac_header_preproc=yes
8398 else
8399   echo "$as_me: failed program was:" >&5
8400   cat conftest.$ac_ext >&5
8401   ac_header_preproc=no
8402 fi
8403 rm -f conftest.err conftest.$ac_ext
8404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8405 echo "${ECHO_T}$ac_header_preproc" >&6
8406
8407 # So?  What about this header?
8408 case $ac_header_compiler:$ac_header_preproc in
8409   yes:no )
8410     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8414   no:yes )
8415     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8416 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8417     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8418 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&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 esac
8422 echo "$as_me:$LINENO: checking for $ac_header" >&5
8423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8425   echo $ECHO_N "(cached) $ECHO_C" >&6
8426 else
8427   eval "$as_ac_Header=$ac_header_preproc"
8428 fi
8429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8431
8432 fi
8433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8434   cat >>confdefs.h <<_ACEOF
8435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8436 _ACEOF
8437
8438 fi
8439
8440 done
8441
8442         cat >conftest.$ac_ext <<_ACEOF
8443 #line $LINENO "configure"
8444 #include "confdefs.h"
8445 #include <ft2build.h>
8446                     #include <freetype/fttrigon.h>
8447 _ACEOF
8448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8449   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8450   ac_status=$?
8451   grep -v '^ *+' conftest.er1 >conftest.err
8452   rm -f conftest.er1
8453   cat conftest.err >&5
8454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455   (exit $ac_status); } >/dev/null; then
8456   if test -s conftest.err; then
8457     ac_cpp_err=$ac_c_preproc_warn_flag
8458   else
8459     ac_cpp_err=
8460   fi
8461 else
8462   ac_cpp_err=yes
8463 fi
8464 if test -z "$ac_cpp_err"; then
8465
8466 cat >>confdefs.h <<\_ACEOF
8467 #define HAVE_FREETYPE_FTTRIGON_H 1
8468 _ACEOF
8469
8470                     wine_cv_fttrigon=yes
8471 else
8472   echo "$as_me: failed program was:" >&5
8473   cat conftest.$ac_ext >&5
8474   wine_cv_fttrigon=no
8475 fi
8476 rm -f conftest.err conftest.$ac_ext
8477         CPPFLAGS="$ac_save_CPPFLAGS"
8478                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
8479         then
8480
8481 cat >>confdefs.h <<\_ACEOF
8482 #define HAVE_FREETYPE 1
8483 _ACEOF
8484
8485             wine_cv_msg_freetype=no
8486         else
8487             FREETYPEINCL=""
8488             wine_cv_msg_freetype=yes
8489         fi
8490     fi
8491 fi
8492
8493
8494 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
8495 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8496 if test "${ac_cv_c_ppdev+set}" = set; then
8497   echo $ECHO_N "(cached) $ECHO_C" >&6
8498 else
8499   cat >conftest.$ac_ext <<_ACEOF
8500 #line $LINENO "configure"
8501 #include "confdefs.h"
8502 #include <linux/ppdev.h>
8503 int
8504 main ()
8505 {
8506 ioctl (1,PPCLAIM,0)
8507   ;
8508   return 0;
8509 }
8510 _ACEOF
8511 rm -f conftest.$ac_objext
8512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8513   (eval $ac_compile) 2>&5
8514   ac_status=$?
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); } &&
8517          { ac_try='test -s conftest.$ac_objext'
8518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519   (eval $ac_try) 2>&5
8520   ac_status=$?
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); }; }; then
8523   ac_cv_c_ppdev="yes"
8524 else
8525   echo "$as_me: failed program was:" >&5
8526 cat conftest.$ac_ext >&5
8527 ac_cv_c_ppdev="no"
8528 fi
8529 rm -f conftest.$ac_objext conftest.$ac_ext
8530
8531 fi
8532 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
8533 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
8534 if test "$ac_cv_c_ppdev" = "yes"
8535 then
8536
8537 cat >>confdefs.h <<\_ACEOF
8538 #define HAVE_PPDEV 1
8539 _ACEOF
8540
8541 fi
8542
8543 echo "$as_me:$LINENO: checking for va_copy" >&5
8544 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
8545 if test "${ac_cv_c_va_copy+set}" = set; then
8546   echo $ECHO_N "(cached) $ECHO_C" >&6
8547 else
8548   cat >conftest.$ac_ext <<_ACEOF
8549 #line $LINENO "configure"
8550 #include "confdefs.h"
8551 #include <stdarg.h>
8552 int
8553 main ()
8554 {
8555 va_list ap1, ap2;
8556     va_copy(ap1,ap2);
8557
8558   ;
8559   return 0;
8560 }
8561 _ACEOF
8562 rm -f conftest.$ac_objext conftest$ac_exeext
8563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8564   (eval $ac_link) 2>&5
8565   ac_status=$?
8566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567   (exit $ac_status); } &&
8568          { ac_try='test -s conftest$ac_exeext'
8569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570   (eval $ac_try) 2>&5
8571   ac_status=$?
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); }; }; then
8574   ac_cv_c_va_copy="yes"
8575 else
8576   echo "$as_me: failed program was:" >&5
8577 cat conftest.$ac_ext >&5
8578 ac_cv_c_va_copy="no"
8579 fi
8580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8581
8582 fi
8583 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
8584 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
8585 if test "$ac_cv_c_va_copy" = "yes"
8586 then
8587
8588 cat >>confdefs.h <<\_ACEOF
8589 #define HAVE_VA_COPY 1
8590 _ACEOF
8591
8592 fi
8593 echo "$as_me:$LINENO: checking for __va_copy" >&5
8594 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
8595 if test "${ac_cv_c___va_copy+set}" = set; then
8596   echo $ECHO_N "(cached) $ECHO_C" >&6
8597 else
8598   cat >conftest.$ac_ext <<_ACEOF
8599 #line $LINENO "configure"
8600 #include "confdefs.h"
8601 #include <stdarg.h>
8602 int
8603 main ()
8604 {
8605 va_list ap1, ap2;
8606     __va_copy(ap1,ap2);
8607
8608   ;
8609   return 0;
8610 }
8611 _ACEOF
8612 rm -f conftest.$ac_objext conftest$ac_exeext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8614   (eval $ac_link) 2>&5
8615   ac_status=$?
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   (exit $ac_status); } &&
8618          { ac_try='test -s conftest$ac_exeext'
8619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620   (eval $ac_try) 2>&5
8621   ac_status=$?
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); }; }; then
8624   ac_cv_c___va_copy="yes"
8625 else
8626   echo "$as_me: failed program was:" >&5
8627 cat conftest.$ac_ext >&5
8628 ac_cv_c___va_copy="no"
8629 fi
8630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8631
8632 fi
8633 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
8634 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
8635 if test "$ac_cv_c___va_copy" = "yes"
8636 then
8637
8638 cat >>confdefs.h <<\_ACEOF
8639 #define HAVE___VA_COPY 1
8640 _ACEOF
8641
8642 fi
8643
8644 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
8645 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8646 if test "${ac_cv_c_ipx_gnu+set}" = set; then
8647   echo $ECHO_N "(cached) $ECHO_C" >&6
8648 else
8649   cat >conftest.$ac_ext <<_ACEOF
8650 #line $LINENO "configure"
8651 #include "confdefs.h"
8652 #include <sys/types.h>
8653     #ifdef HAVE_SYS_SOCKET_H
8654     # include <sys/socket.h>
8655     #endif
8656     #include <netipx/ipx.h>
8657 int
8658 main ()
8659 {
8660 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8661   ;
8662   return 0;
8663 }
8664 _ACEOF
8665 rm -f conftest.$ac_objext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8667   (eval $ac_compile) 2>&5
8668   ac_status=$?
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); } &&
8671          { ac_try='test -s conftest.$ac_objext'
8672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673   (eval $ac_try) 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); }; }; then
8677   ac_cv_c_ipx_gnu="yes"
8678 else
8679   echo "$as_me: failed program was:" >&5
8680 cat conftest.$ac_ext >&5
8681 ac_cv_c_ipx_gnu="no"
8682 fi
8683 rm -f conftest.$ac_objext conftest.$ac_ext
8684
8685 fi
8686 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
8687 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
8688 if test "$ac_cv_c_ipx_gnu" = "yes"
8689 then
8690
8691 cat >>confdefs.h <<\_ACEOF
8692 #define HAVE_IPX_GNU 1
8693 _ACEOF
8694
8695 fi
8696
8697 if test "$ac_cv_c_ipx_gnu" = "no"
8698 then
8699  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
8700 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8701 if test "${ac_cv_c_ipx_linux+set}" = set; then
8702   echo $ECHO_N "(cached) $ECHO_C" >&6
8703 else
8704   cat >conftest.$ac_ext <<_ACEOF
8705 #line $LINENO "configure"
8706 #include "confdefs.h"
8707 #include <sys/types.h>
8708      #ifdef HAVE_SYS_SOCKET_H
8709      # include <sys/socket.h>
8710      #endif
8711      #include <asm/types.h>
8712      #include <linux/ipx.h>
8713 int
8714 main ()
8715 {
8716 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8717   ;
8718   return 0;
8719 }
8720 _ACEOF
8721 rm -f conftest.$ac_objext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8723   (eval $ac_compile) 2>&5
8724   ac_status=$?
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); } &&
8727          { ac_try='test -s conftest.$ac_objext'
8728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729   (eval $ac_try) 2>&5
8730   ac_status=$?
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); }; }; then
8733   ac_cv_c_ipx_linux="yes"
8734 else
8735   echo "$as_me: failed program was:" >&5
8736 cat conftest.$ac_ext >&5
8737 ac_cv_c_ipx_linux="no"
8738 fi
8739 rm -f conftest.$ac_objext conftest.$ac_ext
8740
8741 fi
8742 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
8743 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
8744   if test "$ac_cv_c_ipx_linux" = "yes"
8745   then
8746
8747 cat >>confdefs.h <<\_ACEOF
8748 #define HAVE_IPX_LINUX 1
8749 _ACEOF
8750
8751   fi
8752 fi
8753
8754
8755
8756
8757 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
8758 do
8759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8761   echo "$as_me:$LINENO: checking for $ac_header" >&5
8762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8764   echo $ECHO_N "(cached) $ECHO_C" >&6
8765 fi
8766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8768 else
8769   # Is the header compilable?
8770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8772 cat >conftest.$ac_ext <<_ACEOF
8773 #line $LINENO "configure"
8774 #include "confdefs.h"
8775 $ac_includes_default
8776 #include <$ac_header>
8777 _ACEOF
8778 rm -f conftest.$ac_objext
8779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8780   (eval $ac_compile) 2>&5
8781   ac_status=$?
8782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   (exit $ac_status); } &&
8784          { ac_try='test -s conftest.$ac_objext'
8785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786   (eval $ac_try) 2>&5
8787   ac_status=$?
8788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789   (exit $ac_status); }; }; then
8790   ac_header_compiler=yes
8791 else
8792   echo "$as_me: failed program was:" >&5
8793 cat conftest.$ac_ext >&5
8794 ac_header_compiler=no
8795 fi
8796 rm -f conftest.$ac_objext conftest.$ac_ext
8797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8798 echo "${ECHO_T}$ac_header_compiler" >&6
8799
8800 # Is the header present?
8801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8803 cat >conftest.$ac_ext <<_ACEOF
8804 #line $LINENO "configure"
8805 #include "confdefs.h"
8806 #include <$ac_header>
8807 _ACEOF
8808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8809   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8810   ac_status=$?
8811   grep -v '^ *+' conftest.er1 >conftest.err
8812   rm -f conftest.er1
8813   cat conftest.err >&5
8814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815   (exit $ac_status); } >/dev/null; then
8816   if test -s conftest.err; then
8817     ac_cpp_err=$ac_c_preproc_warn_flag
8818   else
8819     ac_cpp_err=
8820   fi
8821 else
8822   ac_cpp_err=yes
8823 fi
8824 if test -z "$ac_cpp_err"; then
8825   ac_header_preproc=yes
8826 else
8827   echo "$as_me: failed program was:" >&5
8828   cat conftest.$ac_ext >&5
8829   ac_header_preproc=no
8830 fi
8831 rm -f conftest.err conftest.$ac_ext
8832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8833 echo "${ECHO_T}$ac_header_preproc" >&6
8834
8835 # So?  What about this header?
8836 case $ac_header_compiler:$ac_header_preproc in
8837   yes:no )
8838     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8840     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8842   no:yes )
8843     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8845     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8847     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8849 esac
8850 echo "$as_me:$LINENO: checking for $ac_header" >&5
8851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8853   echo $ECHO_N "(cached) $ECHO_C" >&6
8854 else
8855   eval "$as_ac_Header=$ac_header_preproc"
8856 fi
8857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8859
8860 fi
8861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8862   cat >>confdefs.h <<_ACEOF
8863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8864 _ACEOF
8865  break
8866 fi
8867
8868 done
8869
8870
8871 echo "$as_me:$LINENO: checking for Open Sound System" >&5
8872 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8873 if test "${ac_cv_c_opensoundsystem+set}" = set; then
8874   echo $ECHO_N "(cached) $ECHO_C" >&6
8875 else
8876   cat >conftest.$ac_ext <<_ACEOF
8877 #line $LINENO "configure"
8878 #include "confdefs.h"
8879
8880         #if defined(HAVE_SYS_SOUNDCARD_H)
8881                 #include <sys/soundcard.h>
8882         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8883                 #include <machine/soundcard.h>
8884         #elif defined(HAVE_SOUNDCARD_H)
8885                 #include <soundcard.h>
8886         #endif
8887
8888 int
8889 main ()
8890 {
8891
8892
8893 /* check for one of the Open Sound System specific SNDCTL_ defines */
8894 #if !defined(SNDCTL_DSP_STEREO)
8895 #error No open sound system
8896 #endif
8897
8898   ;
8899   return 0;
8900 }
8901 _ACEOF
8902 rm -f conftest.$ac_objext
8903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8904   (eval $ac_compile) 2>&5
8905   ac_status=$?
8906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907   (exit $ac_status); } &&
8908          { ac_try='test -s conftest.$ac_objext'
8909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910   (eval $ac_try) 2>&5
8911   ac_status=$?
8912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913   (exit $ac_status); }; }; then
8914   ac_cv_c_opensoundsystem="yes"
8915 else
8916   echo "$as_me: failed program was:" >&5
8917 cat conftest.$ac_ext >&5
8918 ac_cv_c_opensoundsystem="no"
8919 fi
8920 rm -f conftest.$ac_objext conftest.$ac_ext
8921 fi
8922 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
8923 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
8924
8925 if test "$ac_cv_c_opensoundsystem" = "yes"
8926 then
8927
8928 cat >>confdefs.h <<\_ACEOF
8929 #define HAVE_OSS 1
8930 _ACEOF
8931
8932 fi
8933
8934 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
8935 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
8936 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
8937   echo $ECHO_N "(cached) $ECHO_C" >&6
8938 else
8939   cat >conftest.$ac_ext <<_ACEOF
8940 #line $LINENO "configure"
8941 #include "confdefs.h"
8942
8943         #if defined(HAVE_SYS_SOUNDCARD_H)
8944                 #include <sys/soundcard.h>
8945         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8946                 #include <machine/soundcard.h>
8947         #elif defined(HAVE_SOUNDCARD_H)
8948                 #include <soundcard.h>
8949         #endif
8950
8951 int
8952 main ()
8953 {
8954
8955
8956 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
8957 #if !defined(SNDCTL_SEQ_SYNC)
8958 #error No open sound system MIDI interface
8959 #endif
8960
8961   ;
8962   return 0;
8963 }
8964 _ACEOF
8965 rm -f conftest.$ac_objext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8967   (eval $ac_compile) 2>&5
8968   ac_status=$?
8969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970   (exit $ac_status); } &&
8971          { ac_try='test -s conftest.$ac_objext'
8972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973   (eval $ac_try) 2>&5
8974   ac_status=$?
8975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976   (exit $ac_status); }; }; then
8977   ac_cv_c_opensoundsystem_midi="yes"
8978 else
8979   echo "$as_me: failed program was:" >&5
8980 cat conftest.$ac_ext >&5
8981 ac_cv_c_opensoundsystem_midi="no"
8982 fi
8983 rm -f conftest.$ac_objext conftest.$ac_ext
8984 fi
8985 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
8986 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
8987
8988 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
8989 then
8990
8991 cat >>confdefs.h <<\_ACEOF
8992 #define HAVE_OSS_MIDI 1
8993 _ACEOF
8994
8995 fi
8996
8997 # Extract the first word of "artsc-config", so it can be a program name with args.
8998 set dummy artsc-config; ac_word=$2
8999 echo "$as_me:$LINENO: checking for $ac_word" >&5
9000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9001 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
9002   echo $ECHO_N "(cached) $ECHO_C" >&6
9003 else
9004   case $ARTSCCONFIG in
9005   [\\/]* | ?:[\\/]*)
9006   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
9007   ;;
9008   *)
9009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9010 for as_dir in $PATH
9011 do
9012   IFS=$as_save_IFS
9013   test -z "$as_dir" && as_dir=.
9014   for ac_exec_ext in '' $ac_executable_extensions; do
9015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9016     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
9017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9018     break 2
9019   fi
9020 done
9021 done
9022
9023   ;;
9024 esac
9025 fi
9026 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9027
9028 if test -n "$ARTSCCONFIG"; then
9029   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
9030 echo "${ECHO_T}$ARTSCCONFIG" >&6
9031 else
9032   echo "$as_me:$LINENO: result: no" >&5
9033 echo "${ECHO_T}no" >&6
9034 fi
9035
9036 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
9037 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9038 if test "${ac_cv_c_artsserver+set}" = set; then
9039   echo $ECHO_N "(cached) $ECHO_C" >&6
9040 else
9041   if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9042         then
9043             ac_cv_c_artsserver=no
9044         else
9045             ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9046             ARTSC_LIBS=`$ARTSCCONFIG --libs`
9047             ac_cv_c_artsserver=no
9048             save_CFLAGS="$CFLAGS"
9049             CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9050             cat >conftest.$ac_ext <<_ACEOF
9051 #line $LINENO "configure"
9052 #include "confdefs.h"
9053
9054              #include <artsc.h>
9055
9056 int
9057 main ()
9058 {
9059
9060              arts_stream_t stream;
9061
9062   ;
9063   return 0;
9064 }
9065 _ACEOF
9066 rm -f conftest.$ac_objext
9067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9068   (eval $ac_compile) 2>&5
9069   ac_status=$?
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); } &&
9072          { ac_try='test -s conftest.$ac_objext'
9073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074   (eval $ac_try) 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); }; }; then
9078
9079             ac_cv_c_artsserver=yes
9080
9081 else
9082   echo "$as_me: failed program was:" >&5
9083 cat conftest.$ac_ext >&5
9084 fi
9085 rm -f conftest.$ac_objext conftest.$ac_ext
9086             CFLAGS="$save_CFLAGS"
9087         fi
9088 fi
9089 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
9090 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9091
9092 if test "$ac_cv_c_artsserver" = "yes"
9093 then
9094     ARTSLIBS=$ARTSC_LIBS
9095
9096     ARTSINCL=$ARTSC_CFLAGS
9097
9098
9099
9100 cat >>confdefs.h <<\_ACEOF
9101 #define HAVE_ARTS 1
9102 _ACEOF
9103
9104 fi
9105
9106 ALSALIBS=""
9107
9108
9109
9110 for ac_header in alsa/asoundlib.h sys/asoundlib.h
9111 do
9112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9114   echo "$as_me:$LINENO: checking for $ac_header" >&5
9115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9117   echo $ECHO_N "(cached) $ECHO_C" >&6
9118 fi
9119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9121 else
9122   # Is the header compilable?
9123 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9125 cat >conftest.$ac_ext <<_ACEOF
9126 #line $LINENO "configure"
9127 #include "confdefs.h"
9128 $ac_includes_default
9129 #include <$ac_header>
9130 _ACEOF
9131 rm -f conftest.$ac_objext
9132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9133   (eval $ac_compile) 2>&5
9134   ac_status=$?
9135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136   (exit $ac_status); } &&
9137          { ac_try='test -s conftest.$ac_objext'
9138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139   (eval $ac_try) 2>&5
9140   ac_status=$?
9141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   (exit $ac_status); }; }; then
9143   ac_header_compiler=yes
9144 else
9145   echo "$as_me: failed program was:" >&5
9146 cat conftest.$ac_ext >&5
9147 ac_header_compiler=no
9148 fi
9149 rm -f conftest.$ac_objext conftest.$ac_ext
9150 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9151 echo "${ECHO_T}$ac_header_compiler" >&6
9152
9153 # Is the header present?
9154 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9156 cat >conftest.$ac_ext <<_ACEOF
9157 #line $LINENO "configure"
9158 #include "confdefs.h"
9159 #include <$ac_header>
9160 _ACEOF
9161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9162   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9163   ac_status=$?
9164   grep -v '^ *+' conftest.er1 >conftest.err
9165   rm -f conftest.er1
9166   cat conftest.err >&5
9167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168   (exit $ac_status); } >/dev/null; then
9169   if test -s conftest.err; then
9170     ac_cpp_err=$ac_c_preproc_warn_flag
9171   else
9172     ac_cpp_err=
9173   fi
9174 else
9175   ac_cpp_err=yes
9176 fi
9177 if test -z "$ac_cpp_err"; then
9178   ac_header_preproc=yes
9179 else
9180   echo "$as_me: failed program was:" >&5
9181   cat conftest.$ac_ext >&5
9182   ac_header_preproc=no
9183 fi
9184 rm -f conftest.err conftest.$ac_ext
9185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9186 echo "${ECHO_T}$ac_header_preproc" >&6
9187
9188 # So?  What about this header?
9189 case $ac_header_compiler:$ac_header_preproc in
9190   yes:no )
9191     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9195   no:yes )
9196     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9198     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9202 esac
9203 echo "$as_me:$LINENO: checking for $ac_header" >&5
9204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9206   echo $ECHO_N "(cached) $ECHO_C" >&6
9207 else
9208   eval "$as_ac_Header=$ac_header_preproc"
9209 fi
9210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9212
9213 fi
9214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9215   cat >>confdefs.h <<_ACEOF
9216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9217 _ACEOF
9218  break
9219 fi
9220
9221 done
9222
9223 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
9224 then
9225     echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
9226 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
9227 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
9228   echo $ECHO_N "(cached) $ECHO_C" >&6
9229 else
9230   ac_check_lib_save_LIBS=$LIBS
9231 LIBS="-lasound  $LIBS"
9232 cat >conftest.$ac_ext <<_ACEOF
9233 #line $LINENO "configure"
9234 #include "confdefs.h"
9235
9236 /* Override any gcc2 internal prototype to avoid an error.  */
9237 #ifdef __cplusplus
9238 extern "C"
9239 #endif
9240 /* We use char because int might match the return type of a gcc2
9241    builtin and then its argument prototype would still apply.  */
9242 char snd_pcm_open ();
9243 int
9244 main ()
9245 {
9246 snd_pcm_open ();
9247   ;
9248   return 0;
9249 }
9250 _ACEOF
9251 rm -f conftest.$ac_objext conftest$ac_exeext
9252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253   (eval $ac_link) 2>&5
9254   ac_status=$?
9255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256   (exit $ac_status); } &&
9257          { ac_try='test -s conftest$ac_exeext'
9258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259   (eval $ac_try) 2>&5
9260   ac_status=$?
9261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262   (exit $ac_status); }; }; then
9263   ac_cv_lib_asound_snd_pcm_open=yes
9264 else
9265   echo "$as_me: failed program was:" >&5
9266 cat conftest.$ac_ext >&5
9267 ac_cv_lib_asound_snd_pcm_open=no
9268 fi
9269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9270 LIBS=$ac_check_lib_save_LIBS
9271 fi
9272 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
9273 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
9274 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
9275
9276 cat >>confdefs.h <<\_ACEOF
9277 #define HAVE_ALSA 1
9278 _ACEOF
9279
9280         ALSALIBS="-lasound"
9281 fi
9282
9283 fi
9284
9285
9286 AUDIOIOLIBS=""
9287
9288
9289 for ac_header in libaudioio.h
9290 do
9291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9293   echo "$as_me:$LINENO: checking for $ac_header" >&5
9294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9296   echo $ECHO_N "(cached) $ECHO_C" >&6
9297 fi
9298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9300 else
9301   # Is the header compilable?
9302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9304 cat >conftest.$ac_ext <<_ACEOF
9305 #line $LINENO "configure"
9306 #include "confdefs.h"
9307 $ac_includes_default
9308 #include <$ac_header>
9309 _ACEOF
9310 rm -f conftest.$ac_objext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9312   (eval $ac_compile) 2>&5
9313   ac_status=$?
9314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315   (exit $ac_status); } &&
9316          { ac_try='test -s conftest.$ac_objext'
9317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318   (eval $ac_try) 2>&5
9319   ac_status=$?
9320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321   (exit $ac_status); }; }; then
9322   ac_header_compiler=yes
9323 else
9324   echo "$as_me: failed program was:" >&5
9325 cat conftest.$ac_ext >&5
9326 ac_header_compiler=no
9327 fi
9328 rm -f conftest.$ac_objext conftest.$ac_ext
9329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9330 echo "${ECHO_T}$ac_header_compiler" >&6
9331
9332 # Is the header present?
9333 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9335 cat >conftest.$ac_ext <<_ACEOF
9336 #line $LINENO "configure"
9337 #include "confdefs.h"
9338 #include <$ac_header>
9339 _ACEOF
9340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9341   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9342   ac_status=$?
9343   grep -v '^ *+' conftest.er1 >conftest.err
9344   rm -f conftest.er1
9345   cat conftest.err >&5
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   (exit $ac_status); } >/dev/null; then
9348   if test -s conftest.err; then
9349     ac_cpp_err=$ac_c_preproc_warn_flag
9350   else
9351     ac_cpp_err=
9352   fi
9353 else
9354   ac_cpp_err=yes
9355 fi
9356 if test -z "$ac_cpp_err"; then
9357   ac_header_preproc=yes
9358 else
9359   echo "$as_me: failed program was:" >&5
9360   cat conftest.$ac_ext >&5
9361   ac_header_preproc=no
9362 fi
9363 rm -f conftest.err conftest.$ac_ext
9364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9365 echo "${ECHO_T}$ac_header_preproc" >&6
9366
9367 # So?  What about this header?
9368 case $ac_header_compiler:$ac_header_preproc in
9369   yes:no )
9370     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9372     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9374   no:yes )
9375     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9377     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9379     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9381 esac
9382 echo "$as_me:$LINENO: checking for $ac_header" >&5
9383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9385   echo $ECHO_N "(cached) $ECHO_C" >&6
9386 else
9387   eval "$as_ac_Header=$ac_header_preproc"
9388 fi
9389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9391
9392 fi
9393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9394   cat >>confdefs.h <<_ACEOF
9395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9396 _ACEOF
9397  echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
9398 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
9399 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
9400   echo $ECHO_N "(cached) $ECHO_C" >&6
9401 else
9402   ac_check_lib_save_LIBS=$LIBS
9403 LIBS="-laudioio  $LIBS"
9404 cat >conftest.$ac_ext <<_ACEOF
9405 #line $LINENO "configure"
9406 #include "confdefs.h"
9407
9408 /* Override any gcc2 internal prototype to avoid an error.  */
9409 #ifdef __cplusplus
9410 extern "C"
9411 #endif
9412 /* We use char because int might match the return type of a gcc2
9413    builtin and then its argument prototype would still apply.  */
9414 char AudioIOGetVersion ();
9415 int
9416 main ()
9417 {
9418 AudioIOGetVersion ();
9419   ;
9420   return 0;
9421 }
9422 _ACEOF
9423 rm -f conftest.$ac_objext conftest$ac_exeext
9424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9425   (eval $ac_link) 2>&5
9426   ac_status=$?
9427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428   (exit $ac_status); } &&
9429          { ac_try='test -s conftest$ac_exeext'
9430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9431   (eval $ac_try) 2>&5
9432   ac_status=$?
9433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434   (exit $ac_status); }; }; then
9435   ac_cv_lib_audioio_AudioIOGetVersion=yes
9436 else
9437   echo "$as_me: failed program was:" >&5
9438 cat conftest.$ac_ext >&5
9439 ac_cv_lib_audioio_AudioIOGetVersion=no
9440 fi
9441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9442 LIBS=$ac_check_lib_save_LIBS
9443 fi
9444 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
9445 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
9446 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
9447   AUDIOIOLIBS="-laudioio"
9448
9449 cat >>confdefs.h <<\_ACEOF
9450 #define HAVE_LIBAUDIOIO 1
9451 _ACEOF
9452
9453 fi
9454
9455 fi
9456
9457 done
9458
9459
9460
9461 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
9462 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9463 if test "${ac_cv_mmap64_works+set}" = set; then
9464   echo $ECHO_N "(cached) $ECHO_C" >&6
9465 else
9466   if test "$cross_compiling" = yes; then
9467   ac_cv_mmap64_works="no"
9468 else
9469   cat >conftest.$ac_ext <<_ACEOF
9470 #line $LINENO "configure"
9471 #include "confdefs.h"
9472
9473                 #define _FILE_OFFSET_BITS 64
9474                 #include <stdio.h>
9475                 #include <unistd.h>
9476                 #include <fcntl.h>
9477                 #include <sys/mman.h>
9478                 #include <errno.h>
9479
9480                 int main(int argc,char **argv) {
9481                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9482                         if (fd == -1) exit(1);
9483
9484                         unlink("conftest.map");
9485
9486                         write(fd,"test",4);
9487
9488                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9489                             (errno == EINVAL)
9490                         ) {
9491                                 exit(1);
9492                         }
9493                         close(fd);
9494                         fprintf(stderr,"success!\n");
9495                         exit(0);
9496                 }
9497
9498
9499 _ACEOF
9500 rm -f conftest$ac_exeext
9501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9502   (eval $ac_link) 2>&5
9503   ac_status=$?
9504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507   (eval $ac_try) 2>&5
9508   ac_status=$?
9509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510   (exit $ac_status); }; }; then
9511   ac_cv_mmap64_works="yes"
9512 else
9513   echo "$as_me: program exited with status $ac_status" >&5
9514 echo "$as_me: failed program was:" >&5
9515 cat conftest.$ac_ext >&5
9516 ( exit $ac_status )
9517 ac_cv_mmap64_works="no"
9518 fi
9519 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9520 fi
9521 fi
9522 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
9523 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
9524
9525 if test "$ac_cv_mmap64_works" = "yes"
9526 then
9527
9528 cat >>confdefs.h <<\_ACEOF
9529 #define _FILE_OFFSET_BITS 64
9530 _ACEOF
9531
9532 fi
9533
9534
9535 if test "x${GCC}" = "xyes"
9536 then
9537   CFLAGS="$CFLAGS -Wall"
9538   echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
9539 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9540 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9541   echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543   if test "$cross_compiling" = yes; then
9544   ac_cv_c_gcc_strength_bug="yes"
9545 else
9546   cat >conftest.$ac_ext <<_ACEOF
9547 #line $LINENO "configure"
9548 #include "confdefs.h"
9549
9550 int     L[4] = {0,1,2,3};
9551 int main(void) {
9552   static int Array[3];
9553   unsigned int B = 3;
9554   int i;
9555   for(i=0; i<B; i++) Array[i] = i - 3;
9556   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9557   L[i] = 4;
9558
9559   exit( Array[1] != -2 || L[2] != 3);
9560 }
9561 _ACEOF
9562 rm -f conftest$ac_exeext
9563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9564   (eval $ac_link) 2>&5
9565   ac_status=$?
9566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569   (eval $ac_try) 2>&5
9570   ac_status=$?
9571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572   (exit $ac_status); }; }; then
9573   ac_cv_c_gcc_strength_bug="no"
9574 else
9575   echo "$as_me: program exited with status $ac_status" >&5
9576 echo "$as_me: failed program was:" >&5
9577 cat conftest.$ac_ext >&5
9578 ( exit $ac_status )
9579 ac_cv_c_gcc_strength_bug="yes"
9580 fi
9581 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9582 fi
9583 fi
9584 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
9585 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
9586   if test "$ac_cv_c_gcc_strength_bug" = "yes"
9587   then
9588     CFLAGS="$CFLAGS -fno-strength-reduce"
9589   fi
9590
9591     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
9592 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9593 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9594   echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596   ac_wine_try_cflags_saved=$CFLAGS
9597 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9598 cat >conftest.$ac_ext <<_ACEOF
9599 #line $LINENO "configure"
9600 #include "confdefs.h"
9601
9602 int
9603 main ()
9604 {
9605
9606   ;
9607   return 0;
9608 }
9609 _ACEOF
9610 rm -f conftest.$ac_objext conftest$ac_exeext
9611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9612   (eval $ac_link) 2>&5
9613   ac_status=$?
9614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615   (exit $ac_status); } &&
9616          { ac_try='test -s conftest$ac_exeext'
9617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618   (eval $ac_try) 2>&5
9619   ac_status=$?
9620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621   (exit $ac_status); }; }; then
9622   ac_cv_c_gcc_stack_boundary="yes"
9623 else
9624   echo "$as_me: failed program was:" >&5
9625 cat conftest.$ac_ext >&5
9626 ac_cv_c_gcc_stack_boundary="no"
9627 fi
9628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9629 CFLAGS=$ac_wine_try_cflags_saved
9630 fi
9631 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
9632 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
9633   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9634   then
9635     CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9636   fi
9637 fi
9638
9639
9640 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
9641 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
9642 if test "${ac_cv_asm_func_def+set}" = set; then
9643   echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645   cat >conftest.$ac_ext <<_ACEOF
9646 #line $LINENO "configure"
9647 #include "confdefs.h"
9648 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"); }
9649
9650 int
9651 main ()
9652 {
9653
9654   ;
9655   return 0;
9656 }
9657 _ACEOF
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9660   (eval $ac_link) 2>&5
9661   ac_status=$?
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); } &&
9664          { ac_try='test -s conftest$ac_exeext'
9665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666   (eval $ac_try) 2>&5
9667   ac_status=$?
9668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   (exit $ac_status); }; }; then
9670   ac_cv_asm_func_def=".def"
9671 else
9672   echo "$as_me: failed program was:" >&5
9673 cat conftest.$ac_ext >&5
9674 cat >conftest.$ac_ext <<_ACEOF
9675 #line $LINENO "configure"
9676 #include "confdefs.h"
9677 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
9678
9679 int
9680 main ()
9681 {
9682
9683   ;
9684   return 0;
9685 }
9686 _ACEOF
9687 rm -f conftest.$ac_objext conftest$ac_exeext
9688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9689   (eval $ac_link) 2>&5
9690   ac_status=$?
9691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692   (exit $ac_status); } &&
9693          { ac_try='test -s conftest$ac_exeext'
9694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695   (eval $ac_try) 2>&5
9696   ac_status=$?
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); }; }; then
9699   ac_cv_asm_func_def=".type @function"
9700 else
9701   echo "$as_me: failed program was:" >&5
9702 cat conftest.$ac_ext >&5
9703 cat >conftest.$ac_ext <<_ACEOF
9704 #line $LINENO "configure"
9705 #include "confdefs.h"
9706 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
9707
9708 int
9709 main ()
9710 {
9711
9712   ;
9713   return 0;
9714 }
9715 _ACEOF
9716 rm -f conftest.$ac_objext conftest$ac_exeext
9717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9718   (eval $ac_link) 2>&5
9719   ac_status=$?
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); } &&
9722          { ac_try='test -s conftest$ac_exeext'
9723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724   (eval $ac_try) 2>&5
9725   ac_status=$?
9726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727   (exit $ac_status); }; }; then
9728   ac_cv_asm_func_def=".type 2"
9729 else
9730   echo "$as_me: failed program was:" >&5
9731 cat conftest.$ac_ext >&5
9732 ac_cv_asm_func_def="unknown"
9733 fi
9734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9735 fi
9736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9737 fi
9738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9739 fi
9740 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
9741 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
9742
9743
9744
9745 case "$ac_cv_asm_func_def" in
9746   ".def")
9747      cat >>confdefs.h <<\_ACEOF
9748 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
9749 _ACEOF
9750  ;;
9751   ".type @function")
9752      cat >>confdefs.h <<\_ACEOF
9753 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
9754 _ACEOF
9755  ;;
9756   ".type 2")
9757      cat >>confdefs.h <<\_ACEOF
9758 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
9759 _ACEOF
9760  ;;
9761   *)
9762      cat >>confdefs.h <<\_ACEOF
9763 #define __ASM_FUNC(name) ""
9764 _ACEOF
9765  ;;
9766 esac
9767
9768
9769 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
9770 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
9771 if test "${ac_cv_c_extern_prefix+set}" = set; then
9772   echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774   cat >conftest.$ac_ext <<_ACEOF
9775 #line $LINENO "configure"
9776 #include "confdefs.h"
9777 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
9778 extern int ac_test;
9779 int
9780 main ()
9781 {
9782 if (ac_test) return 1
9783   ;
9784   return 0;
9785 }
9786 _ACEOF
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789   (eval $ac_link) 2>&5
9790   ac_status=$?
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); } &&
9793          { ac_try='test -s conftest$ac_exeext'
9794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795   (eval $ac_try) 2>&5
9796   ac_status=$?
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); }; }; then
9799   ac_cv_c_extern_prefix="yes"
9800 else
9801   echo "$as_me: failed program was:" >&5
9802 cat conftest.$ac_ext >&5
9803 ac_cv_c_extern_prefix="no"
9804 fi
9805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9806 fi
9807 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
9808 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
9809
9810
9811
9812 if test "$ac_cv_c_extern_prefix" = "yes"
9813 then
9814   cat >>confdefs.h <<\_ACEOF
9815 #define __ASM_NAME(name) "_" name
9816 _ACEOF
9817
9818 else
9819   cat >>confdefs.h <<\_ACEOF
9820 #define __ASM_NAME(name) name
9821 _ACEOF
9822
9823 fi
9824
9825
9826 echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5
9827 echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
9828 if test "${ac_cv_c_stdcall_decoration+set}" = set; then
9829   echo $ECHO_N "(cached) $ECHO_C" >&6
9830 else
9831   cat >conftest.$ac_ext <<_ACEOF
9832 #line $LINENO "configure"
9833 #include "confdefs.h"
9834 void ac_asm(void) { asm("\t.globl _ac_test@0\n_ac_test@0:\n\t.globl ac_test@0\nac_test@0:"); }
9835 extern void __attribute__((__stdcall__)) ac_test(void);
9836 int
9837 main ()
9838 {
9839 ac_test()
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9846   (eval $ac_link) 2>&5
9847   ac_status=$?
9848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849   (exit $ac_status); } &&
9850          { ac_try='test -s conftest$ac_exeext'
9851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852   (eval $ac_try) 2>&5
9853   ac_status=$?
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); }; }; then
9856   ac_cv_c_stdcall_decoration="yes"
9857 else
9858   echo "$as_me: failed program was:" >&5
9859 cat conftest.$ac_ext >&5
9860 ac_cv_c_stdcall_decoration="no"
9861 fi
9862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9863 fi
9864 echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5
9865 echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
9866 if test "$ac_cv_c_stdcall_decoration" = "yes"
9867 then
9868
9869 cat >>confdefs.h <<\_ACEOF
9870 #define NEED_STDCALL_DECORATION 1
9871 _ACEOF
9872
9873 fi
9874
9875
9876 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
9877 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
9878 if test "${ac_cv_c_asm_string+set}" = set; then
9879   echo $ECHO_N "(cached) $ECHO_C" >&6
9880 else
9881   cat >conftest.$ac_ext <<_ACEOF
9882 #line $LINENO "configure"
9883 #include "confdefs.h"
9884 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
9885
9886 int
9887 main ()
9888 {
9889
9890   ;
9891   return 0;
9892 }
9893 _ACEOF
9894 rm -f conftest.$ac_objext conftest$ac_exeext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9896   (eval $ac_link) 2>&5
9897   ac_status=$?
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); } &&
9900          { ac_try='test -s conftest$ac_exeext'
9901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902   (eval $ac_try) 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); }; }; then
9906   ac_cv_c_asm_string="yes"
9907 else
9908   echo "$as_me: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9910 ac_cv_c_asm_string="no"
9911 fi
9912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9913 fi
9914 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
9915 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
9916 if test "$ac_cv_c_asm_string" = "yes"
9917 then
9918
9919 cat >>confdefs.h <<\_ACEOF
9920 #define HAVE_ASM_STRING 1
9921 _ACEOF
9922
9923 fi
9924
9925
9926 DLLEXT=""
9927
9928 DLLFLAGS=""
9929
9930 DLLIBS=""
9931
9932 LDDLLFLAGS=""
9933
9934 LDSHARED=""
9935
9936
9937 case $host_os in
9938   cygwin*|mingw32*)
9939     if test -n "$ac_tool_prefix"; then
9940   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
9941 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
9942 echo "$as_me:$LINENO: checking for $ac_word" >&5
9943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9944 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
9945   echo $ECHO_N "(cached) $ECHO_C" >&6
9946 else
9947   if test -n "$DLLWRAP"; then
9948   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
9949 else
9950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951 for as_dir in $PATH
9952 do
9953   IFS=$as_save_IFS
9954   test -z "$as_dir" && as_dir=.
9955   for ac_exec_ext in '' $ac_executable_extensions; do
9956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9957     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
9958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9959     break 2
9960   fi
9961 done
9962 done
9963
9964 fi
9965 fi
9966 DLLWRAP=$ac_cv_prog_DLLWRAP
9967 if test -n "$DLLWRAP"; then
9968   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
9969 echo "${ECHO_T}$DLLWRAP" >&6
9970 else
9971   echo "$as_me:$LINENO: result: no" >&5
9972 echo "${ECHO_T}no" >&6
9973 fi
9974
9975 fi
9976 if test -z "$ac_cv_prog_DLLWRAP"; then
9977   ac_ct_DLLWRAP=$DLLWRAP
9978   # Extract the first word of "dllwrap", so it can be a program name with args.
9979 set dummy dllwrap; ac_word=$2
9980 echo "$as_me:$LINENO: checking for $ac_word" >&5
9981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9982 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
9983   echo $ECHO_N "(cached) $ECHO_C" >&6
9984 else
9985   if test -n "$ac_ct_DLLWRAP"; then
9986   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
9987 else
9988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9989 for as_dir in $PATH
9990 do
9991   IFS=$as_save_IFS
9992   test -z "$as_dir" && as_dir=.
9993   for ac_exec_ext in '' $ac_executable_extensions; do
9994   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9995     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
9996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9997     break 2
9998   fi
9999 done
10000 done
10001
10002   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
10003 fi
10004 fi
10005 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
10006 if test -n "$ac_ct_DLLWRAP"; then
10007   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
10008 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
10009 else
10010   echo "$as_me:$LINENO: result: no" >&5
10011 echo "${ECHO_T}no" >&6
10012 fi
10013
10014   DLLWRAP=$ac_ct_DLLWRAP
10015 else
10016   DLLWRAP="$ac_cv_prog_DLLWRAP"
10017 fi
10018
10019     if test "$DLLWRAP" = "false"; then
10020       LIBEXT="a"
10021     else
10022             LIBEXT="dll"
10023     fi
10024     ;;
10025   *)
10026
10027 for ac_header in dlfcn.h
10028 do
10029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10031   echo "$as_me:$LINENO: checking for $ac_header" >&5
10032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10034   echo $ECHO_N "(cached) $ECHO_C" >&6
10035 fi
10036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10038 else
10039   # Is the header compilable?
10040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10042 cat >conftest.$ac_ext <<_ACEOF
10043 #line $LINENO "configure"
10044 #include "confdefs.h"
10045 $ac_includes_default
10046 #include <$ac_header>
10047 _ACEOF
10048 rm -f conftest.$ac_objext
10049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10050   (eval $ac_compile) 2>&5
10051   ac_status=$?
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); } &&
10054          { ac_try='test -s conftest.$ac_objext'
10055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056   (eval $ac_try) 2>&5
10057   ac_status=$?
10058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059   (exit $ac_status); }; }; then
10060   ac_header_compiler=yes
10061 else
10062   echo "$as_me: failed program was:" >&5
10063 cat conftest.$ac_ext >&5
10064 ac_header_compiler=no
10065 fi
10066 rm -f conftest.$ac_objext conftest.$ac_ext
10067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10068 echo "${ECHO_T}$ac_header_compiler" >&6
10069
10070 # Is the header present?
10071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10073 cat >conftest.$ac_ext <<_ACEOF
10074 #line $LINENO "configure"
10075 #include "confdefs.h"
10076 #include <$ac_header>
10077 _ACEOF
10078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10079   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10080   ac_status=$?
10081   grep -v '^ *+' conftest.er1 >conftest.err
10082   rm -f conftest.er1
10083   cat conftest.err >&5
10084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085   (exit $ac_status); } >/dev/null; then
10086   if test -s conftest.err; then
10087     ac_cpp_err=$ac_c_preproc_warn_flag
10088   else
10089     ac_cpp_err=
10090   fi
10091 else
10092   ac_cpp_err=yes
10093 fi
10094 if test -z "$ac_cpp_err"; then
10095   ac_header_preproc=yes
10096 else
10097   echo "$as_me: failed program was:" >&5
10098   cat conftest.$ac_ext >&5
10099   ac_header_preproc=no
10100 fi
10101 rm -f conftest.err conftest.$ac_ext
10102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10103 echo "${ECHO_T}$ac_header_preproc" >&6
10104
10105 # So?  What about this header?
10106 case $ac_header_compiler:$ac_header_preproc in
10107   yes:no )
10108     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10112   no:yes )
10113     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10115     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10117     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10119 esac
10120 echo "$as_me:$LINENO: checking for $ac_header" >&5
10121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10123   echo $ECHO_N "(cached) $ECHO_C" >&6
10124 else
10125   eval "$as_ac_Header=$ac_header_preproc"
10126 fi
10127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10129
10130 fi
10131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10132   cat >>confdefs.h <<_ACEOF
10133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10134 _ACEOF
10135
10136 for ac_func in dlopen
10137 do
10138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10139 echo "$as_me:$LINENO: checking for $ac_func" >&5
10140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10141 if eval "test \"\${$as_ac_var+set}\" = set"; then
10142   echo $ECHO_N "(cached) $ECHO_C" >&6
10143 else
10144   cat >conftest.$ac_ext <<_ACEOF
10145 #line $LINENO "configure"
10146 #include "confdefs.h"
10147 /* System header to define __stub macros and hopefully few prototypes,
10148     which can conflict with char $ac_func (); below.  */
10149 #include <assert.h>
10150 /* Override any gcc2 internal prototype to avoid an error.  */
10151 #ifdef __cplusplus
10152 extern "C"
10153 #endif
10154 /* We use char because int might match the return type of a gcc2
10155    builtin and then its argument prototype would still apply.  */
10156 char $ac_func ();
10157 char (*f) ();
10158
10159 int
10160 main ()
10161 {
10162 /* The GNU C library defines this for functions which it implements
10163     to always fail with ENOSYS.  Some functions are actually named
10164     something starting with __ and the normal name is an alias.  */
10165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10166 choke me
10167 #else
10168 f = $ac_func;
10169 #endif
10170
10171   ;
10172   return 0;
10173 }
10174 _ACEOF
10175 rm -f conftest.$ac_objext conftest$ac_exeext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10177   (eval $ac_link) 2>&5
10178   ac_status=$?
10179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180   (exit $ac_status); } &&
10181          { ac_try='test -s conftest$ac_exeext'
10182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183   (eval $ac_try) 2>&5
10184   ac_status=$?
10185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186   (exit $ac_status); }; }; then
10187   eval "$as_ac_var=yes"
10188 else
10189   echo "$as_me: failed program was:" >&5
10190 cat conftest.$ac_ext >&5
10191 eval "$as_ac_var=no"
10192 fi
10193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10194 fi
10195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10197 if test `eval echo '${'$as_ac_var'}'` = yes; then
10198   cat >>confdefs.h <<_ACEOF
10199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10200 _ACEOF
10201
10202 else
10203   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10204 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10205 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10206   echo $ECHO_N "(cached) $ECHO_C" >&6
10207 else
10208   ac_check_lib_save_LIBS=$LIBS
10209 LIBS="-ldl  $LIBS"
10210 cat >conftest.$ac_ext <<_ACEOF
10211 #line $LINENO "configure"
10212 #include "confdefs.h"
10213
10214 /* Override any gcc2 internal prototype to avoid an error.  */
10215 #ifdef __cplusplus
10216 extern "C"
10217 #endif
10218 /* We use char because int might match the return type of a gcc2
10219    builtin and then its argument prototype would still apply.  */
10220 char dlopen ();
10221 int
10222 main ()
10223 {
10224 dlopen ();
10225   ;
10226   return 0;
10227 }
10228 _ACEOF
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231   (eval $ac_link) 2>&5
10232   ac_status=$?
10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   (exit $ac_status); } &&
10235          { ac_try='test -s conftest$ac_exeext'
10236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237   (eval $ac_try) 2>&5
10238   ac_status=$?
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); }; }; then
10241   ac_cv_lib_dl_dlopen=yes
10242 else
10243   echo "$as_me: failed program was:" >&5
10244 cat conftest.$ac_ext >&5
10245 ac_cv_lib_dl_dlopen=no
10246 fi
10247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10248 LIBS=$ac_check_lib_save_LIBS
10249 fi
10250 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10251 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10252 if test $ac_cv_lib_dl_dlopen = yes; then
10253
10254 cat >>confdefs.h <<\_ACEOF
10255 #define HAVE_DLOPEN 1
10256 _ACEOF
10257
10258                           DLLIBS="-ldl"
10259 else
10260   LIBEXT="a"
10261 fi
10262
10263 fi
10264 done
10265
10266 else
10267   LIBEXT="a"
10268 fi
10269
10270 done
10271
10272
10273     if test "$LIBEXT" = "so"
10274     then
10275       DLLFLAGS="-fPIC"
10276       DLLEXT=".so"
10277       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
10278 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
10279 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
10280   echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282   ac_wine_try_cflags_saved=$CFLAGS
10283 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
10284 cat >conftest.$ac_ext <<_ACEOF
10285 #line $LINENO "configure"
10286 #include "confdefs.h"
10287
10288 int
10289 main ()
10290 {
10291
10292   ;
10293   return 0;
10294 }
10295 _ACEOF
10296 rm -f conftest.$ac_objext conftest$ac_exeext
10297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10298   (eval $ac_link) 2>&5
10299   ac_status=$?
10300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301   (exit $ac_status); } &&
10302          { ac_try='test -s conftest$ac_exeext'
10303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304   (eval $ac_try) 2>&5
10305   ac_status=$?
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); }; }; then
10308   ac_cv_c_dll_gnuelf="yes"
10309 else
10310   echo "$as_me: failed program was:" >&5
10311 cat conftest.$ac_ext >&5
10312 ac_cv_c_dll_gnuelf="no"
10313 fi
10314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10315 CFLAGS=$ac_wine_try_cflags_saved
10316 fi
10317 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
10318 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
10319       if test "$ac_cv_c_dll_gnuelf" = "yes"
10320       then
10321         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
10322         LDDLLFLAGS="-Wl,-Bsymbolic"
10323         echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
10324 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
10325 if test "${ac_cv_c_dll_zdefs+set}" = set; then
10326   echo $ECHO_N "(cached) $ECHO_C" >&6
10327 else
10328   ac_wine_try_cflags_saved=$CFLAGS
10329 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
10330 cat >conftest.$ac_ext <<_ACEOF
10331 #line $LINENO "configure"
10332 #include "confdefs.h"
10333
10334 int
10335 main ()
10336 {
10337
10338   ;
10339   return 0;
10340 }
10341 _ACEOF
10342 rm -f conftest.$ac_objext conftest$ac_exeext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344   (eval $ac_link) 2>&5
10345   ac_status=$?
10346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347   (exit $ac_status); } &&
10348          { ac_try='test -s conftest$ac_exeext'
10349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350   (eval $ac_try) 2>&5
10351   ac_status=$?
10352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353   (exit $ac_status); }; }; then
10354   ac_cv_c_dll_zdefs="yes"
10355 else
10356   echo "$as_me: failed program was:" >&5
10357 cat conftest.$ac_ext >&5
10358 ac_cv_c_dll_zdefs="no"
10359 fi
10360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10361 CFLAGS=$ac_wine_try_cflags_saved
10362 fi
10363 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
10364 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
10365         if test "$ac_cv_c_dll_zdefs" = "yes"
10366         then
10367           LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
10368         fi
10369       else
10370         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
10371 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
10372 if test "${ac_cv_c_dll_unixware+set}" = set; then
10373   echo $ECHO_N "(cached) $ECHO_C" >&6
10374 else
10375   ac_wine_try_cflags_saved=$CFLAGS
10376 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
10377 cat >conftest.$ac_ext <<_ACEOF
10378 #line $LINENO "configure"
10379 #include "confdefs.h"
10380
10381 int
10382 main ()
10383 {
10384
10385   ;
10386   return 0;
10387 }
10388 _ACEOF
10389 rm -f conftest.$ac_objext conftest$ac_exeext
10390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10391   (eval $ac_link) 2>&5
10392   ac_status=$?
10393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394   (exit $ac_status); } &&
10395          { ac_try='test -s conftest$ac_exeext'
10396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10397   (eval $ac_try) 2>&5
10398   ac_status=$?
10399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400   (exit $ac_status); }; }; then
10401   ac_cv_c_dll_unixware="yes"
10402 else
10403   echo "$as_me: failed program was:" >&5
10404 cat conftest.$ac_ext >&5
10405 ac_cv_c_dll_unixware="no"
10406 fi
10407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10408 CFLAGS=$ac_wine_try_cflags_saved
10409 fi
10410 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
10411 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
10412         if test "$ac_cv_c_dll_unixware" = "yes"
10413         then
10414           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
10415           LDDLLFLAGS="-Wl,-B,symbolic"
10416         fi
10417       fi
10418     fi
10419
10420         CROSSTEST=""
10421
10422     if test "$cross_compiling" = "no"
10423     then
10424       for ac_prog in i586-mingw32msvc-gcc
10425 do
10426   # Extract the first word of "$ac_prog", so it can be a program name with args.
10427 set dummy $ac_prog; ac_word=$2
10428 echo "$as_me:$LINENO: checking for $ac_word" >&5
10429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10430 if test "${ac_cv_prog_CROSSCC+set}" = set; then
10431   echo $ECHO_N "(cached) $ECHO_C" >&6
10432 else
10433   if test -n "$CROSSCC"; then
10434   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
10435 else
10436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437 for as_dir in $PATH
10438 do
10439   IFS=$as_save_IFS
10440   test -z "$as_dir" && as_dir=.
10441   for ac_exec_ext in '' $ac_executable_extensions; do
10442   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10443     ac_cv_prog_CROSSCC="$ac_prog"
10444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10445     break 2
10446   fi
10447 done
10448 done
10449
10450 fi
10451 fi
10452 CROSSCC=$ac_cv_prog_CROSSCC
10453 if test -n "$CROSSCC"; then
10454   echo "$as_me:$LINENO: result: $CROSSCC" >&5
10455 echo "${ECHO_T}$CROSSCC" >&6
10456 else
10457   echo "$as_me:$LINENO: result: no" >&5
10458 echo "${ECHO_T}no" >&6
10459 fi
10460
10461   test -n "$CROSSCC" && break
10462 done
10463 test -n "$CROSSCC" || CROSSCC="false"
10464
10465       for ac_prog in i586-mingw32msvc-dlltool
10466 do
10467   # Extract the first word of "$ac_prog", so it can be a program name with args.
10468 set dummy $ac_prog; ac_word=$2
10469 echo "$as_me:$LINENO: checking for $ac_word" >&5
10470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10471 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
10472   echo $ECHO_N "(cached) $ECHO_C" >&6
10473 else
10474   if test -n "$DLLTOOL"; then
10475   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10476 else
10477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478 for as_dir in $PATH
10479 do
10480   IFS=$as_save_IFS
10481   test -z "$as_dir" && as_dir=.
10482   for ac_exec_ext in '' $ac_executable_extensions; do
10483   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10484     ac_cv_prog_DLLTOOL="$ac_prog"
10485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10486     break 2
10487   fi
10488 done
10489 done
10490
10491 fi
10492 fi
10493 DLLTOOL=$ac_cv_prog_DLLTOOL
10494 if test -n "$DLLTOOL"; then
10495   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
10496 echo "${ECHO_T}$DLLTOOL" >&6
10497 else
10498   echo "$as_me:$LINENO: result: no" >&5
10499 echo "${ECHO_T}no" >&6
10500 fi
10501
10502   test -n "$DLLTOOL" && break
10503 done
10504 test -n "$DLLTOOL" || DLLTOOL="false"
10505
10506       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
10507     fi
10508     ;;
10509 esac
10510
10511 if test "$LIBEXT" = "a"; then
10512   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
10513 It is currently not possible to build Wine without shared library
10514 (.so) support to allow transparent switch between .so and .dll files.
10515 If you are using Linux, you will need a newer binutils.
10516 " >&5
10517 echo "$as_me: error: could not find a way to build shared libraries.
10518 It is currently not possible to build Wine without shared library
10519 (.so) support to allow transparent switch between .so and .dll files.
10520 If you are using Linux, you will need a newer binutils.
10521 " >&2;}
10522    { (exit 1); exit 1; }; }
10523 fi
10524
10525 case $build_os in
10526   cygwin*|mingw32*)
10527     LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\""
10528  ;;
10529   *)
10530     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\""
10531  ;;
10532 esac
10533
10534 CRTLIBS=""
10535
10536 case $host_os in
10537   mingw32*)
10538     CRTLIBS="-lmsvcrt" ;;
10539 esac
10540
10541
10542 if test "$LIBEXT" = "so"
10543 then
10544   # Extract the first word of "ldd", so it can be a program name with args.
10545 set dummy ldd; ac_word=$2
10546 echo "$as_me:$LINENO: checking for $ac_word" >&5
10547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10548 if test "${ac_cv_path_LDD+set}" = set; then
10549   echo $ECHO_N "(cached) $ECHO_C" >&6
10550 else
10551   case $LDD in
10552   [\\/]* | ?:[\\/]*)
10553   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10554   ;;
10555   *)
10556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10557 as_dummy="/sbin:/usr/sbin:$PATH"
10558 for as_dir in $as_dummy
10559 do
10560   IFS=$as_save_IFS
10561   test -z "$as_dir" && as_dir=.
10562   for ac_exec_ext in '' $ac_executable_extensions; do
10563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10564     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10566     break 2
10567   fi
10568 done
10569 done
10570
10571   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
10572   ;;
10573 esac
10574 fi
10575 LDD=$ac_cv_path_LDD
10576
10577 if test -n "$LDD"; then
10578   echo "$as_me:$LINENO: result: $LDD" >&5
10579 echo "${ECHO_T}$LDD" >&6
10580 else
10581   echo "$as_me:$LINENO: result: no" >&5
10582 echo "${ECHO_T}no" >&6
10583 fi
10584
10585
10586 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
10587 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
10588 if test "${ac_cv_lib_soname_X11+set}" = set; then
10589   echo $ECHO_N "(cached) $ECHO_C" >&6
10590 else
10591   ac_get_soname_save_LIBS=$LIBS
10592 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
10593   cat >conftest.$ac_ext <<_ACEOF
10594 #line $LINENO "configure"
10595 #include "confdefs.h"
10596
10597 /* Override any gcc2 internal prototype to avoid an error.  */
10598 #ifdef __cplusplus
10599 extern "C"
10600 #endif
10601 /* We use char because int might match the return type of a gcc2
10602    builtin and then its argument prototype would still apply.  */
10603 char XCreateWindow ();
10604 int
10605 main ()
10606 {
10607 XCreateWindow ();
10608   ;
10609   return 0;
10610 }
10611 _ACEOF
10612 rm -f conftest.$ac_objext conftest$ac_exeext
10613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10614   (eval $ac_link) 2>&5
10615   ac_status=$?
10616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617   (exit $ac_status); } &&
10618          { ac_try='test -s conftest$ac_exeext'
10619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620   (eval $ac_try) 2>&5
10621   ac_status=$?
10622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); }; }; then
10624   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[       ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10625   if test "x$ac_cv_lib_soname_X11" = "x"
10626   then
10627      ac_cv_lib_soname_X11="libX11.so"
10628   fi
10629 else
10630   echo "$as_me: failed program was:" >&5
10631 cat conftest.$ac_ext >&5
10632 ac_cv_lib_soname_X11="libX11.so"
10633 fi
10634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10635   LIBS=$ac_get_soname_save_LIBS
10636 fi
10637 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
10638 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
10639 if test "x$ac_cv_lib_soname_X11" != xNONE
10640 then
10641 cat >>confdefs.h <<_ACEOF
10642 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
10643 _ACEOF
10644 fi
10645
10646 echo "$as_me:$LINENO: checking for -lXext soname" >&5
10647 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
10648 if test "${ac_cv_lib_soname_Xext+set}" = set; then
10649   echo $ECHO_N "(cached) $ECHO_C" >&6
10650 else
10651   ac_get_soname_save_LIBS=$LIBS
10652 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10653   cat >conftest.$ac_ext <<_ACEOF
10654 #line $LINENO "configure"
10655 #include "confdefs.h"
10656
10657 /* Override any gcc2 internal prototype to avoid an error.  */
10658 #ifdef __cplusplus
10659 extern "C"
10660 #endif
10661 /* We use char because int might match the return type of a gcc2
10662    builtin and then its argument prototype would still apply.  */
10663 char XextCreateExtension ();
10664 int
10665 main ()
10666 {
10667 XextCreateExtension ();
10668   ;
10669   return 0;
10670 }
10671 _ACEOF
10672 rm -f conftest.$ac_objext conftest$ac_exeext
10673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10674   (eval $ac_link) 2>&5
10675   ac_status=$?
10676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677   (exit $ac_status); } &&
10678          { ac_try='test -s conftest$ac_exeext'
10679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680   (eval $ac_try) 2>&5
10681   ac_status=$?
10682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683   (exit $ac_status); }; }; then
10684   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10685   if test "x$ac_cv_lib_soname_Xext" = "x"
10686   then
10687      ac_cv_lib_soname_Xext="libXext.so"
10688   fi
10689 else
10690   echo "$as_me: failed program was:" >&5
10691 cat conftest.$ac_ext >&5
10692 ac_cv_lib_soname_Xext="libXext.so"
10693 fi
10694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10695   LIBS=$ac_get_soname_save_LIBS
10696 fi
10697 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
10698 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
10699 if test "x$ac_cv_lib_soname_Xext" != xNONE
10700 then
10701 cat >>confdefs.h <<_ACEOF
10702 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
10703 _ACEOF
10704 fi
10705
10706 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
10707 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
10708 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
10709   echo $ECHO_N "(cached) $ECHO_C" >&6
10710 else
10711   ac_get_soname_save_LIBS=$LIBS
10712 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10713   cat >conftest.$ac_ext <<_ACEOF
10714 #line $LINENO "configure"
10715 #include "confdefs.h"
10716
10717 /* Override any gcc2 internal prototype to avoid an error.  */
10718 #ifdef __cplusplus
10719 extern "C"
10720 #endif
10721 /* We use char because int might match the return type of a gcc2
10722    builtin and then its argument prototype would still apply.  */
10723 char XRenderQueryExtension ();
10724 int
10725 main ()
10726 {
10727 XRenderQueryExtension ();
10728   ;
10729   return 0;
10730 }
10731 _ACEOF
10732 rm -f conftest.$ac_objext conftest$ac_exeext
10733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10734   (eval $ac_link) 2>&5
10735   ac_status=$?
10736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737   (exit $ac_status); } &&
10738          { ac_try='test -s conftest$ac_exeext'
10739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740   (eval $ac_try) 2>&5
10741   ac_status=$?
10742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743   (exit $ac_status); }; }; then
10744   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[       ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10745   if test "x$ac_cv_lib_soname_Xrender" = "x"
10746   then
10747      ac_cv_lib_soname_Xrender="libXrender.so"
10748   fi
10749 else
10750   echo "$as_me: failed program was:" >&5
10751 cat conftest.$ac_ext >&5
10752 ac_cv_lib_soname_Xrender="libXrender.so"
10753 fi
10754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10755   LIBS=$ac_get_soname_save_LIBS
10756 fi
10757 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
10758 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
10759 if test "x$ac_cv_lib_soname_Xrender" != xNONE
10760 then
10761 cat >>confdefs.h <<_ACEOF
10762 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
10763 _ACEOF
10764 fi
10765
10766 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
10767 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
10768 if test "${ac_cv_lib_soname_freetype+set}" = set; then
10769   echo $ECHO_N "(cached) $ECHO_C" >&6
10770 else
10771   ac_get_soname_save_LIBS=$LIBS
10772 LIBS="-lfreetype $X_LIBS $LIBS"
10773   cat >conftest.$ac_ext <<_ACEOF
10774 #line $LINENO "configure"
10775 #include "confdefs.h"
10776
10777 /* Override any gcc2 internal prototype to avoid an error.  */
10778 #ifdef __cplusplus
10779 extern "C"
10780 #endif
10781 /* We use char because int might match the return type of a gcc2
10782    builtin and then its argument prototype would still apply.  */
10783 char FT_Init_FreeType ();
10784 int
10785 main ()
10786 {
10787 FT_Init_FreeType ();
10788   ;
10789   return 0;
10790 }
10791 _ACEOF
10792 rm -f conftest.$ac_objext conftest$ac_exeext
10793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10794   (eval $ac_link) 2>&5
10795   ac_status=$?
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); } &&
10798          { ac_try='test -s conftest$ac_exeext'
10799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800   (eval $ac_try) 2>&5
10801   ac_status=$?
10802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803   (exit $ac_status); }; }; then
10804   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10805   if test "x$ac_cv_lib_soname_freetype" = "x"
10806   then
10807      ac_cv_lib_soname_freetype="libfreetype.so"
10808   fi
10809 else
10810   echo "$as_me: failed program was:" >&5
10811 cat conftest.$ac_ext >&5
10812 ac_cv_lib_soname_freetype="libfreetype.so"
10813 fi
10814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10815   LIBS=$ac_get_soname_save_LIBS
10816 fi
10817 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
10818 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
10819 if test "x$ac_cv_lib_soname_freetype" != xNONE
10820 then
10821 cat >>confdefs.h <<_ACEOF
10822 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10823 _ACEOF
10824 fi
10825
10826 echo "$as_me:$LINENO: checking for -lGL soname" >&5
10827 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
10828 if test "${ac_cv_lib_soname_GL+set}" = set; then
10829   echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831   ac_get_soname_save_LIBS=$LIBS
10832 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
10833   cat >conftest.$ac_ext <<_ACEOF
10834 #line $LINENO "configure"
10835 #include "confdefs.h"
10836
10837 /* Override any gcc2 internal prototype to avoid an error.  */
10838 #ifdef __cplusplus
10839 extern "C"
10840 #endif
10841 /* We use char because int might match the return type of a gcc2
10842    builtin and then its argument prototype would still apply.  */
10843 char glXQueryExtension ();
10844 int
10845 main ()
10846 {
10847 glXQueryExtension ();
10848   ;
10849   return 0;
10850 }
10851 _ACEOF
10852 rm -f conftest.$ac_objext conftest$ac_exeext
10853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10854   (eval $ac_link) 2>&5
10855   ac_status=$?
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); } &&
10858          { ac_try='test -s conftest$ac_exeext'
10859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860   (eval $ac_try) 2>&5
10861   ac_status=$?
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); }; }; then
10864   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^[         ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10865   if test "x$ac_cv_lib_soname_GL" = "x"
10866   then
10867      ac_cv_lib_soname_GL="libGL.so"
10868   fi
10869 else
10870   echo "$as_me: failed program was:" >&5
10871 cat conftest.$ac_ext >&5
10872 ac_cv_lib_soname_GL="libGL.so"
10873 fi
10874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10875   LIBS=$ac_get_soname_save_LIBS
10876 fi
10877 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
10878 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
10879 if test "x$ac_cv_lib_soname_GL" != xNONE
10880 then
10881 cat >>confdefs.h <<_ACEOF
10882 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10883 _ACEOF
10884 fi
10885
10886 echo "$as_me:$LINENO: checking for -lcups soname" >&5
10887 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
10888 if test "${ac_cv_lib_soname_cups+set}" = set; then
10889   echo $ECHO_N "(cached) $ECHO_C" >&6
10890 else
10891   ac_get_soname_save_LIBS=$LIBS
10892 LIBS="-lcups  $LIBS"
10893   cat >conftest.$ac_ext <<_ACEOF
10894 #line $LINENO "configure"
10895 #include "confdefs.h"
10896
10897 /* Override any gcc2 internal prototype to avoid an error.  */
10898 #ifdef __cplusplus
10899 extern "C"
10900 #endif
10901 /* We use char because int might match the return type of a gcc2
10902    builtin and then its argument prototype would still apply.  */
10903 char cupsGetDefault ();
10904 int
10905 main ()
10906 {
10907 cupsGetDefault ();
10908   ;
10909   return 0;
10910 }
10911 _ACEOF
10912 rm -f conftest.$ac_objext conftest$ac_exeext
10913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10914   (eval $ac_link) 2>&5
10915   ac_status=$?
10916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917   (exit $ac_status); } &&
10918          { ac_try='test -s conftest$ac_exeext'
10919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920   (eval $ac_try) 2>&5
10921   ac_status=$?
10922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923   (exit $ac_status); }; }; then
10924   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10925   if test "x$ac_cv_lib_soname_cups" = "x"
10926   then
10927      ac_cv_lib_soname_cups="libcups.so"
10928   fi
10929 else
10930   echo "$as_me: failed program was:" >&5
10931 cat conftest.$ac_ext >&5
10932 ac_cv_lib_soname_cups="libcups.so"
10933 fi
10934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10935   LIBS=$ac_get_soname_save_LIBS
10936 fi
10937 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
10938 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
10939 if test "x$ac_cv_lib_soname_cups" != xNONE
10940 then
10941 cat >>confdefs.h <<_ACEOF
10942 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10943 _ACEOF
10944 fi
10945 fi
10946
10947
10948
10949 wine_cv_libc_reentrant=no
10950 echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
10951 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
10952 if test "${wine_cv_libc_r___errno_location+set}" = set; then
10953   echo $ECHO_N "(cached) $ECHO_C" >&6
10954 else
10955   if test "$cross_compiling" = yes; then
10956   wine_cv_libc_r___errno_location=yes
10957 else
10958   cat >conftest.$ac_ext <<_ACEOF
10959 #line $LINENO "configure"
10960 #include "confdefs.h"
10961 int myerrno = 0;
10962 int *__errno_location(){return &myerrno;}
10963 main(){close(333); close(333); exit(!myerrno);}
10964 _ACEOF
10965 rm -f conftest$ac_exeext
10966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10967   (eval $ac_link) 2>&5
10968   ac_status=$?
10969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972   (eval $ac_try) 2>&5
10973   ac_status=$?
10974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975   (exit $ac_status); }; }; then
10976   wine_cv_libc_r___errno_location=yes
10977 else
10978   echo "$as_me: program exited with status $ac_status" >&5
10979 echo "$as_me: failed program was:" >&5
10980 cat conftest.$ac_ext >&5
10981 ( exit $ac_status )
10982 wine_cv_libc_r___errno_location=no
10983 fi
10984 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10985 fi
10986 fi
10987 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
10988 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
10989 if test "$wine_cv_libc_r___errno_location" = "yes"; then
10990   wine_cv_libc_reentrant=__errno_location
10991 else
10992     echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
10993 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
10994 if test "${wine_cv_libc_r___error+set}" = set; then
10995   echo $ECHO_N "(cached) $ECHO_C" >&6
10996 else
10997   if test "$cross_compiling" = yes; then
10998   wine_cv_libc_r___error=yes
10999 else
11000   cat >conftest.$ac_ext <<_ACEOF
11001 #line $LINENO "configure"
11002 #include "confdefs.h"
11003 int myerrno = 0;
11004 int *__error(){return &myerrno;}
11005 main(){close(333); close(333); exit(!myerrno);}
11006 _ACEOF
11007 rm -f conftest$ac_exeext
11008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11009   (eval $ac_link) 2>&5
11010   ac_status=$?
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11014   (eval $ac_try) 2>&5
11015   ac_status=$?
11016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017   (exit $ac_status); }; }; then
11018   wine_cv_libc_r___error=yes
11019 else
11020   echo "$as_me: program exited with status $ac_status" >&5
11021 echo "$as_me: failed program was:" >&5
11022 cat conftest.$ac_ext >&5
11023 ( exit $ac_status )
11024 wine_cv_libc_r___error=no
11025 fi
11026 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11027 fi
11028 fi
11029 echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
11030 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
11031 if test "$wine_cv_libc_r___error" = "yes"; then
11032   wine_cv_libc_reentrant=__error
11033 else
11034       echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
11035 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
11036 if test "${wine_cv_libc_r____errno+set}" = set; then
11037   echo $ECHO_N "(cached) $ECHO_C" >&6
11038 else
11039   if test "$cross_compiling" = yes; then
11040   wine_cv_libc_r____errno=yes
11041 else
11042   cat >conftest.$ac_ext <<_ACEOF
11043 #line $LINENO "configure"
11044 #include "confdefs.h"
11045 int myerrno = 0;
11046 int *___errno(){return &myerrno;}
11047 main(){close(333); close(333); exit(!myerrno);}
11048 _ACEOF
11049 rm -f conftest$ac_exeext
11050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11051   (eval $ac_link) 2>&5
11052   ac_status=$?
11053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056   (eval $ac_try) 2>&5
11057   ac_status=$?
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); }; }; then
11060   wine_cv_libc_r____errno=yes
11061 else
11062   echo "$as_me: program exited with status $ac_status" >&5
11063 echo "$as_me: failed program was:" >&5
11064 cat conftest.$ac_ext >&5
11065 ( exit $ac_status )
11066 wine_cv_libc_r____errno=no
11067 fi
11068 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11069 fi
11070 fi
11071 echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
11072 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
11073 if test "$wine_cv_libc_r____errno" = "yes"; then
11074   wine_cv_libc_reentrant=___errno
11075 else
11076         echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
11077 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
11078 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
11079   echo $ECHO_N "(cached) $ECHO_C" >&6
11080 else
11081   if test "$cross_compiling" = yes; then
11082   wine_cv_libc_r___thr_errno=yes
11083 else
11084   cat >conftest.$ac_ext <<_ACEOF
11085 #line $LINENO "configure"
11086 #include "confdefs.h"
11087 int myerrno = 0;
11088 int *__thr_errno(){return &myerrno;}
11089 main(){close(333); close(333); exit(!myerrno);}
11090 _ACEOF
11091 rm -f conftest$ac_exeext
11092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11093   (eval $ac_link) 2>&5
11094   ac_status=$?
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098   (eval $ac_try) 2>&5
11099   ac_status=$?
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   (exit $ac_status); }; }; then
11102   wine_cv_libc_r___thr_errno=yes
11103 else
11104   echo "$as_me: program exited with status $ac_status" >&5
11105 echo "$as_me: failed program was:" >&5
11106 cat conftest.$ac_ext >&5
11107 ( exit $ac_status )
11108 wine_cv_libc_r___thr_errno=no
11109 fi
11110 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11111 fi
11112 fi
11113 echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
11114 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
11115 if test "$wine_cv_libc_r___thr_errno" = "yes"; then
11116   wine_cv_libc_reentrant=__thr_errno
11117 else
11118           echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
11119 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
11120 if test "${wine_cv_libc_r___errno+set}" = set; then
11121   echo $ECHO_N "(cached) $ECHO_C" >&6
11122 else
11123   if test "$cross_compiling" = yes; then
11124   wine_cv_libc_r___errno=yes
11125 else
11126   cat >conftest.$ac_ext <<_ACEOF
11127 #line $LINENO "configure"
11128 #include "confdefs.h"
11129 int myerrno = 0;
11130 int *__errno(){return &myerrno;}
11131 main(){close(333); close(333); exit(!myerrno);}
11132 _ACEOF
11133 rm -f conftest$ac_exeext
11134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11135   (eval $ac_link) 2>&5
11136   ac_status=$?
11137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140   (eval $ac_try) 2>&5
11141   ac_status=$?
11142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); }; }; then
11144   wine_cv_libc_r___errno=yes
11145 else
11146   echo "$as_me: program exited with status $ac_status" >&5
11147 echo "$as_me: failed program was:" >&5
11148 cat conftest.$ac_ext >&5
11149 ( exit $ac_status )
11150 wine_cv_libc_r___errno=no
11151 fi
11152 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11153 fi
11154 fi
11155 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
11156 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
11157 if test "$wine_cv_libc_r___errno" = "yes"; then
11158   wine_cv_libc_reentrant=__errno
11159 fi
11160
11161
11162 fi
11163
11164 fi
11165
11166 fi
11167
11168 fi
11169
11170
11171 if test "$wine_cv_libc_reentrant" != "no"
11172 then
11173
11174 cat >>confdefs.h <<_ACEOF
11175 #define ERRNO_LOCATION $wine_cv_libc_reentrant
11176 _ACEOF
11177
11178 fi
11179
11180
11181 if test "$have_x" = "yes"
11182 then
11183 echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
11184 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
11185 if test "${wine_cv_x_reentrant+set}" = set; then
11186   echo $ECHO_N "(cached) $ECHO_C" >&6
11187 else
11188   libX11_check=none
11189     for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
11190         if test -r $dir/libX11.so; then
11191             libX11_check="-D $dir/libX11.so"
11192             break
11193         fi
11194         if test -r $dir/libX11.a; then
11195             libX11_check="$dir/libX11.a"
11196             break
11197         fi
11198     done
11199     if test "$libX11_check" != "none"; then
11200         if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
11201         then
11202             wine_cv_x_reentrant=yes
11203         else
11204             wine_cv_x_reentrant=no
11205         fi
11206     else
11207         wine_cv_x_reentrant=unknown
11208     fi
11209 fi
11210 echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
11211 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
11212 fi
11213
11214
11215 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11216 # for constant arguments.  Useless!
11217 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11218 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11219 if test "${ac_cv_working_alloca_h+set}" = set; then
11220   echo $ECHO_N "(cached) $ECHO_C" >&6
11221 else
11222   cat >conftest.$ac_ext <<_ACEOF
11223 #line $LINENO "configure"
11224 #include "confdefs.h"
11225 #include <alloca.h>
11226 int
11227 main ()
11228 {
11229 char *p = (char *) alloca (2 * sizeof (int));
11230   ;
11231   return 0;
11232 }
11233 _ACEOF
11234 rm -f conftest.$ac_objext conftest$ac_exeext
11235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11236   (eval $ac_link) 2>&5
11237   ac_status=$?
11238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239   (exit $ac_status); } &&
11240          { ac_try='test -s conftest$ac_exeext'
11241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242   (eval $ac_try) 2>&5
11243   ac_status=$?
11244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245   (exit $ac_status); }; }; then
11246   ac_cv_working_alloca_h=yes
11247 else
11248   echo "$as_me: failed program was:" >&5
11249 cat conftest.$ac_ext >&5
11250 ac_cv_working_alloca_h=no
11251 fi
11252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11253 fi
11254 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11255 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11256 if test $ac_cv_working_alloca_h = yes; then
11257
11258 cat >>confdefs.h <<\_ACEOF
11259 #define HAVE_ALLOCA_H 1
11260 _ACEOF
11261
11262 fi
11263
11264 echo "$as_me:$LINENO: checking for alloca" >&5
11265 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11266 if test "${ac_cv_func_alloca_works+set}" = set; then
11267   echo $ECHO_N "(cached) $ECHO_C" >&6
11268 else
11269   cat >conftest.$ac_ext <<_ACEOF
11270 #line $LINENO "configure"
11271 #include "confdefs.h"
11272 #ifdef __GNUC__
11273 # define alloca __builtin_alloca
11274 #else
11275 # ifdef _MSC_VER
11276 #  include <malloc.h>
11277 #  define alloca _alloca
11278 # else
11279 #  if HAVE_ALLOCA_H
11280 #   include <alloca.h>
11281 #  else
11282 #   ifdef _AIX
11283  #pragma alloca
11284 #   else
11285 #    ifndef alloca /* predefined by HP cc +Olibcalls */
11286 char *alloca ();
11287 #    endif
11288 #   endif
11289 #  endif
11290 # endif
11291 #endif
11292
11293 int
11294 main ()
11295 {
11296 char *p = (char *) alloca (1);
11297   ;
11298   return 0;
11299 }
11300 _ACEOF
11301 rm -f conftest.$ac_objext conftest$ac_exeext
11302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11303   (eval $ac_link) 2>&5
11304   ac_status=$?
11305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306   (exit $ac_status); } &&
11307          { ac_try='test -s conftest$ac_exeext'
11308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309   (eval $ac_try) 2>&5
11310   ac_status=$?
11311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312   (exit $ac_status); }; }; then
11313   ac_cv_func_alloca_works=yes
11314 else
11315   echo "$as_me: failed program was:" >&5
11316 cat conftest.$ac_ext >&5
11317 ac_cv_func_alloca_works=no
11318 fi
11319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11320 fi
11321 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11322 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11323
11324 if test $ac_cv_func_alloca_works = yes; then
11325
11326 cat >>confdefs.h <<\_ACEOF
11327 #define HAVE_ALLOCA 1
11328 _ACEOF
11329
11330 else
11331   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11332 # that cause trouble.  Some versions do not even contain alloca or
11333 # contain a buggy version.  If you still want to use their alloca,
11334 # use ar to extract alloca.o from them instead of compiling alloca.c.
11335
11336 ALLOCA=alloca.$ac_objext
11337
11338 cat >>confdefs.h <<\_ACEOF
11339 #define C_ALLOCA 1
11340 _ACEOF
11341
11342
11343 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11344 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11345 if test "${ac_cv_os_cray+set}" = set; then
11346   echo $ECHO_N "(cached) $ECHO_C" >&6
11347 else
11348   cat >conftest.$ac_ext <<_ACEOF
11349 #line $LINENO "configure"
11350 #include "confdefs.h"
11351 #if defined(CRAY) && ! defined(CRAY2)
11352 webecray
11353 #else
11354 wenotbecray
11355 #endif
11356
11357 _ACEOF
11358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11359   $EGREP "webecray" >/dev/null 2>&1; then
11360   ac_cv_os_cray=yes
11361 else
11362   ac_cv_os_cray=no
11363 fi
11364 rm -f conftest*
11365
11366 fi
11367 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11368 echo "${ECHO_T}$ac_cv_os_cray" >&6
11369 if test $ac_cv_os_cray = yes; then
11370   for ac_func in _getb67 GETB67 getb67; do
11371     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11372 echo "$as_me:$LINENO: checking for $ac_func" >&5
11373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11374 if eval "test \"\${$as_ac_var+set}\" = set"; then
11375   echo $ECHO_N "(cached) $ECHO_C" >&6
11376 else
11377   cat >conftest.$ac_ext <<_ACEOF
11378 #line $LINENO "configure"
11379 #include "confdefs.h"
11380 /* System header to define __stub macros and hopefully few prototypes,
11381     which can conflict with char $ac_func (); below.  */
11382 #include <assert.h>
11383 /* Override any gcc2 internal prototype to avoid an error.  */
11384 #ifdef __cplusplus
11385 extern "C"
11386 #endif
11387 /* We use char because int might match the return type of a gcc2
11388    builtin and then its argument prototype would still apply.  */
11389 char $ac_func ();
11390 char (*f) ();
11391
11392 int
11393 main ()
11394 {
11395 /* The GNU C library defines this for functions which it implements
11396     to always fail with ENOSYS.  Some functions are actually named
11397     something starting with __ and the normal name is an alias.  */
11398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11399 choke me
11400 #else
11401 f = $ac_func;
11402 #endif
11403
11404   ;
11405   return 0;
11406 }
11407 _ACEOF
11408 rm -f conftest.$ac_objext conftest$ac_exeext
11409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11410   (eval $ac_link) 2>&5
11411   ac_status=$?
11412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413   (exit $ac_status); } &&
11414          { ac_try='test -s conftest$ac_exeext'
11415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416   (eval $ac_try) 2>&5
11417   ac_status=$?
11418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419   (exit $ac_status); }; }; then
11420   eval "$as_ac_var=yes"
11421 else
11422   echo "$as_me: failed program was:" >&5
11423 cat conftest.$ac_ext >&5
11424 eval "$as_ac_var=no"
11425 fi
11426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11427 fi
11428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11430 if test `eval echo '${'$as_ac_var'}'` = yes; then
11431
11432 cat >>confdefs.h <<_ACEOF
11433 #define CRAY_STACKSEG_END $ac_func
11434 _ACEOF
11435
11436     break
11437 fi
11438
11439   done
11440 fi
11441
11442 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11443 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11444 if test "${ac_cv_c_stack_direction+set}" = set; then
11445   echo $ECHO_N "(cached) $ECHO_C" >&6
11446 else
11447   if test "$cross_compiling" = yes; then
11448   ac_cv_c_stack_direction=0
11449 else
11450   cat >conftest.$ac_ext <<_ACEOF
11451 #line $LINENO "configure"
11452 #include "confdefs.h"
11453 int
11454 find_stack_direction ()
11455 {
11456   static char *addr = 0;
11457   auto char dummy;
11458   if (addr == 0)
11459     {
11460       addr = &dummy;
11461       return find_stack_direction ();
11462     }
11463   else
11464     return (&dummy > addr) ? 1 : -1;
11465 }
11466
11467 int
11468 main ()
11469 {
11470   exit (find_stack_direction () < 0);
11471 }
11472 _ACEOF
11473 rm -f conftest$ac_exeext
11474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11475   (eval $ac_link) 2>&5
11476   ac_status=$?
11477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480   (eval $ac_try) 2>&5
11481   ac_status=$?
11482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483   (exit $ac_status); }; }; then
11484   ac_cv_c_stack_direction=1
11485 else
11486   echo "$as_me: program exited with status $ac_status" >&5
11487 echo "$as_me: failed program was:" >&5
11488 cat conftest.$ac_ext >&5
11489 ( exit $ac_status )
11490 ac_cv_c_stack_direction=-1
11491 fi
11492 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11493 fi
11494 fi
11495 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11496 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11497
11498 cat >>confdefs.h <<_ACEOF
11499 #define STACK_DIRECTION $ac_cv_c_stack_direction
11500 _ACEOF
11501
11502
11503 fi
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558 for ac_func in \
11559         _lwp_create \
11560         _pclose \
11561         _popen \
11562         _snprintf \
11563         _stricmp \
11564         _strnicmp \
11565         chsize \
11566         clone \
11567         ecvt \
11568         finite \
11569         fpclass \
11570         ftruncate \
11571         ftruncate64 \
11572         getnetbyaddr \
11573         getnetbyname \
11574         getopt_long \
11575         getpagesize \
11576         getprotobyname \
11577         getprotobynumber \
11578         getpwuid \
11579         getservbyport \
11580         getsockopt \
11581         inet_network \
11582         lseek64 \
11583         lstat \
11584         memmove \
11585         mkstemp \
11586         mmap \
11587         pclose \
11588         popen \
11589         pread \
11590         pthread_getspecific \
11591         pthread_key_create \
11592         pthread_mutex_lock \
11593         pthread_mutex_unlock \
11594         pthread_setspecific \
11595         pwrite \
11596         rfork \
11597         select \
11598         sendmsg \
11599         settimeofday \
11600         sigaltstack \
11601         snprintf \
11602         statfs \
11603         strcasecmp \
11604         strerror \
11605         strncasecmp \
11606         tcgetattr \
11607         timegm \
11608         usleep \
11609         vfscanf \
11610         wait4 \
11611         waitpid \
11612
11613 do
11614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11615 echo "$as_me:$LINENO: checking for $ac_func" >&5
11616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11617 if eval "test \"\${$as_ac_var+set}\" = set"; then
11618   echo $ECHO_N "(cached) $ECHO_C" >&6
11619 else
11620   cat >conftest.$ac_ext <<_ACEOF
11621 #line $LINENO "configure"
11622 #include "confdefs.h"
11623 /* System header to define __stub macros and hopefully few prototypes,
11624     which can conflict with char $ac_func (); below.  */
11625 #include <assert.h>
11626 /* Override any gcc2 internal prototype to avoid an error.  */
11627 #ifdef __cplusplus
11628 extern "C"
11629 #endif
11630 /* We use char because int might match the return type of a gcc2
11631    builtin and then its argument prototype would still apply.  */
11632 char $ac_func ();
11633 char (*f) ();
11634
11635 int
11636 main ()
11637 {
11638 /* The GNU C library defines this for functions which it implements
11639     to always fail with ENOSYS.  Some functions are actually named
11640     something starting with __ and the normal name is an alias.  */
11641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11642 choke me
11643 #else
11644 f = $ac_func;
11645 #endif
11646
11647   ;
11648   return 0;
11649 }
11650 _ACEOF
11651 rm -f conftest.$ac_objext conftest$ac_exeext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11653   (eval $ac_link) 2>&5
11654   ac_status=$?
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); } &&
11657          { ac_try='test -s conftest$ac_exeext'
11658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659   (eval $ac_try) 2>&5
11660   ac_status=$?
11661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662   (exit $ac_status); }; }; then
11663   eval "$as_ac_var=yes"
11664 else
11665   echo "$as_me: failed program was:" >&5
11666 cat conftest.$ac_ext >&5
11667 eval "$as_ac_var=no"
11668 fi
11669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11670 fi
11671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11672 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11673 if test `eval echo '${'$as_ac_var'}'` = yes; then
11674   cat >>confdefs.h <<_ACEOF
11675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11676 _ACEOF
11677
11678 fi
11679 done
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751 for ac_header in \
11752         arpa/inet.h \
11753         arpa/nameser.h \
11754         cups/cups.h \
11755         direct.h \
11756         elf.h \
11757         float.h \
11758         getopt.h \
11759         ieeefp.h \
11760         io.h \
11761         libio.h \
11762         libutil.h \
11763         link.h \
11764         linux/cdrom.h \
11765         linux/hdreg.h \
11766         linux/input.h \
11767         linux/joystick.h \
11768         linux/major.h \
11769         linux/param.h \
11770         linux/serial.h \
11771         linux/ucdrom.h \
11772         netdb.h \
11773         netinet/in.h \
11774         netinet/in_systm.h \
11775         netinet/tcp.h \
11776         pty.h \
11777         pwd.h \
11778         sched.h \
11779         scsi/sg.h \
11780         socket.h \
11781         stdint.h \
11782         strings.h \
11783         sys/cdio.h \
11784         sys/errno.h \
11785         sys/file.h \
11786         sys/filio.h \
11787         sys/inttypes.h \
11788         sys/ioctl.h \
11789         sys/ipc.h \
11790         sys/link.h \
11791         sys/lwp.h \
11792         sys/mman.h \
11793         sys/modem.h \
11794         sys/msg.h \
11795         sys/param.h \
11796         sys/poll.h \
11797         sys/ptrace.h \
11798         sys/reg.h \
11799         sys/shm.h \
11800         sys/signal.h \
11801         sys/socket.h \
11802         sys/sockio.h \
11803         sys/statfs.h \
11804         sys/strtio.h \
11805         sys/syscall.h \
11806         sys/sysctl.h \
11807         sys/time.h \
11808         sys/times.h \
11809         sys/uio.h \
11810         sys/un.h \
11811         sys/v86.h \
11812         sys/v86intr.h \
11813         sys/vfs.h \
11814         sys/vm86.h \
11815         sys/wait.h \
11816         syscall.h \
11817         termios.h \
11818         unistd.h \
11819         utime.h \
11820
11821 do
11822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11824   echo "$as_me:$LINENO: checking for $ac_header" >&5
11825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11827   echo $ECHO_N "(cached) $ECHO_C" >&6
11828 fi
11829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11831 else
11832   # Is the header compilable?
11833 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11835 cat >conftest.$ac_ext <<_ACEOF
11836 #line $LINENO "configure"
11837 #include "confdefs.h"
11838 $ac_includes_default
11839 #include <$ac_header>
11840 _ACEOF
11841 rm -f conftest.$ac_objext
11842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11843   (eval $ac_compile) 2>&5
11844   ac_status=$?
11845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846   (exit $ac_status); } &&
11847          { ac_try='test -s conftest.$ac_objext'
11848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849   (eval $ac_try) 2>&5
11850   ac_status=$?
11851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852   (exit $ac_status); }; }; then
11853   ac_header_compiler=yes
11854 else
11855   echo "$as_me: failed program was:" >&5
11856 cat conftest.$ac_ext >&5
11857 ac_header_compiler=no
11858 fi
11859 rm -f conftest.$ac_objext conftest.$ac_ext
11860 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11861 echo "${ECHO_T}$ac_header_compiler" >&6
11862
11863 # Is the header present?
11864 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11866 cat >conftest.$ac_ext <<_ACEOF
11867 #line $LINENO "configure"
11868 #include "confdefs.h"
11869 #include <$ac_header>
11870 _ACEOF
11871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11872   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11873   ac_status=$?
11874   grep -v '^ *+' conftest.er1 >conftest.err
11875   rm -f conftest.er1
11876   cat conftest.err >&5
11877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878   (exit $ac_status); } >/dev/null; then
11879   if test -s conftest.err; then
11880     ac_cpp_err=$ac_c_preproc_warn_flag
11881   else
11882     ac_cpp_err=
11883   fi
11884 else
11885   ac_cpp_err=yes
11886 fi
11887 if test -z "$ac_cpp_err"; then
11888   ac_header_preproc=yes
11889 else
11890   echo "$as_me: failed program was:" >&5
11891   cat conftest.$ac_ext >&5
11892   ac_header_preproc=no
11893 fi
11894 rm -f conftest.err conftest.$ac_ext
11895 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11896 echo "${ECHO_T}$ac_header_preproc" >&6
11897
11898 # So?  What about this header?
11899 case $ac_header_compiler:$ac_header_preproc in
11900   yes:no )
11901     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11903     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11905   no:yes )
11906     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11908     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11910     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11912 esac
11913 echo "$as_me:$LINENO: checking for $ac_header" >&5
11914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11916   echo $ECHO_N "(cached) $ECHO_C" >&6
11917 else
11918   eval "$as_ac_Header=$ac_header_preproc"
11919 fi
11920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11922
11923 fi
11924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11925   cat >>confdefs.h <<_ACEOF
11926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11927 _ACEOF
11928
11929 fi
11930
11931 done
11932
11933 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11934 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11935 if test "${ac_cv_header_stat_broken+set}" = set; then
11936   echo $ECHO_N "(cached) $ECHO_C" >&6
11937 else
11938   cat >conftest.$ac_ext <<_ACEOF
11939 #line $LINENO "configure"
11940 #include "confdefs.h"
11941 #include <sys/types.h>
11942 #include <sys/stat.h>
11943
11944 #if defined(S_ISBLK) && defined(S_IFDIR)
11945 # if S_ISBLK (S_IFDIR)
11946 You lose.
11947 # endif
11948 #endif
11949
11950 #if defined(S_ISBLK) && defined(S_IFCHR)
11951 # if S_ISBLK (S_IFCHR)
11952 You lose.
11953 # endif
11954 #endif
11955
11956 #if defined(S_ISLNK) && defined(S_IFREG)
11957 # if S_ISLNK (S_IFREG)
11958 You lose.
11959 # endif
11960 #endif
11961
11962 #if defined(S_ISSOCK) && defined(S_IFREG)
11963 # if S_ISSOCK (S_IFREG)
11964 You lose.
11965 # endif
11966 #endif
11967
11968 _ACEOF
11969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11970   $EGREP "You lose" >/dev/null 2>&1; then
11971   ac_cv_header_stat_broken=yes
11972 else
11973   ac_cv_header_stat_broken=no
11974 fi
11975 rm -f conftest*
11976
11977 fi
11978 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11979 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11980 if test $ac_cv_header_stat_broken = yes; then
11981
11982 cat >>confdefs.h <<\_ACEOF
11983 #define STAT_MACROS_BROKEN 1
11984 _ACEOF
11985
11986 fi
11987
11988
11989
11990
11991
11992 for ac_header in sys/mount.h sys/user.h
11993 do
11994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11995 echo "$as_me:$LINENO: checking for $ac_header" >&5
11996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11998   echo $ECHO_N "(cached) $ECHO_C" >&6
11999 else
12000   cat >conftest.$ac_ext <<_ACEOF
12001 #line $LINENO "configure"
12002 #include "confdefs.h"
12003 #include <sys/types.h>
12004      #if HAVE_SYS_PARAM_H
12005      # include <sys/param.h>
12006      #endif
12007
12008 #include <$ac_header>
12009 _ACEOF
12010 rm -f conftest.$ac_objext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12012   (eval $ac_compile) 2>&5
12013   ac_status=$?
12014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015   (exit $ac_status); } &&
12016          { ac_try='test -s conftest.$ac_objext'
12017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018   (eval $ac_try) 2>&5
12019   ac_status=$?
12020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021   (exit $ac_status); }; }; then
12022   eval "$as_ac_Header=yes"
12023 else
12024   echo "$as_me: failed program was:" >&5
12025 cat conftest.$ac_ext >&5
12026 eval "$as_ac_Header=no"
12027 fi
12028 rm -f conftest.$ac_objext conftest.$ac_ext
12029 fi
12030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12033   cat >>confdefs.h <<_ACEOF
12034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12035 _ACEOF
12036
12037 fi
12038
12039 done
12040
12041
12042
12043 for ac_header in net/if.h
12044 do
12045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12046 echo "$as_me:$LINENO: checking for $ac_header" >&5
12047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12049   echo $ECHO_N "(cached) $ECHO_C" >&6
12050 else
12051   cat >conftest.$ac_ext <<_ACEOF
12052 #line $LINENO "configure"
12053 #include "confdefs.h"
12054 #include <sys/types.h>
12055      #if HAVE_SYS_SOCKET_H
12056      # include <sys/socket.h>
12057      #endif
12058
12059 #include <$ac_header>
12060 _ACEOF
12061 rm -f conftest.$ac_objext
12062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12063   (eval $ac_compile) 2>&5
12064   ac_status=$?
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); } &&
12067          { ac_try='test -s conftest.$ac_objext'
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   eval "$as_ac_Header=yes"
12074 else
12075   echo "$as_me: failed program was:" >&5
12076 cat conftest.$ac_ext >&5
12077 eval "$as_ac_Header=no"
12078 fi
12079 rm -f conftest.$ac_objext conftest.$ac_ext
12080 fi
12081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12084   cat >>confdefs.h <<_ACEOF
12085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12086 _ACEOF
12087
12088 fi
12089
12090 done
12091
12092
12093
12094 for ac_header in netinet/ip.h
12095 do
12096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12097 echo "$as_me:$LINENO: checking for $ac_header" >&5
12098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12100   echo $ECHO_N "(cached) $ECHO_C" >&6
12101 else
12102   cat >conftest.$ac_ext <<_ACEOF
12103 #line $LINENO "configure"
12104 #include "confdefs.h"
12105 #include <sys/types.h>
12106      #if HAVE_SYS_SOCKET_H
12107      # include <sys/socket.h>
12108      #endif
12109      #if HAVE_NETINET_IN_SYSTM_H
12110      # include <netinet/in_systm.h>
12111      #endif
12112
12113 #include <$ac_header>
12114 _ACEOF
12115 rm -f conftest.$ac_objext
12116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12117   (eval $ac_compile) 2>&5
12118   ac_status=$?
12119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120   (exit $ac_status); } &&
12121          { ac_try='test -s conftest.$ac_objext'
12122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123   (eval $ac_try) 2>&5
12124   ac_status=$?
12125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126   (exit $ac_status); }; }; then
12127   eval "$as_ac_Header=yes"
12128 else
12129   echo "$as_me: failed program was:" >&5
12130 cat conftest.$ac_ext >&5
12131 eval "$as_ac_Header=no"
12132 fi
12133 rm -f conftest.$ac_objext conftest.$ac_ext
12134 fi
12135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12138   cat >>confdefs.h <<_ACEOF
12139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12140 _ACEOF
12141
12142 fi
12143
12144 done
12145
12146
12147
12148 for ac_header in resolv.h
12149 do
12150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12151 echo "$as_me:$LINENO: checking for $ac_header" >&5
12152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12154   echo $ECHO_N "(cached) $ECHO_C" >&6
12155 else
12156   cat >conftest.$ac_ext <<_ACEOF
12157 #line $LINENO "configure"
12158 #include "confdefs.h"
12159 #include <sys/types.h>
12160      #if HAVE_SYS_SOCKET_H
12161      # include <sys/socket.h>
12162      #endif
12163
12164 #include <$ac_header>
12165 _ACEOF
12166 rm -f conftest.$ac_objext
12167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12168   (eval $ac_compile) 2>&5
12169   ac_status=$?
12170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171   (exit $ac_status); } &&
12172          { ac_try='test -s conftest.$ac_objext'
12173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174   (eval $ac_try) 2>&5
12175   ac_status=$?
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); }; }; then
12178   eval "$as_ac_Header=yes"
12179 else
12180   echo "$as_me: failed program was:" >&5
12181 cat conftest.$ac_ext >&5
12182 eval "$as_ac_Header=no"
12183 fi
12184 rm -f conftest.$ac_objext conftest.$ac_ext
12185 fi
12186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12189   cat >>confdefs.h <<_ACEOF
12190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12191 _ACEOF
12192
12193 fi
12194
12195 done
12196
12197
12198
12199 for ac_header in ucontext.h
12200 do
12201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12202 echo "$as_me:$LINENO: checking for $ac_header" >&5
12203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12205   echo $ECHO_N "(cached) $ECHO_C" >&6
12206 else
12207   cat >conftest.$ac_ext <<_ACEOF
12208 #line $LINENO "configure"
12209 #include "confdefs.h"
12210 #include <signal.h>
12211
12212 #include <$ac_header>
12213 _ACEOF
12214 rm -f conftest.$ac_objext
12215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12216   (eval $ac_compile) 2>&5
12217   ac_status=$?
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); } &&
12220          { ac_try='test -s conftest.$ac_objext'
12221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222   (eval $ac_try) 2>&5
12223   ac_status=$?
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); }; }; then
12226   eval "$as_ac_Header=yes"
12227 else
12228   echo "$as_me: failed program was:" >&5
12229 cat conftest.$ac_ext >&5
12230 eval "$as_ac_Header=no"
12231 fi
12232 rm -f conftest.$ac_objext conftest.$ac_ext
12233 fi
12234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12237   cat >>confdefs.h <<_ACEOF
12238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12239 _ACEOF
12240
12241 fi
12242
12243 done
12244
12245
12246
12247 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12248 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12249 if test "${ac_cv_c_const+set}" = set; then
12250   echo $ECHO_N "(cached) $ECHO_C" >&6
12251 else
12252   cat >conftest.$ac_ext <<_ACEOF
12253 #line $LINENO "configure"
12254 #include "confdefs.h"
12255
12256 int
12257 main ()
12258 {
12259 /* FIXME: Include the comments suggested by Paul. */
12260 #ifndef __cplusplus
12261   /* Ultrix mips cc rejects this.  */
12262   typedef int charset[2];
12263   const charset x;
12264   /* SunOS 4.1.1 cc rejects this.  */
12265   char const *const *ccp;
12266   char **p;
12267   /* NEC SVR4.0.2 mips cc rejects this.  */
12268   struct point {int x, y;};
12269   static struct point const zero = {0,0};
12270   /* AIX XL C 1.02.0.0 rejects this.
12271      It does not let you subtract one const X* pointer from another in
12272      an arm of an if-expression whose if-part is not a constant
12273      expression */
12274   const char *g = "string";
12275   ccp = &g + (g ? g-g : 0);
12276   /* HPUX 7.0 cc rejects these. */
12277   ++ccp;
12278   p = (char**) ccp;
12279   ccp = (char const *const *) p;
12280   { /* SCO 3.2v4 cc rejects this.  */
12281     char *t;
12282     char const *s = 0 ? (char *) 0 : (char const *) 0;
12283
12284     *t++ = 0;
12285   }
12286   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12287     int x[] = {25, 17};
12288     const int *foo = &x[0];
12289     ++foo;
12290   }
12291   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12292     typedef const int *iptr;
12293     iptr p = 0;
12294     ++p;
12295   }
12296   { /* AIX XL C 1.02.0.0 rejects this saying
12297        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12298     struct s { int j; const int *ap[3]; };
12299     struct s *b; b->j = 5;
12300   }
12301   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12302     const int foo = 10;
12303   }
12304 #endif
12305
12306   ;
12307   return 0;
12308 }
12309 _ACEOF
12310 rm -f conftest.$ac_objext
12311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12312   (eval $ac_compile) 2>&5
12313   ac_status=$?
12314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315   (exit $ac_status); } &&
12316          { ac_try='test -s conftest.$ac_objext'
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_c_const=yes
12323 else
12324   echo "$as_me: failed program was:" >&5
12325 cat conftest.$ac_ext >&5
12326 ac_cv_c_const=no
12327 fi
12328 rm -f conftest.$ac_objext conftest.$ac_ext
12329 fi
12330 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12331 echo "${ECHO_T}$ac_cv_c_const" >&6
12332 if test $ac_cv_c_const = no; then
12333
12334 cat >>confdefs.h <<\_ACEOF
12335 #define const
12336 _ACEOF
12337
12338 fi
12339
12340 echo "$as_me:$LINENO: checking for inline" >&5
12341 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12342 if test "${ac_cv_c_inline+set}" = set; then
12343   echo $ECHO_N "(cached) $ECHO_C" >&6
12344 else
12345   ac_cv_c_inline=no
12346 for ac_kw in inline __inline__ __inline; do
12347   cat >conftest.$ac_ext <<_ACEOF
12348 #line $LINENO "configure"
12349 #include "confdefs.h"
12350 #ifndef __cplusplus
12351 typedef int foo_t;
12352 static $ac_kw foo_t static_foo () {return 0; }
12353 $ac_kw foo_t foo () {return 0; }
12354 #endif
12355
12356 _ACEOF
12357 rm -f conftest.$ac_objext
12358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12359   (eval $ac_compile) 2>&5
12360   ac_status=$?
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); } &&
12363          { ac_try='test -s conftest.$ac_objext'
12364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365   (eval $ac_try) 2>&5
12366   ac_status=$?
12367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368   (exit $ac_status); }; }; then
12369   ac_cv_c_inline=$ac_kw; break
12370 else
12371   echo "$as_me: failed program was:" >&5
12372 cat conftest.$ac_ext >&5
12373 fi
12374 rm -f conftest.$ac_objext conftest.$ac_ext
12375 done
12376
12377 fi
12378 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12379 echo "${ECHO_T}$ac_cv_c_inline" >&6
12380 case $ac_cv_c_inline in
12381   inline | yes) ;;
12382   no)
12383 cat >>confdefs.h <<\_ACEOF
12384 #define inline
12385 _ACEOF
12386  ;;
12387   *)  cat >>confdefs.h <<_ACEOF
12388 #define inline $ac_cv_c_inline
12389 _ACEOF
12390  ;;
12391 esac
12392
12393 echo "$as_me:$LINENO: checking for mode_t" >&5
12394 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12395 if test "${ac_cv_type_mode_t+set}" = set; then
12396   echo $ECHO_N "(cached) $ECHO_C" >&6
12397 else
12398   cat >conftest.$ac_ext <<_ACEOF
12399 #line $LINENO "configure"
12400 #include "confdefs.h"
12401 $ac_includes_default
12402 int
12403 main ()
12404 {
12405 if ((mode_t *) 0)
12406   return 0;
12407 if (sizeof (mode_t))
12408   return 0;
12409   ;
12410   return 0;
12411 }
12412 _ACEOF
12413 rm -f conftest.$ac_objext
12414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12415   (eval $ac_compile) 2>&5
12416   ac_status=$?
12417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418   (exit $ac_status); } &&
12419          { ac_try='test -s conftest.$ac_objext'
12420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421   (eval $ac_try) 2>&5
12422   ac_status=$?
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); }; }; then
12425   ac_cv_type_mode_t=yes
12426 else
12427   echo "$as_me: failed program was:" >&5
12428 cat conftest.$ac_ext >&5
12429 ac_cv_type_mode_t=no
12430 fi
12431 rm -f conftest.$ac_objext conftest.$ac_ext
12432 fi
12433 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12434 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12435 if test $ac_cv_type_mode_t = yes; then
12436
12437 cat >>confdefs.h <<_ACEOF
12438 #define HAVE_MODE_T 1
12439 _ACEOF
12440
12441
12442 fi
12443 echo "$as_me:$LINENO: checking for off_t" >&5
12444 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12445 if test "${ac_cv_type_off_t+set}" = set; then
12446   echo $ECHO_N "(cached) $ECHO_C" >&6
12447 else
12448   cat >conftest.$ac_ext <<_ACEOF
12449 #line $LINENO "configure"
12450 #include "confdefs.h"
12451 $ac_includes_default
12452 int
12453 main ()
12454 {
12455 if ((off_t *) 0)
12456   return 0;
12457 if (sizeof (off_t))
12458   return 0;
12459   ;
12460   return 0;
12461 }
12462 _ACEOF
12463 rm -f conftest.$ac_objext
12464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12465   (eval $ac_compile) 2>&5
12466   ac_status=$?
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); } &&
12469          { ac_try='test -s conftest.$ac_objext'
12470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471   (eval $ac_try) 2>&5
12472   ac_status=$?
12473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); }; }; then
12475   ac_cv_type_off_t=yes
12476 else
12477   echo "$as_me: failed program was:" >&5
12478 cat conftest.$ac_ext >&5
12479 ac_cv_type_off_t=no
12480 fi
12481 rm -f conftest.$ac_objext conftest.$ac_ext
12482 fi
12483 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12484 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12485 if test $ac_cv_type_off_t = yes; then
12486
12487 cat >>confdefs.h <<_ACEOF
12488 #define HAVE_OFF_T 1
12489 _ACEOF
12490
12491
12492 fi
12493 echo "$as_me:$LINENO: checking for pid_t" >&5
12494 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12495 if test "${ac_cv_type_pid_t+set}" = set; then
12496   echo $ECHO_N "(cached) $ECHO_C" >&6
12497 else
12498   cat >conftest.$ac_ext <<_ACEOF
12499 #line $LINENO "configure"
12500 #include "confdefs.h"
12501 $ac_includes_default
12502 int
12503 main ()
12504 {
12505 if ((pid_t *) 0)
12506   return 0;
12507 if (sizeof (pid_t))
12508   return 0;
12509   ;
12510   return 0;
12511 }
12512 _ACEOF
12513 rm -f conftest.$ac_objext
12514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12515   (eval $ac_compile) 2>&5
12516   ac_status=$?
12517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518   (exit $ac_status); } &&
12519          { ac_try='test -s conftest.$ac_objext'
12520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521   (eval $ac_try) 2>&5
12522   ac_status=$?
12523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524   (exit $ac_status); }; }; then
12525   ac_cv_type_pid_t=yes
12526 else
12527   echo "$as_me: failed program was:" >&5
12528 cat conftest.$ac_ext >&5
12529 ac_cv_type_pid_t=no
12530 fi
12531 rm -f conftest.$ac_objext conftest.$ac_ext
12532 fi
12533 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12534 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12535 if test $ac_cv_type_pid_t = yes; then
12536
12537 cat >>confdefs.h <<_ACEOF
12538 #define HAVE_PID_T 1
12539 _ACEOF
12540
12541
12542 fi
12543 echo "$as_me:$LINENO: checking for size_t" >&5
12544 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12545 if test "${ac_cv_type_size_t+set}" = set; then
12546   echo $ECHO_N "(cached) $ECHO_C" >&6
12547 else
12548   cat >conftest.$ac_ext <<_ACEOF
12549 #line $LINENO "configure"
12550 #include "confdefs.h"
12551 $ac_includes_default
12552 int
12553 main ()
12554 {
12555 if ((size_t *) 0)
12556   return 0;
12557 if (sizeof (size_t))
12558   return 0;
12559   ;
12560   return 0;
12561 }
12562 _ACEOF
12563 rm -f conftest.$ac_objext
12564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12565   (eval $ac_compile) 2>&5
12566   ac_status=$?
12567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568   (exit $ac_status); } &&
12569          { ac_try='test -s conftest.$ac_objext'
12570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571   (eval $ac_try) 2>&5
12572   ac_status=$?
12573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574   (exit $ac_status); }; }; then
12575   ac_cv_type_size_t=yes
12576 else
12577   echo "$as_me: failed program was:" >&5
12578 cat conftest.$ac_ext >&5
12579 ac_cv_type_size_t=no
12580 fi
12581 rm -f conftest.$ac_objext conftest.$ac_ext
12582 fi
12583 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12584 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12585 if test $ac_cv_type_size_t = yes; then
12586
12587 cat >>confdefs.h <<_ACEOF
12588 #define HAVE_SIZE_T 1
12589 _ACEOF
12590
12591
12592 fi
12593 echo "$as_me:$LINENO: checking for ssize_t" >&5
12594 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12595 if test "${ac_cv_type_ssize_t+set}" = set; then
12596   echo $ECHO_N "(cached) $ECHO_C" >&6
12597 else
12598   cat >conftest.$ac_ext <<_ACEOF
12599 #line $LINENO "configure"
12600 #include "confdefs.h"
12601 $ac_includes_default
12602 int
12603 main ()
12604 {
12605 if ((ssize_t *) 0)
12606   return 0;
12607 if (sizeof (ssize_t))
12608   return 0;
12609   ;
12610   return 0;
12611 }
12612 _ACEOF
12613 rm -f conftest.$ac_objext
12614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12615   (eval $ac_compile) 2>&5
12616   ac_status=$?
12617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618   (exit $ac_status); } &&
12619          { ac_try='test -s conftest.$ac_objext'
12620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621   (eval $ac_try) 2>&5
12622   ac_status=$?
12623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624   (exit $ac_status); }; }; then
12625   ac_cv_type_ssize_t=yes
12626 else
12627   echo "$as_me: failed program was:" >&5
12628 cat conftest.$ac_ext >&5
12629 ac_cv_type_ssize_t=no
12630 fi
12631 rm -f conftest.$ac_objext conftest.$ac_ext
12632 fi
12633 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12634 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12635 if test $ac_cv_type_ssize_t = yes; then
12636
12637 cat >>confdefs.h <<_ACEOF
12638 #define HAVE_SSIZE_T 1
12639 _ACEOF
12640
12641
12642 fi
12643
12644 echo "$as_me:$LINENO: checking for long long" >&5
12645 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12646 if test "${ac_cv_type_long_long+set}" = set; then
12647   echo $ECHO_N "(cached) $ECHO_C" >&6
12648 else
12649   cat >conftest.$ac_ext <<_ACEOF
12650 #line $LINENO "configure"
12651 #include "confdefs.h"
12652 $ac_includes_default
12653 int
12654 main ()
12655 {
12656 if ((long long *) 0)
12657   return 0;
12658 if (sizeof (long long))
12659   return 0;
12660   ;
12661   return 0;
12662 }
12663 _ACEOF
12664 rm -f conftest.$ac_objext
12665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12666   (eval $ac_compile) 2>&5
12667   ac_status=$?
12668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669   (exit $ac_status); } &&
12670          { ac_try='test -s conftest.$ac_objext'
12671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672   (eval $ac_try) 2>&5
12673   ac_status=$?
12674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675   (exit $ac_status); }; }; then
12676   ac_cv_type_long_long=yes
12677 else
12678   echo "$as_me: failed program was:" >&5
12679 cat conftest.$ac_ext >&5
12680 ac_cv_type_long_long=no
12681 fi
12682 rm -f conftest.$ac_objext conftest.$ac_ext
12683 fi
12684 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12685 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12686
12687 echo "$as_me:$LINENO: checking size of long long" >&5
12688 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12689 if test "${ac_cv_sizeof_long_long+set}" = set; then
12690   echo $ECHO_N "(cached) $ECHO_C" >&6
12691 else
12692   if test "$ac_cv_type_long_long" = yes; then
12693   # The cast to unsigned long works around a bug in the HP C Compiler
12694   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12695   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12696   # This bug is HP SR number 8606223364.
12697   if test "$cross_compiling" = yes; then
12698   # Depending upon the size, compute the lo and hi bounds.
12699 cat >conftest.$ac_ext <<_ACEOF
12700 #line $LINENO "configure"
12701 #include "confdefs.h"
12702 $ac_includes_default
12703 int
12704 main ()
12705 {
12706 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12707 test_array [0] = 0
12708
12709   ;
12710   return 0;
12711 }
12712 _ACEOF
12713 rm -f conftest.$ac_objext
12714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12715   (eval $ac_compile) 2>&5
12716   ac_status=$?
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); } &&
12719          { ac_try='test -s conftest.$ac_objext'
12720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721   (eval $ac_try) 2>&5
12722   ac_status=$?
12723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724   (exit $ac_status); }; }; then
12725   ac_lo=0 ac_mid=0
12726   while :; do
12727     cat >conftest.$ac_ext <<_ACEOF
12728 #line $LINENO "configure"
12729 #include "confdefs.h"
12730 $ac_includes_default
12731 int
12732 main ()
12733 {
12734 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12735 test_array [0] = 0
12736
12737   ;
12738   return 0;
12739 }
12740 _ACEOF
12741 rm -f conftest.$ac_objext
12742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12743   (eval $ac_compile) 2>&5
12744   ac_status=$?
12745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746   (exit $ac_status); } &&
12747          { ac_try='test -s conftest.$ac_objext'
12748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12749   (eval $ac_try) 2>&5
12750   ac_status=$?
12751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752   (exit $ac_status); }; }; then
12753   ac_hi=$ac_mid; break
12754 else
12755   echo "$as_me: failed program was:" >&5
12756 cat conftest.$ac_ext >&5
12757 ac_lo=`expr $ac_mid + 1`
12758                     if test $ac_lo -le $ac_mid; then
12759                       ac_lo= ac_hi=
12760                       break
12761                     fi
12762                     ac_mid=`expr 2 '*' $ac_mid + 1`
12763 fi
12764 rm -f conftest.$ac_objext conftest.$ac_ext
12765   done
12766 else
12767   echo "$as_me: failed program was:" >&5
12768 cat conftest.$ac_ext >&5
12769 cat >conftest.$ac_ext <<_ACEOF
12770 #line $LINENO "configure"
12771 #include "confdefs.h"
12772 $ac_includes_default
12773 int
12774 main ()
12775 {
12776 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12777 test_array [0] = 0
12778
12779   ;
12780   return 0;
12781 }
12782 _ACEOF
12783 rm -f conftest.$ac_objext
12784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12785   (eval $ac_compile) 2>&5
12786   ac_status=$?
12787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788   (exit $ac_status); } &&
12789          { ac_try='test -s conftest.$ac_objext'
12790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12791   (eval $ac_try) 2>&5
12792   ac_status=$?
12793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794   (exit $ac_status); }; }; then
12795   ac_hi=-1 ac_mid=-1
12796   while :; do
12797     cat >conftest.$ac_ext <<_ACEOF
12798 #line $LINENO "configure"
12799 #include "confdefs.h"
12800 $ac_includes_default
12801 int
12802 main ()
12803 {
12804 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12805 test_array [0] = 0
12806
12807   ;
12808   return 0;
12809 }
12810 _ACEOF
12811 rm -f conftest.$ac_objext
12812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12813   (eval $ac_compile) 2>&5
12814   ac_status=$?
12815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816   (exit $ac_status); } &&
12817          { ac_try='test -s conftest.$ac_objext'
12818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819   (eval $ac_try) 2>&5
12820   ac_status=$?
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); }; }; then
12823   ac_lo=$ac_mid; break
12824 else
12825   echo "$as_me: failed program was:" >&5
12826 cat conftest.$ac_ext >&5
12827 ac_hi=`expr '(' $ac_mid ')' - 1`
12828                        if test $ac_mid -le $ac_hi; then
12829                          ac_lo= ac_hi=
12830                          break
12831                        fi
12832                        ac_mid=`expr 2 '*' $ac_mid`
12833 fi
12834 rm -f conftest.$ac_objext conftest.$ac_ext
12835   done
12836 else
12837   echo "$as_me: failed program was:" >&5
12838 cat conftest.$ac_ext >&5
12839 ac_lo= ac_hi=
12840 fi
12841 rm -f conftest.$ac_objext conftest.$ac_ext
12842 fi
12843 rm -f conftest.$ac_objext conftest.$ac_ext
12844 # Binary search between lo and hi bounds.
12845 while test "x$ac_lo" != "x$ac_hi"; do
12846   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12847   cat >conftest.$ac_ext <<_ACEOF
12848 #line $LINENO "configure"
12849 #include "confdefs.h"
12850 $ac_includes_default
12851 int
12852 main ()
12853 {
12854 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12855 test_array [0] = 0
12856
12857   ;
12858   return 0;
12859 }
12860 _ACEOF
12861 rm -f conftest.$ac_objext
12862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12863   (eval $ac_compile) 2>&5
12864   ac_status=$?
12865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866   (exit $ac_status); } &&
12867          { ac_try='test -s conftest.$ac_objext'
12868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869   (eval $ac_try) 2>&5
12870   ac_status=$?
12871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872   (exit $ac_status); }; }; then
12873   ac_hi=$ac_mid
12874 else
12875   echo "$as_me: failed program was:" >&5
12876 cat conftest.$ac_ext >&5
12877 ac_lo=`expr '(' $ac_mid ')' + 1`
12878 fi
12879 rm -f conftest.$ac_objext conftest.$ac_ext
12880 done
12881 case $ac_lo in
12882 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12883 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12884 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12885    { (exit 1); exit 1; }; } ;;
12886 esac
12887 else
12888   if test "$cross_compiling" = yes; then
12889   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12890 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12891    { (exit 1); exit 1; }; }
12892 else
12893   cat >conftest.$ac_ext <<_ACEOF
12894 #line $LINENO "configure"
12895 #include "confdefs.h"
12896 $ac_includes_default
12897 long longval () { return (long) (sizeof (long long)); }
12898 unsigned long ulongval () { return (long) (sizeof (long long)); }
12899 #include <stdio.h>
12900 #include <stdlib.h>
12901 int
12902 main ()
12903 {
12904
12905   FILE *f = fopen ("conftest.val", "w");
12906   if (! f)
12907     exit (1);
12908   if (((long) (sizeof (long long))) < 0)
12909     {
12910       long i = longval ();
12911       if (i != ((long) (sizeof (long long))))
12912         exit (1);
12913       fprintf (f, "%ld\n", i);
12914     }
12915   else
12916     {
12917       unsigned long i = ulongval ();
12918       if (i != ((long) (sizeof (long long))))
12919         exit (1);
12920       fprintf (f, "%lu\n", i);
12921     }
12922   exit (ferror (f) || fclose (f) != 0);
12923
12924   ;
12925   return 0;
12926 }
12927 _ACEOF
12928 rm -f conftest$ac_exeext
12929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12930   (eval $ac_link) 2>&5
12931   ac_status=$?
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935   (eval $ac_try) 2>&5
12936   ac_status=$?
12937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); }; }; then
12939   ac_cv_sizeof_long_long=`cat conftest.val`
12940 else
12941   echo "$as_me: program exited with status $ac_status" >&5
12942 echo "$as_me: failed program was:" >&5
12943 cat conftest.$ac_ext >&5
12944 ( exit $ac_status )
12945 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12946 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12947    { (exit 1); exit 1; }; }
12948 fi
12949 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12950 fi
12951 fi
12952 rm -f conftest.val
12953 else
12954   ac_cv_sizeof_long_long=0
12955 fi
12956 fi
12957 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12958 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12959 cat >>confdefs.h <<_ACEOF
12960 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12961 _ACEOF
12962
12963
12964
12965 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
12966 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
12967 if test "${wine_cv_linux_input_h+set}" = set; then
12968   echo $ECHO_N "(cached) $ECHO_C" >&6
12969 else
12970   cat >conftest.$ac_ext <<_ACEOF
12971 #line $LINENO "configure"
12972 #include "confdefs.h"
12973
12974             #include <linux/input.h>
12975
12976 int
12977 main ()
12978 {
12979
12980             int foo = EVIOCGBIT(EV_ABS,42);
12981             int bar = BTN_PINKIE;
12982             int fortytwo = 42;
12983
12984   ;
12985   return 0;
12986 }
12987 _ACEOF
12988 rm -f conftest.$ac_objext
12989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12990   (eval $ac_compile) 2>&5
12991   ac_status=$?
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); } &&
12994          { ac_try='test -s conftest.$ac_objext'
12995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996   (eval $ac_try) 2>&5
12997   ac_status=$?
12998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999   (exit $ac_status); }; }; then
13000   wine_cv_linux_input_h=yes
13001 else
13002   echo "$as_me: failed program was:" >&5
13003 cat conftest.$ac_ext >&5
13004 wine_cv_linux_input_h=no
13005 fi
13006 rm -f conftest.$ac_objext conftest.$ac_ext
13007
13008 fi
13009 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
13010 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
13011     if test "$wine_cv_linux_input_h" = "yes"
13012     then
13013
13014 cat >>confdefs.h <<\_ACEOF
13015 #define HAVE_CORRECT_LINUXINPUT_H 1
13016 _ACEOF
13017
13018     fi
13019
13020
13021 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13022 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
13023 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
13024   echo $ECHO_N "(cached) $ECHO_C" >&6
13025 else
13026   cat >conftest.$ac_ext <<_ACEOF
13027 #line $LINENO "configure"
13028 #include "confdefs.h"
13029
13030 #include <netdb.h>
13031
13032 int
13033 main ()
13034 {
13035
13036     char *name=NULL;
13037     struct hostent he;
13038     struct hostent *result;
13039     char *buf=NULL;
13040     int bufsize=0;
13041     int res,errnr;
13042     char *addr=NULL;
13043     int addrlen=0;
13044     int addrtype=0;
13045     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13046     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13047
13048   ;
13049   return 0;
13050 }
13051 _ACEOF
13052 rm -f conftest.$ac_objext
13053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13054   (eval $ac_compile) 2>&5
13055   ac_status=$?
13056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057   (exit $ac_status); } &&
13058          { ac_try='test -s conftest.$ac_objext'
13059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060   (eval $ac_try) 2>&5
13061   ac_status=$?
13062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063   (exit $ac_status); }; }; then
13064   wine_cv_linux_gethostbyname_r_6=yes
13065 else
13066   echo "$as_me: failed program was:" >&5
13067 cat conftest.$ac_ext >&5
13068 wine_cv_linux_gethostbyname_r_6=no
13069
13070 fi
13071 rm -f conftest.$ac_objext conftest.$ac_ext
13072
13073 fi
13074 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
13075 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
13076    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13077    then
13078
13079 cat >>confdefs.h <<\_ACEOF
13080 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
13081 _ACEOF
13082
13083    fi
13084
13085 if test "$ac_cv_header_linux_joystick_h" = "yes"
13086 then
13087    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13088 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
13089 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
13090   echo $ECHO_N "(cached) $ECHO_C" >&6
13091 else
13092   cat >conftest.$ac_ext <<_ACEOF
13093 #line $LINENO "configure"
13094 #include "confdefs.h"
13095
13096         #include <sys/ioctl.h>
13097         #include <linux/joystick.h>
13098
13099         struct js_event blub;
13100         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13101         #error "no 2.2 header"
13102         #endif
13103
13104 int
13105 main ()
13106 {
13107 /*empty*/
13108   ;
13109   return 0;
13110 }
13111 _ACEOF
13112 rm -f conftest.$ac_objext
13113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13114   (eval $ac_compile) 2>&5
13115   ac_status=$?
13116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117   (exit $ac_status); } &&
13118          { ac_try='test -s conftest.$ac_objext'
13119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120   (eval $ac_try) 2>&5
13121   ac_status=$?
13122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123   (exit $ac_status); }; }; then
13124   wine_cv_linux_joystick_22_api=yes
13125 else
13126   echo "$as_me: failed program was:" >&5
13127 cat conftest.$ac_ext >&5
13128 wine_cv_linux_joystick_22_api=no
13129 fi
13130 rm -f conftest.$ac_objext conftest.$ac_ext
13131
13132 fi
13133 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
13134 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
13135    if test "$wine_cv_linux_joystick_22_api" = "yes"
13136    then
13137
13138 cat >>confdefs.h <<\_ACEOF
13139 #define HAVE_LINUX_22_JOYSTICK_API 1
13140 _ACEOF
13141
13142    fi
13143 fi
13144
13145
13146 if test "$ac_cv_header_sys_vfs_h" = "yes"
13147 then
13148     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
13149 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
13150 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
13151   echo $ECHO_N "(cached) $ECHO_C" >&6
13152 else
13153   cat >conftest.$ac_ext <<_ACEOF
13154 #line $LINENO "configure"
13155 #include "confdefs.h"
13156
13157         #include <sys/types.h>
13158         #ifdef HAVE_SYS_PARAM_H
13159         # include <sys/param.h>
13160         #endif
13161         #include <sys/vfs.h>
13162
13163 int
13164 main ()
13165 {
13166
13167                 struct statfs stfs;
13168
13169                 memset(&stfs,0,sizeof(stfs));
13170
13171   ;
13172   return 0;
13173 }
13174 _ACEOF
13175 rm -f conftest.$ac_objext
13176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13177   (eval $ac_compile) 2>&5
13178   ac_status=$?
13179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180   (exit $ac_status); } &&
13181          { ac_try='test -s conftest.$ac_objext'
13182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183   (eval $ac_try) 2>&5
13184   ac_status=$?
13185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186   (exit $ac_status); }; }; then
13187   wine_cv_sys_vfs_has_statfs=yes
13188 else
13189   echo "$as_me: failed program was:" >&5
13190 cat conftest.$ac_ext >&5
13191 wine_cv_sys_vfs_has_statfs=no
13192
13193 fi
13194 rm -f conftest.$ac_objext conftest.$ac_ext
13195
13196 fi
13197 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
13198 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
13199     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
13200     then
13201
13202 cat >>confdefs.h <<\_ACEOF
13203 #define STATFS_DEFINED_BY_SYS_VFS 1
13204 _ACEOF
13205
13206     fi
13207 fi
13208
13209 if test "$ac_cv_header_sys_statfs_h" = "yes"
13210 then
13211     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
13212 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
13213 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
13214   echo $ECHO_N "(cached) $ECHO_C" >&6
13215 else
13216   cat >conftest.$ac_ext <<_ACEOF
13217 #line $LINENO "configure"
13218 #include "confdefs.h"
13219
13220         #include <sys/types.h>
13221         #ifdef HAVE_SYS_PARAM_H
13222         # include <sys/param.h>
13223         #endif
13224         #include <sys/statfs.h>
13225
13226 int
13227 main ()
13228 {
13229
13230                 struct statfs stfs;
13231
13232   ;
13233   return 0;
13234 }
13235 _ACEOF
13236 rm -f conftest.$ac_objext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238   (eval $ac_compile) 2>&5
13239   ac_status=$?
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); } &&
13242          { ac_try='test -s conftest.$ac_objext'
13243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244   (eval $ac_try) 2>&5
13245   ac_status=$?
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); }; }; then
13248   wine_cv_sys_statfs_has_statfs=yes
13249 else
13250   echo "$as_me: failed program was:" >&5
13251 cat conftest.$ac_ext >&5
13252 wine_cv_sys_statfs_has_statfs=no
13253
13254 fi
13255 rm -f conftest.$ac_objext conftest.$ac_ext
13256
13257 fi
13258 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
13259 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
13260     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
13261     then
13262
13263 cat >>confdefs.h <<\_ACEOF
13264 #define STATFS_DEFINED_BY_SYS_STATFS 1
13265 _ACEOF
13266
13267     fi
13268 fi
13269
13270 if test "$ac_cv_header_sys_mount_h" = "yes"
13271 then
13272     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
13273 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
13274 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
13275   echo $ECHO_N "(cached) $ECHO_C" >&6
13276 else
13277   cat >conftest.$ac_ext <<_ACEOF
13278 #line $LINENO "configure"
13279 #include "confdefs.h"
13280
13281         #include <sys/types.h>
13282         #ifdef HAVE_SYS_PARAM_H
13283         # include <sys/param.h>
13284         #endif
13285         #include <sys/mount.h>
13286
13287 int
13288 main ()
13289 {
13290
13291                 struct statfs stfs;
13292
13293   ;
13294   return 0;
13295 }
13296 _ACEOF
13297 rm -f conftest.$ac_objext
13298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13299   (eval $ac_compile) 2>&5
13300   ac_status=$?
13301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302   (exit $ac_status); } &&
13303          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13309   wine_cv_sys_mount_has_statfs=yes
13310 else
13311   echo "$as_me: failed program was:" >&5
13312 cat conftest.$ac_ext >&5
13313 wine_cv_sys_mount_has_statfs=no
13314
13315 fi
13316 rm -f conftest.$ac_objext conftest.$ac_ext
13317
13318 fi
13319 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
13320 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
13321     if test "$wine_cv_sys_mount_has_statfs" = "yes"
13322     then
13323
13324 cat >>confdefs.h <<\_ACEOF
13325 #define STATFS_DEFINED_BY_SYS_MOUNT 1
13326 _ACEOF
13327
13328     fi
13329 fi
13330
13331
13332 echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
13333 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
13334 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
13335   echo $ECHO_N "(cached) $ECHO_C" >&6
13336 else
13337   cat >conftest.$ac_ext <<_ACEOF
13338 #line $LINENO "configure"
13339 #include "confdefs.h"
13340 #include <sys/types.h>
13341 #ifdef HAVE_SYS_PARAM_H
13342 # include <sys/param.h>
13343 #endif
13344 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
13345 # include <sys/mount.h>
13346 #else
13347 # ifdef STATFS_DEFINED_BY_SYS_VFS
13348 #  include <sys/vfs.h>
13349 # else
13350 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
13351 #   include <sys/statfs.h>
13352 #  endif
13353 # endif
13354 #endif
13355 int
13356 main ()
13357 {
13358 struct statfs s; s.f_bfree = 0
13359   ;
13360   return 0;
13361 }
13362 _ACEOF
13363 rm -f conftest.$ac_objext
13364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13365   (eval $ac_compile) 2>&5
13366   ac_status=$?
13367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368   (exit $ac_status); } &&
13369          { ac_try='test -s conftest.$ac_objext'
13370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371   (eval $ac_try) 2>&5
13372   ac_status=$?
13373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374   (exit $ac_status); }; }; then
13375   ac_cv_c_statfs_f_bfree="yes"
13376 else
13377   echo "$as_me: failed program was:" >&5
13378 cat conftest.$ac_ext >&5
13379 ac_cv_c_statfs_f_bfree="no"
13380 fi
13381 rm -f conftest.$ac_objext conftest.$ac_ext
13382 fi
13383 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
13384 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
13385 if  test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
13386
13387 cat >>confdefs.h <<\_ACEOF
13388 #define STATFS_HAS_BFREE 1
13389 _ACEOF
13390
13391 fi
13392
13393
13394
13395 echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
13396 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
13397 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
13398   echo $ECHO_N "(cached) $ECHO_C" >&6
13399 else
13400   cat >conftest.$ac_ext <<_ACEOF
13401 #line $LINENO "configure"
13402 #include "confdefs.h"
13403 #include <sys/types.h>
13404 #ifdef HAVE_SYS_PARAM_H
13405 # include <sys/param.h>
13406 #endif
13407 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
13408 # include <sys/mount.h>
13409 #else
13410 # ifdef STATFS_DEFINED_BY_SYS_VFS
13411 #  include <sys/vfs.h>
13412 # else
13413 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
13414 #   include <sys/statfs.h>
13415 #  endif
13416 # endif
13417 #endif
13418 int
13419 main ()
13420 {
13421 struct statfs s; s.f_bavail = 0
13422   ;
13423   return 0;
13424 }
13425 _ACEOF
13426 rm -f conftest.$ac_objext
13427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13428   (eval $ac_compile) 2>&5
13429   ac_status=$?
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); } &&
13432          { ac_try='test -s conftest.$ac_objext'
13433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434   (eval $ac_try) 2>&5
13435   ac_status=$?
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); }; }; then
13438   ac_cv_c_statfs_f_bavail="yes"
13439 else
13440   echo "$as_me: failed program was:" >&5
13441 cat conftest.$ac_ext >&5
13442 ac_cv_c_statfs_f_bavail="no"
13443 fi
13444 rm -f conftest.$ac_objext conftest.$ac_ext
13445 fi
13446 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
13447 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
13448 if  test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
13449
13450 cat >>confdefs.h <<\_ACEOF
13451 #define STATFS_HAS_BAVAIL 1
13452 _ACEOF
13453
13454 fi
13455
13456
13457
13458 echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
13459 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
13460 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
13461   echo $ECHO_N "(cached) $ECHO_C" >&6
13462 else
13463   cat >conftest.$ac_ext <<_ACEOF
13464 #line $LINENO "configure"
13465 #include "confdefs.h"
13466 #include <sys/types.h>
13467 #ifdef HAVE_SYS_SOCKET_H
13468 # include <sys/socket.h>
13469 #endif
13470 int
13471 main ()
13472 {
13473 struct msghdr s; s.msg_accrights = 0
13474   ;
13475   return 0;
13476 }
13477 _ACEOF
13478 rm -f conftest.$ac_objext
13479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13480   (eval $ac_compile) 2>&5
13481   ac_status=$?
13482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483   (exit $ac_status); } &&
13484          { ac_try='test -s conftest.$ac_objext'
13485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486   (eval $ac_try) 2>&5
13487   ac_status=$?
13488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489   (exit $ac_status); }; }; then
13490   ac_cv_c_msghdr_msg_accrights="yes"
13491 else
13492   echo "$as_me: failed program was:" >&5
13493 cat conftest.$ac_ext >&5
13494 ac_cv_c_msghdr_msg_accrights="no"
13495 fi
13496 rm -f conftest.$ac_objext conftest.$ac_ext
13497 fi
13498 echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
13499 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
13500 if  test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
13501
13502 cat >>confdefs.h <<\_ACEOF
13503 #define HAVE_MSGHDR_ACCRIGHTS 1
13504 _ACEOF
13505
13506 fi
13507
13508
13509
13510 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
13511 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
13512 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
13513   echo $ECHO_N "(cached) $ECHO_C" >&6
13514 else
13515   cat >conftest.$ac_ext <<_ACEOF
13516 #line $LINENO "configure"
13517 #include "confdefs.h"
13518 #include <sys/types.h>
13519 #ifdef HAVE_SYS_SOCKET_H
13520 # include <sys/socket.h>
13521 #endif
13522 int
13523 main ()
13524 {
13525 struct sockaddr s; s.sa_len = 0
13526   ;
13527   return 0;
13528 }
13529 _ACEOF
13530 rm -f conftest.$ac_objext
13531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13532   (eval $ac_compile) 2>&5
13533   ac_status=$?
13534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535   (exit $ac_status); } &&
13536          { ac_try='test -s conftest.$ac_objext'
13537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538   (eval $ac_try) 2>&5
13539   ac_status=$?
13540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541   (exit $ac_status); }; }; then
13542   ac_cv_c_sockaddr_sa_len="yes"
13543 else
13544   echo "$as_me: failed program was:" >&5
13545 cat conftest.$ac_ext >&5
13546 ac_cv_c_sockaddr_sa_len="no"
13547 fi
13548 rm -f conftest.$ac_objext conftest.$ac_ext
13549 fi
13550 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
13551 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
13552 if  test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
13553
13554 cat >>confdefs.h <<\_ACEOF
13555 #define HAVE_SOCKADDR_SA_LEN 1
13556 _ACEOF
13557
13558 fi
13559
13560
13561
13562 echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
13563 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
13564 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
13565   echo $ECHO_N "(cached) $ECHO_C" >&6
13566 else
13567   cat >conftest.$ac_ext <<_ACEOF
13568 #line $LINENO "configure"
13569 #include "confdefs.h"
13570 #include <sys/types.h>
13571 #ifdef HAVE_SYS_SOCKET_H
13572 # include <sys/socket.h>
13573 #endif
13574 #ifdef HAVE_SYS_UN_H
13575 # include <sys/un.h>
13576 #endif
13577 int
13578 main ()
13579 {
13580 struct sockaddr_un s; s.sun_len = 0
13581   ;
13582   return 0;
13583 }
13584 _ACEOF
13585 rm -f conftest.$ac_objext
13586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13587   (eval $ac_compile) 2>&5
13588   ac_status=$?
13589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590   (exit $ac_status); } &&
13591          { ac_try='test -s conftest.$ac_objext'
13592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593   (eval $ac_try) 2>&5
13594   ac_status=$?
13595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596   (exit $ac_status); }; }; then
13597   ac_cv_c_sockaddr_un_sun_len="yes"
13598 else
13599   echo "$as_me: failed program was:" >&5
13600 cat conftest.$ac_ext >&5
13601 ac_cv_c_sockaddr_un_sun_len="no"
13602 fi
13603 rm -f conftest.$ac_objext conftest.$ac_ext
13604 fi
13605 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
13606 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
13607 if  test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
13608
13609 cat >>confdefs.h <<\_ACEOF
13610 #define HAVE_SOCKADDR_SUN_LEN 1
13611 _ACEOF
13612
13613 fi
13614
13615
13616
13617
13618 case $host_cpu in
13619   *i345678986* )
13620     echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
13621 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
13622 if test "${ac_cv_cpp_def_i386+set}" = set; then
13623   echo $ECHO_N "(cached) $ECHO_C" >&6
13624 else
13625   cat >conftest.$ac_ext <<_ACEOF
13626 #line $LINENO "configure"
13627 #include "confdefs.h"
13628 #ifndef __i386__
13629 yes
13630 #endif
13631 _ACEOF
13632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13633   $EGREP "yes" >/dev/null 2>&1; then
13634   ac_cv_cpp_def_i386="yes"
13635 else
13636   ac_cv_cpp_def_i386="no"
13637 fi
13638 rm -f conftest*
13639
13640 fi
13641 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5
13642 echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
13643     ;;
13644 esac
13645 if test "$ac_cv_cpp_def_i386" = "yes"
13646 then
13647     CFLAGS="$CFLAGS -D__i386__"
13648     LINTFLAGS="$LINTFLAGS -D__i386__"
13649 fi
13650
13651
13652 case $host_cpu in
13653   *alpha* )
13654     echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
13655 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
13656 if test "${ac_cv_cpp_def_alpha+set}" = set; then
13657   echo $ECHO_N "(cached) $ECHO_C" >&6
13658 else
13659   cat >conftest.$ac_ext <<_ACEOF
13660 #line $LINENO "configure"
13661 #include "confdefs.h"
13662 #ifndef __ALPHA__
13663 yes
13664 #endif
13665 _ACEOF
13666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13667   $EGREP "yes" >/dev/null 2>&1; then
13668   ac_cv_cpp_def_alpha="yes"
13669 else
13670   ac_cv_cpp_def_alpha="no"
13671 fi
13672 rm -f conftest*
13673
13674 fi
13675 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_alpha" >&5
13676 echo "${ECHO_T}$ac_cv_cpp_def_alpha" >&6
13677     ;;
13678 esac
13679 if test "$ac_cv_cpp_def_alpha" = "yes"
13680 then
13681     CFLAGS="$CFLAGS -D__ALPHA__"
13682     LINTFLAGS="$LINTFLAGS -D__ALPHA__"
13683 fi
13684
13685
13686 case $host_cpu in
13687   *sparc* )
13688     echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
13689 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
13690 if test "${ac_cv_cpp_def_sparc+set}" = set; then
13691   echo $ECHO_N "(cached) $ECHO_C" >&6
13692 else
13693   cat >conftest.$ac_ext <<_ACEOF
13694 #line $LINENO "configure"
13695 #include "confdefs.h"
13696 #ifndef __sparc__
13697 yes
13698 #endif
13699 _ACEOF
13700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13701   $EGREP "yes" >/dev/null 2>&1; then
13702   ac_cv_cpp_def_sparc="yes"
13703 else
13704   ac_cv_cpp_def_sparc="no"
13705 fi
13706 rm -f conftest*
13707
13708 fi
13709 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sparc" >&5
13710 echo "${ECHO_T}$ac_cv_cpp_def_sparc" >&6
13711     ;;
13712 esac
13713 if test "$ac_cv_cpp_def_sparc" = "yes"
13714 then
13715     CFLAGS="$CFLAGS -D__sparc__"
13716     LINTFLAGS="$LINTFLAGS -D__sparc__"
13717 fi
13718
13719
13720 case $host_vendor in
13721   *sun* )
13722     echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
13723 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
13724 if test "${ac_cv_cpp_def_sun+set}" = set; then
13725   echo $ECHO_N "(cached) $ECHO_C" >&6
13726 else
13727   cat >conftest.$ac_ext <<_ACEOF
13728 #line $LINENO "configure"
13729 #include "confdefs.h"
13730 #ifndef __sun__
13731 yes
13732 #endif
13733 _ACEOF
13734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13735   $EGREP "yes" >/dev/null 2>&1; then
13736   ac_cv_cpp_def_sun="yes"
13737 else
13738   ac_cv_cpp_def_sun="no"
13739 fi
13740 rm -f conftest*
13741
13742 fi
13743 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sun" >&5
13744 echo "${ECHO_T}$ac_cv_cpp_def_sun" >&6
13745     ;;
13746 esac
13747 if test "$ac_cv_cpp_def_sun" = "yes"
13748 then
13749     CFLAGS="$CFLAGS -D__sun__"
13750     LINTFLAGS="$LINTFLAGS -D__sun__"
13751 fi
13752
13753
13754
13755
13756
13757           ac_config_commands="$ac_config_commands controls"
13758
13759           ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
13760
13761           ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
13762
13763           ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
13764
13765           ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
13766
13767           ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
13768
13769           ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
13770
13771           ac_config_commands="$ac_config_commands dlls/dinput/joystick"
13772
13773           ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
13774
13775           ac_config_commands="$ac_config_commands dlls/dinput/mouse"
13776
13777           ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
13778
13779           ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
13780
13781           ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
13782
13783           ac_config_commands="$ac_config_commands dlls/kernel/messages"
13784
13785           ac_config_commands="$ac_config_commands dlls/user/dde"
13786
13787           ac_config_commands="$ac_config_commands dlls/user/resources"
13788
13789           ac_config_commands="$ac_config_commands dlls/wineps/data"
13790
13791           ac_config_commands="$ac_config_commands files"
13792
13793           ac_config_commands="$ac_config_commands graphics"
13794
13795           ac_config_commands="$ac_config_commands graphics/x11drv"
13796
13797           ac_config_commands="$ac_config_commands if1632"
13798
13799           ac_config_commands="$ac_config_commands include/wine"
13800
13801           ac_config_commands="$ac_config_commands loader"
13802
13803           ac_config_commands="$ac_config_commands loader/ne"
13804
13805           ac_config_commands="$ac_config_commands memory"
13806
13807           ac_config_commands="$ac_config_commands misc"
13808
13809           ac_config_commands="$ac_config_commands msdos"
13810
13811           ac_config_commands="$ac_config_commands objects"
13812
13813           ac_config_commands="$ac_config_commands programs/regapi/tests"
13814
13815           ac_config_commands="$ac_config_commands programs/regedit/tests"
13816
13817           ac_config_commands="$ac_config_commands relay32"
13818
13819           ac_config_commands="$ac_config_commands scheduler"
13820
13821           ac_config_commands="$ac_config_commands win32"
13822
13823           ac_config_commands="$ac_config_commands windows"
13824
13825
13826 MAKE_RULES=Make.rules
13827
13828
13829 MAKE_DLL_RULES=dlls/Makedll.rules
13830
13831
13832 MAKE_TEST_RULES=dlls/Maketest.rules
13833
13834
13835 MAKE_PROG_RULES=programs/Makeprog.rules
13836
13837
13838                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/d3d8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile library/Makefile miscemu/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wpp/Makefile tools/wrc/Makefile unicode/Makefile"
13839
13840
13841 cat >confcache <<\_ACEOF
13842 # This file is a shell script that caches the results of configure
13843 # tests run on this system so they can be shared between configure
13844 # scripts and configure runs, see configure's option --config-cache.
13845 # It is not useful on other systems.  If it contains results you don't
13846 # want to keep, you may remove or edit it.
13847 #
13848 # config.status only pays attention to the cache file if you give it
13849 # the --recheck option to rerun configure.
13850 #
13851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13853 # following values.
13854
13855 _ACEOF
13856
13857 # The following way of writing the cache mishandles newlines in values,
13858 # but we know of no workaround that is simple, portable, and efficient.
13859 # So, don't put newlines in cache variables' values.
13860 # Ultrix sh set writes to stderr and can't be redirected directly,
13861 # and sets the high bit in the cache file unless we assign to the vars.
13862 {
13863   (set) 2>&1 |
13864     case `(ac_space=' '; set | grep ac_space) 2>&1` in
13865     *ac_space=\ *)
13866       # `set' does not quote correctly, so add quotes (double-quote
13867       # substitution turns \\\\ into \\, and sed turns \\ into \).
13868       sed -n \
13869         "s/'/'\\\\''/g;
13870           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13871       ;;
13872     *)
13873       # `set' quotes correctly as required by POSIX, so do not add quotes.
13874       sed -n \
13875         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13876       ;;
13877     esac;
13878 } |
13879   sed '
13880      t clear
13881      : clear
13882      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13883      t end
13884      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13885      : end' >>confcache
13886 if cmp -s $cache_file confcache; then :; else
13887   if test -w $cache_file; then
13888     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13889     cat confcache >$cache_file
13890   else
13891     echo "not updating unwritable cache $cache_file"
13892   fi
13893 fi
13894 rm -f confcache
13895
13896 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13897 # Let make expand exec_prefix.
13898 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13899
13900 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13901 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13902 # trailing colons and then remove the whole line if VPATH becomes empty
13903 # (actually we leave an empty line to preserve line numbers).
13904 if test "x$srcdir" = x.; then
13905   ac_vpsub='/^[         ]*VPATH[        ]*=/{
13906 s/:*\$(srcdir):*/:/;
13907 s/:*\${srcdir}:*/:/;
13908 s/:*@srcdir@:*/:/;
13909 s/^\([^=]*=[    ]*\):*/\1/;
13910 s/:*$//;
13911 s/^[^=]*=[      ]*$//;
13912 }'
13913 fi
13914
13915 DEFS=-DHAVE_CONFIG_H
13916
13917 ac_libobjs=
13918 ac_ltlibobjs=
13919 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13920   # 1. Remove the extension, and $U if already installed.
13921   ac_i=`echo "$ac_i" |
13922          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13923   # 2. Add them.
13924   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13925   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13926 done
13927 LIBOBJS=$ac_libobjs
13928
13929 LTLIBOBJS=$ac_ltlibobjs
13930
13931
13932
13933 : ${CONFIG_STATUS=./config.status}
13934 ac_clean_files_save=$ac_clean_files
13935 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13936 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13937 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13938 cat >$CONFIG_STATUS <<_ACEOF
13939 #! $SHELL
13940 # Generated by $as_me.
13941 # Run this file to recreate the current configuration.
13942 # Compiler output produced by configure, useful for debugging
13943 # configure, is in config.log if it exists.
13944
13945 debug=false
13946 SHELL=\${CONFIG_SHELL-$SHELL}
13947 _ACEOF
13948
13949 cat >>$CONFIG_STATUS <<\_ACEOF
13950 ## --------------------- ##
13951 ## M4sh Initialization.  ##
13952 ## --------------------- ##
13953
13954 # Be Bourne compatible
13955 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13956   emulate sh
13957   NULLCMD=:
13958   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13959   # is contrary to our usage.  Disable this feature.
13960   alias -g '${1+"$@"}'='"$@"'
13961 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13962   set -o posix
13963 fi
13964
13965 # Support unset when possible.
13966 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
13967   as_unset=unset
13968 else
13969   as_unset=false
13970 fi
13971
13972
13973 # Work around bugs in pre-3.0 UWIN ksh.
13974 $as_unset ENV MAIL MAILPATH
13975 PS1='$ '
13976 PS2='> '
13977 PS4='+ '
13978
13979 # NLS nuisances.
13980 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
13981 do
13982   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
13983     eval $as_var=C; export $as_var
13984   else
13985     $as_unset $as_var
13986   fi
13987 done
13988
13989 # Required to use basename.
13990 if expr a : '\(a\)' >/dev/null 2>&1; then
13991   as_expr=expr
13992 else
13993   as_expr=false
13994 fi
13995
13996 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13997   as_basename=basename
13998 else
13999   as_basename=false
14000 fi
14001
14002
14003 # Name of the executable.
14004 as_me=`$as_basename "$0" ||
14005 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14006          X"$0" : 'X\(//\)$' \| \
14007          X"$0" : 'X\(/\)$' \| \
14008          .     : '\(.\)' 2>/dev/null ||
14009 echo X/"$0" |
14010     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14011           /^X\/\(\/\/\)$/{ s//\1/; q; }
14012           /^X\/\(\/\).*/{ s//\1/; q; }
14013           s/.*/./; q'`
14014
14015
14016 # PATH needs CR, and LINENO needs CR and PATH.
14017 # Avoid depending upon Character Ranges.
14018 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14019 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14020 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14021 as_cr_digits='0123456789'
14022 as_cr_alnum=$as_cr_Letters$as_cr_digits
14023
14024 # The user is always right.
14025 if test "${PATH_SEPARATOR+set}" != set; then
14026   echo "#! /bin/sh" >conftest.sh
14027   echo  "exit 0"   >>conftest.sh
14028   chmod +x conftest.sh
14029   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
14030     PATH_SEPARATOR=';'
14031   else
14032     PATH_SEPARATOR=:
14033   fi
14034   rm -f conftest.sh
14035 fi
14036
14037
14038   as_lineno_1=$LINENO
14039   as_lineno_2=$LINENO
14040   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14041   test "x$as_lineno_1" != "x$as_lineno_2" &&
14042   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
14043   # Find who we are.  Look in the path if we contain no path at all
14044   # relative or not.
14045   case $0 in
14046     *[\\/]* ) as_myself=$0 ;;
14047     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14048 for as_dir in $PATH
14049 do
14050   IFS=$as_save_IFS
14051   test -z "$as_dir" && as_dir=.
14052   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14053 done
14054
14055        ;;
14056   esac
14057   # We did not find ourselves, most probably we were run as `sh COMMAND'
14058   # in which case we are not to be found in the path.
14059   if test "x$as_myself" = x; then
14060     as_myself=$0
14061   fi
14062   if test ! -f "$as_myself"; then
14063     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14064 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14065    { (exit 1); exit 1; }; }
14066   fi
14067   case $CONFIG_SHELL in
14068   '')
14069     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14070 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14071 do
14072   IFS=$as_save_IFS
14073   test -z "$as_dir" && as_dir=.
14074   for as_base in sh bash ksh sh5; do
14075          case $as_dir in
14076          /*)
14077            if ("$as_dir/$as_base" -c '
14078   as_lineno_1=$LINENO
14079   as_lineno_2=$LINENO
14080   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14081   test "x$as_lineno_1" != "x$as_lineno_2" &&
14082   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
14083              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14084              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14085              CONFIG_SHELL=$as_dir/$as_base
14086              export CONFIG_SHELL
14087              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14088            fi;;
14089          esac
14090        done
14091 done
14092 ;;
14093   esac
14094
14095   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14096   # uniformly replaced by the line number.  The first 'sed' inserts a
14097   # line-number line before each line; the second 'sed' does the real
14098   # work.  The second script uses 'N' to pair each line-number line
14099   # with the numbered line, and appends trailing '-' during
14100   # substitution so that $LINENO is not a special case at line end.
14101   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14102   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
14103   sed '=' <$as_myself |
14104     sed '
14105       N
14106       s,$,-,
14107       : loop
14108       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14109       t loop
14110       s,-$,,
14111       s,^['$as_cr_digits']*\n,,
14112     ' >$as_me.lineno &&
14113   chmod +x $as_me.lineno ||
14114     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14115 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14116    { (exit 1); exit 1; }; }
14117
14118   # Don't try to exec as it changes $[0], causing all sort of problems
14119   # (the dirname of $[0] is not the place where we might find the
14120   # original and so on.  Autoconf is especially sensible to this).
14121   . ./$as_me.lineno
14122   # Exit status is that of the last command.
14123   exit
14124 }
14125
14126
14127 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14128   *c*,-n*) ECHO_N= ECHO_C='
14129 ' ECHO_T='      ' ;;
14130   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14131   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
14132 esac
14133
14134 if expr a : '\(a\)' >/dev/null 2>&1; then
14135   as_expr=expr
14136 else
14137   as_expr=false
14138 fi
14139
14140 rm -f conf$$ conf$$.exe conf$$.file
14141 echo >conf$$.file
14142 if ln -s conf$$.file conf$$ 2>/dev/null; then
14143   # We could just check for DJGPP; but this test a) works b) is more generic
14144   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14145   if test -f conf$$.exe; then
14146     # Don't use ln at all; we don't have any links
14147     as_ln_s='cp -p'
14148   else
14149     as_ln_s='ln -s'
14150   fi
14151 elif ln conf$$.file conf$$ 2>/dev/null; then
14152   as_ln_s=ln
14153 else
14154   as_ln_s='cp -p'
14155 fi
14156 rm -f conf$$ conf$$.exe conf$$.file
14157
14158 if mkdir -p . 2>/dev/null; then
14159   as_mkdir_p=:
14160 else
14161   as_mkdir_p=false
14162 fi
14163
14164 as_executable_p="test -f"
14165
14166 # Sed expression to map a string onto a valid CPP name.
14167 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14168
14169 # Sed expression to map a string onto a valid variable name.
14170 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14171
14172
14173 # IFS
14174 # We need space, tab and new line, in precisely that order.
14175 as_nl='
14176 '
14177 IFS="   $as_nl"
14178
14179 # CDPATH.
14180 $as_unset CDPATH
14181
14182 exec 6>&1
14183
14184 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14185 # report actual input values of CONFIG_FILES etc. instead of their
14186 # values after options handling.  Logging --version etc. is OK.
14187 exec 5>>config.log
14188 {
14189   echo
14190   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14191 ## Running $as_me. ##
14192 _ASBOX
14193 } >&5
14194 cat >&5 <<_CSEOF
14195
14196 This file was extended by Wine $as_me 20021125, which was
14197 generated by GNU Autoconf 2.54.  Invocation command line was
14198
14199   CONFIG_FILES    = $CONFIG_FILES
14200   CONFIG_HEADERS  = $CONFIG_HEADERS
14201   CONFIG_LINKS    = $CONFIG_LINKS
14202   CONFIG_COMMANDS = $CONFIG_COMMANDS
14203   $ $0 $@
14204
14205 _CSEOF
14206 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14207 echo >&5
14208 _ACEOF
14209
14210 # Files that config.status was made for.
14211 if test -n "$ac_config_files"; then
14212   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14213 fi
14214
14215 if test -n "$ac_config_headers"; then
14216   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14217 fi
14218
14219 if test -n "$ac_config_links"; then
14220   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14221 fi
14222
14223 if test -n "$ac_config_commands"; then
14224   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14225 fi
14226
14227 cat >>$CONFIG_STATUS <<\_ACEOF
14228
14229 ac_cs_usage="\
14230 \`$as_me' instantiates files from templates according to the
14231 current configuration.
14232
14233 Usage: $0 [OPTIONS] [FILE]...
14234
14235   -h, --help       print this help, then exit
14236   -V, --version    print version number, then exit
14237   -d, --debug      don't remove temporary files
14238       --recheck    update $as_me by reconfiguring in the same conditions
14239   --file=FILE[:TEMPLATE]
14240                    instantiate the configuration file FILE
14241   --header=FILE[:TEMPLATE]
14242                    instantiate the configuration header FILE
14243
14244 Configuration files:
14245 $config_files
14246
14247 Configuration headers:
14248 $config_headers
14249
14250 Configuration commands:
14251 $config_commands
14252
14253 Report bugs to <bug-autoconf@gnu.org>."
14254 _ACEOF
14255
14256 cat >>$CONFIG_STATUS <<_ACEOF
14257 ac_cs_version="\\
14258 Wine config.status 20021125
14259 configured by $0, generated by GNU Autoconf 2.54,
14260   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14261
14262 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14263 Free Software Foundation, Inc.
14264 This config.status script is free software; the Free Software Foundation
14265 gives unlimited permission to copy, distribute and modify it."
14266 srcdir=$srcdir
14267 INSTALL="$INSTALL"
14268 _ACEOF
14269
14270 cat >>$CONFIG_STATUS <<\_ACEOF
14271 # If no file are specified by the user, then we need to provide default
14272 # value.  By we need to know if files were specified by the user.
14273 ac_need_defaults=:
14274 while test $# != 0
14275 do
14276   case $1 in
14277   --*=*)
14278     ac_option=`expr "x$1" : 'x\([^=]*\)='`
14279     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14280     ac_shift=:
14281     ;;
14282   -*)
14283     ac_option=$1
14284     ac_optarg=$2
14285     ac_shift=shift
14286     ;;
14287   *) # This is not an option, so the user has probably given explicit
14288      # arguments.
14289      ac_option=$1
14290      ac_need_defaults=false;;
14291   esac
14292
14293   case $ac_option in
14294   # Handling of the options.
14295 _ACEOF
14296 cat >>$CONFIG_STATUS <<_ACEOF
14297   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14298     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14299     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
14300 _ACEOF
14301 cat >>$CONFIG_STATUS <<\_ACEOF
14302   --version | --vers* | -V )
14303     echo "$ac_cs_version"; exit 0 ;;
14304   --he | --h)
14305     # Conflict between --help and --header
14306     { { echo "$as_me:$LINENO: error: ambiguous option: $1
14307 Try \`$0 --help' for more information." >&5
14308 echo "$as_me: error: ambiguous option: $1
14309 Try \`$0 --help' for more information." >&2;}
14310    { (exit 1); exit 1; }; };;
14311   --help | --hel | -h )
14312     echo "$ac_cs_usage"; exit 0 ;;
14313   --debug | --d* | -d )
14314     debug=: ;;
14315   --file | --fil | --fi | --f )
14316     $ac_shift
14317     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14318     ac_need_defaults=false;;
14319   --header | --heade | --head | --hea )
14320     $ac_shift
14321     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14322     ac_need_defaults=false;;
14323
14324   # This is an error.
14325   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14326 Try \`$0 --help' for more information." >&5
14327 echo "$as_me: error: unrecognized option: $1
14328 Try \`$0 --help' for more information." >&2;}
14329    { (exit 1); exit 1; }; } ;;
14330
14331   *) ac_config_targets="$ac_config_targets $1" ;;
14332
14333   esac
14334   shift
14335 done
14336
14337 _ACEOF
14338
14339
14340
14341
14342
14343 cat >>$CONFIG_STATUS <<\_ACEOF
14344 for ac_config_target in $ac_config_targets
14345 do
14346   case "$ac_config_target" in
14347   # Handling of arguments.
14348   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
14349   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
14350   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
14351   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
14352   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14353   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
14354   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
14355   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
14356   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
14357   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
14358   "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
14359   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
14360   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
14361   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
14362   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
14363   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
14364   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
14365   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
14366   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
14367   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
14368   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
14369   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
14370   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
14371   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
14372   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
14373   "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
14374   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
14375   "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
14376   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
14377   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
14378   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
14379   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
14380   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
14381   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
14382   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
14383   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
14384   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
14385   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
14386   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
14387   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
14388   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
14389   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
14390   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
14391   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
14392   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
14393   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
14394   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
14395   "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
14396   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
14397   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
14398   "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
14399   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
14400   "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
14401   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
14402   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
14403   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
14404   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
14405   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
14406   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
14407   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
14408   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
14409   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
14410   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
14411   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
14412   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
14413   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
14414   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
14415   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
14416   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
14417   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
14418   "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
14419   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
14420   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
14421   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
14422   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
14423   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
14424   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
14425   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
14426   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
14427   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
14428   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
14429   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
14430   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
14431   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
14432   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
14433   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
14434   "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
14435   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
14436   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
14437   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
14438   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
14439   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
14440   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
14441   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
14442   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
14443   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
14444   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
14445   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
14446   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
14447   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
14448   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
14449   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
14450   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
14451   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
14452   "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
14453   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
14454   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
14455   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
14456   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
14457   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
14458   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
14459   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
14460   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
14461   "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
14462   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
14463   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
14464   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
14465   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
14466   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
14467   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
14468   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14469   "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
14470   "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
14471   "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
14472   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
14473   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
14474   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
14475   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
14476   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
14477   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
14478   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
14479   "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
14480   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
14481   "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
14482   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
14483   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
14484   "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
14485   "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
14486   "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
14487   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
14488   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
14489   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
14490   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
14491   "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
14492   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
14493   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
14494   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
14495   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
14496   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
14497   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
14498   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14499   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
14500   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
14501   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
14502   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
14503   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
14504   "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
14505   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
14506   "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
14507   "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
14508   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
14509   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
14510   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
14511   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
14512   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
14513   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
14514   "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
14515   "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
14516   "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
14517   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
14518   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
14519   "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
14520   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
14521   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
14522   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
14523   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
14524   "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
14525   "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
14526   "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
14527   "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
14528   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
14529   "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
14530   "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
14531   "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
14532   "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
14533   "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
14534   "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
14535   "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
14536   "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
14537   "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
14538   "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
14539   "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
14540   "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
14541   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
14542   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14543 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14544    { (exit 1); exit 1; }; };;
14545   esac
14546 done
14547
14548 # If the user did not use the arguments to specify the items to instantiate,
14549 # then the envvar interface is used.  Set only those that are not.
14550 # We use the long form for the default assignment because of an extremely
14551 # bizarre bug on SunOS 4.1.3.
14552 if $ac_need_defaults; then
14553   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14554   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14555   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14556 fi
14557
14558 # Create a temporary directory, and hook for its removal unless debugging.
14559 $debug ||
14560 {
14561   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14562   trap '{ (exit 1); exit 1; }' 1 2 13 15
14563 }
14564
14565 # Create a (secure) tmp directory for tmp files.
14566 : ${TMPDIR=/tmp}
14567 {
14568   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14569   test -n "$tmp" && test -d "$tmp"
14570 }  ||
14571 {
14572   tmp=$TMPDIR/cs$$-$RANDOM
14573   (umask 077 && mkdir $tmp)
14574 } ||
14575 {
14576    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14577    { (exit 1); exit 1; }
14578 }
14579
14580 _ACEOF
14581
14582 cat >>$CONFIG_STATUS <<_ACEOF
14583
14584 #
14585 # CONFIG_FILES section.
14586 #
14587
14588 # No need to generate the scripts if there are no CONFIG_FILES.
14589 # This happens for instance when ./config.status config.h
14590 if test -n "\$CONFIG_FILES"; then
14591   # Protect against being on the right side of a sed subst in config.status.
14592   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14593    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14594 s,@SHELL@,$SHELL,;t t
14595 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14596 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14597 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14598 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14599 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14600 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14601 s,@exec_prefix@,$exec_prefix,;t t
14602 s,@prefix@,$prefix,;t t
14603 s,@program_transform_name@,$program_transform_name,;t t
14604 s,@bindir@,$bindir,;t t
14605 s,@sbindir@,$sbindir,;t t
14606 s,@libexecdir@,$libexecdir,;t t
14607 s,@datadir@,$datadir,;t t
14608 s,@sysconfdir@,$sysconfdir,;t t
14609 s,@sharedstatedir@,$sharedstatedir,;t t
14610 s,@localstatedir@,$localstatedir,;t t
14611 s,@libdir@,$libdir,;t t
14612 s,@includedir@,$includedir,;t t
14613 s,@oldincludedir@,$oldincludedir,;t t
14614 s,@infodir@,$infodir,;t t
14615 s,@mandir@,$mandir,;t t
14616 s,@build_alias@,$build_alias,;t t
14617 s,@host_alias@,$host_alias,;t t
14618 s,@target_alias@,$target_alias,;t t
14619 s,@DEFS@,$DEFS,;t t
14620 s,@ECHO_C@,$ECHO_C,;t t
14621 s,@ECHO_N@,$ECHO_N,;t t
14622 s,@ECHO_T@,$ECHO_T,;t t
14623 s,@LIBS@,$LIBS,;t t
14624 s,@LIBEXT@,$LIBEXT,;t t
14625 s,@OPTIONS@,$OPTIONS,;t t
14626 s,@WIN16_FILES@,$WIN16_FILES,;t t
14627 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
14628 s,@build@,$build,;t t
14629 s,@build_cpu@,$build_cpu,;t t
14630 s,@build_vendor@,$build_vendor,;t t
14631 s,@build_os@,$build_os,;t t
14632 s,@host@,$host,;t t
14633 s,@host_cpu@,$host_cpu,;t t
14634 s,@host_vendor@,$host_vendor,;t t
14635 s,@host_os@,$host_os,;t t
14636 s,@SET_MAKE@,$SET_MAKE,;t t
14637 s,@CC@,$CC,;t t
14638 s,@CFLAGS@,$CFLAGS,;t t
14639 s,@LDFLAGS@,$LDFLAGS,;t t
14640 s,@CPPFLAGS@,$CPPFLAGS,;t t
14641 s,@ac_ct_CC@,$ac_ct_CC,;t t
14642 s,@EXEEXT@,$EXEEXT,;t t
14643 s,@OBJEXT@,$OBJEXT,;t t
14644 s,@CPP@,$CPP,;t t
14645 s,@TOOLSDIR@,$TOOLSDIR,;t t
14646 s,@X_CFLAGS@,$X_CFLAGS,;t t
14647 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
14648 s,@X_LIBS@,$X_LIBS,;t t
14649 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
14650 s,@YACC@,$YACC,;t t
14651 s,@LEX@,$LEX,;t t
14652 s,@LEXLIB@,$LEXLIB,;t t
14653 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14654 s,@XYACC@,$XYACC,;t t
14655 s,@XLEX@,$XLEX,;t t
14656 s,@LD@,$LD,;t t
14657 s,@ac_ct_LD@,$ac_ct_LD,;t t
14658 s,@AR@,$AR,;t t
14659 s,@ac_ct_AR@,$ac_ct_AR,;t t
14660 s,@RANLIB@,$RANLIB,;t t
14661 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14662 s,@STRIP@,$STRIP,;t t
14663 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14664 s,@WINDRES@,$WINDRES,;t t
14665 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
14666 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14667 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14668 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14669 s,@LN_S@,$LN_S,;t t
14670 s,@LN@,$LN,;t t
14671 s,@C2MAN@,$C2MAN,;t t
14672 s,@LDCONFIG@,$LDCONFIG,;t t
14673 s,@LINT@,$LINT,;t t
14674 s,@LINTFLAGS@,$LINTFLAGS,;t t
14675 s,@DB2HTML@,$DB2HTML,;t t
14676 s,@DB2PDF@,$DB2PDF,;t t
14677 s,@DB2PS@,$DB2PS,;t t
14678 s,@JPEGLIB@,$JPEGLIB,;t t
14679 s,@EGREP@,$EGREP,;t t
14680 s,@XLIB@,$XLIB,;t t
14681 s,@XFILES@,$XFILES,;t t
14682 s,@OPENGLFILES@,$OPENGLFILES,;t t
14683 s,@GLU32FILES@,$GLU32FILES,;t t
14684 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
14685 s,@NASLIBS@,$NASLIBS,;t t
14686 s,@CURSESLIBS@,$CURSESLIBS,;t t
14687 s,@sane_devel@,$sane_devel,;t t
14688 s,@SANELIBS@,$SANELIBS,;t t
14689 s,@SANEINCL@,$SANEINCL,;t t
14690 s,@ft_devel@,$ft_devel,;t t
14691 s,@ft_devel2@,$ft_devel2,;t t
14692 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
14693 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
14694 s,@ARTSLIBS@,$ARTSLIBS,;t t
14695 s,@ARTSINCL@,$ARTSINCL,;t t
14696 s,@ALSALIBS@,$ALSALIBS,;t t
14697 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
14698 s,@DLLEXT@,$DLLEXT,;t t
14699 s,@DLLFLAGS@,$DLLFLAGS,;t t
14700 s,@DLLIBS@,$DLLIBS,;t t
14701 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
14702 s,@LDSHARED@,$LDSHARED,;t t
14703 s,@DLLWRAP@,$DLLWRAP,;t t
14704 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
14705 s,@CROSSTEST@,$CROSSTEST,;t t
14706 s,@CROSSCC@,$CROSSCC,;t t
14707 s,@DLLTOOL@,$DLLTOOL,;t t
14708 s,@LDPATH@,$LDPATH,;t t
14709 s,@CRTLIBS@,$CRTLIBS,;t t
14710 s,@LDD@,$LDD,;t t
14711 s,@ALLOCA@,$ALLOCA,;t t
14712 s,@LIBOBJS@,$LIBOBJS,;t t
14713 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14714 /@MAKE_RULES@/r $MAKE_RULES
14715 s,@MAKE_RULES@,,;t t
14716 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
14717 s,@MAKE_DLL_RULES@,,;t t
14718 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
14719 s,@MAKE_TEST_RULES@,,;t t
14720 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
14721 s,@MAKE_PROG_RULES@,,;t t
14722 CEOF
14723
14724 _ACEOF
14725
14726   cat >>$CONFIG_STATUS <<\_ACEOF
14727   # Split the substitutions into bite-sized pieces for seds with
14728   # small command number limits, like on Digital OSF/1 and HP-UX.
14729   ac_max_sed_lines=48
14730   ac_sed_frag=1 # Number of current file.
14731   ac_beg=1 # First line for current file.
14732   ac_end=$ac_max_sed_lines # Line after last line for current file.
14733   ac_more_lines=:
14734   ac_sed_cmds=
14735   while $ac_more_lines; do
14736     if test $ac_beg -gt 1; then
14737       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14738     else
14739       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14740     fi
14741     if test ! -s $tmp/subs.frag; then
14742       ac_more_lines=false
14743     else
14744       # The purpose of the label and of the branching condition is to
14745       # speed up the sed processing (if there are no `@' at all, there
14746       # is no need to browse any of the substitutions).
14747       # These are the two extra sed commands mentioned above.
14748       (echo ':t
14749   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14750       if test -z "$ac_sed_cmds"; then
14751         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14752       else
14753         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14754       fi
14755       ac_sed_frag=`expr $ac_sed_frag + 1`
14756       ac_beg=$ac_end
14757       ac_end=`expr $ac_end + $ac_max_sed_lines`
14758     fi
14759   done
14760   if test -z "$ac_sed_cmds"; then
14761     ac_sed_cmds=cat
14762   fi
14763 fi # test -n "$CONFIG_FILES"
14764
14765 _ACEOF
14766 cat >>$CONFIG_STATUS <<\_ACEOF
14767 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14768   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14769   case $ac_file in
14770   - | *:- | *:-:* ) # input from stdin
14771         cat >$tmp/stdin
14772         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14773         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14774   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14775         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14776   * )   ac_file_in=$ac_file.in ;;
14777   esac
14778
14779   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14780   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14781 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14782          X"$ac_file" : 'X\(//\)[^/]' \| \
14783          X"$ac_file" : 'X\(//\)$' \| \
14784          X"$ac_file" : 'X\(/\)' \| \
14785          .     : '\(.\)' 2>/dev/null ||
14786 echo X"$ac_file" |
14787     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14788           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14789           /^X\(\/\/\)$/{ s//\1/; q; }
14790           /^X\(\/\).*/{ s//\1/; q; }
14791           s/.*/./; q'`
14792   { if $as_mkdir_p; then
14793     mkdir -p "$ac_dir"
14794   else
14795     as_dir="$ac_dir"
14796     as_dirs=
14797     while test ! -d "$as_dir"; do
14798       as_dirs="$as_dir $as_dirs"
14799       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14801          X"$as_dir" : 'X\(//\)[^/]' \| \
14802          X"$as_dir" : 'X\(//\)$' \| \
14803          X"$as_dir" : 'X\(/\)' \| \
14804          .     : '\(.\)' 2>/dev/null ||
14805 echo X"$as_dir" |
14806     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14807           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14808           /^X\(\/\/\)$/{ s//\1/; q; }
14809           /^X\(\/\).*/{ s//\1/; q; }
14810           s/.*/./; q'`
14811     done
14812     test ! -n "$as_dirs" || mkdir $as_dirs
14813   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14814 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14815    { (exit 1); exit 1; }; }; }
14816
14817   ac_builddir=.
14818
14819 if test "$ac_dir" != .; then
14820   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14821   # A "../" for each directory in $ac_dir_suffix.
14822   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14823 else
14824   ac_dir_suffix= ac_top_builddir=
14825 fi
14826
14827 case $srcdir in
14828   .)  # No --srcdir option.  We are building in place.
14829     ac_srcdir=.
14830     if test -z "$ac_top_builddir"; then
14831        ac_top_srcdir=.
14832     else
14833        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14834     fi ;;
14835   [\\/]* | ?:[\\/]* )  # Absolute path.
14836     ac_srcdir=$srcdir$ac_dir_suffix;
14837     ac_top_srcdir=$srcdir ;;
14838   *) # Relative path.
14839     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14840     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14841 esac
14842 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14843 # absolute.
14844 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14845 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
14846 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14847 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14848
14849
14850   case $INSTALL in
14851   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14852   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14853   esac
14854
14855   if test x"$ac_file" != x-; then
14856     { echo "$as_me:$LINENO: creating $ac_file" >&5
14857 echo "$as_me: creating $ac_file" >&6;}
14858     rm -f "$ac_file"
14859   fi
14860   # Let's still pretend it is `configure' which instantiates (i.e., don't
14861   # use $as_me), people would be surprised to read:
14862   #    /* config.h.  Generated by config.status.  */
14863   if test x"$ac_file" = x-; then
14864     configure_input=
14865   else
14866     configure_input="$ac_file.  "
14867   fi
14868   configure_input=$configure_input"Generated from `echo $ac_file_in |
14869                                      sed 's,.*/,,'` by configure."
14870
14871   # First look for the input files in the build tree, otherwise in the
14872   # src tree.
14873   ac_file_inputs=`IFS=:
14874     for f in $ac_file_in; do
14875       case $f in
14876       -) echo $tmp/stdin ;;
14877       [\\/$]*)
14878          # Absolute (can't be DOS-style, as IFS=:)
14879          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14880 echo "$as_me: error: cannot find input file: $f" >&2;}
14881    { (exit 1); exit 1; }; }
14882          echo $f;;
14883       *) # Relative
14884          if test -f "$f"; then
14885            # Build tree
14886            echo $f
14887          elif test -f "$srcdir/$f"; then
14888            # Source tree
14889            echo $srcdir/$f
14890          else
14891            # /dev/null tree
14892            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14893 echo "$as_me: error: cannot find input file: $f" >&2;}
14894    { (exit 1); exit 1; }; }
14895          fi;;
14896       esac
14897     done` || { (exit 1); exit 1; }
14898 _ACEOF
14899 cat >>$CONFIG_STATUS <<_ACEOF
14900   sed "$ac_vpsub
14901 $extrasub
14902 _ACEOF
14903 cat >>$CONFIG_STATUS <<\_ACEOF
14904 :t
14905 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14906 s,@configure_input@,$configure_input,;t t
14907 s,@srcdir@,$ac_srcdir,;t t
14908 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14909 s,@top_srcdir@,$ac_top_srcdir,;t t
14910 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14911 s,@builddir@,$ac_builddir,;t t
14912 s,@abs_builddir@,$ac_abs_builddir,;t t
14913 s,@top_builddir@,$ac_top_builddir,;t t
14914 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14915 s,@INSTALL@,$ac_INSTALL,;t t
14916 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14917   rm -f $tmp/stdin
14918   if test x"$ac_file" != x-; then
14919     mv $tmp/out $ac_file
14920   else
14921     cat $tmp/out
14922     rm -f $tmp/out
14923   fi
14924
14925 done
14926 _ACEOF
14927 cat >>$CONFIG_STATUS <<\_ACEOF
14928
14929 #
14930 # CONFIG_HEADER section.
14931 #
14932
14933 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14934 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14935 #
14936 # ac_d sets the value in "#define NAME VALUE" lines.
14937 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
14938 ac_dB='[        ].*$,\1#\2'
14939 ac_dC=' '
14940 ac_dD=',;t'
14941 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14942 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
14943 ac_uB='$,\1#\2define\3'
14944 ac_uC=' '
14945 ac_uD=',;t'
14946
14947 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14948   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14949   case $ac_file in
14950   - | *:- | *:-:* ) # input from stdin
14951         cat >$tmp/stdin
14952         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14953         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14954   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14955         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14956   * )   ac_file_in=$ac_file.in ;;
14957   esac
14958
14959   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14960 echo "$as_me: creating $ac_file" >&6;}
14961
14962   # First look for the input files in the build tree, otherwise in the
14963   # src tree.
14964   ac_file_inputs=`IFS=:
14965     for f in $ac_file_in; do
14966       case $f in
14967       -) echo $tmp/stdin ;;
14968       [\\/$]*)
14969          # Absolute (can't be DOS-style, as IFS=:)
14970          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14971 echo "$as_me: error: cannot find input file: $f" >&2;}
14972    { (exit 1); exit 1; }; }
14973          echo $f;;
14974       *) # Relative
14975          if test -f "$f"; then
14976            # Build tree
14977            echo $f
14978          elif test -f "$srcdir/$f"; then
14979            # Source tree
14980            echo $srcdir/$f
14981          else
14982            # /dev/null tree
14983            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14984 echo "$as_me: error: cannot find input file: $f" >&2;}
14985    { (exit 1); exit 1; }; }
14986          fi;;
14987       esac
14988     done` || { (exit 1); exit 1; }
14989   # Remove the trailing spaces.
14990   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
14991
14992 _ACEOF
14993
14994 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14995 # `conftest.undefs', that substitutes the proper values into
14996 # config.h.in to produce config.h.  The first handles `#define'
14997 # templates, and the second `#undef' templates.
14998 # And first: Protect against being on the right side of a sed subst in
14999 # config.status.  Protect against being in an unquoted here document
15000 # in config.status.
15001 rm -f conftest.defines conftest.undefs
15002 # Using a here document instead of a string reduces the quoting nightmare.
15003 # Putting comments in sed scripts is not portable.
15004 #
15005 # `end' is used to avoid that the second main sed command (meant for
15006 # 0-ary CPP macros) applies to n-ary macro definitions.
15007 # See the Autoconf documentation for `clear'.
15008 cat >confdef2sed.sed <<\_ACEOF
15009 s/[\\&,]/\\&/g
15010 s,[\\$`],\\&,g
15011 t clear
15012 : clear
15013 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15014 t end
15015 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15016 : end
15017 _ACEOF
15018 # If some macros were called several times there might be several times
15019 # the same #defines, which is useless.  Nevertheless, we may not want to
15020 # sort them, since we want the *last* AC-DEFINE to be honored.
15021 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15022 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15023 rm -f confdef2sed.sed
15024
15025 # This sed command replaces #undef with comments.  This is necessary, for
15026 # example, in the case of _POSIX_SOURCE, which is predefined and required
15027 # on some systems where configure will not decide to define it.
15028 cat >>conftest.undefs <<\_ACEOF
15029 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15030 _ACEOF
15031
15032 # Break up conftest.defines because some shells have a limit on the size
15033 # of here documents, and old seds have small limits too (100 cmds).
15034 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15035 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15036 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15037 echo '  :' >>$CONFIG_STATUS
15038 rm -f conftest.tail
15039 while grep . conftest.defines >/dev/null
15040 do
15041   # Write a limited-size here document to $tmp/defines.sed.
15042   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15043   # Speed up: don't consider the non `#define' lines.
15044   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
15045   # Work around the forget-to-reset-the-flag bug.
15046   echo 't clr' >>$CONFIG_STATUS
15047   echo ': clr' >>$CONFIG_STATUS
15048   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15049   echo 'CEOF
15050   sed -f $tmp/defines.sed $tmp/in >$tmp/out
15051   rm -f $tmp/in
15052   mv $tmp/out $tmp/in
15053 ' >>$CONFIG_STATUS
15054   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15055   rm -f conftest.defines
15056   mv conftest.tail conftest.defines
15057 done
15058 rm -f conftest.defines
15059 echo '  fi # grep' >>$CONFIG_STATUS
15060 echo >>$CONFIG_STATUS
15061
15062 # Break up conftest.undefs because some shells have a limit on the size
15063 # of here documents, and old seds have small limits too (100 cmds).
15064 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
15065 rm -f conftest.tail
15066 while grep . conftest.undefs >/dev/null
15067 do
15068   # Write a limited-size here document to $tmp/undefs.sed.
15069   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15070   # Speed up: don't consider the non `#undef'
15071   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
15072   # Work around the forget-to-reset-the-flag bug.
15073   echo 't clr' >>$CONFIG_STATUS
15074   echo ': clr' >>$CONFIG_STATUS
15075   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15076   echo 'CEOF
15077   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15078   rm -f $tmp/in
15079   mv $tmp/out $tmp/in
15080 ' >>$CONFIG_STATUS
15081   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15082   rm -f conftest.undefs
15083   mv conftest.tail conftest.undefs
15084 done
15085 rm -f conftest.undefs
15086
15087 cat >>$CONFIG_STATUS <<\_ACEOF
15088   # Let's still pretend it is `configure' which instantiates (i.e., don't
15089   # use $as_me), people would be surprised to read:
15090   #    /* config.h.  Generated by config.status.  */
15091   if test x"$ac_file" = x-; then
15092     echo "/* Generated by configure.  */" >$tmp/config.h
15093   else
15094     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
15095   fi
15096   cat $tmp/in >>$tmp/config.h
15097   rm -f $tmp/in
15098   if test x"$ac_file" != x-; then
15099     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
15100       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15101 echo "$as_me: $ac_file is unchanged" >&6;}
15102     else
15103       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15104 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15105          X"$ac_file" : 'X\(//\)[^/]' \| \
15106          X"$ac_file" : 'X\(//\)$' \| \
15107          X"$ac_file" : 'X\(/\)' \| \
15108          .     : '\(.\)' 2>/dev/null ||
15109 echo X"$ac_file" |
15110     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15111           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15112           /^X\(\/\/\)$/{ s//\1/; q; }
15113           /^X\(\/\).*/{ s//\1/; q; }
15114           s/.*/./; q'`
15115       { if $as_mkdir_p; then
15116     mkdir -p "$ac_dir"
15117   else
15118     as_dir="$ac_dir"
15119     as_dirs=
15120     while test ! -d "$as_dir"; do
15121       as_dirs="$as_dir $as_dirs"
15122       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15123 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15124          X"$as_dir" : 'X\(//\)[^/]' \| \
15125          X"$as_dir" : 'X\(//\)$' \| \
15126          X"$as_dir" : 'X\(/\)' \| \
15127          .     : '\(.\)' 2>/dev/null ||
15128 echo X"$as_dir" |
15129     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15130           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15131           /^X\(\/\/\)$/{ s//\1/; q; }
15132           /^X\(\/\).*/{ s//\1/; q; }
15133           s/.*/./; q'`
15134     done
15135     test ! -n "$as_dirs" || mkdir $as_dirs
15136   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15137 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15138    { (exit 1); exit 1; }; }; }
15139
15140       rm -f $ac_file
15141       mv $tmp/config.h $ac_file
15142     fi
15143   else
15144     cat $tmp/config.h
15145     rm -f $tmp/config.h
15146   fi
15147 done
15148 _ACEOF
15149 cat >>$CONFIG_STATUS <<\_ACEOF
15150
15151 #
15152 # CONFIG_COMMANDS section.
15153 #
15154 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15155   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15156   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15157   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15158 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15159          X"$ac_dest" : 'X\(//\)[^/]' \| \
15160          X"$ac_dest" : 'X\(//\)$' \| \
15161          X"$ac_dest" : 'X\(/\)' \| \
15162          .     : '\(.\)' 2>/dev/null ||
15163 echo X"$ac_dest" |
15164     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15165           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15166           /^X\(\/\/\)$/{ s//\1/; q; }
15167           /^X\(\/\).*/{ s//\1/; q; }
15168           s/.*/./; q'`
15169   ac_builddir=.
15170
15171 if test "$ac_dir" != .; then
15172   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15173   # A "../" for each directory in $ac_dir_suffix.
15174   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15175 else
15176   ac_dir_suffix= ac_top_builddir=
15177 fi
15178
15179 case $srcdir in
15180   .)  # No --srcdir option.  We are building in place.
15181     ac_srcdir=.
15182     if test -z "$ac_top_builddir"; then
15183        ac_top_srcdir=.
15184     else
15185        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15186     fi ;;
15187   [\\/]* | ?:[\\/]* )  # Absolute path.
15188     ac_srcdir=$srcdir$ac_dir_suffix;
15189     ac_top_srcdir=$srcdir ;;
15190   *) # Relative path.
15191     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15192     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15193 esac
15194 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15195 # absolute.
15196 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15197 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
15198 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15199 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15200
15201
15202   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15203 echo "$as_me: executing $ac_dest commands" >&6;}
15204   case $ac_dest in
15205     controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
15206 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
15207     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
15208 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
15209     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
15210 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
15211     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
15212 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
15213     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
15214 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
15215     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
15216 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
15217     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
15218 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
15219     dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
15220 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
15221     dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
15222 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
15223     dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
15224 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
15225     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
15226 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
15227     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
15228 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
15229     dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
15230 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
15231     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
15232 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
15233     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
15234 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
15235     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
15236 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
15237     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
15238 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
15239     files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
15240 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
15241     graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
15242 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
15243     graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
15244 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
15245     if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
15246 echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
15247     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
15248 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
15249     loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
15250 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
15251     loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
15252 echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
15253     memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
15254 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
15255     misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
15256 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
15257     msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
15258 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
15259     objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
15260 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
15261     programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
15262 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
15263     programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
15264 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
15265     relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
15266 echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
15267     scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
15268 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
15269     win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
15270 echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
15271     windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
15272 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
15273   esac
15274 done
15275 _ACEOF
15276
15277 cat >>$CONFIG_STATUS <<\_ACEOF
15278
15279 { (exit 0); exit 0; }
15280 _ACEOF
15281 chmod +x $CONFIG_STATUS
15282 ac_clean_files=$ac_clean_files_save
15283
15284
15285 # configure is writing to config.log, and then calls config.status.
15286 # config.status does its own redirection, appending to config.log.
15287 # Unfortunately, on DOS this fails, as config.log is still kept open
15288 # by configure, so config.status won't be able to write to it; its
15289 # output is simply discarded.  So we exec the FD to /dev/null,
15290 # effectively closing config.log, so it can be properly (re)opened and
15291 # appended to by config.status.  When coming back to configure, we
15292 # need to make the FD available again.
15293 if test "$no_create" != yes; then
15294   ac_cs_success=:
15295   exec 5>/dev/null
15296   $SHELL $CONFIG_STATUS || ac_cs_success=false
15297   exec 5>>config.log
15298   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15299   # would make configure fail if this is the last instruction.
15300   $ac_cs_success || { (exit 1); exit 1; }
15301 fi
15302
15303
15304 if test "$have_x" = "no"
15305 then
15306   echo
15307   echo "*** Warning: X development files not found. Wine will be built without"
15308   echo "*** X support, which currently does not work, and would probably not be"
15309   echo "*** what you want anyway. You will need to install devel packages of"
15310   echo "*** Xlib/Xfree86 at the very least."
15311 fi
15312
15313 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
15314 then
15315   echo
15316   echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
15317   echo "*** terminal resize support. Consider upgrading ncurses."
15318 fi
15319
15320 if test "$wine_cv_libc_reentrant" = "no"
15321 then
15322   echo
15323   echo "*** Warning: non-reentrant libc detected. Wine will be built without"
15324   echo "*** threading support. Consider upgrading libc to a more recent"
15325   echo "*** reentrant version of libc."
15326 fi
15327
15328 if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
15329 then
15330   echo
15331   echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
15332   echo "*** applications won't work properly. You should upgrade your X11 library."
15333 fi
15334
15335 if test "$wine_cv_opengl_version_OK" = "no"
15336 then
15337   echo
15338   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
15339   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
15340 fi
15341
15342 if test "$wine_cv_msg_freetype" = "yes"
15343 then
15344   echo
15345   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
15346   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
15347   echo "*** freetype-devel package (or its equivalent on your distribution) to"
15348   echo "*** enable Wine to use TrueType fonts."
15349 fi
15350
15351 echo
15352 echo "Configure finished.  Do 'make depend && make' to compile Wine."
15353 echo
15354