Load any TrueType fonts that fontconfig knows about.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for Wine 20031016.
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 \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME='Wine'
268 PACKAGE_TARNAME='wine'
269 PACKAGE_VERSION='20031016'
270 PACKAGE_STRING='Wine 20031016'
271 PACKAGE_BUGREPORT=''
272
273 ac_unique_file="server/atom.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS WIN16_FILES WIN16_INSTALL MAIN_BINARY 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 AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT LIBPTHREAD JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLL LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS'
312 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures Wine 20031016 to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 X features:
834   --x-includes=DIR    X include files are in DIR
835   --x-libraries=DIR   X library files are in DIR
836
837 System types:
838   --build=BUILD     configure for building on BUILD [guessed]
839   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of Wine 20031016:";;
846    esac
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --disable-win16         do not include Win16 support
853   --disable-debug         compile out all debugging messages
854   --disable-trace         compile out TRACE messages
855
856 Optional Packages:
857   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
858   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
859   --without-opengl        do not use OpenGL
860   --without-curses        do not use curses
861   --with-nptl             use glibc NPTL threading support
862   --with-wine-tools=<dir> use Wine tools from directory <dir>
863   --with-x                use the X Window System
864
865 Some influential environment variables:
866   CC          C compiler command
867   CFLAGS      C compiler flags
868   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
869               nonstandard directory <lib dir>
870   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
871               headers in a nonstandard directory <include dir>
872   CPP         C preprocessor
873
874 Use these variables to override the choices made by `configure' or to help
875 it to find libraries and programs with nonstandard names/locations.
876
877 _ACEOF
878 fi
879
880 if test "$ac_init_help" = "recursive"; then
881   # If there are subdirs, report their specific --help.
882   ac_popdir=`pwd`
883   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884     test -d $ac_dir || continue
885     ac_builddir=.
886
887 if test "$ac_dir" != .; then
888   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889   # A "../" for each directory in $ac_dir_suffix.
890   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
891 else
892   ac_dir_suffix= ac_top_builddir=
893 fi
894
895 case $srcdir in
896   .)  # No --srcdir option.  We are building in place.
897     ac_srcdir=.
898     if test -z "$ac_top_builddir"; then
899        ac_top_srcdir=.
900     else
901        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
902     fi ;;
903   [\\/]* | ?:[\\/]* )  # Absolute path.
904     ac_srcdir=$srcdir$ac_dir_suffix;
905     ac_top_srcdir=$srcdir ;;
906   *) # Relative path.
907     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908     ac_top_srcdir=$ac_top_builddir$srcdir ;;
909 esac
910 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
911 # absolute.
912 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
913 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
914 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
915 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
916
917     cd $ac_dir
918     # Check for guested configure; otherwise get Cygnus style configure.
919     if test -f $ac_srcdir/configure.gnu; then
920       echo
921       $SHELL $ac_srcdir/configure.gnu  --help=recursive
922     elif test -f $ac_srcdir/configure; then
923       echo
924       $SHELL $ac_srcdir/configure  --help=recursive
925     elif test -f $ac_srcdir/configure.ac ||
926            test -f $ac_srcdir/configure.in; then
927       echo
928       $ac_configure --help
929     else
930       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
931     fi
932     cd "$ac_popdir"
933   done
934 fi
935
936 test -n "$ac_init_help" && exit 0
937 if $ac_init_version; then
938   cat <<\_ACEOF
939 Wine configure 20031016
940 generated by GNU Autoconf 2.57
941
942 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
943 Free Software Foundation, Inc.
944 This configure script is free software; the Free Software Foundation
945 gives unlimited permission to copy, distribute and modify it.
946 _ACEOF
947   exit 0
948 fi
949 exec 5>config.log
950 cat >&5 <<_ACEOF
951 This file contains any messages produced by compilers while
952 running configure, to aid debugging if configure makes a mistake.
953
954 It was created by Wine $as_me 20031016, which was
955 generated by GNU Autoconf 2.57.  Invocation command line was
956
957   $ $0 $@
958
959 _ACEOF
960 {
961 cat <<_ASUNAME
962 ## --------- ##
963 ## Platform. ##
964 ## --------- ##
965
966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
971
972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
973 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
974
975 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
976 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
978 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
979 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
980 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
981 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
982
983 _ASUNAME
984
985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
986 for as_dir in $PATH
987 do
988   IFS=$as_save_IFS
989   test -z "$as_dir" && as_dir=.
990   echo "PATH: $as_dir"
991 done
992
993 } >&5
994
995 cat >&5 <<_ACEOF
996
997
998 ## ----------- ##
999 ## Core tests. ##
1000 ## ----------- ##
1001
1002 _ACEOF
1003
1004
1005 # Keep a trace of the command line.
1006 # Strip out --no-create and --no-recursion so they do not pile up.
1007 # Strip out --silent because we don't want to record it for future runs.
1008 # Also quote any args containing shell meta-characters.
1009 # Make two passes to allow for proper duplicate-argument suppression.
1010 ac_configure_args=
1011 ac_configure_args0=
1012 ac_configure_args1=
1013 ac_sep=
1014 ac_must_keep_next=false
1015 for ac_pass in 1 2
1016 do
1017   for ac_arg
1018   do
1019     case $ac_arg in
1020     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1021     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022     | -silent | --silent | --silen | --sile | --sil)
1023       continue ;;
1024     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1025       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1026     esac
1027     case $ac_pass in
1028     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1029     2)
1030       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1031       if test $ac_must_keep_next = true; then
1032         ac_must_keep_next=false # Got value, back to normal.
1033       else
1034         case $ac_arg in
1035           *=* | --config-cache | -C | -disable-* | --disable-* \
1036           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1037           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1038           | -with-* | --with-* | -without-* | --without-* | --x)
1039             case "$ac_configure_args0 " in
1040               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1041             esac
1042             ;;
1043           -* ) ac_must_keep_next=true ;;
1044         esac
1045       fi
1046       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1047       # Get rid of the leading space.
1048       ac_sep=" "
1049       ;;
1050     esac
1051   done
1052 done
1053 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1054 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1055
1056 # When interrupted or exit'd, cleanup temporary files, and complete
1057 # config.log.  We remove comments because anyway the quotes in there
1058 # would cause problems or look ugly.
1059 # WARNING: Be sure not to use single quotes in there, as some shells,
1060 # such as our DU 5.0 friend, will then `close' the trap.
1061 trap 'exit_status=$?
1062   # Save into config.log some information that might help in debugging.
1063   {
1064     echo
1065
1066     cat <<\_ASBOX
1067 ## ---------------- ##
1068 ## Cache variables. ##
1069 ## ---------------- ##
1070 _ASBOX
1071     echo
1072     # The following way of writing the cache mishandles newlines in values,
1073 {
1074   (set) 2>&1 |
1075     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1076     *ac_space=\ *)
1077       sed -n \
1078         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1079           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1080       ;;
1081     *)
1082       sed -n \
1083         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1084       ;;
1085     esac;
1086 }
1087     echo
1088
1089     cat <<\_ASBOX
1090 ## ----------------- ##
1091 ## Output variables. ##
1092 ## ----------------- ##
1093 _ASBOX
1094     echo
1095     for ac_var in $ac_subst_vars
1096     do
1097       eval ac_val=$`echo $ac_var`
1098       echo "$ac_var='"'"'$ac_val'"'"'"
1099     done | sort
1100     echo
1101
1102     if test -n "$ac_subst_files"; then
1103       cat <<\_ASBOX
1104 ## ------------- ##
1105 ## Output files. ##
1106 ## ------------- ##
1107 _ASBOX
1108       echo
1109       for ac_var in $ac_subst_files
1110       do
1111         eval ac_val=$`echo $ac_var`
1112         echo "$ac_var='"'"'$ac_val'"'"'"
1113       done | sort
1114       echo
1115     fi
1116
1117     if test -s confdefs.h; then
1118       cat <<\_ASBOX
1119 ## ----------- ##
1120 ## confdefs.h. ##
1121 ## ----------- ##
1122 _ASBOX
1123       echo
1124       sed "/^$/d" confdefs.h | sort
1125       echo
1126     fi
1127     test "$ac_signal" != 0 &&
1128       echo "$as_me: caught signal $ac_signal"
1129     echo "$as_me: exit $exit_status"
1130   } >&5
1131   rm -f core *.core &&
1132   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1133     exit $exit_status
1134      ' 0
1135 for ac_signal in 1 2 13 15; do
1136   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1137 done
1138 ac_signal=0
1139
1140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1141 rm -rf conftest* confdefs.h
1142 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1143 echo >confdefs.h
1144
1145 # Predefined preprocessor variables.
1146
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_NAME "$PACKAGE_NAME"
1149 _ACEOF
1150
1151
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1154 _ACEOF
1155
1156
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1159 _ACEOF
1160
1161
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_STRING "$PACKAGE_STRING"
1164 _ACEOF
1165
1166
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1169 _ACEOF
1170
1171
1172 # Let the site file select an alternate cache file if it wants to.
1173 # Prefer explicitly selected file to automatically selected ones.
1174 if test -z "$CONFIG_SITE"; then
1175   if test "x$prefix" != xNONE; then
1176     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1177   else
1178     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1179   fi
1180 fi
1181 for ac_site_file in $CONFIG_SITE; do
1182   if test -r "$ac_site_file"; then
1183     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1184 echo "$as_me: loading site script $ac_site_file" >&6;}
1185     sed 's/^/| /' "$ac_site_file" >&5
1186     . "$ac_site_file"
1187   fi
1188 done
1189
1190 if test -r "$cache_file"; then
1191   # Some versions of bash will fail to source /dev/null (special
1192   # files actually), so we avoid doing that.
1193   if test -f "$cache_file"; then
1194     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1195 echo "$as_me: loading cache $cache_file" >&6;}
1196     case $cache_file in
1197       [\\/]* | ?:[\\/]* ) . $cache_file;;
1198       *)                      . ./$cache_file;;
1199     esac
1200   fi
1201 else
1202   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1203 echo "$as_me: creating cache $cache_file" >&6;}
1204   >$cache_file
1205 fi
1206
1207 # Check that the precious variables saved in the cache have kept the same
1208 # value.
1209 ac_cache_corrupted=false
1210 for ac_var in `(set) 2>&1 |
1211                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1212   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1213   eval ac_new_set=\$ac_env_${ac_var}_set
1214   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1215   eval ac_new_val="\$ac_env_${ac_var}_value"
1216   case $ac_old_set,$ac_new_set in
1217     set,)
1218       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1219 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1220       ac_cache_corrupted=: ;;
1221     ,set)
1222       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1223 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1224       ac_cache_corrupted=: ;;
1225     ,);;
1226     *)
1227       if test "x$ac_old_val" != "x$ac_new_val"; then
1228         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1229 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1230         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1231 echo "$as_me:   former value:  $ac_old_val" >&2;}
1232         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1233 echo "$as_me:   current value: $ac_new_val" >&2;}
1234         ac_cache_corrupted=:
1235       fi;;
1236   esac
1237   # Pass precious variables to config.status.
1238   if test "$ac_new_set" = set; then
1239     case $ac_new_val in
1240     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1242     *) ac_arg=$ac_var=$ac_new_val ;;
1243     esac
1244     case " $ac_configure_args " in
1245       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1246       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1247     esac
1248   fi
1249 done
1250 if $ac_cache_corrupted; then
1251   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1252 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1253   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1254 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1255    { (exit 1); exit 1; }; }
1256 fi
1257
1258 ac_ext=c
1259 ac_cpp='$CPP $CPPFLAGS'
1260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291           ac_config_headers="$ac_config_headers include/config.h"
1292
1293 ac_aux_dir=
1294 for ac_dir in tools $srcdir/tools; do
1295   if test -f $ac_dir/install-sh; then
1296     ac_aux_dir=$ac_dir
1297     ac_install_sh="$ac_aux_dir/install-sh -c"
1298     break
1299   elif test -f $ac_dir/install.sh; then
1300     ac_aux_dir=$ac_dir
1301     ac_install_sh="$ac_aux_dir/install.sh -c"
1302     break
1303   elif test -f $ac_dir/shtool; then
1304     ac_aux_dir=$ac_dir
1305     ac_install_sh="$ac_aux_dir/shtool install -c"
1306     break
1307   fi
1308 done
1309 if test -z "$ac_aux_dir"; then
1310   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1311 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1312    { (exit 1); exit 1; }; }
1313 fi
1314 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1315 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1316 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1317
1318
1319
1320 # Check whether --enable-win16 or --disable-win16 was given.
1321 if test "${enable_win16+set}" = set; then
1322   enableval="$enable_win16"
1323
1324 fi;
1325 # Check whether --enable-debug or --disable-debug was given.
1326 if test "${enable_debug+set}" = set; then
1327   enableval="$enable_debug"
1328
1329 fi;
1330 # Check whether --enable-trace or --disable-trace was given.
1331 if test "${enable_trace+set}" = set; then
1332   enableval="$enable_trace"
1333
1334 fi;
1335
1336
1337 # Check whether --with-opengl or --without-opengl was given.
1338 if test "${with_opengl+set}" = set; then
1339   withval="$with_opengl"
1340
1341 fi;
1342
1343 # Check whether --with-curses or --without-curses was given.
1344 if test "${with_curses+set}" = set; then
1345   withval="$with_curses"
1346
1347 fi;
1348
1349 # Check whether --with-nptl or --without-nptl was given.
1350 if test "${with_nptl+set}" = set; then
1351   withval="$with_nptl"
1352
1353 fi;
1354
1355 # Check whether --with-wine-tools or --without-wine-tools was given.
1356 if test "${with_wine_tools+set}" = set; then
1357   withval="$with_wine_tools"
1358
1359 fi;
1360
1361 WIN16_FILES="\$(WIN16_FILES)"
1362
1363 WIN16_INSTALL="\$(WIN16_INSTALL)"
1364
1365 if test "x$enable_win16" = "xno"
1366 then
1367   WIN16_FILES=""
1368   WIN16_INSTALL=""
1369 fi
1370 if test "x$enable_debug" = "xno"
1371 then
1372
1373 cat >>confdefs.h <<\_ACEOF
1374 #define NO_DEBUG_MSGS 1
1375 _ACEOF
1376
1377 fi
1378 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1379 then
1380
1381 cat >>confdefs.h <<\_ACEOF
1382 #define NO_TRACE_MSGS 1
1383 _ACEOF
1384
1385 fi
1386 if test "x$with_nptl" = "xyes"
1387 then
1388     MAIN_BINARY="wine-pthread"
1389
1390 else
1391     MAIN_BINARY="wine-kthread"
1392
1393 fi
1394
1395
1396 # Make sure we can run config.sub.
1397 $ac_config_sub sun4 >/dev/null 2>&1 ||
1398   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1399 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1400    { (exit 1); exit 1; }; }
1401
1402 echo "$as_me:$LINENO: checking build system type" >&5
1403 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1404 if test "${ac_cv_build+set}" = set; then
1405   echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407   ac_cv_build_alias=$build_alias
1408 test -z "$ac_cv_build_alias" &&
1409   ac_cv_build_alias=`$ac_config_guess`
1410 test -z "$ac_cv_build_alias" &&
1411   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1412 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1413    { (exit 1); exit 1; }; }
1414 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1415   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1417    { (exit 1); exit 1; }; }
1418
1419 fi
1420 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1421 echo "${ECHO_T}$ac_cv_build" >&6
1422 build=$ac_cv_build
1423 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426
1427
1428 echo "$as_me:$LINENO: checking host system type" >&5
1429 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1430 if test "${ac_cv_host+set}" = set; then
1431   echo $ECHO_N "(cached) $ECHO_C" >&6
1432 else
1433   ac_cv_host_alias=$host_alias
1434 test -z "$ac_cv_host_alias" &&
1435   ac_cv_host_alias=$ac_cv_build_alias
1436 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1437   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1439    { (exit 1); exit 1; }; }
1440
1441 fi
1442 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1443 echo "${ECHO_T}$ac_cv_host" >&6
1444 host=$ac_cv_host
1445 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1448
1449
1450 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1451 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1452 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1453 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1454   echo $ECHO_N "(cached) $ECHO_C" >&6
1455 else
1456   cat >conftest.make <<\_ACEOF
1457 all:
1458         @echo 'ac_maketemp="$(MAKE)"'
1459 _ACEOF
1460 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1461 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1462 if test -n "$ac_maketemp"; then
1463   eval ac_cv_prog_make_${ac_make}_set=yes
1464 else
1465   eval ac_cv_prog_make_${ac_make}_set=no
1466 fi
1467 rm -f conftest.make
1468 fi
1469 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1470   echo "$as_me:$LINENO: result: yes" >&5
1471 echo "${ECHO_T}yes" >&6
1472   SET_MAKE=
1473 else
1474   echo "$as_me:$LINENO: result: no" >&5
1475 echo "${ECHO_T}no" >&6
1476   SET_MAKE="MAKE=${MAKE-make}"
1477 fi
1478
1479 ac_ext=c
1480 ac_cpp='$CPP $CPPFLAGS'
1481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1484 if test -n "$ac_tool_prefix"; then
1485   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1486 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1487 echo "$as_me:$LINENO: checking for $ac_word" >&5
1488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1489 if test "${ac_cv_prog_CC+set}" = set; then
1490   echo $ECHO_N "(cached) $ECHO_C" >&6
1491 else
1492   if test -n "$CC"; then
1493   ac_cv_prog_CC="$CC" # Let the user override the test.
1494 else
1495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496 for as_dir in $PATH
1497 do
1498   IFS=$as_save_IFS
1499   test -z "$as_dir" && as_dir=.
1500   for ac_exec_ext in '' $ac_executable_extensions; do
1501   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1502     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1504     break 2
1505   fi
1506 done
1507 done
1508
1509 fi
1510 fi
1511 CC=$ac_cv_prog_CC
1512 if test -n "$CC"; then
1513   echo "$as_me:$LINENO: result: $CC" >&5
1514 echo "${ECHO_T}$CC" >&6
1515 else
1516   echo "$as_me:$LINENO: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1518 fi
1519
1520 fi
1521 if test -z "$ac_cv_prog_CC"; then
1522   ac_ct_CC=$CC
1523   # Extract the first word of "gcc", so it can be a program name with args.
1524 set dummy gcc; ac_word=$2
1525 echo "$as_me:$LINENO: checking for $ac_word" >&5
1526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1527 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1528   echo $ECHO_N "(cached) $ECHO_C" >&6
1529 else
1530   if test -n "$ac_ct_CC"; then
1531   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1532 else
1533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1534 for as_dir in $PATH
1535 do
1536   IFS=$as_save_IFS
1537   test -z "$as_dir" && as_dir=.
1538   for ac_exec_ext in '' $ac_executable_extensions; do
1539   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1540     ac_cv_prog_ac_ct_CC="gcc"
1541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542     break 2
1543   fi
1544 done
1545 done
1546
1547 fi
1548 fi
1549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1550 if test -n "$ac_ct_CC"; then
1551   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1552 echo "${ECHO_T}$ac_ct_CC" >&6
1553 else
1554   echo "$as_me:$LINENO: result: no" >&5
1555 echo "${ECHO_T}no" >&6
1556 fi
1557
1558   CC=$ac_ct_CC
1559 else
1560   CC="$ac_cv_prog_CC"
1561 fi
1562
1563 if test -z "$CC"; then
1564   if test -n "$ac_tool_prefix"; then
1565   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1566 set dummy ${ac_tool_prefix}cc; ac_word=$2
1567 echo "$as_me:$LINENO: checking for $ac_word" >&5
1568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569 if test "${ac_cv_prog_CC+set}" = set; then
1570   echo $ECHO_N "(cached) $ECHO_C" >&6
1571 else
1572   if test -n "$CC"; then
1573   ac_cv_prog_CC="$CC" # Let the user override the test.
1574 else
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 for as_dir in $PATH
1577 do
1578   IFS=$as_save_IFS
1579   test -z "$as_dir" && as_dir=.
1580   for ac_exec_ext in '' $ac_executable_extensions; do
1581   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582     ac_cv_prog_CC="${ac_tool_prefix}cc"
1583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584     break 2
1585   fi
1586 done
1587 done
1588
1589 fi
1590 fi
1591 CC=$ac_cv_prog_CC
1592 if test -n "$CC"; then
1593   echo "$as_me:$LINENO: result: $CC" >&5
1594 echo "${ECHO_T}$CC" >&6
1595 else
1596   echo "$as_me:$LINENO: result: no" >&5
1597 echo "${ECHO_T}no" >&6
1598 fi
1599
1600 fi
1601 if test -z "$ac_cv_prog_CC"; then
1602   ac_ct_CC=$CC
1603   # Extract the first word of "cc", so it can be a program name with args.
1604 set dummy cc; ac_word=$2
1605 echo "$as_me:$LINENO: checking for $ac_word" >&5
1606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1607 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1608   echo $ECHO_N "(cached) $ECHO_C" >&6
1609 else
1610   if test -n "$ac_ct_CC"; then
1611   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1612 else
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 for as_dir in $PATH
1615 do
1616   IFS=$as_save_IFS
1617   test -z "$as_dir" && as_dir=.
1618   for ac_exec_ext in '' $ac_executable_extensions; do
1619   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620     ac_cv_prog_ac_ct_CC="cc"
1621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622     break 2
1623   fi
1624 done
1625 done
1626
1627 fi
1628 fi
1629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1630 if test -n "$ac_ct_CC"; then
1631   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1632 echo "${ECHO_T}$ac_ct_CC" >&6
1633 else
1634   echo "$as_me:$LINENO: result: no" >&5
1635 echo "${ECHO_T}no" >&6
1636 fi
1637
1638   CC=$ac_ct_CC
1639 else
1640   CC="$ac_cv_prog_CC"
1641 fi
1642
1643 fi
1644 if test -z "$CC"; then
1645   # Extract the first word of "cc", so it can be a program name with args.
1646 set dummy cc; ac_word=$2
1647 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649 if test "${ac_cv_prog_CC+set}" = set; then
1650   echo $ECHO_N "(cached) $ECHO_C" >&6
1651 else
1652   if test -n "$CC"; then
1653   ac_cv_prog_CC="$CC" # Let the user override the test.
1654 else
1655   ac_prog_rejected=no
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 for as_dir in $PATH
1658 do
1659   IFS=$as_save_IFS
1660   test -z "$as_dir" && as_dir=.
1661   for ac_exec_ext in '' $ac_executable_extensions; do
1662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1664        ac_prog_rejected=yes
1665        continue
1666      fi
1667     ac_cv_prog_CC="cc"
1668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669     break 2
1670   fi
1671 done
1672 done
1673
1674 if test $ac_prog_rejected = yes; then
1675   # We found a bogon in the path, so make sure we never use it.
1676   set dummy $ac_cv_prog_CC
1677   shift
1678   if test $# != 0; then
1679     # We chose a different compiler from the bogus one.
1680     # However, it has the same basename, so the bogon will be chosen
1681     # first if we set CC to just the basename; use the full file name.
1682     shift
1683     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1684   fi
1685 fi
1686 fi
1687 fi
1688 CC=$ac_cv_prog_CC
1689 if test -n "$CC"; then
1690   echo "$as_me:$LINENO: result: $CC" >&5
1691 echo "${ECHO_T}$CC" >&6
1692 else
1693   echo "$as_me:$LINENO: result: no" >&5
1694 echo "${ECHO_T}no" >&6
1695 fi
1696
1697 fi
1698 if test -z "$CC"; then
1699   if test -n "$ac_tool_prefix"; then
1700   for ac_prog in cl
1701   do
1702     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1703 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1704 echo "$as_me:$LINENO: checking for $ac_word" >&5
1705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1706 if test "${ac_cv_prog_CC+set}" = set; then
1707   echo $ECHO_N "(cached) $ECHO_C" >&6
1708 else
1709   if test -n "$CC"; then
1710   ac_cv_prog_CC="$CC" # Let the user override the test.
1711 else
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 for as_dir in $PATH
1714 do
1715   IFS=$as_save_IFS
1716   test -z "$as_dir" && as_dir=.
1717   for ac_exec_ext in '' $ac_executable_extensions; do
1718   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1719     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721     break 2
1722   fi
1723 done
1724 done
1725
1726 fi
1727 fi
1728 CC=$ac_cv_prog_CC
1729 if test -n "$CC"; then
1730   echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1732 else
1733   echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1735 fi
1736
1737     test -n "$CC" && break
1738   done
1739 fi
1740 if test -z "$CC"; then
1741   ac_ct_CC=$CC
1742   for ac_prog in cl
1743 do
1744   # Extract the first word of "$ac_prog", so it can be a program name with args.
1745 set dummy $ac_prog; ac_word=$2
1746 echo "$as_me:$LINENO: checking for $ac_word" >&5
1747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1749   echo $ECHO_N "(cached) $ECHO_C" >&6
1750 else
1751   if test -n "$ac_ct_CC"; then
1752   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1753 else
1754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 for as_dir in $PATH
1756 do
1757   IFS=$as_save_IFS
1758   test -z "$as_dir" && as_dir=.
1759   for ac_exec_ext in '' $ac_executable_extensions; do
1760   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761     ac_cv_prog_ac_ct_CC="$ac_prog"
1762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763     break 2
1764   fi
1765 done
1766 done
1767
1768 fi
1769 fi
1770 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1771 if test -n "$ac_ct_CC"; then
1772   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1773 echo "${ECHO_T}$ac_ct_CC" >&6
1774 else
1775   echo "$as_me:$LINENO: result: no" >&5
1776 echo "${ECHO_T}no" >&6
1777 fi
1778
1779   test -n "$ac_ct_CC" && break
1780 done
1781
1782   CC=$ac_ct_CC
1783 fi
1784
1785 fi
1786
1787
1788 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1789 See \`config.log' for more details." >&5
1790 echo "$as_me: error: no acceptable C compiler found in \$PATH
1791 See \`config.log' for more details." >&2;}
1792    { (exit 1); exit 1; }; }
1793
1794 # Provide some information about the compiler.
1795 echo "$as_me:$LINENO:" \
1796      "checking for C compiler version" >&5
1797 ac_compiler=`set X $ac_compile; echo $2`
1798 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1799   (eval $ac_compiler --version </dev/null >&5) 2>&5
1800   ac_status=$?
1801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1802   (exit $ac_status); }
1803 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1804   (eval $ac_compiler -v </dev/null >&5) 2>&5
1805   ac_status=$?
1806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1807   (exit $ac_status); }
1808 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1809   (eval $ac_compiler -V </dev/null >&5) 2>&5
1810   ac_status=$?
1811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1812   (exit $ac_status); }
1813
1814 cat >conftest.$ac_ext <<_ACEOF
1815 #line $LINENO "configure"
1816 /* confdefs.h.  */
1817 _ACEOF
1818 cat confdefs.h >>conftest.$ac_ext
1819 cat >>conftest.$ac_ext <<_ACEOF
1820 /* end confdefs.h.  */
1821
1822 int
1823 main ()
1824 {
1825
1826   ;
1827   return 0;
1828 }
1829 _ACEOF
1830 ac_clean_files_save=$ac_clean_files
1831 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1832 # Try to create an executable without -o first, disregard a.out.
1833 # It will help us diagnose broken compilers, and finding out an intuition
1834 # of exeext.
1835 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1836 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1837 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1838 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1839   (eval $ac_link_default) 2>&5
1840   ac_status=$?
1841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842   (exit $ac_status); }; then
1843   # Find the output, starting from the most likely.  This scheme is
1844 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1845 # resort.
1846
1847 # Be careful to initialize this variable, since it used to be cached.
1848 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1849 ac_cv_exeext=
1850 # b.out is created by i960 compilers.
1851 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1852 do
1853   test -f "$ac_file" || continue
1854   case $ac_file in
1855     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1856         ;;
1857     conftest.$ac_ext )
1858         # This is the source file.
1859         ;;
1860     [ab].out )
1861         # We found the default executable, but exeext='' is most
1862         # certainly right.
1863         break;;
1864     *.* )
1865         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1866         # FIXME: I believe we export ac_cv_exeext for Libtool,
1867         # but it would be cool to find out if it's true.  Does anybody
1868         # maintain Libtool? --akim.
1869         export ac_cv_exeext
1870         break;;
1871     * )
1872         break;;
1873   esac
1874 done
1875 else
1876   echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1880 See \`config.log' for more details." >&5
1881 echo "$as_me: error: C compiler cannot create executables
1882 See \`config.log' for more details." >&2;}
1883    { (exit 77); exit 77; }; }
1884 fi
1885
1886 ac_exeext=$ac_cv_exeext
1887 echo "$as_me:$LINENO: result: $ac_file" >&5
1888 echo "${ECHO_T}$ac_file" >&6
1889
1890 # Check the compiler produces executables we can run.  If not, either
1891 # the compiler is broken, or we cross compile.
1892 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1893 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1894 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1895 # If not cross compiling, check that we can run a simple program.
1896 if test "$cross_compiling" != yes; then
1897   if { ac_try='./$ac_file'
1898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1899   (eval $ac_try) 2>&5
1900   ac_status=$?
1901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902   (exit $ac_status); }; }; then
1903     cross_compiling=no
1904   else
1905     if test "$cross_compiling" = maybe; then
1906         cross_compiling=yes
1907     else
1908         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1909 If you meant to cross compile, use \`--host'.
1910 See \`config.log' for more details." >&5
1911 echo "$as_me: error: cannot run C compiled programs.
1912 If you meant to cross compile, use \`--host'.
1913 See \`config.log' for more details." >&2;}
1914    { (exit 1); exit 1; }; }
1915     fi
1916   fi
1917 fi
1918 echo "$as_me:$LINENO: result: yes" >&5
1919 echo "${ECHO_T}yes" >&6
1920
1921 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1922 ac_clean_files=$ac_clean_files_save
1923 # Check the compiler produces executables we can run.  If not, either
1924 # the compiler is broken, or we cross compile.
1925 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1926 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1927 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1928 echo "${ECHO_T}$cross_compiling" >&6
1929
1930 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1931 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1933   (eval $ac_link) 2>&5
1934   ac_status=$?
1935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936   (exit $ac_status); }; then
1937   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1938 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1939 # work properly (i.e., refer to `conftest.exe'), while it won't with
1940 # `rm'.
1941 for ac_file in conftest.exe conftest conftest.*; do
1942   test -f "$ac_file" || continue
1943   case $ac_file in
1944     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1945     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1946           export ac_cv_exeext
1947           break;;
1948     * ) break;;
1949   esac
1950 done
1951 else
1952   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1955 See \`config.log' for more details." >&2;}
1956    { (exit 1); exit 1; }; }
1957 fi
1958
1959 rm -f conftest$ac_cv_exeext
1960 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1961 echo "${ECHO_T}$ac_cv_exeext" >&6
1962
1963 rm -f conftest.$ac_ext
1964 EXEEXT=$ac_cv_exeext
1965 ac_exeext=$EXEEXT
1966 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1967 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1968 if test "${ac_cv_objext+set}" = set; then
1969   echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971   cat >conftest.$ac_ext <<_ACEOF
1972 #line $LINENO "configure"
1973 /* confdefs.h.  */
1974 _ACEOF
1975 cat confdefs.h >>conftest.$ac_ext
1976 cat >>conftest.$ac_ext <<_ACEOF
1977 /* end confdefs.h.  */
1978
1979 int
1980 main ()
1981 {
1982
1983   ;
1984   return 0;
1985 }
1986 _ACEOF
1987 rm -f conftest.o conftest.obj
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989   (eval $ac_compile) 2>&5
1990   ac_status=$?
1991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992   (exit $ac_status); }; then
1993   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1994   case $ac_file in
1995     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1996     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1997        break;;
1998   esac
1999 done
2000 else
2001   echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2003
2004 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2005 See \`config.log' for more details." >&5
2006 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2007 See \`config.log' for more details." >&2;}
2008    { (exit 1); exit 1; }; }
2009 fi
2010
2011 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2012 fi
2013 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2014 echo "${ECHO_T}$ac_cv_objext" >&6
2015 OBJEXT=$ac_cv_objext
2016 ac_objext=$OBJEXT
2017 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2018 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2019 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2020   echo $ECHO_N "(cached) $ECHO_C" >&6
2021 else
2022   cat >conftest.$ac_ext <<_ACEOF
2023 #line $LINENO "configure"
2024 /* confdefs.h.  */
2025 _ACEOF
2026 cat confdefs.h >>conftest.$ac_ext
2027 cat >>conftest.$ac_ext <<_ACEOF
2028 /* end confdefs.h.  */
2029
2030 int
2031 main ()
2032 {
2033 #ifndef __GNUC__
2034        choke me
2035 #endif
2036
2037   ;
2038   return 0;
2039 }
2040 _ACEOF
2041 rm -f conftest.$ac_objext
2042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2043   (eval $ac_compile) 2>&5
2044   ac_status=$?
2045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046   (exit $ac_status); } &&
2047          { ac_try='test -s conftest.$ac_objext'
2048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2049   (eval $ac_try) 2>&5
2050   ac_status=$?
2051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052   (exit $ac_status); }; }; then
2053   ac_compiler_gnu=yes
2054 else
2055   echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2057
2058 ac_compiler_gnu=no
2059 fi
2060 rm -f conftest.$ac_objext conftest.$ac_ext
2061 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2062
2063 fi
2064 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2065 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2066 GCC=`test $ac_compiler_gnu = yes && echo yes`
2067 ac_test_CFLAGS=${CFLAGS+set}
2068 ac_save_CFLAGS=$CFLAGS
2069 CFLAGS="-g"
2070 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2071 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2072 if test "${ac_cv_prog_cc_g+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   cat >conftest.$ac_ext <<_ACEOF
2076 #line $LINENO "configure"
2077 /* confdefs.h.  */
2078 _ACEOF
2079 cat confdefs.h >>conftest.$ac_ext
2080 cat >>conftest.$ac_ext <<_ACEOF
2081 /* end confdefs.h.  */
2082
2083 int
2084 main ()
2085 {
2086
2087   ;
2088   return 0;
2089 }
2090 _ACEOF
2091 rm -f conftest.$ac_objext
2092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2093   (eval $ac_compile) 2>&5
2094   ac_status=$?
2095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096   (exit $ac_status); } &&
2097          { ac_try='test -s conftest.$ac_objext'
2098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099   (eval $ac_try) 2>&5
2100   ac_status=$?
2101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102   (exit $ac_status); }; }; then
2103   ac_cv_prog_cc_g=yes
2104 else
2105   echo "$as_me: failed program was:" >&5
2106 sed 's/^/| /' conftest.$ac_ext >&5
2107
2108 ac_cv_prog_cc_g=no
2109 fi
2110 rm -f conftest.$ac_objext conftest.$ac_ext
2111 fi
2112 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2113 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2114 if test "$ac_test_CFLAGS" = set; then
2115   CFLAGS=$ac_save_CFLAGS
2116 elif test $ac_cv_prog_cc_g = yes; then
2117   if test "$GCC" = yes; then
2118     CFLAGS="-g -O2"
2119   else
2120     CFLAGS="-g"
2121   fi
2122 else
2123   if test "$GCC" = yes; then
2124     CFLAGS="-O2"
2125   else
2126     CFLAGS=
2127   fi
2128 fi
2129 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2130 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2131 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2132   echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134   ac_cv_prog_cc_stdc=no
2135 ac_save_CC=$CC
2136 cat >conftest.$ac_ext <<_ACEOF
2137 #line $LINENO "configure"
2138 /* confdefs.h.  */
2139 _ACEOF
2140 cat confdefs.h >>conftest.$ac_ext
2141 cat >>conftest.$ac_ext <<_ACEOF
2142 /* end confdefs.h.  */
2143 #include <stdarg.h>
2144 #include <stdio.h>
2145 #include <sys/types.h>
2146 #include <sys/stat.h>
2147 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2148 struct buf { int x; };
2149 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2150 static char *e (p, i)
2151      char **p;
2152      int i;
2153 {
2154   return p[i];
2155 }
2156 static char *f (char * (*g) (char **, int), char **p, ...)
2157 {
2158   char *s;
2159   va_list v;
2160   va_start (v,p);
2161   s = g (p, va_arg (v,int));
2162   va_end (v);
2163   return s;
2164 }
2165 int test (int i, double x);
2166 struct s1 {int (*f) (int a);};
2167 struct s2 {int (*f) (double a);};
2168 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2169 int argc;
2170 char **argv;
2171 int
2172 main ()
2173 {
2174 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2175   ;
2176   return 0;
2177 }
2178 _ACEOF
2179 # Don't try gcc -ansi; that turns off useful extensions and
2180 # breaks some systems' header files.
2181 # AIX                   -qlanglvl=ansi
2182 # Ultrix and OSF/1      -std1
2183 # HP-UX 10.20 and later -Ae
2184 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2185 # SVR4                  -Xc -D__EXTENSIONS__
2186 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2187 do
2188   CC="$ac_save_CC $ac_arg"
2189   rm -f conftest.$ac_objext
2190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191   (eval $ac_compile) 2>&5
2192   ac_status=$?
2193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194   (exit $ac_status); } &&
2195          { ac_try='test -s conftest.$ac_objext'
2196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197   (eval $ac_try) 2>&5
2198   ac_status=$?
2199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200   (exit $ac_status); }; }; then
2201   ac_cv_prog_cc_stdc=$ac_arg
2202 break
2203 else
2204   echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2206
2207 fi
2208 rm -f conftest.$ac_objext
2209 done
2210 rm -f conftest.$ac_ext conftest.$ac_objext
2211 CC=$ac_save_CC
2212
2213 fi
2214
2215 case "x$ac_cv_prog_cc_stdc" in
2216   x|xno)
2217     echo "$as_me:$LINENO: result: none needed" >&5
2218 echo "${ECHO_T}none needed" >&6 ;;
2219   *)
2220     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2221 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2222     CC="$CC $ac_cv_prog_cc_stdc" ;;
2223 esac
2224
2225 # Some people use a C++ compiler to compile C.  Since we use `exit',
2226 # in C++ we need to declare it.  In case someone uses the same compiler
2227 # for both compiling C and C++ we need to have the C++ compiler decide
2228 # the declaration of exit, since it's the most demanding environment.
2229 cat >conftest.$ac_ext <<_ACEOF
2230 #ifndef __cplusplus
2231   choke me
2232 #endif
2233 _ACEOF
2234 rm -f conftest.$ac_objext
2235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2236   (eval $ac_compile) 2>&5
2237   ac_status=$?
2238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239   (exit $ac_status); } &&
2240          { ac_try='test -s conftest.$ac_objext'
2241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242   (eval $ac_try) 2>&5
2243   ac_status=$?
2244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245   (exit $ac_status); }; }; then
2246   for ac_declaration in \
2247    '' \
2248    'extern "C" void std::exit (int) throw (); using std::exit;' \
2249    'extern "C" void std::exit (int); using std::exit;' \
2250    'extern "C" void exit (int) throw ();' \
2251    'extern "C" void exit (int);' \
2252    'void exit (int);'
2253 do
2254   cat >conftest.$ac_ext <<_ACEOF
2255 #line $LINENO "configure"
2256 /* confdefs.h.  */
2257 _ACEOF
2258 cat confdefs.h >>conftest.$ac_ext
2259 cat >>conftest.$ac_ext <<_ACEOF
2260 /* end confdefs.h.  */
2261 $ac_declaration
2262 #include <stdlib.h>
2263 int
2264 main ()
2265 {
2266 exit (42);
2267   ;
2268   return 0;
2269 }
2270 _ACEOF
2271 rm -f conftest.$ac_objext
2272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273   (eval $ac_compile) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); } &&
2277          { ac_try='test -s conftest.$ac_objext'
2278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279   (eval $ac_try) 2>&5
2280   ac_status=$?
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); }; }; then
2283   :
2284 else
2285   echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2287
2288 continue
2289 fi
2290 rm -f conftest.$ac_objext conftest.$ac_ext
2291   cat >conftest.$ac_ext <<_ACEOF
2292 #line $LINENO "configure"
2293 /* confdefs.h.  */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h.  */
2298 $ac_declaration
2299 int
2300 main ()
2301 {
2302 exit (42);
2303   ;
2304   return 0;
2305 }
2306 _ACEOF
2307 rm -f conftest.$ac_objext
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309   (eval $ac_compile) 2>&5
2310   ac_status=$?
2311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312   (exit $ac_status); } &&
2313          { ac_try='test -s conftest.$ac_objext'
2314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315   (eval $ac_try) 2>&5
2316   ac_status=$?
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); }; }; then
2319   break
2320 else
2321   echo "$as_me: failed program was:" >&5
2322 sed 's/^/| /' conftest.$ac_ext >&5
2323
2324 fi
2325 rm -f conftest.$ac_objext conftest.$ac_ext
2326 done
2327 rm -f conftest*
2328 if test -n "$ac_declaration"; then
2329   echo '#ifdef __cplusplus' >>confdefs.h
2330   echo $ac_declaration      >>confdefs.h
2331   echo '#endif'             >>confdefs.h
2332 fi
2333
2334 else
2335   echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2337
2338 fi
2339 rm -f conftest.$ac_objext conftest.$ac_ext
2340 ac_ext=c
2341 ac_cpp='$CPP $CPPFLAGS'
2342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2345
2346 ac_ext=c
2347 ac_cpp='$CPP $CPPFLAGS'
2348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2352 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2353 # On Suns, sometimes $CPP names a directory.
2354 if test -n "$CPP" && test -d "$CPP"; then
2355   CPP=
2356 fi
2357 if test -z "$CPP"; then
2358   if test "${ac_cv_prog_CPP+set}" = set; then
2359   echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361       # Double quotes because CPP needs to be expanded
2362     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2363     do
2364       ac_preproc_ok=false
2365 for ac_c_preproc_warn_flag in '' yes
2366 do
2367   # Use a header file that comes with gcc, so configuring glibc
2368   # with a fresh cross-compiler works.
2369   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2370   # <limits.h> exists even on freestanding compilers.
2371   # On the NeXT, cc -E runs the code through the compiler's parser,
2372   # not just through cpp. "Syntax error" is here to catch this case.
2373   cat >conftest.$ac_ext <<_ACEOF
2374 #line $LINENO "configure"
2375 /* confdefs.h.  */
2376 _ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h.  */
2380 #ifdef __STDC__
2381 # include <limits.h>
2382 #else
2383 # include <assert.h>
2384 #endif
2385                      Syntax error
2386 _ACEOF
2387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2388   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2389   ac_status=$?
2390   grep -v '^ *+' conftest.er1 >conftest.err
2391   rm -f conftest.er1
2392   cat conftest.err >&5
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); } >/dev/null; then
2395   if test -s conftest.err; then
2396     ac_cpp_err=$ac_c_preproc_warn_flag
2397   else
2398     ac_cpp_err=
2399   fi
2400 else
2401   ac_cpp_err=yes
2402 fi
2403 if test -z "$ac_cpp_err"; then
2404   :
2405 else
2406   echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2408
2409   # Broken: fails on valid input.
2410 continue
2411 fi
2412 rm -f conftest.err conftest.$ac_ext
2413
2414   # OK, works on sane cases.  Now check whether non-existent headers
2415   # can be detected and how.
2416   cat >conftest.$ac_ext <<_ACEOF
2417 #line $LINENO "configure"
2418 /* confdefs.h.  */
2419 _ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h.  */
2423 #include <ac_nonexistent.h>
2424 _ACEOF
2425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2426   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2427   ac_status=$?
2428   grep -v '^ *+' conftest.er1 >conftest.err
2429   rm -f conftest.er1
2430   cat conftest.err >&5
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); } >/dev/null; then
2433   if test -s conftest.err; then
2434     ac_cpp_err=$ac_c_preproc_warn_flag
2435   else
2436     ac_cpp_err=
2437   fi
2438 else
2439   ac_cpp_err=yes
2440 fi
2441 if test -z "$ac_cpp_err"; then
2442   # Broken: success on invalid input.
2443 continue
2444 else
2445   echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2447
2448   # Passes both tests.
2449 ac_preproc_ok=:
2450 break
2451 fi
2452 rm -f conftest.err conftest.$ac_ext
2453
2454 done
2455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2456 rm -f conftest.err conftest.$ac_ext
2457 if $ac_preproc_ok; then
2458   break
2459 fi
2460
2461     done
2462     ac_cv_prog_CPP=$CPP
2463
2464 fi
2465   CPP=$ac_cv_prog_CPP
2466 else
2467   ac_cv_prog_CPP=$CPP
2468 fi
2469 echo "$as_me:$LINENO: result: $CPP" >&5
2470 echo "${ECHO_T}$CPP" >&6
2471 ac_preproc_ok=false
2472 for ac_c_preproc_warn_flag in '' yes
2473 do
2474   # Use a header file that comes with gcc, so configuring glibc
2475   # with a fresh cross-compiler works.
2476   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2477   # <limits.h> exists even on freestanding compilers.
2478   # On the NeXT, cc -E runs the code through the compiler's parser,
2479   # not just through cpp. "Syntax error" is here to catch this case.
2480   cat >conftest.$ac_ext <<_ACEOF
2481 #line $LINENO "configure"
2482 /* confdefs.h.  */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h.  */
2487 #ifdef __STDC__
2488 # include <limits.h>
2489 #else
2490 # include <assert.h>
2491 #endif
2492                      Syntax error
2493 _ACEOF
2494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2495   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2496   ac_status=$?
2497   grep -v '^ *+' conftest.er1 >conftest.err
2498   rm -f conftest.er1
2499   cat conftest.err >&5
2500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); } >/dev/null; then
2502   if test -s conftest.err; then
2503     ac_cpp_err=$ac_c_preproc_warn_flag
2504   else
2505     ac_cpp_err=
2506   fi
2507 else
2508   ac_cpp_err=yes
2509 fi
2510 if test -z "$ac_cpp_err"; then
2511   :
2512 else
2513   echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.$ac_ext >&5
2515
2516   # Broken: fails on valid input.
2517 continue
2518 fi
2519 rm -f conftest.err conftest.$ac_ext
2520
2521   # OK, works on sane cases.  Now check whether non-existent headers
2522   # can be detected and how.
2523   cat >conftest.$ac_ext <<_ACEOF
2524 #line $LINENO "configure"
2525 /* confdefs.h.  */
2526 _ACEOF
2527 cat confdefs.h >>conftest.$ac_ext
2528 cat >>conftest.$ac_ext <<_ACEOF
2529 /* end confdefs.h.  */
2530 #include <ac_nonexistent.h>
2531 _ACEOF
2532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2533   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2534   ac_status=$?
2535   grep -v '^ *+' conftest.er1 >conftest.err
2536   rm -f conftest.er1
2537   cat conftest.err >&5
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); } >/dev/null; then
2540   if test -s conftest.err; then
2541     ac_cpp_err=$ac_c_preproc_warn_flag
2542   else
2543     ac_cpp_err=
2544   fi
2545 else
2546   ac_cpp_err=yes
2547 fi
2548 if test -z "$ac_cpp_err"; then
2549   # Broken: success on invalid input.
2550 continue
2551 else
2552   echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2554
2555   # Passes both tests.
2556 ac_preproc_ok=:
2557 break
2558 fi
2559 rm -f conftest.err conftest.$ac_ext
2560
2561 done
2562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2563 rm -f conftest.err conftest.$ac_ext
2564 if $ac_preproc_ok; then
2565   :
2566 else
2567   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2570 See \`config.log' for more details." >&2;}
2571    { (exit 1); exit 1; }; }
2572 fi
2573
2574 ac_ext=c
2575 ac_cpp='$CPP $CPPFLAGS'
2576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2579
2580
2581 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2582 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2583 if test "${wine_cv_toolsdir+set}" = set; then
2584   echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586   if test -z "$with_wine_tools"; then
2587      if test "$cross_compiling" = "yes"; then
2588        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2589 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2590    { (exit 1); exit 1; }; }
2591      else
2592        wine_cv_toolsdir="\$(TOPOBJDIR)"
2593      fi
2594    elif test -d "$with_wine_tools/tools/winebuild"; then
2595      case $with_wine_tools in
2596        /*) wine_cv_toolsdir="$with_wine_tools" ;;
2597        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2598      esac
2599    else
2600      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2601 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2602    { (exit 1); exit 1; }; }
2603    fi
2604 fi
2605 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2606 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2607 TOOLSDIR=$wine_cv_toolsdir
2608
2609
2610
2611
2612 echo "$as_me:$LINENO: checking for X" >&5
2613 echo $ECHO_N "checking for X... $ECHO_C" >&6
2614
2615
2616 # Check whether --with-x or --without-x was given.
2617 if test "${with_x+set}" = set; then
2618   withval="$with_x"
2619
2620 fi;
2621 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2622 if test "x$with_x" = xno; then
2623   # The user explicitly disabled X.
2624   have_x=disabled
2625 else
2626   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2627     # Both variables are already set.
2628     have_x=yes
2629   else
2630     if test "${ac_cv_have_x+set}" = set; then
2631   echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633   # One or both of the vars are not set, and there is no cached value.
2634 ac_x_includes=no ac_x_libraries=no
2635 rm -fr conftest.dir
2636 if mkdir conftest.dir; then
2637   cd conftest.dir
2638   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2639   cat >Imakefile <<'_ACEOF'
2640 acfindx:
2641         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2642 _ACEOF
2643   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2644     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2645     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2646     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2647     for ac_extension in a so sl; do
2648       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2649          test -f $ac_im_libdir/libX11.$ac_extension; then
2650         ac_im_usrlibdir=$ac_im_libdir; break
2651       fi
2652     done
2653     # Screen out bogus values from the imake configuration.  They are
2654     # bogus both because they are the default anyway, and because
2655     # using them would break gcc on systems where it needs fixed includes.
2656     case $ac_im_incroot in
2657         /usr/include) ;;
2658         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2659     esac
2660     case $ac_im_usrlibdir in
2661         /usr/lib | /lib) ;;
2662         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2663     esac
2664   fi
2665   cd ..
2666   rm -fr conftest.dir
2667 fi
2668
2669 # Standard set of common directories for X headers.
2670 # Check X11 before X11Rn because it is often a symlink to the current release.
2671 ac_x_header_dirs='
2672 /usr/X11/include
2673 /usr/X11R6/include
2674 /usr/X11R5/include
2675 /usr/X11R4/include
2676
2677 /usr/include/X11
2678 /usr/include/X11R6
2679 /usr/include/X11R5
2680 /usr/include/X11R4
2681
2682 /usr/local/X11/include
2683 /usr/local/X11R6/include
2684 /usr/local/X11R5/include
2685 /usr/local/X11R4/include
2686
2687 /usr/local/include/X11
2688 /usr/local/include/X11R6
2689 /usr/local/include/X11R5
2690 /usr/local/include/X11R4
2691
2692 /usr/X386/include
2693 /usr/x386/include
2694 /usr/XFree86/include/X11
2695
2696 /usr/include
2697 /usr/local/include
2698 /usr/unsupported/include
2699 /usr/athena/include
2700 /usr/local/x11r5/include
2701 /usr/lpp/Xamples/include
2702
2703 /usr/openwin/include
2704 /usr/openwin/share/include'
2705
2706 if test "$ac_x_includes" = no; then
2707   # Guess where to find include files, by looking for Intrinsic.h.
2708   # First, try using that file with no special directory specified.
2709   cat >conftest.$ac_ext <<_ACEOF
2710 #line $LINENO "configure"
2711 /* confdefs.h.  */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h.  */
2716 #include <X11/Intrinsic.h>
2717 _ACEOF
2718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2719   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2720   ac_status=$?
2721   grep -v '^ *+' conftest.er1 >conftest.err
2722   rm -f conftest.er1
2723   cat conftest.err >&5
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); } >/dev/null; then
2726   if test -s conftest.err; then
2727     ac_cpp_err=$ac_c_preproc_warn_flag
2728   else
2729     ac_cpp_err=
2730   fi
2731 else
2732   ac_cpp_err=yes
2733 fi
2734 if test -z "$ac_cpp_err"; then
2735   # We can compile using X headers with no special include directory.
2736 ac_x_includes=
2737 else
2738   echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2740
2741   for ac_dir in $ac_x_header_dirs; do
2742   if test -r "$ac_dir/X11/Intrinsic.h"; then
2743     ac_x_includes=$ac_dir
2744     break
2745   fi
2746 done
2747 fi
2748 rm -f conftest.err conftest.$ac_ext
2749 fi # $ac_x_includes = no
2750
2751 if test "$ac_x_libraries" = no; then
2752   # Check for the libraries.
2753   # See if we find them without any special options.
2754   # Don't add to $LIBS permanently.
2755   ac_save_LIBS=$LIBS
2756   LIBS="-lXt $LIBS"
2757   cat >conftest.$ac_ext <<_ACEOF
2758 #line $LINENO "configure"
2759 /* confdefs.h.  */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h.  */
2764 #include <X11/Intrinsic.h>
2765 int
2766 main ()
2767 {
2768 XtMalloc (0)
2769   ;
2770   return 0;
2771 }
2772 _ACEOF
2773 rm -f conftest.$ac_objext conftest$ac_exeext
2774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2775   (eval $ac_link) 2>&5
2776   ac_status=$?
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); } &&
2779          { ac_try='test -s conftest$ac_exeext'
2780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781   (eval $ac_try) 2>&5
2782   ac_status=$?
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); }; }; then
2785   LIBS=$ac_save_LIBS
2786 # We can link X programs with no special library path.
2787 ac_x_libraries=
2788 else
2789   echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2791
2792 LIBS=$ac_save_LIBS
2793 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2794 do
2795   # Don't even attempt the hair of trying to link an X program!
2796   for ac_extension in a so sl; do
2797     if test -r $ac_dir/libXt.$ac_extension; then
2798       ac_x_libraries=$ac_dir
2799       break 2
2800     fi
2801   done
2802 done
2803 fi
2804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2805 fi # $ac_x_libraries = no
2806
2807 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2808   # Didn't find X anywhere.  Cache the known absence of X.
2809   ac_cv_have_x="have_x=no"
2810 else
2811   # Record where we found X for the cache.
2812   ac_cv_have_x="have_x=yes \
2813                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2814 fi
2815 fi
2816
2817   fi
2818   eval "$ac_cv_have_x"
2819 fi # $with_x != no
2820
2821 if test "$have_x" != yes; then
2822   echo "$as_me:$LINENO: result: $have_x" >&5
2823 echo "${ECHO_T}$have_x" >&6
2824   no_x=yes
2825 else
2826   # If each of the values was on the command line, it overrides each guess.
2827   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2828   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2829   # Update the cache value to reflect the command line values.
2830   ac_cv_have_x="have_x=yes \
2831                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2832   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2833 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2834 fi
2835
2836 if test "$no_x" = yes; then
2837   # Not all programs may use this symbol, but it does not hurt to define it.
2838
2839 cat >>confdefs.h <<\_ACEOF
2840 #define X_DISPLAY_MISSING 1
2841 _ACEOF
2842
2843   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2844 else
2845   if test -n "$x_includes"; then
2846     X_CFLAGS="$X_CFLAGS -I$x_includes"
2847   fi
2848
2849   # It would also be nice to do this for all -L options, not just this one.
2850   if test -n "$x_libraries"; then
2851     X_LIBS="$X_LIBS -L$x_libraries"
2852     # For Solaris; some versions of Sun CC require a space after -R and
2853     # others require no space.  Words are not sufficient . . . .
2854     case `(uname -sr) 2>/dev/null` in
2855     "SunOS 5"*)
2856       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2857 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2858       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2859       cat >conftest.$ac_ext <<_ACEOF
2860 #line $LINENO "configure"
2861 /* confdefs.h.  */
2862 _ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h.  */
2866
2867 int
2868 main ()
2869 {
2870
2871   ;
2872   return 0;
2873 }
2874 _ACEOF
2875 rm -f conftest.$ac_objext conftest$ac_exeext
2876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2877   (eval $ac_link) 2>&5
2878   ac_status=$?
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); } &&
2881          { ac_try='test -s conftest$ac_exeext'
2882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883   (eval $ac_try) 2>&5
2884   ac_status=$?
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); }; }; then
2887   ac_R_nospace=yes
2888 else
2889   echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2891
2892 ac_R_nospace=no
2893 fi
2894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2895       if test $ac_R_nospace = yes; then
2896         echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2898         X_LIBS="$X_LIBS -R$x_libraries"
2899       else
2900         LIBS="$ac_xsave_LIBS -R $x_libraries"
2901         cat >conftest.$ac_ext <<_ACEOF
2902 #line $LINENO "configure"
2903 /* confdefs.h.  */
2904 _ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h.  */
2908
2909 int
2910 main ()
2911 {
2912
2913   ;
2914   return 0;
2915 }
2916 _ACEOF
2917 rm -f conftest.$ac_objext conftest$ac_exeext
2918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2919   (eval $ac_link) 2>&5
2920   ac_status=$?
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); } &&
2923          { ac_try='test -s conftest$ac_exeext'
2924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925   (eval $ac_try) 2>&5
2926   ac_status=$?
2927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928   (exit $ac_status); }; }; then
2929   ac_R_space=yes
2930 else
2931   echo "$as_me: failed program was:" >&5
2932 sed 's/^/| /' conftest.$ac_ext >&5
2933
2934 ac_R_space=no
2935 fi
2936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2937         if test $ac_R_space = yes; then
2938           echo "$as_me:$LINENO: result: yes" >&5
2939 echo "${ECHO_T}yes" >&6
2940           X_LIBS="$X_LIBS -R $x_libraries"
2941         else
2942           echo "$as_me:$LINENO: result: neither works" >&5
2943 echo "${ECHO_T}neither works" >&6
2944         fi
2945       fi
2946       LIBS=$ac_xsave_LIBS
2947     esac
2948   fi
2949
2950   # Check for system-dependent libraries X programs must link with.
2951   # Do this before checking for the system-independent R6 libraries
2952   # (-lICE), since we may need -lsocket or whatever for X linking.
2953
2954   if test "$ISC" = yes; then
2955     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2956   else
2957     # Martyn Johnson says this is needed for Ultrix, if the X
2958     # libraries were built with DECnet support.  And Karl Berry says
2959     # the Alpha needs dnet_stub (dnet does not exist).
2960     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2961     cat >conftest.$ac_ext <<_ACEOF
2962 #line $LINENO "configure"
2963 /* confdefs.h.  */
2964 _ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h.  */
2968
2969 /* Override any gcc2 internal prototype to avoid an error.  */
2970 #ifdef __cplusplus
2971 extern "C"
2972 #endif
2973 /* We use char because int might match the return type of a gcc2
2974    builtin and then its argument prototype would still apply.  */
2975 char XOpenDisplay ();
2976 int
2977 main ()
2978 {
2979 XOpenDisplay ();
2980   ;
2981   return 0;
2982 }
2983 _ACEOF
2984 rm -f conftest.$ac_objext conftest$ac_exeext
2985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2986   (eval $ac_link) 2>&5
2987   ac_status=$?
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); } &&
2990          { ac_try='test -s conftest$ac_exeext'
2991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992   (eval $ac_try) 2>&5
2993   ac_status=$?
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); }; }; then
2996   :
2997 else
2998   echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3000
3001 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3002 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3003 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3004   echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006   ac_check_lib_save_LIBS=$LIBS
3007 LIBS="-ldnet  $LIBS"
3008 cat >conftest.$ac_ext <<_ACEOF
3009 #line $LINENO "configure"
3010 /* confdefs.h.  */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h.  */
3015
3016 /* Override any gcc2 internal prototype to avoid an error.  */
3017 #ifdef __cplusplus
3018 extern "C"
3019 #endif
3020 /* We use char because int might match the return type of a gcc2
3021    builtin and then its argument prototype would still apply.  */
3022 char dnet_ntoa ();
3023 int
3024 main ()
3025 {
3026 dnet_ntoa ();
3027   ;
3028   return 0;
3029 }
3030 _ACEOF
3031 rm -f conftest.$ac_objext conftest$ac_exeext
3032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3033   (eval $ac_link) 2>&5
3034   ac_status=$?
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); } &&
3037          { ac_try='test -s conftest$ac_exeext'
3038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039   (eval $ac_try) 2>&5
3040   ac_status=$?
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); }; }; then
3043   ac_cv_lib_dnet_dnet_ntoa=yes
3044 else
3045   echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048 ac_cv_lib_dnet_dnet_ntoa=no
3049 fi
3050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3051 LIBS=$ac_check_lib_save_LIBS
3052 fi
3053 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3054 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3055 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3056   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3057 fi
3058
3059     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3060       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3061 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3062 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3063   echo $ECHO_N "(cached) $ECHO_C" >&6
3064 else
3065   ac_check_lib_save_LIBS=$LIBS
3066 LIBS="-ldnet_stub  $LIBS"
3067 cat >conftest.$ac_ext <<_ACEOF
3068 #line $LINENO "configure"
3069 /* confdefs.h.  */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h.  */
3074
3075 /* Override any gcc2 internal prototype to avoid an error.  */
3076 #ifdef __cplusplus
3077 extern "C"
3078 #endif
3079 /* We use char because int might match the return type of a gcc2
3080    builtin and then its argument prototype would still apply.  */
3081 char dnet_ntoa ();
3082 int
3083 main ()
3084 {
3085 dnet_ntoa ();
3086   ;
3087   return 0;
3088 }
3089 _ACEOF
3090 rm -f conftest.$ac_objext conftest$ac_exeext
3091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3092   (eval $ac_link) 2>&5
3093   ac_status=$?
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); } &&
3096          { ac_try='test -s conftest$ac_exeext'
3097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098   (eval $ac_try) 2>&5
3099   ac_status=$?
3100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101   (exit $ac_status); }; }; then
3102   ac_cv_lib_dnet_stub_dnet_ntoa=yes
3103 else
3104   echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 ac_cv_lib_dnet_stub_dnet_ntoa=no
3108 fi
3109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3110 LIBS=$ac_check_lib_save_LIBS
3111 fi
3112 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3113 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3114 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3115   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3116 fi
3117
3118     fi
3119 fi
3120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3121     LIBS="$ac_xsave_LIBS"
3122
3123     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3124     # to get the SysV transport functions.
3125     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3126     # needs -lnsl.
3127     # The nsl library prevents programs from opening the X display
3128     # on Irix 5.2, according to T.E. Dickey.
3129     # The functions gethostbyname, getservbyname, and inet_addr are
3130     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3131     echo "$as_me:$LINENO: checking for gethostbyname" >&5
3132 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3133 if test "${ac_cv_func_gethostbyname+set}" = set; then
3134   echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136   cat >conftest.$ac_ext <<_ACEOF
3137 #line $LINENO "configure"
3138 /* confdefs.h.  */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h.  */
3143 /* System header to define __stub macros and hopefully few prototypes,
3144     which can conflict with char gethostbyname (); below.
3145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3146     <limits.h> exists even on freestanding compilers.  */
3147 #ifdef __STDC__
3148 # include <limits.h>
3149 #else
3150 # include <assert.h>
3151 #endif
3152 /* Override any gcc2 internal prototype to avoid an error.  */
3153 #ifdef __cplusplus
3154 extern "C"
3155 {
3156 #endif
3157 /* We use char because int might match the return type of a gcc2
3158    builtin and then its argument prototype would still apply.  */
3159 char gethostbyname ();
3160 /* The GNU C library defines this for functions which it implements
3161     to always fail with ENOSYS.  Some functions are actually named
3162     something starting with __ and the normal name is an alias.  */
3163 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3164 choke me
3165 #else
3166 char (*f) () = gethostbyname;
3167 #endif
3168 #ifdef __cplusplus
3169 }
3170 #endif
3171
3172 int
3173 main ()
3174 {
3175 return f != gethostbyname;
3176   ;
3177   return 0;
3178 }
3179 _ACEOF
3180 rm -f conftest.$ac_objext conftest$ac_exeext
3181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3182   (eval $ac_link) 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); } &&
3186          { ac_try='test -s conftest$ac_exeext'
3187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188   (eval $ac_try) 2>&5
3189   ac_status=$?
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); }; }; then
3192   ac_cv_func_gethostbyname=yes
3193 else
3194   echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197 ac_cv_func_gethostbyname=no
3198 fi
3199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3200 fi
3201 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3202 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3203
3204     if test $ac_cv_func_gethostbyname = no; then
3205       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3206 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3207 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3208   echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210   ac_check_lib_save_LIBS=$LIBS
3211 LIBS="-lnsl  $LIBS"
3212 cat >conftest.$ac_ext <<_ACEOF
3213 #line $LINENO "configure"
3214 /* confdefs.h.  */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h.  */
3219
3220 /* Override any gcc2 internal prototype to avoid an error.  */
3221 #ifdef __cplusplus
3222 extern "C"
3223 #endif
3224 /* We use char because int might match the return type of a gcc2
3225    builtin and then its argument prototype would still apply.  */
3226 char gethostbyname ();
3227 int
3228 main ()
3229 {
3230 gethostbyname ();
3231   ;
3232   return 0;
3233 }
3234 _ACEOF
3235 rm -f conftest.$ac_objext conftest$ac_exeext
3236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3237   (eval $ac_link) 2>&5
3238   ac_status=$?
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); } &&
3241          { ac_try='test -s conftest$ac_exeext'
3242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243   (eval $ac_try) 2>&5
3244   ac_status=$?
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); }; }; then
3247   ac_cv_lib_nsl_gethostbyname=yes
3248 else
3249   echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3251
3252 ac_cv_lib_nsl_gethostbyname=no
3253 fi
3254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3255 LIBS=$ac_check_lib_save_LIBS
3256 fi
3257 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3258 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3259 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3260   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3261 fi
3262
3263       if test $ac_cv_lib_nsl_gethostbyname = no; then
3264         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3265 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3266 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3267   echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269   ac_check_lib_save_LIBS=$LIBS
3270 LIBS="-lbsd  $LIBS"
3271 cat >conftest.$ac_ext <<_ACEOF
3272 #line $LINENO "configure"
3273 /* confdefs.h.  */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h.  */
3278
3279 /* Override any gcc2 internal prototype to avoid an error.  */
3280 #ifdef __cplusplus
3281 extern "C"
3282 #endif
3283 /* We use char because int might match the return type of a gcc2
3284    builtin and then its argument prototype would still apply.  */
3285 char gethostbyname ();
3286 int
3287 main ()
3288 {
3289 gethostbyname ();
3290   ;
3291   return 0;
3292 }
3293 _ACEOF
3294 rm -f conftest.$ac_objext conftest$ac_exeext
3295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3296   (eval $ac_link) 2>&5
3297   ac_status=$?
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); } &&
3300          { ac_try='test -s conftest$ac_exeext'
3301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302   (eval $ac_try) 2>&5
3303   ac_status=$?
3304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305   (exit $ac_status); }; }; then
3306   ac_cv_lib_bsd_gethostbyname=yes
3307 else
3308   echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311 ac_cv_lib_bsd_gethostbyname=no
3312 fi
3313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3314 LIBS=$ac_check_lib_save_LIBS
3315 fi
3316 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3317 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3318 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3319   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3320 fi
3321
3322       fi
3323     fi
3324
3325     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3326     # socket/setsockopt and other routines are undefined under SCO ODT
3327     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3328     # on later versions), says Simon Leinen: it contains gethostby*
3329     # variants that don't use the name server (or something).  -lsocket
3330     # must be given before -lnsl if both are needed.  We assume that
3331     # if connect needs -lnsl, so does gethostbyname.
3332     echo "$as_me:$LINENO: checking for connect" >&5
3333 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3334 if test "${ac_cv_func_connect+set}" = set; then
3335   echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337   cat >conftest.$ac_ext <<_ACEOF
3338 #line $LINENO "configure"
3339 /* confdefs.h.  */
3340 _ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h.  */
3344 /* System header to define __stub macros and hopefully few prototypes,
3345     which can conflict with char connect (); below.
3346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3347     <limits.h> exists even on freestanding compilers.  */
3348 #ifdef __STDC__
3349 # include <limits.h>
3350 #else
3351 # include <assert.h>
3352 #endif
3353 /* Override any gcc2 internal prototype to avoid an error.  */
3354 #ifdef __cplusplus
3355 extern "C"
3356 {
3357 #endif
3358 /* We use char because int might match the return type of a gcc2
3359    builtin and then its argument prototype would still apply.  */
3360 char connect ();
3361 /* The GNU C library defines this for functions which it implements
3362     to always fail with ENOSYS.  Some functions are actually named
3363     something starting with __ and the normal name is an alias.  */
3364 #if defined (__stub_connect) || defined (__stub___connect)
3365 choke me
3366 #else
3367 char (*f) () = connect;
3368 #endif
3369 #ifdef __cplusplus
3370 }
3371 #endif
3372
3373 int
3374 main ()
3375 {
3376 return f != connect;
3377   ;
3378   return 0;
3379 }
3380 _ACEOF
3381 rm -f conftest.$ac_objext conftest$ac_exeext
3382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3383   (eval $ac_link) 2>&5
3384   ac_status=$?
3385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386   (exit $ac_status); } &&
3387          { ac_try='test -s conftest$ac_exeext'
3388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389   (eval $ac_try) 2>&5
3390   ac_status=$?
3391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392   (exit $ac_status); }; }; then
3393   ac_cv_func_connect=yes
3394 else
3395   echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3397
3398 ac_cv_func_connect=no
3399 fi
3400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3401 fi
3402 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3403 echo "${ECHO_T}$ac_cv_func_connect" >&6
3404
3405     if test $ac_cv_func_connect = no; then
3406       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3407 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3408 if test "${ac_cv_lib_socket_connect+set}" = set; then
3409   echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411   ac_check_lib_save_LIBS=$LIBS
3412 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3413 cat >conftest.$ac_ext <<_ACEOF
3414 #line $LINENO "configure"
3415 /* confdefs.h.  */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h.  */
3420
3421 /* Override any gcc2 internal prototype to avoid an error.  */
3422 #ifdef __cplusplus
3423 extern "C"
3424 #endif
3425 /* We use char because int might match the return type of a gcc2
3426    builtin and then its argument prototype would still apply.  */
3427 char connect ();
3428 int
3429 main ()
3430 {
3431 connect ();
3432   ;
3433   return 0;
3434 }
3435 _ACEOF
3436 rm -f conftest.$ac_objext conftest$ac_exeext
3437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3438   (eval $ac_link) 2>&5
3439   ac_status=$?
3440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); } &&
3442          { ac_try='test -s conftest$ac_exeext'
3443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444   (eval $ac_try) 2>&5
3445   ac_status=$?
3446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447   (exit $ac_status); }; }; then
3448   ac_cv_lib_socket_connect=yes
3449 else
3450   echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3452
3453 ac_cv_lib_socket_connect=no
3454 fi
3455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3456 LIBS=$ac_check_lib_save_LIBS
3457 fi
3458 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3459 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3460 if test $ac_cv_lib_socket_connect = yes; then
3461   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3462 fi
3463
3464     fi
3465
3466     # Guillermo Gomez says -lposix is necessary on A/UX.
3467     echo "$as_me:$LINENO: checking for remove" >&5
3468 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3469 if test "${ac_cv_func_remove+set}" = set; then
3470   echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472   cat >conftest.$ac_ext <<_ACEOF
3473 #line $LINENO "configure"
3474 /* confdefs.h.  */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h.  */
3479 /* System header to define __stub macros and hopefully few prototypes,
3480     which can conflict with char remove (); below.
3481     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3482     <limits.h> exists even on freestanding compilers.  */
3483 #ifdef __STDC__
3484 # include <limits.h>
3485 #else
3486 # include <assert.h>
3487 #endif
3488 /* Override any gcc2 internal prototype to avoid an error.  */
3489 #ifdef __cplusplus
3490 extern "C"
3491 {
3492 #endif
3493 /* We use char because int might match the return type of a gcc2
3494    builtin and then its argument prototype would still apply.  */
3495 char remove ();
3496 /* The GNU C library defines this for functions which it implements
3497     to always fail with ENOSYS.  Some functions are actually named
3498     something starting with __ and the normal name is an alias.  */
3499 #if defined (__stub_remove) || defined (__stub___remove)
3500 choke me
3501 #else
3502 char (*f) () = remove;
3503 #endif
3504 #ifdef __cplusplus
3505 }
3506 #endif
3507
3508 int
3509 main ()
3510 {
3511 return f != remove;
3512   ;
3513   return 0;
3514 }
3515 _ACEOF
3516 rm -f conftest.$ac_objext conftest$ac_exeext
3517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3518   (eval $ac_link) 2>&5
3519   ac_status=$?
3520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521   (exit $ac_status); } &&
3522          { ac_try='test -s conftest$ac_exeext'
3523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524   (eval $ac_try) 2>&5
3525   ac_status=$?
3526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527   (exit $ac_status); }; }; then
3528   ac_cv_func_remove=yes
3529 else
3530   echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3532
3533 ac_cv_func_remove=no
3534 fi
3535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3536 fi
3537 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3538 echo "${ECHO_T}$ac_cv_func_remove" >&6
3539
3540     if test $ac_cv_func_remove = no; then
3541       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3542 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3543 if test "${ac_cv_lib_posix_remove+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   ac_check_lib_save_LIBS=$LIBS
3547 LIBS="-lposix  $LIBS"
3548 cat >conftest.$ac_ext <<_ACEOF
3549 #line $LINENO "configure"
3550 /* confdefs.h.  */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h.  */
3555
3556 /* Override any gcc2 internal prototype to avoid an error.  */
3557 #ifdef __cplusplus
3558 extern "C"
3559 #endif
3560 /* We use char because int might match the return type of a gcc2
3561    builtin and then its argument prototype would still apply.  */
3562 char remove ();
3563 int
3564 main ()
3565 {
3566 remove ();
3567   ;
3568   return 0;
3569 }
3570 _ACEOF
3571 rm -f conftest.$ac_objext conftest$ac_exeext
3572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3573   (eval $ac_link) 2>&5
3574   ac_status=$?
3575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576   (exit $ac_status); } &&
3577          { ac_try='test -s conftest$ac_exeext'
3578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579   (eval $ac_try) 2>&5
3580   ac_status=$?
3581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582   (exit $ac_status); }; }; then
3583   ac_cv_lib_posix_remove=yes
3584 else
3585   echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588 ac_cv_lib_posix_remove=no
3589 fi
3590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3591 LIBS=$ac_check_lib_save_LIBS
3592 fi
3593 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3594 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3595 if test $ac_cv_lib_posix_remove = yes; then
3596   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3597 fi
3598
3599     fi
3600
3601     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3602     echo "$as_me:$LINENO: checking for shmat" >&5
3603 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3604 if test "${ac_cv_func_shmat+set}" = set; then
3605   echo $ECHO_N "(cached) $ECHO_C" >&6
3606 else
3607   cat >conftest.$ac_ext <<_ACEOF
3608 #line $LINENO "configure"
3609 /* confdefs.h.  */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h.  */
3614 /* System header to define __stub macros and hopefully few prototypes,
3615     which can conflict with char shmat (); below.
3616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3617     <limits.h> exists even on freestanding compilers.  */
3618 #ifdef __STDC__
3619 # include <limits.h>
3620 #else
3621 # include <assert.h>
3622 #endif
3623 /* Override any gcc2 internal prototype to avoid an error.  */
3624 #ifdef __cplusplus
3625 extern "C"
3626 {
3627 #endif
3628 /* We use char because int might match the return type of a gcc2
3629    builtin and then its argument prototype would still apply.  */
3630 char shmat ();
3631 /* The GNU C library defines this for functions which it implements
3632     to always fail with ENOSYS.  Some functions are actually named
3633     something starting with __ and the normal name is an alias.  */
3634 #if defined (__stub_shmat) || defined (__stub___shmat)
3635 choke me
3636 #else
3637 char (*f) () = shmat;
3638 #endif
3639 #ifdef __cplusplus
3640 }
3641 #endif
3642
3643 int
3644 main ()
3645 {
3646 return f != shmat;
3647   ;
3648   return 0;
3649 }
3650 _ACEOF
3651 rm -f conftest.$ac_objext conftest$ac_exeext
3652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3653   (eval $ac_link) 2>&5
3654   ac_status=$?
3655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656   (exit $ac_status); } &&
3657          { ac_try='test -s conftest$ac_exeext'
3658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659   (eval $ac_try) 2>&5
3660   ac_status=$?
3661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662   (exit $ac_status); }; }; then
3663   ac_cv_func_shmat=yes
3664 else
3665   echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3667
3668 ac_cv_func_shmat=no
3669 fi
3670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3671 fi
3672 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3673 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3674
3675     if test $ac_cv_func_shmat = no; then
3676       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3677 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3678 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3679   echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681   ac_check_lib_save_LIBS=$LIBS
3682 LIBS="-lipc  $LIBS"
3683 cat >conftest.$ac_ext <<_ACEOF
3684 #line $LINENO "configure"
3685 /* confdefs.h.  */
3686 _ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h.  */
3690
3691 /* Override any gcc2 internal prototype to avoid an error.  */
3692 #ifdef __cplusplus
3693 extern "C"
3694 #endif
3695 /* We use char because int might match the return type of a gcc2
3696    builtin and then its argument prototype would still apply.  */
3697 char shmat ();
3698 int
3699 main ()
3700 {
3701 shmat ();
3702   ;
3703   return 0;
3704 }
3705 _ACEOF
3706 rm -f conftest.$ac_objext conftest$ac_exeext
3707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3708   (eval $ac_link) 2>&5
3709   ac_status=$?
3710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711   (exit $ac_status); } &&
3712          { ac_try='test -s conftest$ac_exeext'
3713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714   (eval $ac_try) 2>&5
3715   ac_status=$?
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); }; }; then
3718   ac_cv_lib_ipc_shmat=yes
3719 else
3720   echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3722
3723 ac_cv_lib_ipc_shmat=no
3724 fi
3725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3726 LIBS=$ac_check_lib_save_LIBS
3727 fi
3728 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3729 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3730 if test $ac_cv_lib_ipc_shmat = yes; then
3731   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3732 fi
3733
3734     fi
3735   fi
3736
3737   # Check for libraries that X11R6 Xt/Xaw programs need.
3738   ac_save_LDFLAGS=$LDFLAGS
3739   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3740   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3741   # check for ICE first), but we must link in the order -lSM -lICE or
3742   # we get undefined symbols.  So assume we have SM if we have ICE.
3743   # These have to be linked with before -lX11, unlike the other
3744   # libraries we check for below, so use a different variable.
3745   # John Interrante, Karl Berry
3746   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3747 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3748 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3749   echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751   ac_check_lib_save_LIBS=$LIBS
3752 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3753 cat >conftest.$ac_ext <<_ACEOF
3754 #line $LINENO "configure"
3755 /* confdefs.h.  */
3756 _ACEOF
3757 cat confdefs.h >>conftest.$ac_ext
3758 cat >>conftest.$ac_ext <<_ACEOF
3759 /* end confdefs.h.  */
3760
3761 /* Override any gcc2 internal prototype to avoid an error.  */
3762 #ifdef __cplusplus
3763 extern "C"
3764 #endif
3765 /* We use char because int might match the return type of a gcc2
3766    builtin and then its argument prototype would still apply.  */
3767 char IceConnectionNumber ();
3768 int
3769 main ()
3770 {
3771 IceConnectionNumber ();
3772   ;
3773   return 0;
3774 }
3775 _ACEOF
3776 rm -f conftest.$ac_objext conftest$ac_exeext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3778   (eval $ac_link) 2>&5
3779   ac_status=$?
3780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781   (exit $ac_status); } &&
3782          { ac_try='test -s conftest$ac_exeext'
3783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784   (eval $ac_try) 2>&5
3785   ac_status=$?
3786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787   (exit $ac_status); }; }; then
3788   ac_cv_lib_ICE_IceConnectionNumber=yes
3789 else
3790   echo "$as_me: failed program was:" >&5
3791 sed 's/^/| /' conftest.$ac_ext >&5
3792
3793 ac_cv_lib_ICE_IceConnectionNumber=no
3794 fi
3795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3796 LIBS=$ac_check_lib_save_LIBS
3797 fi
3798 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3799 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3800 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3801   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3802 fi
3803
3804   LDFLAGS=$ac_save_LDFLAGS
3805
3806 fi
3807
3808 for ac_prog in 'bison -y' byacc
3809 do
3810   # Extract the first word of "$ac_prog", so it can be a program name with args.
3811 set dummy $ac_prog; ac_word=$2
3812 echo "$as_me:$LINENO: checking for $ac_word" >&5
3813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3814 if test "${ac_cv_prog_YACC+set}" = set; then
3815   echo $ECHO_N "(cached) $ECHO_C" >&6
3816 else
3817   if test -n "$YACC"; then
3818   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823   IFS=$as_save_IFS
3824   test -z "$as_dir" && as_dir=.
3825   for ac_exec_ext in '' $ac_executable_extensions; do
3826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827     ac_cv_prog_YACC="$ac_prog"
3828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3829     break 2
3830   fi
3831 done
3832 done
3833
3834 fi
3835 fi
3836 YACC=$ac_cv_prog_YACC
3837 if test -n "$YACC"; then
3838   echo "$as_me:$LINENO: result: $YACC" >&5
3839 echo "${ECHO_T}$YACC" >&6
3840 else
3841   echo "$as_me:$LINENO: result: no" >&5
3842 echo "${ECHO_T}no" >&6
3843 fi
3844
3845   test -n "$YACC" && break
3846 done
3847 test -n "$YACC" || YACC="yacc"
3848
3849 for ac_prog in flex lex
3850 do
3851   # Extract the first word of "$ac_prog", so it can be a program name with args.
3852 set dummy $ac_prog; ac_word=$2
3853 echo "$as_me:$LINENO: checking for $ac_word" >&5
3854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3855 if test "${ac_cv_prog_LEX+set}" = set; then
3856   echo $ECHO_N "(cached) $ECHO_C" >&6
3857 else
3858   if test -n "$LEX"; then
3859   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3860 else
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864   IFS=$as_save_IFS
3865   test -z "$as_dir" && as_dir=.
3866   for ac_exec_ext in '' $ac_executable_extensions; do
3867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868     ac_cv_prog_LEX="$ac_prog"
3869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870     break 2
3871   fi
3872 done
3873 done
3874
3875 fi
3876 fi
3877 LEX=$ac_cv_prog_LEX
3878 if test -n "$LEX"; then
3879   echo "$as_me:$LINENO: result: $LEX" >&5
3880 echo "${ECHO_T}$LEX" >&6
3881 else
3882   echo "$as_me:$LINENO: result: no" >&5
3883 echo "${ECHO_T}no" >&6
3884 fi
3885
3886   test -n "$LEX" && break
3887 done
3888 test -n "$LEX" || LEX=":"
3889
3890 if test -z "$LEXLIB"
3891 then
3892   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3893 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3894 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3895   echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897   ac_check_lib_save_LIBS=$LIBS
3898 LIBS="-lfl  $LIBS"
3899 cat >conftest.$ac_ext <<_ACEOF
3900 #line $LINENO "configure"
3901 /* confdefs.h.  */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h.  */
3906
3907 /* Override any gcc2 internal prototype to avoid an error.  */
3908 #ifdef __cplusplus
3909 extern "C"
3910 #endif
3911 /* We use char because int might match the return type of a gcc2
3912    builtin and then its argument prototype would still apply.  */
3913 char yywrap ();
3914 int
3915 main ()
3916 {
3917 yywrap ();
3918   ;
3919   return 0;
3920 }
3921 _ACEOF
3922 rm -f conftest.$ac_objext conftest$ac_exeext
3923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3924   (eval $ac_link) 2>&5
3925   ac_status=$?
3926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927   (exit $ac_status); } &&
3928          { ac_try='test -s conftest$ac_exeext'
3929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930   (eval $ac_try) 2>&5
3931   ac_status=$?
3932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933   (exit $ac_status); }; }; then
3934   ac_cv_lib_fl_yywrap=yes
3935 else
3936   echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3938
3939 ac_cv_lib_fl_yywrap=no
3940 fi
3941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3942 LIBS=$ac_check_lib_save_LIBS
3943 fi
3944 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3945 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3946 if test $ac_cv_lib_fl_yywrap = yes; then
3947   LEXLIB="-lfl"
3948 else
3949   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3950 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3951 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3952   echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954   ac_check_lib_save_LIBS=$LIBS
3955 LIBS="-ll  $LIBS"
3956 cat >conftest.$ac_ext <<_ACEOF
3957 #line $LINENO "configure"
3958 /* confdefs.h.  */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h.  */
3963
3964 /* Override any gcc2 internal prototype to avoid an error.  */
3965 #ifdef __cplusplus
3966 extern "C"
3967 #endif
3968 /* We use char because int might match the return type of a gcc2
3969    builtin and then its argument prototype would still apply.  */
3970 char yywrap ();
3971 int
3972 main ()
3973 {
3974 yywrap ();
3975   ;
3976   return 0;
3977 }
3978 _ACEOF
3979 rm -f conftest.$ac_objext conftest$ac_exeext
3980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3981   (eval $ac_link) 2>&5
3982   ac_status=$?
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); } &&
3985          { ac_try='test -s conftest$ac_exeext'
3986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987   (eval $ac_try) 2>&5
3988   ac_status=$?
3989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990   (exit $ac_status); }; }; then
3991   ac_cv_lib_l_yywrap=yes
3992 else
3993   echo "$as_me: failed program was:" >&5
3994 sed 's/^/| /' conftest.$ac_ext >&5
3995
3996 ac_cv_lib_l_yywrap=no
3997 fi
3998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3999 LIBS=$ac_check_lib_save_LIBS
4000 fi
4001 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4002 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4003 if test $ac_cv_lib_l_yywrap = yes; then
4004   LEXLIB="-ll"
4005 fi
4006
4007 fi
4008
4009 fi
4010
4011 if test "x$LEX" != "x:"; then
4012   echo "$as_me:$LINENO: checking lex output file root" >&5
4013 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4014 if test "${ac_cv_prog_lex_root+set}" = set; then
4015   echo $ECHO_N "(cached) $ECHO_C" >&6
4016 else
4017   # The minimal lex program is just a single line: %%.  But some broken lexes
4018 # (Solaris, I think it was) want two %% lines, so accommodate them.
4019 cat >conftest.l <<_ACEOF
4020 %%
4021 %%
4022 _ACEOF
4023 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4024   (eval $LEX conftest.l) 2>&5
4025   ac_status=$?
4026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027   (exit $ac_status); }
4028 if test -f lex.yy.c; then
4029   ac_cv_prog_lex_root=lex.yy
4030 elif test -f lexyy.c; then
4031   ac_cv_prog_lex_root=lexyy
4032 else
4033   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4034 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4035    { (exit 1); exit 1; }; }
4036 fi
4037 fi
4038 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4039 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4040 rm -f conftest.l
4041 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4042
4043 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4044 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4045 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4046   echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048   # POSIX says lex can declare yytext either as a pointer or an array; the
4049 # default is implementation-dependent. Figure out which it is, since
4050 # not all implementations provide the %pointer and %array declarations.
4051 ac_cv_prog_lex_yytext_pointer=no
4052 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4053 ac_save_LIBS=$LIBS
4054 LIBS="$LIBS $LEXLIB"
4055 cat >conftest.$ac_ext <<_ACEOF
4056 `cat $LEX_OUTPUT_ROOT.c`
4057 _ACEOF
4058 rm -f conftest.$ac_objext conftest$ac_exeext
4059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4060   (eval $ac_link) 2>&5
4061   ac_status=$?
4062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063   (exit $ac_status); } &&
4064          { ac_try='test -s conftest$ac_exeext'
4065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066   (eval $ac_try) 2>&5
4067   ac_status=$?
4068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069   (exit $ac_status); }; }; then
4070   ac_cv_prog_lex_yytext_pointer=yes
4071 else
4072   echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4074
4075 fi
4076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4077 LIBS=$ac_save_LIBS
4078 rm -f "${LEX_OUTPUT_ROOT}.c"
4079
4080 fi
4081 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4082 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4083 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4084
4085 cat >>confdefs.h <<\_ACEOF
4086 #define YYTEXT_POINTER 1
4087 _ACEOF
4088
4089 fi
4090
4091 fi
4092
4093 for ac_prog in $YACC bison yacc
4094 do
4095   # Extract the first word of "$ac_prog", so it can be a program name with args.
4096 set dummy $ac_prog; ac_word=$2
4097 echo "$as_me:$LINENO: checking for $ac_word" >&5
4098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4099 if test "${ac_cv_prog_XYACC+set}" = set; then
4100   echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102   if test -n "$XYACC"; then
4103   ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4107 do
4108   IFS=$as_save_IFS
4109   test -z "$as_dir" && as_dir=.
4110   for ac_exec_ext in '' $ac_executable_extensions; do
4111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4112     ac_cv_prog_XYACC="$ac_prog"
4113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4114     break 2
4115   fi
4116 done
4117 done
4118
4119 fi
4120 fi
4121 XYACC=$ac_cv_prog_XYACC
4122 if test -n "$XYACC"; then
4123   echo "$as_me:$LINENO: result: $XYACC" >&5
4124 echo "${ECHO_T}$XYACC" >&6
4125 else
4126   echo "$as_me:$LINENO: result: no" >&5
4127 echo "${ECHO_T}no" >&6
4128 fi
4129
4130   test -n "$XYACC" && break
4131 done
4132 test -n "$XYACC" || XYACC="none"
4133
4134 if test "$XYACC" = "none"
4135 then
4136   { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
4137 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4138    { (exit 1); exit 1; }; }
4139 fi
4140 for ac_prog in $LEX flex lex
4141 do
4142   # Extract the first word of "$ac_prog", so it can be a program name with args.
4143 set dummy $ac_prog; ac_word=$2
4144 echo "$as_me:$LINENO: checking for $ac_word" >&5
4145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4146 if test "${ac_cv_prog_XLEX+set}" = set; then
4147   echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149   if test -n "$XLEX"; then
4150   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4151 else
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH
4154 do
4155   IFS=$as_save_IFS
4156   test -z "$as_dir" && as_dir=.
4157   for ac_exec_ext in '' $ac_executable_extensions; do
4158   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4159     ac_cv_prog_XLEX="$ac_prog"
4160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4161     break 2
4162   fi
4163 done
4164 done
4165
4166 fi
4167 fi
4168 XLEX=$ac_cv_prog_XLEX
4169 if test -n "$XLEX"; then
4170   echo "$as_me:$LINENO: result: $XLEX" >&5
4171 echo "${ECHO_T}$XLEX" >&6
4172 else
4173   echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6
4175 fi
4176
4177   test -n "$XLEX" && break
4178 done
4179 test -n "$XLEX" || XLEX="none"
4180
4181 if test "$XLEX" = "none"
4182 then
4183   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4184 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4185    { (exit 1); exit 1; }; }
4186 fi
4187
4188 if test -n "$ac_tool_prefix"; then
4189   for ac_prog in gas as
4190   do
4191     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4193 echo "$as_me:$LINENO: checking for $ac_word" >&5
4194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4195 if test "${ac_cv_prog_AS+set}" = set; then
4196   echo $ECHO_N "(cached) $ECHO_C" >&6
4197 else
4198   if test -n "$AS"; then
4199   ac_cv_prog_AS="$AS" # Let the user override the test.
4200 else
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4203 do
4204   IFS=$as_save_IFS
4205   test -z "$as_dir" && as_dir=.
4206   for ac_exec_ext in '' $ac_executable_extensions; do
4207   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4208     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4210     break 2
4211   fi
4212 done
4213 done
4214
4215 fi
4216 fi
4217 AS=$ac_cv_prog_AS
4218 if test -n "$AS"; then
4219   echo "$as_me:$LINENO: result: $AS" >&5
4220 echo "${ECHO_T}$AS" >&6
4221 else
4222   echo "$as_me:$LINENO: result: no" >&5
4223 echo "${ECHO_T}no" >&6
4224 fi
4225
4226     test -n "$AS" && break
4227   done
4228 fi
4229 if test -z "$AS"; then
4230   ac_ct_AS=$AS
4231   for ac_prog in gas as
4232 do
4233   # Extract the first word of "$ac_prog", so it can be a program name with args.
4234 set dummy $ac_prog; ac_word=$2
4235 echo "$as_me:$LINENO: checking for $ac_word" >&5
4236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4237 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4238   echo $ECHO_N "(cached) $ECHO_C" >&6
4239 else
4240   if test -n "$ac_ct_AS"; then
4241   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4242 else
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246   IFS=$as_save_IFS
4247   test -z "$as_dir" && as_dir=.
4248   for ac_exec_ext in '' $ac_executable_extensions; do
4249   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4250     ac_cv_prog_ac_ct_AS="$ac_prog"
4251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4252     break 2
4253   fi
4254 done
4255 done
4256
4257 fi
4258 fi
4259 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4260 if test -n "$ac_ct_AS"; then
4261   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4262 echo "${ECHO_T}$ac_ct_AS" >&6
4263 else
4264   echo "$as_me:$LINENO: result: no" >&5
4265 echo "${ECHO_T}no" >&6
4266 fi
4267
4268   test -n "$ac_ct_AS" && break
4269 done
4270 test -n "$ac_ct_AS" || ac_ct_AS="as"
4271
4272   AS=$ac_ct_AS
4273 fi
4274
4275 if test -n "$ac_tool_prefix"; then
4276   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4277 set dummy ${ac_tool_prefix}ld; ac_word=$2
4278 echo "$as_me:$LINENO: checking for $ac_word" >&5
4279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4280 if test "${ac_cv_prog_LD+set}" = set; then
4281   echo $ECHO_N "(cached) $ECHO_C" >&6
4282 else
4283   if test -n "$LD"; then
4284   ac_cv_prog_LD="$LD" # Let the user override the test.
4285 else
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH
4288 do
4289   IFS=$as_save_IFS
4290   test -z "$as_dir" && as_dir=.
4291   for ac_exec_ext in '' $ac_executable_extensions; do
4292   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4293     ac_cv_prog_LD="${ac_tool_prefix}ld"
4294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4295     break 2
4296   fi
4297 done
4298 done
4299
4300 fi
4301 fi
4302 LD=$ac_cv_prog_LD
4303 if test -n "$LD"; then
4304   echo "$as_me:$LINENO: result: $LD" >&5
4305 echo "${ECHO_T}$LD" >&6
4306 else
4307   echo "$as_me:$LINENO: result: no" >&5
4308 echo "${ECHO_T}no" >&6
4309 fi
4310
4311 fi
4312 if test -z "$ac_cv_prog_LD"; then
4313   ac_ct_LD=$LD
4314   # Extract the first word of "ld", so it can be a program name with args.
4315 set dummy ld; ac_word=$2
4316 echo "$as_me:$LINENO: checking for $ac_word" >&5
4317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4318 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4319   echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321   if test -n "$ac_ct_LD"; then
4322   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4326 do
4327   IFS=$as_save_IFS
4328   test -z "$as_dir" && as_dir=.
4329   for ac_exec_ext in '' $ac_executable_extensions; do
4330   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331     ac_cv_prog_ac_ct_LD="ld"
4332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4333     break 2
4334   fi
4335 done
4336 done
4337
4338   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4339 fi
4340 fi
4341 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4342 if test -n "$ac_ct_LD"; then
4343   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4344 echo "${ECHO_T}$ac_ct_LD" >&6
4345 else
4346   echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6
4348 fi
4349
4350   LD=$ac_ct_LD
4351 else
4352   LD="$ac_cv_prog_LD"
4353 fi
4354
4355 if test -n "$ac_tool_prefix"; then
4356   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4357 set dummy ${ac_tool_prefix}ar; ac_word=$2
4358 echo "$as_me:$LINENO: checking for $ac_word" >&5
4359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4360 if test "${ac_cv_prog_AR+set}" = set; then
4361   echo $ECHO_N "(cached) $ECHO_C" >&6
4362 else
4363   if test -n "$AR"; then
4364   ac_cv_prog_AR="$AR" # Let the user override the test.
4365 else
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 for as_dir in $PATH
4368 do
4369   IFS=$as_save_IFS
4370   test -z "$as_dir" && as_dir=.
4371   for ac_exec_ext in '' $ac_executable_extensions; do
4372   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4373     ac_cv_prog_AR="${ac_tool_prefix}ar"
4374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4375     break 2
4376   fi
4377 done
4378 done
4379
4380 fi
4381 fi
4382 AR=$ac_cv_prog_AR
4383 if test -n "$AR"; then
4384   echo "$as_me:$LINENO: result: $AR" >&5
4385 echo "${ECHO_T}$AR" >&6
4386 else
4387   echo "$as_me:$LINENO: result: no" >&5
4388 echo "${ECHO_T}no" >&6
4389 fi
4390
4391 fi
4392 if test -z "$ac_cv_prog_AR"; then
4393   ac_ct_AR=$AR
4394   # Extract the first word of "ar", so it can be a program name with args.
4395 set dummy ar; ac_word=$2
4396 echo "$as_me:$LINENO: checking for $ac_word" >&5
4397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4398 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4399   echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401   if test -n "$ac_ct_AR"; then
4402   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4406 do
4407   IFS=$as_save_IFS
4408   test -z "$as_dir" && as_dir=.
4409   for ac_exec_ext in '' $ac_executable_extensions; do
4410   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4411     ac_cv_prog_ac_ct_AR="ar"
4412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4413     break 2
4414   fi
4415 done
4416 done
4417
4418   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4419 fi
4420 fi
4421 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4422 if test -n "$ac_ct_AR"; then
4423   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4424 echo "${ECHO_T}$ac_ct_AR" >&6
4425 else
4426   echo "$as_me:$LINENO: result: no" >&5
4427 echo "${ECHO_T}no" >&6
4428 fi
4429
4430   AR=$ac_ct_AR
4431 else
4432   AR="$ac_cv_prog_AR"
4433 fi
4434
4435 if test -n "$ac_tool_prefix"; then
4436   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4437 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4438 echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4440 if test "${ac_cv_prog_RANLIB+set}" = set; then
4441   echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443   if test -n "$RANLIB"; then
4444   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449   IFS=$as_save_IFS
4450   test -z "$as_dir" && as_dir=.
4451   for ac_exec_ext in '' $ac_executable_extensions; do
4452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4453     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455     break 2
4456   fi
4457 done
4458 done
4459
4460 fi
4461 fi
4462 RANLIB=$ac_cv_prog_RANLIB
4463 if test -n "$RANLIB"; then
4464   echo "$as_me:$LINENO: result: $RANLIB" >&5
4465 echo "${ECHO_T}$RANLIB" >&6
4466 else
4467   echo "$as_me:$LINENO: result: no" >&5
4468 echo "${ECHO_T}no" >&6
4469 fi
4470
4471 fi
4472 if test -z "$ac_cv_prog_RANLIB"; then
4473   ac_ct_RANLIB=$RANLIB
4474   # Extract the first word of "ranlib", so it can be a program name with args.
4475 set dummy ranlib; ac_word=$2
4476 echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4478 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4479   echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481   if test -n "$ac_ct_RANLIB"; then
4482   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4483 else
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4486 do
4487   IFS=$as_save_IFS
4488   test -z "$as_dir" && as_dir=.
4489   for ac_exec_ext in '' $ac_executable_extensions; do
4490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491     ac_cv_prog_ac_ct_RANLIB="ranlib"
4492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493     break 2
4494   fi
4495 done
4496 done
4497
4498   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4499 fi
4500 fi
4501 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4502 if test -n "$ac_ct_RANLIB"; then
4503   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4504 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4505 else
4506   echo "$as_me:$LINENO: result: no" >&5
4507 echo "${ECHO_T}no" >&6
4508 fi
4509
4510   RANLIB=$ac_ct_RANLIB
4511 else
4512   RANLIB="$ac_cv_prog_RANLIB"
4513 fi
4514
4515 if test -n "$ac_tool_prefix"; then
4516   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4517 set dummy ${ac_tool_prefix}strip; ac_word=$2
4518 echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4520 if test "${ac_cv_prog_STRIP+set}" = set; then
4521   echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523   if test -n "$STRIP"; then
4524   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4525 else
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4528 do
4529   IFS=$as_save_IFS
4530   test -z "$as_dir" && as_dir=.
4531   for ac_exec_ext in '' $ac_executable_extensions; do
4532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4533     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535     break 2
4536   fi
4537 done
4538 done
4539
4540 fi
4541 fi
4542 STRIP=$ac_cv_prog_STRIP
4543 if test -n "$STRIP"; then
4544   echo "$as_me:$LINENO: result: $STRIP" >&5
4545 echo "${ECHO_T}$STRIP" >&6
4546 else
4547   echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6
4549 fi
4550
4551 fi
4552 if test -z "$ac_cv_prog_STRIP"; then
4553   ac_ct_STRIP=$STRIP
4554   # Extract the first word of "strip", so it can be a program name with args.
4555 set dummy strip; 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_ac_ct_STRIP+set}" = set; then
4559   echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561   if test -n "$ac_ct_STRIP"; then
4562   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_ac_ct_STRIP="strip"
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   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4579 fi
4580 fi
4581 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4582 if test -n "$ac_ct_STRIP"; then
4583   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4584 echo "${ECHO_T}$ac_ct_STRIP" >&6
4585 else
4586   echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6
4588 fi
4589
4590   STRIP=$ac_ct_STRIP
4591 else
4592   STRIP="$ac_cv_prog_STRIP"
4593 fi
4594
4595 if test -n "$ac_tool_prefix"; then
4596   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4597 set dummy ${ac_tool_prefix}windres; ac_word=$2
4598 echo "$as_me:$LINENO: checking for $ac_word" >&5
4599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4600 if test "${ac_cv_prog_WINDRES+set}" = set; then
4601   echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603   if test -n "$WINDRES"; then
4604   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4608 do
4609   IFS=$as_save_IFS
4610   test -z "$as_dir" && as_dir=.
4611   for ac_exec_ext in '' $ac_executable_extensions; do
4612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4613     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4615     break 2
4616   fi
4617 done
4618 done
4619
4620 fi
4621 fi
4622 WINDRES=$ac_cv_prog_WINDRES
4623 if test -n "$WINDRES"; then
4624   echo "$as_me:$LINENO: result: $WINDRES" >&5
4625 echo "${ECHO_T}$WINDRES" >&6
4626 else
4627   echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6
4629 fi
4630
4631 fi
4632 if test -z "$ac_cv_prog_WINDRES"; then
4633   ac_ct_WINDRES=$WINDRES
4634   # Extract the first word of "windres", so it can be a program name with args.
4635 set dummy windres; ac_word=$2
4636 echo "$as_me:$LINENO: checking for $ac_word" >&5
4637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4638 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4639   echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641   if test -n "$ac_ct_WINDRES"; then
4642   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4643 else
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4646 do
4647   IFS=$as_save_IFS
4648   test -z "$as_dir" && as_dir=.
4649   for ac_exec_ext in '' $ac_executable_extensions; do
4650   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651     ac_cv_prog_ac_ct_WINDRES="windres"
4652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4653     break 2
4654   fi
4655 done
4656 done
4657
4658   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4659 fi
4660 fi
4661 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4662 if test -n "$ac_ct_WINDRES"; then
4663   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4664 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4665 else
4666   echo "$as_me:$LINENO: result: no" >&5
4667 echo "${ECHO_T}no" >&6
4668 fi
4669
4670   WINDRES=$ac_ct_WINDRES
4671 else
4672   WINDRES="$ac_cv_prog_WINDRES"
4673 fi
4674
4675 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4676 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4677 LN_S=$as_ln_s
4678 if test "$LN_S" = "ln -s"; then
4679   echo "$as_me:$LINENO: result: yes" >&5
4680 echo "${ECHO_T}yes" >&6
4681 else
4682   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4683 echo "${ECHO_T}no, using $LN_S" >&6
4684 fi
4685
4686 echo "$as_me:$LINENO: checking whether ln works" >&5
4687 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4688 rm -f conf$$ conf$$.file
4689 echo >conf$$.file
4690 if ln conf$$.file conf$$ 2>/dev/null; then
4691   LN=ln
4692
4693   echo "$as_me:$LINENO: result: yes" >&5
4694 echo "${ECHO_T}yes" >&6
4695 else
4696   LN="cp -p"
4697
4698   echo "$as_me:$LINENO: result: no, using $LN" >&5
4699 echo "${ECHO_T}no, using $LN" >&6
4700 fi
4701 rm -f conf$$ conf$$.file
4702 # Extract the first word of "ldconfig", so it can be a program name with args.
4703 set dummy ldconfig; ac_word=$2
4704 echo "$as_me:$LINENO: checking for $ac_word" >&5
4705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4706 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4707   echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709   case $LDCONFIG in
4710   [\\/]* | ?:[\\/]*)
4711   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4712   ;;
4713   *)
4714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in /sbin /usr/sbin $PATH
4716 do
4717   IFS=$as_save_IFS
4718   test -z "$as_dir" && as_dir=.
4719   for ac_exec_ext in '' $ac_executable_extensions; do
4720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723     break 2
4724   fi
4725 done
4726 done
4727
4728   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4729   ;;
4730 esac
4731 fi
4732 LDCONFIG=$ac_cv_path_LDCONFIG
4733
4734 if test -n "$LDCONFIG"; then
4735   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4736 echo "${ECHO_T}$LDCONFIG" >&6
4737 else
4738   echo "$as_me:$LINENO: result: no" >&5
4739 echo "${ECHO_T}no" >&6
4740 fi
4741
4742 # Find a good install program.  We prefer a C program (faster),
4743 # so one script is as good as another.  But avoid the broken or
4744 # incompatible versions:
4745 # SysV /etc/install, /usr/sbin/install
4746 # SunOS /usr/etc/install
4747 # IRIX /sbin/install
4748 # AIX /bin/install
4749 # AmigaOS /C/install, which installs bootblocks on floppy discs
4750 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4751 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4752 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4753 # ./install, which can be erroneously created by make from ./install.sh.
4754 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4755 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4756 if test -z "$INSTALL"; then
4757 if test "${ac_cv_path_install+set}" = set; then
4758   echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763   IFS=$as_save_IFS
4764   test -z "$as_dir" && as_dir=.
4765   # Account for people who put trailing slashes in PATH elements.
4766 case $as_dir/ in
4767   ./ | .// | /cC/* | \
4768   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4769   /usr/ucb/* ) ;;
4770   *)
4771     # OSF1 and SCO ODT 3.0 have their own names for install.
4772     # Don't use installbsd from OSF since it installs stuff as root
4773     # by default.
4774     for ac_prog in ginstall scoinst install; do
4775       for ac_exec_ext in '' $ac_executable_extensions; do
4776         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4777           if test $ac_prog = install &&
4778             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4779             # AIX install.  It has an incompatible calling convention.
4780             :
4781           elif test $ac_prog = install &&
4782             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4783             # program-specific install script used by HP pwplus--don't use.
4784             :
4785           else
4786             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4787             break 3
4788           fi
4789         fi
4790       done
4791     done
4792     ;;
4793 esac
4794 done
4795
4796
4797 fi
4798   if test "${ac_cv_path_install+set}" = set; then
4799     INSTALL=$ac_cv_path_install
4800   else
4801     # As a last resort, use the slow shell script.  We don't cache a
4802     # path for INSTALL within a source directory, because that will
4803     # break other packages using the cache if that directory is
4804     # removed, or if the path is relative.
4805     INSTALL=$ac_install_sh
4806   fi
4807 fi
4808 echo "$as_me:$LINENO: result: $INSTALL" >&5
4809 echo "${ECHO_T}$INSTALL" >&6
4810
4811 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4812 # It thinks the first close brace ends the variable substitution.
4813 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4814
4815 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4816
4817 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4818
4819 case "$INSTALL" in
4820   [\\/$]* | ?:[\\/]* ) ;;
4821   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4822 esac
4823
4824 for ac_prog in lclint lint
4825 do
4826   # Extract the first word of "$ac_prog", so it can be a program name with args.
4827 set dummy $ac_prog; ac_word=$2
4828 echo "$as_me:$LINENO: checking for $ac_word" >&5
4829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4830 if test "${ac_cv_prog_LINT+set}" = set; then
4831   echo $ECHO_N "(cached) $ECHO_C" >&6
4832 else
4833   if test -n "$LINT"; then
4834   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4838 do
4839   IFS=$as_save_IFS
4840   test -z "$as_dir" && as_dir=.
4841   for ac_exec_ext in '' $ac_executable_extensions; do
4842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4843     ac_cv_prog_LINT="$ac_prog"
4844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4845     break 2
4846   fi
4847 done
4848 done
4849
4850 fi
4851 fi
4852 LINT=$ac_cv_prog_LINT
4853 if test -n "$LINT"; then
4854   echo "$as_me:$LINENO: result: $LINT" >&5
4855 echo "${ECHO_T}$LINT" >&6
4856 else
4857   echo "$as_me:$LINENO: result: no" >&5
4858 echo "${ECHO_T}no" >&6
4859 fi
4860
4861   test -n "$LINT" && break
4862 done
4863
4864 if test "$LINT" = "lint"
4865 then
4866   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4867   fi
4868
4869
4870
4871 for ac_prog in docbook2html db2html
4872 do
4873   # Extract the first word of "$ac_prog", so it can be a program name with args.
4874 set dummy $ac_prog; ac_word=$2
4875 echo "$as_me:$LINENO: checking for $ac_word" >&5
4876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4877 if test "${ac_cv_prog_DB2HTML+set}" = set; then
4878   echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880   if test -n "$DB2HTML"; then
4881   ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4882 else
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 for as_dir in $PATH
4885 do
4886   IFS=$as_save_IFS
4887   test -z "$as_dir" && as_dir=.
4888   for ac_exec_ext in '' $ac_executable_extensions; do
4889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4890     ac_cv_prog_DB2HTML="$ac_prog"
4891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4892     break 2
4893   fi
4894 done
4895 done
4896
4897 fi
4898 fi
4899 DB2HTML=$ac_cv_prog_DB2HTML
4900 if test -n "$DB2HTML"; then
4901   echo "$as_me:$LINENO: result: $DB2HTML" >&5
4902 echo "${ECHO_T}$DB2HTML" >&6
4903 else
4904   echo "$as_me:$LINENO: result: no" >&5
4905 echo "${ECHO_T}no" >&6
4906 fi
4907
4908   test -n "$DB2HTML" && break
4909 done
4910 test -n "$DB2HTML" || DB2HTML="false"
4911
4912
4913
4914 for ac_prog in docbook2pdf db2pdf
4915 do
4916   # Extract the first word of "$ac_prog", so it can be a program name with args.
4917 set dummy $ac_prog; ac_word=$2
4918 echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4920 if test "${ac_cv_prog_DB2PDF+set}" = set; then
4921   echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923   if test -n "$DB2PDF"; then
4924   ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4925 else
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4928 do
4929   IFS=$as_save_IFS
4930   test -z "$as_dir" && as_dir=.
4931   for ac_exec_ext in '' $ac_executable_extensions; do
4932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933     ac_cv_prog_DB2PDF="$ac_prog"
4934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4935     break 2
4936   fi
4937 done
4938 done
4939
4940 fi
4941 fi
4942 DB2PDF=$ac_cv_prog_DB2PDF
4943 if test -n "$DB2PDF"; then
4944   echo "$as_me:$LINENO: result: $DB2PDF" >&5
4945 echo "${ECHO_T}$DB2PDF" >&6
4946 else
4947   echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6
4949 fi
4950
4951   test -n "$DB2PDF" && break
4952 done
4953 test -n "$DB2PDF" || DB2PDF="false"
4954
4955
4956
4957 for ac_prog in docbook2ps db2ps
4958 do
4959   # Extract the first word of "$ac_prog", so it can be a program name with args.
4960 set dummy $ac_prog; ac_word=$2
4961 echo "$as_me:$LINENO: checking for $ac_word" >&5
4962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4963 if test "${ac_cv_prog_DB2PS+set}" = set; then
4964   echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966   if test -n "$DB2PS"; then
4967   ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4968 else
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4971 do
4972   IFS=$as_save_IFS
4973   test -z "$as_dir" && as_dir=.
4974   for ac_exec_ext in '' $ac_executable_extensions; do
4975   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4976     ac_cv_prog_DB2PS="$ac_prog"
4977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4978     break 2
4979   fi
4980 done
4981 done
4982
4983 fi
4984 fi
4985 DB2PS=$ac_cv_prog_DB2PS
4986 if test -n "$DB2PS"; then
4987   echo "$as_me:$LINENO: result: $DB2PS" >&5
4988 echo "${ECHO_T}$DB2PS" >&6
4989 else
4990   echo "$as_me:$LINENO: result: no" >&5
4991 echo "${ECHO_T}no" >&6
4992 fi
4993
4994   test -n "$DB2PS" && break
4995 done
4996 test -n "$DB2PS" || DB2PS="false"
4997
4998
4999
5000 for ac_prog in docbook2txt db2txt
5001 do
5002   # Extract the first word of "$ac_prog", so it can be a program name with args.
5003 set dummy $ac_prog; ac_word=$2
5004 echo "$as_me:$LINENO: checking for $ac_word" >&5
5005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5006 if test "${ac_cv_prog_DB2TXT+set}" = set; then
5007   echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009   if test -n "$DB2TXT"; then
5010   ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015   IFS=$as_save_IFS
5016   test -z "$as_dir" && as_dir=.
5017   for ac_exec_ext in '' $ac_executable_extensions; do
5018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5019     ac_cv_prog_DB2TXT="$ac_prog"
5020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5021     break 2
5022   fi
5023 done
5024 done
5025
5026 fi
5027 fi
5028 DB2TXT=$ac_cv_prog_DB2TXT
5029 if test -n "$DB2TXT"; then
5030   echo "$as_me:$LINENO: result: $DB2TXT" >&5
5031 echo "${ECHO_T}$DB2TXT" >&6
5032 else
5033   echo "$as_me:$LINENO: result: no" >&5
5034 echo "${ECHO_T}no" >&6
5035 fi
5036
5037   test -n "$DB2TXT" && break
5038 done
5039 test -n "$DB2TXT" || DB2TXT="false"
5040
5041
5042
5043
5044
5045 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
5046 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5047 if test "${ac_cv_lib_m_sqrt+set}" = set; then
5048   echo $ECHO_N "(cached) $ECHO_C" >&6
5049 else
5050   ac_check_lib_save_LIBS=$LIBS
5051 LIBS="-lm  $LIBS"
5052 cat >conftest.$ac_ext <<_ACEOF
5053 #line $LINENO "configure"
5054 /* confdefs.h.  */
5055 _ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h.  */
5059
5060 /* Override any gcc2 internal prototype to avoid an error.  */
5061 #ifdef __cplusplus
5062 extern "C"
5063 #endif
5064 /* We use char because int might match the return type of a gcc2
5065    builtin and then its argument prototype would still apply.  */
5066 char sqrt ();
5067 int
5068 main ()
5069 {
5070 sqrt ();
5071   ;
5072   return 0;
5073 }
5074 _ACEOF
5075 rm -f conftest.$ac_objext conftest$ac_exeext
5076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5077   (eval $ac_link) 2>&5
5078   ac_status=$?
5079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080   (exit $ac_status); } &&
5081          { ac_try='test -s conftest$ac_exeext'
5082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083   (eval $ac_try) 2>&5
5084   ac_status=$?
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); }; }; then
5087   ac_cv_lib_m_sqrt=yes
5088 else
5089   echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5091
5092 ac_cv_lib_m_sqrt=no
5093 fi
5094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5095 LIBS=$ac_check_lib_save_LIBS
5096 fi
5097 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
5098 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5099 if test $ac_cv_lib_m_sqrt = yes; then
5100   cat >>confdefs.h <<_ACEOF
5101 #define HAVE_LIBM 1
5102 _ACEOF
5103
5104   LIBS="-lm $LIBS"
5105
5106 fi
5107
5108
5109 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5110 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5111 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5112   echo $ECHO_N "(cached) $ECHO_C" >&6
5113 else
5114   ac_check_lib_save_LIBS=$LIBS
5115 LIBS="-li386  $LIBS"
5116 cat >conftest.$ac_ext <<_ACEOF
5117 #line $LINENO "configure"
5118 /* confdefs.h.  */
5119 _ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h.  */
5123
5124 /* Override any gcc2 internal prototype to avoid an error.  */
5125 #ifdef __cplusplus
5126 extern "C"
5127 #endif
5128 /* We use char because int might match the return type of a gcc2
5129    builtin and then its argument prototype would still apply.  */
5130 char i386_set_ldt ();
5131 int
5132 main ()
5133 {
5134 i386_set_ldt ();
5135   ;
5136   return 0;
5137 }
5138 _ACEOF
5139 rm -f conftest.$ac_objext conftest$ac_exeext
5140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5141   (eval $ac_link) 2>&5
5142   ac_status=$?
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); } &&
5145          { ac_try='test -s conftest$ac_exeext'
5146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147   (eval $ac_try) 2>&5
5148   ac_status=$?
5149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150   (exit $ac_status); }; }; then
5151   ac_cv_lib_i386_i386_set_ldt=yes
5152 else
5153   echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5155
5156 ac_cv_lib_i386_i386_set_ldt=no
5157 fi
5158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5159 LIBS=$ac_check_lib_save_LIBS
5160 fi
5161 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5162 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5163 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5164   cat >>confdefs.h <<_ACEOF
5165 #define HAVE_LIBI386 1
5166 _ACEOF
5167
5168   LIBS="-li386 $LIBS"
5169
5170 fi
5171
5172
5173 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5174 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5175 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5176   echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178   ac_check_lib_save_LIBS=$LIBS
5179 LIBS="-lossaudio  $LIBS"
5180 cat >conftest.$ac_ext <<_ACEOF
5181 #line $LINENO "configure"
5182 /* confdefs.h.  */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h.  */
5187
5188 /* Override any gcc2 internal prototype to avoid an error.  */
5189 #ifdef __cplusplus
5190 extern "C"
5191 #endif
5192 /* We use char because int might match the return type of a gcc2
5193    builtin and then its argument prototype would still apply.  */
5194 char _oss_ioctl ();
5195 int
5196 main ()
5197 {
5198 _oss_ioctl ();
5199   ;
5200   return 0;
5201 }
5202 _ACEOF
5203 rm -f conftest.$ac_objext conftest$ac_exeext
5204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5205   (eval $ac_link) 2>&5
5206   ac_status=$?
5207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208   (exit $ac_status); } &&
5209          { ac_try='test -s conftest$ac_exeext'
5210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211   (eval $ac_try) 2>&5
5212   ac_status=$?
5213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214   (exit $ac_status); }; }; then
5215   ac_cv_lib_ossaudio__oss_ioctl=yes
5216 else
5217   echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5219
5220 ac_cv_lib_ossaudio__oss_ioctl=no
5221 fi
5222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5223 LIBS=$ac_check_lib_save_LIBS
5224 fi
5225 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5226 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5227 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5228   cat >>confdefs.h <<_ACEOF
5229 #define HAVE_LIBOSSAUDIO 1
5230 _ACEOF
5231
5232   LIBS="-lossaudio $LIBS"
5233
5234 fi
5235
5236
5237 for ac_func in iswalnum
5238 do
5239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5240 echo "$as_me:$LINENO: checking for $ac_func" >&5
5241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5242 if eval "test \"\${$as_ac_var+set}\" = set"; then
5243   echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245   cat >conftest.$ac_ext <<_ACEOF
5246 #line $LINENO "configure"
5247 /* confdefs.h.  */
5248 _ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h.  */
5252 /* System header to define __stub macros and hopefully few prototypes,
5253     which can conflict with char $ac_func (); below.
5254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5255     <limits.h> exists even on freestanding compilers.  */
5256 #ifdef __STDC__
5257 # include <limits.h>
5258 #else
5259 # include <assert.h>
5260 #endif
5261 /* Override any gcc2 internal prototype to avoid an error.  */
5262 #ifdef __cplusplus
5263 extern "C"
5264 {
5265 #endif
5266 /* We use char because int might match the return type of a gcc2
5267    builtin and then its argument prototype would still apply.  */
5268 char $ac_func ();
5269 /* The GNU C library defines this for functions which it implements
5270     to always fail with ENOSYS.  Some functions are actually named
5271     something starting with __ and the normal name is an alias.  */
5272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5273 choke me
5274 #else
5275 char (*f) () = $ac_func;
5276 #endif
5277 #ifdef __cplusplus
5278 }
5279 #endif
5280
5281 int
5282 main ()
5283 {
5284 return f != $ac_func;
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 sed 's/^/| /' conftest.$ac_ext >&5
5305
5306 eval "$as_ac_var=no"
5307 fi
5308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5309 fi
5310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5311 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5312 if test `eval echo '${'$as_ac_var'}'` = yes; then
5313   cat >>confdefs.h <<_ACEOF
5314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5315 _ACEOF
5316
5317 else
5318
5319 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5320 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5321 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5322   echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324   ac_check_lib_save_LIBS=$LIBS
5325 LIBS="-lw  $LIBS"
5326 cat >conftest.$ac_ext <<_ACEOF
5327 #line $LINENO "configure"
5328 /* confdefs.h.  */
5329 _ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h.  */
5333
5334 /* Override any gcc2 internal prototype to avoid an error.  */
5335 #ifdef __cplusplus
5336 extern "C"
5337 #endif
5338 /* We use char because int might match the return type of a gcc2
5339    builtin and then its argument prototype would still apply.  */
5340 char iswalnum ();
5341 int
5342 main ()
5343 {
5344 iswalnum ();
5345   ;
5346   return 0;
5347 }
5348 _ACEOF
5349 rm -f conftest.$ac_objext conftest$ac_exeext
5350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5351   (eval $ac_link) 2>&5
5352   ac_status=$?
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); } &&
5355          { ac_try='test -s conftest$ac_exeext'
5356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357   (eval $ac_try) 2>&5
5358   ac_status=$?
5359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360   (exit $ac_status); }; }; then
5361   ac_cv_lib_w_iswalnum=yes
5362 else
5363   echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5365
5366 ac_cv_lib_w_iswalnum=no
5367 fi
5368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5369 LIBS=$ac_check_lib_save_LIBS
5370 fi
5371 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
5372 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5373 if test $ac_cv_lib_w_iswalnum = yes; then
5374   cat >>confdefs.h <<_ACEOF
5375 #define HAVE_LIBW 1
5376 _ACEOF
5377
5378   LIBS="-lw $LIBS"
5379
5380 fi
5381
5382 fi
5383 done
5384
5385
5386 for ac_func in gethostbyname
5387 do
5388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5389 echo "$as_me:$LINENO: checking for $ac_func" >&5
5390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5391 if eval "test \"\${$as_ac_var+set}\" = set"; then
5392   echo $ECHO_N "(cached) $ECHO_C" >&6
5393 else
5394   cat >conftest.$ac_ext <<_ACEOF
5395 #line $LINENO "configure"
5396 /* confdefs.h.  */
5397 _ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h.  */
5401 /* System header to define __stub macros and hopefully few prototypes,
5402     which can conflict with char $ac_func (); below.
5403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5404     <limits.h> exists even on freestanding compilers.  */
5405 #ifdef __STDC__
5406 # include <limits.h>
5407 #else
5408 # include <assert.h>
5409 #endif
5410 /* Override any gcc2 internal prototype to avoid an error.  */
5411 #ifdef __cplusplus
5412 extern "C"
5413 {
5414 #endif
5415 /* We use char because int might match the return type of a gcc2
5416    builtin and then its argument prototype would still apply.  */
5417 char $ac_func ();
5418 /* The GNU C library defines this for functions which it implements
5419     to always fail with ENOSYS.  Some functions are actually named
5420     something starting with __ and the normal name is an alias.  */
5421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5422 choke me
5423 #else
5424 char (*f) () = $ac_func;
5425 #endif
5426 #ifdef __cplusplus
5427 }
5428 #endif
5429
5430 int
5431 main ()
5432 {
5433 return f != $ac_func;
5434   ;
5435   return 0;
5436 }
5437 _ACEOF
5438 rm -f conftest.$ac_objext conftest$ac_exeext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5440   (eval $ac_link) 2>&5
5441   ac_status=$?
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); } &&
5444          { ac_try='test -s conftest$ac_exeext'
5445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446   (eval $ac_try) 2>&5
5447   ac_status=$?
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); }; }; then
5450   eval "$as_ac_var=yes"
5451 else
5452   echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5454
5455 eval "$as_ac_var=no"
5456 fi
5457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5458 fi
5459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5461 if test `eval echo '${'$as_ac_var'}'` = yes; then
5462   cat >>confdefs.h <<_ACEOF
5463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5464 _ACEOF
5465
5466 else
5467
5468 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5469 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5470 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5471   echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473   ac_check_lib_save_LIBS=$LIBS
5474 LIBS="-lnsl  $LIBS"
5475 cat >conftest.$ac_ext <<_ACEOF
5476 #line $LINENO "configure"
5477 /* confdefs.h.  */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h.  */
5482
5483 /* Override any gcc2 internal prototype to avoid an error.  */
5484 #ifdef __cplusplus
5485 extern "C"
5486 #endif
5487 /* We use char because int might match the return type of a gcc2
5488    builtin and then its argument prototype would still apply.  */
5489 char gethostbyname ();
5490 int
5491 main ()
5492 {
5493 gethostbyname ();
5494   ;
5495   return 0;
5496 }
5497 _ACEOF
5498 rm -f conftest.$ac_objext conftest$ac_exeext
5499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5500   (eval $ac_link) 2>&5
5501   ac_status=$?
5502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503   (exit $ac_status); } &&
5504          { ac_try='test -s conftest$ac_exeext'
5505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506   (eval $ac_try) 2>&5
5507   ac_status=$?
5508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509   (exit $ac_status); }; }; then
5510   ac_cv_lib_nsl_gethostbyname=yes
5511 else
5512   echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5514
5515 ac_cv_lib_nsl_gethostbyname=no
5516 fi
5517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5518 LIBS=$ac_check_lib_save_LIBS
5519 fi
5520 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5521 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5522 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5523   cat >>confdefs.h <<_ACEOF
5524 #define HAVE_LIBNSL 1
5525 _ACEOF
5526
5527   LIBS="-lnsl $LIBS"
5528
5529 fi
5530
5531 fi
5532 done
5533
5534
5535 for ac_func in connect
5536 do
5537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5538 echo "$as_me:$LINENO: checking for $ac_func" >&5
5539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5540 if eval "test \"\${$as_ac_var+set}\" = set"; then
5541   echo $ECHO_N "(cached) $ECHO_C" >&6
5542 else
5543   cat >conftest.$ac_ext <<_ACEOF
5544 #line $LINENO "configure"
5545 /* confdefs.h.  */
5546 _ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h.  */
5550 /* System header to define __stub macros and hopefully few prototypes,
5551     which can conflict with char $ac_func (); below.
5552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5553     <limits.h> exists even on freestanding compilers.  */
5554 #ifdef __STDC__
5555 # include <limits.h>
5556 #else
5557 # include <assert.h>
5558 #endif
5559 /* Override any gcc2 internal prototype to avoid an error.  */
5560 #ifdef __cplusplus
5561 extern "C"
5562 {
5563 #endif
5564 /* We use char because int might match the return type of a gcc2
5565    builtin and then its argument prototype would still apply.  */
5566 char $ac_func ();
5567 /* The GNU C library defines this for functions which it implements
5568     to always fail with ENOSYS.  Some functions are actually named
5569     something starting with __ and the normal name is an alias.  */
5570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5571 choke me
5572 #else
5573 char (*f) () = $ac_func;
5574 #endif
5575 #ifdef __cplusplus
5576 }
5577 #endif
5578
5579 int
5580 main ()
5581 {
5582 return f != $ac_func;
5583   ;
5584   return 0;
5585 }
5586 _ACEOF
5587 rm -f conftest.$ac_objext conftest$ac_exeext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5589   (eval $ac_link) 2>&5
5590   ac_status=$?
5591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); } &&
5593          { ac_try='test -s conftest$ac_exeext'
5594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595   (eval $ac_try) 2>&5
5596   ac_status=$?
5597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598   (exit $ac_status); }; }; then
5599   eval "$as_ac_var=yes"
5600 else
5601   echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5603
5604 eval "$as_ac_var=no"
5605 fi
5606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5607 fi
5608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5610 if test `eval echo '${'$as_ac_var'}'` = yes; then
5611   cat >>confdefs.h <<_ACEOF
5612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5613 _ACEOF
5614
5615 else
5616
5617 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5618 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5619 if test "${ac_cv_lib_socket_connect+set}" = set; then
5620   echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622   ac_check_lib_save_LIBS=$LIBS
5623 LIBS="-lsocket  $LIBS"
5624 cat >conftest.$ac_ext <<_ACEOF
5625 #line $LINENO "configure"
5626 /* confdefs.h.  */
5627 _ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h.  */
5631
5632 /* Override any gcc2 internal prototype to avoid an error.  */
5633 #ifdef __cplusplus
5634 extern "C"
5635 #endif
5636 /* We use char because int might match the return type of a gcc2
5637    builtin and then its argument prototype would still apply.  */
5638 char connect ();
5639 int
5640 main ()
5641 {
5642 connect ();
5643   ;
5644   return 0;
5645 }
5646 _ACEOF
5647 rm -f conftest.$ac_objext conftest$ac_exeext
5648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5649   (eval $ac_link) 2>&5
5650   ac_status=$?
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); } &&
5653          { ac_try='test -s conftest$ac_exeext'
5654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655   (eval $ac_try) 2>&5
5656   ac_status=$?
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); }; }; then
5659   ac_cv_lib_socket_connect=yes
5660 else
5661   echo "$as_me: failed program was:" >&5
5662 sed 's/^/| /' conftest.$ac_ext >&5
5663
5664 ac_cv_lib_socket_connect=no
5665 fi
5666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5667 LIBS=$ac_check_lib_save_LIBS
5668 fi
5669 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5670 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5671 if test $ac_cv_lib_socket_connect = yes; then
5672   cat >>confdefs.h <<_ACEOF
5673 #define HAVE_LIBSOCKET 1
5674 _ACEOF
5675
5676   LIBS="-lsocket $LIBS"
5677
5678 fi
5679
5680 fi
5681 done
5682
5683
5684 for ac_func in inet_aton
5685 do
5686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5687 echo "$as_me:$LINENO: checking for $ac_func" >&5
5688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5689 if eval "test \"\${$as_ac_var+set}\" = set"; then
5690   echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692   cat >conftest.$ac_ext <<_ACEOF
5693 #line $LINENO "configure"
5694 /* confdefs.h.  */
5695 _ACEOF
5696 cat confdefs.h >>conftest.$ac_ext
5697 cat >>conftest.$ac_ext <<_ACEOF
5698 /* end confdefs.h.  */
5699 /* System header to define __stub macros and hopefully few prototypes,
5700     which can conflict with char $ac_func (); below.
5701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5702     <limits.h> exists even on freestanding compilers.  */
5703 #ifdef __STDC__
5704 # include <limits.h>
5705 #else
5706 # include <assert.h>
5707 #endif
5708 /* Override any gcc2 internal prototype to avoid an error.  */
5709 #ifdef __cplusplus
5710 extern "C"
5711 {
5712 #endif
5713 /* We use char because int might match the return type of a gcc2
5714    builtin and then its argument prototype would still apply.  */
5715 char $ac_func ();
5716 /* The GNU C library defines this for functions which it implements
5717     to always fail with ENOSYS.  Some functions are actually named
5718     something starting with __ and the normal name is an alias.  */
5719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5720 choke me
5721 #else
5722 char (*f) () = $ac_func;
5723 #endif
5724 #ifdef __cplusplus
5725 }
5726 #endif
5727
5728 int
5729 main ()
5730 {
5731 return f != $ac_func;
5732   ;
5733   return 0;
5734 }
5735 _ACEOF
5736 rm -f conftest.$ac_objext conftest$ac_exeext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5738   (eval $ac_link) 2>&5
5739   ac_status=$?
5740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741   (exit $ac_status); } &&
5742          { ac_try='test -s conftest$ac_exeext'
5743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744   (eval $ac_try) 2>&5
5745   ac_status=$?
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); }; }; then
5748   eval "$as_ac_var=yes"
5749 else
5750   echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5752
5753 eval "$as_ac_var=no"
5754 fi
5755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5756 fi
5757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5759 if test `eval echo '${'$as_ac_var'}'` = yes; then
5760   cat >>confdefs.h <<_ACEOF
5761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5762 _ACEOF
5763
5764 else
5765
5766 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5767 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5768 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5769   echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771   ac_check_lib_save_LIBS=$LIBS
5772 LIBS="-lresolv  $LIBS"
5773 cat >conftest.$ac_ext <<_ACEOF
5774 #line $LINENO "configure"
5775 /* confdefs.h.  */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h.  */
5780
5781 /* Override any gcc2 internal prototype to avoid an error.  */
5782 #ifdef __cplusplus
5783 extern "C"
5784 #endif
5785 /* We use char because int might match the return type of a gcc2
5786    builtin and then its argument prototype would still apply.  */
5787 char inet_aton ();
5788 int
5789 main ()
5790 {
5791 inet_aton ();
5792   ;
5793   return 0;
5794 }
5795 _ACEOF
5796 rm -f conftest.$ac_objext conftest$ac_exeext
5797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5798   (eval $ac_link) 2>&5
5799   ac_status=$?
5800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801   (exit $ac_status); } &&
5802          { ac_try='test -s conftest$ac_exeext'
5803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804   (eval $ac_try) 2>&5
5805   ac_status=$?
5806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807   (exit $ac_status); }; }; then
5808   ac_cv_lib_resolv_inet_aton=yes
5809 else
5810   echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5812
5813 ac_cv_lib_resolv_inet_aton=no
5814 fi
5815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5816 LIBS=$ac_check_lib_save_LIBS
5817 fi
5818 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5819 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5820 if test $ac_cv_lib_resolv_inet_aton = yes; then
5821   cat >>confdefs.h <<_ACEOF
5822 #define HAVE_LIBRESOLV 1
5823 _ACEOF
5824
5825   LIBS="-lresolv $LIBS"
5826
5827 fi
5828
5829 fi
5830 done
5831
5832
5833 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5834 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5835 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5836   echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838   ac_check_lib_save_LIBS=$LIBS
5839 LIBS="-lxpg4  $LIBS"
5840 cat >conftest.$ac_ext <<_ACEOF
5841 #line $LINENO "configure"
5842 /* confdefs.h.  */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h.  */
5847
5848 /* Override any gcc2 internal prototype to avoid an error.  */
5849 #ifdef __cplusplus
5850 extern "C"
5851 #endif
5852 /* We use char because int might match the return type of a gcc2
5853    builtin and then its argument prototype would still apply.  */
5854 char _xpg4_setrunelocale ();
5855 int
5856 main ()
5857 {
5858 _xpg4_setrunelocale ();
5859   ;
5860   return 0;
5861 }
5862 _ACEOF
5863 rm -f conftest.$ac_objext conftest$ac_exeext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5865   (eval $ac_link) 2>&5
5866   ac_status=$?
5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868   (exit $ac_status); } &&
5869          { ac_try='test -s conftest$ac_exeext'
5870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871   (eval $ac_try) 2>&5
5872   ac_status=$?
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); }; }; then
5875   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5876 else
5877   echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5879
5880 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5881 fi
5882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5883 LIBS=$ac_check_lib_save_LIBS
5884 fi
5885 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5886 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5887 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5888   cat >>confdefs.h <<_ACEOF
5889 #define HAVE_LIBXPG4 1
5890 _ACEOF
5891
5892   LIBS="-lxpg4 $LIBS"
5893
5894 fi
5895
5896 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
5897 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
5898 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
5899   echo $ECHO_N "(cached) $ECHO_C" >&6
5900 else
5901   ac_check_lib_save_LIBS=$LIBS
5902 LIBS="-lpthread  $LIBS"
5903 cat >conftest.$ac_ext <<_ACEOF
5904 #line $LINENO "configure"
5905 /* confdefs.h.  */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h.  */
5910
5911 /* Override any gcc2 internal prototype to avoid an error.  */
5912 #ifdef __cplusplus
5913 extern "C"
5914 #endif
5915 /* We use char because int might match the return type of a gcc2
5916    builtin and then its argument prototype would still apply.  */
5917 char pthread_create ();
5918 int
5919 main ()
5920 {
5921 pthread_create ();
5922   ;
5923   return 0;
5924 }
5925 _ACEOF
5926 rm -f conftest.$ac_objext conftest$ac_exeext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5928   (eval $ac_link) 2>&5
5929   ac_status=$?
5930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931   (exit $ac_status); } &&
5932          { ac_try='test -s conftest$ac_exeext'
5933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934   (eval $ac_try) 2>&5
5935   ac_status=$?
5936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937   (exit $ac_status); }; }; then
5938   ac_cv_lib_pthread_pthread_create=yes
5939 else
5940   echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5942
5943 ac_cv_lib_pthread_pthread_create=no
5944 fi
5945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5946 LIBS=$ac_check_lib_save_LIBS
5947 fi
5948 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5949 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
5950 if test $ac_cv_lib_pthread_pthread_create = yes; then
5951   LIBPTHREAD="-lpthread"
5952
5953 fi
5954
5955
5956 JPEGLIB=""
5957
5958 echo "$as_me:$LINENO: checking for egrep" >&5
5959 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5960 if test "${ac_cv_prog_egrep+set}" = set; then
5961   echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5964     then ac_cv_prog_egrep='grep -E'
5965     else ac_cv_prog_egrep='egrep'
5966     fi
5967 fi
5968 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5969 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5970  EGREP=$ac_cv_prog_egrep
5971
5972
5973 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5974 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5975 if test "${ac_cv_header_stdc+set}" = set; then
5976   echo $ECHO_N "(cached) $ECHO_C" >&6
5977 else
5978   cat >conftest.$ac_ext <<_ACEOF
5979 #line $LINENO "configure"
5980 /* confdefs.h.  */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h.  */
5985 #include <stdlib.h>
5986 #include <stdarg.h>
5987 #include <string.h>
5988 #include <float.h>
5989
5990 int
5991 main ()
5992 {
5993
5994   ;
5995   return 0;
5996 }
5997 _ACEOF
5998 rm -f conftest.$ac_objext
5999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6000   (eval $ac_compile) 2>&5
6001   ac_status=$?
6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); } &&
6004          { ac_try='test -s conftest.$ac_objext'
6005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006   (eval $ac_try) 2>&5
6007   ac_status=$?
6008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009   (exit $ac_status); }; }; then
6010   ac_cv_header_stdc=yes
6011 else
6012   echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6014
6015 ac_cv_header_stdc=no
6016 fi
6017 rm -f conftest.$ac_objext conftest.$ac_ext
6018
6019 if test $ac_cv_header_stdc = yes; then
6020   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6021   cat >conftest.$ac_ext <<_ACEOF
6022 #line $LINENO "configure"
6023 /* confdefs.h.  */
6024 _ACEOF
6025 cat confdefs.h >>conftest.$ac_ext
6026 cat >>conftest.$ac_ext <<_ACEOF
6027 /* end confdefs.h.  */
6028 #include <string.h>
6029
6030 _ACEOF
6031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6032   $EGREP "memchr" >/dev/null 2>&1; then
6033   :
6034 else
6035   ac_cv_header_stdc=no
6036 fi
6037 rm -f conftest*
6038
6039 fi
6040
6041 if test $ac_cv_header_stdc = yes; then
6042   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6043   cat >conftest.$ac_ext <<_ACEOF
6044 #line $LINENO "configure"
6045 /* confdefs.h.  */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h.  */
6050 #include <stdlib.h>
6051
6052 _ACEOF
6053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6054   $EGREP "free" >/dev/null 2>&1; then
6055   :
6056 else
6057   ac_cv_header_stdc=no
6058 fi
6059 rm -f conftest*
6060
6061 fi
6062
6063 if test $ac_cv_header_stdc = yes; then
6064   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6065   if test "$cross_compiling" = yes; then
6066   :
6067 else
6068   cat >conftest.$ac_ext <<_ACEOF
6069 #line $LINENO "configure"
6070 /* confdefs.h.  */
6071 _ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h.  */
6075 #include <ctype.h>
6076 #if ((' ' & 0x0FF) == 0x020)
6077 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6078 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6079 #else
6080 # define ISLOWER(c) \
6081                    (('a' <= (c) && (c) <= 'i') \
6082                      || ('j' <= (c) && (c) <= 'r') \
6083                      || ('s' <= (c) && (c) <= 'z'))
6084 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6085 #endif
6086
6087 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6088 int
6089 main ()
6090 {
6091   int i;
6092   for (i = 0; i < 256; i++)
6093     if (XOR (islower (i), ISLOWER (i))
6094         || toupper (i) != TOUPPER (i))
6095       exit(2);
6096   exit (0);
6097 }
6098 _ACEOF
6099 rm -f conftest$ac_exeext
6100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6101   (eval $ac_link) 2>&5
6102   ac_status=$?
6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106   (eval $ac_try) 2>&5
6107   ac_status=$?
6108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109   (exit $ac_status); }; }; then
6110   :
6111 else
6112   echo "$as_me: program exited with status $ac_status" >&5
6113 echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6115
6116 ( exit $ac_status )
6117 ac_cv_header_stdc=no
6118 fi
6119 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6120 fi
6121 fi
6122 fi
6123 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6124 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6125 if test $ac_cv_header_stdc = yes; then
6126
6127 cat >>confdefs.h <<\_ACEOF
6128 #define STDC_HEADERS 1
6129 _ACEOF
6130
6131 fi
6132
6133 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6144                   inttypes.h stdint.h unistd.h
6145 do
6146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6147 echo "$as_me:$LINENO: checking for $ac_header" >&5
6148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6150   echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152   cat >conftest.$ac_ext <<_ACEOF
6153 #line $LINENO "configure"
6154 /* confdefs.h.  */
6155 _ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h.  */
6159 $ac_includes_default
6160
6161 #include <$ac_header>
6162 _ACEOF
6163 rm -f conftest.$ac_objext
6164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6165   (eval $ac_compile) 2>&5
6166   ac_status=$?
6167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168   (exit $ac_status); } &&
6169          { ac_try='test -s conftest.$ac_objext'
6170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171   (eval $ac_try) 2>&5
6172   ac_status=$?
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); }; }; then
6175   eval "$as_ac_Header=yes"
6176 else
6177   echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6179
6180 eval "$as_ac_Header=no"
6181 fi
6182 rm -f conftest.$ac_objext conftest.$ac_ext
6183 fi
6184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6187   cat >>confdefs.h <<_ACEOF
6188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6189 _ACEOF
6190
6191 fi
6192
6193 done
6194
6195
6196
6197 for ac_header in jpeglib.h
6198 do
6199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6201   echo "$as_me:$LINENO: checking for $ac_header" >&5
6202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6204   echo $ECHO_N "(cached) $ECHO_C" >&6
6205 fi
6206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6208 else
6209   # Is the header compilable?
6210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6212 cat >conftest.$ac_ext <<_ACEOF
6213 #line $LINENO "configure"
6214 /* confdefs.h.  */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h.  */
6219 $ac_includes_default
6220 #include <$ac_header>
6221 _ACEOF
6222 rm -f conftest.$ac_objext
6223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6224   (eval $ac_compile) 2>&5
6225   ac_status=$?
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); } &&
6228          { ac_try='test -s conftest.$ac_objext'
6229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230   (eval $ac_try) 2>&5
6231   ac_status=$?
6232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233   (exit $ac_status); }; }; then
6234   ac_header_compiler=yes
6235 else
6236   echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6238
6239 ac_header_compiler=no
6240 fi
6241 rm -f conftest.$ac_objext conftest.$ac_ext
6242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6243 echo "${ECHO_T}$ac_header_compiler" >&6
6244
6245 # Is the header present?
6246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6248 cat >conftest.$ac_ext <<_ACEOF
6249 #line $LINENO "configure"
6250 /* confdefs.h.  */
6251 _ACEOF
6252 cat confdefs.h >>conftest.$ac_ext
6253 cat >>conftest.$ac_ext <<_ACEOF
6254 /* end confdefs.h.  */
6255 #include <$ac_header>
6256 _ACEOF
6257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6258   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6259   ac_status=$?
6260   grep -v '^ *+' conftest.er1 >conftest.err
6261   rm -f conftest.er1
6262   cat conftest.err >&5
6263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264   (exit $ac_status); } >/dev/null; then
6265   if test -s conftest.err; then
6266     ac_cpp_err=$ac_c_preproc_warn_flag
6267   else
6268     ac_cpp_err=
6269   fi
6270 else
6271   ac_cpp_err=yes
6272 fi
6273 if test -z "$ac_cpp_err"; then
6274   ac_header_preproc=yes
6275 else
6276   echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6278
6279   ac_header_preproc=no
6280 fi
6281 rm -f conftest.err conftest.$ac_ext
6282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6283 echo "${ECHO_T}$ac_header_preproc" >&6
6284
6285 # So?  What about this header?
6286 case $ac_header_compiler:$ac_header_preproc in
6287   yes:no )
6288     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6292     (
6293       cat <<\_ASBOX
6294 ## ------------------------------------ ##
6295 ## Report this to bug-autoconf@gnu.org. ##
6296 ## ------------------------------------ ##
6297 _ASBOX
6298     ) |
6299       sed "s/^/$as_me: WARNING:     /" >&2
6300     ;;
6301   no:yes )
6302     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6304     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6308     (
6309       cat <<\_ASBOX
6310 ## ------------------------------------ ##
6311 ## Report this to bug-autoconf@gnu.org. ##
6312 ## ------------------------------------ ##
6313 _ASBOX
6314     ) |
6315       sed "s/^/$as_me: WARNING:     /" >&2
6316     ;;
6317 esac
6318 echo "$as_me:$LINENO: checking for $ac_header" >&5
6319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6321   echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323   eval "$as_ac_Header=$ac_header_preproc"
6324 fi
6325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6327
6328 fi
6329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6330   cat >>confdefs.h <<_ACEOF
6331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6332 _ACEOF
6333  echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
6334 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6335 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6336   echo $ECHO_N "(cached) $ECHO_C" >&6
6337 else
6338   ac_check_lib_save_LIBS=$LIBS
6339 LIBS="-ljpeg  $LIBS"
6340 cat >conftest.$ac_ext <<_ACEOF
6341 #line $LINENO "configure"
6342 /* confdefs.h.  */
6343 _ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h.  */
6347
6348 /* Override any gcc2 internal prototype to avoid an error.  */
6349 #ifdef __cplusplus
6350 extern "C"
6351 #endif
6352 /* We use char because int might match the return type of a gcc2
6353    builtin and then its argument prototype would still apply.  */
6354 char jpeg_start_decompress ();
6355 int
6356 main ()
6357 {
6358 jpeg_start_decompress ();
6359   ;
6360   return 0;
6361 }
6362 _ACEOF
6363 rm -f conftest.$ac_objext conftest$ac_exeext
6364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6365   (eval $ac_link) 2>&5
6366   ac_status=$?
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); } &&
6369          { ac_try='test -s conftest$ac_exeext'
6370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371   (eval $ac_try) 2>&5
6372   ac_status=$?
6373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374   (exit $ac_status); }; }; then
6375   ac_cv_lib_jpeg_jpeg_start_decompress=yes
6376 else
6377   echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6379
6380 ac_cv_lib_jpeg_jpeg_start_decompress=no
6381 fi
6382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6383 LIBS=$ac_check_lib_save_LIBS
6384 fi
6385 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
6386 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6387 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
6388
6389 cat >>confdefs.h <<\_ACEOF
6390 #define HAVE_LIBJPEG 1
6391 _ACEOF
6392
6393         JPEGLIB="-ljpeg"
6394
6395 fi
6396
6397
6398 fi
6399
6400 done
6401
6402
6403 GIFLIB=""
6404
6405
6406 for ac_header in gif_lib.h
6407 do
6408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6410   echo "$as_me:$LINENO: checking for $ac_header" >&5
6411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6413   echo $ECHO_N "(cached) $ECHO_C" >&6
6414 fi
6415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6417 else
6418   # Is the header compilable?
6419 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6421 cat >conftest.$ac_ext <<_ACEOF
6422 #line $LINENO "configure"
6423 /* confdefs.h.  */
6424 _ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h.  */
6428 $ac_includes_default
6429 #include <$ac_header>
6430 _ACEOF
6431 rm -f conftest.$ac_objext
6432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6433   (eval $ac_compile) 2>&5
6434   ac_status=$?
6435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); } &&
6437          { ac_try='test -s conftest.$ac_objext'
6438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439   (eval $ac_try) 2>&5
6440   ac_status=$?
6441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442   (exit $ac_status); }; }; then
6443   ac_header_compiler=yes
6444 else
6445   echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6447
6448 ac_header_compiler=no
6449 fi
6450 rm -f conftest.$ac_objext conftest.$ac_ext
6451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6452 echo "${ECHO_T}$ac_header_compiler" >&6
6453
6454 # Is the header present?
6455 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6457 cat >conftest.$ac_ext <<_ACEOF
6458 #line $LINENO "configure"
6459 /* confdefs.h.  */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h.  */
6464 #include <$ac_header>
6465 _ACEOF
6466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6467   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6468   ac_status=$?
6469   grep -v '^ *+' conftest.er1 >conftest.err
6470   rm -f conftest.er1
6471   cat conftest.err >&5
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); } >/dev/null; then
6474   if test -s conftest.err; then
6475     ac_cpp_err=$ac_c_preproc_warn_flag
6476   else
6477     ac_cpp_err=
6478   fi
6479 else
6480   ac_cpp_err=yes
6481 fi
6482 if test -z "$ac_cpp_err"; then
6483   ac_header_preproc=yes
6484 else
6485   echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6487
6488   ac_header_preproc=no
6489 fi
6490 rm -f conftest.err conftest.$ac_ext
6491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6492 echo "${ECHO_T}$ac_header_preproc" >&6
6493
6494 # So?  What about this header?
6495 case $ac_header_compiler:$ac_header_preproc in
6496   yes:no )
6497     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6499     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6501     (
6502       cat <<\_ASBOX
6503 ## ------------------------------------ ##
6504 ## Report this to bug-autoconf@gnu.org. ##
6505 ## ------------------------------------ ##
6506 _ASBOX
6507     ) |
6508       sed "s/^/$as_me: WARNING:     /" >&2
6509     ;;
6510   no:yes )
6511     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6513     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6517     (
6518       cat <<\_ASBOX
6519 ## ------------------------------------ ##
6520 ## Report this to bug-autoconf@gnu.org. ##
6521 ## ------------------------------------ ##
6522 _ASBOX
6523     ) |
6524       sed "s/^/$as_me: WARNING:     /" >&2
6525     ;;
6526 esac
6527 echo "$as_me:$LINENO: checking for $ac_header" >&5
6528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6530   echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532   eval "$as_ac_Header=$ac_header_preproc"
6533 fi
6534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6536
6537 fi
6538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6539   cat >>confdefs.h <<_ACEOF
6540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6541 _ACEOF
6542  echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
6543 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
6544 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
6545   echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547   ac_check_lib_save_LIBS=$LIBS
6548 LIBS="-lungif  $LIBS"
6549 cat >conftest.$ac_ext <<_ACEOF
6550 #line $LINENO "configure"
6551 /* confdefs.h.  */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h.  */
6556
6557 /* Override any gcc2 internal prototype to avoid an error.  */
6558 #ifdef __cplusplus
6559 extern "C"
6560 #endif
6561 /* We use char because int might match the return type of a gcc2
6562    builtin and then its argument prototype would still apply.  */
6563 char DGifOpen ();
6564 int
6565 main ()
6566 {
6567 DGifOpen ();
6568   ;
6569   return 0;
6570 }
6571 _ACEOF
6572 rm -f conftest.$ac_objext conftest$ac_exeext
6573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574   (eval $ac_link) 2>&5
6575   ac_status=$?
6576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577   (exit $ac_status); } &&
6578          { ac_try='test -s conftest$ac_exeext'
6579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580   (eval $ac_try) 2>&5
6581   ac_status=$?
6582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583   (exit $ac_status); }; }; then
6584   ac_cv_lib_ungif_DGifOpen=yes
6585 else
6586   echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.$ac_ext >&5
6588
6589 ac_cv_lib_ungif_DGifOpen=no
6590 fi
6591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6592 LIBS=$ac_check_lib_save_LIBS
6593 fi
6594 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
6595 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
6596 if test $ac_cv_lib_ungif_DGifOpen = yes; then
6597
6598 cat >>confdefs.h <<\_ACEOF
6599 #define HAVE_LIBGIF 1
6600 _ACEOF
6601
6602          GIFLIB="-lungif"
6603 else
6604   echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
6605 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
6606 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
6607   echo $ECHO_N "(cached) $ECHO_C" >&6
6608 else
6609   ac_check_lib_save_LIBS=$LIBS
6610 LIBS="-lgif  $LIBS"
6611 cat >conftest.$ac_ext <<_ACEOF
6612 #line $LINENO "configure"
6613 /* confdefs.h.  */
6614 _ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h.  */
6618
6619 /* Override any gcc2 internal prototype to avoid an error.  */
6620 #ifdef __cplusplus
6621 extern "C"
6622 #endif
6623 /* We use char because int might match the return type of a gcc2
6624    builtin and then its argument prototype would still apply.  */
6625 char DGifOpen ();
6626 int
6627 main ()
6628 {
6629 DGifOpen ();
6630   ;
6631   return 0;
6632 }
6633 _ACEOF
6634 rm -f conftest.$ac_objext conftest$ac_exeext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6636   (eval $ac_link) 2>&5
6637   ac_status=$?
6638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639   (exit $ac_status); } &&
6640          { ac_try='test -s conftest$ac_exeext'
6641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642   (eval $ac_try) 2>&5
6643   ac_status=$?
6644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645   (exit $ac_status); }; }; then
6646   ac_cv_lib_gif_DGifOpen=yes
6647 else
6648   echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6650
6651 ac_cv_lib_gif_DGifOpen=no
6652 fi
6653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6654 LIBS=$ac_check_lib_save_LIBS
6655 fi
6656 echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
6657 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
6658 if test $ac_cv_lib_gif_DGifOpen = yes; then
6659   cat >>confdefs.h <<\_ACEOF
6660 #define HAVE_LIBGIF 1
6661 _ACEOF
6662
6663                        GIFLIB="-lgif"
6664 fi
6665
6666 fi
6667
6668 fi
6669
6670 done
6671
6672
6673
6674
6675 XFILES=""
6676
6677 OPENGLFILES=""
6678
6679 GLU32FILES=""
6680
6681 OPENGL_LIBS=""
6682 if test "$have_x" = "yes"
6683 then
6684     XLIB="-lXext -lX11"
6685     ac_save_CPPFLAGS="$CPPFLAGS"
6686     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6687
6688
6689 for ac_header in X11/Xlib.h
6690 do
6691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6693   echo "$as_me:$LINENO: checking for $ac_header" >&5
6694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6696   echo $ECHO_N "(cached) $ECHO_C" >&6
6697 fi
6698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6700 else
6701   # Is the header compilable?
6702 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6704 cat >conftest.$ac_ext <<_ACEOF
6705 #line $LINENO "configure"
6706 /* confdefs.h.  */
6707 _ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h.  */
6711 $ac_includes_default
6712 #include <$ac_header>
6713 _ACEOF
6714 rm -f conftest.$ac_objext
6715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6716   (eval $ac_compile) 2>&5
6717   ac_status=$?
6718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719   (exit $ac_status); } &&
6720          { ac_try='test -s conftest.$ac_objext'
6721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722   (eval $ac_try) 2>&5
6723   ac_status=$?
6724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725   (exit $ac_status); }; }; then
6726   ac_header_compiler=yes
6727 else
6728   echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6730
6731 ac_header_compiler=no
6732 fi
6733 rm -f conftest.$ac_objext conftest.$ac_ext
6734 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6735 echo "${ECHO_T}$ac_header_compiler" >&6
6736
6737 # Is the header present?
6738 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6740 cat >conftest.$ac_ext <<_ACEOF
6741 #line $LINENO "configure"
6742 /* confdefs.h.  */
6743 _ACEOF
6744 cat confdefs.h >>conftest.$ac_ext
6745 cat >>conftest.$ac_ext <<_ACEOF
6746 /* end confdefs.h.  */
6747 #include <$ac_header>
6748 _ACEOF
6749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6750   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6751   ac_status=$?
6752   grep -v '^ *+' conftest.er1 >conftest.err
6753   rm -f conftest.er1
6754   cat conftest.err >&5
6755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756   (exit $ac_status); } >/dev/null; then
6757   if test -s conftest.err; then
6758     ac_cpp_err=$ac_c_preproc_warn_flag
6759   else
6760     ac_cpp_err=
6761   fi
6762 else
6763   ac_cpp_err=yes
6764 fi
6765 if test -z "$ac_cpp_err"; then
6766   ac_header_preproc=yes
6767 else
6768   echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6770
6771   ac_header_preproc=no
6772 fi
6773 rm -f conftest.err conftest.$ac_ext
6774 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6775 echo "${ECHO_T}$ac_header_preproc" >&6
6776
6777 # So?  What about this header?
6778 case $ac_header_compiler:$ac_header_preproc in
6779   yes:no )
6780     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6782     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6784     (
6785       cat <<\_ASBOX
6786 ## ------------------------------------ ##
6787 ## Report this to bug-autoconf@gnu.org. ##
6788 ## ------------------------------------ ##
6789 _ASBOX
6790     ) |
6791       sed "s/^/$as_me: WARNING:     /" >&2
6792     ;;
6793   no:yes )
6794     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6796     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6800     (
6801       cat <<\_ASBOX
6802 ## ------------------------------------ ##
6803 ## Report this to bug-autoconf@gnu.org. ##
6804 ## ------------------------------------ ##
6805 _ASBOX
6806     ) |
6807       sed "s/^/$as_me: WARNING:     /" >&2
6808     ;;
6809 esac
6810 echo "$as_me:$LINENO: checking for $ac_header" >&5
6811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6813   echo $ECHO_N "(cached) $ECHO_C" >&6
6814 else
6815   eval "$as_ac_Header=$ac_header_preproc"
6816 fi
6817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6819
6820 fi
6821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6822   cat >>confdefs.h <<_ACEOF
6823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6824 _ACEOF
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835 for ac_header in X11/XKBlib.h \
6836                           X11/Xutil.h \
6837                           X11/extensions/shape.h \
6838                           X11/extensions/XShm.h \
6839                           X11/extensions/Xrandr.h \
6840                           X11/extensions/Xrender.h \
6841                           X11/extensions/Xvlib.h \
6842                           X11/extensions/xf86dga.h \
6843                           X11/extensions/xf86vmode.h
6844 do
6845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6846 echo "$as_me:$LINENO: checking for $ac_header" >&5
6847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6849   echo $ECHO_N "(cached) $ECHO_C" >&6
6850 else
6851   cat >conftest.$ac_ext <<_ACEOF
6852 #line $LINENO "configure"
6853 /* confdefs.h.  */
6854 _ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h.  */
6858 #include <X11/Xlib.h>
6859                           #ifdef HAVE_X11_XUTIL_H
6860                           # include <X11/Xutil.h>
6861                           #endif
6862
6863 #include <$ac_header>
6864 _ACEOF
6865 rm -f conftest.$ac_objext
6866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6867   (eval $ac_compile) 2>&5
6868   ac_status=$?
6869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870   (exit $ac_status); } &&
6871          { ac_try='test -s conftest.$ac_objext'
6872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873   (eval $ac_try) 2>&5
6874   ac_status=$?
6875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876   (exit $ac_status); }; }; then
6877   eval "$as_ac_Header=yes"
6878 else
6879   echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6881
6882 eval "$as_ac_Header=no"
6883 fi
6884 rm -f conftest.$ac_objext conftest.$ac_ext
6885 fi
6886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6889   cat >>confdefs.h <<_ACEOF
6890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6891 _ACEOF
6892
6893 fi
6894
6895 done
6896
6897
6898                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
6899         then
6900               echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6901 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6902 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6903   echo $ECHO_N "(cached) $ECHO_C" >&6
6904 else
6905   ac_check_lib_save_LIBS=$LIBS
6906 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6907 cat >conftest.$ac_ext <<_ACEOF
6908 #line $LINENO "configure"
6909 /* confdefs.h.  */
6910 _ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h.  */
6914
6915 /* Override any gcc2 internal prototype to avoid an error.  */
6916 #ifdef __cplusplus
6917 extern "C"
6918 #endif
6919 /* We use char because int might match the return type of a gcc2
6920    builtin and then its argument prototype would still apply.  */
6921 char XkbQueryExtension ();
6922 int
6923 main ()
6924 {
6925 XkbQueryExtension ();
6926   ;
6927   return 0;
6928 }
6929 _ACEOF
6930 rm -f conftest.$ac_objext conftest$ac_exeext
6931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6932   (eval $ac_link) 2>&5
6933   ac_status=$?
6934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935   (exit $ac_status); } &&
6936          { ac_try='test -s conftest$ac_exeext'
6937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938   (eval $ac_try) 2>&5
6939   ac_status=$?
6940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941   (exit $ac_status); }; }; then
6942   ac_cv_lib_X11_XkbQueryExtension=yes
6943 else
6944   echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.$ac_ext >&5
6946
6947 ac_cv_lib_X11_XkbQueryExtension=no
6948 fi
6949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6950 LIBS=$ac_check_lib_save_LIBS
6951 fi
6952 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6953 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6954 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6955
6956 cat >>confdefs.h <<\_ACEOF
6957 #define HAVE_XKB 1
6958 _ACEOF
6959
6960 fi
6961
6962         fi
6963
6964                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
6965         then
6966               echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6967 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6968 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6969   echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971   ac_check_lib_save_LIBS=$LIBS
6972 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6973 cat >conftest.$ac_ext <<_ACEOF
6974 #line $LINENO "configure"
6975 /* confdefs.h.  */
6976 _ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h.  */
6980
6981 /* Override any gcc2 internal prototype to avoid an error.  */
6982 #ifdef __cplusplus
6983 extern "C"
6984 #endif
6985 /* We use char because int might match the return type of a gcc2
6986    builtin and then its argument prototype would still apply.  */
6987 char XShmQueryExtension ();
6988 int
6989 main ()
6990 {
6991 XShmQueryExtension ();
6992   ;
6993   return 0;
6994 }
6995 _ACEOF
6996 rm -f conftest.$ac_objext conftest$ac_exeext
6997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6998   (eval $ac_link) 2>&5
6999   ac_status=$?
7000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001   (exit $ac_status); } &&
7002          { ac_try='test -s conftest$ac_exeext'
7003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004   (eval $ac_try) 2>&5
7005   ac_status=$?
7006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007   (exit $ac_status); }; }; then
7008   ac_cv_lib_Xext_XShmQueryExtension=yes
7009 else
7010   echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7012
7013 ac_cv_lib_Xext_XShmQueryExtension=no
7014 fi
7015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7016 LIBS=$ac_check_lib_save_LIBS
7017 fi
7018 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7019 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7020 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7021
7022 cat >>confdefs.h <<\_ACEOF
7023 #define HAVE_LIBXXSHM 1
7024 _ACEOF
7025
7026 fi
7027
7028         fi
7029
7030                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7031         then
7032               echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7033 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7034 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7035   echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037   ac_check_lib_save_LIBS=$LIBS
7038 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7039 cat >conftest.$ac_ext <<_ACEOF
7040 #line $LINENO "configure"
7041 /* confdefs.h.  */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h.  */
7046
7047 /* Override any gcc2 internal prototype to avoid an error.  */
7048 #ifdef __cplusplus
7049 extern "C"
7050 #endif
7051 /* We use char because int might match the return type of a gcc2
7052    builtin and then its argument prototype would still apply.  */
7053 char XShapeQueryExtension ();
7054 int
7055 main ()
7056 {
7057 XShapeQueryExtension ();
7058   ;
7059   return 0;
7060 }
7061 _ACEOF
7062 rm -f conftest.$ac_objext conftest$ac_exeext
7063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7064   (eval $ac_link) 2>&5
7065   ac_status=$?
7066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067   (exit $ac_status); } &&
7068          { ac_try='test -s conftest$ac_exeext'
7069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070   (eval $ac_try) 2>&5
7071   ac_status=$?
7072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073   (exit $ac_status); }; }; then
7074   ac_cv_lib_Xext_XShapeQueryExtension=yes
7075 else
7076   echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7078
7079 ac_cv_lib_Xext_XShapeQueryExtension=no
7080 fi
7081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7082 LIBS=$ac_check_lib_save_LIBS
7083 fi
7084 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7085 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7086 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7087
7088 cat >>confdefs.h <<\_ACEOF
7089 #define HAVE_LIBXSHAPE 1
7090 _ACEOF
7091
7092 fi
7093
7094         fi
7095
7096                 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
7097         then
7098               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
7099 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7100 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7101   echo $ECHO_N "(cached) $ECHO_C" >&6
7102 else
7103   ac_check_lib_save_LIBS=$LIBS
7104 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7105 cat >conftest.$ac_ext <<_ACEOF
7106 #line $LINENO "configure"
7107 /* confdefs.h.  */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h.  */
7112
7113 /* Override any gcc2 internal prototype to avoid an error.  */
7114 #ifdef __cplusplus
7115 extern "C"
7116 #endif
7117 /* We use char because int might match the return type of a gcc2
7118    builtin and then its argument prototype would still apply.  */
7119 char XDGAQueryExtension ();
7120 int
7121 main ()
7122 {
7123 XDGAQueryExtension ();
7124   ;
7125   return 0;
7126 }
7127 _ACEOF
7128 rm -f conftest.$ac_objext conftest$ac_exeext
7129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7130   (eval $ac_link) 2>&5
7131   ac_status=$?
7132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); } &&
7134          { ac_try='test -s conftest$ac_exeext'
7135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136   (eval $ac_try) 2>&5
7137   ac_status=$?
7138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139   (exit $ac_status); }; }; then
7140   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7141 else
7142   echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7144
7145 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7146 fi
7147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7148 LIBS=$ac_check_lib_save_LIBS
7149 fi
7150 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
7151 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7152 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7153
7154 cat >>confdefs.h <<\_ACEOF
7155 #define HAVE_LIBXXF86DGA2 1
7156 _ACEOF
7157
7158                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7159
7160 else
7161                                        echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
7162 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7163 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7164   echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166   ac_check_lib_save_LIBS=$LIBS
7167 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7168                    $LIBS"
7169 cat >conftest.$ac_ext <<_ACEOF
7170 #line $LINENO "configure"
7171 /* confdefs.h.  */
7172 _ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h.  */
7176
7177 /* Override any gcc2 internal prototype to avoid an error.  */
7178 #ifdef __cplusplus
7179 extern "C"
7180 #endif
7181 /* We use char because int might match the return type of a gcc2
7182    builtin and then its argument prototype would still apply.  */
7183 char XF86DGAQueryExtension ();
7184 int
7185 main ()
7186 {
7187 XF86DGAQueryExtension ();
7188   ;
7189   return 0;
7190 }
7191 _ACEOF
7192 rm -f conftest.$ac_objext conftest$ac_exeext
7193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7194   (eval $ac_link) 2>&5
7195   ac_status=$?
7196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197   (exit $ac_status); } &&
7198          { ac_try='test -s conftest$ac_exeext'
7199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200   (eval $ac_try) 2>&5
7201   ac_status=$?
7202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203   (exit $ac_status); }; }; then
7204   ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7205 else
7206   echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7208
7209 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7210 fi
7211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7212 LIBS=$ac_check_lib_save_LIBS
7213 fi
7214 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7215 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7216 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7217
7218 cat >>confdefs.h <<\_ACEOF
7219 #define HAVE_LIBXXF86DGA 1
7220 _ACEOF
7221
7222                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7223
7224 fi
7225
7226
7227 fi
7228
7229         fi
7230
7231                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7232         then
7233                 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7234 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7235 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7236   echo $ECHO_N "(cached) $ECHO_C" >&6
7237 else
7238   ac_check_lib_save_LIBS=$LIBS
7239 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7240 cat >conftest.$ac_ext <<_ACEOF
7241 #line $LINENO "configure"
7242 /* confdefs.h.  */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h.  */
7247
7248 /* Override any gcc2 internal prototype to avoid an error.  */
7249 #ifdef __cplusplus
7250 extern "C"
7251 #endif
7252 /* We use char because int might match the return type of a gcc2
7253    builtin and then its argument prototype would still apply.  */
7254 char XF86VidModeQueryExtension ();
7255 int
7256 main ()
7257 {
7258 XF86VidModeQueryExtension ();
7259   ;
7260   return 0;
7261 }
7262 _ACEOF
7263 rm -f conftest.$ac_objext conftest$ac_exeext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7265   (eval $ac_link) 2>&5
7266   ac_status=$?
7267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268   (exit $ac_status); } &&
7269          { ac_try='test -s conftest$ac_exeext'
7270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271   (eval $ac_try) 2>&5
7272   ac_status=$?
7273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274   (exit $ac_status); }; }; then
7275   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7276 else
7277   echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7279
7280 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7281 fi
7282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7283 LIBS=$ac_check_lib_save_LIBS
7284 fi
7285 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7286 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7287 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7288
7289 cat >>confdefs.h <<\_ACEOF
7290 #define HAVE_LIBXXF86VM 1
7291 _ACEOF
7292
7293                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7294
7295 fi
7296
7297         fi
7298
7299                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
7300         then
7301                 echo "$as_me:$LINENO: checking for XRRSetScreenConfigAndRate in -lXrandr" >&5
7302 echo $ECHO_N "checking for XRRSetScreenConfigAndRate in -lXrandr... $ECHO_C" >&6
7303 if test "${ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate+set}" = set; then
7304   echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306   ac_check_lib_save_LIBS=$LIBS
7307 LIBS="-lXrandr $X_LIBS -lXrender -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7308 cat >conftest.$ac_ext <<_ACEOF
7309 #line $LINENO "configure"
7310 /* confdefs.h.  */
7311 _ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h.  */
7315
7316 /* Override any gcc2 internal prototype to avoid an error.  */
7317 #ifdef __cplusplus
7318 extern "C"
7319 #endif
7320 /* We use char because int might match the return type of a gcc2
7321    builtin and then its argument prototype would still apply.  */
7322 char XRRSetScreenConfigAndRate ();
7323 int
7324 main ()
7325 {
7326 XRRSetScreenConfigAndRate ();
7327   ;
7328   return 0;
7329 }
7330 _ACEOF
7331 rm -f conftest.$ac_objext conftest$ac_exeext
7332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7333   (eval $ac_link) 2>&5
7334   ac_status=$?
7335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336   (exit $ac_status); } &&
7337          { ac_try='test -s conftest$ac_exeext'
7338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339   (eval $ac_try) 2>&5
7340   ac_status=$?
7341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342   (exit $ac_status); }; }; then
7343   ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=yes
7344 else
7345   echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7347
7348 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=no
7349 fi
7350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7351 LIBS=$ac_check_lib_save_LIBS
7352 fi
7353 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&5
7354 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&6
7355 if test $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate = yes; then
7356
7357 cat >>confdefs.h <<\_ACEOF
7358 #define HAVE_LIBXRANDR 1
7359 _ACEOF
7360
7361                      X_PRE_LIBS="$X_PRE_LIBS -lXrandr -lXrender"
7362
7363 fi
7364
7365         fi
7366
7367                 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
7368         then
7369                 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
7370 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7371 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7372   echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374   ac_check_lib_save_LIBS=$LIBS
7375 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7376 cat >conftest.$ac_ext <<_ACEOF
7377 #line $LINENO "configure"
7378 /* confdefs.h.  */
7379 _ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h.  */
7383
7384 /* Override any gcc2 internal prototype to avoid an error.  */
7385 #ifdef __cplusplus
7386 extern "C"
7387 #endif
7388 /* We use char because int might match the return type of a gcc2
7389    builtin and then its argument prototype would still apply.  */
7390 char XvShmCreateImage ();
7391 int
7392 main ()
7393 {
7394 XvShmCreateImage ();
7395   ;
7396   return 0;
7397 }
7398 _ACEOF
7399 rm -f conftest.$ac_objext conftest$ac_exeext
7400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7401   (eval $ac_link) 2>&5
7402   ac_status=$?
7403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404   (exit $ac_status); } &&
7405          { ac_try='test -s conftest$ac_exeext'
7406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407   (eval $ac_try) 2>&5
7408   ac_status=$?
7409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410   (exit $ac_status); }; }; then
7411   ac_cv_lib_Xv_XvShmCreateImage=yes
7412 else
7413   echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7415
7416 ac_cv_lib_Xv_XvShmCreateImage=no
7417 fi
7418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7419 LIBS=$ac_check_lib_save_LIBS
7420 fi
7421 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
7422 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7423 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
7424
7425 cat >>confdefs.h <<\_ACEOF
7426 #define HAVE_XVIDEO 1
7427 _ACEOF
7428
7429                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
7430
7431 fi
7432
7433         fi
7434
7435
7436 fi
7437
7438 done
7439
7440         if test "x$with_opengl" != "xno"
7441     then
7442         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
7443         then
7444             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
7445 This prevents linking to OpenGL. Delete the file and restart configure." >&5
7446 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7447 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7448    { (exit 1); exit 1; }; }
7449         fi
7450
7451
7452
7453 for ac_header in GL/gl.h GL/glx.h
7454 do
7455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7457   echo "$as_me:$LINENO: checking for $ac_header" >&5
7458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7460   echo $ECHO_N "(cached) $ECHO_C" >&6
7461 fi
7462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7464 else
7465   # Is the header compilable?
7466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7468 cat >conftest.$ac_ext <<_ACEOF
7469 #line $LINENO "configure"
7470 /* confdefs.h.  */
7471 _ACEOF
7472 cat confdefs.h >>conftest.$ac_ext
7473 cat >>conftest.$ac_ext <<_ACEOF
7474 /* end confdefs.h.  */
7475 $ac_includes_default
7476 #include <$ac_header>
7477 _ACEOF
7478 rm -f conftest.$ac_objext
7479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7480   (eval $ac_compile) 2>&5
7481   ac_status=$?
7482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483   (exit $ac_status); } &&
7484          { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
7491 else
7492   echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7494
7495 ac_header_compiler=no
7496 fi
7497 rm -f conftest.$ac_objext conftest.$ac_ext
7498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7499 echo "${ECHO_T}$ac_header_compiler" >&6
7500
7501 # Is the header present?
7502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7504 cat >conftest.$ac_ext <<_ACEOF
7505 #line $LINENO "configure"
7506 /* confdefs.h.  */
7507 _ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h.  */
7511 #include <$ac_header>
7512 _ACEOF
7513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7514   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7515   ac_status=$?
7516   grep -v '^ *+' conftest.er1 >conftest.err
7517   rm -f conftest.er1
7518   cat conftest.err >&5
7519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520   (exit $ac_status); } >/dev/null; then
7521   if test -s conftest.err; then
7522     ac_cpp_err=$ac_c_preproc_warn_flag
7523   else
7524     ac_cpp_err=
7525   fi
7526 else
7527   ac_cpp_err=yes
7528 fi
7529 if test -z "$ac_cpp_err"; then
7530   ac_header_preproc=yes
7531 else
7532   echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7534
7535   ac_header_preproc=no
7536 fi
7537 rm -f conftest.err conftest.$ac_ext
7538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7539 echo "${ECHO_T}$ac_header_preproc" >&6
7540
7541 # So?  What about this header?
7542 case $ac_header_compiler:$ac_header_preproc in
7543   yes:no )
7544     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7548     (
7549       cat <<\_ASBOX
7550 ## ------------------------------------ ##
7551 ## Report this to bug-autoconf@gnu.org. ##
7552 ## ------------------------------------ ##
7553 _ASBOX
7554     ) |
7555       sed "s/^/$as_me: WARNING:     /" >&2
7556     ;;
7557   no:yes )
7558     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7560     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7561 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7562     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7564     (
7565       cat <<\_ASBOX
7566 ## ------------------------------------ ##
7567 ## Report this to bug-autoconf@gnu.org. ##
7568 ## ------------------------------------ ##
7569 _ASBOX
7570     ) |
7571       sed "s/^/$as_me: WARNING:     /" >&2
7572     ;;
7573 esac
7574 echo "$as_me:$LINENO: checking for $ac_header" >&5
7575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7577   echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579   eval "$as_ac_Header=$ac_header_preproc"
7580 fi
7581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7583
7584 fi
7585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7586   cat >>confdefs.h <<_ACEOF
7587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7588 _ACEOF
7589
7590 fi
7591
7592 done
7593
7594         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
7595         then
7596
7597 for ac_header in GL/glext.h
7598 do
7599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7600 echo "$as_me:$LINENO: checking for $ac_header" >&5
7601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7603   echo $ECHO_N "(cached) $ECHO_C" >&6
7604 else
7605   cat >conftest.$ac_ext <<_ACEOF
7606 #line $LINENO "configure"
7607 /* confdefs.h.  */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h.  */
7612 #include <GL/glx.h>
7613
7614 #include <$ac_header>
7615 _ACEOF
7616 rm -f conftest.$ac_objext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7618   (eval $ac_compile) 2>&5
7619   ac_status=$?
7620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621   (exit $ac_status); } &&
7622          { ac_try='test -s conftest.$ac_objext'
7623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624   (eval $ac_try) 2>&5
7625   ac_status=$?
7626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627   (exit $ac_status); }; }; then
7628   eval "$as_ac_Header=yes"
7629 else
7630   echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7632
7633 eval "$as_ac_Header=no"
7634 fi
7635 rm -f conftest.$ac_objext conftest.$ac_ext
7636 fi
7637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7640   cat >>confdefs.h <<_ACEOF
7641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7642 _ACEOF
7643
7644 fi
7645
7646 done
7647
7648                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7649 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7650 if test "${wine_cv_opengl_version_OK+set}" = set; then
7651   echo $ECHO_N "(cached) $ECHO_C" >&6
7652 else
7653   cat >conftest.$ac_ext <<_ACEOF
7654 #line $LINENO "configure"
7655 /* confdefs.h.  */
7656 _ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h.  */
7660 #include <GL/gl.h>
7661 int
7662 main ()
7663 {
7664 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7665   ;
7666   return 0;
7667 }
7668 _ACEOF
7669 rm -f conftest.$ac_objext
7670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7671   (eval $ac_compile) 2>&5
7672   ac_status=$?
7673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674   (exit $ac_status); } &&
7675          { ac_try='test -s conftest.$ac_objext'
7676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677   (eval $ac_try) 2>&5
7678   ac_status=$?
7679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680   (exit $ac_status); }; }; then
7681   wine_cv_opengl_version_OK="yes"
7682 else
7683   echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7685
7686 wine_cv_opengl_version_OK="no"
7687
7688 fi
7689 rm -f conftest.$ac_objext conftest.$ac_ext
7690
7691 fi
7692 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7693 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7694
7695             if test "$wine_cv_opengl_version_OK" = "yes"
7696             then
7697                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7698 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7699 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7700   echo $ECHO_N "(cached) $ECHO_C" >&6
7701 else
7702   ac_check_lib_save_LIBS=$LIBS
7703 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7704 cat >conftest.$ac_ext <<_ACEOF
7705 #line $LINENO "configure"
7706 /* confdefs.h.  */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h.  */
7711
7712 /* Override any gcc2 internal prototype to avoid an error.  */
7713 #ifdef __cplusplus
7714 extern "C"
7715 #endif
7716 /* We use char because int might match the return type of a gcc2
7717    builtin and then its argument prototype would still apply.  */
7718 char glXCreateContext ();
7719 int
7720 main ()
7721 {
7722 glXCreateContext ();
7723   ;
7724   return 0;
7725 }
7726 _ACEOF
7727 rm -f conftest.$ac_objext conftest$ac_exeext
7728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7729   (eval $ac_link) 2>&5
7730   ac_status=$?
7731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732   (exit $ac_status); } &&
7733          { ac_try='test -s conftest$ac_exeext'
7734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735   (eval $ac_try) 2>&5
7736   ac_status=$?
7737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738   (exit $ac_status); }; }; then
7739   ac_cv_lib_GL_glXCreateContext=yes
7740 else
7741   echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7743
7744 ac_cv_lib_GL_glXCreateContext=no
7745 fi
7746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7747 LIBS=$ac_check_lib_save_LIBS
7748 fi
7749 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7750 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7751 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7752   OPENGL_LIBS="-lGL"
7753
7754 fi
7755
7756
7757                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7758                 then
7759                         OPENGLFILES='$(OPENGLFILES)'
7760
7761 cat >>confdefs.h <<\_ACEOF
7762 #define HAVE_OPENGL 1
7763 _ACEOF
7764
7765
7766                         echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7767 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7768 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7769   echo $ECHO_N "(cached) $ECHO_C" >&6
7770 else
7771   ac_check_lib_save_LIBS=$LIBS
7772 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7773 cat >conftest.$ac_ext <<_ACEOF
7774 #line $LINENO "configure"
7775 /* confdefs.h.  */
7776 _ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h.  */
7780
7781 /* Override any gcc2 internal prototype to avoid an error.  */
7782 #ifdef __cplusplus
7783 extern "C"
7784 #endif
7785 /* We use char because int might match the return type of a gcc2
7786    builtin and then its argument prototype would still apply.  */
7787 char glXGetProcAddressARB ();
7788 int
7789 main ()
7790 {
7791 glXGetProcAddressARB ();
7792   ;
7793   return 0;
7794 }
7795 _ACEOF
7796 rm -f conftest.$ac_objext conftest$ac_exeext
7797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7798   (eval $ac_link) 2>&5
7799   ac_status=$?
7800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801   (exit $ac_status); } &&
7802          { ac_try='test -s conftest$ac_exeext'
7803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804   (eval $ac_try) 2>&5
7805   ac_status=$?
7806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807   (exit $ac_status); }; }; then
7808   ac_cv_lib_GL_glXGetProcAddressARB=yes
7809 else
7810   echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7812
7813 ac_cv_lib_GL_glXGetProcAddressARB=no
7814 fi
7815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7816 LIBS=$ac_check_lib_save_LIBS
7817 fi
7818 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7819 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7820 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7821
7822 cat >>confdefs.h <<\_ACEOF
7823 #define HAVE_GLX_GETPROCADDRESS 1
7824 _ACEOF
7825
7826 fi
7827
7828
7829                         if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7830                         then
7831                                echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7832 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7833 if test "${wine_cv_extension_prototypes+set}" = set; then
7834   echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836   cat >conftest.$ac_ext <<_ACEOF
7837 #line $LINENO "configure"
7838 /* confdefs.h.  */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h.  */
7843 #include <GL/gl.h>
7844                                                   #ifdef HAVE_GL_GLEXT_H
7845                                                   # include <GL/glext.h>
7846                                                   #endif
7847
7848 int
7849 main ()
7850 {
7851 PFNGLCOLORTABLEEXTPROC test_proc;
7852   ;
7853   return 0;
7854 }
7855 _ACEOF
7856 rm -f conftest.$ac_objext
7857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7858   (eval $ac_compile) 2>&5
7859   ac_status=$?
7860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861   (exit $ac_status); } &&
7862          { ac_try='test -s conftest.$ac_objext'
7863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864   (eval $ac_try) 2>&5
7865   ac_status=$?
7866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867   (exit $ac_status); }; }; then
7868   wine_cv_extension_prototypes="yes"
7869 else
7870   echo "$as_me: failed program was:" >&5
7871 sed 's/^/| /' conftest.$ac_ext >&5
7872
7873 wine_cv_extension_prototypes="no"
7874
7875 fi
7876 rm -f conftest.$ac_objext conftest.$ac_ext
7877
7878 fi
7879 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7880 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7881                                 if test "$wine_cv_extension_prototypes" = "yes"
7882                                 then
7883
7884 cat >>confdefs.h <<\_ACEOF
7885 #define HAVE_GLEXT_PROTOTYPES 1
7886 _ACEOF
7887
7888                                 fi
7889                         fi
7890
7891                 fi
7892                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7893 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7894 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7895   echo $ECHO_N "(cached) $ECHO_C" >&6
7896 else
7897   ac_check_lib_save_LIBS=$LIBS
7898 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7899                  $LIBS"
7900 cat >conftest.$ac_ext <<_ACEOF
7901 #line $LINENO "configure"
7902 /* confdefs.h.  */
7903 _ACEOF
7904 cat confdefs.h >>conftest.$ac_ext
7905 cat >>conftest.$ac_ext <<_ACEOF
7906 /* end confdefs.h.  */
7907
7908 /* Override any gcc2 internal prototype to avoid an error.  */
7909 #ifdef __cplusplus
7910 extern "C"
7911 #endif
7912 /* We use char because int might match the return type of a gcc2
7913    builtin and then its argument prototype would still apply.  */
7914 char gluLookAt ();
7915 int
7916 main ()
7917 {
7918 gluLookAt ();
7919   ;
7920   return 0;
7921 }
7922 _ACEOF
7923 rm -f conftest.$ac_objext conftest$ac_exeext
7924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7925   (eval $ac_link) 2>&5
7926   ac_status=$?
7927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928   (exit $ac_status); } &&
7929          { ac_try='test -s conftest$ac_exeext'
7930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931   (eval $ac_try) 2>&5
7932   ac_status=$?
7933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934   (exit $ac_status); }; }; then
7935   ac_cv_lib_GLU_gluLookAt=yes
7936 else
7937   echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7939
7940 ac_cv_lib_GLU_gluLookAt=no
7941 fi
7942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7943 LIBS=$ac_check_lib_save_LIBS
7944 fi
7945 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7946 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7947 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7948   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
7949                              GLU32FILES='$(GLU32FILES)'
7950
7951 fi
7952
7953              fi
7954          fi
7955     fi
7956
7957         NASLIBS=""
7958
7959
7960 for ac_header in audio/audiolib.h
7961 do
7962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7964   echo "$as_me:$LINENO: checking for $ac_header" >&5
7965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7967   echo $ECHO_N "(cached) $ECHO_C" >&6
7968 fi
7969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7971 else
7972   # Is the header compilable?
7973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7975 cat >conftest.$ac_ext <<_ACEOF
7976 #line $LINENO "configure"
7977 /* confdefs.h.  */
7978 _ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h.  */
7982 $ac_includes_default
7983 #include <$ac_header>
7984 _ACEOF
7985 rm -f conftest.$ac_objext
7986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7987   (eval $ac_compile) 2>&5
7988   ac_status=$?
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); } &&
7991          { ac_try='test -s conftest.$ac_objext'
7992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993   (eval $ac_try) 2>&5
7994   ac_status=$?
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); }; }; then
7997   ac_header_compiler=yes
7998 else
7999   echo "$as_me: failed program was:" >&5
8000 sed 's/^/| /' conftest.$ac_ext >&5
8001
8002 ac_header_compiler=no
8003 fi
8004 rm -f conftest.$ac_objext conftest.$ac_ext
8005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8006 echo "${ECHO_T}$ac_header_compiler" >&6
8007
8008 # Is the header present?
8009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8011 cat >conftest.$ac_ext <<_ACEOF
8012 #line $LINENO "configure"
8013 /* confdefs.h.  */
8014 _ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h.  */
8018 #include <$ac_header>
8019 _ACEOF
8020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8021   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8022   ac_status=$?
8023   grep -v '^ *+' conftest.er1 >conftest.err
8024   rm -f conftest.er1
8025   cat conftest.err >&5
8026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027   (exit $ac_status); } >/dev/null; then
8028   if test -s conftest.err; then
8029     ac_cpp_err=$ac_c_preproc_warn_flag
8030   else
8031     ac_cpp_err=
8032   fi
8033 else
8034   ac_cpp_err=yes
8035 fi
8036 if test -z "$ac_cpp_err"; then
8037   ac_header_preproc=yes
8038 else
8039   echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8041
8042   ac_header_preproc=no
8043 fi
8044 rm -f conftest.err conftest.$ac_ext
8045 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8046 echo "${ECHO_T}$ac_header_preproc" >&6
8047
8048 # So?  What about this header?
8049 case $ac_header_compiler:$ac_header_preproc in
8050   yes:no )
8051     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8055     (
8056       cat <<\_ASBOX
8057 ## ------------------------------------ ##
8058 ## Report this to bug-autoconf@gnu.org. ##
8059 ## ------------------------------------ ##
8060 _ASBOX
8061     ) |
8062       sed "s/^/$as_me: WARNING:     /" >&2
8063     ;;
8064   no:yes )
8065     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8067     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8069     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8071     (
8072       cat <<\_ASBOX
8073 ## ------------------------------------ ##
8074 ## Report this to bug-autoconf@gnu.org. ##
8075 ## ------------------------------------ ##
8076 _ASBOX
8077     ) |
8078       sed "s/^/$as_me: WARNING:     /" >&2
8079     ;;
8080 esac
8081 echo "$as_me:$LINENO: checking for $ac_header" >&5
8082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8084   echo $ECHO_N "(cached) $ECHO_C" >&6
8085 else
8086   eval "$as_ac_Header=$ac_header_preproc"
8087 fi
8088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8090
8091 fi
8092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8093   cat >>confdefs.h <<_ACEOF
8094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8095 _ACEOF
8096
8097 for ac_header in audio/soundlib.h
8098 do
8099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8100 echo "$as_me:$LINENO: checking for $ac_header" >&5
8101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8103   echo $ECHO_N "(cached) $ECHO_C" >&6
8104 else
8105   cat >conftest.$ac_ext <<_ACEOF
8106 #line $LINENO "configure"
8107 /* confdefs.h.  */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h.  */
8112 #include <audio/audiolib.h>
8113
8114 #include <$ac_header>
8115 _ACEOF
8116 rm -f conftest.$ac_objext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8118   (eval $ac_compile) 2>&5
8119   ac_status=$?
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); } &&
8122          { ac_try='test -s conftest.$ac_objext'
8123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124   (eval $ac_try) 2>&5
8125   ac_status=$?
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); }; }; then
8128   eval "$as_ac_Header=yes"
8129 else
8130   echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8132
8133 eval "$as_ac_Header=no"
8134 fi
8135 rm -f conftest.$ac_objext conftest.$ac_ext
8136 fi
8137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8140   cat >>confdefs.h <<_ACEOF
8141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8142 _ACEOF
8143
8144 fi
8145
8146 done
8147
8148           echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8149 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8150 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8151   echo $ECHO_N "(cached) $ECHO_C" >&6
8152 else
8153   ac_check_lib_save_LIBS=$LIBS
8154 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8155 cat >conftest.$ac_ext <<_ACEOF
8156 #line $LINENO "configure"
8157 /* confdefs.h.  */
8158 _ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h.  */
8162
8163 /* Override any gcc2 internal prototype to avoid an error.  */
8164 #ifdef __cplusplus
8165 extern "C"
8166 #endif
8167 /* We use char because int might match the return type of a gcc2
8168    builtin and then its argument prototype would still apply.  */
8169 char AuCreateFlow ();
8170 int
8171 main ()
8172 {
8173 AuCreateFlow ();
8174   ;
8175   return 0;
8176 }
8177 _ACEOF
8178 rm -f conftest.$ac_objext conftest$ac_exeext
8179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8180   (eval $ac_link) 2>&5
8181   ac_status=$?
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); } &&
8184          { ac_try='test -s conftest$ac_exeext'
8185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186   (eval $ac_try) 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); }; }; then
8190   ac_cv_lib_audio_AuCreateFlow=yes
8191 else
8192   echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8194
8195 ac_cv_lib_audio_AuCreateFlow=no
8196 fi
8197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8198 LIBS=$ac_check_lib_save_LIBS
8199 fi
8200 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8201 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8202 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8203
8204 cat >>confdefs.h <<\_ACEOF
8205 #define HAVE_NAS 1
8206 _ACEOF
8207
8208                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8209 fi
8210
8211 fi
8212
8213 done
8214
8215
8216     CPPFLAGS="$ac_save_CPPFLAGS"
8217     XFILES='$(XFILES)'
8218 else
8219     XLIB=""
8220     X_CFLAGS=""
8221     X_LIBS=""
8222 fi
8223
8224 CURSESLIBS=""
8225 if test "x$with_curses" != "xno"
8226 then
8227
8228 for ac_header in ncurses.h
8229 do
8230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8232   echo "$as_me:$LINENO: checking for $ac_header" >&5
8233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8235   echo $ECHO_N "(cached) $ECHO_C" >&6
8236 fi
8237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8239 else
8240   # Is the header compilable?
8241 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8243 cat >conftest.$ac_ext <<_ACEOF
8244 #line $LINENO "configure"
8245 /* confdefs.h.  */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h.  */
8250 $ac_includes_default
8251 #include <$ac_header>
8252 _ACEOF
8253 rm -f conftest.$ac_objext
8254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8255   (eval $ac_compile) 2>&5
8256   ac_status=$?
8257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258   (exit $ac_status); } &&
8259          { ac_try='test -s conftest.$ac_objext'
8260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261   (eval $ac_try) 2>&5
8262   ac_status=$?
8263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264   (exit $ac_status); }; }; then
8265   ac_header_compiler=yes
8266 else
8267   echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8269
8270 ac_header_compiler=no
8271 fi
8272 rm -f conftest.$ac_objext conftest.$ac_ext
8273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8274 echo "${ECHO_T}$ac_header_compiler" >&6
8275
8276 # Is the header present?
8277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8279 cat >conftest.$ac_ext <<_ACEOF
8280 #line $LINENO "configure"
8281 /* confdefs.h.  */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h.  */
8286 #include <$ac_header>
8287 _ACEOF
8288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8289   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8290   ac_status=$?
8291   grep -v '^ *+' conftest.er1 >conftest.err
8292   rm -f conftest.er1
8293   cat conftest.err >&5
8294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295   (exit $ac_status); } >/dev/null; then
8296   if test -s conftest.err; then
8297     ac_cpp_err=$ac_c_preproc_warn_flag
8298   else
8299     ac_cpp_err=
8300   fi
8301 else
8302   ac_cpp_err=yes
8303 fi
8304 if test -z "$ac_cpp_err"; then
8305   ac_header_preproc=yes
8306 else
8307   echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8309
8310   ac_header_preproc=no
8311 fi
8312 rm -f conftest.err conftest.$ac_ext
8313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8314 echo "${ECHO_T}$ac_header_preproc" >&6
8315
8316 # So?  What about this header?
8317 case $ac_header_compiler:$ac_header_preproc in
8318   yes:no )
8319     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8321     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8323     (
8324       cat <<\_ASBOX
8325 ## ------------------------------------ ##
8326 ## Report this to bug-autoconf@gnu.org. ##
8327 ## ------------------------------------ ##
8328 _ASBOX
8329     ) |
8330       sed "s/^/$as_me: WARNING:     /" >&2
8331     ;;
8332   no:yes )
8333     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8335     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8339     (
8340       cat <<\_ASBOX
8341 ## ------------------------------------ ##
8342 ## Report this to bug-autoconf@gnu.org. ##
8343 ## ------------------------------------ ##
8344 _ASBOX
8345     ) |
8346       sed "s/^/$as_me: WARNING:     /" >&2
8347     ;;
8348 esac
8349 echo "$as_me:$LINENO: checking for $ac_header" >&5
8350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8352   echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354   eval "$as_ac_Header=$ac_header_preproc"
8355 fi
8356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8358
8359 fi
8360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8361   cat >>confdefs.h <<_ACEOF
8362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8363 _ACEOF
8364  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
8365 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8366 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8367   echo $ECHO_N "(cached) $ECHO_C" >&6
8368 else
8369   ac_check_lib_save_LIBS=$LIBS
8370 LIBS="-lncurses  $LIBS"
8371 cat >conftest.$ac_ext <<_ACEOF
8372 #line $LINENO "configure"
8373 /* confdefs.h.  */
8374 _ACEOF
8375 cat confdefs.h >>conftest.$ac_ext
8376 cat >>conftest.$ac_ext <<_ACEOF
8377 /* end confdefs.h.  */
8378
8379 /* Override any gcc2 internal prototype to avoid an error.  */
8380 #ifdef __cplusplus
8381 extern "C"
8382 #endif
8383 /* We use char because int might match the return type of a gcc2
8384    builtin and then its argument prototype would still apply.  */
8385 char waddch ();
8386 int
8387 main ()
8388 {
8389 waddch ();
8390   ;
8391   return 0;
8392 }
8393 _ACEOF
8394 rm -f conftest.$ac_objext conftest$ac_exeext
8395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8396   (eval $ac_link) 2>&5
8397   ac_status=$?
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); } &&
8400          { ac_try='test -s conftest$ac_exeext'
8401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402   (eval $ac_try) 2>&5
8403   ac_status=$?
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); }; }; then
8406   ac_cv_lib_ncurses_waddch=yes
8407 else
8408   echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8410
8411 ac_cv_lib_ncurses_waddch=no
8412 fi
8413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8414 LIBS=$ac_check_lib_save_LIBS
8415 fi
8416 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
8417 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8418 if test $ac_cv_lib_ncurses_waddch = yes; then
8419
8420 cat >>confdefs.h <<\_ACEOF
8421 #define HAVE_LIBNCURSES 1
8422 _ACEOF
8423
8424              CURSESLIBS="-lncurses"
8425 else
8426
8427 for ac_header in curses.h
8428 do
8429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8431   echo "$as_me:$LINENO: checking for $ac_header" >&5
8432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8434   echo $ECHO_N "(cached) $ECHO_C" >&6
8435 fi
8436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8438 else
8439   # Is the header compilable?
8440 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8442 cat >conftest.$ac_ext <<_ACEOF
8443 #line $LINENO "configure"
8444 /* confdefs.h.  */
8445 _ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h.  */
8449 $ac_includes_default
8450 #include <$ac_header>
8451 _ACEOF
8452 rm -f conftest.$ac_objext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8454   (eval $ac_compile) 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); } &&
8458          { ac_try='test -s conftest.$ac_objext'
8459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460   (eval $ac_try) 2>&5
8461   ac_status=$?
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); }; }; then
8464   ac_header_compiler=yes
8465 else
8466   echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8468
8469 ac_header_compiler=no
8470 fi
8471 rm -f conftest.$ac_objext conftest.$ac_ext
8472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8473 echo "${ECHO_T}$ac_header_compiler" >&6
8474
8475 # Is the header present?
8476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8478 cat >conftest.$ac_ext <<_ACEOF
8479 #line $LINENO "configure"
8480 /* confdefs.h.  */
8481 _ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h.  */
8485 #include <$ac_header>
8486 _ACEOF
8487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8488   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8489   ac_status=$?
8490   grep -v '^ *+' conftest.er1 >conftest.err
8491   rm -f conftest.er1
8492   cat conftest.err >&5
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); } >/dev/null; then
8495   if test -s conftest.err; then
8496     ac_cpp_err=$ac_c_preproc_warn_flag
8497   else
8498     ac_cpp_err=
8499   fi
8500 else
8501   ac_cpp_err=yes
8502 fi
8503 if test -z "$ac_cpp_err"; then
8504   ac_header_preproc=yes
8505 else
8506   echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8508
8509   ac_header_preproc=no
8510 fi
8511 rm -f conftest.err conftest.$ac_ext
8512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8513 echo "${ECHO_T}$ac_header_preproc" >&6
8514
8515 # So?  What about this header?
8516 case $ac_header_compiler:$ac_header_preproc in
8517   yes:no )
8518     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8520     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8522     (
8523       cat <<\_ASBOX
8524 ## ------------------------------------ ##
8525 ## Report this to bug-autoconf@gnu.org. ##
8526 ## ------------------------------------ ##
8527 _ASBOX
8528     ) |
8529       sed "s/^/$as_me: WARNING:     /" >&2
8530     ;;
8531   no:yes )
8532     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8534     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8538     (
8539       cat <<\_ASBOX
8540 ## ------------------------------------ ##
8541 ## Report this to bug-autoconf@gnu.org. ##
8542 ## ------------------------------------ ##
8543 _ASBOX
8544     ) |
8545       sed "s/^/$as_me: WARNING:     /" >&2
8546     ;;
8547 esac
8548 echo "$as_me:$LINENO: checking for $ac_header" >&5
8549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8551   echo $ECHO_N "(cached) $ECHO_C" >&6
8552 else
8553   eval "$as_ac_Header=$ac_header_preproc"
8554 fi
8555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8557
8558 fi
8559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8560   cat >>confdefs.h <<_ACEOF
8561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8562 _ACEOF
8563  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
8564 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8565 if test "${ac_cv_lib_curses_waddch+set}" = set; then
8566   echo $ECHO_N "(cached) $ECHO_C" >&6
8567 else
8568   ac_check_lib_save_LIBS=$LIBS
8569 LIBS="-lcurses  $LIBS"
8570 cat >conftest.$ac_ext <<_ACEOF
8571 #line $LINENO "configure"
8572 /* confdefs.h.  */
8573 _ACEOF
8574 cat confdefs.h >>conftest.$ac_ext
8575 cat >>conftest.$ac_ext <<_ACEOF
8576 /* end confdefs.h.  */
8577
8578 /* Override any gcc2 internal prototype to avoid an error.  */
8579 #ifdef __cplusplus
8580 extern "C"
8581 #endif
8582 /* We use char because int might match the return type of a gcc2
8583    builtin and then its argument prototype would still apply.  */
8584 char waddch ();
8585 int
8586 main ()
8587 {
8588 waddch ();
8589   ;
8590   return 0;
8591 }
8592 _ACEOF
8593 rm -f conftest.$ac_objext conftest$ac_exeext
8594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8595   (eval $ac_link) 2>&5
8596   ac_status=$?
8597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598   (exit $ac_status); } &&
8599          { ac_try='test -s conftest$ac_exeext'
8600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601   (eval $ac_try) 2>&5
8602   ac_status=$?
8603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   (exit $ac_status); }; }; then
8605   ac_cv_lib_curses_waddch=yes
8606 else
8607   echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610 ac_cv_lib_curses_waddch=no
8611 fi
8612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8613 LIBS=$ac_check_lib_save_LIBS
8614 fi
8615 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
8616 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
8617 if test $ac_cv_lib_curses_waddch = yes; then
8618
8619 cat >>confdefs.h <<\_ACEOF
8620 #define HAVE_LIBCURSES 1
8621 _ACEOF
8622
8623                       CURSESLIBS="-lcurses"
8624 fi
8625
8626 fi
8627
8628 done
8629
8630 fi
8631
8632 fi
8633
8634 done
8635
8636     saved_libs="$LIBS"
8637     LIBS="$CURSESLIBS $LIBS"
8638
8639
8640 for ac_func in getbkgd resizeterm
8641 do
8642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8643 echo "$as_me:$LINENO: checking for $ac_func" >&5
8644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8645 if eval "test \"\${$as_ac_var+set}\" = set"; then
8646   echo $ECHO_N "(cached) $ECHO_C" >&6
8647 else
8648   cat >conftest.$ac_ext <<_ACEOF
8649 #line $LINENO "configure"
8650 /* confdefs.h.  */
8651 _ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h.  */
8655 /* System header to define __stub macros and hopefully few prototypes,
8656     which can conflict with char $ac_func (); below.
8657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8658     <limits.h> exists even on freestanding compilers.  */
8659 #ifdef __STDC__
8660 # include <limits.h>
8661 #else
8662 # include <assert.h>
8663 #endif
8664 /* Override any gcc2 internal prototype to avoid an error.  */
8665 #ifdef __cplusplus
8666 extern "C"
8667 {
8668 #endif
8669 /* We use char because int might match the return type of a gcc2
8670    builtin and then its argument prototype would still apply.  */
8671 char $ac_func ();
8672 /* The GNU C library defines this for functions which it implements
8673     to always fail with ENOSYS.  Some functions are actually named
8674     something starting with __ and the normal name is an alias.  */
8675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8676 choke me
8677 #else
8678 char (*f) () = $ac_func;
8679 #endif
8680 #ifdef __cplusplus
8681 }
8682 #endif
8683
8684 int
8685 main ()
8686 {
8687 return f != $ac_func;
8688   ;
8689   return 0;
8690 }
8691 _ACEOF
8692 rm -f conftest.$ac_objext conftest$ac_exeext
8693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8694   (eval $ac_link) 2>&5
8695   ac_status=$?
8696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697   (exit $ac_status); } &&
8698          { ac_try='test -s conftest$ac_exeext'
8699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700   (eval $ac_try) 2>&5
8701   ac_status=$?
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); }; }; then
8704   eval "$as_ac_var=yes"
8705 else
8706   echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8708
8709 eval "$as_ac_var=no"
8710 fi
8711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8712 fi
8713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8715 if test `eval echo '${'$as_ac_var'}'` = yes; then
8716   cat >>confdefs.h <<_ACEOF
8717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8718 _ACEOF
8719
8720 fi
8721 done
8722
8723     LIBS="$saved_libs"
8724 fi
8725
8726
8727 # Extract the first word of "sane-config", so it can be a program name with args.
8728 set dummy sane-config; ac_word=$2
8729 echo "$as_me:$LINENO: checking for $ac_word" >&5
8730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8731 if test "${ac_cv_prog_sane_devel+set}" = set; then
8732   echo $ECHO_N "(cached) $ECHO_C" >&6
8733 else
8734   if test -n "$sane_devel"; then
8735   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8736 else
8737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738 for as_dir in $PATH
8739 do
8740   IFS=$as_save_IFS
8741   test -z "$as_dir" && as_dir=.
8742   for ac_exec_ext in '' $ac_executable_extensions; do
8743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8744     ac_cv_prog_sane_devel="sane-config"
8745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8746     break 2
8747   fi
8748 done
8749 done
8750
8751   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8752 fi
8753 fi
8754 sane_devel=$ac_cv_prog_sane_devel
8755 if test -n "$sane_devel"; then
8756   echo "$as_me:$LINENO: result: $sane_devel" >&5
8757 echo "${ECHO_T}$sane_devel" >&6
8758 else
8759   echo "$as_me:$LINENO: result: no" >&5
8760 echo "${ECHO_T}no" >&6
8761 fi
8762
8763 if test "$sane_devel" = "no"
8764 then
8765     SANELIBS=""
8766     SANEINCL=""
8767 else
8768     SANELIBS="`$sane_devel --libs`"
8769     SANEINCL="`$sane_devel --cflags`"
8770     ac_save_CPPFLAGS="$CPPFLAGS"
8771     ac_save_LIBS="$LIBS"
8772     CPPFLAGS="$CPPFLAGS $SANEINCL"
8773     LIBS="$LIBS $SANELIBS"
8774     if test "${ac_cv_header_sane_sane_h+set}" = set; then
8775   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8776 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8777 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8778   echo $ECHO_N "(cached) $ECHO_C" >&6
8779 fi
8780 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8781 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8782 else
8783   # Is the header compilable?
8784 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8785 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8786 cat >conftest.$ac_ext <<_ACEOF
8787 #line $LINENO "configure"
8788 /* confdefs.h.  */
8789 _ACEOF
8790 cat confdefs.h >>conftest.$ac_ext
8791 cat >>conftest.$ac_ext <<_ACEOF
8792 /* end confdefs.h.  */
8793 $ac_includes_default
8794 #include <sane/sane.h>
8795 _ACEOF
8796 rm -f conftest.$ac_objext
8797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8798   (eval $ac_compile) 2>&5
8799   ac_status=$?
8800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); } &&
8802          { ac_try='test -s conftest.$ac_objext'
8803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804   (eval $ac_try) 2>&5
8805   ac_status=$?
8806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807   (exit $ac_status); }; }; then
8808   ac_header_compiler=yes
8809 else
8810   echo "$as_me: failed program was:" >&5
8811 sed 's/^/| /' conftest.$ac_ext >&5
8812
8813 ac_header_compiler=no
8814 fi
8815 rm -f conftest.$ac_objext conftest.$ac_ext
8816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8817 echo "${ECHO_T}$ac_header_compiler" >&6
8818
8819 # Is the header present?
8820 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8821 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8822 cat >conftest.$ac_ext <<_ACEOF
8823 #line $LINENO "configure"
8824 /* confdefs.h.  */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h.  */
8829 #include <sane/sane.h>
8830 _ACEOF
8831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8832   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8833   ac_status=$?
8834   grep -v '^ *+' conftest.er1 >conftest.err
8835   rm -f conftest.er1
8836   cat conftest.err >&5
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); } >/dev/null; then
8839   if test -s conftest.err; then
8840     ac_cpp_err=$ac_c_preproc_warn_flag
8841   else
8842     ac_cpp_err=
8843   fi
8844 else
8845   ac_cpp_err=yes
8846 fi
8847 if test -z "$ac_cpp_err"; then
8848   ac_header_preproc=yes
8849 else
8850   echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8852
8853   ac_header_preproc=no
8854 fi
8855 rm -f conftest.err conftest.$ac_ext
8856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8857 echo "${ECHO_T}$ac_header_preproc" >&6
8858
8859 # So?  What about this header?
8860 case $ac_header_compiler:$ac_header_preproc in
8861   yes:no )
8862     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8863 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8864     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8865 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8866     (
8867       cat <<\_ASBOX
8868 ## ------------------------------------ ##
8869 ## Report this to bug-autoconf@gnu.org. ##
8870 ## ------------------------------------ ##
8871 _ASBOX
8872     ) |
8873       sed "s/^/$as_me: WARNING:     /" >&2
8874     ;;
8875   no:yes )
8876     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8877 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8878     { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8879 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8880     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8881 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8882     (
8883       cat <<\_ASBOX
8884 ## ------------------------------------ ##
8885 ## Report this to bug-autoconf@gnu.org. ##
8886 ## ------------------------------------ ##
8887 _ASBOX
8888     ) |
8889       sed "s/^/$as_me: WARNING:     /" >&2
8890     ;;
8891 esac
8892 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8893 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8894 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8895   echo $ECHO_N "(cached) $ECHO_C" >&6
8896 else
8897   ac_cv_header_sane_sane_h=$ac_header_preproc
8898 fi
8899 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8900 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8901
8902 fi
8903 if test $ac_cv_header_sane_sane_h = yes; then
8904   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8905 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8906 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8907   echo $ECHO_N "(cached) $ECHO_C" >&6
8908 else
8909   ac_check_lib_save_LIBS=$LIBS
8910 LIBS="-lsane  $LIBS"
8911 cat >conftest.$ac_ext <<_ACEOF
8912 #line $LINENO "configure"
8913 /* confdefs.h.  */
8914 _ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h.  */
8918
8919 /* Override any gcc2 internal prototype to avoid an error.  */
8920 #ifdef __cplusplus
8921 extern "C"
8922 #endif
8923 /* We use char because int might match the return type of a gcc2
8924    builtin and then its argument prototype would still apply.  */
8925 char sane_open ();
8926 int
8927 main ()
8928 {
8929 sane_open ();
8930   ;
8931   return 0;
8932 }
8933 _ACEOF
8934 rm -f conftest.$ac_objext conftest$ac_exeext
8935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8936   (eval $ac_link) 2>&5
8937   ac_status=$?
8938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939   (exit $ac_status); } &&
8940          { ac_try='test -s conftest$ac_exeext'
8941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942   (eval $ac_try) 2>&5
8943   ac_status=$?
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); }; }; then
8946   ac_cv_lib_sane_sane_open=yes
8947 else
8948   echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8950
8951 ac_cv_lib_sane_sane_open=no
8952 fi
8953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8954 LIBS=$ac_check_lib_save_LIBS
8955 fi
8956 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8957 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8958 if test $ac_cv_lib_sane_sane_open = yes; then
8959
8960 cat >>confdefs.h <<\_ACEOF
8961 #define HAVE_SANE 1
8962 _ACEOF
8963
8964 else
8965   SANELIBS=""
8966                                   SANEINCL=""
8967 fi
8968
8969 else
8970   SANELIBS=""
8971                     SANEINCL=""
8972 fi
8973
8974
8975     LIBS="$ac_save_LIBS"
8976     CPPFLAGS="$ac_save_CPPFLAGS"
8977 fi
8978
8979
8980
8981
8982 for ac_header in unicode/ubidi.h
8983 do
8984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8986   echo "$as_me:$LINENO: checking for $ac_header" >&5
8987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8989   echo $ECHO_N "(cached) $ECHO_C" >&6
8990 fi
8991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8993 else
8994   # Is the header compilable?
8995 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8997 cat >conftest.$ac_ext <<_ACEOF
8998 #line $LINENO "configure"
8999 /* confdefs.h.  */
9000 _ACEOF
9001 cat confdefs.h >>conftest.$ac_ext
9002 cat >>conftest.$ac_ext <<_ACEOF
9003 /* end confdefs.h.  */
9004 $ac_includes_default
9005 #include <$ac_header>
9006 _ACEOF
9007 rm -f conftest.$ac_objext
9008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9009   (eval $ac_compile) 2>&5
9010   ac_status=$?
9011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012   (exit $ac_status); } &&
9013          { ac_try='test -s conftest.$ac_objext'
9014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015   (eval $ac_try) 2>&5
9016   ac_status=$?
9017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018   (exit $ac_status); }; }; then
9019   ac_header_compiler=yes
9020 else
9021   echo "$as_me: failed program was:" >&5
9022 sed 's/^/| /' conftest.$ac_ext >&5
9023
9024 ac_header_compiler=no
9025 fi
9026 rm -f conftest.$ac_objext conftest.$ac_ext
9027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9028 echo "${ECHO_T}$ac_header_compiler" >&6
9029
9030 # Is the header present?
9031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9033 cat >conftest.$ac_ext <<_ACEOF
9034 #line $LINENO "configure"
9035 /* confdefs.h.  */
9036 _ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h.  */
9040 #include <$ac_header>
9041 _ACEOF
9042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9043   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9044   ac_status=$?
9045   grep -v '^ *+' conftest.er1 >conftest.err
9046   rm -f conftest.er1
9047   cat conftest.err >&5
9048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049   (exit $ac_status); } >/dev/null; then
9050   if test -s conftest.err; then
9051     ac_cpp_err=$ac_c_preproc_warn_flag
9052   else
9053     ac_cpp_err=
9054   fi
9055 else
9056   ac_cpp_err=yes
9057 fi
9058 if test -z "$ac_cpp_err"; then
9059   ac_header_preproc=yes
9060 else
9061   echo "$as_me: failed program was:" >&5
9062 sed 's/^/| /' conftest.$ac_ext >&5
9063
9064   ac_header_preproc=no
9065 fi
9066 rm -f conftest.err conftest.$ac_ext
9067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9068 echo "${ECHO_T}$ac_header_preproc" >&6
9069
9070 # So?  What about this header?
9071 case $ac_header_compiler:$ac_header_preproc in
9072   yes:no )
9073     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9077     (
9078       cat <<\_ASBOX
9079 ## ------------------------------------ ##
9080 ## Report this to bug-autoconf@gnu.org. ##
9081 ## ------------------------------------ ##
9082 _ASBOX
9083     ) |
9084       sed "s/^/$as_me: WARNING:     /" >&2
9085     ;;
9086   no:yes )
9087     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9089     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9090 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9093     (
9094       cat <<\_ASBOX
9095 ## ------------------------------------ ##
9096 ## Report this to bug-autoconf@gnu.org. ##
9097 ## ------------------------------------ ##
9098 _ASBOX
9099     ) |
9100       sed "s/^/$as_me: WARNING:     /" >&2
9101     ;;
9102 esac
9103 echo "$as_me:$LINENO: checking for $ac_header" >&5
9104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9106   echo $ECHO_N "(cached) $ECHO_C" >&6
9107 else
9108   eval "$as_ac_Header=$ac_header_preproc"
9109 fi
9110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9112
9113 fi
9114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9115   cat >>confdefs.h <<_ACEOF
9116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9117 _ACEOF
9118
9119 fi
9120
9121 done
9122
9123 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9124 then
9125     echo "$as_me:$LINENO: checking whether we can statically link the ICU libraries" >&5
9126 echo $ECHO_N "checking whether we can statically link the ICU libraries... $ECHO_C" >&6
9127 if test "${ac_cv_lib_icu+set}" = set; then
9128   echo $ECHO_N "(cached) $ECHO_C" >&6
9129 else
9130   saved_libs="$LIBS"
9131          ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
9132          ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}"
9133          ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}"
9134          LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9135          cat >conftest.$ac_ext <<_ACEOF
9136 #line $LINENO "configure"
9137 /* confdefs.h.  */
9138 _ACEOF
9139 cat confdefs.h >>conftest.$ac_ext
9140 cat >>conftest.$ac_ext <<_ACEOF
9141 /* end confdefs.h.  */
9142 #include <unicode/ubidi.h>
9143 int
9144 main ()
9145 {
9146 ubidi_open()
9147   ;
9148   return 0;
9149 }
9150 _ACEOF
9151 rm -f conftest.$ac_objext conftest$ac_exeext
9152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9153   (eval $ac_link) 2>&5
9154   ac_status=$?
9155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156   (exit $ac_status); } &&
9157          { ac_try='test -s conftest$ac_exeext'
9158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159   (eval $ac_try) 2>&5
9160   ac_status=$?
9161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162   (exit $ac_status); }; }; then
9163   ac_cv_lib_icu="yes"
9164 else
9165   echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9167
9168 ac_cv_lib_icu="no"
9169 fi
9170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9171         LIBS="$saved_libs"
9172 fi
9173 echo "$as_me:$LINENO: result: $ac_cv_lib_icu" >&5
9174 echo "${ECHO_T}$ac_cv_lib_icu" >&6
9175     if test "$ac_cv_lib_icu" = "yes"
9176     then
9177
9178 cat >>confdefs.h <<\_ACEOF
9179 #define HAVE_ICU 1
9180 _ACEOF
9181
9182         ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9183
9184     fi
9185 fi
9186
9187 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
9188 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9189 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9190   echo $ECHO_N "(cached) $ECHO_C" >&6
9191 else
9192   ac_check_lib_save_LIBS=$LIBS
9193 LIBS="-lfreetype $X_LIBS $LIBS"
9194 cat >conftest.$ac_ext <<_ACEOF
9195 #line $LINENO "configure"
9196 /* confdefs.h.  */
9197 _ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h.  */
9201
9202 /* Override any gcc2 internal prototype to avoid an error.  */
9203 #ifdef __cplusplus
9204 extern "C"
9205 #endif
9206 /* We use char because int might match the return type of a gcc2
9207    builtin and then its argument prototype would still apply.  */
9208 char FT_Init_FreeType ();
9209 int
9210 main ()
9211 {
9212 FT_Init_FreeType ();
9213   ;
9214   return 0;
9215 }
9216 _ACEOF
9217 rm -f conftest.$ac_objext conftest$ac_exeext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219   (eval $ac_link) 2>&5
9220   ac_status=$?
9221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222   (exit $ac_status); } &&
9223          { ac_try='test -s conftest$ac_exeext'
9224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225   (eval $ac_try) 2>&5
9226   ac_status=$?
9227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228   (exit $ac_status); }; }; then
9229   ac_cv_lib_freetype_FT_Init_FreeType=yes
9230 else
9231   echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9233
9234 ac_cv_lib_freetype_FT_Init_FreeType=no
9235 fi
9236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9237 LIBS=$ac_check_lib_save_LIBS
9238 fi
9239 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
9240 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
9241 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
9242   ft_lib=yes
9243 else
9244   ft_lib=no
9245 fi
9246
9247 if test "$ft_lib" = "no"
9248 then
9249     FREETYPEINCL=""
9250     wine_cv_msg_freetype=no
9251 else
9252     # Extract the first word of "freetype-config", so it can be a program name with args.
9253 set dummy freetype-config; ac_word=$2
9254 echo "$as_me:$LINENO: checking for $ac_word" >&5
9255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9256 if test "${ac_cv_prog_ft_devel+set}" = set; then
9257   echo $ECHO_N "(cached) $ECHO_C" >&6
9258 else
9259   if test -n "$ft_devel"; then
9260   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9261 else
9262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9263 for as_dir in $PATH
9264 do
9265   IFS=$as_save_IFS
9266   test -z "$as_dir" && as_dir=.
9267   for ac_exec_ext in '' $ac_executable_extensions; do
9268   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9269     ac_cv_prog_ft_devel="freetype-config"
9270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9271     break 2
9272   fi
9273 done
9274 done
9275
9276   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
9277 fi
9278 fi
9279 ft_devel=$ac_cv_prog_ft_devel
9280 if test -n "$ft_devel"; then
9281   echo "$as_me:$LINENO: result: $ft_devel" >&5
9282 echo "${ECHO_T}$ft_devel" >&6
9283 else
9284   echo "$as_me:$LINENO: result: no" >&5
9285 echo "${ECHO_T}no" >&6
9286 fi
9287
9288     if test "$ft_devel" = "no"
9289     then
9290         # Extract the first word of "freetype2-config", so it can be a program name with args.
9291 set dummy freetype2-config; ac_word=$2
9292 echo "$as_me:$LINENO: checking for $ac_word" >&5
9293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9294 if test "${ac_cv_prog_ft_devel2+set}" = set; then
9295   echo $ECHO_N "(cached) $ECHO_C" >&6
9296 else
9297   if test -n "$ft_devel2"; then
9298   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9299 else
9300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9301 for as_dir in $PATH
9302 do
9303   IFS=$as_save_IFS
9304   test -z "$as_dir" && as_dir=.
9305   for ac_exec_ext in '' $ac_executable_extensions; do
9306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9307     ac_cv_prog_ft_devel2="freetype2-config"
9308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9309     break 2
9310   fi
9311 done
9312 done
9313
9314   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9315 fi
9316 fi
9317 ft_devel2=$ac_cv_prog_ft_devel2
9318 if test -n "$ft_devel2"; then
9319   echo "$as_me:$LINENO: result: $ft_devel2" >&5
9320 echo "${ECHO_T}$ft_devel2" >&6
9321 else
9322   echo "$as_me:$LINENO: result: no" >&5
9323 echo "${ECHO_T}no" >&6
9324 fi
9325
9326         if test "$ft_devel2" = "freetype2-config"
9327         then
9328                 ft_devel=$ft_devel2
9329         fi
9330     fi
9331     if test "$ft_devel" = "no"
9332     then
9333         FREETYPEINCL=""
9334         wine_cv_msg_freetype=yes
9335     else
9336         FREETYPEINCL=`$ft_devel --cflags`
9337         ac_save_CPPFLAGS="$CPPFLAGS"
9338         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
9339
9340
9341
9342
9343
9344
9345
9346
9347 for ac_header in freetype/freetype.h \
9348                          freetype/ftglyph.h \
9349                          freetype/tttables.h \
9350                          freetype/ftnames.h \
9351                          freetype/ftsnames.h \
9352                          freetype/ttnameid.h \
9353                          freetype/ftoutln.h \
9354                          freetype/internal/sfnt.h
9355 do
9356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9358   echo "$as_me:$LINENO: checking for $ac_header" >&5
9359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9361   echo $ECHO_N "(cached) $ECHO_C" >&6
9362 fi
9363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9365 else
9366   # Is the header compilable?
9367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9369 cat >conftest.$ac_ext <<_ACEOF
9370 #line $LINENO "configure"
9371 /* confdefs.h.  */
9372 _ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h.  */
9376 $ac_includes_default
9377 #include <$ac_header>
9378 _ACEOF
9379 rm -f conftest.$ac_objext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381   (eval $ac_compile) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); } &&
9385          { ac_try='test -s conftest.$ac_objext'
9386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387   (eval $ac_try) 2>&5
9388   ac_status=$?
9389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390   (exit $ac_status); }; }; then
9391   ac_header_compiler=yes
9392 else
9393   echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9395
9396 ac_header_compiler=no
9397 fi
9398 rm -f conftest.$ac_objext conftest.$ac_ext
9399 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9400 echo "${ECHO_T}$ac_header_compiler" >&6
9401
9402 # Is the header present?
9403 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9405 cat >conftest.$ac_ext <<_ACEOF
9406 #line $LINENO "configure"
9407 /* confdefs.h.  */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h.  */
9412 #include <$ac_header>
9413 _ACEOF
9414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9415   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9416   ac_status=$?
9417   grep -v '^ *+' conftest.er1 >conftest.err
9418   rm -f conftest.er1
9419   cat conftest.err >&5
9420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421   (exit $ac_status); } >/dev/null; then
9422   if test -s conftest.err; then
9423     ac_cpp_err=$ac_c_preproc_warn_flag
9424   else
9425     ac_cpp_err=
9426   fi
9427 else
9428   ac_cpp_err=yes
9429 fi
9430 if test -z "$ac_cpp_err"; then
9431   ac_header_preproc=yes
9432 else
9433   echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9435
9436   ac_header_preproc=no
9437 fi
9438 rm -f conftest.err conftest.$ac_ext
9439 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9440 echo "${ECHO_T}$ac_header_preproc" >&6
9441
9442 # So?  What about this header?
9443 case $ac_header_compiler:$ac_header_preproc in
9444   yes:no )
9445     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9449     (
9450       cat <<\_ASBOX
9451 ## ------------------------------------ ##
9452 ## Report this to bug-autoconf@gnu.org. ##
9453 ## ------------------------------------ ##
9454 _ASBOX
9455     ) |
9456       sed "s/^/$as_me: WARNING:     /" >&2
9457     ;;
9458   no:yes )
9459     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9461     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9465     (
9466       cat <<\_ASBOX
9467 ## ------------------------------------ ##
9468 ## Report this to bug-autoconf@gnu.org. ##
9469 ## ------------------------------------ ##
9470 _ASBOX
9471     ) |
9472       sed "s/^/$as_me: WARNING:     /" >&2
9473     ;;
9474 esac
9475 echo "$as_me:$LINENO: checking for $ac_header" >&5
9476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9478   echo $ECHO_N "(cached) $ECHO_C" >&6
9479 else
9480   eval "$as_ac_Header=$ac_header_preproc"
9481 fi
9482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9484
9485 fi
9486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9487   cat >>confdefs.h <<_ACEOF
9488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9489 _ACEOF
9490
9491 fi
9492
9493 done
9494
9495         cat >conftest.$ac_ext <<_ACEOF
9496 #line $LINENO "configure"
9497 /* confdefs.h.  */
9498 _ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h.  */
9502 #include <ft2build.h>
9503                     #include <freetype/fttrigon.h>
9504 _ACEOF
9505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9506   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9507   ac_status=$?
9508   grep -v '^ *+' conftest.er1 >conftest.err
9509   rm -f conftest.er1
9510   cat conftest.err >&5
9511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512   (exit $ac_status); } >/dev/null; then
9513   if test -s conftest.err; then
9514     ac_cpp_err=$ac_c_preproc_warn_flag
9515   else
9516     ac_cpp_err=
9517   fi
9518 else
9519   ac_cpp_err=yes
9520 fi
9521 if test -z "$ac_cpp_err"; then
9522
9523 cat >>confdefs.h <<\_ACEOF
9524 #define HAVE_FREETYPE_FTTRIGON_H 1
9525 _ACEOF
9526
9527                     wine_cv_fttrigon=yes
9528 else
9529   echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9531
9532   wine_cv_fttrigon=no
9533 fi
9534 rm -f conftest.err conftest.$ac_ext
9535         CPPFLAGS="$ac_save_CPPFLAGS"
9536                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
9537         then
9538
9539 cat >>confdefs.h <<\_ACEOF
9540 #define HAVE_FREETYPE 1
9541 _ACEOF
9542
9543             wine_cv_msg_freetype=no
9544         else
9545             FREETYPEINCL=""
9546             wine_cv_msg_freetype=yes
9547         fi
9548     fi
9549 fi
9550
9551
9552 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
9553 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9554 if test "${ac_cv_c_ppdev+set}" = set; then
9555   echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557   cat >conftest.$ac_ext <<_ACEOF
9558 #line $LINENO "configure"
9559 /* confdefs.h.  */
9560 _ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h.  */
9564 #include <linux/ppdev.h>
9565 int
9566 main ()
9567 {
9568 ioctl (1,PPCLAIM,0)
9569   ;
9570   return 0;
9571 }
9572 _ACEOF
9573 rm -f conftest.$ac_objext
9574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9575   (eval $ac_compile) 2>&5
9576   ac_status=$?
9577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578   (exit $ac_status); } &&
9579          { ac_try='test -s conftest.$ac_objext'
9580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581   (eval $ac_try) 2>&5
9582   ac_status=$?
9583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584   (exit $ac_status); }; }; then
9585   ac_cv_c_ppdev="yes"
9586 else
9587   echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.$ac_ext >&5
9589
9590 ac_cv_c_ppdev="no"
9591 fi
9592 rm -f conftest.$ac_objext conftest.$ac_ext
9593
9594 fi
9595 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
9596 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
9597 if test "$ac_cv_c_ppdev" = "yes"
9598 then
9599
9600 cat >>confdefs.h <<\_ACEOF
9601 #define HAVE_PPDEV 1
9602 _ACEOF
9603
9604 fi
9605
9606 echo "$as_me:$LINENO: checking for va_copy" >&5
9607 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9608 if test "${ac_cv_c_va_copy+set}" = set; then
9609   echo $ECHO_N "(cached) $ECHO_C" >&6
9610 else
9611   cat >conftest.$ac_ext <<_ACEOF
9612 #line $LINENO "configure"
9613 /* confdefs.h.  */
9614 _ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h.  */
9618 #include <stdarg.h>
9619 int
9620 main ()
9621 {
9622 va_list ap1, ap2;
9623     va_copy(ap1,ap2);
9624
9625   ;
9626   return 0;
9627 }
9628 _ACEOF
9629 rm -f conftest.$ac_objext conftest$ac_exeext
9630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9631   (eval $ac_link) 2>&5
9632   ac_status=$?
9633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634   (exit $ac_status); } &&
9635          { ac_try='test -s conftest$ac_exeext'
9636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637   (eval $ac_try) 2>&5
9638   ac_status=$?
9639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640   (exit $ac_status); }; }; then
9641   ac_cv_c_va_copy="yes"
9642 else
9643   echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9645
9646 ac_cv_c_va_copy="no"
9647 fi
9648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9649
9650 fi
9651 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
9652 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
9653 if test "$ac_cv_c_va_copy" = "yes"
9654 then
9655
9656 cat >>confdefs.h <<\_ACEOF
9657 #define HAVE_VA_COPY 1
9658 _ACEOF
9659
9660 fi
9661 echo "$as_me:$LINENO: checking for __va_copy" >&5
9662 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9663 if test "${ac_cv_c___va_copy+set}" = set; then
9664   echo $ECHO_N "(cached) $ECHO_C" >&6
9665 else
9666   cat >conftest.$ac_ext <<_ACEOF
9667 #line $LINENO "configure"
9668 /* confdefs.h.  */
9669 _ACEOF
9670 cat confdefs.h >>conftest.$ac_ext
9671 cat >>conftest.$ac_ext <<_ACEOF
9672 /* end confdefs.h.  */
9673 #include <stdarg.h>
9674 int
9675 main ()
9676 {
9677 va_list ap1, ap2;
9678     __va_copy(ap1,ap2);
9679
9680   ;
9681   return 0;
9682 }
9683 _ACEOF
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686   (eval $ac_link) 2>&5
9687   ac_status=$?
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); } &&
9690          { ac_try='test -s conftest$ac_exeext'
9691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692   (eval $ac_try) 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); }; }; then
9696   ac_cv_c___va_copy="yes"
9697 else
9698   echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9700
9701 ac_cv_c___va_copy="no"
9702 fi
9703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9704
9705 fi
9706 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
9707 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
9708 if test "$ac_cv_c___va_copy" = "yes"
9709 then
9710
9711 cat >>confdefs.h <<\_ACEOF
9712 #define HAVE___VA_COPY 1
9713 _ACEOF
9714
9715 fi
9716
9717 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
9718 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
9719 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
9720   echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722   cat >conftest.$ac_ext <<_ACEOF
9723 #line $LINENO "configure"
9724 /* confdefs.h.  */
9725 _ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h.  */
9729 #define _GNU_SOURCE
9730 #include <pthread.h>
9731
9732 int
9733 main ()
9734 {
9735 if ((pthread_rwlock_t *) 0)
9736   return 0;
9737 if (sizeof (pthread_rwlock_t))
9738   return 0;
9739   ;
9740   return 0;
9741 }
9742 _ACEOF
9743 rm -f conftest.$ac_objext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9745   (eval $ac_compile) 2>&5
9746   ac_status=$?
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); } &&
9749          { ac_try='test -s conftest.$ac_objext'
9750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751   (eval $ac_try) 2>&5
9752   ac_status=$?
9753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754   (exit $ac_status); }; }; then
9755   ac_cv_type_pthread_rwlock_t=yes
9756 else
9757   echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9759
9760 ac_cv_type_pthread_rwlock_t=no
9761 fi
9762 rm -f conftest.$ac_objext conftest.$ac_ext
9763 fi
9764 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
9765 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
9766 if test $ac_cv_type_pthread_rwlock_t = yes; then
9767
9768 cat >>confdefs.h <<_ACEOF
9769 #define HAVE_PTHREAD_RWLOCK_T 1
9770 _ACEOF
9771
9772
9773 fi
9774 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
9775 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
9776 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
9777   echo $ECHO_N "(cached) $ECHO_C" >&6
9778 else
9779   cat >conftest.$ac_ext <<_ACEOF
9780 #line $LINENO "configure"
9781 /* confdefs.h.  */
9782 _ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h.  */
9786 #define _GNU_SOURCE
9787 #include <pthread.h>
9788
9789 int
9790 main ()
9791 {
9792 if ((pthread_rwlockattr_t *) 0)
9793   return 0;
9794 if (sizeof (pthread_rwlockattr_t))
9795   return 0;
9796   ;
9797   return 0;
9798 }
9799 _ACEOF
9800 rm -f conftest.$ac_objext
9801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9802   (eval $ac_compile) 2>&5
9803   ac_status=$?
9804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805   (exit $ac_status); } &&
9806          { ac_try='test -s conftest.$ac_objext'
9807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808   (eval $ac_try) 2>&5
9809   ac_status=$?
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); }; }; then
9812   ac_cv_type_pthread_rwlockattr_t=yes
9813 else
9814   echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9816
9817 ac_cv_type_pthread_rwlockattr_t=no
9818 fi
9819 rm -f conftest.$ac_objext conftest.$ac_ext
9820 fi
9821 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
9822 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
9823 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
9824
9825 cat >>confdefs.h <<_ACEOF
9826 #define HAVE_PTHREAD_RWLOCKATTR_T 1
9827 _ACEOF
9828
9829
9830 fi
9831
9832
9833
9834
9835
9836 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
9837 do
9838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9840   echo "$as_me:$LINENO: checking for $ac_header" >&5
9841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9843   echo $ECHO_N "(cached) $ECHO_C" >&6
9844 fi
9845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9847 else
9848   # Is the header compilable?
9849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9851 cat >conftest.$ac_ext <<_ACEOF
9852 #line $LINENO "configure"
9853 /* confdefs.h.  */
9854 _ACEOF
9855 cat confdefs.h >>conftest.$ac_ext
9856 cat >>conftest.$ac_ext <<_ACEOF
9857 /* end confdefs.h.  */
9858 $ac_includes_default
9859 #include <$ac_header>
9860 _ACEOF
9861 rm -f conftest.$ac_objext
9862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9863   (eval $ac_compile) 2>&5
9864   ac_status=$?
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); } &&
9867          { ac_try='test -s conftest.$ac_objext'
9868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869   (eval $ac_try) 2>&5
9870   ac_status=$?
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); }; }; then
9873   ac_header_compiler=yes
9874 else
9875   echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9877
9878 ac_header_compiler=no
9879 fi
9880 rm -f conftest.$ac_objext conftest.$ac_ext
9881 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9882 echo "${ECHO_T}$ac_header_compiler" >&6
9883
9884 # Is the header present?
9885 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9887 cat >conftest.$ac_ext <<_ACEOF
9888 #line $LINENO "configure"
9889 /* confdefs.h.  */
9890 _ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h.  */
9894 #include <$ac_header>
9895 _ACEOF
9896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9897   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9898   ac_status=$?
9899   grep -v '^ *+' conftest.er1 >conftest.err
9900   rm -f conftest.er1
9901   cat conftest.err >&5
9902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903   (exit $ac_status); } >/dev/null; then
9904   if test -s conftest.err; then
9905     ac_cpp_err=$ac_c_preproc_warn_flag
9906   else
9907     ac_cpp_err=
9908   fi
9909 else
9910   ac_cpp_err=yes
9911 fi
9912 if test -z "$ac_cpp_err"; then
9913   ac_header_preproc=yes
9914 else
9915   echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9917
9918   ac_header_preproc=no
9919 fi
9920 rm -f conftest.err conftest.$ac_ext
9921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9922 echo "${ECHO_T}$ac_header_preproc" >&6
9923
9924 # So?  What about this header?
9925 case $ac_header_compiler:$ac_header_preproc in
9926   yes:no )
9927     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9931     (
9932       cat <<\_ASBOX
9933 ## ------------------------------------ ##
9934 ## Report this to bug-autoconf@gnu.org. ##
9935 ## ------------------------------------ ##
9936 _ASBOX
9937     ) |
9938       sed "s/^/$as_me: WARNING:     /" >&2
9939     ;;
9940   no:yes )
9941     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9943     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9944 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9945     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9947     (
9948       cat <<\_ASBOX
9949 ## ------------------------------------ ##
9950 ## Report this to bug-autoconf@gnu.org. ##
9951 ## ------------------------------------ ##
9952 _ASBOX
9953     ) |
9954       sed "s/^/$as_me: WARNING:     /" >&2
9955     ;;
9956 esac
9957 echo "$as_me:$LINENO: checking for $ac_header" >&5
9958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9960   echo $ECHO_N "(cached) $ECHO_C" >&6
9961 else
9962   eval "$as_ac_Header=$ac_header_preproc"
9963 fi
9964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9966
9967 fi
9968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9969   cat >>confdefs.h <<_ACEOF
9970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9971 _ACEOF
9972  break
9973 fi
9974
9975 done
9976
9977
9978 echo "$as_me:$LINENO: checking for Open Sound System" >&5
9979 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
9980 if test "${ac_cv_c_opensoundsystem+set}" = set; then
9981   echo $ECHO_N "(cached) $ECHO_C" >&6
9982 else
9983   cat >conftest.$ac_ext <<_ACEOF
9984 #line $LINENO "configure"
9985 /* confdefs.h.  */
9986 _ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h.  */
9990
9991         #if defined(HAVE_SYS_SOUNDCARD_H)
9992                 #include <sys/soundcard.h>
9993         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
9994                 #include <machine/soundcard.h>
9995         #elif defined(HAVE_SOUNDCARD_H)
9996                 #include <soundcard.h>
9997         #endif
9998
9999 int
10000 main ()
10001 {
10002
10003
10004 /* check for one of the Open Sound System specific SNDCTL_ defines */
10005 #if !defined(SNDCTL_DSP_STEREO)
10006 #error No open sound system
10007 #endif
10008
10009   ;
10010   return 0;
10011 }
10012 _ACEOF
10013 rm -f conftest.$ac_objext
10014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10015   (eval $ac_compile) 2>&5
10016   ac_status=$?
10017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018   (exit $ac_status); } &&
10019          { ac_try='test -s conftest.$ac_objext'
10020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021   (eval $ac_try) 2>&5
10022   ac_status=$?
10023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024   (exit $ac_status); }; }; then
10025   ac_cv_c_opensoundsystem="yes"
10026 else
10027   echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.$ac_ext >&5
10029
10030 ac_cv_c_opensoundsystem="no"
10031 fi
10032 rm -f conftest.$ac_objext conftest.$ac_ext
10033 fi
10034 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
10035 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
10036
10037 if test "$ac_cv_c_opensoundsystem" = "yes"
10038 then
10039
10040 cat >>confdefs.h <<\_ACEOF
10041 #define HAVE_OSS 1
10042 _ACEOF
10043
10044 fi
10045
10046 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
10047 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
10048 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
10049   echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051   cat >conftest.$ac_ext <<_ACEOF
10052 #line $LINENO "configure"
10053 /* confdefs.h.  */
10054 _ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h.  */
10058
10059         #if defined(HAVE_SYS_SOUNDCARD_H)
10060                 #include <sys/soundcard.h>
10061         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10062                 #include <machine/soundcard.h>
10063         #elif defined(HAVE_SOUNDCARD_H)
10064                 #include <soundcard.h>
10065         #endif
10066
10067 int
10068 main ()
10069 {
10070
10071
10072 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
10073 #if !defined(SNDCTL_SEQ_SYNC)
10074 #error No open sound system MIDI interface
10075 #endif
10076
10077   ;
10078   return 0;
10079 }
10080 _ACEOF
10081 rm -f conftest.$ac_objext
10082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10083   (eval $ac_compile) 2>&5
10084   ac_status=$?
10085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086   (exit $ac_status); } &&
10087          { ac_try='test -s conftest.$ac_objext'
10088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089   (eval $ac_try) 2>&5
10090   ac_status=$?
10091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092   (exit $ac_status); }; }; then
10093   ac_cv_c_opensoundsystem_midi="yes"
10094 else
10095   echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10097
10098 ac_cv_c_opensoundsystem_midi="no"
10099 fi
10100 rm -f conftest.$ac_objext conftest.$ac_ext
10101 fi
10102 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
10103 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
10104
10105 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
10106 then
10107
10108 cat >>confdefs.h <<\_ACEOF
10109 #define HAVE_OSS_MIDI 1
10110 _ACEOF
10111
10112 fi
10113
10114 # Extract the first word of "artsc-config", so it can be a program name with args.
10115 set dummy artsc-config; ac_word=$2
10116 echo "$as_me:$LINENO: checking for $ac_word" >&5
10117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10118 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
10119   echo $ECHO_N "(cached) $ECHO_C" >&6
10120 else
10121   case $ARTSCCONFIG in
10122   [\\/]* | ?:[\\/]*)
10123   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
10124   ;;
10125   *)
10126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10127 for as_dir in $PATH
10128 do
10129   IFS=$as_save_IFS
10130   test -z "$as_dir" && as_dir=.
10131   for ac_exec_ext in '' $ac_executable_extensions; do
10132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10133     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
10134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10135     break 2
10136   fi
10137 done
10138 done
10139
10140   ;;
10141 esac
10142 fi
10143 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
10144
10145 if test -n "$ARTSCCONFIG"; then
10146   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
10147 echo "${ECHO_T}$ARTSCCONFIG" >&6
10148 else
10149   echo "$as_me:$LINENO: result: no" >&5
10150 echo "${ECHO_T}no" >&6
10151 fi
10152
10153 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
10154 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
10155 if test "${ac_cv_c_artsserver+set}" = set; then
10156   echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else
10158   if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
10159         then
10160             ac_cv_c_artsserver=no
10161         else
10162             ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
10163             ARTSC_LIBS=`$ARTSCCONFIG --libs`
10164             ac_cv_c_artsserver=no
10165             save_CFLAGS="$CFLAGS"
10166             CFLAGS="$CFLAGS $ARTSC_CFLAGS"
10167             cat >conftest.$ac_ext <<_ACEOF
10168 #line $LINENO "configure"
10169 /* confdefs.h.  */
10170 _ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h.  */
10174
10175              #include <artsc.h>
10176
10177 int
10178 main ()
10179 {
10180
10181              arts_stream_t stream;
10182
10183   ;
10184   return 0;
10185 }
10186 _ACEOF
10187 rm -f conftest.$ac_objext
10188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10189   (eval $ac_compile) 2>&5
10190   ac_status=$?
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); } &&
10193          { ac_try='test -s conftest.$ac_objext'
10194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195   (eval $ac_try) 2>&5
10196   ac_status=$?
10197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198   (exit $ac_status); }; }; then
10199
10200             ac_cv_c_artsserver=yes
10201
10202 else
10203   echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10205
10206 fi
10207 rm -f conftest.$ac_objext conftest.$ac_ext
10208             CFLAGS="$save_CFLAGS"
10209         fi
10210 fi
10211 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
10212 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
10213
10214 if test "$ac_cv_c_artsserver" = "yes"
10215 then
10216     ARTSLIBS=$ARTSC_LIBS
10217
10218     ARTSINCL=$ARTSC_CFLAGS
10219
10220
10221
10222 cat >>confdefs.h <<\_ACEOF
10223 #define HAVE_ARTS 1
10224 _ACEOF
10225
10226 fi
10227
10228 ALSALIBS=""
10229
10230
10231
10232 for ac_header in alsa/asoundlib.h sys/asoundlib.h
10233 do
10234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10236   echo "$as_me:$LINENO: checking for $ac_header" >&5
10237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10239   echo $ECHO_N "(cached) $ECHO_C" >&6
10240 fi
10241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10243 else
10244   # Is the header compilable?
10245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10247 cat >conftest.$ac_ext <<_ACEOF
10248 #line $LINENO "configure"
10249 /* confdefs.h.  */
10250 _ACEOF
10251 cat confdefs.h >>conftest.$ac_ext
10252 cat >>conftest.$ac_ext <<_ACEOF
10253 /* end confdefs.h.  */
10254 $ac_includes_default
10255 #include <$ac_header>
10256 _ACEOF
10257 rm -f conftest.$ac_objext
10258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259   (eval $ac_compile) 2>&5
10260   ac_status=$?
10261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262   (exit $ac_status); } &&
10263          { ac_try='test -s conftest.$ac_objext'
10264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265   (eval $ac_try) 2>&5
10266   ac_status=$?
10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   (exit $ac_status); }; }; then
10269   ac_header_compiler=yes
10270 else
10271   echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10273
10274 ac_header_compiler=no
10275 fi
10276 rm -f conftest.$ac_objext conftest.$ac_ext
10277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10278 echo "${ECHO_T}$ac_header_compiler" >&6
10279
10280 # Is the header present?
10281 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10283 cat >conftest.$ac_ext <<_ACEOF
10284 #line $LINENO "configure"
10285 /* confdefs.h.  */
10286 _ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h.  */
10290 #include <$ac_header>
10291 _ACEOF
10292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10293   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10294   ac_status=$?
10295   grep -v '^ *+' conftest.er1 >conftest.err
10296   rm -f conftest.er1
10297   cat conftest.err >&5
10298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299   (exit $ac_status); } >/dev/null; then
10300   if test -s conftest.err; then
10301     ac_cpp_err=$ac_c_preproc_warn_flag
10302   else
10303     ac_cpp_err=
10304   fi
10305 else
10306   ac_cpp_err=yes
10307 fi
10308 if test -z "$ac_cpp_err"; then
10309   ac_header_preproc=yes
10310 else
10311   echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10313
10314   ac_header_preproc=no
10315 fi
10316 rm -f conftest.err conftest.$ac_ext
10317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10318 echo "${ECHO_T}$ac_header_preproc" >&6
10319
10320 # So?  What about this header?
10321 case $ac_header_compiler:$ac_header_preproc in
10322   yes:no )
10323     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10327     (
10328       cat <<\_ASBOX
10329 ## ------------------------------------ ##
10330 ## Report this to bug-autoconf@gnu.org. ##
10331 ## ------------------------------------ ##
10332 _ASBOX
10333     ) |
10334       sed "s/^/$as_me: WARNING:     /" >&2
10335     ;;
10336   no:yes )
10337     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10339     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10343     (
10344       cat <<\_ASBOX
10345 ## ------------------------------------ ##
10346 ## Report this to bug-autoconf@gnu.org. ##
10347 ## ------------------------------------ ##
10348 _ASBOX
10349     ) |
10350       sed "s/^/$as_me: WARNING:     /" >&2
10351     ;;
10352 esac
10353 echo "$as_me:$LINENO: checking for $ac_header" >&5
10354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10356   echo $ECHO_N "(cached) $ECHO_C" >&6
10357 else
10358   eval "$as_ac_Header=$ac_header_preproc"
10359 fi
10360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10362
10363 fi
10364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10365   cat >>confdefs.h <<_ACEOF
10366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10367 _ACEOF
10368  break
10369 fi
10370
10371 done
10372
10373 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10374 then
10375     echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
10376 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
10377 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
10378   echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10380   ac_check_lib_save_LIBS=$LIBS
10381 LIBS="-lasound  $LIBS"
10382 cat >conftest.$ac_ext <<_ACEOF
10383 #line $LINENO "configure"
10384 /* confdefs.h.  */
10385 _ACEOF
10386 cat confdefs.h >>conftest.$ac_ext
10387 cat >>conftest.$ac_ext <<_ACEOF
10388 /* end confdefs.h.  */
10389
10390 /* Override any gcc2 internal prototype to avoid an error.  */
10391 #ifdef __cplusplus
10392 extern "C"
10393 #endif
10394 /* We use char because int might match the return type of a gcc2
10395    builtin and then its argument prototype would still apply.  */
10396 char snd_pcm_open ();
10397 int
10398 main ()
10399 {
10400 snd_pcm_open ();
10401   ;
10402   return 0;
10403 }
10404 _ACEOF
10405 rm -f conftest.$ac_objext conftest$ac_exeext
10406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10407   (eval $ac_link) 2>&5
10408   ac_status=$?
10409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410   (exit $ac_status); } &&
10411          { ac_try='test -s conftest$ac_exeext'
10412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413   (eval $ac_try) 2>&5
10414   ac_status=$?
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); }; }; then
10417   ac_cv_lib_asound_snd_pcm_open=yes
10418 else
10419   echo "$as_me: failed program was:" >&5
10420 sed 's/^/| /' conftest.$ac_ext >&5
10421
10422 ac_cv_lib_asound_snd_pcm_open=no
10423 fi
10424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10425 LIBS=$ac_check_lib_save_LIBS
10426 fi
10427 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
10428 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
10429 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
10430
10431 cat >>confdefs.h <<\_ACEOF
10432 #define HAVE_ALSA 1
10433 _ACEOF
10434
10435         ALSALIBS="-lasound"
10436 fi
10437
10438 fi
10439
10440
10441 AUDIOIOLIBS=""
10442
10443
10444 for ac_header in libaudioio.h
10445 do
10446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10448   echo "$as_me:$LINENO: checking for $ac_header" >&5
10449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10451   echo $ECHO_N "(cached) $ECHO_C" >&6
10452 fi
10453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10455 else
10456   # Is the header compilable?
10457 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10459 cat >conftest.$ac_ext <<_ACEOF
10460 #line $LINENO "configure"
10461 /* confdefs.h.  */
10462 _ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h.  */
10466 $ac_includes_default
10467 #include <$ac_header>
10468 _ACEOF
10469 rm -f conftest.$ac_objext
10470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10471   (eval $ac_compile) 2>&5
10472   ac_status=$?
10473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); } &&
10475          { ac_try='test -s conftest.$ac_objext'
10476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477   (eval $ac_try) 2>&5
10478   ac_status=$?
10479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480   (exit $ac_status); }; }; then
10481   ac_header_compiler=yes
10482 else
10483   echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10485
10486 ac_header_compiler=no
10487 fi
10488 rm -f conftest.$ac_objext conftest.$ac_ext
10489 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10490 echo "${ECHO_T}$ac_header_compiler" >&6
10491
10492 # Is the header present?
10493 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10495 cat >conftest.$ac_ext <<_ACEOF
10496 #line $LINENO "configure"
10497 /* confdefs.h.  */
10498 _ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h.  */
10502 #include <$ac_header>
10503 _ACEOF
10504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10505   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10506   ac_status=$?
10507   grep -v '^ *+' conftest.er1 >conftest.err
10508   rm -f conftest.er1
10509   cat conftest.err >&5
10510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511   (exit $ac_status); } >/dev/null; then
10512   if test -s conftest.err; then
10513     ac_cpp_err=$ac_c_preproc_warn_flag
10514   else
10515     ac_cpp_err=
10516   fi
10517 else
10518   ac_cpp_err=yes
10519 fi
10520 if test -z "$ac_cpp_err"; then
10521   ac_header_preproc=yes
10522 else
10523   echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10525
10526   ac_header_preproc=no
10527 fi
10528 rm -f conftest.err conftest.$ac_ext
10529 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10530 echo "${ECHO_T}$ac_header_preproc" >&6
10531
10532 # So?  What about this header?
10533 case $ac_header_compiler:$ac_header_preproc in
10534   yes:no )
10535     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10536 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10537     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10539     (
10540       cat <<\_ASBOX
10541 ## ------------------------------------ ##
10542 ## Report this to bug-autoconf@gnu.org. ##
10543 ## ------------------------------------ ##
10544 _ASBOX
10545     ) |
10546       sed "s/^/$as_me: WARNING:     /" >&2
10547     ;;
10548   no:yes )
10549     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10551     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10555     (
10556       cat <<\_ASBOX
10557 ## ------------------------------------ ##
10558 ## Report this to bug-autoconf@gnu.org. ##
10559 ## ------------------------------------ ##
10560 _ASBOX
10561     ) |
10562       sed "s/^/$as_me: WARNING:     /" >&2
10563     ;;
10564 esac
10565 echo "$as_me:$LINENO: checking for $ac_header" >&5
10566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10568   echo $ECHO_N "(cached) $ECHO_C" >&6
10569 else
10570   eval "$as_ac_Header=$ac_header_preproc"
10571 fi
10572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10574
10575 fi
10576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10577   cat >>confdefs.h <<_ACEOF
10578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10579 _ACEOF
10580  echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10581 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10582 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10583   echo $ECHO_N "(cached) $ECHO_C" >&6
10584 else
10585   ac_check_lib_save_LIBS=$LIBS
10586 LIBS="-laudioio  $LIBS"
10587 cat >conftest.$ac_ext <<_ACEOF
10588 #line $LINENO "configure"
10589 /* confdefs.h.  */
10590 _ACEOF
10591 cat confdefs.h >>conftest.$ac_ext
10592 cat >>conftest.$ac_ext <<_ACEOF
10593 /* end confdefs.h.  */
10594
10595 /* Override any gcc2 internal prototype to avoid an error.  */
10596 #ifdef __cplusplus
10597 extern "C"
10598 #endif
10599 /* We use char because int might match the return type of a gcc2
10600    builtin and then its argument prototype would still apply.  */
10601 char AudioIOGetVersion ();
10602 int
10603 main ()
10604 {
10605 AudioIOGetVersion ();
10606   ;
10607   return 0;
10608 }
10609 _ACEOF
10610 rm -f conftest.$ac_objext conftest$ac_exeext
10611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10612   (eval $ac_link) 2>&5
10613   ac_status=$?
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); } &&
10616          { ac_try='test -s conftest$ac_exeext'
10617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618   (eval $ac_try) 2>&5
10619   ac_status=$?
10620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621   (exit $ac_status); }; }; then
10622   ac_cv_lib_audioio_AudioIOGetVersion=yes
10623 else
10624   echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.$ac_ext >&5
10626
10627 ac_cv_lib_audioio_AudioIOGetVersion=no
10628 fi
10629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10630 LIBS=$ac_check_lib_save_LIBS
10631 fi
10632 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10633 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
10634 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
10635   AUDIOIOLIBS="-laudioio"
10636
10637 cat >>confdefs.h <<\_ACEOF
10638 #define HAVE_LIBAUDIOIO 1
10639 _ACEOF
10640
10641 fi
10642
10643 fi
10644
10645 done
10646
10647
10648
10649
10650 for ac_header in capi20.h
10651 do
10652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10654   echo "$as_me:$LINENO: checking for $ac_header" >&5
10655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10657   echo $ECHO_N "(cached) $ECHO_C" >&6
10658 fi
10659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10661 else
10662   # Is the header compilable?
10663 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10665 cat >conftest.$ac_ext <<_ACEOF
10666 #line $LINENO "configure"
10667 /* confdefs.h.  */
10668 _ACEOF
10669 cat confdefs.h >>conftest.$ac_ext
10670 cat >>conftest.$ac_ext <<_ACEOF
10671 /* end confdefs.h.  */
10672 $ac_includes_default
10673 #include <$ac_header>
10674 _ACEOF
10675 rm -f conftest.$ac_objext
10676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10677   (eval $ac_compile) 2>&5
10678   ac_status=$?
10679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680   (exit $ac_status); } &&
10681          { ac_try='test -s conftest.$ac_objext'
10682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683   (eval $ac_try) 2>&5
10684   ac_status=$?
10685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686   (exit $ac_status); }; }; then
10687   ac_header_compiler=yes
10688 else
10689   echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.$ac_ext >&5
10691
10692 ac_header_compiler=no
10693 fi
10694 rm -f conftest.$ac_objext conftest.$ac_ext
10695 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10696 echo "${ECHO_T}$ac_header_compiler" >&6
10697
10698 # Is the header present?
10699 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10701 cat >conftest.$ac_ext <<_ACEOF
10702 #line $LINENO "configure"
10703 /* confdefs.h.  */
10704 _ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h.  */
10708 #include <$ac_header>
10709 _ACEOF
10710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10711   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10712   ac_status=$?
10713   grep -v '^ *+' conftest.er1 >conftest.err
10714   rm -f conftest.er1
10715   cat conftest.err >&5
10716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717   (exit $ac_status); } >/dev/null; then
10718   if test -s conftest.err; then
10719     ac_cpp_err=$ac_c_preproc_warn_flag
10720   else
10721     ac_cpp_err=
10722   fi
10723 else
10724   ac_cpp_err=yes
10725 fi
10726 if test -z "$ac_cpp_err"; then
10727   ac_header_preproc=yes
10728 else
10729   echo "$as_me: failed program was:" >&5
10730 sed 's/^/| /' conftest.$ac_ext >&5
10731
10732   ac_header_preproc=no
10733 fi
10734 rm -f conftest.err conftest.$ac_ext
10735 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10736 echo "${ECHO_T}$ac_header_preproc" >&6
10737
10738 # So?  What about this header?
10739 case $ac_header_compiler:$ac_header_preproc in
10740   yes:no )
10741     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10742 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10743     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10745     (
10746       cat <<\_ASBOX
10747 ## ------------------------------------ ##
10748 ## Report this to bug-autoconf@gnu.org. ##
10749 ## ------------------------------------ ##
10750 _ASBOX
10751     ) |
10752       sed "s/^/$as_me: WARNING:     /" >&2
10753     ;;
10754   no:yes )
10755     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10757     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10758 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10759     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10761     (
10762       cat <<\_ASBOX
10763 ## ------------------------------------ ##
10764 ## Report this to bug-autoconf@gnu.org. ##
10765 ## ------------------------------------ ##
10766 _ASBOX
10767     ) |
10768       sed "s/^/$as_me: WARNING:     /" >&2
10769     ;;
10770 esac
10771 echo "$as_me:$LINENO: checking for $ac_header" >&5
10772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10774   echo $ECHO_N "(cached) $ECHO_C" >&6
10775 else
10776   eval "$as_ac_Header=$ac_header_preproc"
10777 fi
10778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10780
10781 fi
10782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10783   cat >>confdefs.h <<_ACEOF
10784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10785 _ACEOF
10786
10787
10788 for ac_header in linux/capi.h
10789 do
10790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10792   echo "$as_me:$LINENO: checking for $ac_header" >&5
10793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10795   echo $ECHO_N "(cached) $ECHO_C" >&6
10796 fi
10797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10799 else
10800   # Is the header compilable?
10801 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10803 cat >conftest.$ac_ext <<_ACEOF
10804 #line $LINENO "configure"
10805 /* confdefs.h.  */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h.  */
10810 $ac_includes_default
10811 #include <$ac_header>
10812 _ACEOF
10813 rm -f conftest.$ac_objext
10814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10815   (eval $ac_compile) 2>&5
10816   ac_status=$?
10817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818   (exit $ac_status); } &&
10819          { ac_try='test -s conftest.$ac_objext'
10820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821   (eval $ac_try) 2>&5
10822   ac_status=$?
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); }; }; then
10825   ac_header_compiler=yes
10826 else
10827   echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10829
10830 ac_header_compiler=no
10831 fi
10832 rm -f conftest.$ac_objext conftest.$ac_ext
10833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10834 echo "${ECHO_T}$ac_header_compiler" >&6
10835
10836 # Is the header present?
10837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10839 cat >conftest.$ac_ext <<_ACEOF
10840 #line $LINENO "configure"
10841 /* confdefs.h.  */
10842 _ACEOF
10843 cat confdefs.h >>conftest.$ac_ext
10844 cat >>conftest.$ac_ext <<_ACEOF
10845 /* end confdefs.h.  */
10846 #include <$ac_header>
10847 _ACEOF
10848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10849   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10850   ac_status=$?
10851   grep -v '^ *+' conftest.er1 >conftest.err
10852   rm -f conftest.er1
10853   cat conftest.err >&5
10854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855   (exit $ac_status); } >/dev/null; then
10856   if test -s conftest.err; then
10857     ac_cpp_err=$ac_c_preproc_warn_flag
10858   else
10859     ac_cpp_err=
10860   fi
10861 else
10862   ac_cpp_err=yes
10863 fi
10864 if test -z "$ac_cpp_err"; then
10865   ac_header_preproc=yes
10866 else
10867   echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.$ac_ext >&5
10869
10870   ac_header_preproc=no
10871 fi
10872 rm -f conftest.err conftest.$ac_ext
10873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10874 echo "${ECHO_T}$ac_header_preproc" >&6
10875
10876 # So?  What about this header?
10877 case $ac_header_compiler:$ac_header_preproc in
10878   yes:no )
10879     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10881     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10883     (
10884       cat <<\_ASBOX
10885 ## ------------------------------------ ##
10886 ## Report this to bug-autoconf@gnu.org. ##
10887 ## ------------------------------------ ##
10888 _ASBOX
10889     ) |
10890       sed "s/^/$as_me: WARNING:     /" >&2
10891     ;;
10892   no:yes )
10893     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10895     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10899     (
10900       cat <<\_ASBOX
10901 ## ------------------------------------ ##
10902 ## Report this to bug-autoconf@gnu.org. ##
10903 ## ------------------------------------ ##
10904 _ASBOX
10905     ) |
10906       sed "s/^/$as_me: WARNING:     /" >&2
10907     ;;
10908 esac
10909 echo "$as_me:$LINENO: checking for $ac_header" >&5
10910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10912   echo $ECHO_N "(cached) $ECHO_C" >&6
10913 else
10914   eval "$as_ac_Header=$ac_header_preproc"
10915 fi
10916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10918
10919 fi
10920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10921   cat >>confdefs.h <<_ACEOF
10922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10923 _ACEOF
10924
10925                 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
10926 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
10927 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
10928   echo $ECHO_N "(cached) $ECHO_C" >&6
10929 else
10930   ac_check_lib_save_LIBS=$LIBS
10931 LIBS="-lcapi20  $LIBS"
10932 cat >conftest.$ac_ext <<_ACEOF
10933 #line $LINENO "configure"
10934 /* confdefs.h.  */
10935 _ACEOF
10936 cat confdefs.h >>conftest.$ac_ext
10937 cat >>conftest.$ac_ext <<_ACEOF
10938 /* end confdefs.h.  */
10939
10940 /* Override any gcc2 internal prototype to avoid an error.  */
10941 #ifdef __cplusplus
10942 extern "C"
10943 #endif
10944 /* We use char because int might match the return type of a gcc2
10945    builtin and then its argument prototype would still apply.  */
10946 char capi20_register ();
10947 int
10948 main ()
10949 {
10950 capi20_register ();
10951   ;
10952   return 0;
10953 }
10954 _ACEOF
10955 rm -f conftest.$ac_objext conftest$ac_exeext
10956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10957   (eval $ac_link) 2>&5
10958   ac_status=$?
10959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960   (exit $ac_status); } &&
10961          { ac_try='test -s conftest$ac_exeext'
10962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963   (eval $ac_try) 2>&5
10964   ac_status=$?
10965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966   (exit $ac_status); }; }; then
10967   ac_cv_lib_capi20_capi20_register=yes
10968 else
10969   echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10971
10972 ac_cv_lib_capi20_capi20_register=no
10973 fi
10974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10975 LIBS=$ac_check_lib_save_LIBS
10976 fi
10977 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
10978 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
10979 if test $ac_cv_lib_capi20_capi20_register = yes; then
10980
10981
10982 cat >>confdefs.h <<\_ACEOF
10983 #define HAVE_CAPI4LINUX 1
10984 _ACEOF
10985
10986                         CAPI4LINUXLIBS="-lcapi20"
10987
10988
10989 fi
10990
10991
10992 fi
10993
10994 done
10995
10996
10997 fi
10998
10999 done
11000
11001
11002
11003 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
11004 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
11005 if test "${ac_cv_mmap64_works+set}" = set; then
11006   echo $ECHO_N "(cached) $ECHO_C" >&6
11007 else
11008   if test "$cross_compiling" = yes; then
11009   ac_cv_mmap64_works="no"
11010 else
11011   cat >conftest.$ac_ext <<_ACEOF
11012 #line $LINENO "configure"
11013 /* confdefs.h.  */
11014 _ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h.  */
11018
11019                 #define _FILE_OFFSET_BITS 64
11020                 #include <stdio.h>
11021                 #include <unistd.h>
11022                 #include <fcntl.h>
11023                 #include <sys/mman.h>
11024                 #include <errno.h>
11025
11026                 int main(int argc,char **argv) {
11027                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
11028                         if (fd == -1) exit(1);
11029
11030                         unlink("conftest.map");
11031
11032                         write(fd,"test",4);
11033
11034                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
11035                             (errno == EINVAL)
11036                         ) {
11037                                 exit(1);
11038                         }
11039                         close(fd);
11040                         fprintf(stderr,"success!\n");
11041                         exit(0);
11042                 }
11043
11044
11045 _ACEOF
11046 rm -f conftest$ac_exeext
11047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11048   (eval $ac_link) 2>&5
11049   ac_status=$?
11050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053   (eval $ac_try) 2>&5
11054   ac_status=$?
11055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056   (exit $ac_status); }; }; then
11057   ac_cv_mmap64_works="yes"
11058 else
11059   echo "$as_me: program exited with status $ac_status" >&5
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11062
11063 ( exit $ac_status )
11064 ac_cv_mmap64_works="no"
11065 fi
11066 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11067 fi
11068 fi
11069 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
11070 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
11071
11072 if test "$ac_cv_mmap64_works" = "yes"
11073 then
11074
11075 cat >>confdefs.h <<\_ACEOF
11076 #define _FILE_OFFSET_BITS 64
11077 _ACEOF
11078
11079 fi
11080
11081
11082 EXTRACFLAGS=""
11083
11084 if test "x${GCC}" = "xyes"
11085 then
11086   EXTRACFLAGS=-Wall
11087
11088     echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
11089 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
11090 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
11091   echo $ECHO_N "(cached) $ECHO_C" >&6
11092 else
11093   if test "$cross_compiling" = yes; then
11094   ac_cv_c_gcc_strength_bug="yes"
11095 else
11096   cat >conftest.$ac_ext <<_ACEOF
11097 #line $LINENO "configure"
11098 /* confdefs.h.  */
11099 _ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h.  */
11103
11104 int     L[4] = {0,1,2,3};
11105 int main(void) {
11106   static int Array[3];
11107   unsigned int B = 3;
11108   int i;
11109   for(i=0; i<B; i++) Array[i] = i - 3;
11110   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11111   L[i] = 4;
11112
11113   exit( Array[1] != -2 || L[2] != 3);
11114 }
11115 _ACEOF
11116 rm -f conftest$ac_exeext
11117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11118   (eval $ac_link) 2>&5
11119   ac_status=$?
11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11123   (eval $ac_try) 2>&5
11124   ac_status=$?
11125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126   (exit $ac_status); }; }; then
11127   ac_cv_c_gcc_strength_bug="no"
11128 else
11129   echo "$as_me: program exited with status $ac_status" >&5
11130 echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11132
11133 ( exit $ac_status )
11134 ac_cv_c_gcc_strength_bug="yes"
11135 fi
11136 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11137 fi
11138 fi
11139 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
11140 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
11141   if test "$ac_cv_c_gcc_strength_bug" = "yes"
11142   then
11143     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11144   fi
11145
11146     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
11147 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
11148 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
11149   echo $ECHO_N "(cached) $ECHO_C" >&6
11150 else
11151   ac_wine_try_cflags_saved=$CFLAGS
11152 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
11153 cat >conftest.$ac_ext <<_ACEOF
11154 #line $LINENO "configure"
11155 /* confdefs.h.  */
11156 _ACEOF
11157 cat confdefs.h >>conftest.$ac_ext
11158 cat >>conftest.$ac_ext <<_ACEOF
11159 /* end confdefs.h.  */
11160
11161 int
11162 main ()
11163 {
11164
11165   ;
11166   return 0;
11167 }
11168 _ACEOF
11169 rm -f conftest.$ac_objext conftest$ac_exeext
11170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11171   (eval $ac_link) 2>&5
11172   ac_status=$?
11173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174   (exit $ac_status); } &&
11175          { ac_try='test -s conftest$ac_exeext'
11176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11177   (eval $ac_try) 2>&5
11178   ac_status=$?
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); }; }; then
11181   ac_cv_c_gcc_stack_boundary="yes"
11182 else
11183   echo "$as_me: failed program was:" >&5
11184 sed 's/^/| /' conftest.$ac_ext >&5
11185
11186 ac_cv_c_gcc_stack_boundary="no"
11187 fi
11188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11189 CFLAGS=$ac_wine_try_cflags_saved
11190 fi
11191 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
11192 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
11193   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
11194   then
11195     EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
11196   fi
11197
11198     echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
11199 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
11200 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
11201   echo $ECHO_N "(cached) $ECHO_C" >&6
11202 else
11203   ac_wine_try_cflags_saved=$CFLAGS
11204 CFLAGS="$CFLAGS -fno-strict-aliasing"
11205 cat >conftest.$ac_ext <<_ACEOF
11206 #line $LINENO "configure"
11207 /* confdefs.h.  */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h.  */
11212
11213 int
11214 main ()
11215 {
11216
11217   ;
11218   return 0;
11219 }
11220 _ACEOF
11221 rm -f conftest.$ac_objext conftest$ac_exeext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11223   (eval $ac_link) 2>&5
11224   ac_status=$?
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); } &&
11227          { ac_try='test -s conftest$ac_exeext'
11228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229   (eval $ac_try) 2>&5
11230   ac_status=$?
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); }; }; then
11233   ac_cv_c_gcc_no_strict_aliasing="yes"
11234 else
11235   echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.$ac_ext >&5
11237
11238 ac_cv_c_gcc_no_strict_aliasing="no"
11239 fi
11240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11241 CFLAGS=$ac_wine_try_cflags_saved
11242 fi
11243 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
11244 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
11245   if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
11246   then
11247     EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11248   fi
11249
11250     echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
11251 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
11252 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
11253   echo $ECHO_N "(cached) $ECHO_C" >&6
11254 else
11255   ac_wine_try_cflags_saved=$CFLAGS
11256 CFLAGS="$CFLAGS -gstabs+"
11257 cat >conftest.$ac_ext <<_ACEOF
11258 #line $LINENO "configure"
11259 /* confdefs.h.  */
11260 _ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h.  */
11264
11265 int
11266 main ()
11267 {
11268
11269   ;
11270   return 0;
11271 }
11272 _ACEOF
11273 rm -f conftest.$ac_objext conftest$ac_exeext
11274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11275   (eval $ac_link) 2>&5
11276   ac_status=$?
11277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278   (exit $ac_status); } &&
11279          { ac_try='test -s conftest$ac_exeext'
11280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281   (eval $ac_try) 2>&5
11282   ac_status=$?
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); }; }; then
11285   ac_cv_c_gcc_gstabs="yes"
11286 else
11287   echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11289
11290 ac_cv_c_gcc_gstabs="no"
11291 fi
11292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11293 CFLAGS=$ac_wine_try_cflags_saved
11294 fi
11295 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
11296 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
11297   if test "$ac_cv_c_gcc_gstabs" = "yes"
11298   then
11299     EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
11300   fi
11301
11302     saved_CFLAGS="$CFLAGS"
11303   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
11304   echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
11305 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
11306 if test "${ac_cv_c_string_h_warnings+set}" = set; then
11307   echo $ECHO_N "(cached) $ECHO_C" >&6
11308 else
11309   cat >conftest.$ac_ext <<_ACEOF
11310 #line $LINENO "configure"
11311 /* confdefs.h.  */
11312 _ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h.  */
11316 #include <string.h>
11317 int
11318 main ()
11319 {
11320
11321   ;
11322   return 0;
11323 }
11324 _ACEOF
11325 rm -f conftest.$ac_objext
11326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11327   (eval $ac_compile) 2>&5
11328   ac_status=$?
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); } &&
11331          { ac_try='test -s conftest.$ac_objext'
11332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333   (eval $ac_try) 2>&5
11334   ac_status=$?
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); }; }; then
11337   ac_cv_c_string_h_warnings=no
11338 else
11339   echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11341
11342 ac_cv_c_string_h_warnings=yes
11343 fi
11344 rm -f conftest.$ac_objext conftest.$ac_ext
11345 fi
11346 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
11347 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
11348   CFLAGS="$saved_CFLAGS"
11349   if test "$ac_cv_c_string_h_warnings" = "no"
11350   then
11351     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
11352   fi
11353 fi
11354
11355
11356 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
11357 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
11358 if test "${ac_cv_asm_func_def+set}" = set; then
11359   echo $ECHO_N "(cached) $ECHO_C" >&6
11360 else
11361   cat >conftest.$ac_ext <<_ACEOF
11362 #line $LINENO "configure"
11363 /* confdefs.h.  */
11364 _ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h.  */
11368 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"); }
11369
11370 int
11371 main ()
11372 {
11373
11374   ;
11375   return 0;
11376 }
11377 _ACEOF
11378 rm -f conftest.$ac_objext conftest$ac_exeext
11379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11380   (eval $ac_link) 2>&5
11381   ac_status=$?
11382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383   (exit $ac_status); } &&
11384          { ac_try='test -s conftest$ac_exeext'
11385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386   (eval $ac_try) 2>&5
11387   ac_status=$?
11388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389   (exit $ac_status); }; }; then
11390   ac_cv_asm_func_def=".def"
11391 else
11392   echo "$as_me: failed program was:" >&5
11393 sed 's/^/| /' conftest.$ac_ext >&5
11394
11395 cat >conftest.$ac_ext <<_ACEOF
11396 #line $LINENO "configure"
11397 /* confdefs.h.  */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h.  */
11402 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
11403
11404 int
11405 main ()
11406 {
11407
11408   ;
11409   return 0;
11410 }
11411 _ACEOF
11412 rm -f conftest.$ac_objext conftest$ac_exeext
11413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11414   (eval $ac_link) 2>&5
11415   ac_status=$?
11416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417   (exit $ac_status); } &&
11418          { ac_try='test -s conftest$ac_exeext'
11419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420   (eval $ac_try) 2>&5
11421   ac_status=$?
11422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423   (exit $ac_status); }; }; then
11424   ac_cv_asm_func_def=".type @function"
11425 else
11426   echo "$as_me: failed program was:" >&5
11427 sed 's/^/| /' conftest.$ac_ext >&5
11428
11429 cat >conftest.$ac_ext <<_ACEOF
11430 #line $LINENO "configure"
11431 /* confdefs.h.  */
11432 _ACEOF
11433 cat confdefs.h >>conftest.$ac_ext
11434 cat >>conftest.$ac_ext <<_ACEOF
11435 /* end confdefs.h.  */
11436 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
11437
11438 int
11439 main ()
11440 {
11441
11442   ;
11443   return 0;
11444 }
11445 _ACEOF
11446 rm -f conftest.$ac_objext conftest$ac_exeext
11447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11448   (eval $ac_link) 2>&5
11449   ac_status=$?
11450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451   (exit $ac_status); } &&
11452          { ac_try='test -s conftest$ac_exeext'
11453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454   (eval $ac_try) 2>&5
11455   ac_status=$?
11456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457   (exit $ac_status); }; }; then
11458   ac_cv_asm_func_def=".type 2"
11459 else
11460   echo "$as_me: failed program was:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11462
11463 ac_cv_asm_func_def="unknown"
11464 fi
11465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11466 fi
11467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11468 fi
11469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11470 fi
11471 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
11472 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
11473
11474
11475
11476 case "$ac_cv_asm_func_def" in
11477   ".def")
11478      cat >>confdefs.h <<\_ACEOF
11479 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
11480 _ACEOF
11481  ;;
11482   ".type @function")
11483      cat >>confdefs.h <<\_ACEOF
11484 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
11485 _ACEOF
11486  ;;
11487   ".type 2")
11488      cat >>confdefs.h <<\_ACEOF
11489 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
11490 _ACEOF
11491  ;;
11492   *)
11493      cat >>confdefs.h <<\_ACEOF
11494 #define __ASM_FUNC(name) ""
11495 _ACEOF
11496  ;;
11497 esac
11498
11499
11500 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
11501 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
11502 if test "${ac_cv_c_extern_prefix+set}" = set; then
11503   echo $ECHO_N "(cached) $ECHO_C" >&6
11504 else
11505   cat >conftest.$ac_ext <<_ACEOF
11506 #line $LINENO "configure"
11507 /* confdefs.h.  */
11508 _ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h.  */
11512 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
11513 extern int ac_test;
11514 int
11515 main ()
11516 {
11517 if (ac_test) return 1
11518   ;
11519   return 0;
11520 }
11521 _ACEOF
11522 rm -f conftest.$ac_objext conftest$ac_exeext
11523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11524   (eval $ac_link) 2>&5
11525   ac_status=$?
11526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527   (exit $ac_status); } &&
11528          { ac_try='test -s conftest$ac_exeext'
11529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530   (eval $ac_try) 2>&5
11531   ac_status=$?
11532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533   (exit $ac_status); }; }; then
11534   ac_cv_c_extern_prefix="yes"
11535 else
11536   echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11538
11539 ac_cv_c_extern_prefix="no"
11540 fi
11541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11542 fi
11543 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
11544 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
11545
11546
11547
11548 if test "$ac_cv_c_extern_prefix" = "yes"
11549 then
11550   cat >>confdefs.h <<\_ACEOF
11551 #define __ASM_NAME(name) "_" name
11552 _ACEOF
11553
11554 else
11555   cat >>confdefs.h <<\_ACEOF
11556 #define __ASM_NAME(name) name
11557 _ACEOF
11558
11559 fi
11560
11561
11562 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
11563 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
11564 if test "${ac_cv_c_asm_string+set}" = set; then
11565   echo $ECHO_N "(cached) $ECHO_C" >&6
11566 else
11567   cat >conftest.$ac_ext <<_ACEOF
11568 #line $LINENO "configure"
11569 /* confdefs.h.  */
11570 _ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h.  */
11574 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
11575
11576 int
11577 main ()
11578 {
11579
11580   ;
11581   return 0;
11582 }
11583 _ACEOF
11584 rm -f conftest.$ac_objext conftest$ac_exeext
11585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11586   (eval $ac_link) 2>&5
11587   ac_status=$?
11588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589   (exit $ac_status); } &&
11590          { ac_try='test -s conftest$ac_exeext'
11591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592   (eval $ac_try) 2>&5
11593   ac_status=$?
11594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595   (exit $ac_status); }; }; then
11596   ac_cv_c_asm_string="yes"
11597 else
11598   echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.$ac_ext >&5
11600
11601 ac_cv_c_asm_string="no"
11602 fi
11603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11604 fi
11605 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
11606 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
11607 if test "$ac_cv_c_asm_string" = "yes"
11608 then
11609
11610 cat >>confdefs.h <<\_ACEOF
11611 #define __ASM_STRING ".string"
11612 _ACEOF
11613
11614 else
11615     echo "$as_me:$LINENO: checking whether assembler accepts .asciz" >&5
11616 echo $ECHO_N "checking whether assembler accepts .asciz... $ECHO_C" >&6
11617 if test "${ac_cv_c_asm_asciz+set}" = set; then
11618   echo $ECHO_N "(cached) $ECHO_C" >&6
11619 else
11620   cat >conftest.$ac_ext <<_ACEOF
11621 #line $LINENO "configure"
11622 /* confdefs.h.  */
11623 _ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h.  */
11627 void ac_asm(void) { asm(".data\n\t.asciz \"test\"\n\t.text"); }
11628
11629 int
11630 main ()
11631 {
11632
11633   ;
11634   return 0;
11635 }
11636 _ACEOF
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11639   (eval $ac_link) 2>&5
11640   ac_status=$?
11641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); } &&
11643          { ac_try='test -s conftest$ac_exeext'
11644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645   (eval $ac_try) 2>&5
11646   ac_status=$?
11647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); }; }; then
11649   ac_cv_c_asm_asciz="yes"
11650 else
11651   echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11653
11654 ac_cv_c_asm_asciz="no"
11655 fi
11656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11657 fi
11658 echo "$as_me:$LINENO: result: $ac_cv_c_asm_asciz" >&5
11659 echo "${ECHO_T}$ac_cv_c_asm_asciz" >&6
11660     if test "$ac_cv_c_asm_asciz" = "yes"
11661     then
11662       cat >>confdefs.h <<\_ACEOF
11663 #define __ASM_STRING ".asciz"
11664 _ACEOF
11665
11666     else
11667       cat >>confdefs.h <<\_ACEOF
11668 #define __ASM_STRING ".ascii"
11669 _ACEOF
11670
11671     fi
11672 fi
11673
11674
11675 echo "$as_me:$LINENO: checking whether assembler accepts .short" >&5
11676 echo $ECHO_N "checking whether assembler accepts .short... $ECHO_C" >&6
11677 if test "${ac_cv_c_asm_short+set}" = set; then
11678   echo $ECHO_N "(cached) $ECHO_C" >&6
11679 else
11680   cat >conftest.$ac_ext <<_ACEOF
11681 #line $LINENO "configure"
11682 /* confdefs.h.  */
11683 _ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h.  */
11687 void ac_asm(void) { asm(".data\n\t.short 1\n\t.text"); }
11688
11689 int
11690 main ()
11691 {
11692
11693   ;
11694   return 0;
11695 }
11696 _ACEOF
11697 rm -f conftest.$ac_objext conftest$ac_exeext
11698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11699   (eval $ac_link) 2>&5
11700   ac_status=$?
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); } &&
11703          { ac_try='test -s conftest$ac_exeext'
11704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705   (eval $ac_try) 2>&5
11706   ac_status=$?
11707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); }; }; then
11709   ac_cv_c_asm_short="yes"
11710 else
11711   echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11713
11714 ac_cv_c_asm_short="no"
11715 fi
11716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11717 fi
11718 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
11719 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
11720 if test "$ac_cv_c_asm_short" = "yes"
11721 then
11722
11723 cat >>confdefs.h <<\_ACEOF
11724 #define __ASM_SHORT ".short"
11725 _ACEOF
11726
11727 else
11728   cat >>confdefs.h <<\_ACEOF
11729 #define __ASM_SHORT ".half"
11730 _ACEOF
11731
11732 fi
11733
11734
11735 DLLEXT=""
11736
11737 DLLFLAGS="-D_REENTRANT"
11738
11739 DLLIBS=""
11740
11741 LDSHARED=""
11742
11743 LDDLL=""
11744
11745 LIBEXT="so"
11746
11747 IMPLIBEXT="def"
11748
11749
11750 case $host_os in
11751   cygwin*|mingw32*)
11752     if test -n "$ac_tool_prefix"; then
11753   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11754 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11755 echo "$as_me:$LINENO: checking for $ac_word" >&5
11756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11757 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11758   echo $ECHO_N "(cached) $ECHO_C" >&6
11759 else
11760   if test -n "$DLLTOOL"; then
11761   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11762 else
11763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764 for as_dir in $PATH
11765 do
11766   IFS=$as_save_IFS
11767   test -z "$as_dir" && as_dir=.
11768   for ac_exec_ext in '' $ac_executable_extensions; do
11769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11770     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11772     break 2
11773   fi
11774 done
11775 done
11776
11777 fi
11778 fi
11779 DLLTOOL=$ac_cv_prog_DLLTOOL
11780 if test -n "$DLLTOOL"; then
11781   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11782 echo "${ECHO_T}$DLLTOOL" >&6
11783 else
11784   echo "$as_me:$LINENO: result: no" >&5
11785 echo "${ECHO_T}no" >&6
11786 fi
11787
11788 fi
11789 if test -z "$ac_cv_prog_DLLTOOL"; then
11790   ac_ct_DLLTOOL=$DLLTOOL
11791   # Extract the first word of "dlltool", so it can be a program name with args.
11792 set dummy dlltool; ac_word=$2
11793 echo "$as_me:$LINENO: checking for $ac_word" >&5
11794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11795 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11796   echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798   if test -n "$ac_ct_DLLTOOL"; then
11799   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11800 else
11801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802 for as_dir in $PATH
11803 do
11804   IFS=$as_save_IFS
11805   test -z "$as_dir" && as_dir=.
11806   for ac_exec_ext in '' $ac_executable_extensions; do
11807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11808     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11810     break 2
11811   fi
11812 done
11813 done
11814
11815   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
11816 fi
11817 fi
11818 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11819 if test -n "$ac_ct_DLLTOOL"; then
11820   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11821 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
11822 else
11823   echo "$as_me:$LINENO: result: no" >&5
11824 echo "${ECHO_T}no" >&6
11825 fi
11826
11827   DLLTOOL=$ac_ct_DLLTOOL
11828 else
11829   DLLTOOL="$ac_cv_prog_DLLTOOL"
11830 fi
11831
11832     if test -n "$ac_tool_prefix"; then
11833   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
11834 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
11835 echo "$as_me:$LINENO: checking for $ac_word" >&5
11836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11837 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
11838   echo $ECHO_N "(cached) $ECHO_C" >&6
11839 else
11840   if test -n "$DLLWRAP"; then
11841   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
11842 else
11843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11844 for as_dir in $PATH
11845 do
11846   IFS=$as_save_IFS
11847   test -z "$as_dir" && as_dir=.
11848   for ac_exec_ext in '' $ac_executable_extensions; do
11849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11850     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
11851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11852     break 2
11853   fi
11854 done
11855 done
11856
11857 fi
11858 fi
11859 DLLWRAP=$ac_cv_prog_DLLWRAP
11860 if test -n "$DLLWRAP"; then
11861   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
11862 echo "${ECHO_T}$DLLWRAP" >&6
11863 else
11864   echo "$as_me:$LINENO: result: no" >&5
11865 echo "${ECHO_T}no" >&6
11866 fi
11867
11868 fi
11869 if test -z "$ac_cv_prog_DLLWRAP"; then
11870   ac_ct_DLLWRAP=$DLLWRAP
11871   # Extract the first word of "dllwrap", so it can be a program name with args.
11872 set dummy dllwrap; ac_word=$2
11873 echo "$as_me:$LINENO: checking for $ac_word" >&5
11874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11875 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
11876   echo $ECHO_N "(cached) $ECHO_C" >&6
11877 else
11878   if test -n "$ac_ct_DLLWRAP"; then
11879   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
11880 else
11881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11882 for as_dir in $PATH
11883 do
11884   IFS=$as_save_IFS
11885   test -z "$as_dir" && as_dir=.
11886   for ac_exec_ext in '' $ac_executable_extensions; do
11887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11888     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
11889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11890     break 2
11891   fi
11892 done
11893 done
11894
11895   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
11896 fi
11897 fi
11898 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
11899 if test -n "$ac_ct_DLLWRAP"; then
11900   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
11901 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
11902 else
11903   echo "$as_me:$LINENO: result: no" >&5
11904 echo "${ECHO_T}no" >&6
11905 fi
11906
11907   DLLWRAP=$ac_ct_DLLWRAP
11908 else
11909   DLLWRAP="$ac_cv_prog_DLLWRAP"
11910 fi
11911
11912     if test "$DLLWRAP" = "false"; then
11913       LIBEXT="a"
11914     else
11915             LIBEXT="dll"
11916     fi
11917     IMPLIBEXT="a"
11918     ;;
11919   *)
11920
11921 for ac_header in dlfcn.h
11922 do
11923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11925   echo "$as_me:$LINENO: checking for $ac_header" >&5
11926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11928   echo $ECHO_N "(cached) $ECHO_C" >&6
11929 fi
11930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11932 else
11933   # Is the header compilable?
11934 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11936 cat >conftest.$ac_ext <<_ACEOF
11937 #line $LINENO "configure"
11938 /* confdefs.h.  */
11939 _ACEOF
11940 cat confdefs.h >>conftest.$ac_ext
11941 cat >>conftest.$ac_ext <<_ACEOF
11942 /* end confdefs.h.  */
11943 $ac_includes_default
11944 #include <$ac_header>
11945 _ACEOF
11946 rm -f conftest.$ac_objext
11947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11948   (eval $ac_compile) 2>&5
11949   ac_status=$?
11950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); } &&
11952          { ac_try='test -s conftest.$ac_objext'
11953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954   (eval $ac_try) 2>&5
11955   ac_status=$?
11956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957   (exit $ac_status); }; }; then
11958   ac_header_compiler=yes
11959 else
11960   echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11962
11963 ac_header_compiler=no
11964 fi
11965 rm -f conftest.$ac_objext conftest.$ac_ext
11966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11967 echo "${ECHO_T}$ac_header_compiler" >&6
11968
11969 # Is the header present?
11970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11972 cat >conftest.$ac_ext <<_ACEOF
11973 #line $LINENO "configure"
11974 /* confdefs.h.  */
11975 _ACEOF
11976 cat confdefs.h >>conftest.$ac_ext
11977 cat >>conftest.$ac_ext <<_ACEOF
11978 /* end confdefs.h.  */
11979 #include <$ac_header>
11980 _ACEOF
11981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11982   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11983   ac_status=$?
11984   grep -v '^ *+' conftest.er1 >conftest.err
11985   rm -f conftest.er1
11986   cat conftest.err >&5
11987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988   (exit $ac_status); } >/dev/null; then
11989   if test -s conftest.err; then
11990     ac_cpp_err=$ac_c_preproc_warn_flag
11991   else
11992     ac_cpp_err=
11993   fi
11994 else
11995   ac_cpp_err=yes
11996 fi
11997 if test -z "$ac_cpp_err"; then
11998   ac_header_preproc=yes
11999 else
12000   echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12002
12003   ac_header_preproc=no
12004 fi
12005 rm -f conftest.err conftest.$ac_ext
12006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12007 echo "${ECHO_T}$ac_header_preproc" >&6
12008
12009 # So?  What about this header?
12010 case $ac_header_compiler:$ac_header_preproc in
12011   yes:no )
12012     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12016     (
12017       cat <<\_ASBOX
12018 ## ------------------------------------ ##
12019 ## Report this to bug-autoconf@gnu.org. ##
12020 ## ------------------------------------ ##
12021 _ASBOX
12022     ) |
12023       sed "s/^/$as_me: WARNING:     /" >&2
12024     ;;
12025   no:yes )
12026     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12028     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12030     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12032     (
12033       cat <<\_ASBOX
12034 ## ------------------------------------ ##
12035 ## Report this to bug-autoconf@gnu.org. ##
12036 ## ------------------------------------ ##
12037 _ASBOX
12038     ) |
12039       sed "s/^/$as_me: WARNING:     /" >&2
12040     ;;
12041 esac
12042 echo "$as_me:$LINENO: checking for $ac_header" >&5
12043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12045   echo $ECHO_N "(cached) $ECHO_C" >&6
12046 else
12047   eval "$as_ac_Header=$ac_header_preproc"
12048 fi
12049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12051
12052 fi
12053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12054   cat >>confdefs.h <<_ACEOF
12055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12056 _ACEOF
12057
12058 for ac_func in dlopen
12059 do
12060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12061 echo "$as_me:$LINENO: checking for $ac_func" >&5
12062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12063 if eval "test \"\${$as_ac_var+set}\" = set"; then
12064   echo $ECHO_N "(cached) $ECHO_C" >&6
12065 else
12066   cat >conftest.$ac_ext <<_ACEOF
12067 #line $LINENO "configure"
12068 /* confdefs.h.  */
12069 _ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h.  */
12073 /* System header to define __stub macros and hopefully few prototypes,
12074     which can conflict with char $ac_func (); below.
12075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12076     <limits.h> exists even on freestanding compilers.  */
12077 #ifdef __STDC__
12078 # include <limits.h>
12079 #else
12080 # include <assert.h>
12081 #endif
12082 /* Override any gcc2 internal prototype to avoid an error.  */
12083 #ifdef __cplusplus
12084 extern "C"
12085 {
12086 #endif
12087 /* We use char because int might match the return type of a gcc2
12088    builtin and then its argument prototype would still apply.  */
12089 char $ac_func ();
12090 /* The GNU C library defines this for functions which it implements
12091     to always fail with ENOSYS.  Some functions are actually named
12092     something starting with __ and the normal name is an alias.  */
12093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12094 choke me
12095 #else
12096 char (*f) () = $ac_func;
12097 #endif
12098 #ifdef __cplusplus
12099 }
12100 #endif
12101
12102 int
12103 main ()
12104 {
12105 return f != $ac_func;
12106   ;
12107   return 0;
12108 }
12109 _ACEOF
12110 rm -f conftest.$ac_objext conftest$ac_exeext
12111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12112   (eval $ac_link) 2>&5
12113   ac_status=$?
12114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); } &&
12116          { ac_try='test -s conftest$ac_exeext'
12117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118   (eval $ac_try) 2>&5
12119   ac_status=$?
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); }; }; then
12122   eval "$as_ac_var=yes"
12123 else
12124   echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12126
12127 eval "$as_ac_var=no"
12128 fi
12129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12130 fi
12131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12133 if test `eval echo '${'$as_ac_var'}'` = yes; then
12134   cat >>confdefs.h <<_ACEOF
12135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12136 _ACEOF
12137
12138 else
12139   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12140 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12141 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12142   echo $ECHO_N "(cached) $ECHO_C" >&6
12143 else
12144   ac_check_lib_save_LIBS=$LIBS
12145 LIBS="-ldl  $LIBS"
12146 cat >conftest.$ac_ext <<_ACEOF
12147 #line $LINENO "configure"
12148 /* confdefs.h.  */
12149 _ACEOF
12150 cat confdefs.h >>conftest.$ac_ext
12151 cat >>conftest.$ac_ext <<_ACEOF
12152 /* end confdefs.h.  */
12153
12154 /* Override any gcc2 internal prototype to avoid an error.  */
12155 #ifdef __cplusplus
12156 extern "C"
12157 #endif
12158 /* We use char because int might match the return type of a gcc2
12159    builtin and then its argument prototype would still apply.  */
12160 char dlopen ();
12161 int
12162 main ()
12163 {
12164 dlopen ();
12165   ;
12166   return 0;
12167 }
12168 _ACEOF
12169 rm -f conftest.$ac_objext conftest$ac_exeext
12170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12171   (eval $ac_link) 2>&5
12172   ac_status=$?
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); } &&
12175          { ac_try='test -s conftest$ac_exeext'
12176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177   (eval $ac_try) 2>&5
12178   ac_status=$?
12179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180   (exit $ac_status); }; }; then
12181   ac_cv_lib_dl_dlopen=yes
12182 else
12183   echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12185
12186 ac_cv_lib_dl_dlopen=no
12187 fi
12188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12189 LIBS=$ac_check_lib_save_LIBS
12190 fi
12191 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12192 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12193 if test $ac_cv_lib_dl_dlopen = yes; then
12194
12195 cat >>confdefs.h <<\_ACEOF
12196 #define HAVE_DLOPEN 1
12197 _ACEOF
12198
12199                           DLLIBS="-ldl"
12200 else
12201   LIBEXT="a"
12202 fi
12203
12204 fi
12205 done
12206
12207 else
12208   LIBEXT="a"
12209 fi
12210
12211 done
12212
12213
12214     if test "$LIBEXT" = "so"
12215     then
12216       DLLFLAGS="$DLLFLAGS -fPIC"
12217       DLLEXT=".so"
12218       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
12219 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
12220 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
12221   echo $ECHO_N "(cached) $ECHO_C" >&6
12222 else
12223   ac_wine_try_cflags_saved=$CFLAGS
12224 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
12225 cat >conftest.$ac_ext <<_ACEOF
12226 #line $LINENO "configure"
12227 /* confdefs.h.  */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h.  */
12232
12233 int
12234 main ()
12235 {
12236
12237   ;
12238   return 0;
12239 }
12240 _ACEOF
12241 rm -f conftest.$ac_objext conftest$ac_exeext
12242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12243   (eval $ac_link) 2>&5
12244   ac_status=$?
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); } &&
12247          { ac_try='test -s conftest$ac_exeext'
12248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249   (eval $ac_try) 2>&5
12250   ac_status=$?
12251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252   (exit $ac_status); }; }; then
12253   ac_cv_c_dll_gnuelf="yes"
12254 else
12255   echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12257
12258 ac_cv_c_dll_gnuelf="no"
12259 fi
12260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12261 CFLAGS=$ac_wine_try_cflags_saved
12262 fi
12263 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
12264 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
12265       if test "$ac_cv_c_dll_gnuelf" = "yes"
12266       then
12267         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
12268         LDDLL="\$(CC) -shared -Wl,-Bsymbolic"
12269         echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
12270 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
12271 if test "${ac_cv_c_dll_zdefs+set}" = set; then
12272   echo $ECHO_N "(cached) $ECHO_C" >&6
12273 else
12274   ac_wine_try_cflags_saved=$CFLAGS
12275 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
12276 cat >conftest.$ac_ext <<_ACEOF
12277 #line $LINENO "configure"
12278 /* confdefs.h.  */
12279 _ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h.  */
12283
12284 int
12285 main ()
12286 {
12287
12288   ;
12289   return 0;
12290 }
12291 _ACEOF
12292 rm -f conftest.$ac_objext conftest$ac_exeext
12293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12294   (eval $ac_link) 2>&5
12295   ac_status=$?
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); } &&
12298          { ac_try='test -s conftest$ac_exeext'
12299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300   (eval $ac_try) 2>&5
12301   ac_status=$?
12302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303   (exit $ac_status); }; }; then
12304   ac_cv_c_dll_zdefs="yes"
12305 else
12306   echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12308
12309 ac_cv_c_dll_zdefs="no"
12310 fi
12311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12312 CFLAGS=$ac_wine_try_cflags_saved
12313 fi
12314 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
12315 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
12316         if test "$ac_cv_c_dll_zdefs" = "yes"
12317         then
12318           LDDLL="$LDDLL,-z,defs"
12319         fi
12320         echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x3c000000" >&5
12321 echo $ECHO_N "checking whether we can relocate the executable to 0x3c000000... $ECHO_C" >&6
12322 if test "${ac_cv_ld_reloc_exec+set}" = set; then
12323   echo $ECHO_N "(cached) $ECHO_C" >&6
12324 else
12325   saved_CFLAGS="$CFLAGS"
12326            CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x3c000100"
12327            if test "$cross_compiling" = yes; then
12328   ac_cv_ld_reloc_exec="no"
12329 else
12330   cat >conftest.$ac_ext <<_ACEOF
12331 #line $LINENO "configure"
12332 /* confdefs.h.  */
12333 _ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h.  */
12337 #include <unistd.h>
12338                        int main() { return (sbrk(32*1024*1024) == (void *)-1); }
12339 _ACEOF
12340 rm -f conftest$ac_exeext
12341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12342   (eval $ac_link) 2>&5
12343   ac_status=$?
12344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347   (eval $ac_try) 2>&5
12348   ac_status=$?
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); }; }; then
12351   ac_cv_ld_reloc_exec="yes"
12352 else
12353   echo "$as_me: program exited with status $ac_status" >&5
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12356
12357 ( exit $ac_status )
12358 ac_cv_ld_reloc_exec="no"
12359 fi
12360 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12361 fi
12362            CFLAGS="$saved_CFLAGS"
12363 fi
12364 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
12365 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
12366         if test "$ac_cv_ld_reloc_exec" = "yes"
12367         then
12368           LDEXECFLAGS="-Wl,--section-start,.interp=0x3c000100"
12369
12370         fi
12371       else
12372         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
12373 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
12374 if test "${ac_cv_c_dll_unixware+set}" = set; then
12375   echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377   ac_wine_try_cflags_saved=$CFLAGS
12378 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
12379 cat >conftest.$ac_ext <<_ACEOF
12380 #line $LINENO "configure"
12381 /* confdefs.h.  */
12382 _ACEOF
12383 cat confdefs.h >>conftest.$ac_ext
12384 cat >>conftest.$ac_ext <<_ACEOF
12385 /* end confdefs.h.  */
12386
12387 int
12388 main ()
12389 {
12390
12391   ;
12392   return 0;
12393 }
12394 _ACEOF
12395 rm -f conftest.$ac_objext conftest$ac_exeext
12396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12397   (eval $ac_link) 2>&5
12398   ac_status=$?
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); } &&
12401          { ac_try='test -s conftest$ac_exeext'
12402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403   (eval $ac_try) 2>&5
12404   ac_status=$?
12405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406   (exit $ac_status); }; }; then
12407   ac_cv_c_dll_unixware="yes"
12408 else
12409   echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12411
12412 ac_cv_c_dll_unixware="no"
12413 fi
12414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12415 CFLAGS=$ac_wine_try_cflags_saved
12416 fi
12417 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
12418 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
12419         if test "$ac_cv_c_dll_unixware" = "yes"
12420         then
12421           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
12422           LDDLL="\$(CC) -Wl,-G,-B,symbolic"
12423         fi
12424       fi
12425     fi
12426
12427         CROSSTEST=""
12428
12429     if test "$cross_compiling" = "no"
12430     then
12431       for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc
12432 do
12433   # Extract the first word of "$ac_prog", so it can be a program name with args.
12434 set dummy $ac_prog; ac_word=$2
12435 echo "$as_me:$LINENO: checking for $ac_word" >&5
12436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12437 if test "${ac_cv_prog_CROSSCC+set}" = set; then
12438   echo $ECHO_N "(cached) $ECHO_C" >&6
12439 else
12440   if test -n "$CROSSCC"; then
12441   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
12442 else
12443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12444 for as_dir in $PATH
12445 do
12446   IFS=$as_save_IFS
12447   test -z "$as_dir" && as_dir=.
12448   for ac_exec_ext in '' $ac_executable_extensions; do
12449   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12450     ac_cv_prog_CROSSCC="$ac_prog"
12451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12452     break 2
12453   fi
12454 done
12455 done
12456
12457 fi
12458 fi
12459 CROSSCC=$ac_cv_prog_CROSSCC
12460 if test -n "$CROSSCC"; then
12461   echo "$as_me:$LINENO: result: $CROSSCC" >&5
12462 echo "${ECHO_T}$CROSSCC" >&6
12463 else
12464   echo "$as_me:$LINENO: result: no" >&5
12465 echo "${ECHO_T}no" >&6
12466 fi
12467
12468   test -n "$CROSSCC" && break
12469 done
12470 test -n "$CROSSCC" || CROSSCC="false"
12471
12472       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool
12473 do
12474   # Extract the first word of "$ac_prog", so it can be a program name with args.
12475 set dummy $ac_prog; ac_word=$2
12476 echo "$as_me:$LINENO: checking for $ac_word" >&5
12477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12478 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12479   echo $ECHO_N "(cached) $ECHO_C" >&6
12480 else
12481   if test -n "$DLLTOOL"; then
12482   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12483 else
12484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12485 for as_dir in $PATH
12486 do
12487   IFS=$as_save_IFS
12488   test -z "$as_dir" && as_dir=.
12489   for ac_exec_ext in '' $ac_executable_extensions; do
12490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12491     ac_cv_prog_DLLTOOL="$ac_prog"
12492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12493     break 2
12494   fi
12495 done
12496 done
12497
12498 fi
12499 fi
12500 DLLTOOL=$ac_cv_prog_DLLTOOL
12501 if test -n "$DLLTOOL"; then
12502   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12503 echo "${ECHO_T}$DLLTOOL" >&6
12504 else
12505   echo "$as_me:$LINENO: result: no" >&5
12506 echo "${ECHO_T}no" >&6
12507 fi
12508
12509   test -n "$DLLTOOL" && break
12510 done
12511 test -n "$DLLTOOL" || DLLTOOL="false"
12512
12513       for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres
12514 do
12515   # Extract the first word of "$ac_prog", so it can be a program name with args.
12516 set dummy $ac_prog; ac_word=$2
12517 echo "$as_me:$LINENO: checking for $ac_word" >&5
12518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12519 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
12520   echo $ECHO_N "(cached) $ECHO_C" >&6
12521 else
12522   if test -n "$CROSSWINDRES"; then
12523   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
12524 else
12525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12526 for as_dir in $PATH
12527 do
12528   IFS=$as_save_IFS
12529   test -z "$as_dir" && as_dir=.
12530   for ac_exec_ext in '' $ac_executable_extensions; do
12531   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12532     ac_cv_prog_CROSSWINDRES="$ac_prog"
12533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12534     break 2
12535   fi
12536 done
12537 done
12538
12539 fi
12540 fi
12541 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
12542 if test -n "$CROSSWINDRES"; then
12543   echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
12544 echo "${ECHO_T}$CROSSWINDRES" >&6
12545 else
12546   echo "$as_me:$LINENO: result: no" >&5
12547 echo "${ECHO_T}no" >&6
12548 fi
12549
12550   test -n "$CROSSWINDRES" && break
12551 done
12552 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
12553
12554       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
12555     fi
12556     ;;
12557 esac
12558
12559 if test "$LIBEXT" = "a"; then
12560   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
12561 It is currently not possible to build Wine without shared library
12562 (.so) support to allow transparent switch between .so and .dll files.
12563 If you are using Linux, you will need a newer binutils.
12564 " >&5
12565 echo "$as_me: error: could not find a way to build shared libraries.
12566 It is currently not possible to build Wine without shared library
12567 (.so) support to allow transparent switch between .so and .dll files.
12568 If you are using Linux, you will need a newer binutils.
12569 " >&2;}
12570    { (exit 1); exit 1; }; }
12571 fi
12572
12573 case $build_os in
12574   cygwin*|mingw32*)
12575     LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
12576  ;;
12577   *)
12578     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
12579  ;;
12580 esac
12581
12582 CRTLIBS=""
12583
12584 case $host_os in
12585   mingw32*)
12586     CRTLIBS="-lmsvcrt" ;;
12587 esac
12588
12589
12590 if test "$LIBEXT" = "so"
12591 then
12592   # Extract the first word of "ldd", so it can be a program name with args.
12593 set dummy ldd; ac_word=$2
12594 echo "$as_me:$LINENO: checking for $ac_word" >&5
12595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12596 if test "${ac_cv_path_LDD+set}" = set; then
12597   echo $ECHO_N "(cached) $ECHO_C" >&6
12598 else
12599   case $LDD in
12600   [\\/]* | ?:[\\/]*)
12601   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
12602   ;;
12603   *)
12604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12605 as_dummy="/sbin:/usr/sbin:$PATH"
12606 for as_dir in $as_dummy
12607 do
12608   IFS=$as_save_IFS
12609   test -z "$as_dir" && as_dir=.
12610   for ac_exec_ext in '' $ac_executable_extensions; do
12611   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12612     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
12613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12614     break 2
12615   fi
12616 done
12617 done
12618
12619   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
12620   ;;
12621 esac
12622 fi
12623 LDD=$ac_cv_path_LDD
12624
12625 if test -n "$LDD"; then
12626   echo "$as_me:$LINENO: result: $LDD" >&5
12627 echo "${ECHO_T}$LDD" >&6
12628 else
12629   echo "$as_me:$LINENO: result: no" >&5
12630 echo "${ECHO_T}no" >&6
12631 fi
12632
12633
12634 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
12635 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
12636 if test "${ac_cv_lib_soname_X11+set}" = set; then
12637   echo $ECHO_N "(cached) $ECHO_C" >&6
12638 else
12639   ac_get_soname_save_LIBS=$LIBS
12640 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
12641   cat >conftest.$ac_ext <<_ACEOF
12642 #line $LINENO "configure"
12643 /* confdefs.h.  */
12644 _ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h.  */
12648
12649 /* Override any gcc2 internal prototype to avoid an error.  */
12650 #ifdef __cplusplus
12651 extern "C"
12652 #endif
12653 /* We use char because int might match the return type of a gcc2
12654    builtin and then its argument prototype would still apply.  */
12655 char XCreateWindow ();
12656 int
12657 main ()
12658 {
12659 XCreateWindow ();
12660   ;
12661   return 0;
12662 }
12663 _ACEOF
12664 rm -f conftest.$ac_objext conftest$ac_exeext
12665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12666   (eval $ac_link) 2>&5
12667   ac_status=$?
12668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669   (exit $ac_status); } &&
12670          { ac_try='test -s conftest$ac_exeext'
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_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^.*\(libX11\.so[^         ]*\).*$/\1/'`
12677   if test "x$ac_cv_lib_soname_X11" = "x"
12678   then
12679      ac_cv_lib_soname_X11="libX11.so"
12680   fi
12681 else
12682   echo "$as_me: failed program was:" >&5
12683 sed 's/^/| /' conftest.$ac_ext >&5
12684
12685 ac_cv_lib_soname_X11="libX11.so"
12686 fi
12687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12688   LIBS=$ac_get_soname_save_LIBS
12689 fi
12690 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
12691 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
12692 if test "x$ac_cv_lib_soname_X11" != xNONE
12693 then
12694 cat >>confdefs.h <<_ACEOF
12695 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
12696 _ACEOF
12697 fi
12698
12699 echo "$as_me:$LINENO: checking for -lXext soname" >&5
12700 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
12701 if test "${ac_cv_lib_soname_Xext+set}" = set; then
12702   echo $ECHO_N "(cached) $ECHO_C" >&6
12703 else
12704   ac_get_soname_save_LIBS=$LIBS
12705 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
12706   cat >conftest.$ac_ext <<_ACEOF
12707 #line $LINENO "configure"
12708 /* confdefs.h.  */
12709 _ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h.  */
12713
12714 /* Override any gcc2 internal prototype to avoid an error.  */
12715 #ifdef __cplusplus
12716 extern "C"
12717 #endif
12718 /* We use char because int might match the return type of a gcc2
12719    builtin and then its argument prototype would still apply.  */
12720 char XextCreateExtension ();
12721 int
12722 main ()
12723 {
12724 XextCreateExtension ();
12725   ;
12726   return 0;
12727 }
12728 _ACEOF
12729 rm -f conftest.$ac_objext conftest$ac_exeext
12730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12731   (eval $ac_link) 2>&5
12732   ac_status=$?
12733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734   (exit $ac_status); } &&
12735          { ac_try='test -s conftest$ac_exeext'
12736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737   (eval $ac_try) 2>&5
12738   ac_status=$?
12739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740   (exit $ac_status); }; }; then
12741   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^.*\(libXext\.so[^      ]*\).*$/\1/'`
12742   if test "x$ac_cv_lib_soname_Xext" = "x"
12743   then
12744      ac_cv_lib_soname_Xext="libXext.so"
12745   fi
12746 else
12747   echo "$as_me: failed program was:" >&5
12748 sed 's/^/| /' conftest.$ac_ext >&5
12749
12750 ac_cv_lib_soname_Xext="libXext.so"
12751 fi
12752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12753   LIBS=$ac_get_soname_save_LIBS
12754 fi
12755 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
12756 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
12757 if test "x$ac_cv_lib_soname_Xext" != xNONE
12758 then
12759 cat >>confdefs.h <<_ACEOF
12760 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
12761 _ACEOF
12762 fi
12763
12764 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
12765 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
12766 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
12767   echo $ECHO_N "(cached) $ECHO_C" >&6
12768 else
12769   ac_get_soname_save_LIBS=$LIBS
12770 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
12771   cat >conftest.$ac_ext <<_ACEOF
12772 #line $LINENO "configure"
12773 /* confdefs.h.  */
12774 _ACEOF
12775 cat confdefs.h >>conftest.$ac_ext
12776 cat >>conftest.$ac_ext <<_ACEOF
12777 /* end confdefs.h.  */
12778
12779 /* Override any gcc2 internal prototype to avoid an error.  */
12780 #ifdef __cplusplus
12781 extern "C"
12782 #endif
12783 /* We use char because int might match the return type of a gcc2
12784    builtin and then its argument prototype would still apply.  */
12785 char XRenderQueryExtension ();
12786 int
12787 main ()
12788 {
12789 XRenderQueryExtension ();
12790   ;
12791   return 0;
12792 }
12793 _ACEOF
12794 rm -f conftest.$ac_objext conftest$ac_exeext
12795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12796   (eval $ac_link) 2>&5
12797   ac_status=$?
12798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799   (exit $ac_status); } &&
12800          { ac_try='test -s conftest$ac_exeext'
12801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802   (eval $ac_try) 2>&5
12803   ac_status=$?
12804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805   (exit $ac_status); }; }; then
12806   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^.*\(libXrender\.so[^     ]*\).*$/\1/'`
12807   if test "x$ac_cv_lib_soname_Xrender" = "x"
12808   then
12809      ac_cv_lib_soname_Xrender="libXrender.so"
12810   fi
12811 else
12812   echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12814
12815 ac_cv_lib_soname_Xrender="libXrender.so"
12816 fi
12817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12818   LIBS=$ac_get_soname_save_LIBS
12819 fi
12820 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
12821 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
12822 if test "x$ac_cv_lib_soname_Xrender" != xNONE
12823 then
12824 cat >>confdefs.h <<_ACEOF
12825 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
12826 _ACEOF
12827 fi
12828
12829 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
12830 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
12831 if test "${ac_cv_lib_soname_freetype+set}" = set; then
12832   echo $ECHO_N "(cached) $ECHO_C" >&6
12833 else
12834   ac_get_soname_save_LIBS=$LIBS
12835 LIBS="-lfreetype $X_LIBS $LIBS"
12836   cat >conftest.$ac_ext <<_ACEOF
12837 #line $LINENO "configure"
12838 /* confdefs.h.  */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h.  */
12843
12844 /* Override any gcc2 internal prototype to avoid an error.  */
12845 #ifdef __cplusplus
12846 extern "C"
12847 #endif
12848 /* We use char because int might match the return type of a gcc2
12849    builtin and then its argument prototype would still apply.  */
12850 char FT_Init_FreeType ();
12851 int
12852 main ()
12853 {
12854 FT_Init_FreeType ();
12855   ;
12856   return 0;
12857 }
12858 _ACEOF
12859 rm -f conftest.$ac_objext conftest$ac_exeext
12860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12861   (eval $ac_link) 2>&5
12862   ac_status=$?
12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); } &&
12865          { ac_try='test -s conftest$ac_exeext'
12866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867   (eval $ac_try) 2>&5
12868   ac_status=$?
12869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870   (exit $ac_status); }; }; then
12871   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^.*\(libfreetype\.so[^  ]*\).*$/\1/'`
12872   if test "x$ac_cv_lib_soname_freetype" = "x"
12873   then
12874      ac_cv_lib_soname_freetype="libfreetype.so"
12875   fi
12876 else
12877   echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12879
12880 ac_cv_lib_soname_freetype="libfreetype.so"
12881 fi
12882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12883   LIBS=$ac_get_soname_save_LIBS
12884 fi
12885 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
12886 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
12887 if test "x$ac_cv_lib_soname_freetype" != xNONE
12888 then
12889 cat >>confdefs.h <<_ACEOF
12890 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
12891 _ACEOF
12892 fi
12893
12894 echo "$as_me:$LINENO: checking for -lGL soname" >&5
12895 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
12896 if test "${ac_cv_lib_soname_GL+set}" = set; then
12897   echo $ECHO_N "(cached) $ECHO_C" >&6
12898 else
12899   ac_get_soname_save_LIBS=$LIBS
12900 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
12901   cat >conftest.$ac_ext <<_ACEOF
12902 #line $LINENO "configure"
12903 /* confdefs.h.  */
12904 _ACEOF
12905 cat confdefs.h >>conftest.$ac_ext
12906 cat >>conftest.$ac_ext <<_ACEOF
12907 /* end confdefs.h.  */
12908
12909 /* Override any gcc2 internal prototype to avoid an error.  */
12910 #ifdef __cplusplus
12911 extern "C"
12912 #endif
12913 /* We use char because int might match the return type of a gcc2
12914    builtin and then its argument prototype would still apply.  */
12915 char glXQueryExtension ();
12916 int
12917 main ()
12918 {
12919 glXQueryExtension ();
12920   ;
12921   return 0;
12922 }
12923 _ACEOF
12924 rm -f conftest.$ac_objext conftest$ac_exeext
12925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12926   (eval $ac_link) 2>&5
12927   ac_status=$?
12928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); } &&
12930          { ac_try='test -s conftest$ac_exeext'
12931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932   (eval $ac_try) 2>&5
12933   ac_status=$?
12934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935   (exit $ac_status); }; }; then
12936   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^.*\(libGL\.so[^    ]*\).*$/\1/'`
12937   if test "x$ac_cv_lib_soname_GL" = "x"
12938   then
12939      ac_cv_lib_soname_GL="libGL.so"
12940   fi
12941 else
12942   echo "$as_me: failed program was:" >&5
12943 sed 's/^/| /' conftest.$ac_ext >&5
12944
12945 ac_cv_lib_soname_GL="libGL.so"
12946 fi
12947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12948   LIBS=$ac_get_soname_save_LIBS
12949 fi
12950 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
12951 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
12952 if test "x$ac_cv_lib_soname_GL" != xNONE
12953 then
12954 cat >>confdefs.h <<_ACEOF
12955 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
12956 _ACEOF
12957 fi
12958
12959 echo "$as_me:$LINENO: checking for -lcups soname" >&5
12960 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
12961 if test "${ac_cv_lib_soname_cups+set}" = set; then
12962   echo $ECHO_N "(cached) $ECHO_C" >&6
12963 else
12964   ac_get_soname_save_LIBS=$LIBS
12965 LIBS="-lcups  $LIBS"
12966   cat >conftest.$ac_ext <<_ACEOF
12967 #line $LINENO "configure"
12968 /* confdefs.h.  */
12969 _ACEOF
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h.  */
12973
12974 /* Override any gcc2 internal prototype to avoid an error.  */
12975 #ifdef __cplusplus
12976 extern "C"
12977 #endif
12978 /* We use char because int might match the return type of a gcc2
12979    builtin and then its argument prototype would still apply.  */
12980 char cupsGetDefault ();
12981 int
12982 main ()
12983 {
12984 cupsGetDefault ();
12985   ;
12986   return 0;
12987 }
12988 _ACEOF
12989 rm -f conftest.$ac_objext conftest$ac_exeext
12990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12991   (eval $ac_link) 2>&5
12992   ac_status=$?
12993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994   (exit $ac_status); } &&
12995          { ac_try='test -s conftest$ac_exeext'
12996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997   (eval $ac_try) 2>&5
12998   ac_status=$?
12999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); }; }; then
13001   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^.*\(libcups\.so[^      ]*\).*$/\1/'`
13002   if test "x$ac_cv_lib_soname_cups" = "x"
13003   then
13004      ac_cv_lib_soname_cups="libcups.so"
13005   fi
13006 else
13007   echo "$as_me: failed program was:" >&5
13008 sed 's/^/| /' conftest.$ac_ext >&5
13009
13010 ac_cv_lib_soname_cups="libcups.so"
13011 fi
13012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13013   LIBS=$ac_get_soname_save_LIBS
13014 fi
13015 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
13016 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
13017 if test "x$ac_cv_lib_soname_cups" != xNONE
13018 then
13019 cat >>confdefs.h <<_ACEOF
13020 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
13021 _ACEOF
13022 fi
13023
13024 echo "$as_me:$LINENO: checking for -ljack soname" >&5
13025 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
13026 if test "${ac_cv_lib_soname_jack+set}" = set; then
13027   echo $ECHO_N "(cached) $ECHO_C" >&6
13028 else
13029   ac_get_soname_save_LIBS=$LIBS
13030 LIBS="-ljack  $LIBS"
13031   cat >conftest.$ac_ext <<_ACEOF
13032 #line $LINENO "configure"
13033 /* confdefs.h.  */
13034 _ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h.  */
13038
13039 /* Override any gcc2 internal prototype to avoid an error.  */
13040 #ifdef __cplusplus
13041 extern "C"
13042 #endif
13043 /* We use char because int might match the return type of a gcc2
13044    builtin and then its argument prototype would still apply.  */
13045 char jack_client_new ();
13046 int
13047 main ()
13048 {
13049 jack_client_new ();
13050   ;
13051   return 0;
13052 }
13053 _ACEOF
13054 rm -f conftest.$ac_objext conftest$ac_exeext
13055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13056   (eval $ac_link) 2>&5
13057   ac_status=$?
13058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059   (exit $ac_status); } &&
13060          { ac_try='test -s conftest$ac_exeext'
13061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062   (eval $ac_try) 2>&5
13063   ac_status=$?
13064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065   (exit $ac_status); }; }; then
13066   ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^.*\(libjack\.so[^      ]*\).*$/\1/'`
13067   if test "x$ac_cv_lib_soname_jack" = "x"
13068   then
13069      ac_cv_lib_soname_jack="libjack.so"
13070   fi
13071 else
13072   echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13074
13075 ac_cv_lib_soname_jack="libjack.so"
13076 fi
13077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13078   LIBS=$ac_get_soname_save_LIBS
13079 fi
13080 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
13081 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
13082 if test "x$ac_cv_lib_soname_jack" != xNONE
13083 then
13084 cat >>confdefs.h <<_ACEOF
13085 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
13086 _ACEOF
13087 fi
13088
13089 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
13090 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
13091 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
13092   echo $ECHO_N "(cached) $ECHO_C" >&6
13093 else
13094   ac_get_soname_save_LIBS=$LIBS
13095 LIBS="-lfontconfig  $LIBS"
13096   cat >conftest.$ac_ext <<_ACEOF
13097 #line $LINENO "configure"
13098 /* confdefs.h.  */
13099 _ACEOF
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h.  */
13103
13104 /* Override any gcc2 internal prototype to avoid an error.  */
13105 #ifdef __cplusplus
13106 extern "C"
13107 #endif
13108 /* We use char because int might match the return type of a gcc2
13109    builtin and then its argument prototype would still apply.  */
13110 char FcInit ();
13111 int
13112 main ()
13113 {
13114 FcInit ();
13115   ;
13116   return 0;
13117 }
13118 _ACEOF
13119 rm -f conftest.$ac_objext conftest$ac_exeext
13120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13121   (eval $ac_link) 2>&5
13122   ac_status=$?
13123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124   (exit $ac_status); } &&
13125          { ac_try='test -s conftest$ac_exeext'
13126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13127   (eval $ac_try) 2>&5
13128   ac_status=$?
13129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130   (exit $ac_status); }; }; then
13131   ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed 's/^.*\(libfontconfig\.so[^    ]*\).*$/\1/'`
13132   if test "x$ac_cv_lib_soname_fontconfig" = "x"
13133   then
13134      ac_cv_lib_soname_fontconfig="libfontconfig.so"
13135   fi
13136 else
13137   echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13139
13140 ac_cv_lib_soname_fontconfig="libfontconfig.so"
13141 fi
13142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13143   LIBS=$ac_get_soname_save_LIBS
13144 fi
13145 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
13146 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
13147 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
13148 then
13149 cat >>confdefs.h <<_ACEOF
13150 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
13151 _ACEOF
13152 fi;
13153
13154 echo "$as_me:$LINENO: checking for -lssl soname" >&5
13155 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
13156 if test "${ac_cv_lib_soname_ssl+set}" = set; then
13157   echo $ECHO_N "(cached) $ECHO_C" >&6
13158 else
13159   ac_get_soname_save_LIBS=$LIBS
13160 LIBS="-lssl  $LIBS"
13161   cat >conftest.$ac_ext <<_ACEOF
13162 #line $LINENO "configure"
13163 /* confdefs.h.  */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h.  */
13168
13169 /* Override any gcc2 internal prototype to avoid an error.  */
13170 #ifdef __cplusplus
13171 extern "C"
13172 #endif
13173 /* We use char because int might match the return type of a gcc2
13174    builtin and then its argument prototype would still apply.  */
13175 char SSL_library_init ();
13176 int
13177 main ()
13178 {
13179 SSL_library_init ();
13180   ;
13181   return 0;
13182 }
13183 _ACEOF
13184 rm -f conftest.$ac_objext conftest$ac_exeext
13185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13186   (eval $ac_link) 2>&5
13187   ac_status=$?
13188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189   (exit $ac_status); } &&
13190          { ac_try='test -s conftest$ac_exeext'
13191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13192   (eval $ac_try) 2>&5
13193   ac_status=$?
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); }; }; then
13196   ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^.*\(libssl\.so[^         ]*\).*$/\1/'`
13197   if test "x$ac_cv_lib_soname_ssl" = "x"
13198   then
13199      ac_cv_lib_soname_ssl="libssl.so"
13200   fi
13201 else
13202   echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13204
13205 ac_cv_lib_soname_ssl="libssl.so"
13206 fi
13207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13208   LIBS=$ac_get_soname_save_LIBS
13209 fi
13210 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
13211 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
13212 if test "x$ac_cv_lib_soname_ssl" != xNONE
13213 then
13214 cat >>confdefs.h <<_ACEOF
13215 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
13216 _ACEOF
13217 fi
13218
13219 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
13220 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
13221 if test "${ac_cv_lib_soname_crypto+set}" = set; then
13222   echo $ECHO_N "(cached) $ECHO_C" >&6
13223 else
13224   ac_get_soname_save_LIBS=$LIBS
13225 LIBS="-lcrypto  $LIBS"
13226   cat >conftest.$ac_ext <<_ACEOF
13227 #line $LINENO "configure"
13228 /* confdefs.h.  */
13229 _ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h.  */
13233
13234 /* Override any gcc2 internal prototype to avoid an error.  */
13235 #ifdef __cplusplus
13236 extern "C"
13237 #endif
13238 /* We use char because int might match the return type of a gcc2
13239    builtin and then its argument prototype would still apply.  */
13240 char BIO_new_socket ();
13241 int
13242 main ()
13243 {
13244 BIO_new_socket ();
13245   ;
13246   return 0;
13247 }
13248 _ACEOF
13249 rm -f conftest.$ac_objext conftest$ac_exeext
13250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13251   (eval $ac_link) 2>&5
13252   ac_status=$?
13253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254   (exit $ac_status); } &&
13255          { ac_try='test -s conftest$ac_exeext'
13256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257   (eval $ac_try) 2>&5
13258   ac_status=$?
13259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260   (exit $ac_status); }; }; then
13261   ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^.*\(libcrypto\.so[^        ]*\).*$/\1/'`
13262   if test "x$ac_cv_lib_soname_crypto" = "x"
13263   then
13264      ac_cv_lib_soname_crypto="libcrypto.so"
13265   fi
13266 else
13267   echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13269
13270 ac_cv_lib_soname_crypto="libcrypto.so"
13271 fi
13272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13273   LIBS=$ac_get_soname_save_LIBS
13274 fi
13275 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
13276 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
13277 if test "x$ac_cv_lib_soname_crypto" != xNONE
13278 then
13279 cat >>confdefs.h <<_ACEOF
13280 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
13281 _ACEOF
13282 fi
13283
13284 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
13285 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
13286 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
13287   echo $ECHO_N "(cached) $ECHO_C" >&6
13288 else
13289   ac_get_soname_save_LIBS=$LIBS
13290 LIBS="-lncurses  $LIBS"
13291   cat >conftest.$ac_ext <<_ACEOF
13292 #line $LINENO "configure"
13293 /* confdefs.h.  */
13294 _ACEOF
13295 cat confdefs.h >>conftest.$ac_ext
13296 cat >>conftest.$ac_ext <<_ACEOF
13297 /* end confdefs.h.  */
13298
13299 /* Override any gcc2 internal prototype to avoid an error.  */
13300 #ifdef __cplusplus
13301 extern "C"
13302 #endif
13303 /* We use char because int might match the return type of a gcc2
13304    builtin and then its argument prototype would still apply.  */
13305 char waddch ();
13306 int
13307 main ()
13308 {
13309 waddch ();
13310   ;
13311   return 0;
13312 }
13313 _ACEOF
13314 rm -f conftest.$ac_objext conftest$ac_exeext
13315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13316   (eval $ac_link) 2>&5
13317   ac_status=$?
13318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319   (exit $ac_status); } &&
13320          { ac_try='test -s conftest$ac_exeext'
13321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322   (eval $ac_try) 2>&5
13323   ac_status=$?
13324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325   (exit $ac_status); }; }; then
13326   ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed 's/^.*\(libncurses\.so[^     ]*\).*$/\1/'`
13327   if test "x$ac_cv_lib_soname_ncurses" = "x"
13328   then
13329      ac_cv_lib_soname_ncurses="libncurses.so"
13330   fi
13331 else
13332   echo "$as_me: failed program was:" >&5
13333 sed 's/^/| /' conftest.$ac_ext >&5
13334
13335 ac_cv_lib_soname_ncurses="libncurses.so"
13336 fi
13337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13338   LIBS=$ac_get_soname_save_LIBS
13339 fi
13340 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
13341 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
13342 if test "x$ac_cv_lib_soname_ncurses" != xNONE
13343 then
13344 cat >>confdefs.h <<_ACEOF
13345 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
13346 _ACEOF
13347 fi
13348
13349 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
13350 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
13351 if test "${ac_cv_lib_soname_curses+set}" = set; then
13352   echo $ECHO_N "(cached) $ECHO_C" >&6
13353 else
13354   ac_get_soname_save_LIBS=$LIBS
13355 LIBS="-lcurses  $LIBS"
13356   cat >conftest.$ac_ext <<_ACEOF
13357 #line $LINENO "configure"
13358 /* confdefs.h.  */
13359 _ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h.  */
13363
13364 /* Override any gcc2 internal prototype to avoid an error.  */
13365 #ifdef __cplusplus
13366 extern "C"
13367 #endif
13368 /* We use char because int might match the return type of a gcc2
13369    builtin and then its argument prototype would still apply.  */
13370 char waddch ();
13371 int
13372 main ()
13373 {
13374 waddch ();
13375   ;
13376   return 0;
13377 }
13378 _ACEOF
13379 rm -f conftest.$ac_objext conftest$ac_exeext
13380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13381   (eval $ac_link) 2>&5
13382   ac_status=$?
13383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384   (exit $ac_status); } &&
13385          { ac_try='test -s conftest$ac_exeext'
13386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387   (eval $ac_try) 2>&5
13388   ac_status=$?
13389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390   (exit $ac_status); }; }; then
13391   ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed 's/^.*\(libcurses\.so[^        ]*\).*$/\1/'`
13392   if test "x$ac_cv_lib_soname_curses" = "x"
13393   then
13394      ac_cv_lib_soname_curses="libcurses.so"
13395   fi
13396 else
13397   echo "$as_me: failed program was:" >&5
13398 sed 's/^/| /' conftest.$ac_ext >&5
13399
13400 ac_cv_lib_soname_curses="libcurses.so"
13401 fi
13402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13403   LIBS=$ac_get_soname_save_LIBS
13404 fi
13405 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
13406 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
13407 if test "x$ac_cv_lib_soname_curses" != xNONE
13408 then
13409 cat >>confdefs.h <<_ACEOF
13410 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
13411 _ACEOF
13412 fi
13413 fi
13414
13415
13416
13417 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13418 # for constant arguments.  Useless!
13419 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13420 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13421 if test "${ac_cv_working_alloca_h+set}" = set; then
13422   echo $ECHO_N "(cached) $ECHO_C" >&6
13423 else
13424   cat >conftest.$ac_ext <<_ACEOF
13425 #line $LINENO "configure"
13426 /* confdefs.h.  */
13427 _ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h.  */
13431 #include <alloca.h>
13432 int
13433 main ()
13434 {
13435 char *p = (char *) alloca (2 * sizeof (int));
13436   ;
13437   return 0;
13438 }
13439 _ACEOF
13440 rm -f conftest.$ac_objext conftest$ac_exeext
13441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13442   (eval $ac_link) 2>&5
13443   ac_status=$?
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); } &&
13446          { ac_try='test -s conftest$ac_exeext'
13447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448   (eval $ac_try) 2>&5
13449   ac_status=$?
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); }; }; then
13452   ac_cv_working_alloca_h=yes
13453 else
13454   echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13456
13457 ac_cv_working_alloca_h=no
13458 fi
13459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13460 fi
13461 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13462 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13463 if test $ac_cv_working_alloca_h = yes; then
13464
13465 cat >>confdefs.h <<\_ACEOF
13466 #define HAVE_ALLOCA_H 1
13467 _ACEOF
13468
13469 fi
13470
13471 echo "$as_me:$LINENO: checking for alloca" >&5
13472 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13473 if test "${ac_cv_func_alloca_works+set}" = set; then
13474   echo $ECHO_N "(cached) $ECHO_C" >&6
13475 else
13476   cat >conftest.$ac_ext <<_ACEOF
13477 #line $LINENO "configure"
13478 /* confdefs.h.  */
13479 _ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h.  */
13483 #ifdef __GNUC__
13484 # define alloca __builtin_alloca
13485 #else
13486 # ifdef _MSC_VER
13487 #  include <malloc.h>
13488 #  define alloca _alloca
13489 # else
13490 #  if HAVE_ALLOCA_H
13491 #   include <alloca.h>
13492 #  else
13493 #   ifdef _AIX
13494  #pragma alloca
13495 #   else
13496 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13497 char *alloca ();
13498 #    endif
13499 #   endif
13500 #  endif
13501 # endif
13502 #endif
13503
13504 int
13505 main ()
13506 {
13507 char *p = (char *) alloca (1);
13508   ;
13509   return 0;
13510 }
13511 _ACEOF
13512 rm -f conftest.$ac_objext conftest$ac_exeext
13513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13514   (eval $ac_link) 2>&5
13515   ac_status=$?
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); } &&
13518          { ac_try='test -s conftest$ac_exeext'
13519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520   (eval $ac_try) 2>&5
13521   ac_status=$?
13522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523   (exit $ac_status); }; }; then
13524   ac_cv_func_alloca_works=yes
13525 else
13526   echo "$as_me: failed program was:" >&5
13527 sed 's/^/| /' conftest.$ac_ext >&5
13528
13529 ac_cv_func_alloca_works=no
13530 fi
13531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13532 fi
13533 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13534 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13535
13536 if test $ac_cv_func_alloca_works = yes; then
13537
13538 cat >>confdefs.h <<\_ACEOF
13539 #define HAVE_ALLOCA 1
13540 _ACEOF
13541
13542 else
13543   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13544 # that cause trouble.  Some versions do not even contain alloca or
13545 # contain a buggy version.  If you still want to use their alloca,
13546 # use ar to extract alloca.o from them instead of compiling alloca.c.
13547
13548 ALLOCA=alloca.$ac_objext
13549
13550 cat >>confdefs.h <<\_ACEOF
13551 #define C_ALLOCA 1
13552 _ACEOF
13553
13554
13555 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13556 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13557 if test "${ac_cv_os_cray+set}" = set; then
13558   echo $ECHO_N "(cached) $ECHO_C" >&6
13559 else
13560   cat >conftest.$ac_ext <<_ACEOF
13561 #line $LINENO "configure"
13562 /* confdefs.h.  */
13563 _ACEOF
13564 cat confdefs.h >>conftest.$ac_ext
13565 cat >>conftest.$ac_ext <<_ACEOF
13566 /* end confdefs.h.  */
13567 #if defined(CRAY) && ! defined(CRAY2)
13568 webecray
13569 #else
13570 wenotbecray
13571 #endif
13572
13573 _ACEOF
13574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13575   $EGREP "webecray" >/dev/null 2>&1; then
13576   ac_cv_os_cray=yes
13577 else
13578   ac_cv_os_cray=no
13579 fi
13580 rm -f conftest*
13581
13582 fi
13583 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13584 echo "${ECHO_T}$ac_cv_os_cray" >&6
13585 if test $ac_cv_os_cray = yes; then
13586   for ac_func in _getb67 GETB67 getb67; do
13587     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13588 echo "$as_me:$LINENO: checking for $ac_func" >&5
13589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13590 if eval "test \"\${$as_ac_var+set}\" = set"; then
13591   echo $ECHO_N "(cached) $ECHO_C" >&6
13592 else
13593   cat >conftest.$ac_ext <<_ACEOF
13594 #line $LINENO "configure"
13595 /* confdefs.h.  */
13596 _ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h.  */
13600 /* System header to define __stub macros and hopefully few prototypes,
13601     which can conflict with char $ac_func (); below.
13602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13603     <limits.h> exists even on freestanding compilers.  */
13604 #ifdef __STDC__
13605 # include <limits.h>
13606 #else
13607 # include <assert.h>
13608 #endif
13609 /* Override any gcc2 internal prototype to avoid an error.  */
13610 #ifdef __cplusplus
13611 extern "C"
13612 {
13613 #endif
13614 /* We use char because int might match the return type of a gcc2
13615    builtin and then its argument prototype would still apply.  */
13616 char $ac_func ();
13617 /* The GNU C library defines this for functions which it implements
13618     to always fail with ENOSYS.  Some functions are actually named
13619     something starting with __ and the normal name is an alias.  */
13620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13621 choke me
13622 #else
13623 char (*f) () = $ac_func;
13624 #endif
13625 #ifdef __cplusplus
13626 }
13627 #endif
13628
13629 int
13630 main ()
13631 {
13632 return f != $ac_func;
13633   ;
13634   return 0;
13635 }
13636 _ACEOF
13637 rm -f conftest.$ac_objext conftest$ac_exeext
13638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13639   (eval $ac_link) 2>&5
13640   ac_status=$?
13641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642   (exit $ac_status); } &&
13643          { ac_try='test -s conftest$ac_exeext'
13644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645   (eval $ac_try) 2>&5
13646   ac_status=$?
13647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648   (exit $ac_status); }; }; then
13649   eval "$as_ac_var=yes"
13650 else
13651   echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13653
13654 eval "$as_ac_var=no"
13655 fi
13656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13657 fi
13658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13660 if test `eval echo '${'$as_ac_var'}'` = yes; then
13661
13662 cat >>confdefs.h <<_ACEOF
13663 #define CRAY_STACKSEG_END $ac_func
13664 _ACEOF
13665
13666     break
13667 fi
13668
13669   done
13670 fi
13671
13672 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13673 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13674 if test "${ac_cv_c_stack_direction+set}" = set; then
13675   echo $ECHO_N "(cached) $ECHO_C" >&6
13676 else
13677   if test "$cross_compiling" = yes; then
13678   ac_cv_c_stack_direction=0
13679 else
13680   cat >conftest.$ac_ext <<_ACEOF
13681 #line $LINENO "configure"
13682 /* confdefs.h.  */
13683 _ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h.  */
13687 int
13688 find_stack_direction ()
13689 {
13690   static char *addr = 0;
13691   auto char dummy;
13692   if (addr == 0)
13693     {
13694       addr = &dummy;
13695       return find_stack_direction ();
13696     }
13697   else
13698     return (&dummy > addr) ? 1 : -1;
13699 }
13700
13701 int
13702 main ()
13703 {
13704   exit (find_stack_direction () < 0);
13705 }
13706 _ACEOF
13707 rm -f conftest$ac_exeext
13708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13709   (eval $ac_link) 2>&5
13710   ac_status=$?
13711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714   (eval $ac_try) 2>&5
13715   ac_status=$?
13716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717   (exit $ac_status); }; }; then
13718   ac_cv_c_stack_direction=1
13719 else
13720   echo "$as_me: program exited with status $ac_status" >&5
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13723
13724 ( exit $ac_status )
13725 ac_cv_c_stack_direction=-1
13726 fi
13727 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13728 fi
13729 fi
13730 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13731 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13732
13733 cat >>confdefs.h <<_ACEOF
13734 #define STACK_DIRECTION $ac_cv_c_stack_direction
13735 _ACEOF
13736
13737
13738 fi
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791 for ac_func in \
13792         _lwp_create \
13793         _lwp_self \
13794         _pclose \
13795         _popen \
13796         _snprintf \
13797         _spawnvp \
13798         _stricmp \
13799         _strnicmp \
13800         _vsnprintf \
13801         chsize \
13802         clone \
13803         finite \
13804         fpclass \
13805         ftruncate \
13806         ftruncate64 \
13807         getnetbyaddr \
13808         getnetbyname \
13809         getopt_long \
13810         getpagesize \
13811         getprotobyname \
13812         getprotobynumber \
13813         getpwuid \
13814         getservbyport \
13815         gettimeofday \
13816         inet_network \
13817         lseek64 \
13818         lstat \
13819         memmove \
13820         mmap \
13821         pclose \
13822         popen \
13823         pread \
13824         pwrite \
13825         rfork \
13826         select \
13827         sendmsg \
13828         settimeofday \
13829         sigaltstack \
13830         snprintf \
13831         spawnvp \
13832         statfs \
13833         strcasecmp \
13834         strerror \
13835         strncasecmp \
13836         tcgetattr \
13837         timegm \
13838         usleep \
13839         vfscanf \
13840         vsnprintf \
13841         wait4 \
13842         waitpid \
13843
13844 do
13845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13846 echo "$as_me:$LINENO: checking for $ac_func" >&5
13847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13848 if eval "test \"\${$as_ac_var+set}\" = set"; then
13849   echo $ECHO_N "(cached) $ECHO_C" >&6
13850 else
13851   cat >conftest.$ac_ext <<_ACEOF
13852 #line $LINENO "configure"
13853 /* confdefs.h.  */
13854 _ACEOF
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h.  */
13858 /* System header to define __stub macros and hopefully few prototypes,
13859     which can conflict with char $ac_func (); below.
13860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13861     <limits.h> exists even on freestanding compilers.  */
13862 #ifdef __STDC__
13863 # include <limits.h>
13864 #else
13865 # include <assert.h>
13866 #endif
13867 /* Override any gcc2 internal prototype to avoid an error.  */
13868 #ifdef __cplusplus
13869 extern "C"
13870 {
13871 #endif
13872 /* We use char because int might match the return type of a gcc2
13873    builtin and then its argument prototype would still apply.  */
13874 char $ac_func ();
13875 /* The GNU C library defines this for functions which it implements
13876     to always fail with ENOSYS.  Some functions are actually named
13877     something starting with __ and the normal name is an alias.  */
13878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13879 choke me
13880 #else
13881 char (*f) () = $ac_func;
13882 #endif
13883 #ifdef __cplusplus
13884 }
13885 #endif
13886
13887 int
13888 main ()
13889 {
13890 return f != $ac_func;
13891   ;
13892   return 0;
13893 }
13894 _ACEOF
13895 rm -f conftest.$ac_objext conftest$ac_exeext
13896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13897   (eval $ac_link) 2>&5
13898   ac_status=$?
13899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); } &&
13901          { ac_try='test -s conftest$ac_exeext'
13902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903   (eval $ac_try) 2>&5
13904   ac_status=$?
13905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); }; }; then
13907   eval "$as_ac_var=yes"
13908 else
13909   echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13911
13912 eval "$as_ac_var=no"
13913 fi
13914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13915 fi
13916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13918 if test `eval echo '${'$as_ac_var'}'` = yes; then
13919   cat >>confdefs.h <<_ACEOF
13920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13921 _ACEOF
13922
13923 fi
13924 done
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008 for ac_header in \
14009         arpa/inet.h \
14010         arpa/nameser.h \
14011         cups/cups.h \
14012         direct.h \
14013         elf.h \
14014         float.h \
14015         fontconfig/fontconfig.h \
14016         getopt.h \
14017         ieeefp.h \
14018         io.h \
14019         jack/jack.h \
14020         libio.h \
14021         libutil.h \
14022         link.h \
14023         linux/cdrom.h \
14024         linux/hdreg.h \
14025         linux/input.h \
14026         linux/joystick.h \
14027         linux/major.h \
14028         linux/param.h \
14029         linux/serial.h \
14030         linux/ucdrom.h \
14031         machine/cpu.h \
14032         netdb.h \
14033         netinet/in.h \
14034         netinet/in_systm.h \
14035         netinet/tcp.h \
14036         netinet/tcp_fsm.h \
14037         openssl/ssl.h \
14038         process.h \
14039         pthread.h \
14040         pty.h \
14041         pwd.h \
14042         regex.h \
14043         sched.h \
14044         scsi/sg.h \
14045         scsi/scsi.h \
14046         scsi/scsi_ioctl.h \
14047         socket.h \
14048         stdint.h \
14049         strings.h \
14050         sys/cdio.h \
14051         sys/errno.h \
14052         sys/file.h \
14053         sys/filio.h \
14054         sys/inttypes.h \
14055         sys/ioctl.h \
14056         sys/ipc.h \
14057         sys/link.h \
14058         sys/lwp.h \
14059         sys/mman.h \
14060         sys/modem.h \
14061         sys/msg.h \
14062         sys/param.h \
14063         sys/poll.h \
14064         sys/ptrace.h \
14065         sys/reg.h \
14066         sys/scsiio.h \
14067         sys/shm.h \
14068         sys/signal.h \
14069         sys/socket.h \
14070         sys/sockio.h \
14071         sys/statfs.h \
14072         sys/strtio.h \
14073         sys/syscall.h \
14074         sys/sysctl.h \
14075         sys/time.h \
14076         sys/times.h \
14077         sys/uio.h \
14078         sys/un.h \
14079         sys/v86.h \
14080         sys/v86intr.h \
14081         sys/vfs.h \
14082         sys/vm86.h \
14083         sys/wait.h \
14084         syscall.h \
14085         termios.h \
14086         unistd.h \
14087         utime.h \
14088         valgrind/memcheck.h
14089
14090 do
14091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14093   echo "$as_me:$LINENO: checking for $ac_header" >&5
14094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14096   echo $ECHO_N "(cached) $ECHO_C" >&6
14097 fi
14098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14100 else
14101   # Is the header compilable?
14102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14104 cat >conftest.$ac_ext <<_ACEOF
14105 #line $LINENO "configure"
14106 /* confdefs.h.  */
14107 _ACEOF
14108 cat confdefs.h >>conftest.$ac_ext
14109 cat >>conftest.$ac_ext <<_ACEOF
14110 /* end confdefs.h.  */
14111 $ac_includes_default
14112 #include <$ac_header>
14113 _ACEOF
14114 rm -f conftest.$ac_objext
14115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14116   (eval $ac_compile) 2>&5
14117   ac_status=$?
14118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119   (exit $ac_status); } &&
14120          { ac_try='test -s conftest.$ac_objext'
14121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122   (eval $ac_try) 2>&5
14123   ac_status=$?
14124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125   (exit $ac_status); }; }; then
14126   ac_header_compiler=yes
14127 else
14128   echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.$ac_ext >&5
14130
14131 ac_header_compiler=no
14132 fi
14133 rm -f conftest.$ac_objext conftest.$ac_ext
14134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14135 echo "${ECHO_T}$ac_header_compiler" >&6
14136
14137 # Is the header present?
14138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14140 cat >conftest.$ac_ext <<_ACEOF
14141 #line $LINENO "configure"
14142 /* confdefs.h.  */
14143 _ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h.  */
14147 #include <$ac_header>
14148 _ACEOF
14149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14150   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14151   ac_status=$?
14152   grep -v '^ *+' conftest.er1 >conftest.err
14153   rm -f conftest.er1
14154   cat conftest.err >&5
14155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156   (exit $ac_status); } >/dev/null; then
14157   if test -s conftest.err; then
14158     ac_cpp_err=$ac_c_preproc_warn_flag
14159   else
14160     ac_cpp_err=
14161   fi
14162 else
14163   ac_cpp_err=yes
14164 fi
14165 if test -z "$ac_cpp_err"; then
14166   ac_header_preproc=yes
14167 else
14168   echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14170
14171   ac_header_preproc=no
14172 fi
14173 rm -f conftest.err conftest.$ac_ext
14174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14175 echo "${ECHO_T}$ac_header_preproc" >&6
14176
14177 # So?  What about this header?
14178 case $ac_header_compiler:$ac_header_preproc in
14179   yes:no )
14180     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14184     (
14185       cat <<\_ASBOX
14186 ## ------------------------------------ ##
14187 ## Report this to bug-autoconf@gnu.org. ##
14188 ## ------------------------------------ ##
14189 _ASBOX
14190     ) |
14191       sed "s/^/$as_me: WARNING:     /" >&2
14192     ;;
14193   no:yes )
14194     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14196     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14200     (
14201       cat <<\_ASBOX
14202 ## ------------------------------------ ##
14203 ## Report this to bug-autoconf@gnu.org. ##
14204 ## ------------------------------------ ##
14205 _ASBOX
14206     ) |
14207       sed "s/^/$as_me: WARNING:     /" >&2
14208     ;;
14209 esac
14210 echo "$as_me:$LINENO: checking for $ac_header" >&5
14211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14213   echo $ECHO_N "(cached) $ECHO_C" >&6
14214 else
14215   eval "$as_ac_Header=$ac_header_preproc"
14216 fi
14217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14219
14220 fi
14221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14222   cat >>confdefs.h <<_ACEOF
14223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14224 _ACEOF
14225
14226 fi
14227
14228 done
14229
14230 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14231 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14232 if test "${ac_cv_header_stat_broken+set}" = set; then
14233   echo $ECHO_N "(cached) $ECHO_C" >&6
14234 else
14235   cat >conftest.$ac_ext <<_ACEOF
14236 #line $LINENO "configure"
14237 /* confdefs.h.  */
14238 _ACEOF
14239 cat confdefs.h >>conftest.$ac_ext
14240 cat >>conftest.$ac_ext <<_ACEOF
14241 /* end confdefs.h.  */
14242 #include <sys/types.h>
14243 #include <sys/stat.h>
14244
14245 #if defined(S_ISBLK) && defined(S_IFDIR)
14246 # if S_ISBLK (S_IFDIR)
14247 You lose.
14248 # endif
14249 #endif
14250
14251 #if defined(S_ISBLK) && defined(S_IFCHR)
14252 # if S_ISBLK (S_IFCHR)
14253 You lose.
14254 # endif
14255 #endif
14256
14257 #if defined(S_ISLNK) && defined(S_IFREG)
14258 # if S_ISLNK (S_IFREG)
14259 You lose.
14260 # endif
14261 #endif
14262
14263 #if defined(S_ISSOCK) && defined(S_IFREG)
14264 # if S_ISSOCK (S_IFREG)
14265 You lose.
14266 # endif
14267 #endif
14268
14269 _ACEOF
14270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14271   $EGREP "You lose" >/dev/null 2>&1; then
14272   ac_cv_header_stat_broken=yes
14273 else
14274   ac_cv_header_stat_broken=no
14275 fi
14276 rm -f conftest*
14277
14278 fi
14279 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14280 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14281 if test $ac_cv_header_stat_broken = yes; then
14282
14283 cat >>confdefs.h <<\_ACEOF
14284 #define STAT_MACROS_BROKEN 1
14285 _ACEOF
14286
14287 fi
14288
14289
14290
14291
14292
14293 for ac_header in sys/mount.h sys/user.h
14294 do
14295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14296 echo "$as_me:$LINENO: checking for $ac_header" >&5
14297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14299   echo $ECHO_N "(cached) $ECHO_C" >&6
14300 else
14301   cat >conftest.$ac_ext <<_ACEOF
14302 #line $LINENO "configure"
14303 /* confdefs.h.  */
14304 _ACEOF
14305 cat confdefs.h >>conftest.$ac_ext
14306 cat >>conftest.$ac_ext <<_ACEOF
14307 /* end confdefs.h.  */
14308 #include <sys/types.h>
14309      #if HAVE_SYS_PARAM_H
14310      # include <sys/param.h>
14311      #endif
14312
14313 #include <$ac_header>
14314 _ACEOF
14315 rm -f conftest.$ac_objext
14316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14317   (eval $ac_compile) 2>&5
14318   ac_status=$?
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); } &&
14321          { ac_try='test -s conftest.$ac_objext'
14322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323   (eval $ac_try) 2>&5
14324   ac_status=$?
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); }; }; then
14327   eval "$as_ac_Header=yes"
14328 else
14329   echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14331
14332 eval "$as_ac_Header=no"
14333 fi
14334 rm -f conftest.$ac_objext conftest.$ac_ext
14335 fi
14336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14339   cat >>confdefs.h <<_ACEOF
14340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14341 _ACEOF
14342
14343 fi
14344
14345 done
14346
14347
14348
14349
14350
14351
14352
14353 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
14354 do
14355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14356 echo "$as_me:$LINENO: checking for $ac_header" >&5
14357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14359   echo $ECHO_N "(cached) $ECHO_C" >&6
14360 else
14361   cat >conftest.$ac_ext <<_ACEOF
14362 #line $LINENO "configure"
14363 /* confdefs.h.  */
14364 _ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h.  */
14368 #include <sys/types.h>
14369      #if HAVE_SYS_SOCKET_H
14370      # include <sys/socket.h>
14371      #endif
14372
14373 #include <$ac_header>
14374 _ACEOF
14375 rm -f conftest.$ac_objext
14376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377   (eval $ac_compile) 2>&5
14378   ac_status=$?
14379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380   (exit $ac_status); } &&
14381          { ac_try='test -s conftest.$ac_objext'
14382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383   (eval $ac_try) 2>&5
14384   ac_status=$?
14385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386   (exit $ac_status); }; }; then
14387   eval "$as_ac_Header=yes"
14388 else
14389   echo "$as_me: failed program was:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14391
14392 eval "$as_ac_Header=no"
14393 fi
14394 rm -f conftest.$ac_objext conftest.$ac_ext
14395 fi
14396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14399   cat >>confdefs.h <<_ACEOF
14400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14401 _ACEOF
14402
14403 fi
14404
14405 done
14406
14407
14408
14409 for ac_header in resolv.h
14410 do
14411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14412 echo "$as_me:$LINENO: checking for $ac_header" >&5
14413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14415   echo $ECHO_N "(cached) $ECHO_C" >&6
14416 else
14417   cat >conftest.$ac_ext <<_ACEOF
14418 #line $LINENO "configure"
14419 /* confdefs.h.  */
14420 _ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h.  */
14424 #include <sys/types.h>
14425      #if HAVE_SYS_SOCKET_H
14426      # include <sys/socket.h>
14427      #endif
14428      #if HAVE_NETINET_IN_H
14429      # include <netinet/in.h>
14430      #endif
14431      #if HAVE_ARPA_NAMESER_H
14432      # include <arpa/nameser.h>
14433      #endif
14434
14435 #include <$ac_header>
14436 _ACEOF
14437 rm -f conftest.$ac_objext
14438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14439   (eval $ac_compile) 2>&5
14440   ac_status=$?
14441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442   (exit $ac_status); } &&
14443          { ac_try='test -s conftest.$ac_objext'
14444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445   (eval $ac_try) 2>&5
14446   ac_status=$?
14447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); }; }; then
14449   eval "$as_ac_Header=yes"
14450 else
14451   echo "$as_me: failed program was:" >&5
14452 sed 's/^/| /' conftest.$ac_ext >&5
14453
14454 eval "$as_ac_Header=no"
14455 fi
14456 rm -f conftest.$ac_objext conftest.$ac_ext
14457 fi
14458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14461   cat >>confdefs.h <<_ACEOF
14462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14463 _ACEOF
14464
14465 fi
14466
14467 done
14468
14469
14470
14471 for ac_header in netinet/ip.h
14472 do
14473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14474 echo "$as_me:$LINENO: checking for $ac_header" >&5
14475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14477   echo $ECHO_N "(cached) $ECHO_C" >&6
14478 else
14479   cat >conftest.$ac_ext <<_ACEOF
14480 #line $LINENO "configure"
14481 /* confdefs.h.  */
14482 _ACEOF
14483 cat confdefs.h >>conftest.$ac_ext
14484 cat >>conftest.$ac_ext <<_ACEOF
14485 /* end confdefs.h.  */
14486 #include <sys/types.h>
14487      #if HAVE_SYS_SOCKET_H
14488      # include <sys/socket.h>
14489      #endif
14490      #if HAVE_NETINET_IN_SYSTM_H
14491      # include <netinet/in_systm.h>
14492      #endif
14493
14494 #include <$ac_header>
14495 _ACEOF
14496 rm -f conftest.$ac_objext
14497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14498   (eval $ac_compile) 2>&5
14499   ac_status=$?
14500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501   (exit $ac_status); } &&
14502          { ac_try='test -s conftest.$ac_objext'
14503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14504   (eval $ac_try) 2>&5
14505   ac_status=$?
14506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507   (exit $ac_status); }; }; then
14508   eval "$as_ac_Header=yes"
14509 else
14510   echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14512
14513 eval "$as_ac_Header=no"
14514 fi
14515 rm -f conftest.$ac_objext conftest.$ac_ext
14516 fi
14517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14520   cat >>confdefs.h <<_ACEOF
14521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14522 _ACEOF
14523
14524 fi
14525
14526 done
14527
14528
14529
14530 for ac_header in ucontext.h
14531 do
14532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14533 echo "$as_me:$LINENO: checking for $ac_header" >&5
14534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14536   echo $ECHO_N "(cached) $ECHO_C" >&6
14537 else
14538   cat >conftest.$ac_ext <<_ACEOF
14539 #line $LINENO "configure"
14540 /* confdefs.h.  */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h.  */
14545 #include <signal.h>
14546
14547 #include <$ac_header>
14548 _ACEOF
14549 rm -f conftest.$ac_objext
14550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14551   (eval $ac_compile) 2>&5
14552   ac_status=$?
14553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554   (exit $ac_status); } &&
14555          { ac_try='test -s conftest.$ac_objext'
14556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557   (eval $ac_try) 2>&5
14558   ac_status=$?
14559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560   (exit $ac_status); }; }; then
14561   eval "$as_ac_Header=yes"
14562 else
14563   echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14565
14566 eval "$as_ac_Header=no"
14567 fi
14568 rm -f conftest.$ac_objext conftest.$ac_ext
14569 fi
14570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14573   cat >>confdefs.h <<_ACEOF
14574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14575 _ACEOF
14576
14577 fi
14578
14579 done
14580
14581
14582
14583 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
14584 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
14585 if test "${ac_cv_c_ipx_gnu+set}" = set; then
14586   echo $ECHO_N "(cached) $ECHO_C" >&6
14587 else
14588   cat >conftest.$ac_ext <<_ACEOF
14589 #line $LINENO "configure"
14590 /* confdefs.h.  */
14591 _ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h.  */
14595 #include <sys/types.h>
14596     #ifdef HAVE_SYS_SOCKET_H
14597     # include <sys/socket.h>
14598     #endif
14599     #include <netipx/ipx.h>
14600 int
14601 main ()
14602 {
14603 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14604   ;
14605   return 0;
14606 }
14607 _ACEOF
14608 rm -f conftest.$ac_objext
14609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14610   (eval $ac_compile) 2>&5
14611   ac_status=$?
14612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613   (exit $ac_status); } &&
14614          { ac_try='test -s conftest.$ac_objext'
14615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616   (eval $ac_try) 2>&5
14617   ac_status=$?
14618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619   (exit $ac_status); }; }; then
14620   ac_cv_c_ipx_gnu="yes"
14621 else
14622   echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14624
14625 ac_cv_c_ipx_gnu="no"
14626 fi
14627 rm -f conftest.$ac_objext conftest.$ac_ext
14628
14629 fi
14630 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
14631 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
14632 if test "$ac_cv_c_ipx_gnu" = "yes"
14633 then
14634
14635 cat >>confdefs.h <<\_ACEOF
14636 #define HAVE_IPX_GNU 1
14637 _ACEOF
14638
14639 fi
14640
14641 if test "$ac_cv_c_ipx_gnu" = "no"
14642 then
14643  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
14644 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
14645 if test "${ac_cv_c_ipx_linux+set}" = set; then
14646   echo $ECHO_N "(cached) $ECHO_C" >&6
14647 else
14648   cat >conftest.$ac_ext <<_ACEOF
14649 #line $LINENO "configure"
14650 /* confdefs.h.  */
14651 _ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h.  */
14655 #include <sys/types.h>
14656      #ifdef HAVE_SYS_SOCKET_H
14657      # include <sys/socket.h>
14658      #endif
14659      #include <asm/types.h>
14660      #include <linux/ipx.h>
14661 int
14662 main ()
14663 {
14664 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14665   ;
14666   return 0;
14667 }
14668 _ACEOF
14669 rm -f conftest.$ac_objext
14670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14671   (eval $ac_compile) 2>&5
14672   ac_status=$?
14673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674   (exit $ac_status); } &&
14675          { ac_try='test -s conftest.$ac_objext'
14676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677   (eval $ac_try) 2>&5
14678   ac_status=$?
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); }; }; then
14681   ac_cv_c_ipx_linux="yes"
14682 else
14683   echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14685
14686 ac_cv_c_ipx_linux="no"
14687 fi
14688 rm -f conftest.$ac_objext conftest.$ac_ext
14689
14690 fi
14691 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
14692 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
14693   if test "$ac_cv_c_ipx_linux" = "yes"
14694   then
14695
14696 cat >>confdefs.h <<\_ACEOF
14697 #define HAVE_IPX_LINUX 1
14698 _ACEOF
14699
14700   fi
14701 fi
14702
14703
14704 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14705 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14706 if test "${ac_cv_c_const+set}" = set; then
14707   echo $ECHO_N "(cached) $ECHO_C" >&6
14708 else
14709   cat >conftest.$ac_ext <<_ACEOF
14710 #line $LINENO "configure"
14711 /* confdefs.h.  */
14712 _ACEOF
14713 cat confdefs.h >>conftest.$ac_ext
14714 cat >>conftest.$ac_ext <<_ACEOF
14715 /* end confdefs.h.  */
14716
14717 int
14718 main ()
14719 {
14720 /* FIXME: Include the comments suggested by Paul. */
14721 #ifndef __cplusplus
14722   /* Ultrix mips cc rejects this.  */
14723   typedef int charset[2];
14724   const charset x;
14725   /* SunOS 4.1.1 cc rejects this.  */
14726   char const *const *ccp;
14727   char **p;
14728   /* NEC SVR4.0.2 mips cc rejects this.  */
14729   struct point {int x, y;};
14730   static struct point const zero = {0,0};
14731   /* AIX XL C 1.02.0.0 rejects this.
14732      It does not let you subtract one const X* pointer from another in
14733      an arm of an if-expression whose if-part is not a constant
14734      expression */
14735   const char *g = "string";
14736   ccp = &g + (g ? g-g : 0);
14737   /* HPUX 7.0 cc rejects these. */
14738   ++ccp;
14739   p = (char**) ccp;
14740   ccp = (char const *const *) p;
14741   { /* SCO 3.2v4 cc rejects this.  */
14742     char *t;
14743     char const *s = 0 ? (char *) 0 : (char const *) 0;
14744
14745     *t++ = 0;
14746   }
14747   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14748     int x[] = {25, 17};
14749     const int *foo = &x[0];
14750     ++foo;
14751   }
14752   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14753     typedef const int *iptr;
14754     iptr p = 0;
14755     ++p;
14756   }
14757   { /* AIX XL C 1.02.0.0 rejects this saying
14758        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14759     struct s { int j; const int *ap[3]; };
14760     struct s *b; b->j = 5;
14761   }
14762   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14763     const int foo = 10;
14764   }
14765 #endif
14766
14767   ;
14768   return 0;
14769 }
14770 _ACEOF
14771 rm -f conftest.$ac_objext
14772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14773   (eval $ac_compile) 2>&5
14774   ac_status=$?
14775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776   (exit $ac_status); } &&
14777          { ac_try='test -s conftest.$ac_objext'
14778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779   (eval $ac_try) 2>&5
14780   ac_status=$?
14781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); }; }; then
14783   ac_cv_c_const=yes
14784 else
14785   echo "$as_me: failed program was:" >&5
14786 sed 's/^/| /' conftest.$ac_ext >&5
14787
14788 ac_cv_c_const=no
14789 fi
14790 rm -f conftest.$ac_objext conftest.$ac_ext
14791 fi
14792 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14793 echo "${ECHO_T}$ac_cv_c_const" >&6
14794 if test $ac_cv_c_const = no; then
14795
14796 cat >>confdefs.h <<\_ACEOF
14797 #define const
14798 _ACEOF
14799
14800 fi
14801
14802 echo "$as_me:$LINENO: checking for inline" >&5
14803 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14804 if test "${ac_cv_c_inline+set}" = set; then
14805   echo $ECHO_N "(cached) $ECHO_C" >&6
14806 else
14807   ac_cv_c_inline=no
14808 for ac_kw in inline __inline__ __inline; do
14809   cat >conftest.$ac_ext <<_ACEOF
14810 #line $LINENO "configure"
14811 /* confdefs.h.  */
14812 _ACEOF
14813 cat confdefs.h >>conftest.$ac_ext
14814 cat >>conftest.$ac_ext <<_ACEOF
14815 /* end confdefs.h.  */
14816 #ifndef __cplusplus
14817 typedef int foo_t;
14818 static $ac_kw foo_t static_foo () {return 0; }
14819 $ac_kw foo_t foo () {return 0; }
14820 #endif
14821
14822 _ACEOF
14823 rm -f conftest.$ac_objext
14824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14825   (eval $ac_compile) 2>&5
14826   ac_status=$?
14827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828   (exit $ac_status); } &&
14829          { ac_try='test -s conftest.$ac_objext'
14830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831   (eval $ac_try) 2>&5
14832   ac_status=$?
14833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834   (exit $ac_status); }; }; then
14835   ac_cv_c_inline=$ac_kw; break
14836 else
14837   echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14839
14840 fi
14841 rm -f conftest.$ac_objext conftest.$ac_ext
14842 done
14843
14844 fi
14845 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14846 echo "${ECHO_T}$ac_cv_c_inline" >&6
14847 case $ac_cv_c_inline in
14848   inline | yes) ;;
14849   no)
14850 cat >>confdefs.h <<\_ACEOF
14851 #define inline
14852 _ACEOF
14853  ;;
14854   *)  cat >>confdefs.h <<_ACEOF
14855 #define inline $ac_cv_c_inline
14856 _ACEOF
14857  ;;
14858 esac
14859
14860 echo "$as_me:$LINENO: checking for mode_t" >&5
14861 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
14862 if test "${ac_cv_type_mode_t+set}" = set; then
14863   echo $ECHO_N "(cached) $ECHO_C" >&6
14864 else
14865   cat >conftest.$ac_ext <<_ACEOF
14866 #line $LINENO "configure"
14867 /* confdefs.h.  */
14868 _ACEOF
14869 cat confdefs.h >>conftest.$ac_ext
14870 cat >>conftest.$ac_ext <<_ACEOF
14871 /* end confdefs.h.  */
14872 $ac_includes_default
14873 int
14874 main ()
14875 {
14876 if ((mode_t *) 0)
14877   return 0;
14878 if (sizeof (mode_t))
14879   return 0;
14880   ;
14881   return 0;
14882 }
14883 _ACEOF
14884 rm -f conftest.$ac_objext
14885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14886   (eval $ac_compile) 2>&5
14887   ac_status=$?
14888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889   (exit $ac_status); } &&
14890          { ac_try='test -s conftest.$ac_objext'
14891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14892   (eval $ac_try) 2>&5
14893   ac_status=$?
14894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895   (exit $ac_status); }; }; then
14896   ac_cv_type_mode_t=yes
14897 else
14898   echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14900
14901 ac_cv_type_mode_t=no
14902 fi
14903 rm -f conftest.$ac_objext conftest.$ac_ext
14904 fi
14905 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14906 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
14907 if test $ac_cv_type_mode_t = yes; then
14908
14909 cat >>confdefs.h <<_ACEOF
14910 #define HAVE_MODE_T 1
14911 _ACEOF
14912
14913
14914 fi
14915 echo "$as_me:$LINENO: checking for off_t" >&5
14916 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
14917 if test "${ac_cv_type_off_t+set}" = set; then
14918   echo $ECHO_N "(cached) $ECHO_C" >&6
14919 else
14920   cat >conftest.$ac_ext <<_ACEOF
14921 #line $LINENO "configure"
14922 /* confdefs.h.  */
14923 _ACEOF
14924 cat confdefs.h >>conftest.$ac_ext
14925 cat >>conftest.$ac_ext <<_ACEOF
14926 /* end confdefs.h.  */
14927 $ac_includes_default
14928 int
14929 main ()
14930 {
14931 if ((off_t *) 0)
14932   return 0;
14933 if (sizeof (off_t))
14934   return 0;
14935   ;
14936   return 0;
14937 }
14938 _ACEOF
14939 rm -f conftest.$ac_objext
14940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14941   (eval $ac_compile) 2>&5
14942   ac_status=$?
14943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944   (exit $ac_status); } &&
14945          { ac_try='test -s conftest.$ac_objext'
14946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947   (eval $ac_try) 2>&5
14948   ac_status=$?
14949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950   (exit $ac_status); }; }; then
14951   ac_cv_type_off_t=yes
14952 else
14953   echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14955
14956 ac_cv_type_off_t=no
14957 fi
14958 rm -f conftest.$ac_objext conftest.$ac_ext
14959 fi
14960 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14961 echo "${ECHO_T}$ac_cv_type_off_t" >&6
14962 if test $ac_cv_type_off_t = yes; then
14963
14964 cat >>confdefs.h <<_ACEOF
14965 #define HAVE_OFF_T 1
14966 _ACEOF
14967
14968
14969 fi
14970 echo "$as_me:$LINENO: checking for pid_t" >&5
14971 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14972 if test "${ac_cv_type_pid_t+set}" = set; then
14973   echo $ECHO_N "(cached) $ECHO_C" >&6
14974 else
14975   cat >conftest.$ac_ext <<_ACEOF
14976 #line $LINENO "configure"
14977 /* confdefs.h.  */
14978 _ACEOF
14979 cat confdefs.h >>conftest.$ac_ext
14980 cat >>conftest.$ac_ext <<_ACEOF
14981 /* end confdefs.h.  */
14982 $ac_includes_default
14983 int
14984 main ()
14985 {
14986 if ((pid_t *) 0)
14987   return 0;
14988 if (sizeof (pid_t))
14989   return 0;
14990   ;
14991   return 0;
14992 }
14993 _ACEOF
14994 rm -f conftest.$ac_objext
14995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14996   (eval $ac_compile) 2>&5
14997   ac_status=$?
14998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999   (exit $ac_status); } &&
15000          { ac_try='test -s conftest.$ac_objext'
15001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002   (eval $ac_try) 2>&5
15003   ac_status=$?
15004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005   (exit $ac_status); }; }; then
15006   ac_cv_type_pid_t=yes
15007 else
15008   echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15010
15011 ac_cv_type_pid_t=no
15012 fi
15013 rm -f conftest.$ac_objext conftest.$ac_ext
15014 fi
15015 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15016 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15017 if test $ac_cv_type_pid_t = yes; then
15018
15019 cat >>confdefs.h <<_ACEOF
15020 #define HAVE_PID_T 1
15021 _ACEOF
15022
15023
15024 fi
15025 echo "$as_me:$LINENO: checking for size_t" >&5
15026 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15027 if test "${ac_cv_type_size_t+set}" = set; then
15028   echo $ECHO_N "(cached) $ECHO_C" >&6
15029 else
15030   cat >conftest.$ac_ext <<_ACEOF
15031 #line $LINENO "configure"
15032 /* confdefs.h.  */
15033 _ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h.  */
15037 $ac_includes_default
15038 int
15039 main ()
15040 {
15041 if ((size_t *) 0)
15042   return 0;
15043 if (sizeof (size_t))
15044   return 0;
15045   ;
15046   return 0;
15047 }
15048 _ACEOF
15049 rm -f conftest.$ac_objext
15050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15051   (eval $ac_compile) 2>&5
15052   ac_status=$?
15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054   (exit $ac_status); } &&
15055          { ac_try='test -s conftest.$ac_objext'
15056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057   (eval $ac_try) 2>&5
15058   ac_status=$?
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); }; }; then
15061   ac_cv_type_size_t=yes
15062 else
15063   echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15065
15066 ac_cv_type_size_t=no
15067 fi
15068 rm -f conftest.$ac_objext conftest.$ac_ext
15069 fi
15070 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15071 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15072 if test $ac_cv_type_size_t = yes; then
15073
15074 cat >>confdefs.h <<_ACEOF
15075 #define HAVE_SIZE_T 1
15076 _ACEOF
15077
15078
15079 fi
15080 echo "$as_me:$LINENO: checking for ssize_t" >&5
15081 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15082 if test "${ac_cv_type_ssize_t+set}" = set; then
15083   echo $ECHO_N "(cached) $ECHO_C" >&6
15084 else
15085   cat >conftest.$ac_ext <<_ACEOF
15086 #line $LINENO "configure"
15087 /* confdefs.h.  */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h.  */
15092 $ac_includes_default
15093 int
15094 main ()
15095 {
15096 if ((ssize_t *) 0)
15097   return 0;
15098 if (sizeof (ssize_t))
15099   return 0;
15100   ;
15101   return 0;
15102 }
15103 _ACEOF
15104 rm -f conftest.$ac_objext
15105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15106   (eval $ac_compile) 2>&5
15107   ac_status=$?
15108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109   (exit $ac_status); } &&
15110          { ac_try='test -s conftest.$ac_objext'
15111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112   (eval $ac_try) 2>&5
15113   ac_status=$?
15114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115   (exit $ac_status); }; }; then
15116   ac_cv_type_ssize_t=yes
15117 else
15118   echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15120
15121 ac_cv_type_ssize_t=no
15122 fi
15123 rm -f conftest.$ac_objext conftest.$ac_ext
15124 fi
15125 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15126 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15127 if test $ac_cv_type_ssize_t = yes; then
15128
15129 cat >>confdefs.h <<_ACEOF
15130 #define HAVE_SSIZE_T 1
15131 _ACEOF
15132
15133
15134 fi
15135
15136 echo "$as_me:$LINENO: checking for long long" >&5
15137 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15138 if test "${ac_cv_type_long_long+set}" = set; then
15139   echo $ECHO_N "(cached) $ECHO_C" >&6
15140 else
15141   cat >conftest.$ac_ext <<_ACEOF
15142 #line $LINENO "configure"
15143 /* confdefs.h.  */
15144 _ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h.  */
15148 $ac_includes_default
15149 int
15150 main ()
15151 {
15152 if ((long long *) 0)
15153   return 0;
15154 if (sizeof (long long))
15155   return 0;
15156   ;
15157   return 0;
15158 }
15159 _ACEOF
15160 rm -f conftest.$ac_objext
15161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15162   (eval $ac_compile) 2>&5
15163   ac_status=$?
15164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165   (exit $ac_status); } &&
15166          { ac_try='test -s conftest.$ac_objext'
15167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168   (eval $ac_try) 2>&5
15169   ac_status=$?
15170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); }; }; then
15172   ac_cv_type_long_long=yes
15173 else
15174   echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15176
15177 ac_cv_type_long_long=no
15178 fi
15179 rm -f conftest.$ac_objext conftest.$ac_ext
15180 fi
15181 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15182 echo "${ECHO_T}$ac_cv_type_long_long" >&6
15183
15184 echo "$as_me:$LINENO: checking size of long long" >&5
15185 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15186 if test "${ac_cv_sizeof_long_long+set}" = set; then
15187   echo $ECHO_N "(cached) $ECHO_C" >&6
15188 else
15189   if test "$ac_cv_type_long_long" = yes; then
15190   # The cast to unsigned long works around a bug in the HP C Compiler
15191   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15192   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15193   # This bug is HP SR number 8606223364.
15194   if test "$cross_compiling" = yes; then
15195   # Depending upon the size, compute the lo and hi bounds.
15196 cat >conftest.$ac_ext <<_ACEOF
15197 #line $LINENO "configure"
15198 /* confdefs.h.  */
15199 _ACEOF
15200 cat confdefs.h >>conftest.$ac_ext
15201 cat >>conftest.$ac_ext <<_ACEOF
15202 /* end confdefs.h.  */
15203 $ac_includes_default
15204 int
15205 main ()
15206 {
15207 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15208 test_array [0] = 0
15209
15210   ;
15211   return 0;
15212 }
15213 _ACEOF
15214 rm -f conftest.$ac_objext
15215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15216   (eval $ac_compile) 2>&5
15217   ac_status=$?
15218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219   (exit $ac_status); } &&
15220          { ac_try='test -s conftest.$ac_objext'
15221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222   (eval $ac_try) 2>&5
15223   ac_status=$?
15224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225   (exit $ac_status); }; }; then
15226   ac_lo=0 ac_mid=0
15227   while :; do
15228     cat >conftest.$ac_ext <<_ACEOF
15229 #line $LINENO "configure"
15230 /* confdefs.h.  */
15231 _ACEOF
15232 cat confdefs.h >>conftest.$ac_ext
15233 cat >>conftest.$ac_ext <<_ACEOF
15234 /* end confdefs.h.  */
15235 $ac_includes_default
15236 int
15237 main ()
15238 {
15239 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15240 test_array [0] = 0
15241
15242   ;
15243   return 0;
15244 }
15245 _ACEOF
15246 rm -f conftest.$ac_objext
15247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15248   (eval $ac_compile) 2>&5
15249   ac_status=$?
15250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251   (exit $ac_status); } &&
15252          { ac_try='test -s conftest.$ac_objext'
15253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254   (eval $ac_try) 2>&5
15255   ac_status=$?
15256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257   (exit $ac_status); }; }; then
15258   ac_hi=$ac_mid; break
15259 else
15260   echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15262
15263 ac_lo=`expr $ac_mid + 1`
15264                     if test $ac_lo -le $ac_mid; then
15265                       ac_lo= ac_hi=
15266                       break
15267                     fi
15268                     ac_mid=`expr 2 '*' $ac_mid + 1`
15269 fi
15270 rm -f conftest.$ac_objext conftest.$ac_ext
15271   done
15272 else
15273   echo "$as_me: failed program was:" >&5
15274 sed 's/^/| /' conftest.$ac_ext >&5
15275
15276 cat >conftest.$ac_ext <<_ACEOF
15277 #line $LINENO "configure"
15278 /* confdefs.h.  */
15279 _ACEOF
15280 cat confdefs.h >>conftest.$ac_ext
15281 cat >>conftest.$ac_ext <<_ACEOF
15282 /* end confdefs.h.  */
15283 $ac_includes_default
15284 int
15285 main ()
15286 {
15287 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15288 test_array [0] = 0
15289
15290   ;
15291   return 0;
15292 }
15293 _ACEOF
15294 rm -f conftest.$ac_objext
15295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15296   (eval $ac_compile) 2>&5
15297   ac_status=$?
15298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299   (exit $ac_status); } &&
15300          { ac_try='test -s conftest.$ac_objext'
15301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302   (eval $ac_try) 2>&5
15303   ac_status=$?
15304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305   (exit $ac_status); }; }; then
15306   ac_hi=-1 ac_mid=-1
15307   while :; do
15308     cat >conftest.$ac_ext <<_ACEOF
15309 #line $LINENO "configure"
15310 /* confdefs.h.  */
15311 _ACEOF
15312 cat confdefs.h >>conftest.$ac_ext
15313 cat >>conftest.$ac_ext <<_ACEOF
15314 /* end confdefs.h.  */
15315 $ac_includes_default
15316 int
15317 main ()
15318 {
15319 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15320 test_array [0] = 0
15321
15322   ;
15323   return 0;
15324 }
15325 _ACEOF
15326 rm -f conftest.$ac_objext
15327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15328   (eval $ac_compile) 2>&5
15329   ac_status=$?
15330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331   (exit $ac_status); } &&
15332          { ac_try='test -s conftest.$ac_objext'
15333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334   (eval $ac_try) 2>&5
15335   ac_status=$?
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   (exit $ac_status); }; }; then
15338   ac_lo=$ac_mid; break
15339 else
15340   echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.$ac_ext >&5
15342
15343 ac_hi=`expr '(' $ac_mid ')' - 1`
15344                        if test $ac_mid -le $ac_hi; then
15345                          ac_lo= ac_hi=
15346                          break
15347                        fi
15348                        ac_mid=`expr 2 '*' $ac_mid`
15349 fi
15350 rm -f conftest.$ac_objext conftest.$ac_ext
15351   done
15352 else
15353   echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.$ac_ext >&5
15355
15356 ac_lo= ac_hi=
15357 fi
15358 rm -f conftest.$ac_objext conftest.$ac_ext
15359 fi
15360 rm -f conftest.$ac_objext conftest.$ac_ext
15361 # Binary search between lo and hi bounds.
15362 while test "x$ac_lo" != "x$ac_hi"; do
15363   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15364   cat >conftest.$ac_ext <<_ACEOF
15365 #line $LINENO "configure"
15366 /* confdefs.h.  */
15367 _ACEOF
15368 cat confdefs.h >>conftest.$ac_ext
15369 cat >>conftest.$ac_ext <<_ACEOF
15370 /* end confdefs.h.  */
15371 $ac_includes_default
15372 int
15373 main ()
15374 {
15375 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15376 test_array [0] = 0
15377
15378   ;
15379   return 0;
15380 }
15381 _ACEOF
15382 rm -f conftest.$ac_objext
15383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15384   (eval $ac_compile) 2>&5
15385   ac_status=$?
15386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387   (exit $ac_status); } &&
15388          { ac_try='test -s conftest.$ac_objext'
15389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390   (eval $ac_try) 2>&5
15391   ac_status=$?
15392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393   (exit $ac_status); }; }; then
15394   ac_hi=$ac_mid
15395 else
15396   echo "$as_me: failed program was:" >&5
15397 sed 's/^/| /' conftest.$ac_ext >&5
15398
15399 ac_lo=`expr '(' $ac_mid ')' + 1`
15400 fi
15401 rm -f conftest.$ac_objext conftest.$ac_ext
15402 done
15403 case $ac_lo in
15404 ?*) ac_cv_sizeof_long_long=$ac_lo;;
15405 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15406 See \`config.log' for more details." >&5
15407 echo "$as_me: error: cannot compute sizeof (long long), 77
15408 See \`config.log' for more details." >&2;}
15409    { (exit 1); exit 1; }; } ;;
15410 esac
15411 else
15412   if test "$cross_compiling" = yes; then
15413   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15414 See \`config.log' for more details." >&5
15415 echo "$as_me: error: cannot run test program while cross compiling
15416 See \`config.log' for more details." >&2;}
15417    { (exit 1); exit 1; }; }
15418 else
15419   cat >conftest.$ac_ext <<_ACEOF
15420 #line $LINENO "configure"
15421 /* confdefs.h.  */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h.  */
15426 $ac_includes_default
15427 long longval () { return (long) (sizeof (long long)); }
15428 unsigned long ulongval () { return (long) (sizeof (long long)); }
15429 #include <stdio.h>
15430 #include <stdlib.h>
15431 int
15432 main ()
15433 {
15434
15435   FILE *f = fopen ("conftest.val", "w");
15436   if (! f)
15437     exit (1);
15438   if (((long) (sizeof (long long))) < 0)
15439     {
15440       long i = longval ();
15441       if (i != ((long) (sizeof (long long))))
15442         exit (1);
15443       fprintf (f, "%ld\n", i);
15444     }
15445   else
15446     {
15447       unsigned long i = ulongval ();
15448       if (i != ((long) (sizeof (long long))))
15449         exit (1);
15450       fprintf (f, "%lu\n", i);
15451     }
15452   exit (ferror (f) || fclose (f) != 0);
15453
15454   ;
15455   return 0;
15456 }
15457 _ACEOF
15458 rm -f conftest$ac_exeext
15459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15460   (eval $ac_link) 2>&5
15461   ac_status=$?
15462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465   (eval $ac_try) 2>&5
15466   ac_status=$?
15467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468   (exit $ac_status); }; }; then
15469   ac_cv_sizeof_long_long=`cat conftest.val`
15470 else
15471   echo "$as_me: program exited with status $ac_status" >&5
15472 echo "$as_me: failed program was:" >&5
15473 sed 's/^/| /' conftest.$ac_ext >&5
15474
15475 ( exit $ac_status )
15476 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15477 See \`config.log' for more details." >&5
15478 echo "$as_me: error: cannot compute sizeof (long long), 77
15479 See \`config.log' for more details." >&2;}
15480    { (exit 1); exit 1; }; }
15481 fi
15482 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15483 fi
15484 fi
15485 rm -f conftest.val
15486 else
15487   ac_cv_sizeof_long_long=0
15488 fi
15489 fi
15490 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15491 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15492 cat >>confdefs.h <<_ACEOF
15493 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15494 _ACEOF
15495
15496
15497
15498 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
15499 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
15500 if test "${wine_cv_linux_input_h+set}" = set; then
15501   echo $ECHO_N "(cached) $ECHO_C" >&6
15502 else
15503   cat >conftest.$ac_ext <<_ACEOF
15504 #line $LINENO "configure"
15505 /* confdefs.h.  */
15506 _ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h.  */
15510
15511             #include <linux/input.h>
15512
15513 int
15514 main ()
15515 {
15516
15517             int foo = EVIOCGBIT(EV_ABS,42);
15518             int bar = BTN_PINKIE;
15519             int fortytwo = 42;
15520
15521   ;
15522   return 0;
15523 }
15524 _ACEOF
15525 rm -f conftest.$ac_objext
15526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15527   (eval $ac_compile) 2>&5
15528   ac_status=$?
15529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530   (exit $ac_status); } &&
15531          { ac_try='test -s conftest.$ac_objext'
15532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533   (eval $ac_try) 2>&5
15534   ac_status=$?
15535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536   (exit $ac_status); }; }; then
15537   wine_cv_linux_input_h=yes
15538 else
15539   echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.$ac_ext >&5
15541
15542 wine_cv_linux_input_h=no
15543 fi
15544 rm -f conftest.$ac_objext conftest.$ac_ext
15545
15546 fi
15547 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
15548 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
15549     if test "$wine_cv_linux_input_h" = "yes"
15550     then
15551
15552 cat >>confdefs.h <<\_ACEOF
15553 #define HAVE_CORRECT_LINUXINPUT_H 1
15554 _ACEOF
15555
15556     fi
15557
15558
15559 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15560 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
15561 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
15562   echo $ECHO_N "(cached) $ECHO_C" >&6
15563 else
15564   cat >conftest.$ac_ext <<_ACEOF
15565 #line $LINENO "configure"
15566 /* confdefs.h.  */
15567 _ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h.  */
15571
15572 #include <netdb.h>
15573
15574 int
15575 main ()
15576 {
15577
15578     char *name=NULL;
15579     struct hostent he;
15580     struct hostent *result;
15581     char *buf=NULL;
15582     int bufsize=0;
15583     int res,errnr;
15584     char *addr=NULL;
15585     int addrlen=0;
15586     int addrtype=0;
15587     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15588     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15589
15590   ;
15591   return 0;
15592 }
15593 _ACEOF
15594 rm -f conftest.$ac_objext
15595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15596   (eval $ac_compile) 2>&5
15597   ac_status=$?
15598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599   (exit $ac_status); } &&
15600          { ac_try='test -s conftest.$ac_objext'
15601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15602   (eval $ac_try) 2>&5
15603   ac_status=$?
15604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605   (exit $ac_status); }; }; then
15606   wine_cv_linux_gethostbyname_r_6=yes
15607 else
15608   echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15610
15611 wine_cv_linux_gethostbyname_r_6=no
15612
15613 fi
15614 rm -f conftest.$ac_objext conftest.$ac_ext
15615
15616 fi
15617 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
15618 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
15619    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15620    then
15621
15622 cat >>confdefs.h <<\_ACEOF
15623 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
15624 _ACEOF
15625
15626    fi
15627
15628 if test "$ac_cv_header_linux_joystick_h" = "yes"
15629 then
15630    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15631 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
15632 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
15633   echo $ECHO_N "(cached) $ECHO_C" >&6
15634 else
15635   cat >conftest.$ac_ext <<_ACEOF
15636 #line $LINENO "configure"
15637 /* confdefs.h.  */
15638 _ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h.  */
15642
15643         #include <sys/ioctl.h>
15644         #include <linux/joystick.h>
15645
15646         struct js_event blub;
15647         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15648         #error "no 2.2 header"
15649         #endif
15650
15651 int
15652 main ()
15653 {
15654 /*empty*/
15655   ;
15656   return 0;
15657 }
15658 _ACEOF
15659 rm -f conftest.$ac_objext
15660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15661   (eval $ac_compile) 2>&5
15662   ac_status=$?
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); } &&
15665          { ac_try='test -s conftest.$ac_objext'
15666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667   (eval $ac_try) 2>&5
15668   ac_status=$?
15669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670   (exit $ac_status); }; }; then
15671   wine_cv_linux_joystick_22_api=yes
15672 else
15673   echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15675
15676 wine_cv_linux_joystick_22_api=no
15677 fi
15678 rm -f conftest.$ac_objext conftest.$ac_ext
15679
15680 fi
15681 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
15682 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
15683    if test "$wine_cv_linux_joystick_22_api" = "yes"
15684    then
15685
15686 cat >>confdefs.h <<\_ACEOF
15687 #define HAVE_LINUX_22_JOYSTICK_API 1
15688 _ACEOF
15689
15690    fi
15691 fi
15692
15693
15694 if test "$ac_cv_header_sys_vfs_h" = "yes"
15695 then
15696     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
15697 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
15698 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
15699   echo $ECHO_N "(cached) $ECHO_C" >&6
15700 else
15701   cat >conftest.$ac_ext <<_ACEOF
15702 #line $LINENO "configure"
15703 /* confdefs.h.  */
15704 _ACEOF
15705 cat confdefs.h >>conftest.$ac_ext
15706 cat >>conftest.$ac_ext <<_ACEOF
15707 /* end confdefs.h.  */
15708
15709         #include <sys/types.h>
15710         #ifdef HAVE_SYS_PARAM_H
15711         # include <sys/param.h>
15712         #endif
15713         #include <sys/vfs.h>
15714
15715 int
15716 main ()
15717 {
15718
15719                 struct statfs stfs;
15720
15721                 memset(&stfs,0,sizeof(stfs));
15722
15723   ;
15724   return 0;
15725 }
15726 _ACEOF
15727 rm -f conftest.$ac_objext
15728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15729   (eval $ac_compile) 2>&5
15730   ac_status=$?
15731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732   (exit $ac_status); } &&
15733          { ac_try='test -s conftest.$ac_objext'
15734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735   (eval $ac_try) 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); }; }; then
15739   wine_cv_sys_vfs_has_statfs=yes
15740 else
15741   echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15743
15744 wine_cv_sys_vfs_has_statfs=no
15745
15746 fi
15747 rm -f conftest.$ac_objext conftest.$ac_ext
15748
15749 fi
15750 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
15751 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
15752     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
15753     then
15754
15755 cat >>confdefs.h <<\_ACEOF
15756 #define STATFS_DEFINED_BY_SYS_VFS 1
15757 _ACEOF
15758
15759     fi
15760 fi
15761
15762 if test "$ac_cv_header_sys_statfs_h" = "yes"
15763 then
15764     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
15765 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
15766 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
15767   echo $ECHO_N "(cached) $ECHO_C" >&6
15768 else
15769   cat >conftest.$ac_ext <<_ACEOF
15770 #line $LINENO "configure"
15771 /* confdefs.h.  */
15772 _ACEOF
15773 cat confdefs.h >>conftest.$ac_ext
15774 cat >>conftest.$ac_ext <<_ACEOF
15775 /* end confdefs.h.  */
15776
15777         #include <sys/types.h>
15778         #ifdef HAVE_SYS_PARAM_H
15779         # include <sys/param.h>
15780         #endif
15781         #include <sys/statfs.h>
15782
15783 int
15784 main ()
15785 {
15786
15787                 struct statfs stfs;
15788
15789   ;
15790   return 0;
15791 }
15792 _ACEOF
15793 rm -f conftest.$ac_objext
15794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15795   (eval $ac_compile) 2>&5
15796   ac_status=$?
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); } &&
15799          { ac_try='test -s conftest.$ac_objext'
15800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801   (eval $ac_try) 2>&5
15802   ac_status=$?
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); }; }; then
15805   wine_cv_sys_statfs_has_statfs=yes
15806 else
15807   echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15809
15810 wine_cv_sys_statfs_has_statfs=no
15811
15812 fi
15813 rm -f conftest.$ac_objext conftest.$ac_ext
15814
15815 fi
15816 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
15817 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
15818     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
15819     then
15820
15821 cat >>confdefs.h <<\_ACEOF
15822 #define STATFS_DEFINED_BY_SYS_STATFS 1
15823 _ACEOF
15824
15825     fi
15826 fi
15827
15828 if test "$ac_cv_header_sys_mount_h" = "yes"
15829 then
15830     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
15831 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
15832 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
15833   echo $ECHO_N "(cached) $ECHO_C" >&6
15834 else
15835   cat >conftest.$ac_ext <<_ACEOF
15836 #line $LINENO "configure"
15837 /* confdefs.h.  */
15838 _ACEOF
15839 cat confdefs.h >>conftest.$ac_ext
15840 cat >>conftest.$ac_ext <<_ACEOF
15841 /* end confdefs.h.  */
15842
15843         #include <sys/types.h>
15844         #ifdef HAVE_SYS_PARAM_H
15845         # include <sys/param.h>
15846         #endif
15847         #include <sys/mount.h>
15848
15849 int
15850 main ()
15851 {
15852
15853                 struct statfs stfs;
15854
15855   ;
15856   return 0;
15857 }
15858 _ACEOF
15859 rm -f conftest.$ac_objext
15860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15861   (eval $ac_compile) 2>&5
15862   ac_status=$?
15863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); } &&
15865          { ac_try='test -s conftest.$ac_objext'
15866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867   (eval $ac_try) 2>&5
15868   ac_status=$?
15869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870   (exit $ac_status); }; }; then
15871   wine_cv_sys_mount_has_statfs=yes
15872 else
15873   echo "$as_me: failed program was:" >&5
15874 sed 's/^/| /' conftest.$ac_ext >&5
15875
15876 wine_cv_sys_mount_has_statfs=no
15877
15878 fi
15879 rm -f conftest.$ac_objext conftest.$ac_ext
15880
15881 fi
15882 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
15883 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
15884     if test "$wine_cv_sys_mount_has_statfs" = "yes"
15885     then
15886
15887 cat >>confdefs.h <<\_ACEOF
15888 #define STATFS_DEFINED_BY_SYS_MOUNT 1
15889 _ACEOF
15890
15891     fi
15892 fi
15893
15894
15895 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
15896 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
15897 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
15898   echo $ECHO_N "(cached) $ECHO_C" >&6
15899 else
15900   cat >conftest.$ac_ext <<_ACEOF
15901 #line $LINENO "configure"
15902 /* confdefs.h.  */
15903 _ACEOF
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h.  */
15907 #include <sys/types.h>
15908 #ifdef HAVE_SYS_PARAM_H
15909 # include <sys/param.h>
15910 #endif
15911 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15912 # include <sys/mount.h>
15913 #else
15914 # ifdef STATFS_DEFINED_BY_SYS_VFS
15915 #  include <sys/vfs.h>
15916 # else
15917 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
15918 #   include <sys/statfs.h>
15919 #  endif
15920 # endif
15921 #endif
15922
15923 int
15924 main ()
15925 {
15926 static struct statfs ac_aggr;
15927 if (ac_aggr.f_bfree)
15928 return 0;
15929   ;
15930   return 0;
15931 }
15932 _ACEOF
15933 rm -f conftest.$ac_objext
15934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15935   (eval $ac_compile) 2>&5
15936   ac_status=$?
15937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938   (exit $ac_status); } &&
15939          { ac_try='test -s conftest.$ac_objext'
15940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941   (eval $ac_try) 2>&5
15942   ac_status=$?
15943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944   (exit $ac_status); }; }; then
15945   ac_cv_member_struct_statfs_f_bfree=yes
15946 else
15947   echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15949
15950 cat >conftest.$ac_ext <<_ACEOF
15951 #line $LINENO "configure"
15952 /* confdefs.h.  */
15953 _ACEOF
15954 cat confdefs.h >>conftest.$ac_ext
15955 cat >>conftest.$ac_ext <<_ACEOF
15956 /* end confdefs.h.  */
15957 #include <sys/types.h>
15958 #ifdef HAVE_SYS_PARAM_H
15959 # include <sys/param.h>
15960 #endif
15961 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15962 # include <sys/mount.h>
15963 #else
15964 # ifdef STATFS_DEFINED_BY_SYS_VFS
15965 #  include <sys/vfs.h>
15966 # else
15967 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
15968 #   include <sys/statfs.h>
15969 #  endif
15970 # endif
15971 #endif
15972
15973 int
15974 main ()
15975 {
15976 static struct statfs ac_aggr;
15977 if (sizeof ac_aggr.f_bfree)
15978 return 0;
15979   ;
15980   return 0;
15981 }
15982 _ACEOF
15983 rm -f conftest.$ac_objext
15984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15985   (eval $ac_compile) 2>&5
15986   ac_status=$?
15987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988   (exit $ac_status); } &&
15989          { ac_try='test -s conftest.$ac_objext'
15990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991   (eval $ac_try) 2>&5
15992   ac_status=$?
15993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994   (exit $ac_status); }; }; then
15995   ac_cv_member_struct_statfs_f_bfree=yes
15996 else
15997   echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.$ac_ext >&5
15999
16000 ac_cv_member_struct_statfs_f_bfree=no
16001 fi
16002 rm -f conftest.$ac_objext conftest.$ac_ext
16003 fi
16004 rm -f conftest.$ac_objext conftest.$ac_ext
16005 fi
16006 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
16007 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
16008 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
16009
16010 cat >>confdefs.h <<_ACEOF
16011 #define HAVE_STRUCT_STATFS_F_BFREE 1
16012 _ACEOF
16013
16014
16015 fi
16016 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
16017 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
16018 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
16019   echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021   cat >conftest.$ac_ext <<_ACEOF
16022 #line $LINENO "configure"
16023 /* confdefs.h.  */
16024 _ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h.  */
16028 #include <sys/types.h>
16029 #ifdef HAVE_SYS_PARAM_H
16030 # include <sys/param.h>
16031 #endif
16032 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16033 # include <sys/mount.h>
16034 #else
16035 # ifdef STATFS_DEFINED_BY_SYS_VFS
16036 #  include <sys/vfs.h>
16037 # else
16038 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
16039 #   include <sys/statfs.h>
16040 #  endif
16041 # endif
16042 #endif
16043
16044 int
16045 main ()
16046 {
16047 static struct statfs ac_aggr;
16048 if (ac_aggr.f_bavail)
16049 return 0;
16050   ;
16051   return 0;
16052 }
16053 _ACEOF
16054 rm -f conftest.$ac_objext
16055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16056   (eval $ac_compile) 2>&5
16057   ac_status=$?
16058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059   (exit $ac_status); } &&
16060          { ac_try='test -s conftest.$ac_objext'
16061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16062   (eval $ac_try) 2>&5
16063   ac_status=$?
16064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065   (exit $ac_status); }; }; then
16066   ac_cv_member_struct_statfs_f_bavail=yes
16067 else
16068   echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16070
16071 cat >conftest.$ac_ext <<_ACEOF
16072 #line $LINENO "configure"
16073 /* confdefs.h.  */
16074 _ACEOF
16075 cat confdefs.h >>conftest.$ac_ext
16076 cat >>conftest.$ac_ext <<_ACEOF
16077 /* end confdefs.h.  */
16078 #include <sys/types.h>
16079 #ifdef HAVE_SYS_PARAM_H
16080 # include <sys/param.h>
16081 #endif
16082 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16083 # include <sys/mount.h>
16084 #else
16085 # ifdef STATFS_DEFINED_BY_SYS_VFS
16086 #  include <sys/vfs.h>
16087 # else
16088 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
16089 #   include <sys/statfs.h>
16090 #  endif
16091 # endif
16092 #endif
16093
16094 int
16095 main ()
16096 {
16097 static struct statfs ac_aggr;
16098 if (sizeof ac_aggr.f_bavail)
16099 return 0;
16100   ;
16101   return 0;
16102 }
16103 _ACEOF
16104 rm -f conftest.$ac_objext
16105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16106   (eval $ac_compile) 2>&5
16107   ac_status=$?
16108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109   (exit $ac_status); } &&
16110          { ac_try='test -s conftest.$ac_objext'
16111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112   (eval $ac_try) 2>&5
16113   ac_status=$?
16114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115   (exit $ac_status); }; }; then
16116   ac_cv_member_struct_statfs_f_bavail=yes
16117 else
16118   echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16120
16121 ac_cv_member_struct_statfs_f_bavail=no
16122 fi
16123 rm -f conftest.$ac_objext conftest.$ac_ext
16124 fi
16125 rm -f conftest.$ac_objext conftest.$ac_ext
16126 fi
16127 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
16128 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
16129 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
16130
16131 cat >>confdefs.h <<_ACEOF
16132 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
16133 _ACEOF
16134
16135
16136 fi
16137
16138
16139 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
16140 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
16141 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
16142   echo $ECHO_N "(cached) $ECHO_C" >&6
16143 else
16144   cat >conftest.$ac_ext <<_ACEOF
16145 #line $LINENO "configure"
16146 /* confdefs.h.  */
16147 _ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h.  */
16151 #include <sys/types.h>
16152 #ifdef HAVE_SYS_SOCKET_H
16153 # include <sys/socket.h>
16154 #endif
16155 #ifdef HAVE_SYS_UN_H
16156 # include <sys/un.h>
16157 #endif
16158
16159 int
16160 main ()
16161 {
16162 static struct msghdr ac_aggr;
16163 if (ac_aggr.msg_accrights)
16164 return 0;
16165   ;
16166   return 0;
16167 }
16168 _ACEOF
16169 rm -f conftest.$ac_objext
16170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16171   (eval $ac_compile) 2>&5
16172   ac_status=$?
16173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174   (exit $ac_status); } &&
16175          { ac_try='test -s conftest.$ac_objext'
16176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177   (eval $ac_try) 2>&5
16178   ac_status=$?
16179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180   (exit $ac_status); }; }; then
16181   ac_cv_member_struct_msghdr_msg_accrights=yes
16182 else
16183   echo "$as_me: failed program was:" >&5
16184 sed 's/^/| /' conftest.$ac_ext >&5
16185
16186 cat >conftest.$ac_ext <<_ACEOF
16187 #line $LINENO "configure"
16188 /* confdefs.h.  */
16189 _ACEOF
16190 cat confdefs.h >>conftest.$ac_ext
16191 cat >>conftest.$ac_ext <<_ACEOF
16192 /* end confdefs.h.  */
16193 #include <sys/types.h>
16194 #ifdef HAVE_SYS_SOCKET_H
16195 # include <sys/socket.h>
16196 #endif
16197 #ifdef HAVE_SYS_UN_H
16198 # include <sys/un.h>
16199 #endif
16200
16201 int
16202 main ()
16203 {
16204 static struct msghdr ac_aggr;
16205 if (sizeof ac_aggr.msg_accrights)
16206 return 0;
16207   ;
16208   return 0;
16209 }
16210 _ACEOF
16211 rm -f conftest.$ac_objext
16212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16213   (eval $ac_compile) 2>&5
16214   ac_status=$?
16215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216   (exit $ac_status); } &&
16217          { ac_try='test -s conftest.$ac_objext'
16218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16219   (eval $ac_try) 2>&5
16220   ac_status=$?
16221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222   (exit $ac_status); }; }; then
16223   ac_cv_member_struct_msghdr_msg_accrights=yes
16224 else
16225   echo "$as_me: failed program was:" >&5
16226 sed 's/^/| /' conftest.$ac_ext >&5
16227
16228 ac_cv_member_struct_msghdr_msg_accrights=no
16229 fi
16230 rm -f conftest.$ac_objext conftest.$ac_ext
16231 fi
16232 rm -f conftest.$ac_objext conftest.$ac_ext
16233 fi
16234 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
16235 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
16236 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
16237
16238 cat >>confdefs.h <<_ACEOF
16239 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
16240 _ACEOF
16241
16242
16243 fi
16244 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16245 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
16246 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16247   echo $ECHO_N "(cached) $ECHO_C" >&6
16248 else
16249   cat >conftest.$ac_ext <<_ACEOF
16250 #line $LINENO "configure"
16251 /* confdefs.h.  */
16252 _ACEOF
16253 cat confdefs.h >>conftest.$ac_ext
16254 cat >>conftest.$ac_ext <<_ACEOF
16255 /* end confdefs.h.  */
16256 #include <sys/types.h>
16257 #ifdef HAVE_SYS_SOCKET_H
16258 # include <sys/socket.h>
16259 #endif
16260 #ifdef HAVE_SYS_UN_H
16261 # include <sys/un.h>
16262 #endif
16263
16264 int
16265 main ()
16266 {
16267 static struct sockaddr ac_aggr;
16268 if (ac_aggr.sa_len)
16269 return 0;
16270   ;
16271   return 0;
16272 }
16273 _ACEOF
16274 rm -f conftest.$ac_objext
16275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16276   (eval $ac_compile) 2>&5
16277   ac_status=$?
16278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279   (exit $ac_status); } &&
16280          { ac_try='test -s conftest.$ac_objext'
16281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16282   (eval $ac_try) 2>&5
16283   ac_status=$?
16284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285   (exit $ac_status); }; }; then
16286   ac_cv_member_struct_sockaddr_sa_len=yes
16287 else
16288   echo "$as_me: failed program was:" >&5
16289 sed 's/^/| /' conftest.$ac_ext >&5
16290
16291 cat >conftest.$ac_ext <<_ACEOF
16292 #line $LINENO "configure"
16293 /* confdefs.h.  */
16294 _ACEOF
16295 cat confdefs.h >>conftest.$ac_ext
16296 cat >>conftest.$ac_ext <<_ACEOF
16297 /* end confdefs.h.  */
16298 #include <sys/types.h>
16299 #ifdef HAVE_SYS_SOCKET_H
16300 # include <sys/socket.h>
16301 #endif
16302 #ifdef HAVE_SYS_UN_H
16303 # include <sys/un.h>
16304 #endif
16305
16306 int
16307 main ()
16308 {
16309 static struct sockaddr ac_aggr;
16310 if (sizeof ac_aggr.sa_len)
16311 return 0;
16312   ;
16313   return 0;
16314 }
16315 _ACEOF
16316 rm -f conftest.$ac_objext
16317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16318   (eval $ac_compile) 2>&5
16319   ac_status=$?
16320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321   (exit $ac_status); } &&
16322          { ac_try='test -s conftest.$ac_objext'
16323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324   (eval $ac_try) 2>&5
16325   ac_status=$?
16326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327   (exit $ac_status); }; }; then
16328   ac_cv_member_struct_sockaddr_sa_len=yes
16329 else
16330   echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16332
16333 ac_cv_member_struct_sockaddr_sa_len=no
16334 fi
16335 rm -f conftest.$ac_objext conftest.$ac_ext
16336 fi
16337 rm -f conftest.$ac_objext conftest.$ac_ext
16338 fi
16339 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16340 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
16341 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
16342
16343 cat >>confdefs.h <<_ACEOF
16344 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16345 _ACEOF
16346
16347
16348 fi
16349 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
16350 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
16351 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
16352   echo $ECHO_N "(cached) $ECHO_C" >&6
16353 else
16354   cat >conftest.$ac_ext <<_ACEOF
16355 #line $LINENO "configure"
16356 /* confdefs.h.  */
16357 _ACEOF
16358 cat confdefs.h >>conftest.$ac_ext
16359 cat >>conftest.$ac_ext <<_ACEOF
16360 /* end confdefs.h.  */
16361 #include <sys/types.h>
16362 #ifdef HAVE_SYS_SOCKET_H
16363 # include <sys/socket.h>
16364 #endif
16365 #ifdef HAVE_SYS_UN_H
16366 # include <sys/un.h>
16367 #endif
16368
16369 int
16370 main ()
16371 {
16372 static struct sockaddr_un ac_aggr;
16373 if (ac_aggr.sun_len)
16374 return 0;
16375   ;
16376   return 0;
16377 }
16378 _ACEOF
16379 rm -f conftest.$ac_objext
16380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16381   (eval $ac_compile) 2>&5
16382   ac_status=$?
16383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384   (exit $ac_status); } &&
16385          { ac_try='test -s conftest.$ac_objext'
16386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387   (eval $ac_try) 2>&5
16388   ac_status=$?
16389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390   (exit $ac_status); }; }; then
16391   ac_cv_member_struct_sockaddr_un_sun_len=yes
16392 else
16393   echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16395
16396 cat >conftest.$ac_ext <<_ACEOF
16397 #line $LINENO "configure"
16398 /* confdefs.h.  */
16399 _ACEOF
16400 cat confdefs.h >>conftest.$ac_ext
16401 cat >>conftest.$ac_ext <<_ACEOF
16402 /* end confdefs.h.  */
16403 #include <sys/types.h>
16404 #ifdef HAVE_SYS_SOCKET_H
16405 # include <sys/socket.h>
16406 #endif
16407 #ifdef HAVE_SYS_UN_H
16408 # include <sys/un.h>
16409 #endif
16410
16411 int
16412 main ()
16413 {
16414 static struct sockaddr_un ac_aggr;
16415 if (sizeof ac_aggr.sun_len)
16416 return 0;
16417   ;
16418   return 0;
16419 }
16420 _ACEOF
16421 rm -f conftest.$ac_objext
16422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16423   (eval $ac_compile) 2>&5
16424   ac_status=$?
16425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426   (exit $ac_status); } &&
16427          { ac_try='test -s conftest.$ac_objext'
16428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16429   (eval $ac_try) 2>&5
16430   ac_status=$?
16431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432   (exit $ac_status); }; }; then
16433   ac_cv_member_struct_sockaddr_un_sun_len=yes
16434 else
16435   echo "$as_me: failed program was:" >&5
16436 sed 's/^/| /' conftest.$ac_ext >&5
16437
16438 ac_cv_member_struct_sockaddr_un_sun_len=no
16439 fi
16440 rm -f conftest.$ac_objext conftest.$ac_ext
16441 fi
16442 rm -f conftest.$ac_objext conftest.$ac_ext
16443 fi
16444 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
16445 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
16446 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
16447
16448 cat >>confdefs.h <<_ACEOF
16449 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
16450 _ACEOF
16451
16452
16453 fi
16454
16455
16456 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
16457 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
16458 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
16459   echo $ECHO_N "(cached) $ECHO_C" >&6
16460 else
16461   cat >conftest.$ac_ext <<_ACEOF
16462 #line $LINENO "configure"
16463 /* confdefs.h.  */
16464 _ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h.  */
16468 #include <signal.h>
16469
16470 int
16471 main ()
16472 {
16473 static siginfo_t ac_aggr;
16474 if (ac_aggr.si_fd)
16475 return 0;
16476   ;
16477   return 0;
16478 }
16479 _ACEOF
16480 rm -f conftest.$ac_objext
16481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16482   (eval $ac_compile) 2>&5
16483   ac_status=$?
16484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485   (exit $ac_status); } &&
16486          { ac_try='test -s conftest.$ac_objext'
16487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488   (eval $ac_try) 2>&5
16489   ac_status=$?
16490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491   (exit $ac_status); }; }; then
16492   ac_cv_member_siginfo_t_si_fd=yes
16493 else
16494   echo "$as_me: failed program was:" >&5
16495 sed 's/^/| /' conftest.$ac_ext >&5
16496
16497 cat >conftest.$ac_ext <<_ACEOF
16498 #line $LINENO "configure"
16499 /* confdefs.h.  */
16500 _ACEOF
16501 cat confdefs.h >>conftest.$ac_ext
16502 cat >>conftest.$ac_ext <<_ACEOF
16503 /* end confdefs.h.  */
16504 #include <signal.h>
16505
16506 int
16507 main ()
16508 {
16509 static siginfo_t ac_aggr;
16510 if (sizeof ac_aggr.si_fd)
16511 return 0;
16512   ;
16513   return 0;
16514 }
16515 _ACEOF
16516 rm -f conftest.$ac_objext
16517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16518   (eval $ac_compile) 2>&5
16519   ac_status=$?
16520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521   (exit $ac_status); } &&
16522          { ac_try='test -s conftest.$ac_objext'
16523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524   (eval $ac_try) 2>&5
16525   ac_status=$?
16526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527   (exit $ac_status); }; }; then
16528   ac_cv_member_siginfo_t_si_fd=yes
16529 else
16530   echo "$as_me: failed program was:" >&5
16531 sed 's/^/| /' conftest.$ac_ext >&5
16532
16533 ac_cv_member_siginfo_t_si_fd=no
16534 fi
16535 rm -f conftest.$ac_objext conftest.$ac_ext
16536 fi
16537 rm -f conftest.$ac_objext conftest.$ac_ext
16538 fi
16539 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
16540 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
16541 if test $ac_cv_member_siginfo_t_si_fd = yes; then
16542
16543 cat >>confdefs.h <<_ACEOF
16544 #define HAVE_SIGINFO_T_SI_FD 1
16545 _ACEOF
16546
16547
16548 fi
16549
16550
16551 echo "$as_me:$LINENO: checking for struct option.name" >&5
16552 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
16553 if test "${ac_cv_member_struct_option_name+set}" = set; then
16554   echo $ECHO_N "(cached) $ECHO_C" >&6
16555 else
16556   cat >conftest.$ac_ext <<_ACEOF
16557 #line $LINENO "configure"
16558 /* confdefs.h.  */
16559 _ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h.  */
16563 #ifdef HAVE_GETOPT_H
16564 #include <getopt.h>
16565 #endif
16566
16567 int
16568 main ()
16569 {
16570 static struct option ac_aggr;
16571 if (ac_aggr.name)
16572 return 0;
16573   ;
16574   return 0;
16575 }
16576 _ACEOF
16577 rm -f conftest.$ac_objext
16578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16579   (eval $ac_compile) 2>&5
16580   ac_status=$?
16581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582   (exit $ac_status); } &&
16583          { ac_try='test -s conftest.$ac_objext'
16584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585   (eval $ac_try) 2>&5
16586   ac_status=$?
16587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588   (exit $ac_status); }; }; then
16589   ac_cv_member_struct_option_name=yes
16590 else
16591   echo "$as_me: failed program was:" >&5
16592 sed 's/^/| /' conftest.$ac_ext >&5
16593
16594 cat >conftest.$ac_ext <<_ACEOF
16595 #line $LINENO "configure"
16596 /* confdefs.h.  */
16597 _ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h.  */
16601 #ifdef HAVE_GETOPT_H
16602 #include <getopt.h>
16603 #endif
16604
16605 int
16606 main ()
16607 {
16608 static struct option ac_aggr;
16609 if (sizeof ac_aggr.name)
16610 return 0;
16611   ;
16612   return 0;
16613 }
16614 _ACEOF
16615 rm -f conftest.$ac_objext
16616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16617   (eval $ac_compile) 2>&5
16618   ac_status=$?
16619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620   (exit $ac_status); } &&
16621          { ac_try='test -s conftest.$ac_objext'
16622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623   (eval $ac_try) 2>&5
16624   ac_status=$?
16625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626   (exit $ac_status); }; }; then
16627   ac_cv_member_struct_option_name=yes
16628 else
16629   echo "$as_me: failed program was:" >&5
16630 sed 's/^/| /' conftest.$ac_ext >&5
16631
16632 ac_cv_member_struct_option_name=no
16633 fi
16634 rm -f conftest.$ac_objext conftest.$ac_ext
16635 fi
16636 rm -f conftest.$ac_objext conftest.$ac_ext
16637 fi
16638 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
16639 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
16640 if test $ac_cv_member_struct_option_name = yes; then
16641
16642 cat >>confdefs.h <<_ACEOF
16643 #define HAVE_STRUCT_OPTION_NAME 1
16644 _ACEOF
16645
16646
16647 fi
16648
16649
16650 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16651 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16652 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16653   echo $ECHO_N "(cached) $ECHO_C" >&6
16654 else
16655   cat >conftest.$ac_ext <<_ACEOF
16656 #line $LINENO "configure"
16657 /* confdefs.h.  */
16658 _ACEOF
16659 cat confdefs.h >>conftest.$ac_ext
16660 cat >>conftest.$ac_ext <<_ACEOF
16661 /* end confdefs.h.  */
16662 $ac_includes_default
16663 int
16664 main ()
16665 {
16666 static struct stat ac_aggr;
16667 if (ac_aggr.st_blocks)
16668 return 0;
16669   ;
16670   return 0;
16671 }
16672 _ACEOF
16673 rm -f conftest.$ac_objext
16674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16675   (eval $ac_compile) 2>&5
16676   ac_status=$?
16677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678   (exit $ac_status); } &&
16679          { ac_try='test -s conftest.$ac_objext'
16680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681   (eval $ac_try) 2>&5
16682   ac_status=$?
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); }; }; then
16685   ac_cv_member_struct_stat_st_blocks=yes
16686 else
16687   echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16689
16690 cat >conftest.$ac_ext <<_ACEOF
16691 #line $LINENO "configure"
16692 /* confdefs.h.  */
16693 _ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h.  */
16697 $ac_includes_default
16698 int
16699 main ()
16700 {
16701 static struct stat ac_aggr;
16702 if (sizeof ac_aggr.st_blocks)
16703 return 0;
16704   ;
16705   return 0;
16706 }
16707 _ACEOF
16708 rm -f conftest.$ac_objext
16709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16710   (eval $ac_compile) 2>&5
16711   ac_status=$?
16712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713   (exit $ac_status); } &&
16714          { ac_try='test -s conftest.$ac_objext'
16715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716   (eval $ac_try) 2>&5
16717   ac_status=$?
16718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719   (exit $ac_status); }; }; then
16720   ac_cv_member_struct_stat_st_blocks=yes
16721 else
16722   echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16724
16725 ac_cv_member_struct_stat_st_blocks=no
16726 fi
16727 rm -f conftest.$ac_objext conftest.$ac_ext
16728 fi
16729 rm -f conftest.$ac_objext conftest.$ac_ext
16730 fi
16731 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16732 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16733 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16734
16735 cat >>confdefs.h <<_ACEOF
16736 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16737 _ACEOF
16738
16739
16740 fi
16741
16742
16743
16744 case $host_cpu in
16745   *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
16746 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
16747 if test "${ac_cv_cpp_def___i386__+set}" = set; then
16748   echo $ECHO_N "(cached) $ECHO_C" >&6
16749 else
16750   cat >conftest.$ac_ext <<_ACEOF
16751 #line $LINENO "configure"
16752 /* confdefs.h.  */
16753 _ACEOF
16754 cat confdefs.h >>conftest.$ac_ext
16755 cat >>conftest.$ac_ext <<_ACEOF
16756 /* end confdefs.h.  */
16757 #ifndef __i386__
16758 yes
16759 #endif
16760 _ACEOF
16761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16762   $EGREP "yes" >/dev/null 2>&1; then
16763   ac_cv_cpp_def___i386__=yes
16764 else
16765   ac_cv_cpp_def___i386__=no
16766 fi
16767 rm -f conftest*
16768
16769 fi
16770 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
16771 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
16772 if test $ac_cv_cpp_def___i386__ = yes; then
16773   CFLAGS="$CFLAGS -D__i386__"
16774   LINTFLAGS="$LINTFLAGS -D__i386__"
16775 fi
16776  ;;
16777   *alpha*)          echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
16778 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
16779 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
16780   echo $ECHO_N "(cached) $ECHO_C" >&6
16781 else
16782   cat >conftest.$ac_ext <<_ACEOF
16783 #line $LINENO "configure"
16784 /* confdefs.h.  */
16785 _ACEOF
16786 cat confdefs.h >>conftest.$ac_ext
16787 cat >>conftest.$ac_ext <<_ACEOF
16788 /* end confdefs.h.  */
16789 #ifndef __ALPHA__
16790 yes
16791 #endif
16792 _ACEOF
16793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16794   $EGREP "yes" >/dev/null 2>&1; then
16795   ac_cv_cpp_def___ALPHA__=yes
16796 else
16797   ac_cv_cpp_def___ALPHA__=no
16798 fi
16799 rm -f conftest*
16800
16801 fi
16802 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
16803 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
16804 if test $ac_cv_cpp_def___ALPHA__ = yes; then
16805   CFLAGS="$CFLAGS -D__ALPHA__"
16806   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
16807 fi
16808  ;;
16809   *sparc*)          echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
16810 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
16811 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
16812   echo $ECHO_N "(cached) $ECHO_C" >&6
16813 else
16814   cat >conftest.$ac_ext <<_ACEOF
16815 #line $LINENO "configure"
16816 /* confdefs.h.  */
16817 _ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h.  */
16821 #ifndef __sparc__
16822 yes
16823 #endif
16824 _ACEOF
16825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16826   $EGREP "yes" >/dev/null 2>&1; then
16827   ac_cv_cpp_def___sparc__=yes
16828 else
16829   ac_cv_cpp_def___sparc__=no
16830 fi
16831 rm -f conftest*
16832
16833 fi
16834 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
16835 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
16836 if test $ac_cv_cpp_def___sparc__ = yes; then
16837   CFLAGS="$CFLAGS -D__sparc__"
16838   LINTFLAGS="$LINTFLAGS -D__sparc__"
16839 fi
16840  ;;
16841   *powerpc*)        echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
16842 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
16843 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
16844   echo $ECHO_N "(cached) $ECHO_C" >&6
16845 else
16846   cat >conftest.$ac_ext <<_ACEOF
16847 #line $LINENO "configure"
16848 /* confdefs.h.  */
16849 _ACEOF
16850 cat confdefs.h >>conftest.$ac_ext
16851 cat >>conftest.$ac_ext <<_ACEOF
16852 /* end confdefs.h.  */
16853 #ifndef __powerpc__
16854 yes
16855 #endif
16856 _ACEOF
16857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16858   $EGREP "yes" >/dev/null 2>&1; then
16859   ac_cv_cpp_def___powerpc__=yes
16860 else
16861   ac_cv_cpp_def___powerpc__=no
16862 fi
16863 rm -f conftest*
16864
16865 fi
16866 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
16867 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
16868 if test $ac_cv_cpp_def___powerpc__ = yes; then
16869   CFLAGS="$CFLAGS -D__powerpc__"
16870   LINTFLAGS="$LINTFLAGS -D__powerpc__"
16871 fi
16872  ;;
16873 esac
16874
16875 case $host_vendor in
16876   *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
16877 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
16878 if test "${ac_cv_cpp_def___sun__+set}" = set; then
16879   echo $ECHO_N "(cached) $ECHO_C" >&6
16880 else
16881   cat >conftest.$ac_ext <<_ACEOF
16882 #line $LINENO "configure"
16883 /* confdefs.h.  */
16884 _ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h.  */
16888 #ifndef __sun__
16889 yes
16890 #endif
16891 _ACEOF
16892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16893   $EGREP "yes" >/dev/null 2>&1; then
16894   ac_cv_cpp_def___sun__=yes
16895 else
16896   ac_cv_cpp_def___sun__=no
16897 fi
16898 rm -f conftest*
16899
16900 fi
16901 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
16902 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
16903 if test $ac_cv_cpp_def___sun__ = yes; then
16904   CFLAGS="$CFLAGS -D__sun__"
16905   LINTFLAGS="$LINTFLAGS -D__sun__"
16906 fi
16907  ;;
16908 esac
16909
16910
16911
16912
16913
16914           ac_config_commands="$ac_config_commands controls"
16915
16916           ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
16917
16918           ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
16919
16920           ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
16921
16922           ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
16923
16924           ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
16925
16926           ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
16927
16928           ac_config_commands="$ac_config_commands dlls/dinput/joystick"
16929
16930           ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
16931
16932           ac_config_commands="$ac_config_commands dlls/dinput/mouse"
16933
16934           ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
16935
16936           ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
16937
16938           ac_config_commands="$ac_config_commands dlls/kernel/messages"
16939
16940           ac_config_commands="$ac_config_commands dlls/user/dde"
16941
16942           ac_config_commands="$ac_config_commands dlls/user/resources"
16943
16944           ac_config_commands="$ac_config_commands dlls/wineps/data"
16945
16946           ac_config_commands="$ac_config_commands files"
16947
16948           ac_config_commands="$ac_config_commands graphics"
16949
16950           ac_config_commands="$ac_config_commands graphics/x11drv"
16951
16952           ac_config_commands="$ac_config_commands include/wine"
16953
16954           ac_config_commands="$ac_config_commands memory"
16955
16956           ac_config_commands="$ac_config_commands misc"
16957
16958           ac_config_commands="$ac_config_commands msdos"
16959
16960           ac_config_commands="$ac_config_commands objects"
16961
16962           ac_config_commands="$ac_config_commands programs/regapi/tests"
16963
16964           ac_config_commands="$ac_config_commands programs/regedit/tests"
16965
16966           ac_config_commands="$ac_config_commands windows"
16967
16968
16969 MAKE_RULES=Make.rules
16970
16971
16972 MAKE_DLL_RULES=dlls/Makedll.rules
16973
16974
16975 MAKE_TEST_RULES=dlls/Maketest.rules
16976
16977
16978 MAKE_LIB_RULES=libs/Makelib.rules
16979
16980
16981 MAKE_PROG_RULES=programs/Makeprog.rules
16982
16983
16984                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnhpast/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/iphlpapi/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/mshtml/Makefile dlls/msi/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrtd/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/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/uxtheme/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/winejack/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/uuid/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/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/start/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
16985
16986
16987 cat >confcache <<\_ACEOF
16988 # This file is a shell script that caches the results of configure
16989 # tests run on this system so they can be shared between configure
16990 # scripts and configure runs, see configure's option --config-cache.
16991 # It is not useful on other systems.  If it contains results you don't
16992 # want to keep, you may remove or edit it.
16993 #
16994 # config.status only pays attention to the cache file if you give it
16995 # the --recheck option to rerun configure.
16996 #
16997 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16998 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16999 # following values.
17000
17001 _ACEOF
17002
17003 # The following way of writing the cache mishandles newlines in values,
17004 # but we know of no workaround that is simple, portable, and efficient.
17005 # So, don't put newlines in cache variables' values.
17006 # Ultrix sh set writes to stderr and can't be redirected directly,
17007 # and sets the high bit in the cache file unless we assign to the vars.
17008 {
17009   (set) 2>&1 |
17010     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17011     *ac_space=\ *)
17012       # `set' does not quote correctly, so add quotes (double-quote
17013       # substitution turns \\\\ into \\, and sed turns \\ into \).
17014       sed -n \
17015         "s/'/'\\\\''/g;
17016           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17017       ;;
17018     *)
17019       # `set' quotes correctly as required by POSIX, so do not add quotes.
17020       sed -n \
17021         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17022       ;;
17023     esac;
17024 } |
17025   sed '
17026      t clear
17027      : clear
17028      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17029      t end
17030      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17031      : end' >>confcache
17032 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17033   if test -w $cache_file; then
17034     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17035     cat confcache >$cache_file
17036   else
17037     echo "not updating unwritable cache $cache_file"
17038   fi
17039 fi
17040 rm -f confcache
17041
17042 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17043 # Let make expand exec_prefix.
17044 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17045
17046 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17047 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17048 # trailing colons and then remove the whole line if VPATH becomes empty
17049 # (actually we leave an empty line to preserve line numbers).
17050 if test "x$srcdir" = x.; then
17051   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17052 s/:*\$(srcdir):*/:/;
17053 s/:*\${srcdir}:*/:/;
17054 s/:*@srcdir@:*/:/;
17055 s/^\([^=]*=[    ]*\):*/\1/;
17056 s/:*$//;
17057 s/^[^=]*=[      ]*$//;
17058 }'
17059 fi
17060
17061 DEFS=-DHAVE_CONFIG_H
17062
17063 ac_libobjs=
17064 ac_ltlibobjs=
17065 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17066   # 1. Remove the extension, and $U if already installed.
17067   ac_i=`echo "$ac_i" |
17068          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17069   # 2. Add them.
17070   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17071   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17072 done
17073 LIBOBJS=$ac_libobjs
17074
17075 LTLIBOBJS=$ac_ltlibobjs
17076
17077
17078
17079 : ${CONFIG_STATUS=./config.status}
17080 ac_clean_files_save=$ac_clean_files
17081 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17082 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17083 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17084 cat >$CONFIG_STATUS <<_ACEOF
17085 #! $SHELL
17086 # Generated by $as_me.
17087 # Run this file to recreate the current configuration.
17088 # Compiler output produced by configure, useful for debugging
17089 # configure, is in config.log if it exists.
17090
17091 debug=false
17092 ac_cs_recheck=false
17093 ac_cs_silent=false
17094 SHELL=\${CONFIG_SHELL-$SHELL}
17095 _ACEOF
17096
17097 cat >>$CONFIG_STATUS <<\_ACEOF
17098 ## --------------------- ##
17099 ## M4sh Initialization.  ##
17100 ## --------------------- ##
17101
17102 # Be Bourne compatible
17103 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17104   emulate sh
17105   NULLCMD=:
17106   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17107   # is contrary to our usage.  Disable this feature.
17108   alias -g '${1+"$@"}'='"$@"'
17109 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17110   set -o posix
17111 fi
17112
17113 # Support unset when possible.
17114 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17115   as_unset=unset
17116 else
17117   as_unset=false
17118 fi
17119
17120
17121 # Work around bugs in pre-3.0 UWIN ksh.
17122 $as_unset ENV MAIL MAILPATH
17123 PS1='$ '
17124 PS2='> '
17125 PS4='+ '
17126
17127 # NLS nuisances.
17128 for as_var in \
17129   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17130   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17131   LC_TELEPHONE LC_TIME
17132 do
17133   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17134     eval $as_var=C; export $as_var
17135   else
17136     $as_unset $as_var
17137   fi
17138 done
17139
17140 # Required to use basename.
17141 if expr a : '\(a\)' >/dev/null 2>&1; then
17142   as_expr=expr
17143 else
17144   as_expr=false
17145 fi
17146
17147 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17148   as_basename=basename
17149 else
17150   as_basename=false
17151 fi
17152
17153
17154 # Name of the executable.
17155 as_me=`$as_basename "$0" ||
17156 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17157          X"$0" : 'X\(//\)$' \| \
17158          X"$0" : 'X\(/\)$' \| \
17159          .     : '\(.\)' 2>/dev/null ||
17160 echo X/"$0" |
17161     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17162           /^X\/\(\/\/\)$/{ s//\1/; q; }
17163           /^X\/\(\/\).*/{ s//\1/; q; }
17164           s/.*/./; q'`
17165
17166
17167 # PATH needs CR, and LINENO needs CR and PATH.
17168 # Avoid depending upon Character Ranges.
17169 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17170 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17171 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17172 as_cr_digits='0123456789'
17173 as_cr_alnum=$as_cr_Letters$as_cr_digits
17174
17175 # The user is always right.
17176 if test "${PATH_SEPARATOR+set}" != set; then
17177   echo "#! /bin/sh" >conf$$.sh
17178   echo  "exit 0"   >>conf$$.sh
17179   chmod +x conf$$.sh
17180   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17181     PATH_SEPARATOR=';'
17182   else
17183     PATH_SEPARATOR=:
17184   fi
17185   rm -f conf$$.sh
17186 fi
17187
17188
17189   as_lineno_1=$LINENO
17190   as_lineno_2=$LINENO
17191   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17192   test "x$as_lineno_1" != "x$as_lineno_2" &&
17193   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17194   # Find who we are.  Look in the path if we contain no path at all
17195   # relative or not.
17196   case $0 in
17197     *[\\/]* ) as_myself=$0 ;;
17198     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17199 for as_dir in $PATH
17200 do
17201   IFS=$as_save_IFS
17202   test -z "$as_dir" && as_dir=.
17203   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17204 done
17205
17206        ;;
17207   esac
17208   # We did not find ourselves, most probably we were run as `sh COMMAND'
17209   # in which case we are not to be found in the path.
17210   if test "x$as_myself" = x; then
17211     as_myself=$0
17212   fi
17213   if test ! -f "$as_myself"; then
17214     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17215 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17216    { (exit 1); exit 1; }; }
17217   fi
17218   case $CONFIG_SHELL in
17219   '')
17220     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17222 do
17223   IFS=$as_save_IFS
17224   test -z "$as_dir" && as_dir=.
17225   for as_base in sh bash ksh sh5; do
17226          case $as_dir in
17227          /*)
17228            if ("$as_dir/$as_base" -c '
17229   as_lineno_1=$LINENO
17230   as_lineno_2=$LINENO
17231   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17232   test "x$as_lineno_1" != "x$as_lineno_2" &&
17233   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17234              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17235              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17236              CONFIG_SHELL=$as_dir/$as_base
17237              export CONFIG_SHELL
17238              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17239            fi;;
17240          esac
17241        done
17242 done
17243 ;;
17244   esac
17245
17246   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17247   # uniformly replaced by the line number.  The first 'sed' inserts a
17248   # line-number line before each line; the second 'sed' does the real
17249   # work.  The second script uses 'N' to pair each line-number line
17250   # with the numbered line, and appends trailing '-' during
17251   # substitution so that $LINENO is not a special case at line end.
17252   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17253   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17254   sed '=' <$as_myself |
17255     sed '
17256       N
17257       s,$,-,
17258       : loop
17259       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17260       t loop
17261       s,-$,,
17262       s,^['$as_cr_digits']*\n,,
17263     ' >$as_me.lineno &&
17264   chmod +x $as_me.lineno ||
17265     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17266 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17267    { (exit 1); exit 1; }; }
17268
17269   # Don't try to exec as it changes $[0], causing all sort of problems
17270   # (the dirname of $[0] is not the place where we might find the
17271   # original and so on.  Autoconf is especially sensible to this).
17272   . ./$as_me.lineno
17273   # Exit status is that of the last command.
17274   exit
17275 }
17276
17277
17278 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17279   *c*,-n*) ECHO_N= ECHO_C='
17280 ' ECHO_T='      ' ;;
17281   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17282   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17283 esac
17284
17285 if expr a : '\(a\)' >/dev/null 2>&1; then
17286   as_expr=expr
17287 else
17288   as_expr=false
17289 fi
17290
17291 rm -f conf$$ conf$$.exe conf$$.file
17292 echo >conf$$.file
17293 if ln -s conf$$.file conf$$ 2>/dev/null; then
17294   # We could just check for DJGPP; but this test a) works b) is more generic
17295   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17296   if test -f conf$$.exe; then
17297     # Don't use ln at all; we don't have any links
17298     as_ln_s='cp -p'
17299   else
17300     as_ln_s='ln -s'
17301   fi
17302 elif ln conf$$.file conf$$ 2>/dev/null; then
17303   as_ln_s=ln
17304 else
17305   as_ln_s='cp -p'
17306 fi
17307 rm -f conf$$ conf$$.exe conf$$.file
17308
17309 if mkdir -p . 2>/dev/null; then
17310   as_mkdir_p=:
17311 else
17312   as_mkdir_p=false
17313 fi
17314
17315 as_executable_p="test -f"
17316
17317 # Sed expression to map a string onto a valid CPP name.
17318 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17319
17320 # Sed expression to map a string onto a valid variable name.
17321 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17322
17323
17324 # IFS
17325 # We need space, tab and new line, in precisely that order.
17326 as_nl='
17327 '
17328 IFS="   $as_nl"
17329
17330 # CDPATH.
17331 $as_unset CDPATH
17332
17333 exec 6>&1
17334
17335 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17336 # report actual input values of CONFIG_FILES etc. instead of their
17337 # values after options handling.  Logging --version etc. is OK.
17338 exec 5>>config.log
17339 {
17340   echo
17341   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17342 ## Running $as_me. ##
17343 _ASBOX
17344 } >&5
17345 cat >&5 <<_CSEOF
17346
17347 This file was extended by Wine $as_me 20031016, which was
17348 generated by GNU Autoconf 2.57.  Invocation command line was
17349
17350   CONFIG_FILES    = $CONFIG_FILES
17351   CONFIG_HEADERS  = $CONFIG_HEADERS
17352   CONFIG_LINKS    = $CONFIG_LINKS
17353   CONFIG_COMMANDS = $CONFIG_COMMANDS
17354   $ $0 $@
17355
17356 _CSEOF
17357 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17358 echo >&5
17359 _ACEOF
17360
17361 # Files that config.status was made for.
17362 if test -n "$ac_config_files"; then
17363   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17364 fi
17365
17366 if test -n "$ac_config_headers"; then
17367   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17368 fi
17369
17370 if test -n "$ac_config_links"; then
17371   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17372 fi
17373
17374 if test -n "$ac_config_commands"; then
17375   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17376 fi
17377
17378 cat >>$CONFIG_STATUS <<\_ACEOF
17379
17380 ac_cs_usage="\
17381 \`$as_me' instantiates files from templates according to the
17382 current configuration.
17383
17384 Usage: $0 [OPTIONS] [FILE]...
17385
17386   -h, --help       print this help, then exit
17387   -V, --version    print version number, then exit
17388   -q, --quiet      do not print progress messages
17389   -d, --debug      don't remove temporary files
17390       --recheck    update $as_me by reconfiguring in the same conditions
17391   --file=FILE[:TEMPLATE]
17392                    instantiate the configuration file FILE
17393   --header=FILE[:TEMPLATE]
17394                    instantiate the configuration header FILE
17395
17396 Configuration files:
17397 $config_files
17398
17399 Configuration headers:
17400 $config_headers
17401
17402 Configuration commands:
17403 $config_commands
17404
17405 Report bugs to <bug-autoconf@gnu.org>."
17406 _ACEOF
17407
17408 cat >>$CONFIG_STATUS <<_ACEOF
17409 ac_cs_version="\\
17410 Wine config.status 20031016
17411 configured by $0, generated by GNU Autoconf 2.57,
17412   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17413
17414 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17415 Free Software Foundation, Inc.
17416 This config.status script is free software; the Free Software Foundation
17417 gives unlimited permission to copy, distribute and modify it."
17418 srcdir=$srcdir
17419 INSTALL="$INSTALL"
17420 _ACEOF
17421
17422 cat >>$CONFIG_STATUS <<\_ACEOF
17423 # If no file are specified by the user, then we need to provide default
17424 # value.  By we need to know if files were specified by the user.
17425 ac_need_defaults=:
17426 while test $# != 0
17427 do
17428   case $1 in
17429   --*=*)
17430     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17431     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17432     ac_shift=:
17433     ;;
17434   -*)
17435     ac_option=$1
17436     ac_optarg=$2
17437     ac_shift=shift
17438     ;;
17439   *) # This is not an option, so the user has probably given explicit
17440      # arguments.
17441      ac_option=$1
17442      ac_need_defaults=false;;
17443   esac
17444
17445   case $ac_option in
17446   # Handling of the options.
17447 _ACEOF
17448 cat >>$CONFIG_STATUS <<\_ACEOF
17449   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17450     ac_cs_recheck=: ;;
17451   --version | --vers* | -V )
17452     echo "$ac_cs_version"; exit 0 ;;
17453   --he | --h)
17454     # Conflict between --help and --header
17455     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17456 Try \`$0 --help' for more information." >&5
17457 echo "$as_me: error: ambiguous option: $1
17458 Try \`$0 --help' for more information." >&2;}
17459    { (exit 1); exit 1; }; };;
17460   --help | --hel | -h )
17461     echo "$ac_cs_usage"; exit 0 ;;
17462   --debug | --d* | -d )
17463     debug=: ;;
17464   --file | --fil | --fi | --f )
17465     $ac_shift
17466     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17467     ac_need_defaults=false;;
17468   --header | --heade | --head | --hea )
17469     $ac_shift
17470     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17471     ac_need_defaults=false;;
17472   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17473   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17474     ac_cs_silent=: ;;
17475
17476   # This is an error.
17477   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17478 Try \`$0 --help' for more information." >&5
17479 echo "$as_me: error: unrecognized option: $1
17480 Try \`$0 --help' for more information." >&2;}
17481    { (exit 1); exit 1; }; } ;;
17482
17483   *) ac_config_targets="$ac_config_targets $1" ;;
17484
17485   esac
17486   shift
17487 done
17488
17489 ac_configure_extra_args=
17490
17491 if $ac_cs_silent; then
17492   exec 6>/dev/null
17493   ac_configure_extra_args="$ac_configure_extra_args --silent"
17494 fi
17495
17496 _ACEOF
17497 cat >>$CONFIG_STATUS <<_ACEOF
17498 if \$ac_cs_recheck; then
17499   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17500   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17501 fi
17502
17503 _ACEOF
17504
17505
17506
17507
17508
17509 cat >>$CONFIG_STATUS <<\_ACEOF
17510 for ac_config_target in $ac_config_targets
17511 do
17512   case "$ac_config_target" in
17513   # Handling of arguments.
17514   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17515   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
17516   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
17517   "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
17518   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17519   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17520   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
17521   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
17522   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
17523   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
17524   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
17525   "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
17526   "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
17527   "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
17528   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
17529   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
17530   "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
17531   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
17532   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
17533   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
17534   "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
17535   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
17536   "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
17537   "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
17538   "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
17539   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
17540   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
17541   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
17542   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
17543   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
17544   "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
17545   "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
17546   "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
17547   "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
17548   "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
17549   "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
17550   "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
17551   "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
17552   "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
17553   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
17554   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
17555   "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
17556   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
17557   "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
17558   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
17559   "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
17560   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
17561   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
17562   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
17563   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
17564   "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
17565   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
17566   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
17567   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
17568   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
17569   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
17570   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
17571   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
17572   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
17573   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
17574   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
17575   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
17576   "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
17577   "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
17578   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
17579   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
17580   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
17581   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
17582   "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
17583   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
17584   "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
17585   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
17586   "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
17587   "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
17588   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
17589   "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
17590   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
17591   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
17592   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
17593   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
17594   "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
17595   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
17596   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
17597   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
17598   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
17599   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
17600   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
17601   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
17602   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
17603   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
17604   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
17605   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
17606   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
17607   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
17608   "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
17609   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
17610   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
17611   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
17612   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
17613   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
17614   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
17615   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
17616   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
17617   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
17618   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
17619   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
17620   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
17621   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
17622   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
17623   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
17624   "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
17625   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
17626   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
17627   "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
17628   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
17629   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
17630   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
17631   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
17632   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
17633   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
17634   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
17635   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
17636   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
17637   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
17638   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
17639   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
17640   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
17641   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
17642   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
17643   "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
17644   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
17645   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
17646   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
17647   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
17648   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
17649   "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
17650   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
17651   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
17652   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
17653   "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
17654   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
17655   "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
17656   "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
17657   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
17658   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
17659   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
17660   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
17661   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
17662   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17663   "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
17664   "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
17665   "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
17666   "libs/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/uuid/Makefile" ;;
17667   "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
17668   "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
17669   "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
17670   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
17671   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
17672   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
17673   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
17674   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
17675   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
17676   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
17677   "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
17678   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
17679   "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
17680   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
17681   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
17682   "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
17683   "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
17684   "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
17685   "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
17686   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
17687   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
17688   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
17689   "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
17690   "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
17691   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
17692   "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
17693   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
17694   "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
17695   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
17696   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
17697   "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
17698   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
17699   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
17700   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
17701   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17702   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
17703   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
17704   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
17705   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
17706   "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
17707   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
17708   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
17709   "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
17710   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
17711   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
17712   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
17713   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
17714   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
17715   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
17716   "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
17717   "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
17718   "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
17719   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
17720   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
17721   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
17722   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
17723   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
17724   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
17725   "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
17726   "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
17727   "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
17728   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
17729   "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
17730   "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
17731   "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
17732   "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
17733   "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
17734   "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
17735   "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
17736   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17737   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17738 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17739    { (exit 1); exit 1; }; };;
17740   esac
17741 done
17742
17743 # If the user did not use the arguments to specify the items to instantiate,
17744 # then the envvar interface is used.  Set only those that are not.
17745 # We use the long form for the default assignment because of an extremely
17746 # bizarre bug on SunOS 4.1.3.
17747 if $ac_need_defaults; then
17748   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17749   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17750   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17751 fi
17752
17753 # Have a temporary directory for convenience.  Make it in the build tree
17754 # simply because there is no reason to put it here, and in addition,
17755 # creating and moving files from /tmp can sometimes cause problems.
17756 # Create a temporary directory, and hook for its removal unless debugging.
17757 $debug ||
17758 {
17759   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17760   trap '{ (exit 1); exit 1; }' 1 2 13 15
17761 }
17762
17763 # Create a (secure) tmp directory for tmp files.
17764
17765 {
17766   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17767   test -n "$tmp" && test -d "$tmp"
17768 }  ||
17769 {
17770   tmp=./confstat$$-$RANDOM
17771   (umask 077 && mkdir $tmp)
17772 } ||
17773 {
17774    echo "$me: cannot create a temporary directory in ." >&2
17775    { (exit 1); exit 1; }
17776 }
17777
17778 _ACEOF
17779
17780 cat >>$CONFIG_STATUS <<_ACEOF
17781
17782 #
17783 # CONFIG_FILES section.
17784 #
17785
17786 # No need to generate the scripts if there are no CONFIG_FILES.
17787 # This happens for instance when ./config.status config.h
17788 if test -n "\$CONFIG_FILES"; then
17789   # Protect against being on the right side of a sed subst in config.status.
17790   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17791    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17792 s,@SHELL@,$SHELL,;t t
17793 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17794 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17795 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17796 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17797 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17798 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17799 s,@exec_prefix@,$exec_prefix,;t t
17800 s,@prefix@,$prefix,;t t
17801 s,@program_transform_name@,$program_transform_name,;t t
17802 s,@bindir@,$bindir,;t t
17803 s,@sbindir@,$sbindir,;t t
17804 s,@libexecdir@,$libexecdir,;t t
17805 s,@datadir@,$datadir,;t t
17806 s,@sysconfdir@,$sysconfdir,;t t
17807 s,@sharedstatedir@,$sharedstatedir,;t t
17808 s,@localstatedir@,$localstatedir,;t t
17809 s,@libdir@,$libdir,;t t
17810 s,@includedir@,$includedir,;t t
17811 s,@oldincludedir@,$oldincludedir,;t t
17812 s,@infodir@,$infodir,;t t
17813 s,@mandir@,$mandir,;t t
17814 s,@build_alias@,$build_alias,;t t
17815 s,@host_alias@,$host_alias,;t t
17816 s,@target_alias@,$target_alias,;t t
17817 s,@DEFS@,$DEFS,;t t
17818 s,@ECHO_C@,$ECHO_C,;t t
17819 s,@ECHO_N@,$ECHO_N,;t t
17820 s,@ECHO_T@,$ECHO_T,;t t
17821 s,@LIBS@,$LIBS,;t t
17822 s,@WIN16_FILES@,$WIN16_FILES,;t t
17823 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
17824 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
17825 s,@build@,$build,;t t
17826 s,@build_cpu@,$build_cpu,;t t
17827 s,@build_vendor@,$build_vendor,;t t
17828 s,@build_os@,$build_os,;t t
17829 s,@host@,$host,;t t
17830 s,@host_cpu@,$host_cpu,;t t
17831 s,@host_vendor@,$host_vendor,;t t
17832 s,@host_os@,$host_os,;t t
17833 s,@SET_MAKE@,$SET_MAKE,;t t
17834 s,@CC@,$CC,;t t
17835 s,@CFLAGS@,$CFLAGS,;t t
17836 s,@LDFLAGS@,$LDFLAGS,;t t
17837 s,@CPPFLAGS@,$CPPFLAGS,;t t
17838 s,@ac_ct_CC@,$ac_ct_CC,;t t
17839 s,@EXEEXT@,$EXEEXT,;t t
17840 s,@OBJEXT@,$OBJEXT,;t t
17841 s,@CPP@,$CPP,;t t
17842 s,@TOOLSDIR@,$TOOLSDIR,;t t
17843 s,@X_CFLAGS@,$X_CFLAGS,;t t
17844 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17845 s,@X_LIBS@,$X_LIBS,;t t
17846 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17847 s,@YACC@,$YACC,;t t
17848 s,@LEX@,$LEX,;t t
17849 s,@LEXLIB@,$LEXLIB,;t t
17850 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
17851 s,@XYACC@,$XYACC,;t t
17852 s,@XLEX@,$XLEX,;t t
17853 s,@AS@,$AS,;t t
17854 s,@ac_ct_AS@,$ac_ct_AS,;t t
17855 s,@LD@,$LD,;t t
17856 s,@ac_ct_LD@,$ac_ct_LD,;t t
17857 s,@AR@,$AR,;t t
17858 s,@ac_ct_AR@,$ac_ct_AR,;t t
17859 s,@RANLIB@,$RANLIB,;t t
17860 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17861 s,@STRIP@,$STRIP,;t t
17862 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17863 s,@WINDRES@,$WINDRES,;t t
17864 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
17865 s,@LN_S@,$LN_S,;t t
17866 s,@LN@,$LN,;t t
17867 s,@LDCONFIG@,$LDCONFIG,;t t
17868 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17869 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17870 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17871 s,@LINT@,$LINT,;t t
17872 s,@LINTFLAGS@,$LINTFLAGS,;t t
17873 s,@DB2HTML@,$DB2HTML,;t t
17874 s,@DB2PDF@,$DB2PDF,;t t
17875 s,@DB2PS@,$DB2PS,;t t
17876 s,@DB2TXT@,$DB2TXT,;t t
17877 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
17878 s,@JPEGLIB@,$JPEGLIB,;t t
17879 s,@EGREP@,$EGREP,;t t
17880 s,@GIFLIB@,$GIFLIB,;t t
17881 s,@XLIB@,$XLIB,;t t
17882 s,@XFILES@,$XFILES,;t t
17883 s,@OPENGLFILES@,$OPENGLFILES,;t t
17884 s,@GLU32FILES@,$GLU32FILES,;t t
17885 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
17886 s,@NASLIBS@,$NASLIBS,;t t
17887 s,@CURSESLIBS@,$CURSESLIBS,;t t
17888 s,@sane_devel@,$sane_devel,;t t
17889 s,@SANELIBS@,$SANELIBS,;t t
17890 s,@SANEINCL@,$SANEINCL,;t t
17891 s,@ICULIBS@,$ICULIBS,;t t
17892 s,@ft_devel@,$ft_devel,;t t
17893 s,@ft_devel2@,$ft_devel2,;t t
17894 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
17895 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
17896 s,@ARTSLIBS@,$ARTSLIBS,;t t
17897 s,@ARTSINCL@,$ARTSINCL,;t t
17898 s,@ALSALIBS@,$ALSALIBS,;t t
17899 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
17900 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
17901 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
17902 s,@DLLEXT@,$DLLEXT,;t t
17903 s,@DLLFLAGS@,$DLLFLAGS,;t t
17904 s,@DLLIBS@,$DLLIBS,;t t
17905 s,@LDSHARED@,$LDSHARED,;t t
17906 s,@LDDLL@,$LDDLL,;t t
17907 s,@LIBEXT@,$LIBEXT,;t t
17908 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
17909 s,@DLLTOOL@,$DLLTOOL,;t t
17910 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
17911 s,@DLLWRAP@,$DLLWRAP,;t t
17912 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
17913 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
17914 s,@CROSSTEST@,$CROSSTEST,;t t
17915 s,@CROSSCC@,$CROSSCC,;t t
17916 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
17917 s,@LDPATH@,$LDPATH,;t t
17918 s,@CRTLIBS@,$CRTLIBS,;t t
17919 s,@LDD@,$LDD,;t t
17920 s,@ALLOCA@,$ALLOCA,;t t
17921 s,@LIBOBJS@,$LIBOBJS,;t t
17922 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17923 /@MAKE_RULES@/r $MAKE_RULES
17924 s,@MAKE_RULES@,,;t t
17925 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
17926 s,@MAKE_DLL_RULES@,,;t t
17927 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
17928 s,@MAKE_TEST_RULES@,,;t t
17929 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
17930 s,@MAKE_LIB_RULES@,,;t t
17931 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
17932 s,@MAKE_PROG_RULES@,,;t t
17933 CEOF
17934
17935 _ACEOF
17936
17937   cat >>$CONFIG_STATUS <<\_ACEOF
17938   # Split the substitutions into bite-sized pieces for seds with
17939   # small command number limits, like on Digital OSF/1 and HP-UX.
17940   ac_max_sed_lines=48
17941   ac_sed_frag=1 # Number of current file.
17942   ac_beg=1 # First line for current file.
17943   ac_end=$ac_max_sed_lines # Line after last line for current file.
17944   ac_more_lines=:
17945   ac_sed_cmds=
17946   while $ac_more_lines; do
17947     if test $ac_beg -gt 1; then
17948       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17949     else
17950       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17951     fi
17952     if test ! -s $tmp/subs.frag; then
17953       ac_more_lines=false
17954     else
17955       # The purpose of the label and of the branching condition is to
17956       # speed up the sed processing (if there are no `@' at all, there
17957       # is no need to browse any of the substitutions).
17958       # These are the two extra sed commands mentioned above.
17959       (echo ':t
17960   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17961       if test -z "$ac_sed_cmds"; then
17962         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17963       else
17964         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17965       fi
17966       ac_sed_frag=`expr $ac_sed_frag + 1`
17967       ac_beg=$ac_end
17968       ac_end=`expr $ac_end + $ac_max_sed_lines`
17969     fi
17970   done
17971   if test -z "$ac_sed_cmds"; then
17972     ac_sed_cmds=cat
17973   fi
17974 fi # test -n "$CONFIG_FILES"
17975
17976 _ACEOF
17977 cat >>$CONFIG_STATUS <<\_ACEOF
17978 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17979   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17980   case $ac_file in
17981   - | *:- | *:-:* ) # input from stdin
17982         cat >$tmp/stdin
17983         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17984         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17985   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17986         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17987   * )   ac_file_in=$ac_file.in ;;
17988   esac
17989
17990   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17991   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17992 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17993          X"$ac_file" : 'X\(//\)[^/]' \| \
17994          X"$ac_file" : 'X\(//\)$' \| \
17995          X"$ac_file" : 'X\(/\)' \| \
17996          .     : '\(.\)' 2>/dev/null ||
17997 echo X"$ac_file" |
17998     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17999           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18000           /^X\(\/\/\)$/{ s//\1/; q; }
18001           /^X\(\/\).*/{ s//\1/; q; }
18002           s/.*/./; q'`
18003   { if $as_mkdir_p; then
18004     mkdir -p "$ac_dir"
18005   else
18006     as_dir="$ac_dir"
18007     as_dirs=
18008     while test ! -d "$as_dir"; do
18009       as_dirs="$as_dir $as_dirs"
18010       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18011 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18012          X"$as_dir" : 'X\(//\)[^/]' \| \
18013          X"$as_dir" : 'X\(//\)$' \| \
18014          X"$as_dir" : 'X\(/\)' \| \
18015          .     : '\(.\)' 2>/dev/null ||
18016 echo X"$as_dir" |
18017     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18018           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18019           /^X\(\/\/\)$/{ s//\1/; q; }
18020           /^X\(\/\).*/{ s//\1/; q; }
18021           s/.*/./; q'`
18022     done
18023     test ! -n "$as_dirs" || mkdir $as_dirs
18024   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18025 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18026    { (exit 1); exit 1; }; }; }
18027
18028   ac_builddir=.
18029
18030 if test "$ac_dir" != .; then
18031   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18032   # A "../" for each directory in $ac_dir_suffix.
18033   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18034 else
18035   ac_dir_suffix= ac_top_builddir=
18036 fi
18037
18038 case $srcdir in
18039   .)  # No --srcdir option.  We are building in place.
18040     ac_srcdir=.
18041     if test -z "$ac_top_builddir"; then
18042        ac_top_srcdir=.
18043     else
18044        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18045     fi ;;
18046   [\\/]* | ?:[\\/]* )  # Absolute path.
18047     ac_srcdir=$srcdir$ac_dir_suffix;
18048     ac_top_srcdir=$srcdir ;;
18049   *) # Relative path.
18050     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18051     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18052 esac
18053 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18054 # absolute.
18055 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18056 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18057 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18058 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18059
18060
18061   case $INSTALL in
18062   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18063   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18064   esac
18065
18066   if test x"$ac_file" != x-; then
18067     { echo "$as_me:$LINENO: creating $ac_file" >&5
18068 echo "$as_me: creating $ac_file" >&6;}
18069     rm -f "$ac_file"
18070   fi
18071   # Let's still pretend it is `configure' which instantiates (i.e., don't
18072   # use $as_me), people would be surprised to read:
18073   #    /* config.h.  Generated by config.status.  */
18074   if test x"$ac_file" = x-; then
18075     configure_input=
18076   else
18077     configure_input="$ac_file.  "
18078   fi
18079   configure_input=$configure_input"Generated from `echo $ac_file_in |
18080                                      sed 's,.*/,,'` by configure."
18081
18082   # First look for the input files in the build tree, otherwise in the
18083   # src tree.
18084   ac_file_inputs=`IFS=:
18085     for f in $ac_file_in; do
18086       case $f in
18087       -) echo $tmp/stdin ;;
18088       [\\/$]*)
18089          # Absolute (can't be DOS-style, as IFS=:)
18090          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18091 echo "$as_me: error: cannot find input file: $f" >&2;}
18092    { (exit 1); exit 1; }; }
18093          echo $f;;
18094       *) # Relative
18095          if test -f "$f"; then
18096            # Build tree
18097            echo $f
18098          elif test -f "$srcdir/$f"; then
18099            # Source tree
18100            echo $srcdir/$f
18101          else
18102            # /dev/null tree
18103            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18104 echo "$as_me: error: cannot find input file: $f" >&2;}
18105    { (exit 1); exit 1; }; }
18106          fi;;
18107       esac
18108     done` || { (exit 1); exit 1; }
18109 _ACEOF
18110 cat >>$CONFIG_STATUS <<_ACEOF
18111   sed "$ac_vpsub
18112 $extrasub
18113 _ACEOF
18114 cat >>$CONFIG_STATUS <<\_ACEOF
18115 :t
18116 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18117 s,@configure_input@,$configure_input,;t t
18118 s,@srcdir@,$ac_srcdir,;t t
18119 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18120 s,@top_srcdir@,$ac_top_srcdir,;t t
18121 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18122 s,@builddir@,$ac_builddir,;t t
18123 s,@abs_builddir@,$ac_abs_builddir,;t t
18124 s,@top_builddir@,$ac_top_builddir,;t t
18125 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18126 s,@INSTALL@,$ac_INSTALL,;t t
18127 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18128   rm -f $tmp/stdin
18129   if test x"$ac_file" != x-; then
18130     mv $tmp/out $ac_file
18131   else
18132     cat $tmp/out
18133     rm -f $tmp/out
18134   fi
18135
18136 done
18137 _ACEOF
18138 cat >>$CONFIG_STATUS <<\_ACEOF
18139
18140 #
18141 # CONFIG_HEADER section.
18142 #
18143
18144 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18145 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18146 #
18147 # ac_d sets the value in "#define NAME VALUE" lines.
18148 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18149 ac_dB='[        ].*$,\1#\2'
18150 ac_dC=' '
18151 ac_dD=',;t'
18152 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18153 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18154 ac_uB='$,\1#\2define\3'
18155 ac_uC=' '
18156 ac_uD=',;t'
18157
18158 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18159   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18160   case $ac_file in
18161   - | *:- | *:-:* ) # input from stdin
18162         cat >$tmp/stdin
18163         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18164         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18165   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18166         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18167   * )   ac_file_in=$ac_file.in ;;
18168   esac
18169
18170   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18171 echo "$as_me: creating $ac_file" >&6;}
18172
18173   # First look for the input files in the build tree, otherwise in the
18174   # src tree.
18175   ac_file_inputs=`IFS=:
18176     for f in $ac_file_in; do
18177       case $f in
18178       -) echo $tmp/stdin ;;
18179       [\\/$]*)
18180          # Absolute (can't be DOS-style, as IFS=:)
18181          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18182 echo "$as_me: error: cannot find input file: $f" >&2;}
18183    { (exit 1); exit 1; }; }
18184          echo $f;;
18185       *) # Relative
18186          if test -f "$f"; then
18187            # Build tree
18188            echo $f
18189          elif test -f "$srcdir/$f"; then
18190            # Source tree
18191            echo $srcdir/$f
18192          else
18193            # /dev/null tree
18194            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18195 echo "$as_me: error: cannot find input file: $f" >&2;}
18196    { (exit 1); exit 1; }; }
18197          fi;;
18198       esac
18199     done` || { (exit 1); exit 1; }
18200   # Remove the trailing spaces.
18201   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18202
18203 _ACEOF
18204
18205 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18206 # `conftest.undefs', that substitutes the proper values into
18207 # config.h.in to produce config.h.  The first handles `#define'
18208 # templates, and the second `#undef' templates.
18209 # And first: Protect against being on the right side of a sed subst in
18210 # config.status.  Protect against being in an unquoted here document
18211 # in config.status.
18212 rm -f conftest.defines conftest.undefs
18213 # Using a here document instead of a string reduces the quoting nightmare.
18214 # Putting comments in sed scripts is not portable.
18215 #
18216 # `end' is used to avoid that the second main sed command (meant for
18217 # 0-ary CPP macros) applies to n-ary macro definitions.
18218 # See the Autoconf documentation for `clear'.
18219 cat >confdef2sed.sed <<\_ACEOF
18220 s/[\\&,]/\\&/g
18221 s,[\\$`],\\&,g
18222 t clear
18223 : clear
18224 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18225 t end
18226 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18227 : end
18228 _ACEOF
18229 # If some macros were called several times there might be several times
18230 # the same #defines, which is useless.  Nevertheless, we may not want to
18231 # sort them, since we want the *last* AC-DEFINE to be honored.
18232 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18233 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18234 rm -f confdef2sed.sed
18235
18236 # This sed command replaces #undef with comments.  This is necessary, for
18237 # example, in the case of _POSIX_SOURCE, which is predefined and required
18238 # on some systems where configure will not decide to define it.
18239 cat >>conftest.undefs <<\_ACEOF
18240 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18241 _ACEOF
18242
18243 # Break up conftest.defines because some shells have a limit on the size
18244 # of here documents, and old seds have small limits too (100 cmds).
18245 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18246 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18247 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18248 echo '  :' >>$CONFIG_STATUS
18249 rm -f conftest.tail
18250 while grep . conftest.defines >/dev/null
18251 do
18252   # Write a limited-size here document to $tmp/defines.sed.
18253   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18254   # Speed up: don't consider the non `#define' lines.
18255   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18256   # Work around the forget-to-reset-the-flag bug.
18257   echo 't clr' >>$CONFIG_STATUS
18258   echo ': clr' >>$CONFIG_STATUS
18259   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18260   echo 'CEOF
18261   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18262   rm -f $tmp/in
18263   mv $tmp/out $tmp/in
18264 ' >>$CONFIG_STATUS
18265   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18266   rm -f conftest.defines
18267   mv conftest.tail conftest.defines
18268 done
18269 rm -f conftest.defines
18270 echo '  fi # grep' >>$CONFIG_STATUS
18271 echo >>$CONFIG_STATUS
18272
18273 # Break up conftest.undefs because some shells have a limit on the size
18274 # of here documents, and old seds have small limits too (100 cmds).
18275 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18276 rm -f conftest.tail
18277 while grep . conftest.undefs >/dev/null
18278 do
18279   # Write a limited-size here document to $tmp/undefs.sed.
18280   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18281   # Speed up: don't consider the non `#undef'
18282   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18283   # Work around the forget-to-reset-the-flag bug.
18284   echo 't clr' >>$CONFIG_STATUS
18285   echo ': clr' >>$CONFIG_STATUS
18286   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18287   echo 'CEOF
18288   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18289   rm -f $tmp/in
18290   mv $tmp/out $tmp/in
18291 ' >>$CONFIG_STATUS
18292   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18293   rm -f conftest.undefs
18294   mv conftest.tail conftest.undefs
18295 done
18296 rm -f conftest.undefs
18297
18298 cat >>$CONFIG_STATUS <<\_ACEOF
18299   # Let's still pretend it is `configure' which instantiates (i.e., don't
18300   # use $as_me), people would be surprised to read:
18301   #    /* config.h.  Generated by config.status.  */
18302   if test x"$ac_file" = x-; then
18303     echo "/* Generated by configure.  */" >$tmp/config.h
18304   else
18305     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18306   fi
18307   cat $tmp/in >>$tmp/config.h
18308   rm -f $tmp/in
18309   if test x"$ac_file" != x-; then
18310     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18311       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18312 echo "$as_me: $ac_file is unchanged" >&6;}
18313     else
18314       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18315 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18316          X"$ac_file" : 'X\(//\)[^/]' \| \
18317          X"$ac_file" : 'X\(//\)$' \| \
18318          X"$ac_file" : 'X\(/\)' \| \
18319          .     : '\(.\)' 2>/dev/null ||
18320 echo X"$ac_file" |
18321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18322           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18323           /^X\(\/\/\)$/{ s//\1/; q; }
18324           /^X\(\/\).*/{ s//\1/; q; }
18325           s/.*/./; q'`
18326       { if $as_mkdir_p; then
18327     mkdir -p "$ac_dir"
18328   else
18329     as_dir="$ac_dir"
18330     as_dirs=
18331     while test ! -d "$as_dir"; do
18332       as_dirs="$as_dir $as_dirs"
18333       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18335          X"$as_dir" : 'X\(//\)[^/]' \| \
18336          X"$as_dir" : 'X\(//\)$' \| \
18337          X"$as_dir" : 'X\(/\)' \| \
18338          .     : '\(.\)' 2>/dev/null ||
18339 echo X"$as_dir" |
18340     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18341           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18342           /^X\(\/\/\)$/{ s//\1/; q; }
18343           /^X\(\/\).*/{ s//\1/; q; }
18344           s/.*/./; q'`
18345     done
18346     test ! -n "$as_dirs" || mkdir $as_dirs
18347   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18348 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18349    { (exit 1); exit 1; }; }; }
18350
18351       rm -f $ac_file
18352       mv $tmp/config.h $ac_file
18353     fi
18354   else
18355     cat $tmp/config.h
18356     rm -f $tmp/config.h
18357   fi
18358 done
18359 _ACEOF
18360 cat >>$CONFIG_STATUS <<\_ACEOF
18361
18362 #
18363 # CONFIG_COMMANDS section.
18364 #
18365 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18366   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18367   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18368   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18369 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18370          X"$ac_dest" : 'X\(//\)[^/]' \| \
18371          X"$ac_dest" : 'X\(//\)$' \| \
18372          X"$ac_dest" : 'X\(/\)' \| \
18373          .     : '\(.\)' 2>/dev/null ||
18374 echo X"$ac_dest" |
18375     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18376           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18377           /^X\(\/\/\)$/{ s//\1/; q; }
18378           /^X\(\/\).*/{ s//\1/; q; }
18379           s/.*/./; q'`
18380   ac_builddir=.
18381
18382 if test "$ac_dir" != .; then
18383   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18384   # A "../" for each directory in $ac_dir_suffix.
18385   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18386 else
18387   ac_dir_suffix= ac_top_builddir=
18388 fi
18389
18390 case $srcdir in
18391   .)  # No --srcdir option.  We are building in place.
18392     ac_srcdir=.
18393     if test -z "$ac_top_builddir"; then
18394        ac_top_srcdir=.
18395     else
18396        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18397     fi ;;
18398   [\\/]* | ?:[\\/]* )  # Absolute path.
18399     ac_srcdir=$srcdir$ac_dir_suffix;
18400     ac_top_srcdir=$srcdir ;;
18401   *) # Relative path.
18402     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18403     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18404 esac
18405 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18406 # absolute.
18407 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18408 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18409 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18410 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18411
18412
18413   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18414 echo "$as_me: executing $ac_dest commands" >&6;}
18415   case $ac_dest in
18416     controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
18417 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
18418     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
18419 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
18420     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
18421 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
18422     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
18423 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
18424     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
18425 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
18426     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
18427 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
18428     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
18429 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
18430     dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
18431 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
18432     dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
18433 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
18434     dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
18435 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
18436     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
18437 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
18438     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
18439 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
18440     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
18441 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
18442     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
18443 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
18444     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
18445 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
18446     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
18447 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
18448     files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
18449 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
18450     graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
18451 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
18452     graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
18453 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
18454     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
18455 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
18456     memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
18457 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
18458     misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
18459 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
18460     msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
18461 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
18462     objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
18463 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
18464     programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
18465 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
18466     programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
18467 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
18468     windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
18469 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
18470   esac
18471 done
18472 _ACEOF
18473
18474 cat >>$CONFIG_STATUS <<\_ACEOF
18475
18476 { (exit 0); exit 0; }
18477 _ACEOF
18478 chmod +x $CONFIG_STATUS
18479 ac_clean_files=$ac_clean_files_save
18480
18481
18482 # configure is writing to config.log, and then calls config.status.
18483 # config.status does its own redirection, appending to config.log.
18484 # Unfortunately, on DOS this fails, as config.log is still kept open
18485 # by configure, so config.status won't be able to write to it; its
18486 # output is simply discarded.  So we exec the FD to /dev/null,
18487 # effectively closing config.log, so it can be properly (re)opened and
18488 # appended to by config.status.  When coming back to configure, we
18489 # need to make the FD available again.
18490 if test "$no_create" != yes; then
18491   ac_cs_success=:
18492   ac_config_status_args=
18493   test "$silent" = yes &&
18494     ac_config_status_args="$ac_config_status_args --quiet"
18495   exec 5>/dev/null
18496   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18497   exec 5>>config.log
18498   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18499   # would make configure fail if this is the last instruction.
18500   $ac_cs_success || { (exit 1); exit 1; }
18501 fi
18502
18503
18504 if test "$have_x" = "no"
18505 then
18506   echo
18507   echo "*** Warning: X development files not found. Wine will be built without"
18508   echo "*** X support, which currently does not work, and would probably not be"
18509   echo "*** what you want anyway. You will need to install devel packages of"
18510   echo "*** Xlib/Xfree86 at the very least."
18511 fi
18512
18513 if test "$wine_cv_opengl_version_OK" = "no"
18514 then
18515   echo
18516   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
18517   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
18518 fi
18519
18520 if test "$wine_cv_msg_freetype" = "yes"
18521 then
18522   echo
18523   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
18524   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
18525   echo "*** freetype-devel package (or its equivalent on your distribution) to"
18526   echo "*** enable Wine to use TrueType fonts."
18527 fi
18528
18529 echo
18530 echo "Configure finished.  Do 'make depend && make' to compile Wine."
18531 echo
18532