Remove the dummy pthread functions and use -lpthread instead to
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for Wine 20030813.
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='20030813'
270 PACKAGE_STRING='Wine 20030813'
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 LIBPTHREAD 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 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 EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED 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 20030813 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 20030813:";;
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 20030813
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 20030813, 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.* *.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
1389 cat >>confdefs.h <<\_ACEOF
1390 #define HAVE_NPTL 1
1391 _ACEOF
1392
1393     LIBPTHREAD="-lpthread"
1394
1395 fi
1396
1397
1398 # Make sure we can run config.sub.
1399 $ac_config_sub sun4 >/dev/null 2>&1 ||
1400   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1401 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1402    { (exit 1); exit 1; }; }
1403
1404 echo "$as_me:$LINENO: checking build system type" >&5
1405 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1406 if test "${ac_cv_build+set}" = set; then
1407   echo $ECHO_N "(cached) $ECHO_C" >&6
1408 else
1409   ac_cv_build_alias=$build_alias
1410 test -z "$ac_cv_build_alias" &&
1411   ac_cv_build_alias=`$ac_config_guess`
1412 test -z "$ac_cv_build_alias" &&
1413   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1414 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1415    { (exit 1); exit 1; }; }
1416 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1417   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1419    { (exit 1); exit 1; }; }
1420
1421 fi
1422 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1423 echo "${ECHO_T}$ac_cv_build" >&6
1424 build=$ac_cv_build
1425 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428
1429
1430 echo "$as_me:$LINENO: checking host system type" >&5
1431 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1432 if test "${ac_cv_host+set}" = set; then
1433   echo $ECHO_N "(cached) $ECHO_C" >&6
1434 else
1435   ac_cv_host_alias=$host_alias
1436 test -z "$ac_cv_host_alias" &&
1437   ac_cv_host_alias=$ac_cv_build_alias
1438 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1439   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1440 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1441    { (exit 1); exit 1; }; }
1442
1443 fi
1444 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1445 echo "${ECHO_T}$ac_cv_host" >&6
1446 host=$ac_cv_host
1447 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450
1451
1452 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1453 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1454 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1455 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1456   echo $ECHO_N "(cached) $ECHO_C" >&6
1457 else
1458   cat >conftest.make <<\_ACEOF
1459 all:
1460         @echo 'ac_maketemp="$(MAKE)"'
1461 _ACEOF
1462 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1463 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1464 if test -n "$ac_maketemp"; then
1465   eval ac_cv_prog_make_${ac_make}_set=yes
1466 else
1467   eval ac_cv_prog_make_${ac_make}_set=no
1468 fi
1469 rm -f conftest.make
1470 fi
1471 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1472   echo "$as_me:$LINENO: result: yes" >&5
1473 echo "${ECHO_T}yes" >&6
1474   SET_MAKE=
1475 else
1476   echo "$as_me:$LINENO: result: no" >&5
1477 echo "${ECHO_T}no" >&6
1478   SET_MAKE="MAKE=${MAKE-make}"
1479 fi
1480
1481 ac_ext=c
1482 ac_cpp='$CPP $CPPFLAGS'
1483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486 if test -n "$ac_tool_prefix"; then
1487   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1488 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1489 echo "$as_me:$LINENO: checking for $ac_word" >&5
1490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1491 if test "${ac_cv_prog_CC+set}" = set; then
1492   echo $ECHO_N "(cached) $ECHO_C" >&6
1493 else
1494   if test -n "$CC"; then
1495   ac_cv_prog_CC="$CC" # Let the user override the test.
1496 else
1497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498 for as_dir in $PATH
1499 do
1500   IFS=$as_save_IFS
1501   test -z "$as_dir" && as_dir=.
1502   for ac_exec_ext in '' $ac_executable_extensions; do
1503   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1504     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1506     break 2
1507   fi
1508 done
1509 done
1510
1511 fi
1512 fi
1513 CC=$ac_cv_prog_CC
1514 if test -n "$CC"; then
1515   echo "$as_me:$LINENO: result: $CC" >&5
1516 echo "${ECHO_T}$CC" >&6
1517 else
1518   echo "$as_me:$LINENO: result: no" >&5
1519 echo "${ECHO_T}no" >&6
1520 fi
1521
1522 fi
1523 if test -z "$ac_cv_prog_CC"; then
1524   ac_ct_CC=$CC
1525   # Extract the first word of "gcc", so it can be a program name with args.
1526 set dummy gcc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1530   echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532   if test -n "$ac_ct_CC"; then
1533   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1534 else
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 for as_dir in $PATH
1537 do
1538   IFS=$as_save_IFS
1539   test -z "$as_dir" && as_dir=.
1540   for ac_exec_ext in '' $ac_executable_extensions; do
1541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542     ac_cv_prog_ac_ct_CC="gcc"
1543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544     break 2
1545   fi
1546 done
1547 done
1548
1549 fi
1550 fi
1551 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1552 if test -n "$ac_ct_CC"; then
1553   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1554 echo "${ECHO_T}$ac_ct_CC" >&6
1555 else
1556   echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1558 fi
1559
1560   CC=$ac_ct_CC
1561 else
1562   CC="$ac_cv_prog_CC"
1563 fi
1564
1565 if test -z "$CC"; then
1566   if test -n "$ac_tool_prefix"; then
1567   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1568 set dummy ${ac_tool_prefix}cc; ac_word=$2
1569 echo "$as_me:$LINENO: checking for $ac_word" >&5
1570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571 if test "${ac_cv_prog_CC+set}" = set; then
1572   echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574   if test -n "$CC"; then
1575   ac_cv_prog_CC="$CC" # Let the user override the test.
1576 else
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 for as_dir in $PATH
1579 do
1580   IFS=$as_save_IFS
1581   test -z "$as_dir" && as_dir=.
1582   for ac_exec_ext in '' $ac_executable_extensions; do
1583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584     ac_cv_prog_CC="${ac_tool_prefix}cc"
1585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586     break 2
1587   fi
1588 done
1589 done
1590
1591 fi
1592 fi
1593 CC=$ac_cv_prog_CC
1594 if test -n "$CC"; then
1595   echo "$as_me:$LINENO: result: $CC" >&5
1596 echo "${ECHO_T}$CC" >&6
1597 else
1598   echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1600 fi
1601
1602 fi
1603 if test -z "$ac_cv_prog_CC"; then
1604   ac_ct_CC=$CC
1605   # Extract the first word of "cc", so it can be a program name with args.
1606 set dummy cc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1610   echo $ECHO_N "(cached) $ECHO_C" >&6
1611 else
1612   if test -n "$ac_ct_CC"; then
1613   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1614 else
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1617 do
1618   IFS=$as_save_IFS
1619   test -z "$as_dir" && as_dir=.
1620   for ac_exec_ext in '' $ac_executable_extensions; do
1621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622     ac_cv_prog_ac_ct_CC="cc"
1623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624     break 2
1625   fi
1626 done
1627 done
1628
1629 fi
1630 fi
1631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1632 if test -n "$ac_ct_CC"; then
1633   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1634 echo "${ECHO_T}$ac_ct_CC" >&6
1635 else
1636   echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1638 fi
1639
1640   CC=$ac_ct_CC
1641 else
1642   CC="$ac_cv_prog_CC"
1643 fi
1644
1645 fi
1646 if test -z "$CC"; then
1647   # Extract the first word of "cc", so it can be a program name with args.
1648 set dummy cc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_CC+set}" = set; then
1652   echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654   if test -n "$CC"; then
1655   ac_cv_prog_CC="$CC" # Let the user override the test.
1656 else
1657   ac_prog_rejected=no
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1660 do
1661   IFS=$as_save_IFS
1662   test -z "$as_dir" && as_dir=.
1663   for ac_exec_ext in '' $ac_executable_extensions; do
1664   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1666        ac_prog_rejected=yes
1667        continue
1668      fi
1669     ac_cv_prog_CC="cc"
1670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671     break 2
1672   fi
1673 done
1674 done
1675
1676 if test $ac_prog_rejected = yes; then
1677   # We found a bogon in the path, so make sure we never use it.
1678   set dummy $ac_cv_prog_CC
1679   shift
1680   if test $# != 0; then
1681     # We chose a different compiler from the bogus one.
1682     # However, it has the same basename, so the bogon will be chosen
1683     # first if we set CC to just the basename; use the full file name.
1684     shift
1685     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1686   fi
1687 fi
1688 fi
1689 fi
1690 CC=$ac_cv_prog_CC
1691 if test -n "$CC"; then
1692   echo "$as_me:$LINENO: result: $CC" >&5
1693 echo "${ECHO_T}$CC" >&6
1694 else
1695   echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1697 fi
1698
1699 fi
1700 if test -z "$CC"; then
1701   if test -n "$ac_tool_prefix"; then
1702   for ac_prog in cl
1703   do
1704     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1705 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1706 echo "$as_me:$LINENO: checking for $ac_word" >&5
1707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708 if test "${ac_cv_prog_CC+set}" = set; then
1709   echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711   if test -n "$CC"; then
1712   ac_cv_prog_CC="$CC" # Let the user override the test.
1713 else
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 for as_dir in $PATH
1716 do
1717   IFS=$as_save_IFS
1718   test -z "$as_dir" && as_dir=.
1719   for ac_exec_ext in '' $ac_executable_extensions; do
1720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723     break 2
1724   fi
1725 done
1726 done
1727
1728 fi
1729 fi
1730 CC=$ac_cv_prog_CC
1731 if test -n "$CC"; then
1732   echo "$as_me:$LINENO: result: $CC" >&5
1733 echo "${ECHO_T}$CC" >&6
1734 else
1735   echo "$as_me:$LINENO: result: no" >&5
1736 echo "${ECHO_T}no" >&6
1737 fi
1738
1739     test -n "$CC" && break
1740   done
1741 fi
1742 if test -z "$CC"; then
1743   ac_ct_CC=$CC
1744   for ac_prog in cl
1745 do
1746   # Extract the first word of "$ac_prog", so it can be a program name with args.
1747 set dummy $ac_prog; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1751   echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753   if test -n "$ac_ct_CC"; then
1754   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1758 do
1759   IFS=$as_save_IFS
1760   test -z "$as_dir" && as_dir=.
1761   for ac_exec_ext in '' $ac_executable_extensions; do
1762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763     ac_cv_prog_ac_ct_CC="$ac_prog"
1764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765     break 2
1766   fi
1767 done
1768 done
1769
1770 fi
1771 fi
1772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1773 if test -n "$ac_ct_CC"; then
1774   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1775 echo "${ECHO_T}$ac_ct_CC" >&6
1776 else
1777   echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1779 fi
1780
1781   test -n "$ac_ct_CC" && break
1782 done
1783
1784   CC=$ac_ct_CC
1785 fi
1786
1787 fi
1788
1789
1790 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1791 See \`config.log' for more details." >&5
1792 echo "$as_me: error: no acceptable C compiler found in \$PATH
1793 See \`config.log' for more details." >&2;}
1794    { (exit 1); exit 1; }; }
1795
1796 # Provide some information about the compiler.
1797 echo "$as_me:$LINENO:" \
1798      "checking for C compiler version" >&5
1799 ac_compiler=`set X $ac_compile; echo $2`
1800 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1801   (eval $ac_compiler --version </dev/null >&5) 2>&5
1802   ac_status=$?
1803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804   (exit $ac_status); }
1805 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1806   (eval $ac_compiler -v </dev/null >&5) 2>&5
1807   ac_status=$?
1808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1809   (exit $ac_status); }
1810 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1811   (eval $ac_compiler -V </dev/null >&5) 2>&5
1812   ac_status=$?
1813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814   (exit $ac_status); }
1815
1816 cat >conftest.$ac_ext <<_ACEOF
1817 #line $LINENO "configure"
1818 /* confdefs.h.  */
1819 _ACEOF
1820 cat confdefs.h >>conftest.$ac_ext
1821 cat >>conftest.$ac_ext <<_ACEOF
1822 /* end confdefs.h.  */
1823
1824 int
1825 main ()
1826 {
1827
1828   ;
1829   return 0;
1830 }
1831 _ACEOF
1832 ac_clean_files_save=$ac_clean_files
1833 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1834 # Try to create an executable without -o first, disregard a.out.
1835 # It will help us diagnose broken compilers, and finding out an intuition
1836 # of exeext.
1837 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1838 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1839 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1840 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1841   (eval $ac_link_default) 2>&5
1842   ac_status=$?
1843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844   (exit $ac_status); }; then
1845   # Find the output, starting from the most likely.  This scheme is
1846 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1847 # resort.
1848
1849 # Be careful to initialize this variable, since it used to be cached.
1850 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1851 ac_cv_exeext=
1852 # b.out is created by i960 compilers.
1853 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1854 do
1855   test -f "$ac_file" || continue
1856   case $ac_file in
1857     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1858         ;;
1859     conftest.$ac_ext )
1860         # This is the source file.
1861         ;;
1862     [ab].out )
1863         # We found the default executable, but exeext='' is most
1864         # certainly right.
1865         break;;
1866     *.* )
1867         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1868         # FIXME: I believe we export ac_cv_exeext for Libtool,
1869         # but it would be cool to find out if it's true.  Does anybody
1870         # maintain Libtool? --akim.
1871         export ac_cv_exeext
1872         break;;
1873     * )
1874         break;;
1875   esac
1876 done
1877 else
1878   echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1882 See \`config.log' for more details." >&5
1883 echo "$as_me: error: C compiler cannot create executables
1884 See \`config.log' for more details." >&2;}
1885    { (exit 77); exit 77; }; }
1886 fi
1887
1888 ac_exeext=$ac_cv_exeext
1889 echo "$as_me:$LINENO: result: $ac_file" >&5
1890 echo "${ECHO_T}$ac_file" >&6
1891
1892 # Check the compiler produces executables we can run.  If not, either
1893 # the compiler is broken, or we cross compile.
1894 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1895 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1896 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1897 # If not cross compiling, check that we can run a simple program.
1898 if test "$cross_compiling" != yes; then
1899   if { ac_try='./$ac_file'
1900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1901   (eval $ac_try) 2>&5
1902   ac_status=$?
1903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904   (exit $ac_status); }; }; then
1905     cross_compiling=no
1906   else
1907     if test "$cross_compiling" = maybe; then
1908         cross_compiling=yes
1909     else
1910         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1911 If you meant to cross compile, use \`--host'.
1912 See \`config.log' for more details." >&5
1913 echo "$as_me: error: cannot run C compiled programs.
1914 If you meant to cross compile, use \`--host'.
1915 See \`config.log' for more details." >&2;}
1916    { (exit 1); exit 1; }; }
1917     fi
1918   fi
1919 fi
1920 echo "$as_me:$LINENO: result: yes" >&5
1921 echo "${ECHO_T}yes" >&6
1922
1923 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1924 ac_clean_files=$ac_clean_files_save
1925 # Check the compiler produces executables we can run.  If not, either
1926 # the compiler is broken, or we cross compile.
1927 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1928 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1929 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1930 echo "${ECHO_T}$cross_compiling" >&6
1931
1932 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1933 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1935   (eval $ac_link) 2>&5
1936   ac_status=$?
1937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938   (exit $ac_status); }; then
1939   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1940 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1941 # work properly (i.e., refer to `conftest.exe'), while it won't with
1942 # `rm'.
1943 for ac_file in conftest.exe conftest conftest.*; do
1944   test -f "$ac_file" || continue
1945   case $ac_file in
1946     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1947     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1948           export ac_cv_exeext
1949           break;;
1950     * ) break;;
1951   esac
1952 done
1953 else
1954   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1955 See \`config.log' for more details." >&5
1956 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1957 See \`config.log' for more details." >&2;}
1958    { (exit 1); exit 1; }; }
1959 fi
1960
1961 rm -f conftest$ac_cv_exeext
1962 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1963 echo "${ECHO_T}$ac_cv_exeext" >&6
1964
1965 rm -f conftest.$ac_ext
1966 EXEEXT=$ac_cv_exeext
1967 ac_exeext=$EXEEXT
1968 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1969 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1970 if test "${ac_cv_objext+set}" = set; then
1971   echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973   cat >conftest.$ac_ext <<_ACEOF
1974 #line $LINENO "configure"
1975 /* confdefs.h.  */
1976 _ACEOF
1977 cat confdefs.h >>conftest.$ac_ext
1978 cat >>conftest.$ac_ext <<_ACEOF
1979 /* end confdefs.h.  */
1980
1981 int
1982 main ()
1983 {
1984
1985   ;
1986   return 0;
1987 }
1988 _ACEOF
1989 rm -f conftest.o conftest.obj
1990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991   (eval $ac_compile) 2>&5
1992   ac_status=$?
1993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994   (exit $ac_status); }; then
1995   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1996   case $ac_file in
1997     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1998     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1999        break;;
2000   esac
2001 done
2002 else
2003   echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2005
2006 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2007 See \`config.log' for more details." >&5
2008 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2009 See \`config.log' for more details." >&2;}
2010    { (exit 1); exit 1; }; }
2011 fi
2012
2013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2014 fi
2015 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2016 echo "${ECHO_T}$ac_cv_objext" >&6
2017 OBJEXT=$ac_cv_objext
2018 ac_objext=$OBJEXT
2019 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2020 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2021 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2022   echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024   cat >conftest.$ac_ext <<_ACEOF
2025 #line $LINENO "configure"
2026 /* confdefs.h.  */
2027 _ACEOF
2028 cat confdefs.h >>conftest.$ac_ext
2029 cat >>conftest.$ac_ext <<_ACEOF
2030 /* end confdefs.h.  */
2031
2032 int
2033 main ()
2034 {
2035 #ifndef __GNUC__
2036        choke me
2037 #endif
2038
2039   ;
2040   return 0;
2041 }
2042 _ACEOF
2043 rm -f conftest.$ac_objext
2044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2045   (eval $ac_compile) 2>&5
2046   ac_status=$?
2047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048   (exit $ac_status); } &&
2049          { ac_try='test -s conftest.$ac_objext'
2050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2051   (eval $ac_try) 2>&5
2052   ac_status=$?
2053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054   (exit $ac_status); }; }; then
2055   ac_compiler_gnu=yes
2056 else
2057   echo "$as_me: failed program was:" >&5
2058 sed 's/^/| /' conftest.$ac_ext >&5
2059
2060 ac_compiler_gnu=no
2061 fi
2062 rm -f conftest.$ac_objext conftest.$ac_ext
2063 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2064
2065 fi
2066 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2067 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2068 GCC=`test $ac_compiler_gnu = yes && echo yes`
2069 ac_test_CFLAGS=${CFLAGS+set}
2070 ac_save_CFLAGS=$CFLAGS
2071 CFLAGS="-g"
2072 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2073 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2074 if test "${ac_cv_prog_cc_g+set}" = set; then
2075   echo $ECHO_N "(cached) $ECHO_C" >&6
2076 else
2077   cat >conftest.$ac_ext <<_ACEOF
2078 #line $LINENO "configure"
2079 /* confdefs.h.  */
2080 _ACEOF
2081 cat confdefs.h >>conftest.$ac_ext
2082 cat >>conftest.$ac_ext <<_ACEOF
2083 /* end confdefs.h.  */
2084
2085 int
2086 main ()
2087 {
2088
2089   ;
2090   return 0;
2091 }
2092 _ACEOF
2093 rm -f conftest.$ac_objext
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095   (eval $ac_compile) 2>&5
2096   ac_status=$?
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); } &&
2099          { ac_try='test -s conftest.$ac_objext'
2100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101   (eval $ac_try) 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); }; }; then
2105   ac_cv_prog_cc_g=yes
2106 else
2107   echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2109
2110 ac_cv_prog_cc_g=no
2111 fi
2112 rm -f conftest.$ac_objext conftest.$ac_ext
2113 fi
2114 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2115 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2116 if test "$ac_test_CFLAGS" = set; then
2117   CFLAGS=$ac_save_CFLAGS
2118 elif test $ac_cv_prog_cc_g = yes; then
2119   if test "$GCC" = yes; then
2120     CFLAGS="-g -O2"
2121   else
2122     CFLAGS="-g"
2123   fi
2124 else
2125   if test "$GCC" = yes; then
2126     CFLAGS="-O2"
2127   else
2128     CFLAGS=
2129   fi
2130 fi
2131 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2132 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2133 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2134   echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136   ac_cv_prog_cc_stdc=no
2137 ac_save_CC=$CC
2138 cat >conftest.$ac_ext <<_ACEOF
2139 #line $LINENO "configure"
2140 /* confdefs.h.  */
2141 _ACEOF
2142 cat confdefs.h >>conftest.$ac_ext
2143 cat >>conftest.$ac_ext <<_ACEOF
2144 /* end confdefs.h.  */
2145 #include <stdarg.h>
2146 #include <stdio.h>
2147 #include <sys/types.h>
2148 #include <sys/stat.h>
2149 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2150 struct buf { int x; };
2151 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2152 static char *e (p, i)
2153      char **p;
2154      int i;
2155 {
2156   return p[i];
2157 }
2158 static char *f (char * (*g) (char **, int), char **p, ...)
2159 {
2160   char *s;
2161   va_list v;
2162   va_start (v,p);
2163   s = g (p, va_arg (v,int));
2164   va_end (v);
2165   return s;
2166 }
2167 int test (int i, double x);
2168 struct s1 {int (*f) (int a);};
2169 struct s2 {int (*f) (double a);};
2170 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2171 int argc;
2172 char **argv;
2173 int
2174 main ()
2175 {
2176 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2177   ;
2178   return 0;
2179 }
2180 _ACEOF
2181 # Don't try gcc -ansi; that turns off useful extensions and
2182 # breaks some systems' header files.
2183 # AIX                   -qlanglvl=ansi
2184 # Ultrix and OSF/1      -std1
2185 # HP-UX 10.20 and later -Ae
2186 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2187 # SVR4                  -Xc -D__EXTENSIONS__
2188 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2189 do
2190   CC="$ac_save_CC $ac_arg"
2191   rm -f conftest.$ac_objext
2192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193   (eval $ac_compile) 2>&5
2194   ac_status=$?
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); } &&
2197          { ac_try='test -s conftest.$ac_objext'
2198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199   (eval $ac_try) 2>&5
2200   ac_status=$?
2201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202   (exit $ac_status); }; }; then
2203   ac_cv_prog_cc_stdc=$ac_arg
2204 break
2205 else
2206   echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2208
2209 fi
2210 rm -f conftest.$ac_objext
2211 done
2212 rm -f conftest.$ac_ext conftest.$ac_objext
2213 CC=$ac_save_CC
2214
2215 fi
2216
2217 case "x$ac_cv_prog_cc_stdc" in
2218   x|xno)
2219     echo "$as_me:$LINENO: result: none needed" >&5
2220 echo "${ECHO_T}none needed" >&6 ;;
2221   *)
2222     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2223 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2224     CC="$CC $ac_cv_prog_cc_stdc" ;;
2225 esac
2226
2227 # Some people use a C++ compiler to compile C.  Since we use `exit',
2228 # in C++ we need to declare it.  In case someone uses the same compiler
2229 # for both compiling C and C++ we need to have the C++ compiler decide
2230 # the declaration of exit, since it's the most demanding environment.
2231 cat >conftest.$ac_ext <<_ACEOF
2232 #ifndef __cplusplus
2233   choke me
2234 #endif
2235 _ACEOF
2236 rm -f conftest.$ac_objext
2237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238   (eval $ac_compile) 2>&5
2239   ac_status=$?
2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241   (exit $ac_status); } &&
2242          { ac_try='test -s conftest.$ac_objext'
2243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244   (eval $ac_try) 2>&5
2245   ac_status=$?
2246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247   (exit $ac_status); }; }; then
2248   for ac_declaration in \
2249    '' \
2250    'extern "C" void std::exit (int) throw (); using std::exit;' \
2251    'extern "C" void std::exit (int); using std::exit;' \
2252    'extern "C" void exit (int) throw ();' \
2253    'extern "C" void exit (int);' \
2254    'void exit (int);'
2255 do
2256   cat >conftest.$ac_ext <<_ACEOF
2257 #line $LINENO "configure"
2258 /* confdefs.h.  */
2259 _ACEOF
2260 cat confdefs.h >>conftest.$ac_ext
2261 cat >>conftest.$ac_ext <<_ACEOF
2262 /* end confdefs.h.  */
2263 $ac_declaration
2264 #include <stdlib.h>
2265 int
2266 main ()
2267 {
2268 exit (42);
2269   ;
2270   return 0;
2271 }
2272 _ACEOF
2273 rm -f conftest.$ac_objext
2274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2275   (eval $ac_compile) 2>&5
2276   ac_status=$?
2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); } &&
2279          { ac_try='test -s conftest.$ac_objext'
2280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281   (eval $ac_try) 2>&5
2282   ac_status=$?
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); }; }; then
2285   :
2286 else
2287   echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2289
2290 continue
2291 fi
2292 rm -f conftest.$ac_objext conftest.$ac_ext
2293   cat >conftest.$ac_ext <<_ACEOF
2294 #line $LINENO "configure"
2295 /* confdefs.h.  */
2296 _ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h.  */
2300 $ac_declaration
2301 int
2302 main ()
2303 {
2304 exit (42);
2305   ;
2306   return 0;
2307 }
2308 _ACEOF
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311   (eval $ac_compile) 2>&5
2312   ac_status=$?
2313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314   (exit $ac_status); } &&
2315          { ac_try='test -s conftest.$ac_objext'
2316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317   (eval $ac_try) 2>&5
2318   ac_status=$?
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); }; }; then
2321   break
2322 else
2323   echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325
2326 fi
2327 rm -f conftest.$ac_objext conftest.$ac_ext
2328 done
2329 rm -f conftest*
2330 if test -n "$ac_declaration"; then
2331   echo '#ifdef __cplusplus' >>confdefs.h
2332   echo $ac_declaration      >>confdefs.h
2333   echo '#endif'             >>confdefs.h
2334 fi
2335
2336 else
2337   echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2339
2340 fi
2341 rm -f conftest.$ac_objext conftest.$ac_ext
2342 ac_ext=c
2343 ac_cpp='$CPP $CPPFLAGS'
2344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347
2348 ac_ext=c
2349 ac_cpp='$CPP $CPPFLAGS'
2350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2353 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2354 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2355 # On Suns, sometimes $CPP names a directory.
2356 if test -n "$CPP" && test -d "$CPP"; then
2357   CPP=
2358 fi
2359 if test -z "$CPP"; then
2360   if test "${ac_cv_prog_CPP+set}" = set; then
2361   echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363       # Double quotes because CPP needs to be expanded
2364     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2365     do
2366       ac_preproc_ok=false
2367 for ac_c_preproc_warn_flag in '' yes
2368 do
2369   # Use a header file that comes with gcc, so configuring glibc
2370   # with a fresh cross-compiler works.
2371   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2372   # <limits.h> exists even on freestanding compilers.
2373   # On the NeXT, cc -E runs the code through the compiler's parser,
2374   # not just through cpp. "Syntax error" is here to catch this case.
2375   cat >conftest.$ac_ext <<_ACEOF
2376 #line $LINENO "configure"
2377 /* confdefs.h.  */
2378 _ACEOF
2379 cat confdefs.h >>conftest.$ac_ext
2380 cat >>conftest.$ac_ext <<_ACEOF
2381 /* end confdefs.h.  */
2382 #ifdef __STDC__
2383 # include <limits.h>
2384 #else
2385 # include <assert.h>
2386 #endif
2387                      Syntax error
2388 _ACEOF
2389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2390   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2391   ac_status=$?
2392   grep -v '^ *+' conftest.er1 >conftest.err
2393   rm -f conftest.er1
2394   cat conftest.err >&5
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); } >/dev/null; then
2397   if test -s conftest.err; then
2398     ac_cpp_err=$ac_c_preproc_warn_flag
2399   else
2400     ac_cpp_err=
2401   fi
2402 else
2403   ac_cpp_err=yes
2404 fi
2405 if test -z "$ac_cpp_err"; then
2406   :
2407 else
2408   echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2410
2411   # Broken: fails on valid input.
2412 continue
2413 fi
2414 rm -f conftest.err conftest.$ac_ext
2415
2416   # OK, works on sane cases.  Now check whether non-existent headers
2417   # can be detected and how.
2418   cat >conftest.$ac_ext <<_ACEOF
2419 #line $LINENO "configure"
2420 /* confdefs.h.  */
2421 _ACEOF
2422 cat confdefs.h >>conftest.$ac_ext
2423 cat >>conftest.$ac_ext <<_ACEOF
2424 /* end confdefs.h.  */
2425 #include <ac_nonexistent.h>
2426 _ACEOF
2427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2428   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2429   ac_status=$?
2430   grep -v '^ *+' conftest.er1 >conftest.err
2431   rm -f conftest.er1
2432   cat conftest.err >&5
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); } >/dev/null; then
2435   if test -s conftest.err; then
2436     ac_cpp_err=$ac_c_preproc_warn_flag
2437   else
2438     ac_cpp_err=
2439   fi
2440 else
2441   ac_cpp_err=yes
2442 fi
2443 if test -z "$ac_cpp_err"; then
2444   # Broken: success on invalid input.
2445 continue
2446 else
2447   echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2449
2450   # Passes both tests.
2451 ac_preproc_ok=:
2452 break
2453 fi
2454 rm -f conftest.err conftest.$ac_ext
2455
2456 done
2457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2458 rm -f conftest.err conftest.$ac_ext
2459 if $ac_preproc_ok; then
2460   break
2461 fi
2462
2463     done
2464     ac_cv_prog_CPP=$CPP
2465
2466 fi
2467   CPP=$ac_cv_prog_CPP
2468 else
2469   ac_cv_prog_CPP=$CPP
2470 fi
2471 echo "$as_me:$LINENO: result: $CPP" >&5
2472 echo "${ECHO_T}$CPP" >&6
2473 ac_preproc_ok=false
2474 for ac_c_preproc_warn_flag in '' yes
2475 do
2476   # Use a header file that comes with gcc, so configuring glibc
2477   # with a fresh cross-compiler works.
2478   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2479   # <limits.h> exists even on freestanding compilers.
2480   # On the NeXT, cc -E runs the code through the compiler's parser,
2481   # not just through cpp. "Syntax error" is here to catch this case.
2482   cat >conftest.$ac_ext <<_ACEOF
2483 #line $LINENO "configure"
2484 /* confdefs.h.  */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h.  */
2489 #ifdef __STDC__
2490 # include <limits.h>
2491 #else
2492 # include <assert.h>
2493 #endif
2494                      Syntax error
2495 _ACEOF
2496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2497   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2498   ac_status=$?
2499   grep -v '^ *+' conftest.er1 >conftest.err
2500   rm -f conftest.er1
2501   cat conftest.err >&5
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); } >/dev/null; then
2504   if test -s conftest.err; then
2505     ac_cpp_err=$ac_c_preproc_warn_flag
2506   else
2507     ac_cpp_err=
2508   fi
2509 else
2510   ac_cpp_err=yes
2511 fi
2512 if test -z "$ac_cpp_err"; then
2513   :
2514 else
2515   echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2517
2518   # Broken: fails on valid input.
2519 continue
2520 fi
2521 rm -f conftest.err conftest.$ac_ext
2522
2523   # OK, works on sane cases.  Now check whether non-existent headers
2524   # can be detected and how.
2525   cat >conftest.$ac_ext <<_ACEOF
2526 #line $LINENO "configure"
2527 /* confdefs.h.  */
2528 _ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h.  */
2532 #include <ac_nonexistent.h>
2533 _ACEOF
2534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2535   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2536   ac_status=$?
2537   grep -v '^ *+' conftest.er1 >conftest.err
2538   rm -f conftest.er1
2539   cat conftest.err >&5
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); } >/dev/null; then
2542   if test -s conftest.err; then
2543     ac_cpp_err=$ac_c_preproc_warn_flag
2544   else
2545     ac_cpp_err=
2546   fi
2547 else
2548   ac_cpp_err=yes
2549 fi
2550 if test -z "$ac_cpp_err"; then
2551   # Broken: success on invalid input.
2552 continue
2553 else
2554   echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2556
2557   # Passes both tests.
2558 ac_preproc_ok=:
2559 break
2560 fi
2561 rm -f conftest.err conftest.$ac_ext
2562
2563 done
2564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2565 rm -f conftest.err conftest.$ac_ext
2566 if $ac_preproc_ok; then
2567   :
2568 else
2569   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2570 See \`config.log' for more details." >&5
2571 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2572 See \`config.log' for more details." >&2;}
2573    { (exit 1); exit 1; }; }
2574 fi
2575
2576 ac_ext=c
2577 ac_cpp='$CPP $CPPFLAGS'
2578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2581
2582
2583 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2584 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2585 if test "${wine_cv_toolsdir+set}" = set; then
2586   echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588   if test -z "$with_wine_tools"; then
2589      if test "$cross_compiling" = "yes"; then
2590        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2591 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2592    { (exit 1); exit 1; }; }
2593      else
2594        wine_cv_toolsdir="\$(TOPOBJDIR)"
2595      fi
2596    elif test -d "$with_wine_tools/tools/winebuild"; then
2597      case $with_wine_tools in
2598        /*) wine_cv_toolsdir="$with_wine_tools" ;;
2599        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2600      esac
2601    else
2602      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2603 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2604    { (exit 1); exit 1; }; }
2605    fi
2606 fi
2607 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2608 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2609 TOOLSDIR=$wine_cv_toolsdir
2610
2611
2612
2613
2614 echo "$as_me:$LINENO: checking for X" >&5
2615 echo $ECHO_N "checking for X... $ECHO_C" >&6
2616
2617
2618 # Check whether --with-x or --without-x was given.
2619 if test "${with_x+set}" = set; then
2620   withval="$with_x"
2621
2622 fi;
2623 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2624 if test "x$with_x" = xno; then
2625   # The user explicitly disabled X.
2626   have_x=disabled
2627 else
2628   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2629     # Both variables are already set.
2630     have_x=yes
2631   else
2632     if test "${ac_cv_have_x+set}" = set; then
2633   echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635   # One or both of the vars are not set, and there is no cached value.
2636 ac_x_includes=no ac_x_libraries=no
2637 rm -fr conftest.dir
2638 if mkdir conftest.dir; then
2639   cd conftest.dir
2640   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2641   cat >Imakefile <<'_ACEOF'
2642 acfindx:
2643         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2644 _ACEOF
2645   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2646     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2647     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2648     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2649     for ac_extension in a so sl; do
2650       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2651          test -f $ac_im_libdir/libX11.$ac_extension; then
2652         ac_im_usrlibdir=$ac_im_libdir; break
2653       fi
2654     done
2655     # Screen out bogus values from the imake configuration.  They are
2656     # bogus both because they are the default anyway, and because
2657     # using them would break gcc on systems where it needs fixed includes.
2658     case $ac_im_incroot in
2659         /usr/include) ;;
2660         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2661     esac
2662     case $ac_im_usrlibdir in
2663         /usr/lib | /lib) ;;
2664         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2665     esac
2666   fi
2667   cd ..
2668   rm -fr conftest.dir
2669 fi
2670
2671 # Standard set of common directories for X headers.
2672 # Check X11 before X11Rn because it is often a symlink to the current release.
2673 ac_x_header_dirs='
2674 /usr/X11/include
2675 /usr/X11R6/include
2676 /usr/X11R5/include
2677 /usr/X11R4/include
2678
2679 /usr/include/X11
2680 /usr/include/X11R6
2681 /usr/include/X11R5
2682 /usr/include/X11R4
2683
2684 /usr/local/X11/include
2685 /usr/local/X11R6/include
2686 /usr/local/X11R5/include
2687 /usr/local/X11R4/include
2688
2689 /usr/local/include/X11
2690 /usr/local/include/X11R6
2691 /usr/local/include/X11R5
2692 /usr/local/include/X11R4
2693
2694 /usr/X386/include
2695 /usr/x386/include
2696 /usr/XFree86/include/X11
2697
2698 /usr/include
2699 /usr/local/include
2700 /usr/unsupported/include
2701 /usr/athena/include
2702 /usr/local/x11r5/include
2703 /usr/lpp/Xamples/include
2704
2705 /usr/openwin/include
2706 /usr/openwin/share/include'
2707
2708 if test "$ac_x_includes" = no; then
2709   # Guess where to find include files, by looking for Intrinsic.h.
2710   # First, try using that file with no special directory specified.
2711   cat >conftest.$ac_ext <<_ACEOF
2712 #line $LINENO "configure"
2713 /* confdefs.h.  */
2714 _ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h.  */
2718 #include <X11/Intrinsic.h>
2719 _ACEOF
2720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2721   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2722   ac_status=$?
2723   grep -v '^ *+' conftest.er1 >conftest.err
2724   rm -f conftest.er1
2725   cat conftest.err >&5
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); } >/dev/null; then
2728   if test -s conftest.err; then
2729     ac_cpp_err=$ac_c_preproc_warn_flag
2730   else
2731     ac_cpp_err=
2732   fi
2733 else
2734   ac_cpp_err=yes
2735 fi
2736 if test -z "$ac_cpp_err"; then
2737   # We can compile using X headers with no special include directory.
2738 ac_x_includes=
2739 else
2740   echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743   for ac_dir in $ac_x_header_dirs; do
2744   if test -r "$ac_dir/X11/Intrinsic.h"; then
2745     ac_x_includes=$ac_dir
2746     break
2747   fi
2748 done
2749 fi
2750 rm -f conftest.err conftest.$ac_ext
2751 fi # $ac_x_includes = no
2752
2753 if test "$ac_x_libraries" = no; then
2754   # Check for the libraries.
2755   # See if we find them without any special options.
2756   # Don't add to $LIBS permanently.
2757   ac_save_LIBS=$LIBS
2758   LIBS="-lXt $LIBS"
2759   cat >conftest.$ac_ext <<_ACEOF
2760 #line $LINENO "configure"
2761 /* confdefs.h.  */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h.  */
2766 #include <X11/Intrinsic.h>
2767 int
2768 main ()
2769 {
2770 XtMalloc (0)
2771   ;
2772   return 0;
2773 }
2774 _ACEOF
2775 rm -f conftest.$ac_objext conftest$ac_exeext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2777   (eval $ac_link) 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); } &&
2781          { ac_try='test -s conftest$ac_exeext'
2782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); }; }; then
2787   LIBS=$ac_save_LIBS
2788 # We can link X programs with no special library path.
2789 ac_x_libraries=
2790 else
2791   echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2793
2794 LIBS=$ac_save_LIBS
2795 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2796 do
2797   # Don't even attempt the hair of trying to link an X program!
2798   for ac_extension in a so sl; do
2799     if test -r $ac_dir/libXt.$ac_extension; then
2800       ac_x_libraries=$ac_dir
2801       break 2
2802     fi
2803   done
2804 done
2805 fi
2806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2807 fi # $ac_x_libraries = no
2808
2809 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2810   # Didn't find X anywhere.  Cache the known absence of X.
2811   ac_cv_have_x="have_x=no"
2812 else
2813   # Record where we found X for the cache.
2814   ac_cv_have_x="have_x=yes \
2815                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2816 fi
2817 fi
2818
2819   fi
2820   eval "$ac_cv_have_x"
2821 fi # $with_x != no
2822
2823 if test "$have_x" != yes; then
2824   echo "$as_me:$LINENO: result: $have_x" >&5
2825 echo "${ECHO_T}$have_x" >&6
2826   no_x=yes
2827 else
2828   # If each of the values was on the command line, it overrides each guess.
2829   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2830   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2831   # Update the cache value to reflect the command line values.
2832   ac_cv_have_x="have_x=yes \
2833                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2834   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2835 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2836 fi
2837
2838 if test "$no_x" = yes; then
2839   # Not all programs may use this symbol, but it does not hurt to define it.
2840
2841 cat >>confdefs.h <<\_ACEOF
2842 #define X_DISPLAY_MISSING 1
2843 _ACEOF
2844
2845   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2846 else
2847   if test -n "$x_includes"; then
2848     X_CFLAGS="$X_CFLAGS -I$x_includes"
2849   fi
2850
2851   # It would also be nice to do this for all -L options, not just this one.
2852   if test -n "$x_libraries"; then
2853     X_LIBS="$X_LIBS -L$x_libraries"
2854     # For Solaris; some versions of Sun CC require a space after -R and
2855     # others require no space.  Words are not sufficient . . . .
2856     case `(uname -sr) 2>/dev/null` in
2857     "SunOS 5"*)
2858       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2859 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2860       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2861       cat >conftest.$ac_ext <<_ACEOF
2862 #line $LINENO "configure"
2863 /* confdefs.h.  */
2864 _ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h.  */
2868
2869 int
2870 main ()
2871 {
2872
2873   ;
2874   return 0;
2875 }
2876 _ACEOF
2877 rm -f conftest.$ac_objext conftest$ac_exeext
2878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2879   (eval $ac_link) 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); } &&
2883          { ac_try='test -s conftest$ac_exeext'
2884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885   (eval $ac_try) 2>&5
2886   ac_status=$?
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); }; }; then
2889   ac_R_nospace=yes
2890 else
2891   echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2893
2894 ac_R_nospace=no
2895 fi
2896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2897       if test $ac_R_nospace = yes; then
2898         echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2900         X_LIBS="$X_LIBS -R$x_libraries"
2901       else
2902         LIBS="$ac_xsave_LIBS -R $x_libraries"
2903         cat >conftest.$ac_ext <<_ACEOF
2904 #line $LINENO "configure"
2905 /* confdefs.h.  */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h.  */
2910
2911 int
2912 main ()
2913 {
2914
2915   ;
2916   return 0;
2917 }
2918 _ACEOF
2919 rm -f conftest.$ac_objext conftest$ac_exeext
2920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2921   (eval $ac_link) 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); } &&
2925          { ac_try='test -s conftest$ac_exeext'
2926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927   (eval $ac_try) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }; }; then
2931   ac_R_space=yes
2932 else
2933   echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2935
2936 ac_R_space=no
2937 fi
2938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2939         if test $ac_R_space = yes; then
2940           echo "$as_me:$LINENO: result: yes" >&5
2941 echo "${ECHO_T}yes" >&6
2942           X_LIBS="$X_LIBS -R $x_libraries"
2943         else
2944           echo "$as_me:$LINENO: result: neither works" >&5
2945 echo "${ECHO_T}neither works" >&6
2946         fi
2947       fi
2948       LIBS=$ac_xsave_LIBS
2949     esac
2950   fi
2951
2952   # Check for system-dependent libraries X programs must link with.
2953   # Do this before checking for the system-independent R6 libraries
2954   # (-lICE), since we may need -lsocket or whatever for X linking.
2955
2956   if test "$ISC" = yes; then
2957     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2958   else
2959     # Martyn Johnson says this is needed for Ultrix, if the X
2960     # libraries were built with DECnet support.  And Karl Berry says
2961     # the Alpha needs dnet_stub (dnet does not exist).
2962     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2963     cat >conftest.$ac_ext <<_ACEOF
2964 #line $LINENO "configure"
2965 /* confdefs.h.  */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h.  */
2970
2971 /* Override any gcc2 internal prototype to avoid an error.  */
2972 #ifdef __cplusplus
2973 extern "C"
2974 #endif
2975 /* We use char because int might match the return type of a gcc2
2976    builtin and then its argument prototype would still apply.  */
2977 char XOpenDisplay ();
2978 int
2979 main ()
2980 {
2981 XOpenDisplay ();
2982   ;
2983   return 0;
2984 }
2985 _ACEOF
2986 rm -f conftest.$ac_objext conftest$ac_exeext
2987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2988   (eval $ac_link) 2>&5
2989   ac_status=$?
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); } &&
2992          { ac_try='test -s conftest$ac_exeext'
2993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994   (eval $ac_try) 2>&5
2995   ac_status=$?
2996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997   (exit $ac_status); }; }; then
2998   :
2999 else
3000   echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3002
3003 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3004 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3005 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3006   echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008   ac_check_lib_save_LIBS=$LIBS
3009 LIBS="-ldnet  $LIBS"
3010 cat >conftest.$ac_ext <<_ACEOF
3011 #line $LINENO "configure"
3012 /* confdefs.h.  */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h.  */
3017
3018 /* Override any gcc2 internal prototype to avoid an error.  */
3019 #ifdef __cplusplus
3020 extern "C"
3021 #endif
3022 /* We use char because int might match the return type of a gcc2
3023    builtin and then its argument prototype would still apply.  */
3024 char dnet_ntoa ();
3025 int
3026 main ()
3027 {
3028 dnet_ntoa ();
3029   ;
3030   return 0;
3031 }
3032 _ACEOF
3033 rm -f conftest.$ac_objext conftest$ac_exeext
3034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3035   (eval $ac_link) 2>&5
3036   ac_status=$?
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); } &&
3039          { ac_try='test -s conftest$ac_exeext'
3040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041   (eval $ac_try) 2>&5
3042   ac_status=$?
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); }; }; then
3045   ac_cv_lib_dnet_dnet_ntoa=yes
3046 else
3047   echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3049
3050 ac_cv_lib_dnet_dnet_ntoa=no
3051 fi
3052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3053 LIBS=$ac_check_lib_save_LIBS
3054 fi
3055 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3056 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3057 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3058   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3059 fi
3060
3061     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3062       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3063 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3064 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3065   echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067   ac_check_lib_save_LIBS=$LIBS
3068 LIBS="-ldnet_stub  $LIBS"
3069 cat >conftest.$ac_ext <<_ACEOF
3070 #line $LINENO "configure"
3071 /* confdefs.h.  */
3072 _ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h.  */
3076
3077 /* Override any gcc2 internal prototype to avoid an error.  */
3078 #ifdef __cplusplus
3079 extern "C"
3080 #endif
3081 /* We use char because int might match the return type of a gcc2
3082    builtin and then its argument prototype would still apply.  */
3083 char dnet_ntoa ();
3084 int
3085 main ()
3086 {
3087 dnet_ntoa ();
3088   ;
3089   return 0;
3090 }
3091 _ACEOF
3092 rm -f conftest.$ac_objext conftest$ac_exeext
3093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3094   (eval $ac_link) 2>&5
3095   ac_status=$?
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); } &&
3098          { ac_try='test -s conftest$ac_exeext'
3099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100   (eval $ac_try) 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); }; }; then
3104   ac_cv_lib_dnet_stub_dnet_ntoa=yes
3105 else
3106   echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 ac_cv_lib_dnet_stub_dnet_ntoa=no
3110 fi
3111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3112 LIBS=$ac_check_lib_save_LIBS
3113 fi
3114 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3115 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3116 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3117   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3118 fi
3119
3120     fi
3121 fi
3122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3123     LIBS="$ac_xsave_LIBS"
3124
3125     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3126     # to get the SysV transport functions.
3127     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3128     # needs -lnsl.
3129     # The nsl library prevents programs from opening the X display
3130     # on Irix 5.2, according to T.E. Dickey.
3131     # The functions gethostbyname, getservbyname, and inet_addr are
3132     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3133     echo "$as_me:$LINENO: checking for gethostbyname" >&5
3134 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3135 if test "${ac_cv_func_gethostbyname+set}" = set; then
3136   echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138   cat >conftest.$ac_ext <<_ACEOF
3139 #line $LINENO "configure"
3140 /* confdefs.h.  */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h.  */
3145 /* System header to define __stub macros and hopefully few prototypes,
3146     which can conflict with char gethostbyname (); below.
3147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3148     <limits.h> exists even on freestanding compilers.  */
3149 #ifdef __STDC__
3150 # include <limits.h>
3151 #else
3152 # include <assert.h>
3153 #endif
3154 /* Override any gcc2 internal prototype to avoid an error.  */
3155 #ifdef __cplusplus
3156 extern "C"
3157 {
3158 #endif
3159 /* We use char because int might match the return type of a gcc2
3160    builtin and then its argument prototype would still apply.  */
3161 char gethostbyname ();
3162 /* The GNU C library defines this for functions which it implements
3163     to always fail with ENOSYS.  Some functions are actually named
3164     something starting with __ and the normal name is an alias.  */
3165 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3166 choke me
3167 #else
3168 char (*f) () = gethostbyname;
3169 #endif
3170 #ifdef __cplusplus
3171 }
3172 #endif
3173
3174 int
3175 main ()
3176 {
3177 return f != gethostbyname;
3178   ;
3179   return 0;
3180 }
3181 _ACEOF
3182 rm -f conftest.$ac_objext conftest$ac_exeext
3183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3184   (eval $ac_link) 2>&5
3185   ac_status=$?
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); } &&
3188          { ac_try='test -s conftest$ac_exeext'
3189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190   (eval $ac_try) 2>&5
3191   ac_status=$?
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); }; }; then
3194   ac_cv_func_gethostbyname=yes
3195 else
3196   echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3198
3199 ac_cv_func_gethostbyname=no
3200 fi
3201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3202 fi
3203 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3204 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3205
3206     if test $ac_cv_func_gethostbyname = no; then
3207       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3208 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3209 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3210   echo $ECHO_N "(cached) $ECHO_C" >&6
3211 else
3212   ac_check_lib_save_LIBS=$LIBS
3213 LIBS="-lnsl  $LIBS"
3214 cat >conftest.$ac_ext <<_ACEOF
3215 #line $LINENO "configure"
3216 /* confdefs.h.  */
3217 _ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h.  */
3221
3222 /* Override any gcc2 internal prototype to avoid an error.  */
3223 #ifdef __cplusplus
3224 extern "C"
3225 #endif
3226 /* We use char because int might match the return type of a gcc2
3227    builtin and then its argument prototype would still apply.  */
3228 char gethostbyname ();
3229 int
3230 main ()
3231 {
3232 gethostbyname ();
3233   ;
3234   return 0;
3235 }
3236 _ACEOF
3237 rm -f conftest.$ac_objext conftest$ac_exeext
3238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3239   (eval $ac_link) 2>&5
3240   ac_status=$?
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); } &&
3243          { ac_try='test -s conftest$ac_exeext'
3244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245   (eval $ac_try) 2>&5
3246   ac_status=$?
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); }; }; then
3249   ac_cv_lib_nsl_gethostbyname=yes
3250 else
3251   echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3253
3254 ac_cv_lib_nsl_gethostbyname=no
3255 fi
3256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3257 LIBS=$ac_check_lib_save_LIBS
3258 fi
3259 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3260 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3261 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3262   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3263 fi
3264
3265       if test $ac_cv_lib_nsl_gethostbyname = no; then
3266         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3267 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3268 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3269   echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271   ac_check_lib_save_LIBS=$LIBS
3272 LIBS="-lbsd  $LIBS"
3273 cat >conftest.$ac_ext <<_ACEOF
3274 #line $LINENO "configure"
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280
3281 /* Override any gcc2 internal prototype to avoid an error.  */
3282 #ifdef __cplusplus
3283 extern "C"
3284 #endif
3285 /* We use char because int might match the return type of a gcc2
3286    builtin and then its argument prototype would still apply.  */
3287 char gethostbyname ();
3288 int
3289 main ()
3290 {
3291 gethostbyname ();
3292   ;
3293   return 0;
3294 }
3295 _ACEOF
3296 rm -f conftest.$ac_objext conftest$ac_exeext
3297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3298   (eval $ac_link) 2>&5
3299   ac_status=$?
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); } &&
3302          { ac_try='test -s conftest$ac_exeext'
3303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304   (eval $ac_try) 2>&5
3305   ac_status=$?
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); }; }; then
3308   ac_cv_lib_bsd_gethostbyname=yes
3309 else
3310   echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313 ac_cv_lib_bsd_gethostbyname=no
3314 fi
3315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3316 LIBS=$ac_check_lib_save_LIBS
3317 fi
3318 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3319 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3320 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3321   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3322 fi
3323
3324       fi
3325     fi
3326
3327     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3328     # socket/setsockopt and other routines are undefined under SCO ODT
3329     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3330     # on later versions), says Simon Leinen: it contains gethostby*
3331     # variants that don't use the name server (or something).  -lsocket
3332     # must be given before -lnsl if both are needed.  We assume that
3333     # if connect needs -lnsl, so does gethostbyname.
3334     echo "$as_me:$LINENO: checking for connect" >&5
3335 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3336 if test "${ac_cv_func_connect+set}" = set; then
3337   echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339   cat >conftest.$ac_ext <<_ACEOF
3340 #line $LINENO "configure"
3341 /* confdefs.h.  */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h.  */
3346 /* System header to define __stub macros and hopefully few prototypes,
3347     which can conflict with char connect (); below.
3348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349     <limits.h> exists even on freestanding compilers.  */
3350 #ifdef __STDC__
3351 # include <limits.h>
3352 #else
3353 # include <assert.h>
3354 #endif
3355 /* Override any gcc2 internal prototype to avoid an error.  */
3356 #ifdef __cplusplus
3357 extern "C"
3358 {
3359 #endif
3360 /* We use char because int might match the return type of a gcc2
3361    builtin and then its argument prototype would still apply.  */
3362 char connect ();
3363 /* The GNU C library defines this for functions which it implements
3364     to always fail with ENOSYS.  Some functions are actually named
3365     something starting with __ and the normal name is an alias.  */
3366 #if defined (__stub_connect) || defined (__stub___connect)
3367 choke me
3368 #else
3369 char (*f) () = connect;
3370 #endif
3371 #ifdef __cplusplus
3372 }
3373 #endif
3374
3375 int
3376 main ()
3377 {
3378 return f != connect;
3379   ;
3380   return 0;
3381 }
3382 _ACEOF
3383 rm -f conftest.$ac_objext conftest$ac_exeext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3385   (eval $ac_link) 2>&5
3386   ac_status=$?
3387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388   (exit $ac_status); } &&
3389          { ac_try='test -s conftest$ac_exeext'
3390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391   (eval $ac_try) 2>&5
3392   ac_status=$?
3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394   (exit $ac_status); }; }; then
3395   ac_cv_func_connect=yes
3396 else
3397   echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400 ac_cv_func_connect=no
3401 fi
3402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3403 fi
3404 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3405 echo "${ECHO_T}$ac_cv_func_connect" >&6
3406
3407     if test $ac_cv_func_connect = no; then
3408       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3409 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3410 if test "${ac_cv_lib_socket_connect+set}" = set; then
3411   echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413   ac_check_lib_save_LIBS=$LIBS
3414 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3415 cat >conftest.$ac_ext <<_ACEOF
3416 #line $LINENO "configure"
3417 /* confdefs.h.  */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h.  */
3422
3423 /* Override any gcc2 internal prototype to avoid an error.  */
3424 #ifdef __cplusplus
3425 extern "C"
3426 #endif
3427 /* We use char because int might match the return type of a gcc2
3428    builtin and then its argument prototype would still apply.  */
3429 char connect ();
3430 int
3431 main ()
3432 {
3433 connect ();
3434   ;
3435   return 0;
3436 }
3437 _ACEOF
3438 rm -f conftest.$ac_objext conftest$ac_exeext
3439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3440   (eval $ac_link) 2>&5
3441   ac_status=$?
3442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443   (exit $ac_status); } &&
3444          { ac_try='test -s conftest$ac_exeext'
3445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446   (eval $ac_try) 2>&5
3447   ac_status=$?
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); }; }; then
3450   ac_cv_lib_socket_connect=yes
3451 else
3452   echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455 ac_cv_lib_socket_connect=no
3456 fi
3457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3458 LIBS=$ac_check_lib_save_LIBS
3459 fi
3460 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3461 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3462 if test $ac_cv_lib_socket_connect = yes; then
3463   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3464 fi
3465
3466     fi
3467
3468     # Guillermo Gomez says -lposix is necessary on A/UX.
3469     echo "$as_me:$LINENO: checking for remove" >&5
3470 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3471 if test "${ac_cv_func_remove+set}" = set; then
3472   echo $ECHO_N "(cached) $ECHO_C" >&6
3473 else
3474   cat >conftest.$ac_ext <<_ACEOF
3475 #line $LINENO "configure"
3476 /* confdefs.h.  */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h.  */
3481 /* System header to define __stub macros and hopefully few prototypes,
3482     which can conflict with char remove (); below.
3483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3484     <limits.h> exists even on freestanding compilers.  */
3485 #ifdef __STDC__
3486 # include <limits.h>
3487 #else
3488 # include <assert.h>
3489 #endif
3490 /* Override any gcc2 internal prototype to avoid an error.  */
3491 #ifdef __cplusplus
3492 extern "C"
3493 {
3494 #endif
3495 /* We use char because int might match the return type of a gcc2
3496    builtin and then its argument prototype would still apply.  */
3497 char remove ();
3498 /* The GNU C library defines this for functions which it implements
3499     to always fail with ENOSYS.  Some functions are actually named
3500     something starting with __ and the normal name is an alias.  */
3501 #if defined (__stub_remove) || defined (__stub___remove)
3502 choke me
3503 #else
3504 char (*f) () = remove;
3505 #endif
3506 #ifdef __cplusplus
3507 }
3508 #endif
3509
3510 int
3511 main ()
3512 {
3513 return f != remove;
3514   ;
3515   return 0;
3516 }
3517 _ACEOF
3518 rm -f conftest.$ac_objext conftest$ac_exeext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3520   (eval $ac_link) 2>&5
3521   ac_status=$?
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); } &&
3524          { ac_try='test -s conftest$ac_exeext'
3525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526   (eval $ac_try) 2>&5
3527   ac_status=$?
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); }; }; then
3530   ac_cv_func_remove=yes
3531 else
3532   echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 ac_cv_func_remove=no
3536 fi
3537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3538 fi
3539 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3540 echo "${ECHO_T}$ac_cv_func_remove" >&6
3541
3542     if test $ac_cv_func_remove = no; then
3543       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3544 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3545 if test "${ac_cv_lib_posix_remove+set}" = set; then
3546   echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548   ac_check_lib_save_LIBS=$LIBS
3549 LIBS="-lposix  $LIBS"
3550 cat >conftest.$ac_ext <<_ACEOF
3551 #line $LINENO "configure"
3552 /* confdefs.h.  */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h.  */
3557
3558 /* Override any gcc2 internal prototype to avoid an error.  */
3559 #ifdef __cplusplus
3560 extern "C"
3561 #endif
3562 /* We use char because int might match the return type of a gcc2
3563    builtin and then its argument prototype would still apply.  */
3564 char remove ();
3565 int
3566 main ()
3567 {
3568 remove ();
3569   ;
3570   return 0;
3571 }
3572 _ACEOF
3573 rm -f conftest.$ac_objext conftest$ac_exeext
3574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3575   (eval $ac_link) 2>&5
3576   ac_status=$?
3577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578   (exit $ac_status); } &&
3579          { ac_try='test -s conftest$ac_exeext'
3580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581   (eval $ac_try) 2>&5
3582   ac_status=$?
3583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584   (exit $ac_status); }; }; then
3585   ac_cv_lib_posix_remove=yes
3586 else
3587   echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3589
3590 ac_cv_lib_posix_remove=no
3591 fi
3592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3593 LIBS=$ac_check_lib_save_LIBS
3594 fi
3595 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3596 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3597 if test $ac_cv_lib_posix_remove = yes; then
3598   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3599 fi
3600
3601     fi
3602
3603     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3604     echo "$as_me:$LINENO: checking for shmat" >&5
3605 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3606 if test "${ac_cv_func_shmat+set}" = set; then
3607   echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609   cat >conftest.$ac_ext <<_ACEOF
3610 #line $LINENO "configure"
3611 /* confdefs.h.  */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h.  */
3616 /* System header to define __stub macros and hopefully few prototypes,
3617     which can conflict with char shmat (); below.
3618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3619     <limits.h> exists even on freestanding compilers.  */
3620 #ifdef __STDC__
3621 # include <limits.h>
3622 #else
3623 # include <assert.h>
3624 #endif
3625 /* Override any gcc2 internal prototype to avoid an error.  */
3626 #ifdef __cplusplus
3627 extern "C"
3628 {
3629 #endif
3630 /* We use char because int might match the return type of a gcc2
3631    builtin and then its argument prototype would still apply.  */
3632 char shmat ();
3633 /* The GNU C library defines this for functions which it implements
3634     to always fail with ENOSYS.  Some functions are actually named
3635     something starting with __ and the normal name is an alias.  */
3636 #if defined (__stub_shmat) || defined (__stub___shmat)
3637 choke me
3638 #else
3639 char (*f) () = shmat;
3640 #endif
3641 #ifdef __cplusplus
3642 }
3643 #endif
3644
3645 int
3646 main ()
3647 {
3648 return f != shmat;
3649   ;
3650   return 0;
3651 }
3652 _ACEOF
3653 rm -f conftest.$ac_objext conftest$ac_exeext
3654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3655   (eval $ac_link) 2>&5
3656   ac_status=$?
3657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658   (exit $ac_status); } &&
3659          { ac_try='test -s conftest$ac_exeext'
3660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661   (eval $ac_try) 2>&5
3662   ac_status=$?
3663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664   (exit $ac_status); }; }; then
3665   ac_cv_func_shmat=yes
3666 else
3667   echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3669
3670 ac_cv_func_shmat=no
3671 fi
3672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3673 fi
3674 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3675 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3676
3677     if test $ac_cv_func_shmat = no; then
3678       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3679 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3680 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3681   echo $ECHO_N "(cached) $ECHO_C" >&6
3682 else
3683   ac_check_lib_save_LIBS=$LIBS
3684 LIBS="-lipc  $LIBS"
3685 cat >conftest.$ac_ext <<_ACEOF
3686 #line $LINENO "configure"
3687 /* confdefs.h.  */
3688 _ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h.  */
3692
3693 /* Override any gcc2 internal prototype to avoid an error.  */
3694 #ifdef __cplusplus
3695 extern "C"
3696 #endif
3697 /* We use char because int might match the return type of a gcc2
3698    builtin and then its argument prototype would still apply.  */
3699 char shmat ();
3700 int
3701 main ()
3702 {
3703 shmat ();
3704   ;
3705   return 0;
3706 }
3707 _ACEOF
3708 rm -f conftest.$ac_objext conftest$ac_exeext
3709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3710   (eval $ac_link) 2>&5
3711   ac_status=$?
3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); } &&
3714          { ac_try='test -s conftest$ac_exeext'
3715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716   (eval $ac_try) 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); }; }; then
3720   ac_cv_lib_ipc_shmat=yes
3721 else
3722   echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3724
3725 ac_cv_lib_ipc_shmat=no
3726 fi
3727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3728 LIBS=$ac_check_lib_save_LIBS
3729 fi
3730 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3731 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3732 if test $ac_cv_lib_ipc_shmat = yes; then
3733   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3734 fi
3735
3736     fi
3737   fi
3738
3739   # Check for libraries that X11R6 Xt/Xaw programs need.
3740   ac_save_LDFLAGS=$LDFLAGS
3741   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3742   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3743   # check for ICE first), but we must link in the order -lSM -lICE or
3744   # we get undefined symbols.  So assume we have SM if we have ICE.
3745   # These have to be linked with before -lX11, unlike the other
3746   # libraries we check for below, so use a different variable.
3747   # John Interrante, Karl Berry
3748   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3749 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3750 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3751   echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753   ac_check_lib_save_LIBS=$LIBS
3754 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3755 cat >conftest.$ac_ext <<_ACEOF
3756 #line $LINENO "configure"
3757 /* confdefs.h.  */
3758 _ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h.  */
3762
3763 /* Override any gcc2 internal prototype to avoid an error.  */
3764 #ifdef __cplusplus
3765 extern "C"
3766 #endif
3767 /* We use char because int might match the return type of a gcc2
3768    builtin and then its argument prototype would still apply.  */
3769 char IceConnectionNumber ();
3770 int
3771 main ()
3772 {
3773 IceConnectionNumber ();
3774   ;
3775   return 0;
3776 }
3777 _ACEOF
3778 rm -f conftest.$ac_objext conftest$ac_exeext
3779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3780   (eval $ac_link) 2>&5
3781   ac_status=$?
3782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783   (exit $ac_status); } &&
3784          { ac_try='test -s conftest$ac_exeext'
3785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786   (eval $ac_try) 2>&5
3787   ac_status=$?
3788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789   (exit $ac_status); }; }; then
3790   ac_cv_lib_ICE_IceConnectionNumber=yes
3791 else
3792   echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3794
3795 ac_cv_lib_ICE_IceConnectionNumber=no
3796 fi
3797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3798 LIBS=$ac_check_lib_save_LIBS
3799 fi
3800 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3801 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3802 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3803   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3804 fi
3805
3806   LDFLAGS=$ac_save_LDFLAGS
3807
3808 fi
3809
3810 for ac_prog in 'bison -y' byacc
3811 do
3812   # Extract the first word of "$ac_prog", so it can be a program name with args.
3813 set dummy $ac_prog; ac_word=$2
3814 echo "$as_me:$LINENO: checking for $ac_word" >&5
3815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3816 if test "${ac_cv_prog_YACC+set}" = set; then
3817   echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819   if test -n "$YACC"; then
3820   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3824 do
3825   IFS=$as_save_IFS
3826   test -z "$as_dir" && as_dir=.
3827   for ac_exec_ext in '' $ac_executable_extensions; do
3828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3829     ac_cv_prog_YACC="$ac_prog"
3830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3831     break 2
3832   fi
3833 done
3834 done
3835
3836 fi
3837 fi
3838 YACC=$ac_cv_prog_YACC
3839 if test -n "$YACC"; then
3840   echo "$as_me:$LINENO: result: $YACC" >&5
3841 echo "${ECHO_T}$YACC" >&6
3842 else
3843   echo "$as_me:$LINENO: result: no" >&5
3844 echo "${ECHO_T}no" >&6
3845 fi
3846
3847   test -n "$YACC" && break
3848 done
3849 test -n "$YACC" || YACC="yacc"
3850
3851 for ac_prog in flex lex
3852 do
3853   # Extract the first word of "$ac_prog", so it can be a program name with args.
3854 set dummy $ac_prog; ac_word=$2
3855 echo "$as_me:$LINENO: checking for $ac_word" >&5
3856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3857 if test "${ac_cv_prog_LEX+set}" = set; then
3858   echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860   if test -n "$LEX"; then
3861   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3865 do
3866   IFS=$as_save_IFS
3867   test -z "$as_dir" && as_dir=.
3868   for ac_exec_ext in '' $ac_executable_extensions; do
3869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870     ac_cv_prog_LEX="$ac_prog"
3871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3872     break 2
3873   fi
3874 done
3875 done
3876
3877 fi
3878 fi
3879 LEX=$ac_cv_prog_LEX
3880 if test -n "$LEX"; then
3881   echo "$as_me:$LINENO: result: $LEX" >&5
3882 echo "${ECHO_T}$LEX" >&6
3883 else
3884   echo "$as_me:$LINENO: result: no" >&5
3885 echo "${ECHO_T}no" >&6
3886 fi
3887
3888   test -n "$LEX" && break
3889 done
3890 test -n "$LEX" || LEX=":"
3891
3892 if test -z "$LEXLIB"
3893 then
3894   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3895 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3896 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3897   echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899   ac_check_lib_save_LIBS=$LIBS
3900 LIBS="-lfl  $LIBS"
3901 cat >conftest.$ac_ext <<_ACEOF
3902 #line $LINENO "configure"
3903 /* confdefs.h.  */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h.  */
3908
3909 /* Override any gcc2 internal prototype to avoid an error.  */
3910 #ifdef __cplusplus
3911 extern "C"
3912 #endif
3913 /* We use char because int might match the return type of a gcc2
3914    builtin and then its argument prototype would still apply.  */
3915 char yywrap ();
3916 int
3917 main ()
3918 {
3919 yywrap ();
3920   ;
3921   return 0;
3922 }
3923 _ACEOF
3924 rm -f conftest.$ac_objext conftest$ac_exeext
3925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3926   (eval $ac_link) 2>&5
3927   ac_status=$?
3928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929   (exit $ac_status); } &&
3930          { ac_try='test -s conftest$ac_exeext'
3931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932   (eval $ac_try) 2>&5
3933   ac_status=$?
3934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935   (exit $ac_status); }; }; then
3936   ac_cv_lib_fl_yywrap=yes
3937 else
3938   echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3940
3941 ac_cv_lib_fl_yywrap=no
3942 fi
3943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3944 LIBS=$ac_check_lib_save_LIBS
3945 fi
3946 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3947 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3948 if test $ac_cv_lib_fl_yywrap = yes; then
3949   LEXLIB="-lfl"
3950 else
3951   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3952 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3953 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956   ac_check_lib_save_LIBS=$LIBS
3957 LIBS="-ll  $LIBS"
3958 cat >conftest.$ac_ext <<_ACEOF
3959 #line $LINENO "configure"
3960 /* confdefs.h.  */
3961 _ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h.  */
3965
3966 /* Override any gcc2 internal prototype to avoid an error.  */
3967 #ifdef __cplusplus
3968 extern "C"
3969 #endif
3970 /* We use char because int might match the return type of a gcc2
3971    builtin and then its argument prototype would still apply.  */
3972 char yywrap ();
3973 int
3974 main ()
3975 {
3976 yywrap ();
3977   ;
3978   return 0;
3979 }
3980 _ACEOF
3981 rm -f conftest.$ac_objext conftest$ac_exeext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3983   (eval $ac_link) 2>&5
3984   ac_status=$?
3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986   (exit $ac_status); } &&
3987          { ac_try='test -s conftest$ac_exeext'
3988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989   (eval $ac_try) 2>&5
3990   ac_status=$?
3991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992   (exit $ac_status); }; }; then
3993   ac_cv_lib_l_yywrap=yes
3994 else
3995   echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
3997
3998 ac_cv_lib_l_yywrap=no
3999 fi
4000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4001 LIBS=$ac_check_lib_save_LIBS
4002 fi
4003 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4004 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4005 if test $ac_cv_lib_l_yywrap = yes; then
4006   LEXLIB="-ll"
4007 fi
4008
4009 fi
4010
4011 fi
4012
4013 if test "x$LEX" != "x:"; then
4014   echo "$as_me:$LINENO: checking lex output file root" >&5
4015 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4016 if test "${ac_cv_prog_lex_root+set}" = set; then
4017   echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019   # The minimal lex program is just a single line: %%.  But some broken lexes
4020 # (Solaris, I think it was) want two %% lines, so accommodate them.
4021 cat >conftest.l <<_ACEOF
4022 %%
4023 %%
4024 _ACEOF
4025 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4026   (eval $LEX conftest.l) 2>&5
4027   ac_status=$?
4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); }
4030 if test -f lex.yy.c; then
4031   ac_cv_prog_lex_root=lex.yy
4032 elif test -f lexyy.c; then
4033   ac_cv_prog_lex_root=lexyy
4034 else
4035   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4036 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4037    { (exit 1); exit 1; }; }
4038 fi
4039 fi
4040 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4041 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4042 rm -f conftest.l
4043 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4044
4045 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4046 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4047 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050   # POSIX says lex can declare yytext either as a pointer or an array; the
4051 # default is implementation-dependent. Figure out which it is, since
4052 # not all implementations provide the %pointer and %array declarations.
4053 ac_cv_prog_lex_yytext_pointer=no
4054 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4055 ac_save_LIBS=$LIBS
4056 LIBS="$LIBS $LEXLIB"
4057 cat >conftest.$ac_ext <<_ACEOF
4058 `cat $LEX_OUTPUT_ROOT.c`
4059 _ACEOF
4060 rm -f conftest.$ac_objext conftest$ac_exeext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4062   (eval $ac_link) 2>&5
4063   ac_status=$?
4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065   (exit $ac_status); } &&
4066          { ac_try='test -s conftest$ac_exeext'
4067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068   (eval $ac_try) 2>&5
4069   ac_status=$?
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); }; }; then
4072   ac_cv_prog_lex_yytext_pointer=yes
4073 else
4074   echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4076
4077 fi
4078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4079 LIBS=$ac_save_LIBS
4080 rm -f "${LEX_OUTPUT_ROOT}.c"
4081
4082 fi
4083 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4084 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4085 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4086
4087 cat >>confdefs.h <<\_ACEOF
4088 #define YYTEXT_POINTER 1
4089 _ACEOF
4090
4091 fi
4092
4093 fi
4094
4095 for ac_prog in $YACC bison yacc
4096 do
4097   # Extract the first word of "$ac_prog", so it can be a program name with args.
4098 set dummy $ac_prog; ac_word=$2
4099 echo "$as_me:$LINENO: checking for $ac_word" >&5
4100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4101 if test "${ac_cv_prog_XYACC+set}" = set; then
4102   echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104   if test -n "$XYACC"; then
4105   ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4106 else
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4109 do
4110   IFS=$as_save_IFS
4111   test -z "$as_dir" && as_dir=.
4112   for ac_exec_ext in '' $ac_executable_extensions; do
4113   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114     ac_cv_prog_XYACC="$ac_prog"
4115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4116     break 2
4117   fi
4118 done
4119 done
4120
4121 fi
4122 fi
4123 XYACC=$ac_cv_prog_XYACC
4124 if test -n "$XYACC"; then
4125   echo "$as_me:$LINENO: result: $XYACC" >&5
4126 echo "${ECHO_T}$XYACC" >&6
4127 else
4128   echo "$as_me:$LINENO: result: no" >&5
4129 echo "${ECHO_T}no" >&6
4130 fi
4131
4132   test -n "$XYACC" && break
4133 done
4134 test -n "$XYACC" || XYACC="none"
4135
4136 if test "$XYACC" = "none"
4137 then
4138   { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
4139 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4140    { (exit 1); exit 1; }; }
4141 fi
4142 for ac_prog in $LEX flex lex
4143 do
4144   # Extract the first word of "$ac_prog", so it can be a program name with args.
4145 set dummy $ac_prog; ac_word=$2
4146 echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4148 if test "${ac_cv_prog_XLEX+set}" = set; then
4149   echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151   if test -n "$XLEX"; then
4152   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4153 else
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4156 do
4157   IFS=$as_save_IFS
4158   test -z "$as_dir" && as_dir=.
4159   for ac_exec_ext in '' $ac_executable_extensions; do
4160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4161     ac_cv_prog_XLEX="$ac_prog"
4162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163     break 2
4164   fi
4165 done
4166 done
4167
4168 fi
4169 fi
4170 XLEX=$ac_cv_prog_XLEX
4171 if test -n "$XLEX"; then
4172   echo "$as_me:$LINENO: result: $XLEX" >&5
4173 echo "${ECHO_T}$XLEX" >&6
4174 else
4175   echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6
4177 fi
4178
4179   test -n "$XLEX" && break
4180 done
4181 test -n "$XLEX" || XLEX="none"
4182
4183 if test "$XLEX" = "none"
4184 then
4185   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4186 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4187    { (exit 1); exit 1; }; }
4188 fi
4189
4190 if test -n "$ac_tool_prefix"; then
4191   for ac_prog in gas as
4192   do
4193     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4195 echo "$as_me:$LINENO: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4197 if test "${ac_cv_prog_AS+set}" = set; then
4198   echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200   if test -n "$AS"; then
4201   ac_cv_prog_AS="$AS" # Let the user override the test.
4202 else
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4205 do
4206   IFS=$as_save_IFS
4207   test -z "$as_dir" && as_dir=.
4208   for ac_exec_ext in '' $ac_executable_extensions; do
4209   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210     ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4212     break 2
4213   fi
4214 done
4215 done
4216
4217 fi
4218 fi
4219 AS=$ac_cv_prog_AS
4220 if test -n "$AS"; then
4221   echo "$as_me:$LINENO: result: $AS" >&5
4222 echo "${ECHO_T}$AS" >&6
4223 else
4224   echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6
4226 fi
4227
4228     test -n "$AS" && break
4229   done
4230 fi
4231 if test -z "$AS"; then
4232   ac_ct_AS=$AS
4233   for ac_prog in gas as
4234 do
4235   # Extract the first word of "$ac_prog", so it can be a program name with args.
4236 set dummy $ac_prog; ac_word=$2
4237 echo "$as_me:$LINENO: checking for $ac_word" >&5
4238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4239 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4240   echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242   if test -n "$ac_ct_AS"; then
4243   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4244 else
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4247 do
4248   IFS=$as_save_IFS
4249   test -z "$as_dir" && as_dir=.
4250   for ac_exec_ext in '' $ac_executable_extensions; do
4251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252     ac_cv_prog_ac_ct_AS="$ac_prog"
4253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254     break 2
4255   fi
4256 done
4257 done
4258
4259 fi
4260 fi
4261 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4262 if test -n "$ac_ct_AS"; then
4263   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4264 echo "${ECHO_T}$ac_ct_AS" >&6
4265 else
4266   echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6
4268 fi
4269
4270   test -n "$ac_ct_AS" && break
4271 done
4272 test -n "$ac_ct_AS" || ac_ct_AS="as"
4273
4274   AS=$ac_ct_AS
4275 fi
4276
4277 if test -n "$ac_tool_prefix"; then
4278   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4279 set dummy ${ac_tool_prefix}ld; ac_word=$2
4280 echo "$as_me:$LINENO: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282 if test "${ac_cv_prog_LD+set}" = set; then
4283   echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285   if test -n "$LD"; then
4286   ac_cv_prog_LD="$LD" # Let the user override the test.
4287 else
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4290 do
4291   IFS=$as_save_IFS
4292   test -z "$as_dir" && as_dir=.
4293   for ac_exec_ext in '' $ac_executable_extensions; do
4294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295     ac_cv_prog_LD="${ac_tool_prefix}ld"
4296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297     break 2
4298   fi
4299 done
4300 done
4301
4302 fi
4303 fi
4304 LD=$ac_cv_prog_LD
4305 if test -n "$LD"; then
4306   echo "$as_me:$LINENO: result: $LD" >&5
4307 echo "${ECHO_T}$LD" >&6
4308 else
4309   echo "$as_me:$LINENO: result: no" >&5
4310 echo "${ECHO_T}no" >&6
4311 fi
4312
4313 fi
4314 if test -z "$ac_cv_prog_LD"; then
4315   ac_ct_LD=$LD
4316   # Extract the first word of "ld", so it can be a program name with args.
4317 set dummy ld; ac_word=$2
4318 echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   if test -n "$ac_ct_LD"; then
4324   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4328 do
4329   IFS=$as_save_IFS
4330   test -z "$as_dir" && as_dir=.
4331   for ac_exec_ext in '' $ac_executable_extensions; do
4332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333     ac_cv_prog_ac_ct_LD="ld"
4334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335     break 2
4336   fi
4337 done
4338 done
4339
4340   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4341 fi
4342 fi
4343 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4344 if test -n "$ac_ct_LD"; then
4345   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4346 echo "${ECHO_T}$ac_ct_LD" >&6
4347 else
4348   echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4350 fi
4351
4352   LD=$ac_ct_LD
4353 else
4354   LD="$ac_cv_prog_LD"
4355 fi
4356
4357 if test -n "$ac_tool_prefix"; then
4358   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4359 set dummy ${ac_tool_prefix}ar; ac_word=$2
4360 echo "$as_me:$LINENO: checking for $ac_word" >&5
4361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4362 if test "${ac_cv_prog_AR+set}" = set; then
4363   echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365   if test -n "$AR"; then
4366   ac_cv_prog_AR="$AR" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371   IFS=$as_save_IFS
4372   test -z "$as_dir" && as_dir=.
4373   for ac_exec_ext in '' $ac_executable_extensions; do
4374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4375     ac_cv_prog_AR="${ac_tool_prefix}ar"
4376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377     break 2
4378   fi
4379 done
4380 done
4381
4382 fi
4383 fi
4384 AR=$ac_cv_prog_AR
4385 if test -n "$AR"; then
4386   echo "$as_me:$LINENO: result: $AR" >&5
4387 echo "${ECHO_T}$AR" >&6
4388 else
4389   echo "$as_me:$LINENO: result: no" >&5
4390 echo "${ECHO_T}no" >&6
4391 fi
4392
4393 fi
4394 if test -z "$ac_cv_prog_AR"; then
4395   ac_ct_AR=$AR
4396   # Extract the first word of "ar", so it can be a program name with args.
4397 set dummy ar; ac_word=$2
4398 echo "$as_me:$LINENO: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4400 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4401   echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403   if test -n "$ac_ct_AR"; then
4404   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4405 else
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4408 do
4409   IFS=$as_save_IFS
4410   test -z "$as_dir" && as_dir=.
4411   for ac_exec_ext in '' $ac_executable_extensions; do
4412   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4413     ac_cv_prog_ac_ct_AR="ar"
4414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415     break 2
4416   fi
4417 done
4418 done
4419
4420   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4421 fi
4422 fi
4423 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4424 if test -n "$ac_ct_AR"; then
4425   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4426 echo "${ECHO_T}$ac_ct_AR" >&6
4427 else
4428   echo "$as_me:$LINENO: result: no" >&5
4429 echo "${ECHO_T}no" >&6
4430 fi
4431
4432   AR=$ac_ct_AR
4433 else
4434   AR="$ac_cv_prog_AR"
4435 fi
4436
4437 if test -n "$ac_tool_prefix"; then
4438   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4439 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4440 echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4442 if test "${ac_cv_prog_RANLIB+set}" = set; then
4443   echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445   if test -n "$RANLIB"; then
4446   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451   IFS=$as_save_IFS
4452   test -z "$as_dir" && as_dir=.
4453   for ac_exec_ext in '' $ac_executable_extensions; do
4454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457     break 2
4458   fi
4459 done
4460 done
4461
4462 fi
4463 fi
4464 RANLIB=$ac_cv_prog_RANLIB
4465 if test -n "$RANLIB"; then
4466   echo "$as_me:$LINENO: result: $RANLIB" >&5
4467 echo "${ECHO_T}$RANLIB" >&6
4468 else
4469   echo "$as_me:$LINENO: result: no" >&5
4470 echo "${ECHO_T}no" >&6
4471 fi
4472
4473 fi
4474 if test -z "$ac_cv_prog_RANLIB"; then
4475   ac_ct_RANLIB=$RANLIB
4476   # Extract the first word of "ranlib", so it can be a program name with args.
4477 set dummy ranlib; ac_word=$2
4478 echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4480 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   if test -n "$ac_ct_RANLIB"; then
4484   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489   IFS=$as_save_IFS
4490   test -z "$as_dir" && as_dir=.
4491   for ac_exec_ext in '' $ac_executable_extensions; do
4492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493     ac_cv_prog_ac_ct_RANLIB="ranlib"
4494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495     break 2
4496   fi
4497 done
4498 done
4499
4500   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4501 fi
4502 fi
4503 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4504 if test -n "$ac_ct_RANLIB"; then
4505   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4506 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4507 else
4508   echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6
4510 fi
4511
4512   RANLIB=$ac_ct_RANLIB
4513 else
4514   RANLIB="$ac_cv_prog_RANLIB"
4515 fi
4516
4517 if test -n "$ac_tool_prefix"; then
4518   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4519 set dummy ${ac_tool_prefix}strip; ac_word=$2
4520 echo "$as_me:$LINENO: checking for $ac_word" >&5
4521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4522 if test "${ac_cv_prog_STRIP+set}" = set; then
4523   echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525   if test -n "$STRIP"; then
4526   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4530 do
4531   IFS=$as_save_IFS
4532   test -z "$as_dir" && as_dir=.
4533   for ac_exec_ext in '' $ac_executable_extensions; do
4534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4535     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537     break 2
4538   fi
4539 done
4540 done
4541
4542 fi
4543 fi
4544 STRIP=$ac_cv_prog_STRIP
4545 if test -n "$STRIP"; then
4546   echo "$as_me:$LINENO: result: $STRIP" >&5
4547 echo "${ECHO_T}$STRIP" >&6
4548 else
4549   echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6
4551 fi
4552
4553 fi
4554 if test -z "$ac_cv_prog_STRIP"; then
4555   ac_ct_STRIP=$STRIP
4556   # Extract the first word of "strip", so it can be a program name with args.
4557 set dummy strip; ac_word=$2
4558 echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4561   echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563   if test -n "$ac_ct_STRIP"; then
4564   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569   IFS=$as_save_IFS
4570   test -z "$as_dir" && as_dir=.
4571   for ac_exec_ext in '' $ac_executable_extensions; do
4572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573     ac_cv_prog_ac_ct_STRIP="strip"
4574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575     break 2
4576   fi
4577 done
4578 done
4579
4580   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4581 fi
4582 fi
4583 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4584 if test -n "$ac_ct_STRIP"; then
4585   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4586 echo "${ECHO_T}$ac_ct_STRIP" >&6
4587 else
4588   echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6
4590 fi
4591
4592   STRIP=$ac_ct_STRIP
4593 else
4594   STRIP="$ac_cv_prog_STRIP"
4595 fi
4596
4597 if test -n "$ac_tool_prefix"; then
4598   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4599 set dummy ${ac_tool_prefix}windres; ac_word=$2
4600 echo "$as_me:$LINENO: checking for $ac_word" >&5
4601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4602 if test "${ac_cv_prog_WINDRES+set}" = set; then
4603   echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605   if test -n "$WINDRES"; then
4606   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4607 else
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4610 do
4611   IFS=$as_save_IFS
4612   test -z "$as_dir" && as_dir=.
4613   for ac_exec_ext in '' $ac_executable_extensions; do
4614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4615     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617     break 2
4618   fi
4619 done
4620 done
4621
4622 fi
4623 fi
4624 WINDRES=$ac_cv_prog_WINDRES
4625 if test -n "$WINDRES"; then
4626   echo "$as_me:$LINENO: result: $WINDRES" >&5
4627 echo "${ECHO_T}$WINDRES" >&6
4628 else
4629   echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6
4631 fi
4632
4633 fi
4634 if test -z "$ac_cv_prog_WINDRES"; then
4635   ac_ct_WINDRES=$WINDRES
4636   # Extract the first word of "windres", so it can be a program name with args.
4637 set dummy windres; ac_word=$2
4638 echo "$as_me:$LINENO: checking for $ac_word" >&5
4639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4640 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4641   echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643   if test -n "$ac_ct_WINDRES"; then
4644   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649   IFS=$as_save_IFS
4650   test -z "$as_dir" && as_dir=.
4651   for ac_exec_ext in '' $ac_executable_extensions; do
4652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653     ac_cv_prog_ac_ct_WINDRES="windres"
4654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655     break 2
4656   fi
4657 done
4658 done
4659
4660   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4661 fi
4662 fi
4663 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4664 if test -n "$ac_ct_WINDRES"; then
4665   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4666 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4667 else
4668   echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6
4670 fi
4671
4672   WINDRES=$ac_ct_WINDRES
4673 else
4674   WINDRES="$ac_cv_prog_WINDRES"
4675 fi
4676
4677 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4678 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4679 LN_S=$as_ln_s
4680 if test "$LN_S" = "ln -s"; then
4681   echo "$as_me:$LINENO: result: yes" >&5
4682 echo "${ECHO_T}yes" >&6
4683 else
4684   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4685 echo "${ECHO_T}no, using $LN_S" >&6
4686 fi
4687
4688 echo "$as_me:$LINENO: checking whether ln works" >&5
4689 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4690 rm -f conf$$ conf$$.file
4691 echo >conf$$.file
4692 if ln conf$$.file conf$$ 2>/dev/null; then
4693   LN=ln
4694
4695   echo "$as_me:$LINENO: result: yes" >&5
4696 echo "${ECHO_T}yes" >&6
4697 else
4698   LN="cp -p"
4699
4700   echo "$as_me:$LINENO: result: no, using $LN" >&5
4701 echo "${ECHO_T}no, using $LN" >&6
4702 fi
4703 rm -f conf$$ conf$$.file
4704 # Extract the first word of "ldconfig", so it can be a program name with args.
4705 set dummy ldconfig; ac_word=$2
4706 echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4708 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4709   echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711   case $LDCONFIG in
4712   [\\/]* | ?:[\\/]*)
4713   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4714   ;;
4715   *)
4716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in /sbin /usr/sbin $PATH
4718 do
4719   IFS=$as_save_IFS
4720   test -z "$as_dir" && as_dir=.
4721   for ac_exec_ext in '' $ac_executable_extensions; do
4722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725     break 2
4726   fi
4727 done
4728 done
4729
4730   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4731   ;;
4732 esac
4733 fi
4734 LDCONFIG=$ac_cv_path_LDCONFIG
4735
4736 if test -n "$LDCONFIG"; then
4737   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4738 echo "${ECHO_T}$LDCONFIG" >&6
4739 else
4740   echo "$as_me:$LINENO: result: no" >&5
4741 echo "${ECHO_T}no" >&6
4742 fi
4743
4744 # Find a good install program.  We prefer a C program (faster),
4745 # so one script is as good as another.  But avoid the broken or
4746 # incompatible versions:
4747 # SysV /etc/install, /usr/sbin/install
4748 # SunOS /usr/etc/install
4749 # IRIX /sbin/install
4750 # AIX /bin/install
4751 # AmigaOS /C/install, which installs bootblocks on floppy discs
4752 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4753 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4754 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4755 # ./install, which can be erroneously created by make from ./install.sh.
4756 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4757 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4758 if test -z "$INSTALL"; then
4759 if test "${ac_cv_path_install+set}" = set; then
4760   echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765   IFS=$as_save_IFS
4766   test -z "$as_dir" && as_dir=.
4767   # Account for people who put trailing slashes in PATH elements.
4768 case $as_dir/ in
4769   ./ | .// | /cC/* | \
4770   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4771   /usr/ucb/* ) ;;
4772   *)
4773     # OSF1 and SCO ODT 3.0 have their own names for install.
4774     # Don't use installbsd from OSF since it installs stuff as root
4775     # by default.
4776     for ac_prog in ginstall scoinst install; do
4777       for ac_exec_ext in '' $ac_executable_extensions; do
4778         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4779           if test $ac_prog = install &&
4780             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4781             # AIX install.  It has an incompatible calling convention.
4782             :
4783           elif test $ac_prog = install &&
4784             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4785             # program-specific install script used by HP pwplus--don't use.
4786             :
4787           else
4788             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4789             break 3
4790           fi
4791         fi
4792       done
4793     done
4794     ;;
4795 esac
4796 done
4797
4798
4799 fi
4800   if test "${ac_cv_path_install+set}" = set; then
4801     INSTALL=$ac_cv_path_install
4802   else
4803     # As a last resort, use the slow shell script.  We don't cache a
4804     # path for INSTALL within a source directory, because that will
4805     # break other packages using the cache if that directory is
4806     # removed, or if the path is relative.
4807     INSTALL=$ac_install_sh
4808   fi
4809 fi
4810 echo "$as_me:$LINENO: result: $INSTALL" >&5
4811 echo "${ECHO_T}$INSTALL" >&6
4812
4813 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4814 # It thinks the first close brace ends the variable substitution.
4815 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4816
4817 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4818
4819 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4820
4821 case "$INSTALL" in
4822   [\\/$]* | ?:[\\/]* ) ;;
4823   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4824 esac
4825
4826 for ac_prog in lclint lint
4827 do
4828   # Extract the first word of "$ac_prog", so it can be a program name with args.
4829 set dummy $ac_prog; ac_word=$2
4830 echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4832 if test "${ac_cv_prog_LINT+set}" = set; then
4833   echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835   if test -n "$LINT"; then
4836   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4840 do
4841   IFS=$as_save_IFS
4842   test -z "$as_dir" && as_dir=.
4843   for ac_exec_ext in '' $ac_executable_extensions; do
4844   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4845     ac_cv_prog_LINT="$ac_prog"
4846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847     break 2
4848   fi
4849 done
4850 done
4851
4852 fi
4853 fi
4854 LINT=$ac_cv_prog_LINT
4855 if test -n "$LINT"; then
4856   echo "$as_me:$LINENO: result: $LINT" >&5
4857 echo "${ECHO_T}$LINT" >&6
4858 else
4859   echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6
4861 fi
4862
4863   test -n "$LINT" && break
4864 done
4865
4866 if test "$LINT" = "lint"
4867 then
4868   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4869   fi
4870
4871
4872
4873 for ac_prog in docbook2html db2html
4874 do
4875   # Extract the first word of "$ac_prog", so it can be a program name with args.
4876 set dummy $ac_prog; ac_word=$2
4877 echo "$as_me:$LINENO: checking for $ac_word" >&5
4878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4879 if test "${ac_cv_prog_DB2HTML+set}" = set; then
4880   echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882   if test -n "$DB2HTML"; then
4883   ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4884 else
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4887 do
4888   IFS=$as_save_IFS
4889   test -z "$as_dir" && as_dir=.
4890   for ac_exec_ext in '' $ac_executable_extensions; do
4891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4892     ac_cv_prog_DB2HTML="$ac_prog"
4893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4894     break 2
4895   fi
4896 done
4897 done
4898
4899 fi
4900 fi
4901 DB2HTML=$ac_cv_prog_DB2HTML
4902 if test -n "$DB2HTML"; then
4903   echo "$as_me:$LINENO: result: $DB2HTML" >&5
4904 echo "${ECHO_T}$DB2HTML" >&6
4905 else
4906   echo "$as_me:$LINENO: result: no" >&5
4907 echo "${ECHO_T}no" >&6
4908 fi
4909
4910   test -n "$DB2HTML" && break
4911 done
4912 test -n "$DB2HTML" || DB2HTML="false"
4913
4914
4915
4916 for ac_prog in docbook2pdf db2pdf
4917 do
4918   # Extract the first word of "$ac_prog", so it can be a program name with args.
4919 set dummy $ac_prog; ac_word=$2
4920 echo "$as_me:$LINENO: checking for $ac_word" >&5
4921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4922 if test "${ac_cv_prog_DB2PDF+set}" = set; then
4923   echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925   if test -n "$DB2PDF"; then
4926   ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4930 do
4931   IFS=$as_save_IFS
4932   test -z "$as_dir" && as_dir=.
4933   for ac_exec_ext in '' $ac_executable_extensions; do
4934   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4935     ac_cv_prog_DB2PDF="$ac_prog"
4936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937     break 2
4938   fi
4939 done
4940 done
4941
4942 fi
4943 fi
4944 DB2PDF=$ac_cv_prog_DB2PDF
4945 if test -n "$DB2PDF"; then
4946   echo "$as_me:$LINENO: result: $DB2PDF" >&5
4947 echo "${ECHO_T}$DB2PDF" >&6
4948 else
4949   echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6
4951 fi
4952
4953   test -n "$DB2PDF" && break
4954 done
4955 test -n "$DB2PDF" || DB2PDF="false"
4956
4957
4958
4959 for ac_prog in docbook2ps db2ps
4960 do
4961   # Extract the first word of "$ac_prog", so it can be a program name with args.
4962 set dummy $ac_prog; ac_word=$2
4963 echo "$as_me:$LINENO: checking for $ac_word" >&5
4964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4965 if test "${ac_cv_prog_DB2PS+set}" = set; then
4966   echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968   if test -n "$DB2PS"; then
4969   ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4970 else
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH
4973 do
4974   IFS=$as_save_IFS
4975   test -z "$as_dir" && as_dir=.
4976   for ac_exec_ext in '' $ac_executable_extensions; do
4977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978     ac_cv_prog_DB2PS="$ac_prog"
4979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4980     break 2
4981   fi
4982 done
4983 done
4984
4985 fi
4986 fi
4987 DB2PS=$ac_cv_prog_DB2PS
4988 if test -n "$DB2PS"; then
4989   echo "$as_me:$LINENO: result: $DB2PS" >&5
4990 echo "${ECHO_T}$DB2PS" >&6
4991 else
4992   echo "$as_me:$LINENO: result: no" >&5
4993 echo "${ECHO_T}no" >&6
4994 fi
4995
4996   test -n "$DB2PS" && break
4997 done
4998 test -n "$DB2PS" || DB2PS="false"
4999
5000
5001
5002
5003
5004 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
5005 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5006 if test "${ac_cv_lib_m_sqrt+set}" = set; then
5007   echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009   ac_check_lib_save_LIBS=$LIBS
5010 LIBS="-lm  $LIBS"
5011 cat >conftest.$ac_ext <<_ACEOF
5012 #line $LINENO "configure"
5013 /* confdefs.h.  */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h.  */
5018
5019 /* Override any gcc2 internal prototype to avoid an error.  */
5020 #ifdef __cplusplus
5021 extern "C"
5022 #endif
5023 /* We use char because int might match the return type of a gcc2
5024    builtin and then its argument prototype would still apply.  */
5025 char sqrt ();
5026 int
5027 main ()
5028 {
5029 sqrt ();
5030   ;
5031   return 0;
5032 }
5033 _ACEOF
5034 rm -f conftest.$ac_objext conftest$ac_exeext
5035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5036   (eval $ac_link) 2>&5
5037   ac_status=$?
5038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039   (exit $ac_status); } &&
5040          { ac_try='test -s conftest$ac_exeext'
5041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042   (eval $ac_try) 2>&5
5043   ac_status=$?
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); }; }; then
5046   ac_cv_lib_m_sqrt=yes
5047 else
5048   echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5050
5051 ac_cv_lib_m_sqrt=no
5052 fi
5053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5054 LIBS=$ac_check_lib_save_LIBS
5055 fi
5056 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
5057 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5058 if test $ac_cv_lib_m_sqrt = yes; then
5059   cat >>confdefs.h <<_ACEOF
5060 #define HAVE_LIBM 1
5061 _ACEOF
5062
5063   LIBS="-lm $LIBS"
5064
5065 fi
5066
5067
5068 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5069 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5070 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5071   echo $ECHO_N "(cached) $ECHO_C" >&6
5072 else
5073   ac_check_lib_save_LIBS=$LIBS
5074 LIBS="-li386  $LIBS"
5075 cat >conftest.$ac_ext <<_ACEOF
5076 #line $LINENO "configure"
5077 /* confdefs.h.  */
5078 _ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h.  */
5082
5083 /* Override any gcc2 internal prototype to avoid an error.  */
5084 #ifdef __cplusplus
5085 extern "C"
5086 #endif
5087 /* We use char because int might match the return type of a gcc2
5088    builtin and then its argument prototype would still apply.  */
5089 char i386_set_ldt ();
5090 int
5091 main ()
5092 {
5093 i386_set_ldt ();
5094   ;
5095   return 0;
5096 }
5097 _ACEOF
5098 rm -f conftest.$ac_objext conftest$ac_exeext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5100   (eval $ac_link) 2>&5
5101   ac_status=$?
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); } &&
5104          { ac_try='test -s conftest$ac_exeext'
5105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106   (eval $ac_try) 2>&5
5107   ac_status=$?
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); }; }; then
5110   ac_cv_lib_i386_i386_set_ldt=yes
5111 else
5112   echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5114
5115 ac_cv_lib_i386_i386_set_ldt=no
5116 fi
5117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5118 LIBS=$ac_check_lib_save_LIBS
5119 fi
5120 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5121 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5122 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5123   cat >>confdefs.h <<_ACEOF
5124 #define HAVE_LIBI386 1
5125 _ACEOF
5126
5127   LIBS="-li386 $LIBS"
5128
5129 fi
5130
5131
5132 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5133 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5134 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5135   echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137   ac_check_lib_save_LIBS=$LIBS
5138 LIBS="-lossaudio  $LIBS"
5139 cat >conftest.$ac_ext <<_ACEOF
5140 #line $LINENO "configure"
5141 /* confdefs.h.  */
5142 _ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h.  */
5146
5147 /* Override any gcc2 internal prototype to avoid an error.  */
5148 #ifdef __cplusplus
5149 extern "C"
5150 #endif
5151 /* We use char because int might match the return type of a gcc2
5152    builtin and then its argument prototype would still apply.  */
5153 char _oss_ioctl ();
5154 int
5155 main ()
5156 {
5157 _oss_ioctl ();
5158   ;
5159   return 0;
5160 }
5161 _ACEOF
5162 rm -f conftest.$ac_objext conftest$ac_exeext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5164   (eval $ac_link) 2>&5
5165   ac_status=$?
5166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167   (exit $ac_status); } &&
5168          { ac_try='test -s conftest$ac_exeext'
5169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170   (eval $ac_try) 2>&5
5171   ac_status=$?
5172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173   (exit $ac_status); }; }; then
5174   ac_cv_lib_ossaudio__oss_ioctl=yes
5175 else
5176   echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5178
5179 ac_cv_lib_ossaudio__oss_ioctl=no
5180 fi
5181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5182 LIBS=$ac_check_lib_save_LIBS
5183 fi
5184 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5185 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5186 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5187   cat >>confdefs.h <<_ACEOF
5188 #define HAVE_LIBOSSAUDIO 1
5189 _ACEOF
5190
5191   LIBS="-lossaudio $LIBS"
5192
5193 fi
5194
5195
5196 for ac_func in iswalnum
5197 do
5198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5199 echo "$as_me:$LINENO: checking for $ac_func" >&5
5200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5201 if eval "test \"\${$as_ac_var+set}\" = set"; then
5202   echo $ECHO_N "(cached) $ECHO_C" >&6
5203 else
5204   cat >conftest.$ac_ext <<_ACEOF
5205 #line $LINENO "configure"
5206 /* confdefs.h.  */
5207 _ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h.  */
5211 /* System header to define __stub macros and hopefully few prototypes,
5212     which can conflict with char $ac_func (); below.
5213     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5214     <limits.h> exists even on freestanding compilers.  */
5215 #ifdef __STDC__
5216 # include <limits.h>
5217 #else
5218 # include <assert.h>
5219 #endif
5220 /* Override any gcc2 internal prototype to avoid an error.  */
5221 #ifdef __cplusplus
5222 extern "C"
5223 {
5224 #endif
5225 /* We use char because int might match the return type of a gcc2
5226    builtin and then its argument prototype would still apply.  */
5227 char $ac_func ();
5228 /* The GNU C library defines this for functions which it implements
5229     to always fail with ENOSYS.  Some functions are actually named
5230     something starting with __ and the normal name is an alias.  */
5231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5232 choke me
5233 #else
5234 char (*f) () = $ac_func;
5235 #endif
5236 #ifdef __cplusplus
5237 }
5238 #endif
5239
5240 int
5241 main ()
5242 {
5243 return f != $ac_func;
5244   ;
5245   return 0;
5246 }
5247 _ACEOF
5248 rm -f conftest.$ac_objext conftest$ac_exeext
5249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5250   (eval $ac_link) 2>&5
5251   ac_status=$?
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); } &&
5254          { ac_try='test -s conftest$ac_exeext'
5255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256   (eval $ac_try) 2>&5
5257   ac_status=$?
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); }; }; then
5260   eval "$as_ac_var=yes"
5261 else
5262   echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5264
5265 eval "$as_ac_var=no"
5266 fi
5267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5268 fi
5269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5271 if test `eval echo '${'$as_ac_var'}'` = yes; then
5272   cat >>confdefs.h <<_ACEOF
5273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5274 _ACEOF
5275
5276 else
5277
5278 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5279 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5280 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5281   echo $ECHO_N "(cached) $ECHO_C" >&6
5282 else
5283   ac_check_lib_save_LIBS=$LIBS
5284 LIBS="-lw  $LIBS"
5285 cat >conftest.$ac_ext <<_ACEOF
5286 #line $LINENO "configure"
5287 /* confdefs.h.  */
5288 _ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h.  */
5292
5293 /* Override any gcc2 internal prototype to avoid an error.  */
5294 #ifdef __cplusplus
5295 extern "C"
5296 #endif
5297 /* We use char because int might match the return type of a gcc2
5298    builtin and then its argument prototype would still apply.  */
5299 char iswalnum ();
5300 int
5301 main ()
5302 {
5303 iswalnum ();
5304   ;
5305   return 0;
5306 }
5307 _ACEOF
5308 rm -f conftest.$ac_objext conftest$ac_exeext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310   (eval $ac_link) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); } &&
5314          { ac_try='test -s conftest$ac_exeext'
5315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316   (eval $ac_try) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); }; }; then
5320   ac_cv_lib_w_iswalnum=yes
5321 else
5322   echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5324
5325 ac_cv_lib_w_iswalnum=no
5326 fi
5327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5328 LIBS=$ac_check_lib_save_LIBS
5329 fi
5330 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
5331 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5332 if test $ac_cv_lib_w_iswalnum = yes; then
5333   cat >>confdefs.h <<_ACEOF
5334 #define HAVE_LIBW 1
5335 _ACEOF
5336
5337   LIBS="-lw $LIBS"
5338
5339 fi
5340
5341 fi
5342 done
5343
5344
5345 for ac_func in gethostbyname
5346 do
5347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5348 echo "$as_me:$LINENO: checking for $ac_func" >&5
5349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5350 if eval "test \"\${$as_ac_var+set}\" = set"; then
5351   echo $ECHO_N "(cached) $ECHO_C" >&6
5352 else
5353   cat >conftest.$ac_ext <<_ACEOF
5354 #line $LINENO "configure"
5355 /* confdefs.h.  */
5356 _ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h.  */
5360 /* System header to define __stub macros and hopefully few prototypes,
5361     which can conflict with char $ac_func (); below.
5362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5363     <limits.h> exists even on freestanding compilers.  */
5364 #ifdef __STDC__
5365 # include <limits.h>
5366 #else
5367 # include <assert.h>
5368 #endif
5369 /* Override any gcc2 internal prototype to avoid an error.  */
5370 #ifdef __cplusplus
5371 extern "C"
5372 {
5373 #endif
5374 /* We use char because int might match the return type of a gcc2
5375    builtin and then its argument prototype would still apply.  */
5376 char $ac_func ();
5377 /* The GNU C library defines this for functions which it implements
5378     to always fail with ENOSYS.  Some functions are actually named
5379     something starting with __ and the normal name is an alias.  */
5380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5381 choke me
5382 #else
5383 char (*f) () = $ac_func;
5384 #endif
5385 #ifdef __cplusplus
5386 }
5387 #endif
5388
5389 int
5390 main ()
5391 {
5392 return f != $ac_func;
5393   ;
5394   return 0;
5395 }
5396 _ACEOF
5397 rm -f conftest.$ac_objext conftest$ac_exeext
5398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5399   (eval $ac_link) 2>&5
5400   ac_status=$?
5401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); } &&
5403          { ac_try='test -s conftest$ac_exeext'
5404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405   (eval $ac_try) 2>&5
5406   ac_status=$?
5407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); }; }; then
5409   eval "$as_ac_var=yes"
5410 else
5411   echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5413
5414 eval "$as_ac_var=no"
5415 fi
5416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5417 fi
5418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5419 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5420 if test `eval echo '${'$as_ac_var'}'` = yes; then
5421   cat >>confdefs.h <<_ACEOF
5422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5423 _ACEOF
5424
5425 else
5426
5427 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5428 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5429 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5430   echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432   ac_check_lib_save_LIBS=$LIBS
5433 LIBS="-lnsl  $LIBS"
5434 cat >conftest.$ac_ext <<_ACEOF
5435 #line $LINENO "configure"
5436 /* confdefs.h.  */
5437 _ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h.  */
5441
5442 /* Override any gcc2 internal prototype to avoid an error.  */
5443 #ifdef __cplusplus
5444 extern "C"
5445 #endif
5446 /* We use char because int might match the return type of a gcc2
5447    builtin and then its argument prototype would still apply.  */
5448 char gethostbyname ();
5449 int
5450 main ()
5451 {
5452 gethostbyname ();
5453   ;
5454   return 0;
5455 }
5456 _ACEOF
5457 rm -f conftest.$ac_objext conftest$ac_exeext
5458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5459   (eval $ac_link) 2>&5
5460   ac_status=$?
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); } &&
5463          { ac_try='test -s conftest$ac_exeext'
5464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465   (eval $ac_try) 2>&5
5466   ac_status=$?
5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); }; }; then
5469   ac_cv_lib_nsl_gethostbyname=yes
5470 else
5471   echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5473
5474 ac_cv_lib_nsl_gethostbyname=no
5475 fi
5476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5477 LIBS=$ac_check_lib_save_LIBS
5478 fi
5479 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5480 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5481 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5482   cat >>confdefs.h <<_ACEOF
5483 #define HAVE_LIBNSL 1
5484 _ACEOF
5485
5486   LIBS="-lnsl $LIBS"
5487
5488 fi
5489
5490 fi
5491 done
5492
5493
5494 for ac_func in connect
5495 do
5496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5497 echo "$as_me:$LINENO: checking for $ac_func" >&5
5498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5499 if eval "test \"\${$as_ac_var+set}\" = set"; then
5500   echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502   cat >conftest.$ac_ext <<_ACEOF
5503 #line $LINENO "configure"
5504 /* confdefs.h.  */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h.  */
5509 /* System header to define __stub macros and hopefully few prototypes,
5510     which can conflict with char $ac_func (); below.
5511     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5512     <limits.h> exists even on freestanding compilers.  */
5513 #ifdef __STDC__
5514 # include <limits.h>
5515 #else
5516 # include <assert.h>
5517 #endif
5518 /* Override any gcc2 internal prototype to avoid an error.  */
5519 #ifdef __cplusplus
5520 extern "C"
5521 {
5522 #endif
5523 /* We use char because int might match the return type of a gcc2
5524    builtin and then its argument prototype would still apply.  */
5525 char $ac_func ();
5526 /* The GNU C library defines this for functions which it implements
5527     to always fail with ENOSYS.  Some functions are actually named
5528     something starting with __ and the normal name is an alias.  */
5529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5530 choke me
5531 #else
5532 char (*f) () = $ac_func;
5533 #endif
5534 #ifdef __cplusplus
5535 }
5536 #endif
5537
5538 int
5539 main ()
5540 {
5541 return f != $ac_func;
5542   ;
5543   return 0;
5544 }
5545 _ACEOF
5546 rm -f conftest.$ac_objext conftest$ac_exeext
5547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5548   (eval $ac_link) 2>&5
5549   ac_status=$?
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); } &&
5552          { ac_try='test -s conftest$ac_exeext'
5553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554   (eval $ac_try) 2>&5
5555   ac_status=$?
5556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557   (exit $ac_status); }; }; then
5558   eval "$as_ac_var=yes"
5559 else
5560   echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5562
5563 eval "$as_ac_var=no"
5564 fi
5565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5566 fi
5567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5568 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5569 if test `eval echo '${'$as_ac_var'}'` = yes; then
5570   cat >>confdefs.h <<_ACEOF
5571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5572 _ACEOF
5573
5574 else
5575
5576 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5577 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5578 if test "${ac_cv_lib_socket_connect+set}" = set; then
5579   echo $ECHO_N "(cached) $ECHO_C" >&6
5580 else
5581   ac_check_lib_save_LIBS=$LIBS
5582 LIBS="-lsocket  $LIBS"
5583 cat >conftest.$ac_ext <<_ACEOF
5584 #line $LINENO "configure"
5585 /* confdefs.h.  */
5586 _ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h.  */
5590
5591 /* Override any gcc2 internal prototype to avoid an error.  */
5592 #ifdef __cplusplus
5593 extern "C"
5594 #endif
5595 /* We use char because int might match the return type of a gcc2
5596    builtin and then its argument prototype would still apply.  */
5597 char connect ();
5598 int
5599 main ()
5600 {
5601 connect ();
5602   ;
5603   return 0;
5604 }
5605 _ACEOF
5606 rm -f conftest.$ac_objext conftest$ac_exeext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5608   (eval $ac_link) 2>&5
5609   ac_status=$?
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); } &&
5612          { ac_try='test -s conftest$ac_exeext'
5613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614   (eval $ac_try) 2>&5
5615   ac_status=$?
5616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617   (exit $ac_status); }; }; then
5618   ac_cv_lib_socket_connect=yes
5619 else
5620   echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5622
5623 ac_cv_lib_socket_connect=no
5624 fi
5625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5626 LIBS=$ac_check_lib_save_LIBS
5627 fi
5628 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5629 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5630 if test $ac_cv_lib_socket_connect = yes; then
5631   cat >>confdefs.h <<_ACEOF
5632 #define HAVE_LIBSOCKET 1
5633 _ACEOF
5634
5635   LIBS="-lsocket $LIBS"
5636
5637 fi
5638
5639 fi
5640 done
5641
5642
5643 for ac_func in inet_aton
5644 do
5645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5646 echo "$as_me:$LINENO: checking for $ac_func" >&5
5647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5648 if eval "test \"\${$as_ac_var+set}\" = set"; then
5649   echo $ECHO_N "(cached) $ECHO_C" >&6
5650 else
5651   cat >conftest.$ac_ext <<_ACEOF
5652 #line $LINENO "configure"
5653 /* confdefs.h.  */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h.  */
5658 /* System header to define __stub macros and hopefully few prototypes,
5659     which can conflict with char $ac_func (); below.
5660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5661     <limits.h> exists even on freestanding compilers.  */
5662 #ifdef __STDC__
5663 # include <limits.h>
5664 #else
5665 # include <assert.h>
5666 #endif
5667 /* Override any gcc2 internal prototype to avoid an error.  */
5668 #ifdef __cplusplus
5669 extern "C"
5670 {
5671 #endif
5672 /* We use char because int might match the return type of a gcc2
5673    builtin and then its argument prototype would still apply.  */
5674 char $ac_func ();
5675 /* The GNU C library defines this for functions which it implements
5676     to always fail with ENOSYS.  Some functions are actually named
5677     something starting with __ and the normal name is an alias.  */
5678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5679 choke me
5680 #else
5681 char (*f) () = $ac_func;
5682 #endif
5683 #ifdef __cplusplus
5684 }
5685 #endif
5686
5687 int
5688 main ()
5689 {
5690 return f != $ac_func;
5691   ;
5692   return 0;
5693 }
5694 _ACEOF
5695 rm -f conftest.$ac_objext conftest$ac_exeext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5697   (eval $ac_link) 2>&5
5698   ac_status=$?
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); } &&
5701          { ac_try='test -s conftest$ac_exeext'
5702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703   (eval $ac_try) 2>&5
5704   ac_status=$?
5705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706   (exit $ac_status); }; }; then
5707   eval "$as_ac_var=yes"
5708 else
5709   echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5711
5712 eval "$as_ac_var=no"
5713 fi
5714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5715 fi
5716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5718 if test `eval echo '${'$as_ac_var'}'` = yes; then
5719   cat >>confdefs.h <<_ACEOF
5720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5721 _ACEOF
5722
5723 else
5724
5725 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5726 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5727 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5728   echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730   ac_check_lib_save_LIBS=$LIBS
5731 LIBS="-lresolv  $LIBS"
5732 cat >conftest.$ac_ext <<_ACEOF
5733 #line $LINENO "configure"
5734 /* confdefs.h.  */
5735 _ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h.  */
5739
5740 /* Override any gcc2 internal prototype to avoid an error.  */
5741 #ifdef __cplusplus
5742 extern "C"
5743 #endif
5744 /* We use char because int might match the return type of a gcc2
5745    builtin and then its argument prototype would still apply.  */
5746 char inet_aton ();
5747 int
5748 main ()
5749 {
5750 inet_aton ();
5751   ;
5752   return 0;
5753 }
5754 _ACEOF
5755 rm -f conftest.$ac_objext conftest$ac_exeext
5756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5757   (eval $ac_link) 2>&5
5758   ac_status=$?
5759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760   (exit $ac_status); } &&
5761          { ac_try='test -s conftest$ac_exeext'
5762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763   (eval $ac_try) 2>&5
5764   ac_status=$?
5765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766   (exit $ac_status); }; }; then
5767   ac_cv_lib_resolv_inet_aton=yes
5768 else
5769   echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.$ac_ext >&5
5771
5772 ac_cv_lib_resolv_inet_aton=no
5773 fi
5774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5775 LIBS=$ac_check_lib_save_LIBS
5776 fi
5777 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5778 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5779 if test $ac_cv_lib_resolv_inet_aton = yes; then
5780   cat >>confdefs.h <<_ACEOF
5781 #define HAVE_LIBRESOLV 1
5782 _ACEOF
5783
5784   LIBS="-lresolv $LIBS"
5785
5786 fi
5787
5788 fi
5789 done
5790
5791
5792 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5793 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5794 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5795   echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797   ac_check_lib_save_LIBS=$LIBS
5798 LIBS="-lxpg4  $LIBS"
5799 cat >conftest.$ac_ext <<_ACEOF
5800 #line $LINENO "configure"
5801 /* confdefs.h.  */
5802 _ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h.  */
5806
5807 /* Override any gcc2 internal prototype to avoid an error.  */
5808 #ifdef __cplusplus
5809 extern "C"
5810 #endif
5811 /* We use char because int might match the return type of a gcc2
5812    builtin and then its argument prototype would still apply.  */
5813 char _xpg4_setrunelocale ();
5814 int
5815 main ()
5816 {
5817 _xpg4_setrunelocale ();
5818   ;
5819   return 0;
5820 }
5821 _ACEOF
5822 rm -f conftest.$ac_objext conftest$ac_exeext
5823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5824   (eval $ac_link) 2>&5
5825   ac_status=$?
5826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827   (exit $ac_status); } &&
5828          { ac_try='test -s conftest$ac_exeext'
5829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830   (eval $ac_try) 2>&5
5831   ac_status=$?
5832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833   (exit $ac_status); }; }; then
5834   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5835 else
5836   echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.$ac_ext >&5
5838
5839 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5840 fi
5841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5842 LIBS=$ac_check_lib_save_LIBS
5843 fi
5844 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5845 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5846 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5847   cat >>confdefs.h <<_ACEOF
5848 #define HAVE_LIBXPG4 1
5849 _ACEOF
5850
5851   LIBS="-lxpg4 $LIBS"
5852
5853 fi
5854
5855
5856 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5857 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5858 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5859   echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861   ac_check_lib_save_LIBS=$LIBS
5862 LIBS="-lmmap  $LIBS"
5863 cat >conftest.$ac_ext <<_ACEOF
5864 #line $LINENO "configure"
5865 /* confdefs.h.  */
5866 _ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h.  */
5870
5871 /* Override any gcc2 internal prototype to avoid an error.  */
5872 #ifdef __cplusplus
5873 extern "C"
5874 #endif
5875 /* We use char because int might match the return type of a gcc2
5876    builtin and then its argument prototype would still apply.  */
5877 char mmap ();
5878 int
5879 main ()
5880 {
5881 mmap ();
5882   ;
5883   return 0;
5884 }
5885 _ACEOF
5886 rm -f conftest.$ac_objext conftest$ac_exeext
5887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5888   (eval $ac_link) 2>&5
5889   ac_status=$?
5890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891   (exit $ac_status); } &&
5892          { ac_try='test -s conftest$ac_exeext'
5893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894   (eval $ac_try) 2>&5
5895   ac_status=$?
5896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); }; }; then
5898   ac_cv_lib_mmap_mmap=yes
5899 else
5900   echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5902
5903 ac_cv_lib_mmap_mmap=no
5904 fi
5905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5906 LIBS=$ac_check_lib_save_LIBS
5907 fi
5908 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5909 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5910 if test $ac_cv_lib_mmap_mmap = yes; then
5911   cat >>confdefs.h <<_ACEOF
5912 #define HAVE_LIBMMAP 1
5913 _ACEOF
5914
5915   LIBS="-lmmap $LIBS"
5916
5917 fi
5918
5919
5920 JPEGLIB=""
5921
5922 echo "$as_me:$LINENO: checking for egrep" >&5
5923 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5924 if test "${ac_cv_prog_egrep+set}" = set; then
5925   echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5928     then ac_cv_prog_egrep='grep -E'
5929     else ac_cv_prog_egrep='egrep'
5930     fi
5931 fi
5932 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5933 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5934  EGREP=$ac_cv_prog_egrep
5935
5936
5937 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5938 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5939 if test "${ac_cv_header_stdc+set}" = set; then
5940   echo $ECHO_N "(cached) $ECHO_C" >&6
5941 else
5942   cat >conftest.$ac_ext <<_ACEOF
5943 #line $LINENO "configure"
5944 /* confdefs.h.  */
5945 _ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h.  */
5949 #include <stdlib.h>
5950 #include <stdarg.h>
5951 #include <string.h>
5952 #include <float.h>
5953
5954 int
5955 main ()
5956 {
5957
5958   ;
5959   return 0;
5960 }
5961 _ACEOF
5962 rm -f conftest.$ac_objext
5963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964   (eval $ac_compile) 2>&5
5965   ac_status=$?
5966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967   (exit $ac_status); } &&
5968          { ac_try='test -s conftest.$ac_objext'
5969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970   (eval $ac_try) 2>&5
5971   ac_status=$?
5972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973   (exit $ac_status); }; }; then
5974   ac_cv_header_stdc=yes
5975 else
5976   echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5978
5979 ac_cv_header_stdc=no
5980 fi
5981 rm -f conftest.$ac_objext conftest.$ac_ext
5982
5983 if test $ac_cv_header_stdc = yes; then
5984   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5985   cat >conftest.$ac_ext <<_ACEOF
5986 #line $LINENO "configure"
5987 /* confdefs.h.  */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h.  */
5992 #include <string.h>
5993
5994 _ACEOF
5995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5996   $EGREP "memchr" >/dev/null 2>&1; then
5997   :
5998 else
5999   ac_cv_header_stdc=no
6000 fi
6001 rm -f conftest*
6002
6003 fi
6004
6005 if test $ac_cv_header_stdc = yes; then
6006   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6007   cat >conftest.$ac_ext <<_ACEOF
6008 #line $LINENO "configure"
6009 /* confdefs.h.  */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h.  */
6014 #include <stdlib.h>
6015
6016 _ACEOF
6017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6018   $EGREP "free" >/dev/null 2>&1; then
6019   :
6020 else
6021   ac_cv_header_stdc=no
6022 fi
6023 rm -f conftest*
6024
6025 fi
6026
6027 if test $ac_cv_header_stdc = yes; then
6028   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6029   if test "$cross_compiling" = yes; then
6030   :
6031 else
6032   cat >conftest.$ac_ext <<_ACEOF
6033 #line $LINENO "configure"
6034 /* confdefs.h.  */
6035 _ACEOF
6036 cat confdefs.h >>conftest.$ac_ext
6037 cat >>conftest.$ac_ext <<_ACEOF
6038 /* end confdefs.h.  */
6039 #include <ctype.h>
6040 #if ((' ' & 0x0FF) == 0x020)
6041 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6042 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6043 #else
6044 # define ISLOWER(c) \
6045                    (('a' <= (c) && (c) <= 'i') \
6046                      || ('j' <= (c) && (c) <= 'r') \
6047                      || ('s' <= (c) && (c) <= 'z'))
6048 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6049 #endif
6050
6051 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6052 int
6053 main ()
6054 {
6055   int i;
6056   for (i = 0; i < 256; i++)
6057     if (XOR (islower (i), ISLOWER (i))
6058         || toupper (i) != TOUPPER (i))
6059       exit(2);
6060   exit (0);
6061 }
6062 _ACEOF
6063 rm -f conftest$ac_exeext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6065   (eval $ac_link) 2>&5
6066   ac_status=$?
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070   (eval $ac_try) 2>&5
6071   ac_status=$?
6072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073   (exit $ac_status); }; }; then
6074   :
6075 else
6076   echo "$as_me: program exited with status $ac_status" >&5
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6079
6080 ( exit $ac_status )
6081 ac_cv_header_stdc=no
6082 fi
6083 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6084 fi
6085 fi
6086 fi
6087 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6088 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6089 if test $ac_cv_header_stdc = yes; then
6090
6091 cat >>confdefs.h <<\_ACEOF
6092 #define STDC_HEADERS 1
6093 _ACEOF
6094
6095 fi
6096
6097 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6108                   inttypes.h stdint.h unistd.h
6109 do
6110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6111 echo "$as_me:$LINENO: checking for $ac_header" >&5
6112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6114   echo $ECHO_N "(cached) $ECHO_C" >&6
6115 else
6116   cat >conftest.$ac_ext <<_ACEOF
6117 #line $LINENO "configure"
6118 /* confdefs.h.  */
6119 _ACEOF
6120 cat confdefs.h >>conftest.$ac_ext
6121 cat >>conftest.$ac_ext <<_ACEOF
6122 /* end confdefs.h.  */
6123 $ac_includes_default
6124
6125 #include <$ac_header>
6126 _ACEOF
6127 rm -f conftest.$ac_objext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129   (eval $ac_compile) 2>&5
6130   ac_status=$?
6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132   (exit $ac_status); } &&
6133          { ac_try='test -s conftest.$ac_objext'
6134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135   (eval $ac_try) 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); }; }; then
6139   eval "$as_ac_Header=yes"
6140 else
6141   echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144 eval "$as_ac_Header=no"
6145 fi
6146 rm -f conftest.$ac_objext conftest.$ac_ext
6147 fi
6148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6151   cat >>confdefs.h <<_ACEOF
6152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6153 _ACEOF
6154
6155 fi
6156
6157 done
6158
6159
6160
6161 for ac_header in jpeglib.h
6162 do
6163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6165   echo "$as_me:$LINENO: checking for $ac_header" >&5
6166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6168   echo $ECHO_N "(cached) $ECHO_C" >&6
6169 fi
6170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6172 else
6173   # Is the header compilable?
6174 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6176 cat >conftest.$ac_ext <<_ACEOF
6177 #line $LINENO "configure"
6178 /* confdefs.h.  */
6179 _ACEOF
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h.  */
6183 $ac_includes_default
6184 #include <$ac_header>
6185 _ACEOF
6186 rm -f conftest.$ac_objext
6187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6188   (eval $ac_compile) 2>&5
6189   ac_status=$?
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); } &&
6192          { ac_try='test -s conftest.$ac_objext'
6193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194   (eval $ac_try) 2>&5
6195   ac_status=$?
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); }; }; then
6198   ac_header_compiler=yes
6199 else
6200   echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6202
6203 ac_header_compiler=no
6204 fi
6205 rm -f conftest.$ac_objext conftest.$ac_ext
6206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6207 echo "${ECHO_T}$ac_header_compiler" >&6
6208
6209 # Is the header present?
6210 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6211 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
6220 _ACEOF
6221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6222   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6223   ac_status=$?
6224   grep -v '^ *+' conftest.er1 >conftest.err
6225   rm -f conftest.er1
6226   cat conftest.err >&5
6227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228   (exit $ac_status); } >/dev/null; then
6229   if test -s conftest.err; then
6230     ac_cpp_err=$ac_c_preproc_warn_flag
6231   else
6232     ac_cpp_err=
6233   fi
6234 else
6235   ac_cpp_err=yes
6236 fi
6237 if test -z "$ac_cpp_err"; then
6238   ac_header_preproc=yes
6239 else
6240   echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6242
6243   ac_header_preproc=no
6244 fi
6245 rm -f conftest.err conftest.$ac_ext
6246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6247 echo "${ECHO_T}$ac_header_preproc" >&6
6248
6249 # So?  What about this header?
6250 case $ac_header_compiler:$ac_header_preproc in
6251   yes:no )
6252     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6256     (
6257       cat <<\_ASBOX
6258 ## ------------------------------------ ##
6259 ## Report this to bug-autoconf@gnu.org. ##
6260 ## ------------------------------------ ##
6261 _ASBOX
6262     ) |
6263       sed "s/^/$as_me: WARNING:     /" >&2
6264     ;;
6265   no:yes )
6266     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6268     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6272     (
6273       cat <<\_ASBOX
6274 ## ------------------------------------ ##
6275 ## Report this to bug-autoconf@gnu.org. ##
6276 ## ------------------------------------ ##
6277 _ASBOX
6278     ) |
6279       sed "s/^/$as_me: WARNING:     /" >&2
6280     ;;
6281 esac
6282 echo "$as_me:$LINENO: checking for $ac_header" >&5
6283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6285   echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287   eval "$as_ac_Header=$ac_header_preproc"
6288 fi
6289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6291
6292 fi
6293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6294   cat >>confdefs.h <<_ACEOF
6295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6296 _ACEOF
6297  echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
6298 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6299 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6300   echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302   ac_check_lib_save_LIBS=$LIBS
6303 LIBS="-ljpeg  $LIBS"
6304 cat >conftest.$ac_ext <<_ACEOF
6305 #line $LINENO "configure"
6306 /* confdefs.h.  */
6307 _ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h.  */
6311
6312 /* Override any gcc2 internal prototype to avoid an error.  */
6313 #ifdef __cplusplus
6314 extern "C"
6315 #endif
6316 /* We use char because int might match the return type of a gcc2
6317    builtin and then its argument prototype would still apply.  */
6318 char jpeg_start_decompress ();
6319 int
6320 main ()
6321 {
6322 jpeg_start_decompress ();
6323   ;
6324   return 0;
6325 }
6326 _ACEOF
6327 rm -f conftest.$ac_objext conftest$ac_exeext
6328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6329   (eval $ac_link) 2>&5
6330   ac_status=$?
6331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332   (exit $ac_status); } &&
6333          { ac_try='test -s conftest$ac_exeext'
6334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335   (eval $ac_try) 2>&5
6336   ac_status=$?
6337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338   (exit $ac_status); }; }; then
6339   ac_cv_lib_jpeg_jpeg_start_decompress=yes
6340 else
6341   echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6343
6344 ac_cv_lib_jpeg_jpeg_start_decompress=no
6345 fi
6346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6347 LIBS=$ac_check_lib_save_LIBS
6348 fi
6349 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
6350 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6351 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
6352
6353 cat >>confdefs.h <<\_ACEOF
6354 #define HAVE_LIBJPEG 1
6355 _ACEOF
6356
6357         JPEGLIB="-ljpeg"
6358
6359 fi
6360
6361
6362 fi
6363
6364 done
6365
6366
6367 GIFLIB=""
6368
6369
6370 for ac_header in gif_lib.h
6371 do
6372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6374   echo "$as_me:$LINENO: checking for $ac_header" >&5
6375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6377   echo $ECHO_N "(cached) $ECHO_C" >&6
6378 fi
6379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6381 else
6382   # Is the header compilable?
6383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6385 cat >conftest.$ac_ext <<_ACEOF
6386 #line $LINENO "configure"
6387 /* confdefs.h.  */
6388 _ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h.  */
6392 $ac_includes_default
6393 #include <$ac_header>
6394 _ACEOF
6395 rm -f conftest.$ac_objext
6396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6397   (eval $ac_compile) 2>&5
6398   ac_status=$?
6399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400   (exit $ac_status); } &&
6401          { ac_try='test -s conftest.$ac_objext'
6402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403   (eval $ac_try) 2>&5
6404   ac_status=$?
6405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406   (exit $ac_status); }; }; then
6407   ac_header_compiler=yes
6408 else
6409   echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6411
6412 ac_header_compiler=no
6413 fi
6414 rm -f conftest.$ac_objext conftest.$ac_ext
6415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6416 echo "${ECHO_T}$ac_header_compiler" >&6
6417
6418 # Is the header present?
6419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6420 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
6429 _ACEOF
6430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6431   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6432   ac_status=$?
6433   grep -v '^ *+' conftest.er1 >conftest.err
6434   rm -f conftest.er1
6435   cat conftest.err >&5
6436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437   (exit $ac_status); } >/dev/null; then
6438   if test -s conftest.err; then
6439     ac_cpp_err=$ac_c_preproc_warn_flag
6440   else
6441     ac_cpp_err=
6442   fi
6443 else
6444   ac_cpp_err=yes
6445 fi
6446 if test -z "$ac_cpp_err"; then
6447   ac_header_preproc=yes
6448 else
6449   echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6451
6452   ac_header_preproc=no
6453 fi
6454 rm -f conftest.err conftest.$ac_ext
6455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6456 echo "${ECHO_T}$ac_header_preproc" >&6
6457
6458 # So?  What about this header?
6459 case $ac_header_compiler:$ac_header_preproc in
6460   yes:no )
6461     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6465     (
6466       cat <<\_ASBOX
6467 ## ------------------------------------ ##
6468 ## Report this to bug-autoconf@gnu.org. ##
6469 ## ------------------------------------ ##
6470 _ASBOX
6471     ) |
6472       sed "s/^/$as_me: WARNING:     /" >&2
6473     ;;
6474   no:yes )
6475     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6477     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6479     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6481     (
6482       cat <<\_ASBOX
6483 ## ------------------------------------ ##
6484 ## Report this to bug-autoconf@gnu.org. ##
6485 ## ------------------------------------ ##
6486 _ASBOX
6487     ) |
6488       sed "s/^/$as_me: WARNING:     /" >&2
6489     ;;
6490 esac
6491 echo "$as_me:$LINENO: checking for $ac_header" >&5
6492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6494   echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496   eval "$as_ac_Header=$ac_header_preproc"
6497 fi
6498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6500
6501 fi
6502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6503   cat >>confdefs.h <<_ACEOF
6504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6505 _ACEOF
6506  echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
6507 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
6508 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
6509   echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6511   ac_check_lib_save_LIBS=$LIBS
6512 LIBS="-lungif  $LIBS"
6513 cat >conftest.$ac_ext <<_ACEOF
6514 #line $LINENO "configure"
6515 /* confdefs.h.  */
6516 _ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h.  */
6520
6521 /* Override any gcc2 internal prototype to avoid an error.  */
6522 #ifdef __cplusplus
6523 extern "C"
6524 #endif
6525 /* We use char because int might match the return type of a gcc2
6526    builtin and then its argument prototype would still apply.  */
6527 char DGifOpen ();
6528 int
6529 main ()
6530 {
6531 DGifOpen ();
6532   ;
6533   return 0;
6534 }
6535 _ACEOF
6536 rm -f conftest.$ac_objext conftest$ac_exeext
6537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6538   (eval $ac_link) 2>&5
6539   ac_status=$?
6540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541   (exit $ac_status); } &&
6542          { ac_try='test -s conftest$ac_exeext'
6543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544   (eval $ac_try) 2>&5
6545   ac_status=$?
6546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547   (exit $ac_status); }; }; then
6548   ac_cv_lib_ungif_DGifOpen=yes
6549 else
6550   echo "$as_me: failed program was:" >&5
6551 sed 's/^/| /' conftest.$ac_ext >&5
6552
6553 ac_cv_lib_ungif_DGifOpen=no
6554 fi
6555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6556 LIBS=$ac_check_lib_save_LIBS
6557 fi
6558 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
6559 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
6560 if test $ac_cv_lib_ungif_DGifOpen = yes; then
6561
6562 cat >>confdefs.h <<\_ACEOF
6563 #define HAVE_LIBGIF 1
6564 _ACEOF
6565
6566          GIFLIB="-lungif"
6567 else
6568   echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
6569 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
6570 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
6571   echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573   ac_check_lib_save_LIBS=$LIBS
6574 LIBS="-lgif  $LIBS"
6575 cat >conftest.$ac_ext <<_ACEOF
6576 #line $LINENO "configure"
6577 /* confdefs.h.  */
6578 _ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h.  */
6582
6583 /* Override any gcc2 internal prototype to avoid an error.  */
6584 #ifdef __cplusplus
6585 extern "C"
6586 #endif
6587 /* We use char because int might match the return type of a gcc2
6588    builtin and then its argument prototype would still apply.  */
6589 char DGifOpen ();
6590 int
6591 main ()
6592 {
6593 DGifOpen ();
6594   ;
6595   return 0;
6596 }
6597 _ACEOF
6598 rm -f conftest.$ac_objext conftest$ac_exeext
6599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6600   (eval $ac_link) 2>&5
6601   ac_status=$?
6602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603   (exit $ac_status); } &&
6604          { ac_try='test -s conftest$ac_exeext'
6605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606   (eval $ac_try) 2>&5
6607   ac_status=$?
6608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609   (exit $ac_status); }; }; then
6610   ac_cv_lib_gif_DGifOpen=yes
6611 else
6612   echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6614
6615 ac_cv_lib_gif_DGifOpen=no
6616 fi
6617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6618 LIBS=$ac_check_lib_save_LIBS
6619 fi
6620 echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
6621 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
6622 if test $ac_cv_lib_gif_DGifOpen = yes; then
6623   cat >>confdefs.h <<\_ACEOF
6624 #define HAVE_LIBGIF 1
6625 _ACEOF
6626
6627                        GIFLIB="-lgif"
6628 fi
6629
6630 fi
6631
6632 fi
6633
6634 done
6635
6636
6637
6638
6639 XFILES=""
6640
6641 OPENGLFILES=""
6642
6643 GLU32FILES=""
6644
6645 OPENGL_LIBS=""
6646 if test "$have_x" = "yes"
6647 then
6648     XLIB="-lXext -lX11"
6649     ac_save_CPPFLAGS="$CPPFLAGS"
6650     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6651
6652
6653 for ac_header in X11/Xlib.h
6654 do
6655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6657   echo "$as_me:$LINENO: checking for $ac_header" >&5
6658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6660   echo $ECHO_N "(cached) $ECHO_C" >&6
6661 fi
6662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6664 else
6665   # Is the header compilable?
6666 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6668 cat >conftest.$ac_ext <<_ACEOF
6669 #line $LINENO "configure"
6670 /* confdefs.h.  */
6671 _ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h.  */
6675 $ac_includes_default
6676 #include <$ac_header>
6677 _ACEOF
6678 rm -f conftest.$ac_objext
6679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6680   (eval $ac_compile) 2>&5
6681   ac_status=$?
6682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683   (exit $ac_status); } &&
6684          { ac_try='test -s conftest.$ac_objext'
6685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686   (eval $ac_try) 2>&5
6687   ac_status=$?
6688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689   (exit $ac_status); }; }; then
6690   ac_header_compiler=yes
6691 else
6692   echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6694
6695 ac_header_compiler=no
6696 fi
6697 rm -f conftest.$ac_objext conftest.$ac_ext
6698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6699 echo "${ECHO_T}$ac_header_compiler" >&6
6700
6701 # Is the header present?
6702 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6703 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
6712 _ACEOF
6713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6714   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6715   ac_status=$?
6716   grep -v '^ *+' conftest.er1 >conftest.err
6717   rm -f conftest.er1
6718   cat conftest.err >&5
6719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720   (exit $ac_status); } >/dev/null; then
6721   if test -s conftest.err; then
6722     ac_cpp_err=$ac_c_preproc_warn_flag
6723   else
6724     ac_cpp_err=
6725   fi
6726 else
6727   ac_cpp_err=yes
6728 fi
6729 if test -z "$ac_cpp_err"; then
6730   ac_header_preproc=yes
6731 else
6732   echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6734
6735   ac_header_preproc=no
6736 fi
6737 rm -f conftest.err conftest.$ac_ext
6738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6739 echo "${ECHO_T}$ac_header_preproc" >&6
6740
6741 # So?  What about this header?
6742 case $ac_header_compiler:$ac_header_preproc in
6743   yes:no )
6744     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6745 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6746     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6748     (
6749       cat <<\_ASBOX
6750 ## ------------------------------------ ##
6751 ## Report this to bug-autoconf@gnu.org. ##
6752 ## ------------------------------------ ##
6753 _ASBOX
6754     ) |
6755       sed "s/^/$as_me: WARNING:     /" >&2
6756     ;;
6757   no:yes )
6758     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6760     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6762     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6764     (
6765       cat <<\_ASBOX
6766 ## ------------------------------------ ##
6767 ## Report this to bug-autoconf@gnu.org. ##
6768 ## ------------------------------------ ##
6769 _ASBOX
6770     ) |
6771       sed "s/^/$as_me: WARNING:     /" >&2
6772     ;;
6773 esac
6774 echo "$as_me:$LINENO: checking for $ac_header" >&5
6775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6777   echo $ECHO_N "(cached) $ECHO_C" >&6
6778 else
6779   eval "$as_ac_Header=$ac_header_preproc"
6780 fi
6781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6783
6784 fi
6785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6786   cat >>confdefs.h <<_ACEOF
6787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6788 _ACEOF
6789
6790
6791 for ac_header in X11/XKBlib.h
6792 do
6793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6794 echo "$as_me:$LINENO: checking for $ac_header" >&5
6795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6797   echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799   cat >conftest.$ac_ext <<_ACEOF
6800 #line $LINENO "configure"
6801 /* confdefs.h.  */
6802 _ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h.  */
6806 #include <X11/Xlib.h>
6807
6808 #include <$ac_header>
6809 _ACEOF
6810 rm -f conftest.$ac_objext
6811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6812   (eval $ac_compile) 2>&5
6813   ac_status=$?
6814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815   (exit $ac_status); } &&
6816          { ac_try='test -s conftest.$ac_objext'
6817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818   (eval $ac_try) 2>&5
6819   ac_status=$?
6820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); }; }; then
6822   eval "$as_ac_Header=yes"
6823 else
6824   echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6826
6827 eval "$as_ac_Header=no"
6828 fi
6829 rm -f conftest.$ac_objext conftest.$ac_ext
6830 fi
6831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6834   cat >>confdefs.h <<_ACEOF
6835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6836 _ACEOF
6837                 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6838 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6839 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6840   echo $ECHO_N "(cached) $ECHO_C" >&6
6841 else
6842   ac_check_lib_save_LIBS=$LIBS
6843 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6844 cat >conftest.$ac_ext <<_ACEOF
6845 #line $LINENO "configure"
6846 /* confdefs.h.  */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h.  */
6851
6852 /* Override any gcc2 internal prototype to avoid an error.  */
6853 #ifdef __cplusplus
6854 extern "C"
6855 #endif
6856 /* We use char because int might match the return type of a gcc2
6857    builtin and then its argument prototype would still apply.  */
6858 char XkbQueryExtension ();
6859 int
6860 main ()
6861 {
6862 XkbQueryExtension ();
6863   ;
6864   return 0;
6865 }
6866 _ACEOF
6867 rm -f conftest.$ac_objext conftest$ac_exeext
6868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6869   (eval $ac_link) 2>&5
6870   ac_status=$?
6871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872   (exit $ac_status); } &&
6873          { ac_try='test -s conftest$ac_exeext'
6874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875   (eval $ac_try) 2>&5
6876   ac_status=$?
6877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878   (exit $ac_status); }; }; then
6879   ac_cv_lib_X11_XkbQueryExtension=yes
6880 else
6881   echo "$as_me: failed program was:" >&5
6882 sed 's/^/| /' conftest.$ac_ext >&5
6883
6884 ac_cv_lib_X11_XkbQueryExtension=no
6885 fi
6886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6887 LIBS=$ac_check_lib_save_LIBS
6888 fi
6889 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6890 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6891 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6892
6893 cat >>confdefs.h <<\_ACEOF
6894 #define HAVE_XKB 1
6895 _ACEOF
6896
6897 fi
6898
6899
6900 else
6901   { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6902 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6903 fi
6904
6905 done
6906
6907
6908
6909 for ac_header in X11/extensions/XShm.h
6910 do
6911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6912 echo "$as_me:$LINENO: checking for $ac_header" >&5
6913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6915   echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917   cat >conftest.$ac_ext <<_ACEOF
6918 #line $LINENO "configure"
6919 /* confdefs.h.  */
6920 _ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h.  */
6924 #include <X11/Xlib.h>
6925
6926 #include <$ac_header>
6927 _ACEOF
6928 rm -f conftest.$ac_objext
6929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6930   (eval $ac_compile) 2>&5
6931   ac_status=$?
6932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933   (exit $ac_status); } &&
6934          { ac_try='test -s conftest.$ac_objext'
6935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936   (eval $ac_try) 2>&5
6937   ac_status=$?
6938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939   (exit $ac_status); }; }; then
6940   eval "$as_ac_Header=yes"
6941 else
6942   echo "$as_me: failed program was:" >&5
6943 sed 's/^/| /' conftest.$ac_ext >&5
6944
6945 eval "$as_ac_Header=no"
6946 fi
6947 rm -f conftest.$ac_objext conftest.$ac_ext
6948 fi
6949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6952   cat >>confdefs.h <<_ACEOF
6953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6954 _ACEOF
6955                 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6956 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6957 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6958   echo $ECHO_N "(cached) $ECHO_C" >&6
6959 else
6960   ac_check_lib_save_LIBS=$LIBS
6961 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6962 cat >conftest.$ac_ext <<_ACEOF
6963 #line $LINENO "configure"
6964 /* confdefs.h.  */
6965 _ACEOF
6966 cat confdefs.h >>conftest.$ac_ext
6967 cat >>conftest.$ac_ext <<_ACEOF
6968 /* end confdefs.h.  */
6969
6970 /* Override any gcc2 internal prototype to avoid an error.  */
6971 #ifdef __cplusplus
6972 extern "C"
6973 #endif
6974 /* We use char because int might match the return type of a gcc2
6975    builtin and then its argument prototype would still apply.  */
6976 char XShmQueryExtension ();
6977 int
6978 main ()
6979 {
6980 XShmQueryExtension ();
6981   ;
6982   return 0;
6983 }
6984 _ACEOF
6985 rm -f conftest.$ac_objext conftest$ac_exeext
6986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6987   (eval $ac_link) 2>&5
6988   ac_status=$?
6989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990   (exit $ac_status); } &&
6991          { ac_try='test -s conftest$ac_exeext'
6992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993   (eval $ac_try) 2>&5
6994   ac_status=$?
6995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996   (exit $ac_status); }; }; then
6997   ac_cv_lib_Xext_XShmQueryExtension=yes
6998 else
6999   echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7001
7002 ac_cv_lib_Xext_XShmQueryExtension=no
7003 fi
7004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7005 LIBS=$ac_check_lib_save_LIBS
7006 fi
7007 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7008 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7009 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7010
7011 cat >>confdefs.h <<\_ACEOF
7012 #define HAVE_LIBXXSHM 1
7013 _ACEOF
7014
7015 fi
7016
7017
7018 else
7019   { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
7020 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
7021 fi
7022
7023 done
7024
7025
7026
7027 for ac_header in X11/Xutil.h
7028 do
7029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7030 echo "$as_me:$LINENO: checking for $ac_header" >&5
7031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7033   echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035   cat >conftest.$ac_ext <<_ACEOF
7036 #line $LINENO "configure"
7037 /* confdefs.h.  */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h.  */
7042 #include <X11/Xlib.h>
7043
7044 #include <$ac_header>
7045 _ACEOF
7046 rm -f conftest.$ac_objext
7047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7048   (eval $ac_compile) 2>&5
7049   ac_status=$?
7050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051   (exit $ac_status); } &&
7052          { ac_try='test -s conftest.$ac_objext'
7053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054   (eval $ac_try) 2>&5
7055   ac_status=$?
7056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057   (exit $ac_status); }; }; then
7058   eval "$as_ac_Header=yes"
7059 else
7060   echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7062
7063 eval "$as_ac_Header=no"
7064 fi
7065 rm -f conftest.$ac_objext conftest.$ac_ext
7066 fi
7067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7070   cat >>confdefs.h <<_ACEOF
7071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7072 _ACEOF
7073
7074 fi
7075
7076 done
7077
7078
7079
7080 for ac_header in X11/extensions/shape.h
7081 do
7082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7083 echo "$as_me:$LINENO: checking for $ac_header" >&5
7084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7086   echo $ECHO_N "(cached) $ECHO_C" >&6
7087 else
7088   cat >conftest.$ac_ext <<_ACEOF
7089 #line $LINENO "configure"
7090 /* confdefs.h.  */
7091 _ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h.  */
7095 #include <X11/Xlib.h>
7096              #ifdef HAVE_X11_XUTIL_H
7097              # include <X11/Xutil.h>
7098              #endif
7099
7100 #include <$ac_header>
7101 _ACEOF
7102 rm -f conftest.$ac_objext
7103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7104   (eval $ac_compile) 2>&5
7105   ac_status=$?
7106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107   (exit $ac_status); } &&
7108          { ac_try='test -s conftest.$ac_objext'
7109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110   (eval $ac_try) 2>&5
7111   ac_status=$?
7112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113   (exit $ac_status); }; }; then
7114   eval "$as_ac_Header=yes"
7115 else
7116   echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7118
7119 eval "$as_ac_Header=no"
7120 fi
7121 rm -f conftest.$ac_objext conftest.$ac_ext
7122 fi
7123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7126   cat >>confdefs.h <<_ACEOF
7127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7128 _ACEOF
7129                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7130 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7131 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7132   echo $ECHO_N "(cached) $ECHO_C" >&6
7133 else
7134   ac_check_lib_save_LIBS=$LIBS
7135 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7136 cat >conftest.$ac_ext <<_ACEOF
7137 #line $LINENO "configure"
7138 /* confdefs.h.  */
7139 _ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h.  */
7143
7144 /* Override any gcc2 internal prototype to avoid an error.  */
7145 #ifdef __cplusplus
7146 extern "C"
7147 #endif
7148 /* We use char because int might match the return type of a gcc2
7149    builtin and then its argument prototype would still apply.  */
7150 char XShapeQueryExtension ();
7151 int
7152 main ()
7153 {
7154 XShapeQueryExtension ();
7155   ;
7156   return 0;
7157 }
7158 _ACEOF
7159 rm -f conftest.$ac_objext conftest$ac_exeext
7160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7161   (eval $ac_link) 2>&5
7162   ac_status=$?
7163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164   (exit $ac_status); } &&
7165          { ac_try='test -s conftest$ac_exeext'
7166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167   (eval $ac_try) 2>&5
7168   ac_status=$?
7169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170   (exit $ac_status); }; }; then
7171   ac_cv_lib_Xext_XShapeQueryExtension=yes
7172 else
7173   echo "$as_me: failed program was:" >&5
7174 sed 's/^/| /' conftest.$ac_ext >&5
7175
7176 ac_cv_lib_Xext_XShapeQueryExtension=no
7177 fi
7178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7179 LIBS=$ac_check_lib_save_LIBS
7180 fi
7181 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7182 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7183 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7184
7185 cat >>confdefs.h <<\_ACEOF
7186 #define HAVE_LIBXSHAPE 1
7187 _ACEOF
7188
7189 fi
7190
7191
7192 else
7193   { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
7194 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
7195 fi
7196
7197 done
7198
7199
7200
7201 for ac_header in X11/extensions/xf86dga.h
7202 do
7203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7204 echo "$as_me:$LINENO: checking for $ac_header" >&5
7205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7207   echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209   cat >conftest.$ac_ext <<_ACEOF
7210 #line $LINENO "configure"
7211 /* confdefs.h.  */
7212 _ACEOF
7213 cat confdefs.h >>conftest.$ac_ext
7214 cat >>conftest.$ac_ext <<_ACEOF
7215 /* end confdefs.h.  */
7216 #include <X11/Xlib.h>
7217
7218 #include <$ac_header>
7219 _ACEOF
7220 rm -f conftest.$ac_objext
7221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7222   (eval $ac_compile) 2>&5
7223   ac_status=$?
7224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225   (exit $ac_status); } &&
7226          { ac_try='test -s conftest.$ac_objext'
7227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228   (eval $ac_try) 2>&5
7229   ac_status=$?
7230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231   (exit $ac_status); }; }; then
7232   eval "$as_ac_Header=yes"
7233 else
7234   echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7236
7237 eval "$as_ac_Header=no"
7238 fi
7239 rm -f conftest.$ac_objext conftest.$ac_ext
7240 fi
7241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7244   cat >>confdefs.h <<_ACEOF
7245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7246 _ACEOF
7247                               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
7248 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7249 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7250   echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252   ac_check_lib_save_LIBS=$LIBS
7253 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7254                $LIBS"
7255 cat >conftest.$ac_ext <<_ACEOF
7256 #line $LINENO "configure"
7257 /* confdefs.h.  */
7258 _ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h.  */
7262
7263 /* Override any gcc2 internal prototype to avoid an error.  */
7264 #ifdef __cplusplus
7265 extern "C"
7266 #endif
7267 /* We use char because int might match the return type of a gcc2
7268    builtin and then its argument prototype would still apply.  */
7269 char XDGAQueryExtension ();
7270 int
7271 main ()
7272 {
7273 XDGAQueryExtension ();
7274   ;
7275   return 0;
7276 }
7277 _ACEOF
7278 rm -f conftest.$ac_objext conftest$ac_exeext
7279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7280   (eval $ac_link) 2>&5
7281   ac_status=$?
7282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283   (exit $ac_status); } &&
7284          { ac_try='test -s conftest$ac_exeext'
7285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286   (eval $ac_try) 2>&5
7287   ac_status=$?
7288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289   (exit $ac_status); }; }; then
7290   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7291 else
7292   echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7294
7295 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7296 fi
7297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7298 LIBS=$ac_check_lib_save_LIBS
7299 fi
7300 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
7301 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7302 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7303
7304 cat >>confdefs.h <<\_ACEOF
7305 #define HAVE_LIBXXF86DGA2 1
7306 _ACEOF
7307
7308                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7309
7310 else
7311                                        echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
7312 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7313 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7314   echo $ECHO_N "(cached) $ECHO_C" >&6
7315 else
7316   ac_check_lib_save_LIBS=$LIBS
7317 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7318                    $LIBS"
7319 cat >conftest.$ac_ext <<_ACEOF
7320 #line $LINENO "configure"
7321 /* confdefs.h.  */
7322 _ACEOF
7323 cat confdefs.h >>conftest.$ac_ext
7324 cat >>conftest.$ac_ext <<_ACEOF
7325 /* end confdefs.h.  */
7326
7327 /* Override any gcc2 internal prototype to avoid an error.  */
7328 #ifdef __cplusplus
7329 extern "C"
7330 #endif
7331 /* We use char because int might match the return type of a gcc2
7332    builtin and then its argument prototype would still apply.  */
7333 char XF86DGAQueryExtension ();
7334 int
7335 main ()
7336 {
7337 XF86DGAQueryExtension ();
7338   ;
7339   return 0;
7340 }
7341 _ACEOF
7342 rm -f conftest.$ac_objext conftest$ac_exeext
7343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7344   (eval $ac_link) 2>&5
7345   ac_status=$?
7346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347   (exit $ac_status); } &&
7348          { ac_try='test -s conftest$ac_exeext'
7349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350   (eval $ac_try) 2>&5
7351   ac_status=$?
7352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353   (exit $ac_status); }; }; then
7354   ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7355 else
7356   echo "$as_me: failed program was:" >&5
7357 sed 's/^/| /' conftest.$ac_ext >&5
7358
7359 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7360 fi
7361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7362 LIBS=$ac_check_lib_save_LIBS
7363 fi
7364 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7365 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7366 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7367
7368 cat >>confdefs.h <<\_ACEOF
7369 #define HAVE_LIBXXF86DGA 1
7370 _ACEOF
7371
7372                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7373
7374 fi
7375
7376
7377 fi
7378
7379
7380 else
7381   { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
7382 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
7383 fi
7384
7385 done
7386
7387
7388
7389 for ac_header in X11/extensions/xf86vmode.h
7390 do
7391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7392 echo "$as_me:$LINENO: checking for $ac_header" >&5
7393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7395   echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397   cat >conftest.$ac_ext <<_ACEOF
7398 #line $LINENO "configure"
7399 /* confdefs.h.  */
7400 _ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h.  */
7404 #include <X11/Xlib.h>
7405
7406 #include <$ac_header>
7407 _ACEOF
7408 rm -f conftest.$ac_objext
7409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7410   (eval $ac_compile) 2>&5
7411   ac_status=$?
7412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413   (exit $ac_status); } &&
7414          { ac_try='test -s conftest.$ac_objext'
7415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416   (eval $ac_try) 2>&5
7417   ac_status=$?
7418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419   (exit $ac_status); }; }; then
7420   eval "$as_ac_Header=yes"
7421 else
7422   echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7424
7425 eval "$as_ac_Header=no"
7426 fi
7427 rm -f conftest.$ac_objext conftest.$ac_ext
7428 fi
7429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7432   cat >>confdefs.h <<_ACEOF
7433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7434 _ACEOF
7435                   echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7436 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7437 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7438   echo $ECHO_N "(cached) $ECHO_C" >&6
7439 else
7440   ac_check_lib_save_LIBS=$LIBS
7441 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7442                  $LIBS"
7443 cat >conftest.$ac_ext <<_ACEOF
7444 #line $LINENO "configure"
7445 /* confdefs.h.  */
7446 _ACEOF
7447 cat confdefs.h >>conftest.$ac_ext
7448 cat >>conftest.$ac_ext <<_ACEOF
7449 /* end confdefs.h.  */
7450
7451 /* Override any gcc2 internal prototype to avoid an error.  */
7452 #ifdef __cplusplus
7453 extern "C"
7454 #endif
7455 /* We use char because int might match the return type of a gcc2
7456    builtin and then its argument prototype would still apply.  */
7457 char XF86VidModeQueryExtension ();
7458 int
7459 main ()
7460 {
7461 XF86VidModeQueryExtension ();
7462   ;
7463   return 0;
7464 }
7465 _ACEOF
7466 rm -f conftest.$ac_objext conftest$ac_exeext
7467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7468   (eval $ac_link) 2>&5
7469   ac_status=$?
7470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471   (exit $ac_status); } &&
7472          { ac_try='test -s conftest$ac_exeext'
7473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474   (eval $ac_try) 2>&5
7475   ac_status=$?
7476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477   (exit $ac_status); }; }; then
7478   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7479 else
7480   echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7482
7483 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7484 fi
7485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7486 LIBS=$ac_check_lib_save_LIBS
7487 fi
7488 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7489 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7490 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7491
7492 cat >>confdefs.h <<\_ACEOF
7493 #define HAVE_LIBXXF86VM 1
7494 _ACEOF
7495
7496                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7497
7498 fi
7499
7500
7501 else
7502   { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
7503 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
7504 fi
7505
7506 done
7507
7508
7509
7510 for ac_header in X11/extensions/Xvlib.h
7511 do
7512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7513 echo "$as_me:$LINENO: checking for $ac_header" >&5
7514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7516   echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518   cat >conftest.$ac_ext <<_ACEOF
7519 #line $LINENO "configure"
7520 /* confdefs.h.  */
7521 _ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h.  */
7525 #include <X11/Xlib.h>
7526
7527 #include <$ac_header>
7528 _ACEOF
7529 rm -f conftest.$ac_objext
7530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7531   (eval $ac_compile) 2>&5
7532   ac_status=$?
7533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534   (exit $ac_status); } &&
7535          { ac_try='test -s conftest.$ac_objext'
7536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537   (eval $ac_try) 2>&5
7538   ac_status=$?
7539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540   (exit $ac_status); }; }; then
7541   eval "$as_ac_Header=yes"
7542 else
7543   echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7545
7546 eval "$as_ac_Header=no"
7547 fi
7548 rm -f conftest.$ac_objext conftest.$ac_ext
7549 fi
7550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7553   cat >>confdefs.h <<_ACEOF
7554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7555 _ACEOF
7556                   echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
7557 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7558 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7559   echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561   ac_check_lib_save_LIBS=$LIBS
7562 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7563                  $LIBS"
7564 cat >conftest.$ac_ext <<_ACEOF
7565 #line $LINENO "configure"
7566 /* confdefs.h.  */
7567 _ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h.  */
7571
7572 /* Override any gcc2 internal prototype to avoid an error.  */
7573 #ifdef __cplusplus
7574 extern "C"
7575 #endif
7576 /* We use char because int might match the return type of a gcc2
7577    builtin and then its argument prototype would still apply.  */
7578 char XvShmCreateImage ();
7579 int
7580 main ()
7581 {
7582 XvShmCreateImage ();
7583   ;
7584   return 0;
7585 }
7586 _ACEOF
7587 rm -f conftest.$ac_objext conftest$ac_exeext
7588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7589   (eval $ac_link) 2>&5
7590   ac_status=$?
7591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592   (exit $ac_status); } &&
7593          { ac_try='test -s conftest$ac_exeext'
7594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595   (eval $ac_try) 2>&5
7596   ac_status=$?
7597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598   (exit $ac_status); }; }; then
7599   ac_cv_lib_Xv_XvShmCreateImage=yes
7600 else
7601   echo "$as_me: failed program was:" >&5
7602 sed 's/^/| /' conftest.$ac_ext >&5
7603
7604 ac_cv_lib_Xv_XvShmCreateImage=no
7605 fi
7606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7607 LIBS=$ac_check_lib_save_LIBS
7608 fi
7609 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
7610 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7611 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
7612
7613 cat >>confdefs.h <<\_ACEOF
7614 #define HAVE_XVIDEO 1
7615 _ACEOF
7616
7617                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
7618
7619 fi
7620
7621
7622 else
7623   { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
7624 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
7625 fi
7626
7627 done
7628
7629
7630
7631 for ac_header in X11/extensions/Xrender.h
7632 do
7633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7634 echo "$as_me:$LINENO: checking for $ac_header" >&5
7635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7637   echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639   cat >conftest.$ac_ext <<_ACEOF
7640 #line $LINENO "configure"
7641 /* confdefs.h.  */
7642 _ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h.  */
7646 #include <X11/Xlib.h>
7647
7648 #include <$ac_header>
7649 _ACEOF
7650 rm -f conftest.$ac_objext
7651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7652   (eval $ac_compile) 2>&5
7653   ac_status=$?
7654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655   (exit $ac_status); } &&
7656          { ac_try='test -s conftest.$ac_objext'
7657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658   (eval $ac_try) 2>&5
7659   ac_status=$?
7660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661   (exit $ac_status); }; }; then
7662   eval "$as_ac_Header=yes"
7663 else
7664   echo "$as_me: failed program was:" >&5
7665 sed 's/^/| /' conftest.$ac_ext >&5
7666
7667 eval "$as_ac_Header=no"
7668 fi
7669 rm -f conftest.$ac_objext conftest.$ac_ext
7670 fi
7671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7674   cat >>confdefs.h <<_ACEOF
7675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7676 _ACEOF
7677
7678 fi
7679
7680 done
7681
7682
7683
7684 fi
7685
7686 done
7687
7688         if test "x$with_opengl" != "xno"
7689     then
7690         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
7691         then
7692             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
7693 This prevents linking to OpenGL. Delete the file and restart configure." >&5
7694 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7695 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7696    { (exit 1); exit 1; }; }
7697         fi
7698
7699
7700
7701 for ac_header in GL/gl.h GL/glx.h
7702 do
7703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7705   echo "$as_me:$LINENO: checking for $ac_header" >&5
7706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7708   echo $ECHO_N "(cached) $ECHO_C" >&6
7709 fi
7710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7712 else
7713   # Is the header compilable?
7714 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7716 cat >conftest.$ac_ext <<_ACEOF
7717 #line $LINENO "configure"
7718 /* confdefs.h.  */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h.  */
7723 $ac_includes_default
7724 #include <$ac_header>
7725 _ACEOF
7726 rm -f conftest.$ac_objext
7727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7728   (eval $ac_compile) 2>&5
7729   ac_status=$?
7730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731   (exit $ac_status); } &&
7732          { ac_try='test -s conftest.$ac_objext'
7733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734   (eval $ac_try) 2>&5
7735   ac_status=$?
7736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737   (exit $ac_status); }; }; then
7738   ac_header_compiler=yes
7739 else
7740   echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7742
7743 ac_header_compiler=no
7744 fi
7745 rm -f conftest.$ac_objext conftest.$ac_ext
7746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7747 echo "${ECHO_T}$ac_header_compiler" >&6
7748
7749 # Is the header present?
7750 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7752 cat >conftest.$ac_ext <<_ACEOF
7753 #line $LINENO "configure"
7754 /* confdefs.h.  */
7755 _ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h.  */
7759 #include <$ac_header>
7760 _ACEOF
7761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7762   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7763   ac_status=$?
7764   grep -v '^ *+' conftest.er1 >conftest.err
7765   rm -f conftest.er1
7766   cat conftest.err >&5
7767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768   (exit $ac_status); } >/dev/null; then
7769   if test -s conftest.err; then
7770     ac_cpp_err=$ac_c_preproc_warn_flag
7771   else
7772     ac_cpp_err=
7773   fi
7774 else
7775   ac_cpp_err=yes
7776 fi
7777 if test -z "$ac_cpp_err"; then
7778   ac_header_preproc=yes
7779 else
7780   echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7782
7783   ac_header_preproc=no
7784 fi
7785 rm -f conftest.err conftest.$ac_ext
7786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7787 echo "${ECHO_T}$ac_header_preproc" >&6
7788
7789 # So?  What about this header?
7790 case $ac_header_compiler:$ac_header_preproc in
7791   yes:no )
7792     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7796     (
7797       cat <<\_ASBOX
7798 ## ------------------------------------ ##
7799 ## Report this to bug-autoconf@gnu.org. ##
7800 ## ------------------------------------ ##
7801 _ASBOX
7802     ) |
7803       sed "s/^/$as_me: WARNING:     /" >&2
7804     ;;
7805   no:yes )
7806     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7808     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7812     (
7813       cat <<\_ASBOX
7814 ## ------------------------------------ ##
7815 ## Report this to bug-autoconf@gnu.org. ##
7816 ## ------------------------------------ ##
7817 _ASBOX
7818     ) |
7819       sed "s/^/$as_me: WARNING:     /" >&2
7820     ;;
7821 esac
7822 echo "$as_me:$LINENO: checking for $ac_header" >&5
7823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7825   echo $ECHO_N "(cached) $ECHO_C" >&6
7826 else
7827   eval "$as_ac_Header=$ac_header_preproc"
7828 fi
7829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7831
7832 fi
7833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7834   cat >>confdefs.h <<_ACEOF
7835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7836 _ACEOF
7837
7838 fi
7839
7840 done
7841
7842         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
7843         then
7844
7845 for ac_header in GL/glext.h
7846 do
7847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7848 echo "$as_me:$LINENO: checking for $ac_header" >&5
7849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7851   echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853   cat >conftest.$ac_ext <<_ACEOF
7854 #line $LINENO "configure"
7855 /* confdefs.h.  */
7856 _ACEOF
7857 cat confdefs.h >>conftest.$ac_ext
7858 cat >>conftest.$ac_ext <<_ACEOF
7859 /* end confdefs.h.  */
7860 #include <GL/glx.h>
7861
7862 #include <$ac_header>
7863 _ACEOF
7864 rm -f conftest.$ac_objext
7865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7866   (eval $ac_compile) 2>&5
7867   ac_status=$?
7868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869   (exit $ac_status); } &&
7870          { ac_try='test -s conftest.$ac_objext'
7871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872   (eval $ac_try) 2>&5
7873   ac_status=$?
7874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875   (exit $ac_status); }; }; then
7876   eval "$as_ac_Header=yes"
7877 else
7878   echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.$ac_ext >&5
7880
7881 eval "$as_ac_Header=no"
7882 fi
7883 rm -f conftest.$ac_objext conftest.$ac_ext
7884 fi
7885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7888   cat >>confdefs.h <<_ACEOF
7889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7890 _ACEOF
7891
7892 fi
7893
7894 done
7895
7896                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7897 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7898 if test "${wine_cv_opengl_version_OK+set}" = set; then
7899   echo $ECHO_N "(cached) $ECHO_C" >&6
7900 else
7901   cat >conftest.$ac_ext <<_ACEOF
7902 #line $LINENO "configure"
7903 /* confdefs.h.  */
7904 _ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h.  */
7908 #include <GL/gl.h>
7909 int
7910 main ()
7911 {
7912 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7913   ;
7914   return 0;
7915 }
7916 _ACEOF
7917 rm -f conftest.$ac_objext
7918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7919   (eval $ac_compile) 2>&5
7920   ac_status=$?
7921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922   (exit $ac_status); } &&
7923          { ac_try='test -s conftest.$ac_objext'
7924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925   (eval $ac_try) 2>&5
7926   ac_status=$?
7927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928   (exit $ac_status); }; }; then
7929   wine_cv_opengl_version_OK="yes"
7930 else
7931   echo "$as_me: failed program was:" >&5
7932 sed 's/^/| /' conftest.$ac_ext >&5
7933
7934 wine_cv_opengl_version_OK="no"
7935
7936 fi
7937 rm -f conftest.$ac_objext conftest.$ac_ext
7938
7939 fi
7940 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7941 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7942
7943             if test "$wine_cv_opengl_version_OK" = "yes"
7944             then
7945                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7946 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7947 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7948   echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950   ac_check_lib_save_LIBS=$LIBS
7951 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7952 cat >conftest.$ac_ext <<_ACEOF
7953 #line $LINENO "configure"
7954 /* confdefs.h.  */
7955 _ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h.  */
7959
7960 /* Override any gcc2 internal prototype to avoid an error.  */
7961 #ifdef __cplusplus
7962 extern "C"
7963 #endif
7964 /* We use char because int might match the return type of a gcc2
7965    builtin and then its argument prototype would still apply.  */
7966 char glXCreateContext ();
7967 int
7968 main ()
7969 {
7970 glXCreateContext ();
7971   ;
7972   return 0;
7973 }
7974 _ACEOF
7975 rm -f conftest.$ac_objext conftest$ac_exeext
7976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7977   (eval $ac_link) 2>&5
7978   ac_status=$?
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); } &&
7981          { ac_try='test -s conftest$ac_exeext'
7982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983   (eval $ac_try) 2>&5
7984   ac_status=$?
7985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986   (exit $ac_status); }; }; then
7987   ac_cv_lib_GL_glXCreateContext=yes
7988 else
7989   echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7991
7992 ac_cv_lib_GL_glXCreateContext=no
7993 fi
7994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7995 LIBS=$ac_check_lib_save_LIBS
7996 fi
7997 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7998 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7999 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8000   OPENGL_LIBS="-lGL"
8001
8002 fi
8003
8004
8005                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8006                 then
8007                         OPENGLFILES='$(OPENGLFILES)'
8008
8009 cat >>confdefs.h <<\_ACEOF
8010 #define HAVE_OPENGL 1
8011 _ACEOF
8012
8013
8014                         echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8015 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8016 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8017   echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019   ac_check_lib_save_LIBS=$LIBS
8020 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8021 cat >conftest.$ac_ext <<_ACEOF
8022 #line $LINENO "configure"
8023 /* confdefs.h.  */
8024 _ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h.  */
8028
8029 /* Override any gcc2 internal prototype to avoid an error.  */
8030 #ifdef __cplusplus
8031 extern "C"
8032 #endif
8033 /* We use char because int might match the return type of a gcc2
8034    builtin and then its argument prototype would still apply.  */
8035 char glXGetProcAddressARB ();
8036 int
8037 main ()
8038 {
8039 glXGetProcAddressARB ();
8040   ;
8041   return 0;
8042 }
8043 _ACEOF
8044 rm -f conftest.$ac_objext conftest$ac_exeext
8045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8046   (eval $ac_link) 2>&5
8047   ac_status=$?
8048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049   (exit $ac_status); } &&
8050          { ac_try='test -s conftest$ac_exeext'
8051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052   (eval $ac_try) 2>&5
8053   ac_status=$?
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); }; }; then
8056   ac_cv_lib_GL_glXGetProcAddressARB=yes
8057 else
8058   echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8060
8061 ac_cv_lib_GL_glXGetProcAddressARB=no
8062 fi
8063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8064 LIBS=$ac_check_lib_save_LIBS
8065 fi
8066 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8067 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8068 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8069
8070 cat >>confdefs.h <<\_ACEOF
8071 #define HAVE_GLX_GETPROCADDRESS 1
8072 _ACEOF
8073
8074 fi
8075
8076
8077                         if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8078                         then
8079                                echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8080 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8081 if test "${wine_cv_extension_prototypes+set}" = set; then
8082   echo $ECHO_N "(cached) $ECHO_C" >&6
8083 else
8084   cat >conftest.$ac_ext <<_ACEOF
8085 #line $LINENO "configure"
8086 /* confdefs.h.  */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h.  */
8091 #include <GL/gl.h>
8092                                                   #ifdef HAVE_GL_GLEXT_H
8093                                                   # include <GL/glext.h>
8094                                                   #endif
8095
8096 int
8097 main ()
8098 {
8099 PFNGLCOLORTABLEEXTPROC test_proc;
8100   ;
8101   return 0;
8102 }
8103 _ACEOF
8104 rm -f conftest.$ac_objext
8105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8106   (eval $ac_compile) 2>&5
8107   ac_status=$?
8108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109   (exit $ac_status); } &&
8110          { ac_try='test -s conftest.$ac_objext'
8111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112   (eval $ac_try) 2>&5
8113   ac_status=$?
8114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115   (exit $ac_status); }; }; then
8116   wine_cv_extension_prototypes="yes"
8117 else
8118   echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8120
8121 wine_cv_extension_prototypes="no"
8122
8123 fi
8124 rm -f conftest.$ac_objext conftest.$ac_ext
8125
8126 fi
8127 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8128 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8129                                 if test "$wine_cv_extension_prototypes" = "yes"
8130                                 then
8131
8132 cat >>confdefs.h <<\_ACEOF
8133 #define HAVE_GLEXT_PROTOTYPES 1
8134 _ACEOF
8135
8136                                 fi
8137                         fi
8138
8139                 fi
8140                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8141 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8142 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8143   echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145   ac_check_lib_save_LIBS=$LIBS
8146 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8147                  $LIBS"
8148 cat >conftest.$ac_ext <<_ACEOF
8149 #line $LINENO "configure"
8150 /* confdefs.h.  */
8151 _ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h.  */
8155
8156 /* Override any gcc2 internal prototype to avoid an error.  */
8157 #ifdef __cplusplus
8158 extern "C"
8159 #endif
8160 /* We use char because int might match the return type of a gcc2
8161    builtin and then its argument prototype would still apply.  */
8162 char gluLookAt ();
8163 int
8164 main ()
8165 {
8166 gluLookAt ();
8167   ;
8168   return 0;
8169 }
8170 _ACEOF
8171 rm -f conftest.$ac_objext conftest$ac_exeext
8172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8173   (eval $ac_link) 2>&5
8174   ac_status=$?
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); } &&
8177          { ac_try='test -s conftest$ac_exeext'
8178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179   (eval $ac_try) 2>&5
8180   ac_status=$?
8181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182   (exit $ac_status); }; }; then
8183   ac_cv_lib_GLU_gluLookAt=yes
8184 else
8185   echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8187
8188 ac_cv_lib_GLU_gluLookAt=no
8189 fi
8190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8191 LIBS=$ac_check_lib_save_LIBS
8192 fi
8193 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8194 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8195 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8196   OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8197                              GLU32FILES='$(GLU32FILES)'
8198
8199 fi
8200
8201                 if test -n "$OPENGL_LIBS"
8202                 then
8203                   OPENGL_LIBS="$OPENGL_LIBS -lpthread"
8204                 fi
8205              fi
8206          fi
8207     fi
8208
8209         NASLIBS=""
8210
8211
8212 for ac_header in audio/audiolib.h
8213 do
8214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8216   echo "$as_me:$LINENO: checking for $ac_header" >&5
8217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8219   echo $ECHO_N "(cached) $ECHO_C" >&6
8220 fi
8221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8223 else
8224   # Is the header compilable?
8225 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8226 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8227 cat >conftest.$ac_ext <<_ACEOF
8228 #line $LINENO "configure"
8229 /* confdefs.h.  */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h.  */
8234 $ac_includes_default
8235 #include <$ac_header>
8236 _ACEOF
8237 rm -f conftest.$ac_objext
8238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8239   (eval $ac_compile) 2>&5
8240   ac_status=$?
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); } &&
8243          { ac_try='test -s conftest.$ac_objext'
8244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245   (eval $ac_try) 2>&5
8246   ac_status=$?
8247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248   (exit $ac_status); }; }; then
8249   ac_header_compiler=yes
8250 else
8251   echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8253
8254 ac_header_compiler=no
8255 fi
8256 rm -f conftest.$ac_objext conftest.$ac_ext
8257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8258 echo "${ECHO_T}$ac_header_compiler" >&6
8259
8260 # Is the header present?
8261 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8263 cat >conftest.$ac_ext <<_ACEOF
8264 #line $LINENO "configure"
8265 /* confdefs.h.  */
8266 _ACEOF
8267 cat confdefs.h >>conftest.$ac_ext
8268 cat >>conftest.$ac_ext <<_ACEOF
8269 /* end confdefs.h.  */
8270 #include <$ac_header>
8271 _ACEOF
8272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8273   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8274   ac_status=$?
8275   grep -v '^ *+' conftest.er1 >conftest.err
8276   rm -f conftest.er1
8277   cat conftest.err >&5
8278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279   (exit $ac_status); } >/dev/null; then
8280   if test -s conftest.err; then
8281     ac_cpp_err=$ac_c_preproc_warn_flag
8282   else
8283     ac_cpp_err=
8284   fi
8285 else
8286   ac_cpp_err=yes
8287 fi
8288 if test -z "$ac_cpp_err"; then
8289   ac_header_preproc=yes
8290 else
8291   echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8293
8294   ac_header_preproc=no
8295 fi
8296 rm -f conftest.err conftest.$ac_ext
8297 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8298 echo "${ECHO_T}$ac_header_preproc" >&6
8299
8300 # So?  What about this header?
8301 case $ac_header_compiler:$ac_header_preproc in
8302   yes:no )
8303     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8307     (
8308       cat <<\_ASBOX
8309 ## ------------------------------------ ##
8310 ## Report this to bug-autoconf@gnu.org. ##
8311 ## ------------------------------------ ##
8312 _ASBOX
8313     ) |
8314       sed "s/^/$as_me: WARNING:     /" >&2
8315     ;;
8316   no:yes )
8317     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8319     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&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 esac
8333 echo "$as_me:$LINENO: checking for $ac_header" >&5
8334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8336   echo $ECHO_N "(cached) $ECHO_C" >&6
8337 else
8338   eval "$as_ac_Header=$ac_header_preproc"
8339 fi
8340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8342
8343 fi
8344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8345   cat >>confdefs.h <<_ACEOF
8346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8347 _ACEOF
8348
8349 for ac_header in audio/soundlib.h
8350 do
8351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8352 echo "$as_me:$LINENO: checking for $ac_header" >&5
8353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8355   echo $ECHO_N "(cached) $ECHO_C" >&6
8356 else
8357   cat >conftest.$ac_ext <<_ACEOF
8358 #line $LINENO "configure"
8359 /* confdefs.h.  */
8360 _ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h.  */
8364 #include <audio/audiolib.h>
8365
8366 #include <$ac_header>
8367 _ACEOF
8368 rm -f conftest.$ac_objext
8369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8370   (eval $ac_compile) 2>&5
8371   ac_status=$?
8372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   (exit $ac_status); } &&
8374          { ac_try='test -s conftest.$ac_objext'
8375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376   (eval $ac_try) 2>&5
8377   ac_status=$?
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); }; }; then
8380   eval "$as_ac_Header=yes"
8381 else
8382   echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8384
8385 eval "$as_ac_Header=no"
8386 fi
8387 rm -f conftest.$ac_objext conftest.$ac_ext
8388 fi
8389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8392   cat >>confdefs.h <<_ACEOF
8393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8394 _ACEOF
8395
8396 fi
8397
8398 done
8399
8400           echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8401 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8402 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8403   echo $ECHO_N "(cached) $ECHO_C" >&6
8404 else
8405   ac_check_lib_save_LIBS=$LIBS
8406 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8407 cat >conftest.$ac_ext <<_ACEOF
8408 #line $LINENO "configure"
8409 /* confdefs.h.  */
8410 _ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h.  */
8414
8415 /* Override any gcc2 internal prototype to avoid an error.  */
8416 #ifdef __cplusplus
8417 extern "C"
8418 #endif
8419 /* We use char because int might match the return type of a gcc2
8420    builtin and then its argument prototype would still apply.  */
8421 char AuCreateFlow ();
8422 int
8423 main ()
8424 {
8425 AuCreateFlow ();
8426   ;
8427   return 0;
8428 }
8429 _ACEOF
8430 rm -f conftest.$ac_objext conftest$ac_exeext
8431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8432   (eval $ac_link) 2>&5
8433   ac_status=$?
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); } &&
8436          { ac_try='test -s conftest$ac_exeext'
8437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438   (eval $ac_try) 2>&5
8439   ac_status=$?
8440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); }; }; then
8442   ac_cv_lib_audio_AuCreateFlow=yes
8443 else
8444   echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.$ac_ext >&5
8446
8447 ac_cv_lib_audio_AuCreateFlow=no
8448 fi
8449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8450 LIBS=$ac_check_lib_save_LIBS
8451 fi
8452 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8453 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8454 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8455
8456 cat >>confdefs.h <<\_ACEOF
8457 #define HAVE_NAS 1
8458 _ACEOF
8459
8460                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8461 fi
8462
8463 fi
8464
8465 done
8466
8467
8468     CPPFLAGS="$ac_save_CPPFLAGS"
8469     XFILES='$(XFILES)'
8470 else
8471     XLIB=""
8472     X_CFLAGS=""
8473     X_LIBS=""
8474 fi
8475
8476 CURSESLIBS=""
8477 if test "x$with_curses" != "xno"
8478 then
8479
8480 for ac_header in ncurses.h
8481 do
8482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8484   echo "$as_me:$LINENO: checking for $ac_header" >&5
8485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8487   echo $ECHO_N "(cached) $ECHO_C" >&6
8488 fi
8489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8491 else
8492   # Is the header compilable?
8493 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8495 cat >conftest.$ac_ext <<_ACEOF
8496 #line $LINENO "configure"
8497 /* confdefs.h.  */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h.  */
8502 $ac_includes_default
8503 #include <$ac_header>
8504 _ACEOF
8505 rm -f conftest.$ac_objext
8506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8507   (eval $ac_compile) 2>&5
8508   ac_status=$?
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); } &&
8511          { ac_try='test -s conftest.$ac_objext'
8512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513   (eval $ac_try) 2>&5
8514   ac_status=$?
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); }; }; then
8517   ac_header_compiler=yes
8518 else
8519   echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8521
8522 ac_header_compiler=no
8523 fi
8524 rm -f conftest.$ac_objext conftest.$ac_ext
8525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8526 echo "${ECHO_T}$ac_header_compiler" >&6
8527
8528 # Is the header present?
8529 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8531 cat >conftest.$ac_ext <<_ACEOF
8532 #line $LINENO "configure"
8533 /* confdefs.h.  */
8534 _ACEOF
8535 cat confdefs.h >>conftest.$ac_ext
8536 cat >>conftest.$ac_ext <<_ACEOF
8537 /* end confdefs.h.  */
8538 #include <$ac_header>
8539 _ACEOF
8540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8541   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8542   ac_status=$?
8543   grep -v '^ *+' conftest.er1 >conftest.err
8544   rm -f conftest.er1
8545   cat conftest.err >&5
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); } >/dev/null; then
8548   if test -s conftest.err; then
8549     ac_cpp_err=$ac_c_preproc_warn_flag
8550   else
8551     ac_cpp_err=
8552   fi
8553 else
8554   ac_cpp_err=yes
8555 fi
8556 if test -z "$ac_cpp_err"; then
8557   ac_header_preproc=yes
8558 else
8559   echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8561
8562   ac_header_preproc=no
8563 fi
8564 rm -f conftest.err conftest.$ac_ext
8565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8566 echo "${ECHO_T}$ac_header_preproc" >&6
8567
8568 # So?  What about this header?
8569 case $ac_header_compiler:$ac_header_preproc in
8570   yes:no )
8571     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8575     (
8576       cat <<\_ASBOX
8577 ## ------------------------------------ ##
8578 ## Report this to bug-autoconf@gnu.org. ##
8579 ## ------------------------------------ ##
8580 _ASBOX
8581     ) |
8582       sed "s/^/$as_me: WARNING:     /" >&2
8583     ;;
8584   no:yes )
8585     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8587     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8588 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8589     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8591     (
8592       cat <<\_ASBOX
8593 ## ------------------------------------ ##
8594 ## Report this to bug-autoconf@gnu.org. ##
8595 ## ------------------------------------ ##
8596 _ASBOX
8597     ) |
8598       sed "s/^/$as_me: WARNING:     /" >&2
8599     ;;
8600 esac
8601 echo "$as_me:$LINENO: checking for $ac_header" >&5
8602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8604   echo $ECHO_N "(cached) $ECHO_C" >&6
8605 else
8606   eval "$as_ac_Header=$ac_header_preproc"
8607 fi
8608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8610
8611 fi
8612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8613   cat >>confdefs.h <<_ACEOF
8614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8615 _ACEOF
8616  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
8617 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8618 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8619   echo $ECHO_N "(cached) $ECHO_C" >&6
8620 else
8621   ac_check_lib_save_LIBS=$LIBS
8622 LIBS="-lncurses  $LIBS"
8623 cat >conftest.$ac_ext <<_ACEOF
8624 #line $LINENO "configure"
8625 /* confdefs.h.  */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h.  */
8630
8631 /* Override any gcc2 internal prototype to avoid an error.  */
8632 #ifdef __cplusplus
8633 extern "C"
8634 #endif
8635 /* We use char because int might match the return type of a gcc2
8636    builtin and then its argument prototype would still apply.  */
8637 char waddch ();
8638 int
8639 main ()
8640 {
8641 waddch ();
8642   ;
8643   return 0;
8644 }
8645 _ACEOF
8646 rm -f conftest.$ac_objext conftest$ac_exeext
8647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8648   (eval $ac_link) 2>&5
8649   ac_status=$?
8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651   (exit $ac_status); } &&
8652          { ac_try='test -s conftest$ac_exeext'
8653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654   (eval $ac_try) 2>&5
8655   ac_status=$?
8656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   (exit $ac_status); }; }; then
8658   ac_cv_lib_ncurses_waddch=yes
8659 else
8660   echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8662
8663 ac_cv_lib_ncurses_waddch=no
8664 fi
8665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8666 LIBS=$ac_check_lib_save_LIBS
8667 fi
8668 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
8669 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8670 if test $ac_cv_lib_ncurses_waddch = yes; then
8671
8672 cat >>confdefs.h <<\_ACEOF
8673 #define HAVE_LIBNCURSES 1
8674 _ACEOF
8675
8676              CURSESLIBS="-lncurses"
8677 else
8678
8679 for ac_header in curses.h
8680 do
8681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8683   echo "$as_me:$LINENO: checking for $ac_header" >&5
8684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8686   echo $ECHO_N "(cached) $ECHO_C" >&6
8687 fi
8688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8690 else
8691   # Is the header compilable?
8692 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8694 cat >conftest.$ac_ext <<_ACEOF
8695 #line $LINENO "configure"
8696 /* confdefs.h.  */
8697 _ACEOF
8698 cat confdefs.h >>conftest.$ac_ext
8699 cat >>conftest.$ac_ext <<_ACEOF
8700 /* end confdefs.h.  */
8701 $ac_includes_default
8702 #include <$ac_header>
8703 _ACEOF
8704 rm -f conftest.$ac_objext
8705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8706   (eval $ac_compile) 2>&5
8707   ac_status=$?
8708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709   (exit $ac_status); } &&
8710          { ac_try='test -s conftest.$ac_objext'
8711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712   (eval $ac_try) 2>&5
8713   ac_status=$?
8714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715   (exit $ac_status); }; }; then
8716   ac_header_compiler=yes
8717 else
8718   echo "$as_me: failed program was:" >&5
8719 sed 's/^/| /' conftest.$ac_ext >&5
8720
8721 ac_header_compiler=no
8722 fi
8723 rm -f conftest.$ac_objext conftest.$ac_ext
8724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8725 echo "${ECHO_T}$ac_header_compiler" >&6
8726
8727 # Is the header present?
8728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8730 cat >conftest.$ac_ext <<_ACEOF
8731 #line $LINENO "configure"
8732 /* confdefs.h.  */
8733 _ACEOF
8734 cat confdefs.h >>conftest.$ac_ext
8735 cat >>conftest.$ac_ext <<_ACEOF
8736 /* end confdefs.h.  */
8737 #include <$ac_header>
8738 _ACEOF
8739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8740   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8741   ac_status=$?
8742   grep -v '^ *+' conftest.er1 >conftest.err
8743   rm -f conftest.er1
8744   cat conftest.err >&5
8745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746   (exit $ac_status); } >/dev/null; then
8747   if test -s conftest.err; then
8748     ac_cpp_err=$ac_c_preproc_warn_flag
8749   else
8750     ac_cpp_err=
8751   fi
8752 else
8753   ac_cpp_err=yes
8754 fi
8755 if test -z "$ac_cpp_err"; then
8756   ac_header_preproc=yes
8757 else
8758   echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.$ac_ext >&5
8760
8761   ac_header_preproc=no
8762 fi
8763 rm -f conftest.err conftest.$ac_ext
8764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8765 echo "${ECHO_T}$ac_header_preproc" >&6
8766
8767 # So?  What about this header?
8768 case $ac_header_compiler:$ac_header_preproc in
8769   yes:no )
8770     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8772     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8774     (
8775       cat <<\_ASBOX
8776 ## ------------------------------------ ##
8777 ## Report this to bug-autoconf@gnu.org. ##
8778 ## ------------------------------------ ##
8779 _ASBOX
8780     ) |
8781       sed "s/^/$as_me: WARNING:     /" >&2
8782     ;;
8783   no:yes )
8784     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8786     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8790     (
8791       cat <<\_ASBOX
8792 ## ------------------------------------ ##
8793 ## Report this to bug-autoconf@gnu.org. ##
8794 ## ------------------------------------ ##
8795 _ASBOX
8796     ) |
8797       sed "s/^/$as_me: WARNING:     /" >&2
8798     ;;
8799 esac
8800 echo "$as_me:$LINENO: checking for $ac_header" >&5
8801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8803   echo $ECHO_N "(cached) $ECHO_C" >&6
8804 else
8805   eval "$as_ac_Header=$ac_header_preproc"
8806 fi
8807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8809
8810 fi
8811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8812   cat >>confdefs.h <<_ACEOF
8813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8814 _ACEOF
8815  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
8816 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8817 if test "${ac_cv_lib_curses_waddch+set}" = set; then
8818   echo $ECHO_N "(cached) $ECHO_C" >&6
8819 else
8820   ac_check_lib_save_LIBS=$LIBS
8821 LIBS="-lcurses  $LIBS"
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
8830 /* Override any gcc2 internal prototype to avoid an error.  */
8831 #ifdef __cplusplus
8832 extern "C"
8833 #endif
8834 /* We use char because int might match the return type of a gcc2
8835    builtin and then its argument prototype would still apply.  */
8836 char waddch ();
8837 int
8838 main ()
8839 {
8840 waddch ();
8841   ;
8842   return 0;
8843 }
8844 _ACEOF
8845 rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8847   (eval $ac_link) 2>&5
8848   ac_status=$?
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); } &&
8851          { ac_try='test -s conftest$ac_exeext'
8852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853   (eval $ac_try) 2>&5
8854   ac_status=$?
8855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856   (exit $ac_status); }; }; then
8857   ac_cv_lib_curses_waddch=yes
8858 else
8859   echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8861
8862 ac_cv_lib_curses_waddch=no
8863 fi
8864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8865 LIBS=$ac_check_lib_save_LIBS
8866 fi
8867 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
8868 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
8869 if test $ac_cv_lib_curses_waddch = yes; then
8870
8871 cat >>confdefs.h <<\_ACEOF
8872 #define HAVE_LIBCURSES 1
8873 _ACEOF
8874
8875                       CURSESLIBS="-lcurses"
8876 fi
8877
8878 fi
8879
8880 done
8881
8882 fi
8883
8884 fi
8885
8886 done
8887
8888     saved_libs="$LIBS"
8889     LIBS="$CURSESLIBS $LIBS"
8890
8891
8892 for ac_func in getbkgd resizeterm
8893 do
8894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8895 echo "$as_me:$LINENO: checking for $ac_func" >&5
8896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8897 if eval "test \"\${$as_ac_var+set}\" = set"; then
8898   echo $ECHO_N "(cached) $ECHO_C" >&6
8899 else
8900   cat >conftest.$ac_ext <<_ACEOF
8901 #line $LINENO "configure"
8902 /* confdefs.h.  */
8903 _ACEOF
8904 cat confdefs.h >>conftest.$ac_ext
8905 cat >>conftest.$ac_ext <<_ACEOF
8906 /* end confdefs.h.  */
8907 /* System header to define __stub macros and hopefully few prototypes,
8908     which can conflict with char $ac_func (); below.
8909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8910     <limits.h> exists even on freestanding compilers.  */
8911 #ifdef __STDC__
8912 # include <limits.h>
8913 #else
8914 # include <assert.h>
8915 #endif
8916 /* Override any gcc2 internal prototype to avoid an error.  */
8917 #ifdef __cplusplus
8918 extern "C"
8919 {
8920 #endif
8921 /* We use char because int might match the return type of a gcc2
8922    builtin and then its argument prototype would still apply.  */
8923 char $ac_func ();
8924 /* The GNU C library defines this for functions which it implements
8925     to always fail with ENOSYS.  Some functions are actually named
8926     something starting with __ and the normal name is an alias.  */
8927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8928 choke me
8929 #else
8930 char (*f) () = $ac_func;
8931 #endif
8932 #ifdef __cplusplus
8933 }
8934 #endif
8935
8936 int
8937 main ()
8938 {
8939 return f != $ac_func;
8940   ;
8941   return 0;
8942 }
8943 _ACEOF
8944 rm -f conftest.$ac_objext conftest$ac_exeext
8945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8946   (eval $ac_link) 2>&5
8947   ac_status=$?
8948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949   (exit $ac_status); } &&
8950          { ac_try='test -s conftest$ac_exeext'
8951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952   (eval $ac_try) 2>&5
8953   ac_status=$?
8954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955   (exit $ac_status); }; }; then
8956   eval "$as_ac_var=yes"
8957 else
8958   echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.$ac_ext >&5
8960
8961 eval "$as_ac_var=no"
8962 fi
8963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8964 fi
8965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8967 if test `eval echo '${'$as_ac_var'}'` = yes; then
8968   cat >>confdefs.h <<_ACEOF
8969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8970 _ACEOF
8971
8972 fi
8973 done
8974
8975     LIBS="$saved_libs"
8976 fi
8977
8978
8979 # Extract the first word of "sane-config", so it can be a program name with args.
8980 set dummy sane-config; ac_word=$2
8981 echo "$as_me:$LINENO: checking for $ac_word" >&5
8982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8983 if test "${ac_cv_prog_sane_devel+set}" = set; then
8984   echo $ECHO_N "(cached) $ECHO_C" >&6
8985 else
8986   if test -n "$sane_devel"; then
8987   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8988 else
8989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990 for as_dir in $PATH
8991 do
8992   IFS=$as_save_IFS
8993   test -z "$as_dir" && as_dir=.
8994   for ac_exec_ext in '' $ac_executable_extensions; do
8995   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8996     ac_cv_prog_sane_devel="sane-config"
8997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8998     break 2
8999   fi
9000 done
9001 done
9002
9003   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9004 fi
9005 fi
9006 sane_devel=$ac_cv_prog_sane_devel
9007 if test -n "$sane_devel"; then
9008   echo "$as_me:$LINENO: result: $sane_devel" >&5
9009 echo "${ECHO_T}$sane_devel" >&6
9010 else
9011   echo "$as_me:$LINENO: result: no" >&5
9012 echo "${ECHO_T}no" >&6
9013 fi
9014
9015 if test "$sane_devel" = "no"
9016 then
9017     SANELIBS=""
9018     SANEINCL=""
9019 else
9020     SANELIBS="`$sane_devel --libs`"
9021     SANEINCL="`$sane_devel --cflags`"
9022     ac_save_CPPFLAGS="$CPPFLAGS"
9023     ac_save_LIBS="$LIBS"
9024     CPPFLAGS="$CPPFLAGS $SANEINCL"
9025     LIBS="$LIBS $SANELIBS"
9026     if test "${ac_cv_header_sane_sane_h+set}" = set; then
9027   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9028 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9029 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9030   echo $ECHO_N "(cached) $ECHO_C" >&6
9031 fi
9032 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9033 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9034 else
9035   # Is the header compilable?
9036 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9037 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9038 cat >conftest.$ac_ext <<_ACEOF
9039 #line $LINENO "configure"
9040 /* confdefs.h.  */
9041 _ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h.  */
9045 $ac_includes_default
9046 #include <sane/sane.h>
9047 _ACEOF
9048 rm -f conftest.$ac_objext
9049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9050   (eval $ac_compile) 2>&5
9051   ac_status=$?
9052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053   (exit $ac_status); } &&
9054          { ac_try='test -s conftest.$ac_objext'
9055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056   (eval $ac_try) 2>&5
9057   ac_status=$?
9058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   (exit $ac_status); }; }; then
9060   ac_header_compiler=yes
9061 else
9062   echo "$as_me: failed program was:" >&5
9063 sed 's/^/| /' conftest.$ac_ext >&5
9064
9065 ac_header_compiler=no
9066 fi
9067 rm -f conftest.$ac_objext conftest.$ac_ext
9068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9069 echo "${ECHO_T}$ac_header_compiler" >&6
9070
9071 # Is the header present?
9072 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9073 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9074 cat >conftest.$ac_ext <<_ACEOF
9075 #line $LINENO "configure"
9076 /* confdefs.h.  */
9077 _ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h.  */
9081 #include <sane/sane.h>
9082 _ACEOF
9083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9084   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9085   ac_status=$?
9086   grep -v '^ *+' conftest.er1 >conftest.err
9087   rm -f conftest.er1
9088   cat conftest.err >&5
9089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090   (exit $ac_status); } >/dev/null; then
9091   if test -s conftest.err; then
9092     ac_cpp_err=$ac_c_preproc_warn_flag
9093   else
9094     ac_cpp_err=
9095   fi
9096 else
9097   ac_cpp_err=yes
9098 fi
9099 if test -z "$ac_cpp_err"; then
9100   ac_header_preproc=yes
9101 else
9102   echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9104
9105   ac_header_preproc=no
9106 fi
9107 rm -f conftest.err conftest.$ac_ext
9108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9109 echo "${ECHO_T}$ac_header_preproc" >&6
9110
9111 # So?  What about this header?
9112 case $ac_header_compiler:$ac_header_preproc in
9113   yes:no )
9114     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9115 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9116     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9117 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9118     (
9119       cat <<\_ASBOX
9120 ## ------------------------------------ ##
9121 ## Report this to bug-autoconf@gnu.org. ##
9122 ## ------------------------------------ ##
9123 _ASBOX
9124     ) |
9125       sed "s/^/$as_me: WARNING:     /" >&2
9126     ;;
9127   no:yes )
9128     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9129 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9130     { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
9131 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
9132     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
9133 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9134     (
9135       cat <<\_ASBOX
9136 ## ------------------------------------ ##
9137 ## Report this to bug-autoconf@gnu.org. ##
9138 ## ------------------------------------ ##
9139 _ASBOX
9140     ) |
9141       sed "s/^/$as_me: WARNING:     /" >&2
9142     ;;
9143 esac
9144 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9145 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9146 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9147   echo $ECHO_N "(cached) $ECHO_C" >&6
9148 else
9149   ac_cv_header_sane_sane_h=$ac_header_preproc
9150 fi
9151 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9152 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9153
9154 fi
9155 if test $ac_cv_header_sane_sane_h = yes; then
9156   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
9157 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9158 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9159   echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161   ac_check_lib_save_LIBS=$LIBS
9162 LIBS="-lsane  $LIBS"
9163 cat >conftest.$ac_ext <<_ACEOF
9164 #line $LINENO "configure"
9165 /* confdefs.h.  */
9166 _ACEOF
9167 cat confdefs.h >>conftest.$ac_ext
9168 cat >>conftest.$ac_ext <<_ACEOF
9169 /* end confdefs.h.  */
9170
9171 /* Override any gcc2 internal prototype to avoid an error.  */
9172 #ifdef __cplusplus
9173 extern "C"
9174 #endif
9175 /* We use char because int might match the return type of a gcc2
9176    builtin and then its argument prototype would still apply.  */
9177 char sane_open ();
9178 int
9179 main ()
9180 {
9181 sane_open ();
9182   ;
9183   return 0;
9184 }
9185 _ACEOF
9186 rm -f conftest.$ac_objext conftest$ac_exeext
9187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9188   (eval $ac_link) 2>&5
9189   ac_status=$?
9190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191   (exit $ac_status); } &&
9192          { ac_try='test -s conftest$ac_exeext'
9193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194   (eval $ac_try) 2>&5
9195   ac_status=$?
9196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197   (exit $ac_status); }; }; then
9198   ac_cv_lib_sane_sane_open=yes
9199 else
9200   echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9202
9203 ac_cv_lib_sane_sane_open=no
9204 fi
9205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9206 LIBS=$ac_check_lib_save_LIBS
9207 fi
9208 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
9209 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9210 if test $ac_cv_lib_sane_sane_open = yes; then
9211
9212 cat >>confdefs.h <<\_ACEOF
9213 #define HAVE_SANE 1
9214 _ACEOF
9215
9216 else
9217   SANELIBS=""
9218                                   SANEINCL=""
9219 fi
9220
9221 else
9222   SANELIBS=""
9223                     SANEINCL=""
9224 fi
9225
9226
9227     LIBS="$ac_save_LIBS"
9228     CPPFLAGS="$ac_save_CPPFLAGS"
9229 fi
9230
9231
9232
9233
9234 for ac_header in unicode/ubidi.h
9235 do
9236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9238   echo "$as_me:$LINENO: checking for $ac_header" >&5
9239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9241   echo $ECHO_N "(cached) $ECHO_C" >&6
9242 fi
9243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9245 else
9246   # Is the header compilable?
9247 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9249 cat >conftest.$ac_ext <<_ACEOF
9250 #line $LINENO "configure"
9251 /* confdefs.h.  */
9252 _ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h.  */
9256 $ac_includes_default
9257 #include <$ac_header>
9258 _ACEOF
9259 rm -f conftest.$ac_objext
9260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9261   (eval $ac_compile) 2>&5
9262   ac_status=$?
9263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264   (exit $ac_status); } &&
9265          { ac_try='test -s conftest.$ac_objext'
9266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267   (eval $ac_try) 2>&5
9268   ac_status=$?
9269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270   (exit $ac_status); }; }; then
9271   ac_header_compiler=yes
9272 else
9273   echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9275
9276 ac_header_compiler=no
9277 fi
9278 rm -f conftest.$ac_objext conftest.$ac_ext
9279 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9280 echo "${ECHO_T}$ac_header_compiler" >&6
9281
9282 # Is the header present?
9283 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9285 cat >conftest.$ac_ext <<_ACEOF
9286 #line $LINENO "configure"
9287 /* confdefs.h.  */
9288 _ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h.  */
9292 #include <$ac_header>
9293 _ACEOF
9294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9295   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9296   ac_status=$?
9297   grep -v '^ *+' conftest.er1 >conftest.err
9298   rm -f conftest.er1
9299   cat conftest.err >&5
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); } >/dev/null; then
9302   if test -s conftest.err; then
9303     ac_cpp_err=$ac_c_preproc_warn_flag
9304   else
9305     ac_cpp_err=
9306   fi
9307 else
9308   ac_cpp_err=yes
9309 fi
9310 if test -z "$ac_cpp_err"; then
9311   ac_header_preproc=yes
9312 else
9313   echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9315
9316   ac_header_preproc=no
9317 fi
9318 rm -f conftest.err conftest.$ac_ext
9319 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9320 echo "${ECHO_T}$ac_header_preproc" >&6
9321
9322 # So?  What about this header?
9323 case $ac_header_compiler:$ac_header_preproc in
9324   yes:no )
9325     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9327     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9328 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9329     (
9330       cat <<\_ASBOX
9331 ## ------------------------------------ ##
9332 ## Report this to bug-autoconf@gnu.org. ##
9333 ## ------------------------------------ ##
9334 _ASBOX
9335     ) |
9336       sed "s/^/$as_me: WARNING:     /" >&2
9337     ;;
9338   no:yes )
9339     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9341     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9343     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9345     (
9346       cat <<\_ASBOX
9347 ## ------------------------------------ ##
9348 ## Report this to bug-autoconf@gnu.org. ##
9349 ## ------------------------------------ ##
9350 _ASBOX
9351     ) |
9352       sed "s/^/$as_me: WARNING:     /" >&2
9353     ;;
9354 esac
9355 echo "$as_me:$LINENO: checking for $ac_header" >&5
9356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9358   echo $ECHO_N "(cached) $ECHO_C" >&6
9359 else
9360   eval "$as_ac_Header=$ac_header_preproc"
9361 fi
9362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9364
9365 fi
9366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9367   cat >>confdefs.h <<_ACEOF
9368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9369 _ACEOF
9370
9371 fi
9372
9373 done
9374
9375 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9376 then
9377     echo "$as_me:$LINENO: checking whether we can statically link the ICU libraries" >&5
9378 echo $ECHO_N "checking whether we can statically link the ICU libraries... $ECHO_C" >&6
9379 if test "${ac_cv_lib_icu+set}" = set; then
9380   echo $ECHO_N "(cached) $ECHO_C" >&6
9381 else
9382   saved_libs="$LIBS"
9383          ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
9384          ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}"
9385          ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}"
9386          LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9387          cat >conftest.$ac_ext <<_ACEOF
9388 #line $LINENO "configure"
9389 /* confdefs.h.  */
9390 _ACEOF
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h.  */
9394 #include <unicode/ubidi.h>
9395 int
9396 main ()
9397 {
9398 ubidi_open()
9399   ;
9400   return 0;
9401 }
9402 _ACEOF
9403 rm -f conftest.$ac_objext conftest$ac_exeext
9404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9405   (eval $ac_link) 2>&5
9406   ac_status=$?
9407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408   (exit $ac_status); } &&
9409          { ac_try='test -s conftest$ac_exeext'
9410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411   (eval $ac_try) 2>&5
9412   ac_status=$?
9413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414   (exit $ac_status); }; }; then
9415   ac_cv_lib_icu="yes"
9416 else
9417   echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9419
9420 ac_cv_lib_icu="no"
9421 fi
9422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9423         LIBS="$saved_libs"
9424 fi
9425 echo "$as_me:$LINENO: result: $ac_cv_lib_icu" >&5
9426 echo "${ECHO_T}$ac_cv_lib_icu" >&6
9427     if test "$ac_cv_lib_icu" = "yes"
9428     then
9429
9430 cat >>confdefs.h <<\_ACEOF
9431 #define HAVE_ICU 1
9432 _ACEOF
9433
9434         ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9435
9436     fi
9437 fi
9438
9439 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
9440 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9441 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9442   echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9444   ac_check_lib_save_LIBS=$LIBS
9445 LIBS="-lfreetype $X_LIBS $LIBS"
9446 cat >conftest.$ac_ext <<_ACEOF
9447 #line $LINENO "configure"
9448 /* confdefs.h.  */
9449 _ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h.  */
9453
9454 /* Override any gcc2 internal prototype to avoid an error.  */
9455 #ifdef __cplusplus
9456 extern "C"
9457 #endif
9458 /* We use char because int might match the return type of a gcc2
9459    builtin and then its argument prototype would still apply.  */
9460 char FT_Init_FreeType ();
9461 int
9462 main ()
9463 {
9464 FT_Init_FreeType ();
9465   ;
9466   return 0;
9467 }
9468 _ACEOF
9469 rm -f conftest.$ac_objext conftest$ac_exeext
9470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9471   (eval $ac_link) 2>&5
9472   ac_status=$?
9473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474   (exit $ac_status); } &&
9475          { ac_try='test -s conftest$ac_exeext'
9476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477   (eval $ac_try) 2>&5
9478   ac_status=$?
9479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480   (exit $ac_status); }; }; then
9481   ac_cv_lib_freetype_FT_Init_FreeType=yes
9482 else
9483   echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9485
9486 ac_cv_lib_freetype_FT_Init_FreeType=no
9487 fi
9488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9489 LIBS=$ac_check_lib_save_LIBS
9490 fi
9491 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
9492 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
9493 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
9494   ft_lib=yes
9495 else
9496   ft_lib=no
9497 fi
9498
9499 if test "$ft_lib" = "no"
9500 then
9501     FREETYPEINCL=""
9502     wine_cv_msg_freetype=no
9503 else
9504     # Extract the first word of "freetype-config", so it can be a program name with args.
9505 set dummy freetype-config; ac_word=$2
9506 echo "$as_me:$LINENO: checking for $ac_word" >&5
9507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9508 if test "${ac_cv_prog_ft_devel+set}" = set; then
9509   echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511   if test -n "$ft_devel"; then
9512   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9513 else
9514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9515 for as_dir in $PATH
9516 do
9517   IFS=$as_save_IFS
9518   test -z "$as_dir" && as_dir=.
9519   for ac_exec_ext in '' $ac_executable_extensions; do
9520   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9521     ac_cv_prog_ft_devel="freetype-config"
9522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9523     break 2
9524   fi
9525 done
9526 done
9527
9528   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
9529 fi
9530 fi
9531 ft_devel=$ac_cv_prog_ft_devel
9532 if test -n "$ft_devel"; then
9533   echo "$as_me:$LINENO: result: $ft_devel" >&5
9534 echo "${ECHO_T}$ft_devel" >&6
9535 else
9536   echo "$as_me:$LINENO: result: no" >&5
9537 echo "${ECHO_T}no" >&6
9538 fi
9539
9540     if test "$ft_devel" = "no"
9541     then
9542         # Extract the first word of "freetype2-config", so it can be a program name with args.
9543 set dummy freetype2-config; ac_word=$2
9544 echo "$as_me:$LINENO: checking for $ac_word" >&5
9545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9546 if test "${ac_cv_prog_ft_devel2+set}" = set; then
9547   echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549   if test -n "$ft_devel2"; then
9550   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9551 else
9552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9553 for as_dir in $PATH
9554 do
9555   IFS=$as_save_IFS
9556   test -z "$as_dir" && as_dir=.
9557   for ac_exec_ext in '' $ac_executable_extensions; do
9558   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9559     ac_cv_prog_ft_devel2="freetype2-config"
9560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9561     break 2
9562   fi
9563 done
9564 done
9565
9566   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9567 fi
9568 fi
9569 ft_devel2=$ac_cv_prog_ft_devel2
9570 if test -n "$ft_devel2"; then
9571   echo "$as_me:$LINENO: result: $ft_devel2" >&5
9572 echo "${ECHO_T}$ft_devel2" >&6
9573 else
9574   echo "$as_me:$LINENO: result: no" >&5
9575 echo "${ECHO_T}no" >&6
9576 fi
9577
9578         if test "$ft_devel2" = "freetype2-config"
9579         then
9580                 ft_devel=$ft_devel2
9581         fi
9582     fi
9583     if test "$ft_devel" = "no"
9584     then
9585         FREETYPEINCL=""
9586         wine_cv_msg_freetype=yes
9587     else
9588         FREETYPEINCL=`$ft_devel --cflags`
9589         ac_save_CPPFLAGS="$CPPFLAGS"
9590         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
9591
9592
9593
9594
9595
9596
9597
9598
9599 for ac_header in freetype/freetype.h \
9600                          freetype/ftglyph.h \
9601                          freetype/tttables.h \
9602                          freetype/ftnames.h \
9603                          freetype/ftsnames.h \
9604                          freetype/ttnameid.h \
9605                          freetype/ftoutln.h \
9606                          freetype/internal/sfnt.h
9607 do
9608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9610   echo "$as_me:$LINENO: checking for $ac_header" >&5
9611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9613   echo $ECHO_N "(cached) $ECHO_C" >&6
9614 fi
9615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9617 else
9618   # Is the header compilable?
9619 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9620 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9621 cat >conftest.$ac_ext <<_ACEOF
9622 #line $LINENO "configure"
9623 /* confdefs.h.  */
9624 _ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h.  */
9628 $ac_includes_default
9629 #include <$ac_header>
9630 _ACEOF
9631 rm -f conftest.$ac_objext
9632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9633   (eval $ac_compile) 2>&5
9634   ac_status=$?
9635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636   (exit $ac_status); } &&
9637          { ac_try='test -s conftest.$ac_objext'
9638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639   (eval $ac_try) 2>&5
9640   ac_status=$?
9641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642   (exit $ac_status); }; }; then
9643   ac_header_compiler=yes
9644 else
9645   echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.$ac_ext >&5
9647
9648 ac_header_compiler=no
9649 fi
9650 rm -f conftest.$ac_objext conftest.$ac_ext
9651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9652 echo "${ECHO_T}$ac_header_compiler" >&6
9653
9654 # Is the header present?
9655 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9656 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9657 cat >conftest.$ac_ext <<_ACEOF
9658 #line $LINENO "configure"
9659 /* confdefs.h.  */
9660 _ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h.  */
9664 #include <$ac_header>
9665 _ACEOF
9666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9667   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9668   ac_status=$?
9669   grep -v '^ *+' conftest.er1 >conftest.err
9670   rm -f conftest.er1
9671   cat conftest.err >&5
9672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673   (exit $ac_status); } >/dev/null; then
9674   if test -s conftest.err; then
9675     ac_cpp_err=$ac_c_preproc_warn_flag
9676   else
9677     ac_cpp_err=
9678   fi
9679 else
9680   ac_cpp_err=yes
9681 fi
9682 if test -z "$ac_cpp_err"; then
9683   ac_header_preproc=yes
9684 else
9685   echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9687
9688   ac_header_preproc=no
9689 fi
9690 rm -f conftest.err conftest.$ac_ext
9691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9692 echo "${ECHO_T}$ac_header_preproc" >&6
9693
9694 # So?  What about this header?
9695 case $ac_header_compiler:$ac_header_preproc in
9696   yes:no )
9697     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9699     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9701     (
9702       cat <<\_ASBOX
9703 ## ------------------------------------ ##
9704 ## Report this to bug-autoconf@gnu.org. ##
9705 ## ------------------------------------ ##
9706 _ASBOX
9707     ) |
9708       sed "s/^/$as_me: WARNING:     /" >&2
9709     ;;
9710   no:yes )
9711     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9713     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9714 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9715     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9717     (
9718       cat <<\_ASBOX
9719 ## ------------------------------------ ##
9720 ## Report this to bug-autoconf@gnu.org. ##
9721 ## ------------------------------------ ##
9722 _ASBOX
9723     ) |
9724       sed "s/^/$as_me: WARNING:     /" >&2
9725     ;;
9726 esac
9727 echo "$as_me:$LINENO: checking for $ac_header" >&5
9728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9730   echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732   eval "$as_ac_Header=$ac_header_preproc"
9733 fi
9734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9736
9737 fi
9738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9739   cat >>confdefs.h <<_ACEOF
9740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9741 _ACEOF
9742
9743 fi
9744
9745 done
9746
9747         cat >conftest.$ac_ext <<_ACEOF
9748 #line $LINENO "configure"
9749 /* confdefs.h.  */
9750 _ACEOF
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h.  */
9754 #include <ft2build.h>
9755                     #include <freetype/fttrigon.h>
9756 _ACEOF
9757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9758   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9759   ac_status=$?
9760   grep -v '^ *+' conftest.er1 >conftest.err
9761   rm -f conftest.er1
9762   cat conftest.err >&5
9763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764   (exit $ac_status); } >/dev/null; then
9765   if test -s conftest.err; then
9766     ac_cpp_err=$ac_c_preproc_warn_flag
9767   else
9768     ac_cpp_err=
9769   fi
9770 else
9771   ac_cpp_err=yes
9772 fi
9773 if test -z "$ac_cpp_err"; then
9774
9775 cat >>confdefs.h <<\_ACEOF
9776 #define HAVE_FREETYPE_FTTRIGON_H 1
9777 _ACEOF
9778
9779                     wine_cv_fttrigon=yes
9780 else
9781   echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9783
9784   wine_cv_fttrigon=no
9785 fi
9786 rm -f conftest.err conftest.$ac_ext
9787         CPPFLAGS="$ac_save_CPPFLAGS"
9788                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
9789         then
9790
9791 cat >>confdefs.h <<\_ACEOF
9792 #define HAVE_FREETYPE 1
9793 _ACEOF
9794
9795             wine_cv_msg_freetype=no
9796         else
9797             FREETYPEINCL=""
9798             wine_cv_msg_freetype=yes
9799         fi
9800     fi
9801 fi
9802
9803
9804 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
9805 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9806 if test "${ac_cv_c_ppdev+set}" = set; then
9807   echo $ECHO_N "(cached) $ECHO_C" >&6
9808 else
9809   cat >conftest.$ac_ext <<_ACEOF
9810 #line $LINENO "configure"
9811 /* confdefs.h.  */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h.  */
9816 #include <linux/ppdev.h>
9817 int
9818 main ()
9819 {
9820 ioctl (1,PPCLAIM,0)
9821   ;
9822   return 0;
9823 }
9824 _ACEOF
9825 rm -f conftest.$ac_objext
9826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9827   (eval $ac_compile) 2>&5
9828   ac_status=$?
9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); } &&
9831          { ac_try='test -s conftest.$ac_objext'
9832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833   (eval $ac_try) 2>&5
9834   ac_status=$?
9835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836   (exit $ac_status); }; }; then
9837   ac_cv_c_ppdev="yes"
9838 else
9839   echo "$as_me: failed program was:" >&5
9840 sed 's/^/| /' conftest.$ac_ext >&5
9841
9842 ac_cv_c_ppdev="no"
9843 fi
9844 rm -f conftest.$ac_objext conftest.$ac_ext
9845
9846 fi
9847 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
9848 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
9849 if test "$ac_cv_c_ppdev" = "yes"
9850 then
9851
9852 cat >>confdefs.h <<\_ACEOF
9853 #define HAVE_PPDEV 1
9854 _ACEOF
9855
9856 fi
9857
9858 echo "$as_me:$LINENO: checking for va_copy" >&5
9859 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9860 if test "${ac_cv_c_va_copy+set}" = set; then
9861   echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863   cat >conftest.$ac_ext <<_ACEOF
9864 #line $LINENO "configure"
9865 /* confdefs.h.  */
9866 _ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h.  */
9870 #include <stdarg.h>
9871 int
9872 main ()
9873 {
9874 va_list ap1, ap2;
9875     va_copy(ap1,ap2);
9876
9877   ;
9878   return 0;
9879 }
9880 _ACEOF
9881 rm -f conftest.$ac_objext conftest$ac_exeext
9882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9883   (eval $ac_link) 2>&5
9884   ac_status=$?
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); } &&
9887          { ac_try='test -s conftest$ac_exeext'
9888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9889   (eval $ac_try) 2>&5
9890   ac_status=$?
9891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892   (exit $ac_status); }; }; then
9893   ac_cv_c_va_copy="yes"
9894 else
9895   echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9897
9898 ac_cv_c_va_copy="no"
9899 fi
9900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9901
9902 fi
9903 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
9904 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
9905 if test "$ac_cv_c_va_copy" = "yes"
9906 then
9907
9908 cat >>confdefs.h <<\_ACEOF
9909 #define HAVE_VA_COPY 1
9910 _ACEOF
9911
9912 fi
9913 echo "$as_me:$LINENO: checking for __va_copy" >&5
9914 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9915 if test "${ac_cv_c___va_copy+set}" = set; then
9916   echo $ECHO_N "(cached) $ECHO_C" >&6
9917 else
9918   cat >conftest.$ac_ext <<_ACEOF
9919 #line $LINENO "configure"
9920 /* confdefs.h.  */
9921 _ACEOF
9922 cat confdefs.h >>conftest.$ac_ext
9923 cat >>conftest.$ac_ext <<_ACEOF
9924 /* end confdefs.h.  */
9925 #include <stdarg.h>
9926 int
9927 main ()
9928 {
9929 va_list ap1, ap2;
9930     __va_copy(ap1,ap2);
9931
9932   ;
9933   return 0;
9934 }
9935 _ACEOF
9936 rm -f conftest.$ac_objext conftest$ac_exeext
9937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9938   (eval $ac_link) 2>&5
9939   ac_status=$?
9940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941   (exit $ac_status); } &&
9942          { ac_try='test -s conftest$ac_exeext'
9943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944   (eval $ac_try) 2>&5
9945   ac_status=$?
9946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947   (exit $ac_status); }; }; then
9948   ac_cv_c___va_copy="yes"
9949 else
9950   echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9952
9953 ac_cv_c___va_copy="no"
9954 fi
9955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9956
9957 fi
9958 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
9959 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
9960 if test "$ac_cv_c___va_copy" = "yes"
9961 then
9962
9963 cat >>confdefs.h <<\_ACEOF
9964 #define HAVE___VA_COPY 1
9965 _ACEOF
9966
9967 fi
9968
9969
9970
9971
9972 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
9973 do
9974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9976   echo "$as_me:$LINENO: checking for $ac_header" >&5
9977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9979   echo $ECHO_N "(cached) $ECHO_C" >&6
9980 fi
9981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9983 else
9984   # Is the header compilable?
9985 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9987 cat >conftest.$ac_ext <<_ACEOF
9988 #line $LINENO "configure"
9989 /* confdefs.h.  */
9990 _ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h.  */
9994 $ac_includes_default
9995 #include <$ac_header>
9996 _ACEOF
9997 rm -f conftest.$ac_objext
9998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9999   (eval $ac_compile) 2>&5
10000   ac_status=$?
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); } &&
10003          { ac_try='test -s conftest.$ac_objext'
10004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005   (eval $ac_try) 2>&5
10006   ac_status=$?
10007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008   (exit $ac_status); }; }; then
10009   ac_header_compiler=yes
10010 else
10011   echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10013
10014 ac_header_compiler=no
10015 fi
10016 rm -f conftest.$ac_objext conftest.$ac_ext
10017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10018 echo "${ECHO_T}$ac_header_compiler" >&6
10019
10020 # Is the header present?
10021 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10023 cat >conftest.$ac_ext <<_ACEOF
10024 #line $LINENO "configure"
10025 /* confdefs.h.  */
10026 _ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h.  */
10030 #include <$ac_header>
10031 _ACEOF
10032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10033   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10034   ac_status=$?
10035   grep -v '^ *+' conftest.er1 >conftest.err
10036   rm -f conftest.er1
10037   cat conftest.err >&5
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); } >/dev/null; then
10040   if test -s conftest.err; then
10041     ac_cpp_err=$ac_c_preproc_warn_flag
10042   else
10043     ac_cpp_err=
10044   fi
10045 else
10046   ac_cpp_err=yes
10047 fi
10048 if test -z "$ac_cpp_err"; then
10049   ac_header_preproc=yes
10050 else
10051   echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10053
10054   ac_header_preproc=no
10055 fi
10056 rm -f conftest.err conftest.$ac_ext
10057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10058 echo "${ECHO_T}$ac_header_preproc" >&6
10059
10060 # So?  What about this header?
10061 case $ac_header_compiler:$ac_header_preproc in
10062   yes:no )
10063     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10067     (
10068       cat <<\_ASBOX
10069 ## ------------------------------------ ##
10070 ## Report this to bug-autoconf@gnu.org. ##
10071 ## ------------------------------------ ##
10072 _ASBOX
10073     ) |
10074       sed "s/^/$as_me: WARNING:     /" >&2
10075     ;;
10076   no:yes )
10077     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10079     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10083     (
10084       cat <<\_ASBOX
10085 ## ------------------------------------ ##
10086 ## Report this to bug-autoconf@gnu.org. ##
10087 ## ------------------------------------ ##
10088 _ASBOX
10089     ) |
10090       sed "s/^/$as_me: WARNING:     /" >&2
10091     ;;
10092 esac
10093 echo "$as_me:$LINENO: checking for $ac_header" >&5
10094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10096   echo $ECHO_N "(cached) $ECHO_C" >&6
10097 else
10098   eval "$as_ac_Header=$ac_header_preproc"
10099 fi
10100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10102
10103 fi
10104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10105   cat >>confdefs.h <<_ACEOF
10106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10107 _ACEOF
10108  break
10109 fi
10110
10111 done
10112
10113
10114 echo "$as_me:$LINENO: checking for Open Sound System" >&5
10115 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
10116 if test "${ac_cv_c_opensoundsystem+set}" = set; then
10117   echo $ECHO_N "(cached) $ECHO_C" >&6
10118 else
10119   cat >conftest.$ac_ext <<_ACEOF
10120 #line $LINENO "configure"
10121 /* confdefs.h.  */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h.  */
10126
10127         #if defined(HAVE_SYS_SOUNDCARD_H)
10128                 #include <sys/soundcard.h>
10129         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10130                 #include <machine/soundcard.h>
10131         #elif defined(HAVE_SOUNDCARD_H)
10132                 #include <soundcard.h>
10133         #endif
10134
10135 int
10136 main ()
10137 {
10138
10139
10140 /* check for one of the Open Sound System specific SNDCTL_ defines */
10141 #if !defined(SNDCTL_DSP_STEREO)
10142 #error No open sound system
10143 #endif
10144
10145   ;
10146   return 0;
10147 }
10148 _ACEOF
10149 rm -f conftest.$ac_objext
10150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10151   (eval $ac_compile) 2>&5
10152   ac_status=$?
10153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154   (exit $ac_status); } &&
10155          { ac_try='test -s conftest.$ac_objext'
10156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157   (eval $ac_try) 2>&5
10158   ac_status=$?
10159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160   (exit $ac_status); }; }; then
10161   ac_cv_c_opensoundsystem="yes"
10162 else
10163   echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10165
10166 ac_cv_c_opensoundsystem="no"
10167 fi
10168 rm -f conftest.$ac_objext conftest.$ac_ext
10169 fi
10170 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
10171 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
10172
10173 if test "$ac_cv_c_opensoundsystem" = "yes"
10174 then
10175
10176 cat >>confdefs.h <<\_ACEOF
10177 #define HAVE_OSS 1
10178 _ACEOF
10179
10180 fi
10181
10182 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
10183 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
10184 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
10185   echo $ECHO_N "(cached) $ECHO_C" >&6
10186 else
10187   cat >conftest.$ac_ext <<_ACEOF
10188 #line $LINENO "configure"
10189 /* confdefs.h.  */
10190 _ACEOF
10191 cat confdefs.h >>conftest.$ac_ext
10192 cat >>conftest.$ac_ext <<_ACEOF
10193 /* end confdefs.h.  */
10194
10195         #if defined(HAVE_SYS_SOUNDCARD_H)
10196                 #include <sys/soundcard.h>
10197         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10198                 #include <machine/soundcard.h>
10199         #elif defined(HAVE_SOUNDCARD_H)
10200                 #include <soundcard.h>
10201         #endif
10202
10203 int
10204 main ()
10205 {
10206
10207
10208 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
10209 #if !defined(SNDCTL_SEQ_SYNC)
10210 #error No open sound system MIDI interface
10211 #endif
10212
10213   ;
10214   return 0;
10215 }
10216 _ACEOF
10217 rm -f conftest.$ac_objext
10218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10219   (eval $ac_compile) 2>&5
10220   ac_status=$?
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); } &&
10223          { ac_try='test -s conftest.$ac_objext'
10224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225   (eval $ac_try) 2>&5
10226   ac_status=$?
10227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228   (exit $ac_status); }; }; then
10229   ac_cv_c_opensoundsystem_midi="yes"
10230 else
10231   echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10233
10234 ac_cv_c_opensoundsystem_midi="no"
10235 fi
10236 rm -f conftest.$ac_objext conftest.$ac_ext
10237 fi
10238 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
10239 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
10240
10241 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
10242 then
10243
10244 cat >>confdefs.h <<\_ACEOF
10245 #define HAVE_OSS_MIDI 1
10246 _ACEOF
10247
10248 fi
10249
10250 # Extract the first word of "artsc-config", so it can be a program name with args.
10251 set dummy artsc-config; ac_word=$2
10252 echo "$as_me:$LINENO: checking for $ac_word" >&5
10253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10254 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
10255   echo $ECHO_N "(cached) $ECHO_C" >&6
10256 else
10257   case $ARTSCCONFIG in
10258   [\\/]* | ?:[\\/]*)
10259   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
10260   ;;
10261   *)
10262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10263 for as_dir in $PATH
10264 do
10265   IFS=$as_save_IFS
10266   test -z "$as_dir" && as_dir=.
10267   for ac_exec_ext in '' $ac_executable_extensions; do
10268   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10269     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
10270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10271     break 2
10272   fi
10273 done
10274 done
10275
10276   ;;
10277 esac
10278 fi
10279 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
10280
10281 if test -n "$ARTSCCONFIG"; then
10282   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
10283 echo "${ECHO_T}$ARTSCCONFIG" >&6
10284 else
10285   echo "$as_me:$LINENO: result: no" >&5
10286 echo "${ECHO_T}no" >&6
10287 fi
10288
10289 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
10290 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
10291 if test "${ac_cv_c_artsserver+set}" = set; then
10292   echo $ECHO_N "(cached) $ECHO_C" >&6
10293 else
10294   if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
10295         then
10296             ac_cv_c_artsserver=no
10297         else
10298             ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
10299             ARTSC_LIBS=`$ARTSCCONFIG --libs`
10300             ac_cv_c_artsserver=no
10301             save_CFLAGS="$CFLAGS"
10302             CFLAGS="$CFLAGS $ARTSC_CFLAGS"
10303             cat >conftest.$ac_ext <<_ACEOF
10304 #line $LINENO "configure"
10305 /* confdefs.h.  */
10306 _ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h.  */
10310
10311              #include <artsc.h>
10312
10313 int
10314 main ()
10315 {
10316
10317              arts_stream_t stream;
10318
10319   ;
10320   return 0;
10321 }
10322 _ACEOF
10323 rm -f conftest.$ac_objext
10324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10325   (eval $ac_compile) 2>&5
10326   ac_status=$?
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); } &&
10329          { ac_try='test -s conftest.$ac_objext'
10330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331   (eval $ac_try) 2>&5
10332   ac_status=$?
10333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334   (exit $ac_status); }; }; then
10335
10336             ac_cv_c_artsserver=yes
10337
10338 else
10339   echo "$as_me: failed program was:" >&5
10340 sed 's/^/| /' conftest.$ac_ext >&5
10341
10342 fi
10343 rm -f conftest.$ac_objext conftest.$ac_ext
10344             CFLAGS="$save_CFLAGS"
10345         fi
10346 fi
10347 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
10348 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
10349
10350 if test "$ac_cv_c_artsserver" = "yes"
10351 then
10352     ARTSLIBS=$ARTSC_LIBS
10353
10354     ARTSINCL=$ARTSC_CFLAGS
10355
10356
10357
10358 cat >>confdefs.h <<\_ACEOF
10359 #define HAVE_ARTS 1
10360 _ACEOF
10361
10362 fi
10363
10364 ALSALIBS=""
10365
10366
10367
10368 for ac_header in alsa/asoundlib.h sys/asoundlib.h
10369 do
10370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10372   echo "$as_me:$LINENO: checking for $ac_header" >&5
10373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10375   echo $ECHO_N "(cached) $ECHO_C" >&6
10376 fi
10377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10379 else
10380   # Is the header compilable?
10381 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10383 cat >conftest.$ac_ext <<_ACEOF
10384 #line $LINENO "configure"
10385 /* confdefs.h.  */
10386 _ACEOF
10387 cat confdefs.h >>conftest.$ac_ext
10388 cat >>conftest.$ac_ext <<_ACEOF
10389 /* end confdefs.h.  */
10390 $ac_includes_default
10391 #include <$ac_header>
10392 _ACEOF
10393 rm -f conftest.$ac_objext
10394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10395   (eval $ac_compile) 2>&5
10396   ac_status=$?
10397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398   (exit $ac_status); } &&
10399          { ac_try='test -s conftest.$ac_objext'
10400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10401   (eval $ac_try) 2>&5
10402   ac_status=$?
10403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404   (exit $ac_status); }; }; then
10405   ac_header_compiler=yes
10406 else
10407   echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10409
10410 ac_header_compiler=no
10411 fi
10412 rm -f conftest.$ac_objext conftest.$ac_ext
10413 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10414 echo "${ECHO_T}$ac_header_compiler" >&6
10415
10416 # Is the header present?
10417 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10419 cat >conftest.$ac_ext <<_ACEOF
10420 #line $LINENO "configure"
10421 /* confdefs.h.  */
10422 _ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h.  */
10426 #include <$ac_header>
10427 _ACEOF
10428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10429   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10430   ac_status=$?
10431   grep -v '^ *+' conftest.er1 >conftest.err
10432   rm -f conftest.er1
10433   cat conftest.err >&5
10434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435   (exit $ac_status); } >/dev/null; then
10436   if test -s conftest.err; then
10437     ac_cpp_err=$ac_c_preproc_warn_flag
10438   else
10439     ac_cpp_err=
10440   fi
10441 else
10442   ac_cpp_err=yes
10443 fi
10444 if test -z "$ac_cpp_err"; then
10445   ac_header_preproc=yes
10446 else
10447   echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10449
10450   ac_header_preproc=no
10451 fi
10452 rm -f conftest.err conftest.$ac_ext
10453 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10454 echo "${ECHO_T}$ac_header_preproc" >&6
10455
10456 # So?  What about this header?
10457 case $ac_header_compiler:$ac_header_preproc in
10458   yes:no )
10459     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10463     (
10464       cat <<\_ASBOX
10465 ## ------------------------------------ ##
10466 ## Report this to bug-autoconf@gnu.org. ##
10467 ## ------------------------------------ ##
10468 _ASBOX
10469     ) |
10470       sed "s/^/$as_me: WARNING:     /" >&2
10471     ;;
10472   no:yes )
10473     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10475     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10479     (
10480       cat <<\_ASBOX
10481 ## ------------------------------------ ##
10482 ## Report this to bug-autoconf@gnu.org. ##
10483 ## ------------------------------------ ##
10484 _ASBOX
10485     ) |
10486       sed "s/^/$as_me: WARNING:     /" >&2
10487     ;;
10488 esac
10489 echo "$as_me:$LINENO: checking for $ac_header" >&5
10490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10492   echo $ECHO_N "(cached) $ECHO_C" >&6
10493 else
10494   eval "$as_ac_Header=$ac_header_preproc"
10495 fi
10496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10498
10499 fi
10500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10501   cat >>confdefs.h <<_ACEOF
10502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10503 _ACEOF
10504  break
10505 fi
10506
10507 done
10508
10509 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10510 then
10511     echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
10512 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
10513 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
10514   echo $ECHO_N "(cached) $ECHO_C" >&6
10515 else
10516   ac_check_lib_save_LIBS=$LIBS
10517 LIBS="-lasound  $LIBS"
10518 cat >conftest.$ac_ext <<_ACEOF
10519 #line $LINENO "configure"
10520 /* confdefs.h.  */
10521 _ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h.  */
10525
10526 /* Override any gcc2 internal prototype to avoid an error.  */
10527 #ifdef __cplusplus
10528 extern "C"
10529 #endif
10530 /* We use char because int might match the return type of a gcc2
10531    builtin and then its argument prototype would still apply.  */
10532 char snd_pcm_open ();
10533 int
10534 main ()
10535 {
10536 snd_pcm_open ();
10537   ;
10538   return 0;
10539 }
10540 _ACEOF
10541 rm -f conftest.$ac_objext conftest$ac_exeext
10542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10543   (eval $ac_link) 2>&5
10544   ac_status=$?
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); } &&
10547          { ac_try='test -s conftest$ac_exeext'
10548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549   (eval $ac_try) 2>&5
10550   ac_status=$?
10551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552   (exit $ac_status); }; }; then
10553   ac_cv_lib_asound_snd_pcm_open=yes
10554 else
10555   echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10557
10558 ac_cv_lib_asound_snd_pcm_open=no
10559 fi
10560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10561 LIBS=$ac_check_lib_save_LIBS
10562 fi
10563 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
10564 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
10565 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
10566
10567 cat >>confdefs.h <<\_ACEOF
10568 #define HAVE_ALSA 1
10569 _ACEOF
10570
10571         ALSALIBS="-lasound"
10572 fi
10573
10574 fi
10575
10576
10577 AUDIOIOLIBS=""
10578
10579
10580 for ac_header in libaudioio.h
10581 do
10582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10584   echo "$as_me:$LINENO: checking for $ac_header" >&5
10585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10587   echo $ECHO_N "(cached) $ECHO_C" >&6
10588 fi
10589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10591 else
10592   # Is the header compilable?
10593 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10595 cat >conftest.$ac_ext <<_ACEOF
10596 #line $LINENO "configure"
10597 /* confdefs.h.  */
10598 _ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h.  */
10602 $ac_includes_default
10603 #include <$ac_header>
10604 _ACEOF
10605 rm -f conftest.$ac_objext
10606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10607   (eval $ac_compile) 2>&5
10608   ac_status=$?
10609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610   (exit $ac_status); } &&
10611          { ac_try='test -s conftest.$ac_objext'
10612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613   (eval $ac_try) 2>&5
10614   ac_status=$?
10615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616   (exit $ac_status); }; }; then
10617   ac_header_compiler=yes
10618 else
10619   echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10621
10622 ac_header_compiler=no
10623 fi
10624 rm -f conftest.$ac_objext conftest.$ac_ext
10625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10626 echo "${ECHO_T}$ac_header_compiler" >&6
10627
10628 # Is the header present?
10629 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10631 cat >conftest.$ac_ext <<_ACEOF
10632 #line $LINENO "configure"
10633 /* confdefs.h.  */
10634 _ACEOF
10635 cat confdefs.h >>conftest.$ac_ext
10636 cat >>conftest.$ac_ext <<_ACEOF
10637 /* end confdefs.h.  */
10638 #include <$ac_header>
10639 _ACEOF
10640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10641   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10642   ac_status=$?
10643   grep -v '^ *+' conftest.er1 >conftest.err
10644   rm -f conftest.er1
10645   cat conftest.err >&5
10646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647   (exit $ac_status); } >/dev/null; then
10648   if test -s conftest.err; then
10649     ac_cpp_err=$ac_c_preproc_warn_flag
10650   else
10651     ac_cpp_err=
10652   fi
10653 else
10654   ac_cpp_err=yes
10655 fi
10656 if test -z "$ac_cpp_err"; then
10657   ac_header_preproc=yes
10658 else
10659   echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10661
10662   ac_header_preproc=no
10663 fi
10664 rm -f conftest.err conftest.$ac_ext
10665 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10666 echo "${ECHO_T}$ac_header_preproc" >&6
10667
10668 # So?  What about this header?
10669 case $ac_header_compiler:$ac_header_preproc in
10670   yes:no )
10671     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10675     (
10676       cat <<\_ASBOX
10677 ## ------------------------------------ ##
10678 ## Report this to bug-autoconf@gnu.org. ##
10679 ## ------------------------------------ ##
10680 _ASBOX
10681     ) |
10682       sed "s/^/$as_me: WARNING:     /" >&2
10683     ;;
10684   no:yes )
10685     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10687     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10691     (
10692       cat <<\_ASBOX
10693 ## ------------------------------------ ##
10694 ## Report this to bug-autoconf@gnu.org. ##
10695 ## ------------------------------------ ##
10696 _ASBOX
10697     ) |
10698       sed "s/^/$as_me: WARNING:     /" >&2
10699     ;;
10700 esac
10701 echo "$as_me:$LINENO: checking for $ac_header" >&5
10702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10704   echo $ECHO_N "(cached) $ECHO_C" >&6
10705 else
10706   eval "$as_ac_Header=$ac_header_preproc"
10707 fi
10708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10710
10711 fi
10712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10713   cat >>confdefs.h <<_ACEOF
10714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10715 _ACEOF
10716  echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10717 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10718 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10719   echo $ECHO_N "(cached) $ECHO_C" >&6
10720 else
10721   ac_check_lib_save_LIBS=$LIBS
10722 LIBS="-laudioio  $LIBS"
10723 cat >conftest.$ac_ext <<_ACEOF
10724 #line $LINENO "configure"
10725 /* confdefs.h.  */
10726 _ACEOF
10727 cat confdefs.h >>conftest.$ac_ext
10728 cat >>conftest.$ac_ext <<_ACEOF
10729 /* end confdefs.h.  */
10730
10731 /* Override any gcc2 internal prototype to avoid an error.  */
10732 #ifdef __cplusplus
10733 extern "C"
10734 #endif
10735 /* We use char because int might match the return type of a gcc2
10736    builtin and then its argument prototype would still apply.  */
10737 char AudioIOGetVersion ();
10738 int
10739 main ()
10740 {
10741 AudioIOGetVersion ();
10742   ;
10743   return 0;
10744 }
10745 _ACEOF
10746 rm -f conftest.$ac_objext conftest$ac_exeext
10747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10748   (eval $ac_link) 2>&5
10749   ac_status=$?
10750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751   (exit $ac_status); } &&
10752          { ac_try='test -s conftest$ac_exeext'
10753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754   (eval $ac_try) 2>&5
10755   ac_status=$?
10756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757   (exit $ac_status); }; }; then
10758   ac_cv_lib_audioio_AudioIOGetVersion=yes
10759 else
10760   echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.$ac_ext >&5
10762
10763 ac_cv_lib_audioio_AudioIOGetVersion=no
10764 fi
10765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10766 LIBS=$ac_check_lib_save_LIBS
10767 fi
10768 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10769 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
10770 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
10771   AUDIOIOLIBS="-laudioio"
10772
10773 cat >>confdefs.h <<\_ACEOF
10774 #define HAVE_LIBAUDIOIO 1
10775 _ACEOF
10776
10777 fi
10778
10779 fi
10780
10781 done
10782
10783
10784
10785 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
10786 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
10787 if test "${ac_cv_mmap64_works+set}" = set; then
10788   echo $ECHO_N "(cached) $ECHO_C" >&6
10789 else
10790   if test "$cross_compiling" = yes; then
10791   ac_cv_mmap64_works="no"
10792 else
10793   cat >conftest.$ac_ext <<_ACEOF
10794 #line $LINENO "configure"
10795 /* confdefs.h.  */
10796 _ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h.  */
10800
10801                 #define _FILE_OFFSET_BITS 64
10802                 #include <stdio.h>
10803                 #include <unistd.h>
10804                 #include <fcntl.h>
10805                 #include <sys/mman.h>
10806                 #include <errno.h>
10807
10808                 int main(int argc,char **argv) {
10809                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
10810                         if (fd == -1) exit(1);
10811
10812                         unlink("conftest.map");
10813
10814                         write(fd,"test",4);
10815
10816                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
10817                             (errno == EINVAL)
10818                         ) {
10819                                 exit(1);
10820                         }
10821                         close(fd);
10822                         fprintf(stderr,"success!\n");
10823                         exit(0);
10824                 }
10825
10826
10827 _ACEOF
10828 rm -f conftest$ac_exeext
10829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10830   (eval $ac_link) 2>&5
10831   ac_status=$?
10832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10835   (eval $ac_try) 2>&5
10836   ac_status=$?
10837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838   (exit $ac_status); }; }; then
10839   ac_cv_mmap64_works="yes"
10840 else
10841   echo "$as_me: program exited with status $ac_status" >&5
10842 echo "$as_me: failed program was:" >&5
10843 sed 's/^/| /' conftest.$ac_ext >&5
10844
10845 ( exit $ac_status )
10846 ac_cv_mmap64_works="no"
10847 fi
10848 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10849 fi
10850 fi
10851 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
10852 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
10853
10854 if test "$ac_cv_mmap64_works" = "yes"
10855 then
10856
10857 cat >>confdefs.h <<\_ACEOF
10858 #define _FILE_OFFSET_BITS 64
10859 _ACEOF
10860
10861 fi
10862
10863
10864 EXTRACFLAGS=""
10865
10866 if test "x${GCC}" = "xyes"
10867 then
10868   EXTRACFLAGS=-Wall
10869
10870     echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
10871 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
10872 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
10873   echo $ECHO_N "(cached) $ECHO_C" >&6
10874 else
10875   if test "$cross_compiling" = yes; then
10876   ac_cv_c_gcc_strength_bug="yes"
10877 else
10878   cat >conftest.$ac_ext <<_ACEOF
10879 #line $LINENO "configure"
10880 /* confdefs.h.  */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h.  */
10885
10886 int     L[4] = {0,1,2,3};
10887 int main(void) {
10888   static int Array[3];
10889   unsigned int B = 3;
10890   int i;
10891   for(i=0; i<B; i++) Array[i] = i - 3;
10892   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
10893   L[i] = 4;
10894
10895   exit( Array[1] != -2 || L[2] != 3);
10896 }
10897 _ACEOF
10898 rm -f conftest$ac_exeext
10899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10900   (eval $ac_link) 2>&5
10901   ac_status=$?
10902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905   (eval $ac_try) 2>&5
10906   ac_status=$?
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); }; }; then
10909   ac_cv_c_gcc_strength_bug="no"
10910 else
10911   echo "$as_me: program exited with status $ac_status" >&5
10912 echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10914
10915 ( exit $ac_status )
10916 ac_cv_c_gcc_strength_bug="yes"
10917 fi
10918 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10919 fi
10920 fi
10921 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
10922 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
10923   if test "$ac_cv_c_gcc_strength_bug" = "yes"
10924   then
10925     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
10926   fi
10927
10928     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
10929 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
10930 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
10931   echo $ECHO_N "(cached) $ECHO_C" >&6
10932 else
10933   ac_wine_try_cflags_saved=$CFLAGS
10934 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10935 cat >conftest.$ac_ext <<_ACEOF
10936 #line $LINENO "configure"
10937 /* confdefs.h.  */
10938 _ACEOF
10939 cat confdefs.h >>conftest.$ac_ext
10940 cat >>conftest.$ac_ext <<_ACEOF
10941 /* end confdefs.h.  */
10942
10943 int
10944 main ()
10945 {
10946
10947   ;
10948   return 0;
10949 }
10950 _ACEOF
10951 rm -f conftest.$ac_objext conftest$ac_exeext
10952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10953   (eval $ac_link) 2>&5
10954   ac_status=$?
10955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956   (exit $ac_status); } &&
10957          { ac_try='test -s conftest$ac_exeext'
10958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959   (eval $ac_try) 2>&5
10960   ac_status=$?
10961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962   (exit $ac_status); }; }; then
10963   ac_cv_c_gcc_stack_boundary="yes"
10964 else
10965   echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10967
10968 ac_cv_c_gcc_stack_boundary="no"
10969 fi
10970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10971 CFLAGS=$ac_wine_try_cflags_saved
10972 fi
10973 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
10974 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
10975   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
10976   then
10977     EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
10978   fi
10979
10980     echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
10981 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
10982 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
10983   echo $ECHO_N "(cached) $ECHO_C" >&6
10984 else
10985   ac_wine_try_cflags_saved=$CFLAGS
10986 CFLAGS="$CFLAGS -fno-strict-aliasing"
10987 cat >conftest.$ac_ext <<_ACEOF
10988 #line $LINENO "configure"
10989 /* confdefs.h.  */
10990 _ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h.  */
10994
10995 int
10996 main ()
10997 {
10998
10999   ;
11000   return 0;
11001 }
11002 _ACEOF
11003 rm -f conftest.$ac_objext conftest$ac_exeext
11004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11005   (eval $ac_link) 2>&5
11006   ac_status=$?
11007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008   (exit $ac_status); } &&
11009          { ac_try='test -s conftest$ac_exeext'
11010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011   (eval $ac_try) 2>&5
11012   ac_status=$?
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); }; }; then
11015   ac_cv_c_gcc_no_strict_aliasing="yes"
11016 else
11017   echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11019
11020 ac_cv_c_gcc_no_strict_aliasing="no"
11021 fi
11022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11023 CFLAGS=$ac_wine_try_cflags_saved
11024 fi
11025 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
11026 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
11027   if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
11028   then
11029     EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11030   fi
11031
11032     echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
11033 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
11034 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
11035   echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037   ac_wine_try_cflags_saved=$CFLAGS
11038 CFLAGS="$CFLAGS -gstabs+"
11039 cat >conftest.$ac_ext <<_ACEOF
11040 #line $LINENO "configure"
11041 /* confdefs.h.  */
11042 _ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h.  */
11046
11047 int
11048 main ()
11049 {
11050
11051   ;
11052   return 0;
11053 }
11054 _ACEOF
11055 rm -f conftest.$ac_objext conftest$ac_exeext
11056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11057   (eval $ac_link) 2>&5
11058   ac_status=$?
11059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); } &&
11061          { ac_try='test -s conftest$ac_exeext'
11062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063   (eval $ac_try) 2>&5
11064   ac_status=$?
11065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066   (exit $ac_status); }; }; then
11067   ac_cv_c_gcc_gstabs="yes"
11068 else
11069   echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11071
11072 ac_cv_c_gcc_gstabs="no"
11073 fi
11074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11075 CFLAGS=$ac_wine_try_cflags_saved
11076 fi
11077 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
11078 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
11079   if test "$ac_cv_c_gcc_gstabs" = "yes"
11080   then
11081     EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
11082   fi
11083
11084     saved_CFLAGS="$CFLAGS"
11085   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
11086   echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
11087 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
11088 if test "${ac_cv_c_string_h_warnings+set}" = set; then
11089   echo $ECHO_N "(cached) $ECHO_C" >&6
11090 else
11091   cat >conftest.$ac_ext <<_ACEOF
11092 #line $LINENO "configure"
11093 /* confdefs.h.  */
11094 _ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h.  */
11098 #include <string.h>
11099 int
11100 main ()
11101 {
11102
11103   ;
11104   return 0;
11105 }
11106 _ACEOF
11107 rm -f conftest.$ac_objext
11108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11109   (eval $ac_compile) 2>&5
11110   ac_status=$?
11111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112   (exit $ac_status); } &&
11113          { ac_try='test -s conftest.$ac_objext'
11114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115   (eval $ac_try) 2>&5
11116   ac_status=$?
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); }; }; then
11119   ac_cv_c_string_h_warnings=no
11120 else
11121   echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11123
11124 ac_cv_c_string_h_warnings=yes
11125 fi
11126 rm -f conftest.$ac_objext conftest.$ac_ext
11127 fi
11128 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
11129 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
11130   CFLAGS="$saved_CFLAGS"
11131   if test "$ac_cv_c_string_h_warnings" = "no"
11132   then
11133     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
11134   fi
11135 fi
11136
11137
11138 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
11139 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
11140 if test "${ac_cv_asm_func_def+set}" = set; then
11141   echo $ECHO_N "(cached) $ECHO_C" >&6
11142 else
11143   cat >conftest.$ac_ext <<_ACEOF
11144 #line $LINENO "configure"
11145 /* confdefs.h.  */
11146 _ACEOF
11147 cat confdefs.h >>conftest.$ac_ext
11148 cat >>conftest.$ac_ext <<_ACEOF
11149 /* end confdefs.h.  */
11150 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"); }
11151
11152 int
11153 main ()
11154 {
11155
11156   ;
11157   return 0;
11158 }
11159 _ACEOF
11160 rm -f conftest.$ac_objext conftest$ac_exeext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11162   (eval $ac_link) 2>&5
11163   ac_status=$?
11164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165   (exit $ac_status); } &&
11166          { ac_try='test -s conftest$ac_exeext'
11167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168   (eval $ac_try) 2>&5
11169   ac_status=$?
11170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171   (exit $ac_status); }; }; then
11172   ac_cv_asm_func_def=".def"
11173 else
11174   echo "$as_me: failed program was:" >&5
11175 sed 's/^/| /' conftest.$ac_ext >&5
11176
11177 cat >conftest.$ac_ext <<_ACEOF
11178 #line $LINENO "configure"
11179 /* confdefs.h.  */
11180 _ACEOF
11181 cat confdefs.h >>conftest.$ac_ext
11182 cat >>conftest.$ac_ext <<_ACEOF
11183 /* end confdefs.h.  */
11184 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
11185
11186 int
11187 main ()
11188 {
11189
11190   ;
11191   return 0;
11192 }
11193 _ACEOF
11194 rm -f conftest.$ac_objext conftest$ac_exeext
11195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11196   (eval $ac_link) 2>&5
11197   ac_status=$?
11198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); } &&
11200          { ac_try='test -s conftest$ac_exeext'
11201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11202   (eval $ac_try) 2>&5
11203   ac_status=$?
11204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205   (exit $ac_status); }; }; then
11206   ac_cv_asm_func_def=".type @function"
11207 else
11208   echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11210
11211 cat >conftest.$ac_ext <<_ACEOF
11212 #line $LINENO "configure"
11213 /* confdefs.h.  */
11214 _ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h.  */
11218 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
11219
11220 int
11221 main ()
11222 {
11223
11224   ;
11225   return 0;
11226 }
11227 _ACEOF
11228 rm -f conftest.$ac_objext conftest$ac_exeext
11229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11230   (eval $ac_link) 2>&5
11231   ac_status=$?
11232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233   (exit $ac_status); } &&
11234          { ac_try='test -s conftest$ac_exeext'
11235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236   (eval $ac_try) 2>&5
11237   ac_status=$?
11238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239   (exit $ac_status); }; }; then
11240   ac_cv_asm_func_def=".type 2"
11241 else
11242   echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.$ac_ext >&5
11244
11245 ac_cv_asm_func_def="unknown"
11246 fi
11247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11248 fi
11249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11250 fi
11251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11252 fi
11253 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
11254 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
11255
11256
11257
11258 case "$ac_cv_asm_func_def" in
11259   ".def")
11260      cat >>confdefs.h <<\_ACEOF
11261 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
11262 _ACEOF
11263  ;;
11264   ".type @function")
11265      cat >>confdefs.h <<\_ACEOF
11266 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
11267 _ACEOF
11268  ;;
11269   ".type 2")
11270      cat >>confdefs.h <<\_ACEOF
11271 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
11272 _ACEOF
11273  ;;
11274   *)
11275      cat >>confdefs.h <<\_ACEOF
11276 #define __ASM_FUNC(name) ""
11277 _ACEOF
11278  ;;
11279 esac
11280
11281
11282 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
11283 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
11284 if test "${ac_cv_c_extern_prefix+set}" = set; then
11285   echo $ECHO_N "(cached) $ECHO_C" >&6
11286 else
11287   cat >conftest.$ac_ext <<_ACEOF
11288 #line $LINENO "configure"
11289 /* confdefs.h.  */
11290 _ACEOF
11291 cat confdefs.h >>conftest.$ac_ext
11292 cat >>conftest.$ac_ext <<_ACEOF
11293 /* end confdefs.h.  */
11294 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
11295 extern int ac_test;
11296 int
11297 main ()
11298 {
11299 if (ac_test) return 1
11300   ;
11301   return 0;
11302 }
11303 _ACEOF
11304 rm -f conftest.$ac_objext conftest$ac_exeext
11305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11306   (eval $ac_link) 2>&5
11307   ac_status=$?
11308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); } &&
11310          { ac_try='test -s conftest$ac_exeext'
11311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312   (eval $ac_try) 2>&5
11313   ac_status=$?
11314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315   (exit $ac_status); }; }; then
11316   ac_cv_c_extern_prefix="yes"
11317 else
11318   echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11320
11321 ac_cv_c_extern_prefix="no"
11322 fi
11323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11324 fi
11325 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
11326 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
11327
11328
11329
11330 if test "$ac_cv_c_extern_prefix" = "yes"
11331 then
11332   cat >>confdefs.h <<\_ACEOF
11333 #define __ASM_NAME(name) "_" name
11334 _ACEOF
11335
11336 else
11337   cat >>confdefs.h <<\_ACEOF
11338 #define __ASM_NAME(name) name
11339 _ACEOF
11340
11341 fi
11342
11343
11344 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
11345 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
11346 if test "${ac_cv_c_asm_string+set}" = set; then
11347   echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349   cat >conftest.$ac_ext <<_ACEOF
11350 #line $LINENO "configure"
11351 /* confdefs.h.  */
11352 _ACEOF
11353 cat confdefs.h >>conftest.$ac_ext
11354 cat >>conftest.$ac_ext <<_ACEOF
11355 /* end confdefs.h.  */
11356 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
11357
11358 int
11359 main ()
11360 {
11361
11362   ;
11363   return 0;
11364 }
11365 _ACEOF
11366 rm -f conftest.$ac_objext conftest$ac_exeext
11367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11368   (eval $ac_link) 2>&5
11369   ac_status=$?
11370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371   (exit $ac_status); } &&
11372          { ac_try='test -s conftest$ac_exeext'
11373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374   (eval $ac_try) 2>&5
11375   ac_status=$?
11376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377   (exit $ac_status); }; }; then
11378   ac_cv_c_asm_string="yes"
11379 else
11380   echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.$ac_ext >&5
11382
11383 ac_cv_c_asm_string="no"
11384 fi
11385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11386 fi
11387 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
11388 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
11389 if test "$ac_cv_c_asm_string" = "yes"
11390 then
11391
11392 cat >>confdefs.h <<\_ACEOF
11393 #define __ASM_STRING ".string"
11394 _ACEOF
11395
11396 else
11397     echo "$as_me:$LINENO: checking whether assembler accepts .asciz" >&5
11398 echo $ECHO_N "checking whether assembler accepts .asciz... $ECHO_C" >&6
11399 if test "${ac_cv_c_asm_asciz+set}" = set; then
11400   echo $ECHO_N "(cached) $ECHO_C" >&6
11401 else
11402   cat >conftest.$ac_ext <<_ACEOF
11403 #line $LINENO "configure"
11404 /* confdefs.h.  */
11405 _ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h.  */
11409 void ac_asm(void) { asm(".data\n\t.asciz \"test\"\n\t.text"); }
11410
11411 int
11412 main ()
11413 {
11414
11415   ;
11416   return 0;
11417 }
11418 _ACEOF
11419 rm -f conftest.$ac_objext conftest$ac_exeext
11420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11421   (eval $ac_link) 2>&5
11422   ac_status=$?
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); } &&
11425          { ac_try='test -s conftest$ac_exeext'
11426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11427   (eval $ac_try) 2>&5
11428   ac_status=$?
11429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430   (exit $ac_status); }; }; then
11431   ac_cv_c_asm_asciz="yes"
11432 else
11433   echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11435
11436 ac_cv_c_asm_asciz="no"
11437 fi
11438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11439 fi
11440 echo "$as_me:$LINENO: result: $ac_cv_c_asm_asciz" >&5
11441 echo "${ECHO_T}$ac_cv_c_asm_asciz" >&6
11442     if test "$ac_cv_c_asm_asciz" = "yes"
11443     then
11444       cat >>confdefs.h <<\_ACEOF
11445 #define __ASM_STRING ".asciz"
11446 _ACEOF
11447
11448     else
11449       cat >>confdefs.h <<\_ACEOF
11450 #define __ASM_STRING ".ascii"
11451 _ACEOF
11452
11453     fi
11454 fi
11455
11456
11457 echo "$as_me:$LINENO: checking whether assembler accepts .short" >&5
11458 echo $ECHO_N "checking whether assembler accepts .short... $ECHO_C" >&6
11459 if test "${ac_cv_c_asm_short+set}" = set; then
11460   echo $ECHO_N "(cached) $ECHO_C" >&6
11461 else
11462   cat >conftest.$ac_ext <<_ACEOF
11463 #line $LINENO "configure"
11464 /* confdefs.h.  */
11465 _ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h.  */
11469 void ac_asm(void) { asm(".data\n\t.short 1\n\t.text"); }
11470
11471 int
11472 main ()
11473 {
11474
11475   ;
11476   return 0;
11477 }
11478 _ACEOF
11479 rm -f conftest.$ac_objext conftest$ac_exeext
11480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11481   (eval $ac_link) 2>&5
11482   ac_status=$?
11483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484   (exit $ac_status); } &&
11485          { ac_try='test -s conftest$ac_exeext'
11486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487   (eval $ac_try) 2>&5
11488   ac_status=$?
11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); }; }; then
11491   ac_cv_c_asm_short="yes"
11492 else
11493   echo "$as_me: failed program was:" >&5
11494 sed 's/^/| /' conftest.$ac_ext >&5
11495
11496 ac_cv_c_asm_short="no"
11497 fi
11498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11499 fi
11500 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
11501 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
11502 if test "$ac_cv_c_asm_short" = "yes"
11503 then
11504
11505 cat >>confdefs.h <<\_ACEOF
11506 #define __ASM_SHORT ".short"
11507 _ACEOF
11508
11509 else
11510   cat >>confdefs.h <<\_ACEOF
11511 #define __ASM_SHORT ".half"
11512 _ACEOF
11513
11514 fi
11515
11516
11517 DLLEXT=""
11518
11519 DLLFLAGS="-D_REENTRANT"
11520
11521 DLLIBS=""
11522
11523 LDDLLFLAGS=""
11524
11525 LDSHARED=""
11526
11527 LIBEXT="so"
11528
11529 IMPLIBEXT="def"
11530
11531
11532 case $host_os in
11533   cygwin*|mingw32*)
11534     if test -n "$ac_tool_prefix"; then
11535   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11536 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11537 echo "$as_me:$LINENO: checking for $ac_word" >&5
11538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11539 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11540   echo $ECHO_N "(cached) $ECHO_C" >&6
11541 else
11542   if test -n "$DLLTOOL"; then
11543   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11544 else
11545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546 for as_dir in $PATH
11547 do
11548   IFS=$as_save_IFS
11549   test -z "$as_dir" && as_dir=.
11550   for ac_exec_ext in '' $ac_executable_extensions; do
11551   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11552     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11554     break 2
11555   fi
11556 done
11557 done
11558
11559 fi
11560 fi
11561 DLLTOOL=$ac_cv_prog_DLLTOOL
11562 if test -n "$DLLTOOL"; then
11563   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11564 echo "${ECHO_T}$DLLTOOL" >&6
11565 else
11566   echo "$as_me:$LINENO: result: no" >&5
11567 echo "${ECHO_T}no" >&6
11568 fi
11569
11570 fi
11571 if test -z "$ac_cv_prog_DLLTOOL"; then
11572   ac_ct_DLLTOOL=$DLLTOOL
11573   # Extract the first word of "dlltool", so it can be a program name with args.
11574 set dummy dlltool; ac_word=$2
11575 echo "$as_me:$LINENO: checking for $ac_word" >&5
11576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11577 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11578   echo $ECHO_N "(cached) $ECHO_C" >&6
11579 else
11580   if test -n "$ac_ct_DLLTOOL"; then
11581   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11582 else
11583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584 for as_dir in $PATH
11585 do
11586   IFS=$as_save_IFS
11587   test -z "$as_dir" && as_dir=.
11588   for ac_exec_ext in '' $ac_executable_extensions; do
11589   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11590     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11592     break 2
11593   fi
11594 done
11595 done
11596
11597   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
11598 fi
11599 fi
11600 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11601 if test -n "$ac_ct_DLLTOOL"; then
11602   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11603 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
11604 else
11605   echo "$as_me:$LINENO: result: no" >&5
11606 echo "${ECHO_T}no" >&6
11607 fi
11608
11609   DLLTOOL=$ac_ct_DLLTOOL
11610 else
11611   DLLTOOL="$ac_cv_prog_DLLTOOL"
11612 fi
11613
11614     if test -n "$ac_tool_prefix"; then
11615   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
11616 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
11617 echo "$as_me:$LINENO: checking for $ac_word" >&5
11618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11619 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
11620   echo $ECHO_N "(cached) $ECHO_C" >&6
11621 else
11622   if test -n "$DLLWRAP"; then
11623   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
11624 else
11625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11626 for as_dir in $PATH
11627 do
11628   IFS=$as_save_IFS
11629   test -z "$as_dir" && as_dir=.
11630   for ac_exec_ext in '' $ac_executable_extensions; do
11631   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11632     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
11633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11634     break 2
11635   fi
11636 done
11637 done
11638
11639 fi
11640 fi
11641 DLLWRAP=$ac_cv_prog_DLLWRAP
11642 if test -n "$DLLWRAP"; then
11643   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
11644 echo "${ECHO_T}$DLLWRAP" >&6
11645 else
11646   echo "$as_me:$LINENO: result: no" >&5
11647 echo "${ECHO_T}no" >&6
11648 fi
11649
11650 fi
11651 if test -z "$ac_cv_prog_DLLWRAP"; then
11652   ac_ct_DLLWRAP=$DLLWRAP
11653   # Extract the first word of "dllwrap", so it can be a program name with args.
11654 set dummy dllwrap; ac_word=$2
11655 echo "$as_me:$LINENO: checking for $ac_word" >&5
11656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11657 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
11658   echo $ECHO_N "(cached) $ECHO_C" >&6
11659 else
11660   if test -n "$ac_ct_DLLWRAP"; then
11661   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
11662 else
11663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664 for as_dir in $PATH
11665 do
11666   IFS=$as_save_IFS
11667   test -z "$as_dir" && as_dir=.
11668   for ac_exec_ext in '' $ac_executable_extensions; do
11669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11670     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
11671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11672     break 2
11673   fi
11674 done
11675 done
11676
11677   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
11678 fi
11679 fi
11680 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
11681 if test -n "$ac_ct_DLLWRAP"; then
11682   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
11683 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
11684 else
11685   echo "$as_me:$LINENO: result: no" >&5
11686 echo "${ECHO_T}no" >&6
11687 fi
11688
11689   DLLWRAP=$ac_ct_DLLWRAP
11690 else
11691   DLLWRAP="$ac_cv_prog_DLLWRAP"
11692 fi
11693
11694     if test "$DLLWRAP" = "false"; then
11695       LIBEXT="a"
11696     else
11697             LIBEXT="dll"
11698     fi
11699     IMPLIBEXT="a"
11700     ;;
11701   *)
11702
11703 for ac_header in dlfcn.h
11704 do
11705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11707   echo "$as_me:$LINENO: checking for $ac_header" >&5
11708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11710   echo $ECHO_N "(cached) $ECHO_C" >&6
11711 fi
11712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11714 else
11715   # Is the header compilable?
11716 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11718 cat >conftest.$ac_ext <<_ACEOF
11719 #line $LINENO "configure"
11720 /* confdefs.h.  */
11721 _ACEOF
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h.  */
11725 $ac_includes_default
11726 #include <$ac_header>
11727 _ACEOF
11728 rm -f conftest.$ac_objext
11729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11730   (eval $ac_compile) 2>&5
11731   ac_status=$?
11732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733   (exit $ac_status); } &&
11734          { ac_try='test -s conftest.$ac_objext'
11735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736   (eval $ac_try) 2>&5
11737   ac_status=$?
11738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739   (exit $ac_status); }; }; then
11740   ac_header_compiler=yes
11741 else
11742   echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11744
11745 ac_header_compiler=no
11746 fi
11747 rm -f conftest.$ac_objext conftest.$ac_ext
11748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11749 echo "${ECHO_T}$ac_header_compiler" >&6
11750
11751 # Is the header present?
11752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11754 cat >conftest.$ac_ext <<_ACEOF
11755 #line $LINENO "configure"
11756 /* confdefs.h.  */
11757 _ACEOF
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h.  */
11761 #include <$ac_header>
11762 _ACEOF
11763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11764   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11765   ac_status=$?
11766   grep -v '^ *+' conftest.er1 >conftest.err
11767   rm -f conftest.er1
11768   cat conftest.err >&5
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); } >/dev/null; then
11771   if test -s conftest.err; then
11772     ac_cpp_err=$ac_c_preproc_warn_flag
11773   else
11774     ac_cpp_err=
11775   fi
11776 else
11777   ac_cpp_err=yes
11778 fi
11779 if test -z "$ac_cpp_err"; then
11780   ac_header_preproc=yes
11781 else
11782   echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11784
11785   ac_header_preproc=no
11786 fi
11787 rm -f conftest.err conftest.$ac_ext
11788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11789 echo "${ECHO_T}$ac_header_preproc" >&6
11790
11791 # So?  What about this header?
11792 case $ac_header_compiler:$ac_header_preproc in
11793   yes:no )
11794     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11798     (
11799       cat <<\_ASBOX
11800 ## ------------------------------------ ##
11801 ## Report this to bug-autoconf@gnu.org. ##
11802 ## ------------------------------------ ##
11803 _ASBOX
11804     ) |
11805       sed "s/^/$as_me: WARNING:     /" >&2
11806     ;;
11807   no:yes )
11808     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11810     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11814     (
11815       cat <<\_ASBOX
11816 ## ------------------------------------ ##
11817 ## Report this to bug-autoconf@gnu.org. ##
11818 ## ------------------------------------ ##
11819 _ASBOX
11820     ) |
11821       sed "s/^/$as_me: WARNING:     /" >&2
11822     ;;
11823 esac
11824 echo "$as_me:$LINENO: checking for $ac_header" >&5
11825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11827   echo $ECHO_N "(cached) $ECHO_C" >&6
11828 else
11829   eval "$as_ac_Header=$ac_header_preproc"
11830 fi
11831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11833
11834 fi
11835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11836   cat >>confdefs.h <<_ACEOF
11837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11838 _ACEOF
11839
11840 for ac_func in dlopen
11841 do
11842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11843 echo "$as_me:$LINENO: checking for $ac_func" >&5
11844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11845 if eval "test \"\${$as_ac_var+set}\" = set"; then
11846   echo $ECHO_N "(cached) $ECHO_C" >&6
11847 else
11848   cat >conftest.$ac_ext <<_ACEOF
11849 #line $LINENO "configure"
11850 /* confdefs.h.  */
11851 _ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h.  */
11855 /* System header to define __stub macros and hopefully few prototypes,
11856     which can conflict with char $ac_func (); below.
11857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11858     <limits.h> exists even on freestanding compilers.  */
11859 #ifdef __STDC__
11860 # include <limits.h>
11861 #else
11862 # include <assert.h>
11863 #endif
11864 /* Override any gcc2 internal prototype to avoid an error.  */
11865 #ifdef __cplusplus
11866 extern "C"
11867 {
11868 #endif
11869 /* We use char because int might match the return type of a gcc2
11870    builtin and then its argument prototype would still apply.  */
11871 char $ac_func ();
11872 /* The GNU C library defines this for functions which it implements
11873     to always fail with ENOSYS.  Some functions are actually named
11874     something starting with __ and the normal name is an alias.  */
11875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11876 choke me
11877 #else
11878 char (*f) () = $ac_func;
11879 #endif
11880 #ifdef __cplusplus
11881 }
11882 #endif
11883
11884 int
11885 main ()
11886 {
11887 return f != $ac_func;
11888   ;
11889   return 0;
11890 }
11891 _ACEOF
11892 rm -f conftest.$ac_objext conftest$ac_exeext
11893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11894   (eval $ac_link) 2>&5
11895   ac_status=$?
11896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897   (exit $ac_status); } &&
11898          { ac_try='test -s conftest$ac_exeext'
11899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900   (eval $ac_try) 2>&5
11901   ac_status=$?
11902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903   (exit $ac_status); }; }; then
11904   eval "$as_ac_var=yes"
11905 else
11906   echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.$ac_ext >&5
11908
11909 eval "$as_ac_var=no"
11910 fi
11911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11912 fi
11913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11915 if test `eval echo '${'$as_ac_var'}'` = yes; then
11916   cat >>confdefs.h <<_ACEOF
11917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11918 _ACEOF
11919
11920 else
11921   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11922 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11923 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11924   echo $ECHO_N "(cached) $ECHO_C" >&6
11925 else
11926   ac_check_lib_save_LIBS=$LIBS
11927 LIBS="-ldl  $LIBS"
11928 cat >conftest.$ac_ext <<_ACEOF
11929 #line $LINENO "configure"
11930 /* confdefs.h.  */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h.  */
11935
11936 /* Override any gcc2 internal prototype to avoid an error.  */
11937 #ifdef __cplusplus
11938 extern "C"
11939 #endif
11940 /* We use char because int might match the return type of a gcc2
11941    builtin and then its argument prototype would still apply.  */
11942 char dlopen ();
11943 int
11944 main ()
11945 {
11946 dlopen ();
11947   ;
11948   return 0;
11949 }
11950 _ACEOF
11951 rm -f conftest.$ac_objext conftest$ac_exeext
11952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11953   (eval $ac_link) 2>&5
11954   ac_status=$?
11955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956   (exit $ac_status); } &&
11957          { ac_try='test -s conftest$ac_exeext'
11958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11959   (eval $ac_try) 2>&5
11960   ac_status=$?
11961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962   (exit $ac_status); }; }; then
11963   ac_cv_lib_dl_dlopen=yes
11964 else
11965   echo "$as_me: failed program was:" >&5
11966 sed 's/^/| /' conftest.$ac_ext >&5
11967
11968 ac_cv_lib_dl_dlopen=no
11969 fi
11970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11971 LIBS=$ac_check_lib_save_LIBS
11972 fi
11973 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11974 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11975 if test $ac_cv_lib_dl_dlopen = yes; then
11976
11977 cat >>confdefs.h <<\_ACEOF
11978 #define HAVE_DLOPEN 1
11979 _ACEOF
11980
11981                           DLLIBS="-ldl"
11982 else
11983   LIBEXT="a"
11984 fi
11985
11986 fi
11987 done
11988
11989 else
11990   LIBEXT="a"
11991 fi
11992
11993 done
11994
11995
11996     if test "$LIBEXT" = "so"
11997     then
11998       DLLFLAGS="$DLLFLAGS -fPIC"
11999       DLLEXT=".so"
12000       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
12001 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
12002 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
12003   echo $ECHO_N "(cached) $ECHO_C" >&6
12004 else
12005   ac_wine_try_cflags_saved=$CFLAGS
12006 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
12007 cat >conftest.$ac_ext <<_ACEOF
12008 #line $LINENO "configure"
12009 /* confdefs.h.  */
12010 _ACEOF
12011 cat confdefs.h >>conftest.$ac_ext
12012 cat >>conftest.$ac_ext <<_ACEOF
12013 /* end confdefs.h.  */
12014
12015 int
12016 main ()
12017 {
12018
12019   ;
12020   return 0;
12021 }
12022 _ACEOF
12023 rm -f conftest.$ac_objext conftest$ac_exeext
12024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12025   (eval $ac_link) 2>&5
12026   ac_status=$?
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); } &&
12029          { ac_try='test -s conftest$ac_exeext'
12030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031   (eval $ac_try) 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); }; }; then
12035   ac_cv_c_dll_gnuelf="yes"
12036 else
12037   echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12039
12040 ac_cv_c_dll_gnuelf="no"
12041 fi
12042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12043 CFLAGS=$ac_wine_try_cflags_saved
12044 fi
12045 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
12046 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
12047       if test "$ac_cv_c_dll_gnuelf" = "yes"
12048       then
12049         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
12050         LDDLLFLAGS="-Wl,-Bsymbolic"
12051         echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
12052 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
12053 if test "${ac_cv_c_dll_zdefs+set}" = set; then
12054   echo $ECHO_N "(cached) $ECHO_C" >&6
12055 else
12056   ac_wine_try_cflags_saved=$CFLAGS
12057 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
12058 cat >conftest.$ac_ext <<_ACEOF
12059 #line $LINENO "configure"
12060 /* confdefs.h.  */
12061 _ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h.  */
12065
12066 int
12067 main ()
12068 {
12069
12070   ;
12071   return 0;
12072 }
12073 _ACEOF
12074 rm -f conftest.$ac_objext conftest$ac_exeext
12075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12076   (eval $ac_link) 2>&5
12077   ac_status=$?
12078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079   (exit $ac_status); } &&
12080          { ac_try='test -s conftest$ac_exeext'
12081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082   (eval $ac_try) 2>&5
12083   ac_status=$?
12084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085   (exit $ac_status); }; }; then
12086   ac_cv_c_dll_zdefs="yes"
12087 else
12088   echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.$ac_ext >&5
12090
12091 ac_cv_c_dll_zdefs="no"
12092 fi
12093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12094 CFLAGS=$ac_wine_try_cflags_saved
12095 fi
12096 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
12097 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
12098         if test "$ac_cv_c_dll_zdefs" = "yes"
12099         then
12100           LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
12101         fi
12102         echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x3c000000" >&5
12103 echo $ECHO_N "checking whether we can relocate the executable to 0x3c000000... $ECHO_C" >&6
12104 if test "${ac_cv_ld_reloc_exec+set}" = set; then
12105   echo $ECHO_N "(cached) $ECHO_C" >&6
12106 else
12107   saved_CFLAGS="$CFLAGS"
12108            CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x3c000100"
12109            if test "$cross_compiling" = yes; then
12110   ac_cv_ld_reloc_exec="no"
12111 else
12112   cat >conftest.$ac_ext <<_ACEOF
12113 #line $LINENO "configure"
12114 /* confdefs.h.  */
12115 _ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h.  */
12119 #include <unistd.h>
12120                        int main() { return (sbrk(32*1024*1024) == (void *)-1); }
12121 _ACEOF
12122 rm -f conftest$ac_exeext
12123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12124   (eval $ac_link) 2>&5
12125   ac_status=$?
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12129   (eval $ac_try) 2>&5
12130   ac_status=$?
12131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132   (exit $ac_status); }; }; then
12133   ac_cv_ld_reloc_exec="yes"
12134 else
12135   echo "$as_me: program exited with status $ac_status" >&5
12136 echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12138
12139 ( exit $ac_status )
12140 ac_cv_ld_reloc_exec="no"
12141 fi
12142 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12143 fi
12144            CFLAGS="$saved_CFLAGS"
12145 fi
12146 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
12147 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
12148         if test "$ac_cv_ld_reloc_exec" = "yes"
12149         then
12150           LDEXECFLAGS="-Wl,--section-start,.interp=0x3c000100"
12151
12152         fi
12153       else
12154         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
12155 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
12156 if test "${ac_cv_c_dll_unixware+set}" = set; then
12157   echo $ECHO_N "(cached) $ECHO_C" >&6
12158 else
12159   ac_wine_try_cflags_saved=$CFLAGS
12160 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
12161 cat >conftest.$ac_ext <<_ACEOF
12162 #line $LINENO "configure"
12163 /* confdefs.h.  */
12164 _ACEOF
12165 cat confdefs.h >>conftest.$ac_ext
12166 cat >>conftest.$ac_ext <<_ACEOF
12167 /* end confdefs.h.  */
12168
12169 int
12170 main ()
12171 {
12172
12173   ;
12174   return 0;
12175 }
12176 _ACEOF
12177 rm -f conftest.$ac_objext conftest$ac_exeext
12178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12179   (eval $ac_link) 2>&5
12180   ac_status=$?
12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182   (exit $ac_status); } &&
12183          { ac_try='test -s conftest$ac_exeext'
12184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185   (eval $ac_try) 2>&5
12186   ac_status=$?
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); }; }; then
12189   ac_cv_c_dll_unixware="yes"
12190 else
12191   echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12193
12194 ac_cv_c_dll_unixware="no"
12195 fi
12196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12197 CFLAGS=$ac_wine_try_cflags_saved
12198 fi
12199 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
12200 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
12201         if test "$ac_cv_c_dll_unixware" = "yes"
12202         then
12203           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
12204           LDDLLFLAGS="-Wl,-B,symbolic"
12205         fi
12206       fi
12207     fi
12208
12209         CROSSTEST=""
12210
12211     if test "$cross_compiling" = "no"
12212     then
12213       for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc
12214 do
12215   # Extract the first word of "$ac_prog", so it can be a program name with args.
12216 set dummy $ac_prog; ac_word=$2
12217 echo "$as_me:$LINENO: checking for $ac_word" >&5
12218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12219 if test "${ac_cv_prog_CROSSCC+set}" = set; then
12220   echo $ECHO_N "(cached) $ECHO_C" >&6
12221 else
12222   if test -n "$CROSSCC"; then
12223   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
12224 else
12225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12226 for as_dir in $PATH
12227 do
12228   IFS=$as_save_IFS
12229   test -z "$as_dir" && as_dir=.
12230   for ac_exec_ext in '' $ac_executable_extensions; do
12231   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12232     ac_cv_prog_CROSSCC="$ac_prog"
12233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12234     break 2
12235   fi
12236 done
12237 done
12238
12239 fi
12240 fi
12241 CROSSCC=$ac_cv_prog_CROSSCC
12242 if test -n "$CROSSCC"; then
12243   echo "$as_me:$LINENO: result: $CROSSCC" >&5
12244 echo "${ECHO_T}$CROSSCC" >&6
12245 else
12246   echo "$as_me:$LINENO: result: no" >&5
12247 echo "${ECHO_T}no" >&6
12248 fi
12249
12250   test -n "$CROSSCC" && break
12251 done
12252 test -n "$CROSSCC" || CROSSCC="false"
12253
12254       for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool
12255 do
12256   # Extract the first word of "$ac_prog", so it can be a program name with args.
12257 set dummy $ac_prog; ac_word=$2
12258 echo "$as_me:$LINENO: checking for $ac_word" >&5
12259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12260 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12261   echo $ECHO_N "(cached) $ECHO_C" >&6
12262 else
12263   if test -n "$DLLTOOL"; then
12264   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12265 else
12266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267 for as_dir in $PATH
12268 do
12269   IFS=$as_save_IFS
12270   test -z "$as_dir" && as_dir=.
12271   for ac_exec_ext in '' $ac_executable_extensions; do
12272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12273     ac_cv_prog_DLLTOOL="$ac_prog"
12274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12275     break 2
12276   fi
12277 done
12278 done
12279
12280 fi
12281 fi
12282 DLLTOOL=$ac_cv_prog_DLLTOOL
12283 if test -n "$DLLTOOL"; then
12284   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12285 echo "${ECHO_T}$DLLTOOL" >&6
12286 else
12287   echo "$as_me:$LINENO: result: no" >&5
12288 echo "${ECHO_T}no" >&6
12289 fi
12290
12291   test -n "$DLLTOOL" && break
12292 done
12293 test -n "$DLLTOOL" || DLLTOOL="false"
12294
12295       for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres
12296 do
12297   # Extract the first word of "$ac_prog", so it can be a program name with args.
12298 set dummy $ac_prog; ac_word=$2
12299 echo "$as_me:$LINENO: checking for $ac_word" >&5
12300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12301 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
12302   echo $ECHO_N "(cached) $ECHO_C" >&6
12303 else
12304   if test -n "$CROSSWINDRES"; then
12305   ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
12306 else
12307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12308 for as_dir in $PATH
12309 do
12310   IFS=$as_save_IFS
12311   test -z "$as_dir" && as_dir=.
12312   for ac_exec_ext in '' $ac_executable_extensions; do
12313   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12314     ac_cv_prog_CROSSWINDRES="$ac_prog"
12315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12316     break 2
12317   fi
12318 done
12319 done
12320
12321 fi
12322 fi
12323 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
12324 if test -n "$CROSSWINDRES"; then
12325   echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
12326 echo "${ECHO_T}$CROSSWINDRES" >&6
12327 else
12328   echo "$as_me:$LINENO: result: no" >&5
12329 echo "${ECHO_T}no" >&6
12330 fi
12331
12332   test -n "$CROSSWINDRES" && break
12333 done
12334 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
12335
12336       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
12337     fi
12338     ;;
12339 esac
12340
12341 if test "$LIBEXT" = "a"; then
12342   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
12343 It is currently not possible to build Wine without shared library
12344 (.so) support to allow transparent switch between .so and .dll files.
12345 If you are using Linux, you will need a newer binutils.
12346 " >&5
12347 echo "$as_me: error: could not find a way to build shared libraries.
12348 It is currently not possible to build Wine without shared library
12349 (.so) support to allow transparent switch between .so and .dll files.
12350 If you are using Linux, you will need a newer binutils.
12351 " >&2;}
12352    { (exit 1); exit 1; }; }
12353 fi
12354
12355 case $build_os in
12356   cygwin*|mingw32*)
12357     LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
12358  ;;
12359   *)
12360     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
12361  ;;
12362 esac
12363
12364 CRTLIBS=""
12365
12366 case $host_os in
12367   mingw32*)
12368     CRTLIBS="-lmsvcrt" ;;
12369 esac
12370
12371
12372 if test "$LIBEXT" = "so"
12373 then
12374   # Extract the first word of "ldd", so it can be a program name with args.
12375 set dummy ldd; ac_word=$2
12376 echo "$as_me:$LINENO: checking for $ac_word" >&5
12377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12378 if test "${ac_cv_path_LDD+set}" = set; then
12379   echo $ECHO_N "(cached) $ECHO_C" >&6
12380 else
12381   case $LDD in
12382   [\\/]* | ?:[\\/]*)
12383   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
12384   ;;
12385   *)
12386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12387 as_dummy="/sbin:/usr/sbin:$PATH"
12388 for as_dir in $as_dummy
12389 do
12390   IFS=$as_save_IFS
12391   test -z "$as_dir" && as_dir=.
12392   for ac_exec_ext in '' $ac_executable_extensions; do
12393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12394     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
12395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12396     break 2
12397   fi
12398 done
12399 done
12400
12401   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
12402   ;;
12403 esac
12404 fi
12405 LDD=$ac_cv_path_LDD
12406
12407 if test -n "$LDD"; then
12408   echo "$as_me:$LINENO: result: $LDD" >&5
12409 echo "${ECHO_T}$LDD" >&6
12410 else
12411   echo "$as_me:$LINENO: result: no" >&5
12412 echo "${ECHO_T}no" >&6
12413 fi
12414
12415
12416 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
12417 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
12418 if test "${ac_cv_lib_soname_X11+set}" = set; then
12419   echo $ECHO_N "(cached) $ECHO_C" >&6
12420 else
12421   ac_get_soname_save_LIBS=$LIBS
12422 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
12423   cat >conftest.$ac_ext <<_ACEOF
12424 #line $LINENO "configure"
12425 /* confdefs.h.  */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h.  */
12430
12431 /* Override any gcc2 internal prototype to avoid an error.  */
12432 #ifdef __cplusplus
12433 extern "C"
12434 #endif
12435 /* We use char because int might match the return type of a gcc2
12436    builtin and then its argument prototype would still apply.  */
12437 char XCreateWindow ();
12438 int
12439 main ()
12440 {
12441 XCreateWindow ();
12442   ;
12443   return 0;
12444 }
12445 _ACEOF
12446 rm -f conftest.$ac_objext conftest$ac_exeext
12447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12448   (eval $ac_link) 2>&5
12449   ac_status=$?
12450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451   (exit $ac_status); } &&
12452          { ac_try='test -s conftest$ac_exeext'
12453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454   (eval $ac_try) 2>&5
12455   ac_status=$?
12456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); }; }; then
12458   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^.*\(libX11\.so[^         ]*\).*$/\1/'`
12459   if test "x$ac_cv_lib_soname_X11" = "x"
12460   then
12461      ac_cv_lib_soname_X11="libX11.so"
12462   fi
12463 else
12464   echo "$as_me: failed program was:" >&5
12465 sed 's/^/| /' conftest.$ac_ext >&5
12466
12467 ac_cv_lib_soname_X11="libX11.so"
12468 fi
12469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12470   LIBS=$ac_get_soname_save_LIBS
12471 fi
12472 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
12473 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
12474 if test "x$ac_cv_lib_soname_X11" != xNONE
12475 then
12476 cat >>confdefs.h <<_ACEOF
12477 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
12478 _ACEOF
12479 fi
12480
12481 echo "$as_me:$LINENO: checking for -lXext soname" >&5
12482 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
12483 if test "${ac_cv_lib_soname_Xext+set}" = set; then
12484   echo $ECHO_N "(cached) $ECHO_C" >&6
12485 else
12486   ac_get_soname_save_LIBS=$LIBS
12487 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
12488   cat >conftest.$ac_ext <<_ACEOF
12489 #line $LINENO "configure"
12490 /* confdefs.h.  */
12491 _ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h.  */
12495
12496 /* Override any gcc2 internal prototype to avoid an error.  */
12497 #ifdef __cplusplus
12498 extern "C"
12499 #endif
12500 /* We use char because int might match the return type of a gcc2
12501    builtin and then its argument prototype would still apply.  */
12502 char XextCreateExtension ();
12503 int
12504 main ()
12505 {
12506 XextCreateExtension ();
12507   ;
12508   return 0;
12509 }
12510 _ACEOF
12511 rm -f conftest.$ac_objext conftest$ac_exeext
12512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12513   (eval $ac_link) 2>&5
12514   ac_status=$?
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); } &&
12517          { ac_try='test -s conftest$ac_exeext'
12518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519   (eval $ac_try) 2>&5
12520   ac_status=$?
12521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522   (exit $ac_status); }; }; then
12523   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^.*\(libXext\.so[^      ]*\).*$/\1/'`
12524   if test "x$ac_cv_lib_soname_Xext" = "x"
12525   then
12526      ac_cv_lib_soname_Xext="libXext.so"
12527   fi
12528 else
12529   echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12531
12532 ac_cv_lib_soname_Xext="libXext.so"
12533 fi
12534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12535   LIBS=$ac_get_soname_save_LIBS
12536 fi
12537 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
12538 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
12539 if test "x$ac_cv_lib_soname_Xext" != xNONE
12540 then
12541 cat >>confdefs.h <<_ACEOF
12542 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
12543 _ACEOF
12544 fi
12545
12546 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
12547 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
12548 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
12549   echo $ECHO_N "(cached) $ECHO_C" >&6
12550 else
12551   ac_get_soname_save_LIBS=$LIBS
12552 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
12553   cat >conftest.$ac_ext <<_ACEOF
12554 #line $LINENO "configure"
12555 /* confdefs.h.  */
12556 _ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h.  */
12560
12561 /* Override any gcc2 internal prototype to avoid an error.  */
12562 #ifdef __cplusplus
12563 extern "C"
12564 #endif
12565 /* We use char because int might match the return type of a gcc2
12566    builtin and then its argument prototype would still apply.  */
12567 char XRenderQueryExtension ();
12568 int
12569 main ()
12570 {
12571 XRenderQueryExtension ();
12572   ;
12573   return 0;
12574 }
12575 _ACEOF
12576 rm -f conftest.$ac_objext conftest$ac_exeext
12577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12578   (eval $ac_link) 2>&5
12579   ac_status=$?
12580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581   (exit $ac_status); } &&
12582          { ac_try='test -s conftest$ac_exeext'
12583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584   (eval $ac_try) 2>&5
12585   ac_status=$?
12586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587   (exit $ac_status); }; }; then
12588   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^.*\(libXrender\.so[^     ]*\).*$/\1/'`
12589   if test "x$ac_cv_lib_soname_Xrender" = "x"
12590   then
12591      ac_cv_lib_soname_Xrender="libXrender.so"
12592   fi
12593 else
12594   echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12596
12597 ac_cv_lib_soname_Xrender="libXrender.so"
12598 fi
12599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12600   LIBS=$ac_get_soname_save_LIBS
12601 fi
12602 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
12603 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
12604 if test "x$ac_cv_lib_soname_Xrender" != xNONE
12605 then
12606 cat >>confdefs.h <<_ACEOF
12607 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
12608 _ACEOF
12609 fi
12610
12611 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
12612 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
12613 if test "${ac_cv_lib_soname_freetype+set}" = set; then
12614   echo $ECHO_N "(cached) $ECHO_C" >&6
12615 else
12616   ac_get_soname_save_LIBS=$LIBS
12617 LIBS="-lfreetype $X_LIBS $LIBS"
12618   cat >conftest.$ac_ext <<_ACEOF
12619 #line $LINENO "configure"
12620 /* confdefs.h.  */
12621 _ACEOF
12622 cat confdefs.h >>conftest.$ac_ext
12623 cat >>conftest.$ac_ext <<_ACEOF
12624 /* end confdefs.h.  */
12625
12626 /* Override any gcc2 internal prototype to avoid an error.  */
12627 #ifdef __cplusplus
12628 extern "C"
12629 #endif
12630 /* We use char because int might match the return type of a gcc2
12631    builtin and then its argument prototype would still apply.  */
12632 char FT_Init_FreeType ();
12633 int
12634 main ()
12635 {
12636 FT_Init_FreeType ();
12637   ;
12638   return 0;
12639 }
12640 _ACEOF
12641 rm -f conftest.$ac_objext conftest$ac_exeext
12642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12643   (eval $ac_link) 2>&5
12644   ac_status=$?
12645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646   (exit $ac_status); } &&
12647          { ac_try='test -s conftest$ac_exeext'
12648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649   (eval $ac_try) 2>&5
12650   ac_status=$?
12651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652   (exit $ac_status); }; }; then
12653   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^.*\(libfreetype\.so[^  ]*\).*$/\1/'`
12654   if test "x$ac_cv_lib_soname_freetype" = "x"
12655   then
12656      ac_cv_lib_soname_freetype="libfreetype.so"
12657   fi
12658 else
12659   echo "$as_me: failed program was:" >&5
12660 sed 's/^/| /' conftest.$ac_ext >&5
12661
12662 ac_cv_lib_soname_freetype="libfreetype.so"
12663 fi
12664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12665   LIBS=$ac_get_soname_save_LIBS
12666 fi
12667 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
12668 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
12669 if test "x$ac_cv_lib_soname_freetype" != xNONE
12670 then
12671 cat >>confdefs.h <<_ACEOF
12672 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
12673 _ACEOF
12674 fi
12675
12676 echo "$as_me:$LINENO: checking for -lGL soname" >&5
12677 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
12678 if test "${ac_cv_lib_soname_GL+set}" = set; then
12679   echo $ECHO_N "(cached) $ECHO_C" >&6
12680 else
12681   ac_get_soname_save_LIBS=$LIBS
12682 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
12683   cat >conftest.$ac_ext <<_ACEOF
12684 #line $LINENO "configure"
12685 /* confdefs.h.  */
12686 _ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h.  */
12690
12691 /* Override any gcc2 internal prototype to avoid an error.  */
12692 #ifdef __cplusplus
12693 extern "C"
12694 #endif
12695 /* We use char because int might match the return type of a gcc2
12696    builtin and then its argument prototype would still apply.  */
12697 char glXQueryExtension ();
12698 int
12699 main ()
12700 {
12701 glXQueryExtension ();
12702   ;
12703   return 0;
12704 }
12705 _ACEOF
12706 rm -f conftest.$ac_objext conftest$ac_exeext
12707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12708   (eval $ac_link) 2>&5
12709   ac_status=$?
12710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711   (exit $ac_status); } &&
12712          { ac_try='test -s conftest$ac_exeext'
12713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714   (eval $ac_try) 2>&5
12715   ac_status=$?
12716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717   (exit $ac_status); }; }; then
12718   ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^.*\(libGL\.so[^    ]*\).*$/\1/'`
12719   if test "x$ac_cv_lib_soname_GL" = "x"
12720   then
12721      ac_cv_lib_soname_GL="libGL.so"
12722   fi
12723 else
12724   echo "$as_me: failed program was:" >&5
12725 sed 's/^/| /' conftest.$ac_ext >&5
12726
12727 ac_cv_lib_soname_GL="libGL.so"
12728 fi
12729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12730   LIBS=$ac_get_soname_save_LIBS
12731 fi
12732 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
12733 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
12734 if test "x$ac_cv_lib_soname_GL" != xNONE
12735 then
12736 cat >>confdefs.h <<_ACEOF
12737 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
12738 _ACEOF
12739 fi
12740
12741 echo "$as_me:$LINENO: checking for -lcups soname" >&5
12742 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
12743 if test "${ac_cv_lib_soname_cups+set}" = set; then
12744   echo $ECHO_N "(cached) $ECHO_C" >&6
12745 else
12746   ac_get_soname_save_LIBS=$LIBS
12747 LIBS="-lcups  $LIBS"
12748   cat >conftest.$ac_ext <<_ACEOF
12749 #line $LINENO "configure"
12750 /* confdefs.h.  */
12751 _ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h.  */
12755
12756 /* Override any gcc2 internal prototype to avoid an error.  */
12757 #ifdef __cplusplus
12758 extern "C"
12759 #endif
12760 /* We use char because int might match the return type of a gcc2
12761    builtin and then its argument prototype would still apply.  */
12762 char cupsGetDefault ();
12763 int
12764 main ()
12765 {
12766 cupsGetDefault ();
12767   ;
12768   return 0;
12769 }
12770 _ACEOF
12771 rm -f conftest.$ac_objext conftest$ac_exeext
12772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12773   (eval $ac_link) 2>&5
12774   ac_status=$?
12775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776   (exit $ac_status); } &&
12777          { ac_try='test -s conftest$ac_exeext'
12778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779   (eval $ac_try) 2>&5
12780   ac_status=$?
12781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782   (exit $ac_status); }; }; then
12783   ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^.*\(libcups\.so[^      ]*\).*$/\1/'`
12784   if test "x$ac_cv_lib_soname_cups" = "x"
12785   then
12786      ac_cv_lib_soname_cups="libcups.so"
12787   fi
12788 else
12789   echo "$as_me: failed program was:" >&5
12790 sed 's/^/| /' conftest.$ac_ext >&5
12791
12792 ac_cv_lib_soname_cups="libcups.so"
12793 fi
12794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12795   LIBS=$ac_get_soname_save_LIBS
12796 fi
12797 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
12798 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
12799 if test "x$ac_cv_lib_soname_cups" != xNONE
12800 then
12801 cat >>confdefs.h <<_ACEOF
12802 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12803 _ACEOF
12804 fi
12805
12806 echo "$as_me:$LINENO: checking for -ljack soname" >&5
12807 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
12808 if test "${ac_cv_lib_soname_jack+set}" = set; then
12809   echo $ECHO_N "(cached) $ECHO_C" >&6
12810 else
12811   ac_get_soname_save_LIBS=$LIBS
12812 LIBS="-ljack  $LIBS"
12813   cat >conftest.$ac_ext <<_ACEOF
12814 #line $LINENO "configure"
12815 /* confdefs.h.  */
12816 _ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h.  */
12820
12821 /* Override any gcc2 internal prototype to avoid an error.  */
12822 #ifdef __cplusplus
12823 extern "C"
12824 #endif
12825 /* We use char because int might match the return type of a gcc2
12826    builtin and then its argument prototype would still apply.  */
12827 char jack_client_new ();
12828 int
12829 main ()
12830 {
12831 jack_client_new ();
12832   ;
12833   return 0;
12834 }
12835 _ACEOF
12836 rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12838   (eval $ac_link) 2>&5
12839   ac_status=$?
12840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841   (exit $ac_status); } &&
12842          { ac_try='test -s conftest$ac_exeext'
12843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844   (eval $ac_try) 2>&5
12845   ac_status=$?
12846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847   (exit $ac_status); }; }; then
12848   ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^.*\(libjack\.so[^      ]*\).*$/\1/'`
12849   if test "x$ac_cv_lib_soname_jack" = "x"
12850   then
12851      ac_cv_lib_soname_jack="libjack.so"
12852   fi
12853 else
12854   echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12856
12857 ac_cv_lib_soname_jack="libjack.so"
12858 fi
12859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12860   LIBS=$ac_get_soname_save_LIBS
12861 fi
12862 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
12863 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
12864 if test "x$ac_cv_lib_soname_jack" != xNONE
12865 then
12866 cat >>confdefs.h <<_ACEOF
12867 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
12868 _ACEOF
12869 fi
12870
12871 echo "$as_me:$LINENO: checking for -lssl soname" >&5
12872 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
12873 if test "${ac_cv_lib_soname_ssl+set}" = set; then
12874   echo $ECHO_N "(cached) $ECHO_C" >&6
12875 else
12876   ac_get_soname_save_LIBS=$LIBS
12877 LIBS="-lssl  $LIBS"
12878   cat >conftest.$ac_ext <<_ACEOF
12879 #line $LINENO "configure"
12880 /* confdefs.h.  */
12881 _ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h.  */
12885
12886 /* Override any gcc2 internal prototype to avoid an error.  */
12887 #ifdef __cplusplus
12888 extern "C"
12889 #endif
12890 /* We use char because int might match the return type of a gcc2
12891    builtin and then its argument prototype would still apply.  */
12892 char SSL_library_init ();
12893 int
12894 main ()
12895 {
12896 SSL_library_init ();
12897   ;
12898   return 0;
12899 }
12900 _ACEOF
12901 rm -f conftest.$ac_objext conftest$ac_exeext
12902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12903   (eval $ac_link) 2>&5
12904   ac_status=$?
12905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906   (exit $ac_status); } &&
12907          { ac_try='test -s conftest$ac_exeext'
12908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909   (eval $ac_try) 2>&5
12910   ac_status=$?
12911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912   (exit $ac_status); }; }; then
12913   ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^.*\(libssl\.so[^         ]*\).*$/\1/'`
12914   if test "x$ac_cv_lib_soname_ssl" = "x"
12915   then
12916      ac_cv_lib_soname_ssl="libssl.so"
12917   fi
12918 else
12919   echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12921
12922 ac_cv_lib_soname_ssl="libssl.so"
12923 fi
12924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12925   LIBS=$ac_get_soname_save_LIBS
12926 fi
12927 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
12928 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
12929 if test "x$ac_cv_lib_soname_ssl" != xNONE
12930 then
12931 cat >>confdefs.h <<_ACEOF
12932 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
12933 _ACEOF
12934 fi
12935
12936 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
12937 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
12938 if test "${ac_cv_lib_soname_crypto+set}" = set; then
12939   echo $ECHO_N "(cached) $ECHO_C" >&6
12940 else
12941   ac_get_soname_save_LIBS=$LIBS
12942 LIBS="-lcrypto  $LIBS"
12943   cat >conftest.$ac_ext <<_ACEOF
12944 #line $LINENO "configure"
12945 /* confdefs.h.  */
12946 _ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h.  */
12950
12951 /* Override any gcc2 internal prototype to avoid an error.  */
12952 #ifdef __cplusplus
12953 extern "C"
12954 #endif
12955 /* We use char because int might match the return type of a gcc2
12956    builtin and then its argument prototype would still apply.  */
12957 char BIO_new_socket ();
12958 int
12959 main ()
12960 {
12961 BIO_new_socket ();
12962   ;
12963   return 0;
12964 }
12965 _ACEOF
12966 rm -f conftest.$ac_objext conftest$ac_exeext
12967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12968   (eval $ac_link) 2>&5
12969   ac_status=$?
12970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971   (exit $ac_status); } &&
12972          { ac_try='test -s conftest$ac_exeext'
12973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12974   (eval $ac_try) 2>&5
12975   ac_status=$?
12976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977   (exit $ac_status); }; }; then
12978   ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^.*\(libcrypto\.so[^        ]*\).*$/\1/'`
12979   if test "x$ac_cv_lib_soname_crypto" = "x"
12980   then
12981      ac_cv_lib_soname_crypto="libcrypto.so"
12982   fi
12983 else
12984   echo "$as_me: failed program was:" >&5
12985 sed 's/^/| /' conftest.$ac_ext >&5
12986
12987 ac_cv_lib_soname_crypto="libcrypto.so"
12988 fi
12989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12990   LIBS=$ac_get_soname_save_LIBS
12991 fi
12992 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
12993 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
12994 if test "x$ac_cv_lib_soname_crypto" != xNONE
12995 then
12996 cat >>confdefs.h <<_ACEOF
12997 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
12998 _ACEOF
12999 fi
13000 fi
13001
13002
13003
13004 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13005 # for constant arguments.  Useless!
13006 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13007 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13008 if test "${ac_cv_working_alloca_h+set}" = set; then
13009   echo $ECHO_N "(cached) $ECHO_C" >&6
13010 else
13011   cat >conftest.$ac_ext <<_ACEOF
13012 #line $LINENO "configure"
13013 /* confdefs.h.  */
13014 _ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h.  */
13018 #include <alloca.h>
13019 int
13020 main ()
13021 {
13022 char *p = (char *) alloca (2 * sizeof (int));
13023   ;
13024   return 0;
13025 }
13026 _ACEOF
13027 rm -f conftest.$ac_objext conftest$ac_exeext
13028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13029   (eval $ac_link) 2>&5
13030   ac_status=$?
13031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032   (exit $ac_status); } &&
13033          { ac_try='test -s conftest$ac_exeext'
13034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035   (eval $ac_try) 2>&5
13036   ac_status=$?
13037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); }; }; then
13039   ac_cv_working_alloca_h=yes
13040 else
13041   echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13043
13044 ac_cv_working_alloca_h=no
13045 fi
13046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13047 fi
13048 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13049 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13050 if test $ac_cv_working_alloca_h = yes; then
13051
13052 cat >>confdefs.h <<\_ACEOF
13053 #define HAVE_ALLOCA_H 1
13054 _ACEOF
13055
13056 fi
13057
13058 echo "$as_me:$LINENO: checking for alloca" >&5
13059 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13060 if test "${ac_cv_func_alloca_works+set}" = set; then
13061   echo $ECHO_N "(cached) $ECHO_C" >&6
13062 else
13063   cat >conftest.$ac_ext <<_ACEOF
13064 #line $LINENO "configure"
13065 /* confdefs.h.  */
13066 _ACEOF
13067 cat confdefs.h >>conftest.$ac_ext
13068 cat >>conftest.$ac_ext <<_ACEOF
13069 /* end confdefs.h.  */
13070 #ifdef __GNUC__
13071 # define alloca __builtin_alloca
13072 #else
13073 # ifdef _MSC_VER
13074 #  include <malloc.h>
13075 #  define alloca _alloca
13076 # else
13077 #  if HAVE_ALLOCA_H
13078 #   include <alloca.h>
13079 #  else
13080 #   ifdef _AIX
13081  #pragma alloca
13082 #   else
13083 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13084 char *alloca ();
13085 #    endif
13086 #   endif
13087 #  endif
13088 # endif
13089 #endif
13090
13091 int
13092 main ()
13093 {
13094 char *p = (char *) alloca (1);
13095   ;
13096   return 0;
13097 }
13098 _ACEOF
13099 rm -f conftest.$ac_objext conftest$ac_exeext
13100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13101   (eval $ac_link) 2>&5
13102   ac_status=$?
13103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104   (exit $ac_status); } &&
13105          { ac_try='test -s conftest$ac_exeext'
13106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107   (eval $ac_try) 2>&5
13108   ac_status=$?
13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110   (exit $ac_status); }; }; then
13111   ac_cv_func_alloca_works=yes
13112 else
13113   echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.$ac_ext >&5
13115
13116 ac_cv_func_alloca_works=no
13117 fi
13118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13119 fi
13120 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13121 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13122
13123 if test $ac_cv_func_alloca_works = yes; then
13124
13125 cat >>confdefs.h <<\_ACEOF
13126 #define HAVE_ALLOCA 1
13127 _ACEOF
13128
13129 else
13130   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13131 # that cause trouble.  Some versions do not even contain alloca or
13132 # contain a buggy version.  If you still want to use their alloca,
13133 # use ar to extract alloca.o from them instead of compiling alloca.c.
13134
13135 ALLOCA=alloca.$ac_objext
13136
13137 cat >>confdefs.h <<\_ACEOF
13138 #define C_ALLOCA 1
13139 _ACEOF
13140
13141
13142 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13143 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13144 if test "${ac_cv_os_cray+set}" = set; then
13145   echo $ECHO_N "(cached) $ECHO_C" >&6
13146 else
13147   cat >conftest.$ac_ext <<_ACEOF
13148 #line $LINENO "configure"
13149 /* confdefs.h.  */
13150 _ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h.  */
13154 #if defined(CRAY) && ! defined(CRAY2)
13155 webecray
13156 #else
13157 wenotbecray
13158 #endif
13159
13160 _ACEOF
13161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13162   $EGREP "webecray" >/dev/null 2>&1; then
13163   ac_cv_os_cray=yes
13164 else
13165   ac_cv_os_cray=no
13166 fi
13167 rm -f conftest*
13168
13169 fi
13170 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13171 echo "${ECHO_T}$ac_cv_os_cray" >&6
13172 if test $ac_cv_os_cray = yes; then
13173   for ac_func in _getb67 GETB67 getb67; do
13174     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13175 echo "$as_me:$LINENO: checking for $ac_func" >&5
13176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13177 if eval "test \"\${$as_ac_var+set}\" = set"; then
13178   echo $ECHO_N "(cached) $ECHO_C" >&6
13179 else
13180   cat >conftest.$ac_ext <<_ACEOF
13181 #line $LINENO "configure"
13182 /* confdefs.h.  */
13183 _ACEOF
13184 cat confdefs.h >>conftest.$ac_ext
13185 cat >>conftest.$ac_ext <<_ACEOF
13186 /* end confdefs.h.  */
13187 /* System header to define __stub macros and hopefully few prototypes,
13188     which can conflict with char $ac_func (); below.
13189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13190     <limits.h> exists even on freestanding compilers.  */
13191 #ifdef __STDC__
13192 # include <limits.h>
13193 #else
13194 # include <assert.h>
13195 #endif
13196 /* Override any gcc2 internal prototype to avoid an error.  */
13197 #ifdef __cplusplus
13198 extern "C"
13199 {
13200 #endif
13201 /* We use char because int might match the return type of a gcc2
13202    builtin and then its argument prototype would still apply.  */
13203 char $ac_func ();
13204 /* The GNU C library defines this for functions which it implements
13205     to always fail with ENOSYS.  Some functions are actually named
13206     something starting with __ and the normal name is an alias.  */
13207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13208 choke me
13209 #else
13210 char (*f) () = $ac_func;
13211 #endif
13212 #ifdef __cplusplus
13213 }
13214 #endif
13215
13216 int
13217 main ()
13218 {
13219 return f != $ac_func;
13220   ;
13221   return 0;
13222 }
13223 _ACEOF
13224 rm -f conftest.$ac_objext conftest$ac_exeext
13225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13226   (eval $ac_link) 2>&5
13227   ac_status=$?
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); } &&
13230          { ac_try='test -s conftest$ac_exeext'
13231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232   (eval $ac_try) 2>&5
13233   ac_status=$?
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); }; }; then
13236   eval "$as_ac_var=yes"
13237 else
13238   echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13240
13241 eval "$as_ac_var=no"
13242 fi
13243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13244 fi
13245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13246 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13247 if test `eval echo '${'$as_ac_var'}'` = yes; then
13248
13249 cat >>confdefs.h <<_ACEOF
13250 #define CRAY_STACKSEG_END $ac_func
13251 _ACEOF
13252
13253     break
13254 fi
13255
13256   done
13257 fi
13258
13259 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13260 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13261 if test "${ac_cv_c_stack_direction+set}" = set; then
13262   echo $ECHO_N "(cached) $ECHO_C" >&6
13263 else
13264   if test "$cross_compiling" = yes; then
13265   ac_cv_c_stack_direction=0
13266 else
13267   cat >conftest.$ac_ext <<_ACEOF
13268 #line $LINENO "configure"
13269 /* confdefs.h.  */
13270 _ACEOF
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h.  */
13274 int
13275 find_stack_direction ()
13276 {
13277   static char *addr = 0;
13278   auto char dummy;
13279   if (addr == 0)
13280     {
13281       addr = &dummy;
13282       return find_stack_direction ();
13283     }
13284   else
13285     return (&dummy > addr) ? 1 : -1;
13286 }
13287
13288 int
13289 main ()
13290 {
13291   exit (find_stack_direction () < 0);
13292 }
13293 _ACEOF
13294 rm -f conftest$ac_exeext
13295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13296   (eval $ac_link) 2>&5
13297   ac_status=$?
13298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301   (eval $ac_try) 2>&5
13302   ac_status=$?
13303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); }; }; then
13305   ac_cv_c_stack_direction=1
13306 else
13307   echo "$as_me: program exited with status $ac_status" >&5
13308 echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.$ac_ext >&5
13310
13311 ( exit $ac_status )
13312 ac_cv_c_stack_direction=-1
13313 fi
13314 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13315 fi
13316 fi
13317 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13318 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13319
13320 cat >>confdefs.h <<_ACEOF
13321 #define STACK_DIRECTION $ac_cv_c_stack_direction
13322 _ACEOF
13323
13324
13325 fi
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377 for ac_func in \
13378         _lwp_create \
13379         _lwp_self \
13380         _pclose \
13381         _popen \
13382         _snprintf \
13383         _spawnvp \
13384         _stricmp \
13385         _strnicmp \
13386         _vsnprintf \
13387         chsize \
13388         clone \
13389         finite \
13390         fpclass \
13391         ftruncate \
13392         ftruncate64 \
13393         getnetbyaddr \
13394         getnetbyname \
13395         getopt_long \
13396         getpagesize \
13397         getprotobyname \
13398         getprotobynumber \
13399         getpwuid \
13400         getservbyport \
13401         gettimeofday \
13402         inet_network \
13403         lseek64 \
13404         lstat \
13405         memmove \
13406         mmap \
13407         pclose \
13408         popen \
13409         pread \
13410         pwrite \
13411         rfork \
13412         select \
13413         sendmsg \
13414         settimeofday \
13415         sigaltstack \
13416         snprintf \
13417         statfs \
13418         strcasecmp \
13419         strerror \
13420         strncasecmp \
13421         tcgetattr \
13422         timegm \
13423         usleep \
13424         vfscanf \
13425         vsnprintf \
13426         wait4 \
13427         waitpid \
13428
13429 do
13430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13431 echo "$as_me:$LINENO: checking for $ac_func" >&5
13432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13433 if eval "test \"\${$as_ac_var+set}\" = set"; then
13434   echo $ECHO_N "(cached) $ECHO_C" >&6
13435 else
13436   cat >conftest.$ac_ext <<_ACEOF
13437 #line $LINENO "configure"
13438 /* confdefs.h.  */
13439 _ACEOF
13440 cat confdefs.h >>conftest.$ac_ext
13441 cat >>conftest.$ac_ext <<_ACEOF
13442 /* end confdefs.h.  */
13443 /* System header to define __stub macros and hopefully few prototypes,
13444     which can conflict with char $ac_func (); below.
13445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13446     <limits.h> exists even on freestanding compilers.  */
13447 #ifdef __STDC__
13448 # include <limits.h>
13449 #else
13450 # include <assert.h>
13451 #endif
13452 /* Override any gcc2 internal prototype to avoid an error.  */
13453 #ifdef __cplusplus
13454 extern "C"
13455 {
13456 #endif
13457 /* We use char because int might match the return type of a gcc2
13458    builtin and then its argument prototype would still apply.  */
13459 char $ac_func ();
13460 /* The GNU C library defines this for functions which it implements
13461     to always fail with ENOSYS.  Some functions are actually named
13462     something starting with __ and the normal name is an alias.  */
13463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13464 choke me
13465 #else
13466 char (*f) () = $ac_func;
13467 #endif
13468 #ifdef __cplusplus
13469 }
13470 #endif
13471
13472 int
13473 main ()
13474 {
13475 return f != $ac_func;
13476   ;
13477   return 0;
13478 }
13479 _ACEOF
13480 rm -f conftest.$ac_objext conftest$ac_exeext
13481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13482   (eval $ac_link) 2>&5
13483   ac_status=$?
13484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485   (exit $ac_status); } &&
13486          { ac_try='test -s conftest$ac_exeext'
13487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488   (eval $ac_try) 2>&5
13489   ac_status=$?
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); }; }; then
13492   eval "$as_ac_var=yes"
13493 else
13494   echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13496
13497 eval "$as_ac_var=no"
13498 fi
13499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13500 fi
13501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13503 if test `eval echo '${'$as_ac_var'}'` = yes; then
13504   cat >>confdefs.h <<_ACEOF
13505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13506 _ACEOF
13507
13508 fi
13509 done
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588 for ac_header in \
13589         arpa/inet.h \
13590         arpa/nameser.h \
13591         cups/cups.h \
13592         direct.h \
13593         elf.h \
13594         float.h \
13595         getopt.h \
13596         ieeefp.h \
13597         io.h \
13598         jack/jack.h \
13599         libio.h \
13600         libutil.h \
13601         link.h \
13602         linux/cdrom.h \
13603         linux/hdreg.h \
13604         linux/input.h \
13605         linux/joystick.h \
13606         linux/major.h \
13607         linux/param.h \
13608         linux/serial.h \
13609         linux/ucdrom.h \
13610         machine/cpu.h \
13611         netdb.h \
13612         netinet/in.h \
13613         netinet/in_systm.h \
13614         netinet/tcp.h \
13615         netinet/tcp_fsm.h \
13616         openssl/ssl.h \
13617         pty.h \
13618         pwd.h \
13619         regex.h \
13620         sched.h \
13621         scsi/sg.h \
13622         socket.h \
13623         stdint.h \
13624         strings.h \
13625         sys/cdio.h \
13626         sys/errno.h \
13627         sys/file.h \
13628         sys/filio.h \
13629         sys/inttypes.h \
13630         sys/ioctl.h \
13631         sys/ipc.h \
13632         sys/link.h \
13633         sys/lwp.h \
13634         sys/mman.h \
13635         sys/modem.h \
13636         sys/msg.h \
13637         sys/param.h \
13638         sys/poll.h \
13639         sys/ptrace.h \
13640         sys/reg.h \
13641         sys/scsiio.h \
13642         sys/shm.h \
13643         sys/signal.h \
13644         sys/socket.h \
13645         sys/sockio.h \
13646         sys/statfs.h \
13647         sys/strtio.h \
13648         sys/syscall.h \
13649         sys/sysctl.h \
13650         sys/time.h \
13651         sys/times.h \
13652         sys/uio.h \
13653         sys/un.h \
13654         sys/v86.h \
13655         sys/v86intr.h \
13656         sys/vfs.h \
13657         sys/vm86.h \
13658         sys/wait.h \
13659         syscall.h \
13660         termios.h \
13661         unistd.h \
13662         utime.h \
13663         valgrind/memcheck.h
13664
13665 do
13666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13668   echo "$as_me:$LINENO: checking for $ac_header" >&5
13669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13671   echo $ECHO_N "(cached) $ECHO_C" >&6
13672 fi
13673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13675 else
13676   # Is the header compilable?
13677 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13679 cat >conftest.$ac_ext <<_ACEOF
13680 #line $LINENO "configure"
13681 /* confdefs.h.  */
13682 _ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h.  */
13686 $ac_includes_default
13687 #include <$ac_header>
13688 _ACEOF
13689 rm -f conftest.$ac_objext
13690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13691   (eval $ac_compile) 2>&5
13692   ac_status=$?
13693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694   (exit $ac_status); } &&
13695          { ac_try='test -s conftest.$ac_objext'
13696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697   (eval $ac_try) 2>&5
13698   ac_status=$?
13699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700   (exit $ac_status); }; }; then
13701   ac_header_compiler=yes
13702 else
13703   echo "$as_me: failed program was:" >&5
13704 sed 's/^/| /' conftest.$ac_ext >&5
13705
13706 ac_header_compiler=no
13707 fi
13708 rm -f conftest.$ac_objext conftest.$ac_ext
13709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13710 echo "${ECHO_T}$ac_header_compiler" >&6
13711
13712 # Is the header present?
13713 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13715 cat >conftest.$ac_ext <<_ACEOF
13716 #line $LINENO "configure"
13717 /* confdefs.h.  */
13718 _ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h.  */
13722 #include <$ac_header>
13723 _ACEOF
13724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13725   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13726   ac_status=$?
13727   grep -v '^ *+' conftest.er1 >conftest.err
13728   rm -f conftest.er1
13729   cat conftest.err >&5
13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); } >/dev/null; then
13732   if test -s conftest.err; then
13733     ac_cpp_err=$ac_c_preproc_warn_flag
13734   else
13735     ac_cpp_err=
13736   fi
13737 else
13738   ac_cpp_err=yes
13739 fi
13740 if test -z "$ac_cpp_err"; then
13741   ac_header_preproc=yes
13742 else
13743   echo "$as_me: failed program was:" >&5
13744 sed 's/^/| /' conftest.$ac_ext >&5
13745
13746   ac_header_preproc=no
13747 fi
13748 rm -f conftest.err conftest.$ac_ext
13749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13750 echo "${ECHO_T}$ac_header_preproc" >&6
13751
13752 # So?  What about this header?
13753 case $ac_header_compiler:$ac_header_preproc in
13754   yes:no )
13755     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13757     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13759     (
13760       cat <<\_ASBOX
13761 ## ------------------------------------ ##
13762 ## Report this to bug-autoconf@gnu.org. ##
13763 ## ------------------------------------ ##
13764 _ASBOX
13765     ) |
13766       sed "s/^/$as_me: WARNING:     /" >&2
13767     ;;
13768   no:yes )
13769     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13771     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13775     (
13776       cat <<\_ASBOX
13777 ## ------------------------------------ ##
13778 ## Report this to bug-autoconf@gnu.org. ##
13779 ## ------------------------------------ ##
13780 _ASBOX
13781     ) |
13782       sed "s/^/$as_me: WARNING:     /" >&2
13783     ;;
13784 esac
13785 echo "$as_me:$LINENO: checking for $ac_header" >&5
13786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13788   echo $ECHO_N "(cached) $ECHO_C" >&6
13789 else
13790   eval "$as_ac_Header=$ac_header_preproc"
13791 fi
13792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13794
13795 fi
13796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13797   cat >>confdefs.h <<_ACEOF
13798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13799 _ACEOF
13800
13801 fi
13802
13803 done
13804
13805 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13806 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13807 if test "${ac_cv_header_stat_broken+set}" = set; then
13808   echo $ECHO_N "(cached) $ECHO_C" >&6
13809 else
13810   cat >conftest.$ac_ext <<_ACEOF
13811 #line $LINENO "configure"
13812 /* confdefs.h.  */
13813 _ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h.  */
13817 #include <sys/types.h>
13818 #include <sys/stat.h>
13819
13820 #if defined(S_ISBLK) && defined(S_IFDIR)
13821 # if S_ISBLK (S_IFDIR)
13822 You lose.
13823 # endif
13824 #endif
13825
13826 #if defined(S_ISBLK) && defined(S_IFCHR)
13827 # if S_ISBLK (S_IFCHR)
13828 You lose.
13829 # endif
13830 #endif
13831
13832 #if defined(S_ISLNK) && defined(S_IFREG)
13833 # if S_ISLNK (S_IFREG)
13834 You lose.
13835 # endif
13836 #endif
13837
13838 #if defined(S_ISSOCK) && defined(S_IFREG)
13839 # if S_ISSOCK (S_IFREG)
13840 You lose.
13841 # endif
13842 #endif
13843
13844 _ACEOF
13845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13846   $EGREP "You lose" >/dev/null 2>&1; then
13847   ac_cv_header_stat_broken=yes
13848 else
13849   ac_cv_header_stat_broken=no
13850 fi
13851 rm -f conftest*
13852
13853 fi
13854 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13855 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
13856 if test $ac_cv_header_stat_broken = yes; then
13857
13858 cat >>confdefs.h <<\_ACEOF
13859 #define STAT_MACROS_BROKEN 1
13860 _ACEOF
13861
13862 fi
13863
13864
13865
13866
13867
13868 for ac_header in sys/mount.h sys/user.h
13869 do
13870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13871 echo "$as_me:$LINENO: checking for $ac_header" >&5
13872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13874   echo $ECHO_N "(cached) $ECHO_C" >&6
13875 else
13876   cat >conftest.$ac_ext <<_ACEOF
13877 #line $LINENO "configure"
13878 /* confdefs.h.  */
13879 _ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h.  */
13883 #include <sys/types.h>
13884      #if HAVE_SYS_PARAM_H
13885      # include <sys/param.h>
13886      #endif
13887
13888 #include <$ac_header>
13889 _ACEOF
13890 rm -f conftest.$ac_objext
13891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13892   (eval $ac_compile) 2>&5
13893   ac_status=$?
13894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895   (exit $ac_status); } &&
13896          { ac_try='test -s conftest.$ac_objext'
13897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898   (eval $ac_try) 2>&5
13899   ac_status=$?
13900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901   (exit $ac_status); }; }; then
13902   eval "$as_ac_Header=yes"
13903 else
13904   echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13906
13907 eval "$as_ac_Header=no"
13908 fi
13909 rm -f conftest.$ac_objext conftest.$ac_ext
13910 fi
13911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13914   cat >>confdefs.h <<_ACEOF
13915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13916 _ACEOF
13917
13918 fi
13919
13920 done
13921
13922
13923
13924
13925
13926
13927
13928 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
13929 do
13930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13931 echo "$as_me:$LINENO: checking for $ac_header" >&5
13932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13934   echo $ECHO_N "(cached) $ECHO_C" >&6
13935 else
13936   cat >conftest.$ac_ext <<_ACEOF
13937 #line $LINENO "configure"
13938 /* confdefs.h.  */
13939 _ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h.  */
13943 #include <sys/types.h>
13944      #if HAVE_SYS_SOCKET_H
13945      # include <sys/socket.h>
13946      #endif
13947
13948 #include <$ac_header>
13949 _ACEOF
13950 rm -f conftest.$ac_objext
13951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13952   (eval $ac_compile) 2>&5
13953   ac_status=$?
13954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955   (exit $ac_status); } &&
13956          { ac_try='test -s conftest.$ac_objext'
13957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958   (eval $ac_try) 2>&5
13959   ac_status=$?
13960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961   (exit $ac_status); }; }; then
13962   eval "$as_ac_Header=yes"
13963 else
13964   echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13966
13967 eval "$as_ac_Header=no"
13968 fi
13969 rm -f conftest.$ac_objext conftest.$ac_ext
13970 fi
13971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13974   cat >>confdefs.h <<_ACEOF
13975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13976 _ACEOF
13977
13978 fi
13979
13980 done
13981
13982
13983
13984 for ac_header in resolv.h
13985 do
13986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13987 echo "$as_me:$LINENO: checking for $ac_header" >&5
13988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13990   echo $ECHO_N "(cached) $ECHO_C" >&6
13991 else
13992   cat >conftest.$ac_ext <<_ACEOF
13993 #line $LINENO "configure"
13994 /* confdefs.h.  */
13995 _ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h.  */
13999 #include <sys/types.h>
14000      #if HAVE_SYS_SOCKET_H
14001      # include <sys/socket.h>
14002      #endif
14003      #if HAVE_NETINET_IN_H
14004      # include <netinet/in.h>
14005      #endif
14006
14007 #include <$ac_header>
14008 _ACEOF
14009 rm -f conftest.$ac_objext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14011   (eval $ac_compile) 2>&5
14012   ac_status=$?
14013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014   (exit $ac_status); } &&
14015          { ac_try='test -s conftest.$ac_objext'
14016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017   (eval $ac_try) 2>&5
14018   ac_status=$?
14019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020   (exit $ac_status); }; }; then
14021   eval "$as_ac_Header=yes"
14022 else
14023   echo "$as_me: failed program was:" >&5
14024 sed 's/^/| /' conftest.$ac_ext >&5
14025
14026 eval "$as_ac_Header=no"
14027 fi
14028 rm -f conftest.$ac_objext conftest.$ac_ext
14029 fi
14030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14033   cat >>confdefs.h <<_ACEOF
14034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14035 _ACEOF
14036
14037 fi
14038
14039 done
14040
14041
14042
14043 for ac_header in netinet/ip.h
14044 do
14045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14046 echo "$as_me:$LINENO: checking for $ac_header" >&5
14047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14049   echo $ECHO_N "(cached) $ECHO_C" >&6
14050 else
14051   cat >conftest.$ac_ext <<_ACEOF
14052 #line $LINENO "configure"
14053 /* confdefs.h.  */
14054 _ACEOF
14055 cat confdefs.h >>conftest.$ac_ext
14056 cat >>conftest.$ac_ext <<_ACEOF
14057 /* end confdefs.h.  */
14058 #include <sys/types.h>
14059      #if HAVE_SYS_SOCKET_H
14060      # include <sys/socket.h>
14061      #endif
14062      #if HAVE_NETINET_IN_SYSTM_H
14063      # include <netinet/in_systm.h>
14064      #endif
14065
14066 #include <$ac_header>
14067 _ACEOF
14068 rm -f conftest.$ac_objext
14069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14070   (eval $ac_compile) 2>&5
14071   ac_status=$?
14072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073   (exit $ac_status); } &&
14074          { ac_try='test -s conftest.$ac_objext'
14075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14076   (eval $ac_try) 2>&5
14077   ac_status=$?
14078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079   (exit $ac_status); }; }; then
14080   eval "$as_ac_Header=yes"
14081 else
14082   echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14084
14085 eval "$as_ac_Header=no"
14086 fi
14087 rm -f conftest.$ac_objext conftest.$ac_ext
14088 fi
14089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14092   cat >>confdefs.h <<_ACEOF
14093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14094 _ACEOF
14095
14096 fi
14097
14098 done
14099
14100
14101
14102 for ac_header in ucontext.h
14103 do
14104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14105 echo "$as_me:$LINENO: checking for $ac_header" >&5
14106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14108   echo $ECHO_N "(cached) $ECHO_C" >&6
14109 else
14110   cat >conftest.$ac_ext <<_ACEOF
14111 #line $LINENO "configure"
14112 /* confdefs.h.  */
14113 _ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h.  */
14117 #include <signal.h>
14118
14119 #include <$ac_header>
14120 _ACEOF
14121 rm -f conftest.$ac_objext
14122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14123   (eval $ac_compile) 2>&5
14124   ac_status=$?
14125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126   (exit $ac_status); } &&
14127          { ac_try='test -s conftest.$ac_objext'
14128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14129   (eval $ac_try) 2>&5
14130   ac_status=$?
14131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132   (exit $ac_status); }; }; then
14133   eval "$as_ac_Header=yes"
14134 else
14135   echo "$as_me: failed program was:" >&5
14136 sed 's/^/| /' conftest.$ac_ext >&5
14137
14138 eval "$as_ac_Header=no"
14139 fi
14140 rm -f conftest.$ac_objext conftest.$ac_ext
14141 fi
14142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14145   cat >>confdefs.h <<_ACEOF
14146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14147 _ACEOF
14148
14149 fi
14150
14151 done
14152
14153
14154
14155 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
14156 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
14157 if test "${ac_cv_c_ipx_gnu+set}" = set; then
14158   echo $ECHO_N "(cached) $ECHO_C" >&6
14159 else
14160   cat >conftest.$ac_ext <<_ACEOF
14161 #line $LINENO "configure"
14162 /* confdefs.h.  */
14163 _ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h.  */
14167 #include <sys/types.h>
14168     #ifdef HAVE_SYS_SOCKET_H
14169     # include <sys/socket.h>
14170     #endif
14171     #include <netipx/ipx.h>
14172 int
14173 main ()
14174 {
14175 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14176   ;
14177   return 0;
14178 }
14179 _ACEOF
14180 rm -f conftest.$ac_objext
14181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14182   (eval $ac_compile) 2>&5
14183   ac_status=$?
14184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185   (exit $ac_status); } &&
14186          { ac_try='test -s conftest.$ac_objext'
14187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188   (eval $ac_try) 2>&5
14189   ac_status=$?
14190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191   (exit $ac_status); }; }; then
14192   ac_cv_c_ipx_gnu="yes"
14193 else
14194   echo "$as_me: failed program was:" >&5
14195 sed 's/^/| /' conftest.$ac_ext >&5
14196
14197 ac_cv_c_ipx_gnu="no"
14198 fi
14199 rm -f conftest.$ac_objext conftest.$ac_ext
14200
14201 fi
14202 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
14203 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
14204 if test "$ac_cv_c_ipx_gnu" = "yes"
14205 then
14206
14207 cat >>confdefs.h <<\_ACEOF
14208 #define HAVE_IPX_GNU 1
14209 _ACEOF
14210
14211 fi
14212
14213 if test "$ac_cv_c_ipx_gnu" = "no"
14214 then
14215  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
14216 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
14217 if test "${ac_cv_c_ipx_linux+set}" = set; then
14218   echo $ECHO_N "(cached) $ECHO_C" >&6
14219 else
14220   cat >conftest.$ac_ext <<_ACEOF
14221 #line $LINENO "configure"
14222 /* confdefs.h.  */
14223 _ACEOF
14224 cat confdefs.h >>conftest.$ac_ext
14225 cat >>conftest.$ac_ext <<_ACEOF
14226 /* end confdefs.h.  */
14227 #include <sys/types.h>
14228      #ifdef HAVE_SYS_SOCKET_H
14229      # include <sys/socket.h>
14230      #endif
14231      #include <asm/types.h>
14232      #include <linux/ipx.h>
14233 int
14234 main ()
14235 {
14236 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14237   ;
14238   return 0;
14239 }
14240 _ACEOF
14241 rm -f conftest.$ac_objext
14242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14243   (eval $ac_compile) 2>&5
14244   ac_status=$?
14245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246   (exit $ac_status); } &&
14247          { ac_try='test -s conftest.$ac_objext'
14248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249   (eval $ac_try) 2>&5
14250   ac_status=$?
14251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252   (exit $ac_status); }; }; then
14253   ac_cv_c_ipx_linux="yes"
14254 else
14255   echo "$as_me: failed program was:" >&5
14256 sed 's/^/| /' conftest.$ac_ext >&5
14257
14258 ac_cv_c_ipx_linux="no"
14259 fi
14260 rm -f conftest.$ac_objext conftest.$ac_ext
14261
14262 fi
14263 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
14264 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
14265   if test "$ac_cv_c_ipx_linux" = "yes"
14266   then
14267
14268 cat >>confdefs.h <<\_ACEOF
14269 #define HAVE_IPX_LINUX 1
14270 _ACEOF
14271
14272   fi
14273 fi
14274
14275
14276 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14277 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14278 if test "${ac_cv_c_const+set}" = set; then
14279   echo $ECHO_N "(cached) $ECHO_C" >&6
14280 else
14281   cat >conftest.$ac_ext <<_ACEOF
14282 #line $LINENO "configure"
14283 /* confdefs.h.  */
14284 _ACEOF
14285 cat confdefs.h >>conftest.$ac_ext
14286 cat >>conftest.$ac_ext <<_ACEOF
14287 /* end confdefs.h.  */
14288
14289 int
14290 main ()
14291 {
14292 /* FIXME: Include the comments suggested by Paul. */
14293 #ifndef __cplusplus
14294   /* Ultrix mips cc rejects this.  */
14295   typedef int charset[2];
14296   const charset x;
14297   /* SunOS 4.1.1 cc rejects this.  */
14298   char const *const *ccp;
14299   char **p;
14300   /* NEC SVR4.0.2 mips cc rejects this.  */
14301   struct point {int x, y;};
14302   static struct point const zero = {0,0};
14303   /* AIX XL C 1.02.0.0 rejects this.
14304      It does not let you subtract one const X* pointer from another in
14305      an arm of an if-expression whose if-part is not a constant
14306      expression */
14307   const char *g = "string";
14308   ccp = &g + (g ? g-g : 0);
14309   /* HPUX 7.0 cc rejects these. */
14310   ++ccp;
14311   p = (char**) ccp;
14312   ccp = (char const *const *) p;
14313   { /* SCO 3.2v4 cc rejects this.  */
14314     char *t;
14315     char const *s = 0 ? (char *) 0 : (char const *) 0;
14316
14317     *t++ = 0;
14318   }
14319   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14320     int x[] = {25, 17};
14321     const int *foo = &x[0];
14322     ++foo;
14323   }
14324   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14325     typedef const int *iptr;
14326     iptr p = 0;
14327     ++p;
14328   }
14329   { /* AIX XL C 1.02.0.0 rejects this saying
14330        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14331     struct s { int j; const int *ap[3]; };
14332     struct s *b; b->j = 5;
14333   }
14334   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14335     const int foo = 10;
14336   }
14337 #endif
14338
14339   ;
14340   return 0;
14341 }
14342 _ACEOF
14343 rm -f conftest.$ac_objext
14344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14345   (eval $ac_compile) 2>&5
14346   ac_status=$?
14347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348   (exit $ac_status); } &&
14349          { ac_try='test -s conftest.$ac_objext'
14350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351   (eval $ac_try) 2>&5
14352   ac_status=$?
14353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354   (exit $ac_status); }; }; then
14355   ac_cv_c_const=yes
14356 else
14357   echo "$as_me: failed program was:" >&5
14358 sed 's/^/| /' conftest.$ac_ext >&5
14359
14360 ac_cv_c_const=no
14361 fi
14362 rm -f conftest.$ac_objext conftest.$ac_ext
14363 fi
14364 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14365 echo "${ECHO_T}$ac_cv_c_const" >&6
14366 if test $ac_cv_c_const = no; then
14367
14368 cat >>confdefs.h <<\_ACEOF
14369 #define const
14370 _ACEOF
14371
14372 fi
14373
14374 echo "$as_me:$LINENO: checking for inline" >&5
14375 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14376 if test "${ac_cv_c_inline+set}" = set; then
14377   echo $ECHO_N "(cached) $ECHO_C" >&6
14378 else
14379   ac_cv_c_inline=no
14380 for ac_kw in inline __inline__ __inline; do
14381   cat >conftest.$ac_ext <<_ACEOF
14382 #line $LINENO "configure"
14383 /* confdefs.h.  */
14384 _ACEOF
14385 cat confdefs.h >>conftest.$ac_ext
14386 cat >>conftest.$ac_ext <<_ACEOF
14387 /* end confdefs.h.  */
14388 #ifndef __cplusplus
14389 typedef int foo_t;
14390 static $ac_kw foo_t static_foo () {return 0; }
14391 $ac_kw foo_t foo () {return 0; }
14392 #endif
14393
14394 _ACEOF
14395 rm -f conftest.$ac_objext
14396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14397   (eval $ac_compile) 2>&5
14398   ac_status=$?
14399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400   (exit $ac_status); } &&
14401          { ac_try='test -s conftest.$ac_objext'
14402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403   (eval $ac_try) 2>&5
14404   ac_status=$?
14405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406   (exit $ac_status); }; }; then
14407   ac_cv_c_inline=$ac_kw; break
14408 else
14409   echo "$as_me: failed program was:" >&5
14410 sed 's/^/| /' conftest.$ac_ext >&5
14411
14412 fi
14413 rm -f conftest.$ac_objext conftest.$ac_ext
14414 done
14415
14416 fi
14417 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14418 echo "${ECHO_T}$ac_cv_c_inline" >&6
14419 case $ac_cv_c_inline in
14420   inline | yes) ;;
14421   no)
14422 cat >>confdefs.h <<\_ACEOF
14423 #define inline
14424 _ACEOF
14425  ;;
14426   *)  cat >>confdefs.h <<_ACEOF
14427 #define inline $ac_cv_c_inline
14428 _ACEOF
14429  ;;
14430 esac
14431
14432 echo "$as_me:$LINENO: checking for mode_t" >&5
14433 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
14434 if test "${ac_cv_type_mode_t+set}" = set; then
14435   echo $ECHO_N "(cached) $ECHO_C" >&6
14436 else
14437   cat >conftest.$ac_ext <<_ACEOF
14438 #line $LINENO "configure"
14439 /* confdefs.h.  */
14440 _ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h.  */
14444 $ac_includes_default
14445 int
14446 main ()
14447 {
14448 if ((mode_t *) 0)
14449   return 0;
14450 if (sizeof (mode_t))
14451   return 0;
14452   ;
14453   return 0;
14454 }
14455 _ACEOF
14456 rm -f conftest.$ac_objext
14457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14458   (eval $ac_compile) 2>&5
14459   ac_status=$?
14460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461   (exit $ac_status); } &&
14462          { ac_try='test -s conftest.$ac_objext'
14463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464   (eval $ac_try) 2>&5
14465   ac_status=$?
14466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467   (exit $ac_status); }; }; then
14468   ac_cv_type_mode_t=yes
14469 else
14470   echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14472
14473 ac_cv_type_mode_t=no
14474 fi
14475 rm -f conftest.$ac_objext conftest.$ac_ext
14476 fi
14477 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14478 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
14479 if test $ac_cv_type_mode_t = yes; then
14480
14481 cat >>confdefs.h <<_ACEOF
14482 #define HAVE_MODE_T 1
14483 _ACEOF
14484
14485
14486 fi
14487 echo "$as_me:$LINENO: checking for off_t" >&5
14488 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
14489 if test "${ac_cv_type_off_t+set}" = set; then
14490   echo $ECHO_N "(cached) $ECHO_C" >&6
14491 else
14492   cat >conftest.$ac_ext <<_ACEOF
14493 #line $LINENO "configure"
14494 /* confdefs.h.  */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h.  */
14499 $ac_includes_default
14500 int
14501 main ()
14502 {
14503 if ((off_t *) 0)
14504   return 0;
14505 if (sizeof (off_t))
14506   return 0;
14507   ;
14508   return 0;
14509 }
14510 _ACEOF
14511 rm -f conftest.$ac_objext
14512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14513   (eval $ac_compile) 2>&5
14514   ac_status=$?
14515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516   (exit $ac_status); } &&
14517          { ac_try='test -s conftest.$ac_objext'
14518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519   (eval $ac_try) 2>&5
14520   ac_status=$?
14521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); }; }; then
14523   ac_cv_type_off_t=yes
14524 else
14525   echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14527
14528 ac_cv_type_off_t=no
14529 fi
14530 rm -f conftest.$ac_objext conftest.$ac_ext
14531 fi
14532 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14533 echo "${ECHO_T}$ac_cv_type_off_t" >&6
14534 if test $ac_cv_type_off_t = yes; then
14535
14536 cat >>confdefs.h <<_ACEOF
14537 #define HAVE_OFF_T 1
14538 _ACEOF
14539
14540
14541 fi
14542 echo "$as_me:$LINENO: checking for pid_t" >&5
14543 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14544 if test "${ac_cv_type_pid_t+set}" = set; then
14545   echo $ECHO_N "(cached) $ECHO_C" >&6
14546 else
14547   cat >conftest.$ac_ext <<_ACEOF
14548 #line $LINENO "configure"
14549 /* confdefs.h.  */
14550 _ACEOF
14551 cat confdefs.h >>conftest.$ac_ext
14552 cat >>conftest.$ac_ext <<_ACEOF
14553 /* end confdefs.h.  */
14554 $ac_includes_default
14555 int
14556 main ()
14557 {
14558 if ((pid_t *) 0)
14559   return 0;
14560 if (sizeof (pid_t))
14561   return 0;
14562   ;
14563   return 0;
14564 }
14565 _ACEOF
14566 rm -f conftest.$ac_objext
14567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14568   (eval $ac_compile) 2>&5
14569   ac_status=$?
14570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571   (exit $ac_status); } &&
14572          { ac_try='test -s conftest.$ac_objext'
14573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574   (eval $ac_try) 2>&5
14575   ac_status=$?
14576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); }; }; then
14578   ac_cv_type_pid_t=yes
14579 else
14580   echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14582
14583 ac_cv_type_pid_t=no
14584 fi
14585 rm -f conftest.$ac_objext conftest.$ac_ext
14586 fi
14587 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14588 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14589 if test $ac_cv_type_pid_t = yes; then
14590
14591 cat >>confdefs.h <<_ACEOF
14592 #define HAVE_PID_T 1
14593 _ACEOF
14594
14595
14596 fi
14597 echo "$as_me:$LINENO: checking for size_t" >&5
14598 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
14599 if test "${ac_cv_type_size_t+set}" = set; then
14600   echo $ECHO_N "(cached) $ECHO_C" >&6
14601 else
14602   cat >conftest.$ac_ext <<_ACEOF
14603 #line $LINENO "configure"
14604 /* confdefs.h.  */
14605 _ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h.  */
14609 $ac_includes_default
14610 int
14611 main ()
14612 {
14613 if ((size_t *) 0)
14614   return 0;
14615 if (sizeof (size_t))
14616   return 0;
14617   ;
14618   return 0;
14619 }
14620 _ACEOF
14621 rm -f conftest.$ac_objext
14622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14623   (eval $ac_compile) 2>&5
14624   ac_status=$?
14625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626   (exit $ac_status); } &&
14627          { ac_try='test -s conftest.$ac_objext'
14628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14629   (eval $ac_try) 2>&5
14630   ac_status=$?
14631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632   (exit $ac_status); }; }; then
14633   ac_cv_type_size_t=yes
14634 else
14635   echo "$as_me: failed program was:" >&5
14636 sed 's/^/| /' conftest.$ac_ext >&5
14637
14638 ac_cv_type_size_t=no
14639 fi
14640 rm -f conftest.$ac_objext conftest.$ac_ext
14641 fi
14642 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14643 echo "${ECHO_T}$ac_cv_type_size_t" >&6
14644 if test $ac_cv_type_size_t = yes; then
14645
14646 cat >>confdefs.h <<_ACEOF
14647 #define HAVE_SIZE_T 1
14648 _ACEOF
14649
14650
14651 fi
14652 echo "$as_me:$LINENO: checking for ssize_t" >&5
14653 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14654 if test "${ac_cv_type_ssize_t+set}" = set; then
14655   echo $ECHO_N "(cached) $ECHO_C" >&6
14656 else
14657   cat >conftest.$ac_ext <<_ACEOF
14658 #line $LINENO "configure"
14659 /* confdefs.h.  */
14660 _ACEOF
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h.  */
14664 $ac_includes_default
14665 int
14666 main ()
14667 {
14668 if ((ssize_t *) 0)
14669   return 0;
14670 if (sizeof (ssize_t))
14671   return 0;
14672   ;
14673   return 0;
14674 }
14675 _ACEOF
14676 rm -f conftest.$ac_objext
14677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14678   (eval $ac_compile) 2>&5
14679   ac_status=$?
14680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681   (exit $ac_status); } &&
14682          { ac_try='test -s conftest.$ac_objext'
14683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684   (eval $ac_try) 2>&5
14685   ac_status=$?
14686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687   (exit $ac_status); }; }; then
14688   ac_cv_type_ssize_t=yes
14689 else
14690   echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14692
14693 ac_cv_type_ssize_t=no
14694 fi
14695 rm -f conftest.$ac_objext conftest.$ac_ext
14696 fi
14697 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14698 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14699 if test $ac_cv_type_ssize_t = yes; then
14700
14701 cat >>confdefs.h <<_ACEOF
14702 #define HAVE_SSIZE_T 1
14703 _ACEOF
14704
14705
14706 fi
14707
14708 echo "$as_me:$LINENO: checking for long long" >&5
14709 echo $ECHO_N "checking for long long... $ECHO_C" >&6
14710 if test "${ac_cv_type_long_long+set}" = set; then
14711   echo $ECHO_N "(cached) $ECHO_C" >&6
14712 else
14713   cat >conftest.$ac_ext <<_ACEOF
14714 #line $LINENO "configure"
14715 /* confdefs.h.  */
14716 _ACEOF
14717 cat confdefs.h >>conftest.$ac_ext
14718 cat >>conftest.$ac_ext <<_ACEOF
14719 /* end confdefs.h.  */
14720 $ac_includes_default
14721 int
14722 main ()
14723 {
14724 if ((long long *) 0)
14725   return 0;
14726 if (sizeof (long long))
14727   return 0;
14728   ;
14729   return 0;
14730 }
14731 _ACEOF
14732 rm -f conftest.$ac_objext
14733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14734   (eval $ac_compile) 2>&5
14735   ac_status=$?
14736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737   (exit $ac_status); } &&
14738          { ac_try='test -s conftest.$ac_objext'
14739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740   (eval $ac_try) 2>&5
14741   ac_status=$?
14742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743   (exit $ac_status); }; }; then
14744   ac_cv_type_long_long=yes
14745 else
14746   echo "$as_me: failed program was:" >&5
14747 sed 's/^/| /' conftest.$ac_ext >&5
14748
14749 ac_cv_type_long_long=no
14750 fi
14751 rm -f conftest.$ac_objext conftest.$ac_ext
14752 fi
14753 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14754 echo "${ECHO_T}$ac_cv_type_long_long" >&6
14755
14756 echo "$as_me:$LINENO: checking size of long long" >&5
14757 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
14758 if test "${ac_cv_sizeof_long_long+set}" = set; then
14759   echo $ECHO_N "(cached) $ECHO_C" >&6
14760 else
14761   if test "$ac_cv_type_long_long" = yes; then
14762   # The cast to unsigned long works around a bug in the HP C Compiler
14763   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14764   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14765   # This bug is HP SR number 8606223364.
14766   if test "$cross_compiling" = yes; then
14767   # Depending upon the size, compute the lo and hi bounds.
14768 cat >conftest.$ac_ext <<_ACEOF
14769 #line $LINENO "configure"
14770 /* confdefs.h.  */
14771 _ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h.  */
14775 $ac_includes_default
14776 int
14777 main ()
14778 {
14779 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
14780 test_array [0] = 0
14781
14782   ;
14783   return 0;
14784 }
14785 _ACEOF
14786 rm -f conftest.$ac_objext
14787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14788   (eval $ac_compile) 2>&5
14789   ac_status=$?
14790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791   (exit $ac_status); } &&
14792          { ac_try='test -s conftest.$ac_objext'
14793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794   (eval $ac_try) 2>&5
14795   ac_status=$?
14796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); }; }; then
14798   ac_lo=0 ac_mid=0
14799   while :; do
14800     cat >conftest.$ac_ext <<_ACEOF
14801 #line $LINENO "configure"
14802 /* confdefs.h.  */
14803 _ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h.  */
14807 $ac_includes_default
14808 int
14809 main ()
14810 {
14811 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14812 test_array [0] = 0
14813
14814   ;
14815   return 0;
14816 }
14817 _ACEOF
14818 rm -f conftest.$ac_objext
14819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14820   (eval $ac_compile) 2>&5
14821   ac_status=$?
14822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); } &&
14824          { ac_try='test -s conftest.$ac_objext'
14825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826   (eval $ac_try) 2>&5
14827   ac_status=$?
14828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829   (exit $ac_status); }; }; then
14830   ac_hi=$ac_mid; break
14831 else
14832   echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14834
14835 ac_lo=`expr $ac_mid + 1`
14836                     if test $ac_lo -le $ac_mid; then
14837                       ac_lo= ac_hi=
14838                       break
14839                     fi
14840                     ac_mid=`expr 2 '*' $ac_mid + 1`
14841 fi
14842 rm -f conftest.$ac_objext conftest.$ac_ext
14843   done
14844 else
14845   echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14847
14848 cat >conftest.$ac_ext <<_ACEOF
14849 #line $LINENO "configure"
14850 /* confdefs.h.  */
14851 _ACEOF
14852 cat confdefs.h >>conftest.$ac_ext
14853 cat >>conftest.$ac_ext <<_ACEOF
14854 /* end confdefs.h.  */
14855 $ac_includes_default
14856 int
14857 main ()
14858 {
14859 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
14860 test_array [0] = 0
14861
14862   ;
14863   return 0;
14864 }
14865 _ACEOF
14866 rm -f conftest.$ac_objext
14867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14868   (eval $ac_compile) 2>&5
14869   ac_status=$?
14870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871   (exit $ac_status); } &&
14872          { ac_try='test -s conftest.$ac_objext'
14873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874   (eval $ac_try) 2>&5
14875   ac_status=$?
14876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877   (exit $ac_status); }; }; then
14878   ac_hi=-1 ac_mid=-1
14879   while :; do
14880     cat >conftest.$ac_ext <<_ACEOF
14881 #line $LINENO "configure"
14882 /* confdefs.h.  */
14883 _ACEOF
14884 cat confdefs.h >>conftest.$ac_ext
14885 cat >>conftest.$ac_ext <<_ACEOF
14886 /* end confdefs.h.  */
14887 $ac_includes_default
14888 int
14889 main ()
14890 {
14891 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
14892 test_array [0] = 0
14893
14894   ;
14895   return 0;
14896 }
14897 _ACEOF
14898 rm -f conftest.$ac_objext
14899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14900   (eval $ac_compile) 2>&5
14901   ac_status=$?
14902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903   (exit $ac_status); } &&
14904          { ac_try='test -s conftest.$ac_objext'
14905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906   (eval $ac_try) 2>&5
14907   ac_status=$?
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); }; }; then
14910   ac_lo=$ac_mid; break
14911 else
14912   echo "$as_me: failed program was:" >&5
14913 sed 's/^/| /' conftest.$ac_ext >&5
14914
14915 ac_hi=`expr '(' $ac_mid ')' - 1`
14916                        if test $ac_mid -le $ac_hi; then
14917                          ac_lo= ac_hi=
14918                          break
14919                        fi
14920                        ac_mid=`expr 2 '*' $ac_mid`
14921 fi
14922 rm -f conftest.$ac_objext conftest.$ac_ext
14923   done
14924 else
14925   echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14927
14928 ac_lo= ac_hi=
14929 fi
14930 rm -f conftest.$ac_objext conftest.$ac_ext
14931 fi
14932 rm -f conftest.$ac_objext conftest.$ac_ext
14933 # Binary search between lo and hi bounds.
14934 while test "x$ac_lo" != "x$ac_hi"; do
14935   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14936   cat >conftest.$ac_ext <<_ACEOF
14937 #line $LINENO "configure"
14938 /* confdefs.h.  */
14939 _ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h.  */
14943 $ac_includes_default
14944 int
14945 main ()
14946 {
14947 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14948 test_array [0] = 0
14949
14950   ;
14951   return 0;
14952 }
14953 _ACEOF
14954 rm -f conftest.$ac_objext
14955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14956   (eval $ac_compile) 2>&5
14957   ac_status=$?
14958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959   (exit $ac_status); } &&
14960          { ac_try='test -s conftest.$ac_objext'
14961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14962   (eval $ac_try) 2>&5
14963   ac_status=$?
14964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965   (exit $ac_status); }; }; then
14966   ac_hi=$ac_mid
14967 else
14968   echo "$as_me: failed program was:" >&5
14969 sed 's/^/| /' conftest.$ac_ext >&5
14970
14971 ac_lo=`expr '(' $ac_mid ')' + 1`
14972 fi
14973 rm -f conftest.$ac_objext conftest.$ac_ext
14974 done
14975 case $ac_lo in
14976 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14977 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14978 See \`config.log' for more details." >&5
14979 echo "$as_me: error: cannot compute sizeof (long long), 77
14980 See \`config.log' for more details." >&2;}
14981    { (exit 1); exit 1; }; } ;;
14982 esac
14983 else
14984   if test "$cross_compiling" = yes; then
14985   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14986 See \`config.log' for more details." >&5
14987 echo "$as_me: error: cannot run test program while cross compiling
14988 See \`config.log' for more details." >&2;}
14989    { (exit 1); exit 1; }; }
14990 else
14991   cat >conftest.$ac_ext <<_ACEOF
14992 #line $LINENO "configure"
14993 /* confdefs.h.  */
14994 _ACEOF
14995 cat confdefs.h >>conftest.$ac_ext
14996 cat >>conftest.$ac_ext <<_ACEOF
14997 /* end confdefs.h.  */
14998 $ac_includes_default
14999 long longval () { return (long) (sizeof (long long)); }
15000 unsigned long ulongval () { return (long) (sizeof (long long)); }
15001 #include <stdio.h>
15002 #include <stdlib.h>
15003 int
15004 main ()
15005 {
15006
15007   FILE *f = fopen ("conftest.val", "w");
15008   if (! f)
15009     exit (1);
15010   if (((long) (sizeof (long long))) < 0)
15011     {
15012       long i = longval ();
15013       if (i != ((long) (sizeof (long long))))
15014         exit (1);
15015       fprintf (f, "%ld\n", i);
15016     }
15017   else
15018     {
15019       unsigned long i = ulongval ();
15020       if (i != ((long) (sizeof (long long))))
15021         exit (1);
15022       fprintf (f, "%lu\n", i);
15023     }
15024   exit (ferror (f) || fclose (f) != 0);
15025
15026   ;
15027   return 0;
15028 }
15029 _ACEOF
15030 rm -f conftest$ac_exeext
15031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15032   (eval $ac_link) 2>&5
15033   ac_status=$?
15034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037   (eval $ac_try) 2>&5
15038   ac_status=$?
15039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040   (exit $ac_status); }; }; then
15041   ac_cv_sizeof_long_long=`cat conftest.val`
15042 else
15043   echo "$as_me: program exited with status $ac_status" >&5
15044 echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15046
15047 ( exit $ac_status )
15048 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15049 See \`config.log' for more details." >&5
15050 echo "$as_me: error: cannot compute sizeof (long long), 77
15051 See \`config.log' for more details." >&2;}
15052    { (exit 1); exit 1; }; }
15053 fi
15054 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15055 fi
15056 fi
15057 rm -f conftest.val
15058 else
15059   ac_cv_sizeof_long_long=0
15060 fi
15061 fi
15062 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15063 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15064 cat >>confdefs.h <<_ACEOF
15065 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15066 _ACEOF
15067
15068
15069
15070 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
15071 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
15072 if test "${wine_cv_linux_input_h+set}" = set; then
15073   echo $ECHO_N "(cached) $ECHO_C" >&6
15074 else
15075   cat >conftest.$ac_ext <<_ACEOF
15076 #line $LINENO "configure"
15077 /* confdefs.h.  */
15078 _ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h.  */
15082
15083             #include <linux/input.h>
15084
15085 int
15086 main ()
15087 {
15088
15089             int foo = EVIOCGBIT(EV_ABS,42);
15090             int bar = BTN_PINKIE;
15091             int fortytwo = 42;
15092
15093   ;
15094   return 0;
15095 }
15096 _ACEOF
15097 rm -f conftest.$ac_objext
15098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15099   (eval $ac_compile) 2>&5
15100   ac_status=$?
15101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102   (exit $ac_status); } &&
15103          { ac_try='test -s conftest.$ac_objext'
15104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105   (eval $ac_try) 2>&5
15106   ac_status=$?
15107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108   (exit $ac_status); }; }; then
15109   wine_cv_linux_input_h=yes
15110 else
15111   echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15113
15114 wine_cv_linux_input_h=no
15115 fi
15116 rm -f conftest.$ac_objext conftest.$ac_ext
15117
15118 fi
15119 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
15120 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
15121     if test "$wine_cv_linux_input_h" = "yes"
15122     then
15123
15124 cat >>confdefs.h <<\_ACEOF
15125 #define HAVE_CORRECT_LINUXINPUT_H 1
15126 _ACEOF
15127
15128     fi
15129
15130
15131 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15132 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
15133 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
15134   echo $ECHO_N "(cached) $ECHO_C" >&6
15135 else
15136   cat >conftest.$ac_ext <<_ACEOF
15137 #line $LINENO "configure"
15138 /* confdefs.h.  */
15139 _ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h.  */
15143
15144 #include <netdb.h>
15145
15146 int
15147 main ()
15148 {
15149
15150     char *name=NULL;
15151     struct hostent he;
15152     struct hostent *result;
15153     char *buf=NULL;
15154     int bufsize=0;
15155     int res,errnr;
15156     char *addr=NULL;
15157     int addrlen=0;
15158     int addrtype=0;
15159     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15160     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15161
15162   ;
15163   return 0;
15164 }
15165 _ACEOF
15166 rm -f conftest.$ac_objext
15167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15168   (eval $ac_compile) 2>&5
15169   ac_status=$?
15170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); } &&
15172          { ac_try='test -s conftest.$ac_objext'
15173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174   (eval $ac_try) 2>&5
15175   ac_status=$?
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); }; }; then
15178   wine_cv_linux_gethostbyname_r_6=yes
15179 else
15180   echo "$as_me: failed program was:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15182
15183 wine_cv_linux_gethostbyname_r_6=no
15184
15185 fi
15186 rm -f conftest.$ac_objext conftest.$ac_ext
15187
15188 fi
15189 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
15190 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
15191    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15192    then
15193
15194 cat >>confdefs.h <<\_ACEOF
15195 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
15196 _ACEOF
15197
15198    fi
15199
15200 if test "$ac_cv_header_linux_joystick_h" = "yes"
15201 then
15202    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15203 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
15204 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
15205   echo $ECHO_N "(cached) $ECHO_C" >&6
15206 else
15207   cat >conftest.$ac_ext <<_ACEOF
15208 #line $LINENO "configure"
15209 /* confdefs.h.  */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h.  */
15214
15215         #include <sys/ioctl.h>
15216         #include <linux/joystick.h>
15217
15218         struct js_event blub;
15219         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15220         #error "no 2.2 header"
15221         #endif
15222
15223 int
15224 main ()
15225 {
15226 /*empty*/
15227   ;
15228   return 0;
15229 }
15230 _ACEOF
15231 rm -f conftest.$ac_objext
15232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15233   (eval $ac_compile) 2>&5
15234   ac_status=$?
15235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236   (exit $ac_status); } &&
15237          { ac_try='test -s conftest.$ac_objext'
15238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239   (eval $ac_try) 2>&5
15240   ac_status=$?
15241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242   (exit $ac_status); }; }; then
15243   wine_cv_linux_joystick_22_api=yes
15244 else
15245   echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15247
15248 wine_cv_linux_joystick_22_api=no
15249 fi
15250 rm -f conftest.$ac_objext conftest.$ac_ext
15251
15252 fi
15253 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
15254 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
15255    if test "$wine_cv_linux_joystick_22_api" = "yes"
15256    then
15257
15258 cat >>confdefs.h <<\_ACEOF
15259 #define HAVE_LINUX_22_JOYSTICK_API 1
15260 _ACEOF
15261
15262    fi
15263 fi
15264
15265
15266 if test "$ac_cv_header_sys_vfs_h" = "yes"
15267 then
15268     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
15269 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
15270 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
15271   echo $ECHO_N "(cached) $ECHO_C" >&6
15272 else
15273   cat >conftest.$ac_ext <<_ACEOF
15274 #line $LINENO "configure"
15275 /* confdefs.h.  */
15276 _ACEOF
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h.  */
15280
15281         #include <sys/types.h>
15282         #ifdef HAVE_SYS_PARAM_H
15283         # include <sys/param.h>
15284         #endif
15285         #include <sys/vfs.h>
15286
15287 int
15288 main ()
15289 {
15290
15291                 struct statfs stfs;
15292
15293                 memset(&stfs,0,sizeof(stfs));
15294
15295   ;
15296   return 0;
15297 }
15298 _ACEOF
15299 rm -f conftest.$ac_objext
15300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15301   (eval $ac_compile) 2>&5
15302   ac_status=$?
15303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304   (exit $ac_status); } &&
15305          { ac_try='test -s conftest.$ac_objext'
15306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307   (eval $ac_try) 2>&5
15308   ac_status=$?
15309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310   (exit $ac_status); }; }; then
15311   wine_cv_sys_vfs_has_statfs=yes
15312 else
15313   echo "$as_me: failed program was:" >&5
15314 sed 's/^/| /' conftest.$ac_ext >&5
15315
15316 wine_cv_sys_vfs_has_statfs=no
15317
15318 fi
15319 rm -f conftest.$ac_objext conftest.$ac_ext
15320
15321 fi
15322 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
15323 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
15324     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
15325     then
15326
15327 cat >>confdefs.h <<\_ACEOF
15328 #define STATFS_DEFINED_BY_SYS_VFS 1
15329 _ACEOF
15330
15331     fi
15332 fi
15333
15334 if test "$ac_cv_header_sys_statfs_h" = "yes"
15335 then
15336     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
15337 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
15338 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
15339   echo $ECHO_N "(cached) $ECHO_C" >&6
15340 else
15341   cat >conftest.$ac_ext <<_ACEOF
15342 #line $LINENO "configure"
15343 /* confdefs.h.  */
15344 _ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h.  */
15348
15349         #include <sys/types.h>
15350         #ifdef HAVE_SYS_PARAM_H
15351         # include <sys/param.h>
15352         #endif
15353         #include <sys/statfs.h>
15354
15355 int
15356 main ()
15357 {
15358
15359                 struct statfs stfs;
15360
15361   ;
15362   return 0;
15363 }
15364 _ACEOF
15365 rm -f conftest.$ac_objext
15366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15367   (eval $ac_compile) 2>&5
15368   ac_status=$?
15369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370   (exit $ac_status); } &&
15371          { ac_try='test -s conftest.$ac_objext'
15372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15373   (eval $ac_try) 2>&5
15374   ac_status=$?
15375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376   (exit $ac_status); }; }; then
15377   wine_cv_sys_statfs_has_statfs=yes
15378 else
15379   echo "$as_me: failed program was:" >&5
15380 sed 's/^/| /' conftest.$ac_ext >&5
15381
15382 wine_cv_sys_statfs_has_statfs=no
15383
15384 fi
15385 rm -f conftest.$ac_objext conftest.$ac_ext
15386
15387 fi
15388 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
15389 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
15390     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
15391     then
15392
15393 cat >>confdefs.h <<\_ACEOF
15394 #define STATFS_DEFINED_BY_SYS_STATFS 1
15395 _ACEOF
15396
15397     fi
15398 fi
15399
15400 if test "$ac_cv_header_sys_mount_h" = "yes"
15401 then
15402     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
15403 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
15404 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
15405   echo $ECHO_N "(cached) $ECHO_C" >&6
15406 else
15407   cat >conftest.$ac_ext <<_ACEOF
15408 #line $LINENO "configure"
15409 /* confdefs.h.  */
15410 _ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h.  */
15414
15415         #include <sys/types.h>
15416         #ifdef HAVE_SYS_PARAM_H
15417         # include <sys/param.h>
15418         #endif
15419         #include <sys/mount.h>
15420
15421 int
15422 main ()
15423 {
15424
15425                 struct statfs stfs;
15426
15427   ;
15428   return 0;
15429 }
15430 _ACEOF
15431 rm -f conftest.$ac_objext
15432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15433   (eval $ac_compile) 2>&5
15434   ac_status=$?
15435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436   (exit $ac_status); } &&
15437          { ac_try='test -s conftest.$ac_objext'
15438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439   (eval $ac_try) 2>&5
15440   ac_status=$?
15441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); }; }; then
15443   wine_cv_sys_mount_has_statfs=yes
15444 else
15445   echo "$as_me: failed program was:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15447
15448 wine_cv_sys_mount_has_statfs=no
15449
15450 fi
15451 rm -f conftest.$ac_objext conftest.$ac_ext
15452
15453 fi
15454 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
15455 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
15456     if test "$wine_cv_sys_mount_has_statfs" = "yes"
15457     then
15458
15459 cat >>confdefs.h <<\_ACEOF
15460 #define STATFS_DEFINED_BY_SYS_MOUNT 1
15461 _ACEOF
15462
15463     fi
15464 fi
15465
15466
15467 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
15468 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
15469 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
15470   echo $ECHO_N "(cached) $ECHO_C" >&6
15471 else
15472   cat >conftest.$ac_ext <<_ACEOF
15473 #line $LINENO "configure"
15474 /* confdefs.h.  */
15475 _ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h.  */
15479 #include <sys/types.h>
15480 #ifdef HAVE_SYS_PARAM_H
15481 # include <sys/param.h>
15482 #endif
15483 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15484 # include <sys/mount.h>
15485 #else
15486 # ifdef STATFS_DEFINED_BY_SYS_VFS
15487 #  include <sys/vfs.h>
15488 # else
15489 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
15490 #   include <sys/statfs.h>
15491 #  endif
15492 # endif
15493 #endif
15494
15495 int
15496 main ()
15497 {
15498 static struct statfs ac_aggr;
15499 if (ac_aggr.f_bfree)
15500 return 0;
15501   ;
15502   return 0;
15503 }
15504 _ACEOF
15505 rm -f conftest.$ac_objext
15506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15507   (eval $ac_compile) 2>&5
15508   ac_status=$?
15509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510   (exit $ac_status); } &&
15511          { ac_try='test -s conftest.$ac_objext'
15512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513   (eval $ac_try) 2>&5
15514   ac_status=$?
15515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516   (exit $ac_status); }; }; then
15517   ac_cv_member_struct_statfs_f_bfree=yes
15518 else
15519   echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15521
15522 cat >conftest.$ac_ext <<_ACEOF
15523 #line $LINENO "configure"
15524 /* confdefs.h.  */
15525 _ACEOF
15526 cat confdefs.h >>conftest.$ac_ext
15527 cat >>conftest.$ac_ext <<_ACEOF
15528 /* end confdefs.h.  */
15529 #include <sys/types.h>
15530 #ifdef HAVE_SYS_PARAM_H
15531 # include <sys/param.h>
15532 #endif
15533 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15534 # include <sys/mount.h>
15535 #else
15536 # ifdef STATFS_DEFINED_BY_SYS_VFS
15537 #  include <sys/vfs.h>
15538 # else
15539 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
15540 #   include <sys/statfs.h>
15541 #  endif
15542 # endif
15543 #endif
15544
15545 int
15546 main ()
15547 {
15548 static struct statfs ac_aggr;
15549 if (sizeof ac_aggr.f_bfree)
15550 return 0;
15551   ;
15552   return 0;
15553 }
15554 _ACEOF
15555 rm -f conftest.$ac_objext
15556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15557   (eval $ac_compile) 2>&5
15558   ac_status=$?
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   (exit $ac_status); } &&
15561          { ac_try='test -s conftest.$ac_objext'
15562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563   (eval $ac_try) 2>&5
15564   ac_status=$?
15565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566   (exit $ac_status); }; }; then
15567   ac_cv_member_struct_statfs_f_bfree=yes
15568 else
15569   echo "$as_me: failed program was:" >&5
15570 sed 's/^/| /' conftest.$ac_ext >&5
15571
15572 ac_cv_member_struct_statfs_f_bfree=no
15573 fi
15574 rm -f conftest.$ac_objext conftest.$ac_ext
15575 fi
15576 rm -f conftest.$ac_objext conftest.$ac_ext
15577 fi
15578 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
15579 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
15580 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
15581
15582 cat >>confdefs.h <<_ACEOF
15583 #define HAVE_STRUCT_STATFS_F_BFREE 1
15584 _ACEOF
15585
15586
15587 fi
15588 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
15589 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
15590 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
15591   echo $ECHO_N "(cached) $ECHO_C" >&6
15592 else
15593   cat >conftest.$ac_ext <<_ACEOF
15594 #line $LINENO "configure"
15595 /* confdefs.h.  */
15596 _ACEOF
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h.  */
15600 #include <sys/types.h>
15601 #ifdef HAVE_SYS_PARAM_H
15602 # include <sys/param.h>
15603 #endif
15604 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15605 # include <sys/mount.h>
15606 #else
15607 # ifdef STATFS_DEFINED_BY_SYS_VFS
15608 #  include <sys/vfs.h>
15609 # else
15610 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
15611 #   include <sys/statfs.h>
15612 #  endif
15613 # endif
15614 #endif
15615
15616 int
15617 main ()
15618 {
15619 static struct statfs ac_aggr;
15620 if (ac_aggr.f_bavail)
15621 return 0;
15622   ;
15623   return 0;
15624 }
15625 _ACEOF
15626 rm -f conftest.$ac_objext
15627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15628   (eval $ac_compile) 2>&5
15629   ac_status=$?
15630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631   (exit $ac_status); } &&
15632          { ac_try='test -s conftest.$ac_objext'
15633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634   (eval $ac_try) 2>&5
15635   ac_status=$?
15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637   (exit $ac_status); }; }; then
15638   ac_cv_member_struct_statfs_f_bavail=yes
15639 else
15640   echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.$ac_ext >&5
15642
15643 cat >conftest.$ac_ext <<_ACEOF
15644 #line $LINENO "configure"
15645 /* confdefs.h.  */
15646 _ACEOF
15647 cat confdefs.h >>conftest.$ac_ext
15648 cat >>conftest.$ac_ext <<_ACEOF
15649 /* end confdefs.h.  */
15650 #include <sys/types.h>
15651 #ifdef HAVE_SYS_PARAM_H
15652 # include <sys/param.h>
15653 #endif
15654 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15655 # include <sys/mount.h>
15656 #else
15657 # ifdef STATFS_DEFINED_BY_SYS_VFS
15658 #  include <sys/vfs.h>
15659 # else
15660 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
15661 #   include <sys/statfs.h>
15662 #  endif
15663 # endif
15664 #endif
15665
15666 int
15667 main ()
15668 {
15669 static struct statfs ac_aggr;
15670 if (sizeof ac_aggr.f_bavail)
15671 return 0;
15672   ;
15673   return 0;
15674 }
15675 _ACEOF
15676 rm -f conftest.$ac_objext
15677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15678   (eval $ac_compile) 2>&5
15679   ac_status=$?
15680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681   (exit $ac_status); } &&
15682          { ac_try='test -s conftest.$ac_objext'
15683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684   (eval $ac_try) 2>&5
15685   ac_status=$?
15686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687   (exit $ac_status); }; }; then
15688   ac_cv_member_struct_statfs_f_bavail=yes
15689 else
15690   echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15692
15693 ac_cv_member_struct_statfs_f_bavail=no
15694 fi
15695 rm -f conftest.$ac_objext conftest.$ac_ext
15696 fi
15697 rm -f conftest.$ac_objext conftest.$ac_ext
15698 fi
15699 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
15700 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
15701 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
15702
15703 cat >>confdefs.h <<_ACEOF
15704 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
15705 _ACEOF
15706
15707
15708 fi
15709
15710
15711 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
15712 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
15713 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
15714   echo $ECHO_N "(cached) $ECHO_C" >&6
15715 else
15716   cat >conftest.$ac_ext <<_ACEOF
15717 #line $LINENO "configure"
15718 /* confdefs.h.  */
15719 _ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h.  */
15723 #include <sys/types.h>
15724 #ifdef HAVE_SYS_SOCKET_H
15725 # include <sys/socket.h>
15726 #endif
15727 #ifdef HAVE_SYS_UN_H
15728 # include <sys/un.h>
15729 #endif
15730
15731 int
15732 main ()
15733 {
15734 static struct msghdr ac_aggr;
15735 if (ac_aggr.msg_accrights)
15736 return 0;
15737   ;
15738   return 0;
15739 }
15740 _ACEOF
15741 rm -f conftest.$ac_objext
15742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15743   (eval $ac_compile) 2>&5
15744   ac_status=$?
15745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746   (exit $ac_status); } &&
15747          { ac_try='test -s conftest.$ac_objext'
15748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749   (eval $ac_try) 2>&5
15750   ac_status=$?
15751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752   (exit $ac_status); }; }; then
15753   ac_cv_member_struct_msghdr_msg_accrights=yes
15754 else
15755   echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15757
15758 cat >conftest.$ac_ext <<_ACEOF
15759 #line $LINENO "configure"
15760 /* confdefs.h.  */
15761 _ACEOF
15762 cat confdefs.h >>conftest.$ac_ext
15763 cat >>conftest.$ac_ext <<_ACEOF
15764 /* end confdefs.h.  */
15765 #include <sys/types.h>
15766 #ifdef HAVE_SYS_SOCKET_H
15767 # include <sys/socket.h>
15768 #endif
15769 #ifdef HAVE_SYS_UN_H
15770 # include <sys/un.h>
15771 #endif
15772
15773 int
15774 main ()
15775 {
15776 static struct msghdr ac_aggr;
15777 if (sizeof ac_aggr.msg_accrights)
15778 return 0;
15779   ;
15780   return 0;
15781 }
15782 _ACEOF
15783 rm -f conftest.$ac_objext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15785   (eval $ac_compile) 2>&5
15786   ac_status=$?
15787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788   (exit $ac_status); } &&
15789          { ac_try='test -s conftest.$ac_objext'
15790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791   (eval $ac_try) 2>&5
15792   ac_status=$?
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); }; }; then
15795   ac_cv_member_struct_msghdr_msg_accrights=yes
15796 else
15797   echo "$as_me: failed program was:" >&5
15798 sed 's/^/| /' conftest.$ac_ext >&5
15799
15800 ac_cv_member_struct_msghdr_msg_accrights=no
15801 fi
15802 rm -f conftest.$ac_objext conftest.$ac_ext
15803 fi
15804 rm -f conftest.$ac_objext conftest.$ac_ext
15805 fi
15806 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
15807 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
15808 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
15809
15810 cat >>confdefs.h <<_ACEOF
15811 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
15812 _ACEOF
15813
15814
15815 fi
15816 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15817 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
15818 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15819   echo $ECHO_N "(cached) $ECHO_C" >&6
15820 else
15821   cat >conftest.$ac_ext <<_ACEOF
15822 #line $LINENO "configure"
15823 /* confdefs.h.  */
15824 _ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h.  */
15828 #include <sys/types.h>
15829 #ifdef HAVE_SYS_SOCKET_H
15830 # include <sys/socket.h>
15831 #endif
15832 #ifdef HAVE_SYS_UN_H
15833 # include <sys/un.h>
15834 #endif
15835
15836 int
15837 main ()
15838 {
15839 static struct sockaddr ac_aggr;
15840 if (ac_aggr.sa_len)
15841 return 0;
15842   ;
15843   return 0;
15844 }
15845 _ACEOF
15846 rm -f conftest.$ac_objext
15847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15848   (eval $ac_compile) 2>&5
15849   ac_status=$?
15850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851   (exit $ac_status); } &&
15852          { ac_try='test -s conftest.$ac_objext'
15853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854   (eval $ac_try) 2>&5
15855   ac_status=$?
15856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857   (exit $ac_status); }; }; then
15858   ac_cv_member_struct_sockaddr_sa_len=yes
15859 else
15860   echo "$as_me: failed program was:" >&5
15861 sed 's/^/| /' conftest.$ac_ext >&5
15862
15863 cat >conftest.$ac_ext <<_ACEOF
15864 #line $LINENO "configure"
15865 /* confdefs.h.  */
15866 _ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h.  */
15870 #include <sys/types.h>
15871 #ifdef HAVE_SYS_SOCKET_H
15872 # include <sys/socket.h>
15873 #endif
15874 #ifdef HAVE_SYS_UN_H
15875 # include <sys/un.h>
15876 #endif
15877
15878 int
15879 main ()
15880 {
15881 static struct sockaddr ac_aggr;
15882 if (sizeof ac_aggr.sa_len)
15883 return 0;
15884   ;
15885   return 0;
15886 }
15887 _ACEOF
15888 rm -f conftest.$ac_objext
15889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15890   (eval $ac_compile) 2>&5
15891   ac_status=$?
15892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893   (exit $ac_status); } &&
15894          { ac_try='test -s conftest.$ac_objext'
15895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896   (eval $ac_try) 2>&5
15897   ac_status=$?
15898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899   (exit $ac_status); }; }; then
15900   ac_cv_member_struct_sockaddr_sa_len=yes
15901 else
15902   echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15904
15905 ac_cv_member_struct_sockaddr_sa_len=no
15906 fi
15907 rm -f conftest.$ac_objext conftest.$ac_ext
15908 fi
15909 rm -f conftest.$ac_objext conftest.$ac_ext
15910 fi
15911 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15912 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
15913 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
15914
15915 cat >>confdefs.h <<_ACEOF
15916 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15917 _ACEOF
15918
15919
15920 fi
15921 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
15922 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
15923 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
15924   echo $ECHO_N "(cached) $ECHO_C" >&6
15925 else
15926   cat >conftest.$ac_ext <<_ACEOF
15927 #line $LINENO "configure"
15928 /* confdefs.h.  */
15929 _ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h.  */
15933 #include <sys/types.h>
15934 #ifdef HAVE_SYS_SOCKET_H
15935 # include <sys/socket.h>
15936 #endif
15937 #ifdef HAVE_SYS_UN_H
15938 # include <sys/un.h>
15939 #endif
15940
15941 int
15942 main ()
15943 {
15944 static struct sockaddr_un ac_aggr;
15945 if (ac_aggr.sun_len)
15946 return 0;
15947   ;
15948   return 0;
15949 }
15950 _ACEOF
15951 rm -f conftest.$ac_objext
15952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15953   (eval $ac_compile) 2>&5
15954   ac_status=$?
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); } &&
15957          { ac_try='test -s conftest.$ac_objext'
15958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15959   (eval $ac_try) 2>&5
15960   ac_status=$?
15961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962   (exit $ac_status); }; }; then
15963   ac_cv_member_struct_sockaddr_un_sun_len=yes
15964 else
15965   echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15967
15968 cat >conftest.$ac_ext <<_ACEOF
15969 #line $LINENO "configure"
15970 /* confdefs.h.  */
15971 _ACEOF
15972 cat confdefs.h >>conftest.$ac_ext
15973 cat >>conftest.$ac_ext <<_ACEOF
15974 /* end confdefs.h.  */
15975 #include <sys/types.h>
15976 #ifdef HAVE_SYS_SOCKET_H
15977 # include <sys/socket.h>
15978 #endif
15979 #ifdef HAVE_SYS_UN_H
15980 # include <sys/un.h>
15981 #endif
15982
15983 int
15984 main ()
15985 {
15986 static struct sockaddr_un ac_aggr;
15987 if (sizeof ac_aggr.sun_len)
15988 return 0;
15989   ;
15990   return 0;
15991 }
15992 _ACEOF
15993 rm -f conftest.$ac_objext
15994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15995   (eval $ac_compile) 2>&5
15996   ac_status=$?
15997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998   (exit $ac_status); } &&
15999          { ac_try='test -s conftest.$ac_objext'
16000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16001   (eval $ac_try) 2>&5
16002   ac_status=$?
16003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004   (exit $ac_status); }; }; then
16005   ac_cv_member_struct_sockaddr_un_sun_len=yes
16006 else
16007   echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16009
16010 ac_cv_member_struct_sockaddr_un_sun_len=no
16011 fi
16012 rm -f conftest.$ac_objext conftest.$ac_ext
16013 fi
16014 rm -f conftest.$ac_objext conftest.$ac_ext
16015 fi
16016 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
16017 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
16018 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
16019
16020 cat >>confdefs.h <<_ACEOF
16021 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
16022 _ACEOF
16023
16024
16025 fi
16026
16027
16028 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
16029 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
16030 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
16031   echo $ECHO_N "(cached) $ECHO_C" >&6
16032 else
16033   cat >conftest.$ac_ext <<_ACEOF
16034 #line $LINENO "configure"
16035 /* confdefs.h.  */
16036 _ACEOF
16037 cat confdefs.h >>conftest.$ac_ext
16038 cat >>conftest.$ac_ext <<_ACEOF
16039 /* end confdefs.h.  */
16040 #include <signal.h>
16041
16042 int
16043 main ()
16044 {
16045 static siginfo_t ac_aggr;
16046 if (ac_aggr.si_fd)
16047 return 0;
16048   ;
16049   return 0;
16050 }
16051 _ACEOF
16052 rm -f conftest.$ac_objext
16053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16054   (eval $ac_compile) 2>&5
16055   ac_status=$?
16056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   (exit $ac_status); } &&
16058          { ac_try='test -s conftest.$ac_objext'
16059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16060   (eval $ac_try) 2>&5
16061   ac_status=$?
16062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063   (exit $ac_status); }; }; then
16064   ac_cv_member_siginfo_t_si_fd=yes
16065 else
16066   echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16068
16069 cat >conftest.$ac_ext <<_ACEOF
16070 #line $LINENO "configure"
16071 /* confdefs.h.  */
16072 _ACEOF
16073 cat confdefs.h >>conftest.$ac_ext
16074 cat >>conftest.$ac_ext <<_ACEOF
16075 /* end confdefs.h.  */
16076 #include <signal.h>
16077
16078 int
16079 main ()
16080 {
16081 static siginfo_t ac_aggr;
16082 if (sizeof ac_aggr.si_fd)
16083 return 0;
16084   ;
16085   return 0;
16086 }
16087 _ACEOF
16088 rm -f conftest.$ac_objext
16089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16090   (eval $ac_compile) 2>&5
16091   ac_status=$?
16092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093   (exit $ac_status); } &&
16094          { ac_try='test -s conftest.$ac_objext'
16095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096   (eval $ac_try) 2>&5
16097   ac_status=$?
16098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099   (exit $ac_status); }; }; then
16100   ac_cv_member_siginfo_t_si_fd=yes
16101 else
16102   echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16104
16105 ac_cv_member_siginfo_t_si_fd=no
16106 fi
16107 rm -f conftest.$ac_objext conftest.$ac_ext
16108 fi
16109 rm -f conftest.$ac_objext conftest.$ac_ext
16110 fi
16111 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
16112 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
16113 if test $ac_cv_member_siginfo_t_si_fd = yes; then
16114
16115 cat >>confdefs.h <<_ACEOF
16116 #define HAVE_SIGINFO_T_SI_FD 1
16117 _ACEOF
16118
16119
16120 fi
16121
16122
16123 echo "$as_me:$LINENO: checking for struct option.name" >&5
16124 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
16125 if test "${ac_cv_member_struct_option_name+set}" = set; then
16126   echo $ECHO_N "(cached) $ECHO_C" >&6
16127 else
16128   cat >conftest.$ac_ext <<_ACEOF
16129 #line $LINENO "configure"
16130 /* confdefs.h.  */
16131 _ACEOF
16132 cat confdefs.h >>conftest.$ac_ext
16133 cat >>conftest.$ac_ext <<_ACEOF
16134 /* end confdefs.h.  */
16135 #ifdef HAVE_GETOPT_H
16136 #include <getopt.h>
16137 #endif
16138
16139 int
16140 main ()
16141 {
16142 static struct option ac_aggr;
16143 if (ac_aggr.name)
16144 return 0;
16145   ;
16146   return 0;
16147 }
16148 _ACEOF
16149 rm -f conftest.$ac_objext
16150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16151   (eval $ac_compile) 2>&5
16152   ac_status=$?
16153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154   (exit $ac_status); } &&
16155          { ac_try='test -s conftest.$ac_objext'
16156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157   (eval $ac_try) 2>&5
16158   ac_status=$?
16159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160   (exit $ac_status); }; }; then
16161   ac_cv_member_struct_option_name=yes
16162 else
16163   echo "$as_me: failed program was:" >&5
16164 sed 's/^/| /' conftest.$ac_ext >&5
16165
16166 cat >conftest.$ac_ext <<_ACEOF
16167 #line $LINENO "configure"
16168 /* confdefs.h.  */
16169 _ACEOF
16170 cat confdefs.h >>conftest.$ac_ext
16171 cat >>conftest.$ac_ext <<_ACEOF
16172 /* end confdefs.h.  */
16173 #ifdef HAVE_GETOPT_H
16174 #include <getopt.h>
16175 #endif
16176
16177 int
16178 main ()
16179 {
16180 static struct option ac_aggr;
16181 if (sizeof ac_aggr.name)
16182 return 0;
16183   ;
16184   return 0;
16185 }
16186 _ACEOF
16187 rm -f conftest.$ac_objext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16189   (eval $ac_compile) 2>&5
16190   ac_status=$?
16191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); } &&
16193          { ac_try='test -s conftest.$ac_objext'
16194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195   (eval $ac_try) 2>&5
16196   ac_status=$?
16197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198   (exit $ac_status); }; }; then
16199   ac_cv_member_struct_option_name=yes
16200 else
16201   echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16203
16204 ac_cv_member_struct_option_name=no
16205 fi
16206 rm -f conftest.$ac_objext conftest.$ac_ext
16207 fi
16208 rm -f conftest.$ac_objext conftest.$ac_ext
16209 fi
16210 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
16211 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
16212 if test $ac_cv_member_struct_option_name = yes; then
16213
16214 cat >>confdefs.h <<_ACEOF
16215 #define HAVE_STRUCT_OPTION_NAME 1
16216 _ACEOF
16217
16218
16219 fi
16220
16221
16222
16223 case $host_cpu in
16224   *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
16225 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
16226 if test "${ac_cv_cpp_def___i386__+set}" = set; then
16227   echo $ECHO_N "(cached) $ECHO_C" >&6
16228 else
16229   cat >conftest.$ac_ext <<_ACEOF
16230 #line $LINENO "configure"
16231 /* confdefs.h.  */
16232 _ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h.  */
16236 #ifndef __i386__
16237 yes
16238 #endif
16239 _ACEOF
16240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16241   $EGREP "yes" >/dev/null 2>&1; then
16242   ac_cv_cpp_def___i386__=yes
16243 else
16244   ac_cv_cpp_def___i386__=no
16245 fi
16246 rm -f conftest*
16247
16248 fi
16249 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
16250 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
16251 if test $ac_cv_cpp_def___i386__ = yes; then
16252   CFLAGS="$CFLAGS -D__i386__"
16253   LINTFLAGS="$LINTFLAGS -D__i386__"
16254 fi
16255  ;;
16256   *alpha*)          echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
16257 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
16258 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
16259   echo $ECHO_N "(cached) $ECHO_C" >&6
16260 else
16261   cat >conftest.$ac_ext <<_ACEOF
16262 #line $LINENO "configure"
16263 /* confdefs.h.  */
16264 _ACEOF
16265 cat confdefs.h >>conftest.$ac_ext
16266 cat >>conftest.$ac_ext <<_ACEOF
16267 /* end confdefs.h.  */
16268 #ifndef __ALPHA__
16269 yes
16270 #endif
16271 _ACEOF
16272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16273   $EGREP "yes" >/dev/null 2>&1; then
16274   ac_cv_cpp_def___ALPHA__=yes
16275 else
16276   ac_cv_cpp_def___ALPHA__=no
16277 fi
16278 rm -f conftest*
16279
16280 fi
16281 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
16282 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
16283 if test $ac_cv_cpp_def___ALPHA__ = yes; then
16284   CFLAGS="$CFLAGS -D__ALPHA__"
16285   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
16286 fi
16287  ;;
16288   *sparc*)          echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
16289 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
16290 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
16291   echo $ECHO_N "(cached) $ECHO_C" >&6
16292 else
16293   cat >conftest.$ac_ext <<_ACEOF
16294 #line $LINENO "configure"
16295 /* confdefs.h.  */
16296 _ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h.  */
16300 #ifndef __sparc__
16301 yes
16302 #endif
16303 _ACEOF
16304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16305   $EGREP "yes" >/dev/null 2>&1; then
16306   ac_cv_cpp_def___sparc__=yes
16307 else
16308   ac_cv_cpp_def___sparc__=no
16309 fi
16310 rm -f conftest*
16311
16312 fi
16313 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
16314 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
16315 if test $ac_cv_cpp_def___sparc__ = yes; then
16316   CFLAGS="$CFLAGS -D__sparc__"
16317   LINTFLAGS="$LINTFLAGS -D__sparc__"
16318 fi
16319  ;;
16320   *powerpc*)        echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
16321 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
16322 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
16323   echo $ECHO_N "(cached) $ECHO_C" >&6
16324 else
16325   cat >conftest.$ac_ext <<_ACEOF
16326 #line $LINENO "configure"
16327 /* confdefs.h.  */
16328 _ACEOF
16329 cat confdefs.h >>conftest.$ac_ext
16330 cat >>conftest.$ac_ext <<_ACEOF
16331 /* end confdefs.h.  */
16332 #ifndef __powerpc__
16333 yes
16334 #endif
16335 _ACEOF
16336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16337   $EGREP "yes" >/dev/null 2>&1; then
16338   ac_cv_cpp_def___powerpc__=yes
16339 else
16340   ac_cv_cpp_def___powerpc__=no
16341 fi
16342 rm -f conftest*
16343
16344 fi
16345 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
16346 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
16347 if test $ac_cv_cpp_def___powerpc__ = yes; then
16348   CFLAGS="$CFLAGS -D__powerpc__"
16349   LINTFLAGS="$LINTFLAGS -D__powerpc__"
16350 fi
16351  ;;
16352 esac
16353
16354 case $host_vendor in
16355   *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
16356 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
16357 if test "${ac_cv_cpp_def___sun__+set}" = set; then
16358   echo $ECHO_N "(cached) $ECHO_C" >&6
16359 else
16360   cat >conftest.$ac_ext <<_ACEOF
16361 #line $LINENO "configure"
16362 /* confdefs.h.  */
16363 _ACEOF
16364 cat confdefs.h >>conftest.$ac_ext
16365 cat >>conftest.$ac_ext <<_ACEOF
16366 /* end confdefs.h.  */
16367 #ifndef __sun__
16368 yes
16369 #endif
16370 _ACEOF
16371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16372   $EGREP "yes" >/dev/null 2>&1; then
16373   ac_cv_cpp_def___sun__=yes
16374 else
16375   ac_cv_cpp_def___sun__=no
16376 fi
16377 rm -f conftest*
16378
16379 fi
16380 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
16381 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
16382 if test $ac_cv_cpp_def___sun__ = yes; then
16383   CFLAGS="$CFLAGS -D__sun__"
16384   LINTFLAGS="$LINTFLAGS -D__sun__"
16385 fi
16386  ;;
16387 esac
16388
16389
16390
16391
16392
16393           ac_config_commands="$ac_config_commands controls"
16394
16395           ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
16396
16397           ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
16398
16399           ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
16400
16401           ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
16402
16403           ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
16404
16405           ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
16406
16407           ac_config_commands="$ac_config_commands dlls/dinput/joystick"
16408
16409           ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
16410
16411           ac_config_commands="$ac_config_commands dlls/dinput/mouse"
16412
16413           ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
16414
16415           ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
16416
16417           ac_config_commands="$ac_config_commands dlls/kernel/messages"
16418
16419           ac_config_commands="$ac_config_commands dlls/user/dde"
16420
16421           ac_config_commands="$ac_config_commands dlls/user/resources"
16422
16423           ac_config_commands="$ac_config_commands dlls/wineps/data"
16424
16425           ac_config_commands="$ac_config_commands files"
16426
16427           ac_config_commands="$ac_config_commands graphics"
16428
16429           ac_config_commands="$ac_config_commands graphics/x11drv"
16430
16431           ac_config_commands="$ac_config_commands if1632"
16432
16433           ac_config_commands="$ac_config_commands include/wine"
16434
16435           ac_config_commands="$ac_config_commands loader"
16436
16437           ac_config_commands="$ac_config_commands loader/ne"
16438
16439           ac_config_commands="$ac_config_commands memory"
16440
16441           ac_config_commands="$ac_config_commands misc"
16442
16443           ac_config_commands="$ac_config_commands msdos"
16444
16445           ac_config_commands="$ac_config_commands objects"
16446
16447           ac_config_commands="$ac_config_commands programs/regapi/tests"
16448
16449           ac_config_commands="$ac_config_commands programs/regedit/tests"
16450
16451           ac_config_commands="$ac_config_commands relay32"
16452
16453           ac_config_commands="$ac_config_commands scheduler"
16454
16455           ac_config_commands="$ac_config_commands win32"
16456
16457           ac_config_commands="$ac_config_commands windows"
16458
16459
16460 MAKE_RULES=Make.rules
16461
16462
16463 MAKE_DLL_RULES=dlls/Makedll.rules
16464
16465
16466 MAKE_TEST_RULES=dlls/Maketest.rules
16467
16468
16469 MAKE_LIB_RULES=libs/Makelib.rules
16470
16471
16472 MAKE_PROG_RULES=programs/Makeprog.rules
16473
16474
16475                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             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/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/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/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 miscemu/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/wmc/Makefile tools/wrc/Makefile"
16476
16477
16478 cat >confcache <<\_ACEOF
16479 # This file is a shell script that caches the results of configure
16480 # tests run on this system so they can be shared between configure
16481 # scripts and configure runs, see configure's option --config-cache.
16482 # It is not useful on other systems.  If it contains results you don't
16483 # want to keep, you may remove or edit it.
16484 #
16485 # config.status only pays attention to the cache file if you give it
16486 # the --recheck option to rerun configure.
16487 #
16488 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16489 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16490 # following values.
16491
16492 _ACEOF
16493
16494 # The following way of writing the cache mishandles newlines in values,
16495 # but we know of no workaround that is simple, portable, and efficient.
16496 # So, don't put newlines in cache variables' values.
16497 # Ultrix sh set writes to stderr and can't be redirected directly,
16498 # and sets the high bit in the cache file unless we assign to the vars.
16499 {
16500   (set) 2>&1 |
16501     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16502     *ac_space=\ *)
16503       # `set' does not quote correctly, so add quotes (double-quote
16504       # substitution turns \\\\ into \\, and sed turns \\ into \).
16505       sed -n \
16506         "s/'/'\\\\''/g;
16507           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16508       ;;
16509     *)
16510       # `set' quotes correctly as required by POSIX, so do not add quotes.
16511       sed -n \
16512         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16513       ;;
16514     esac;
16515 } |
16516   sed '
16517      t clear
16518      : clear
16519      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16520      t end
16521      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16522      : end' >>confcache
16523 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16524   if test -w $cache_file; then
16525     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16526     cat confcache >$cache_file
16527   else
16528     echo "not updating unwritable cache $cache_file"
16529   fi
16530 fi
16531 rm -f confcache
16532
16533 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16534 # Let make expand exec_prefix.
16535 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16536
16537 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16538 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16539 # trailing colons and then remove the whole line if VPATH becomes empty
16540 # (actually we leave an empty line to preserve line numbers).
16541 if test "x$srcdir" = x.; then
16542   ac_vpsub='/^[         ]*VPATH[        ]*=/{
16543 s/:*\$(srcdir):*/:/;
16544 s/:*\${srcdir}:*/:/;
16545 s/:*@srcdir@:*/:/;
16546 s/^\([^=]*=[    ]*\):*/\1/;
16547 s/:*$//;
16548 s/^[^=]*=[      ]*$//;
16549 }'
16550 fi
16551
16552 DEFS=-DHAVE_CONFIG_H
16553
16554 ac_libobjs=
16555 ac_ltlibobjs=
16556 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16557   # 1. Remove the extension, and $U if already installed.
16558   ac_i=`echo "$ac_i" |
16559          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16560   # 2. Add them.
16561   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16562   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16563 done
16564 LIBOBJS=$ac_libobjs
16565
16566 LTLIBOBJS=$ac_ltlibobjs
16567
16568
16569
16570 : ${CONFIG_STATUS=./config.status}
16571 ac_clean_files_save=$ac_clean_files
16572 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16573 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16574 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16575 cat >$CONFIG_STATUS <<_ACEOF
16576 #! $SHELL
16577 # Generated by $as_me.
16578 # Run this file to recreate the current configuration.
16579 # Compiler output produced by configure, useful for debugging
16580 # configure, is in config.log if it exists.
16581
16582 debug=false
16583 ac_cs_recheck=false
16584 ac_cs_silent=false
16585 SHELL=\${CONFIG_SHELL-$SHELL}
16586 _ACEOF
16587
16588 cat >>$CONFIG_STATUS <<\_ACEOF
16589 ## --------------------- ##
16590 ## M4sh Initialization.  ##
16591 ## --------------------- ##
16592
16593 # Be Bourne compatible
16594 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16595   emulate sh
16596   NULLCMD=:
16597   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16598   # is contrary to our usage.  Disable this feature.
16599   alias -g '${1+"$@"}'='"$@"'
16600 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16601   set -o posix
16602 fi
16603
16604 # Support unset when possible.
16605 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16606   as_unset=unset
16607 else
16608   as_unset=false
16609 fi
16610
16611
16612 # Work around bugs in pre-3.0 UWIN ksh.
16613 $as_unset ENV MAIL MAILPATH
16614 PS1='$ '
16615 PS2='> '
16616 PS4='+ '
16617
16618 # NLS nuisances.
16619 for as_var in \
16620   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16621   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16622   LC_TELEPHONE LC_TIME
16623 do
16624   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
16625     eval $as_var=C; export $as_var
16626   else
16627     $as_unset $as_var
16628   fi
16629 done
16630
16631 # Required to use basename.
16632 if expr a : '\(a\)' >/dev/null 2>&1; then
16633   as_expr=expr
16634 else
16635   as_expr=false
16636 fi
16637
16638 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16639   as_basename=basename
16640 else
16641   as_basename=false
16642 fi
16643
16644
16645 # Name of the executable.
16646 as_me=`$as_basename "$0" ||
16647 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16648          X"$0" : 'X\(//\)$' \| \
16649          X"$0" : 'X\(/\)$' \| \
16650          .     : '\(.\)' 2>/dev/null ||
16651 echo X/"$0" |
16652     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16653           /^X\/\(\/\/\)$/{ s//\1/; q; }
16654           /^X\/\(\/\).*/{ s//\1/; q; }
16655           s/.*/./; q'`
16656
16657
16658 # PATH needs CR, and LINENO needs CR and PATH.
16659 # Avoid depending upon Character Ranges.
16660 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16661 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16662 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16663 as_cr_digits='0123456789'
16664 as_cr_alnum=$as_cr_Letters$as_cr_digits
16665
16666 # The user is always right.
16667 if test "${PATH_SEPARATOR+set}" != set; then
16668   echo "#! /bin/sh" >conf$$.sh
16669   echo  "exit 0"   >>conf$$.sh
16670   chmod +x conf$$.sh
16671   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16672     PATH_SEPARATOR=';'
16673   else
16674     PATH_SEPARATOR=:
16675   fi
16676   rm -f conf$$.sh
16677 fi
16678
16679
16680   as_lineno_1=$LINENO
16681   as_lineno_2=$LINENO
16682   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16683   test "x$as_lineno_1" != "x$as_lineno_2" &&
16684   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16685   # Find who we are.  Look in the path if we contain no path at all
16686   # relative or not.
16687   case $0 in
16688     *[\\/]* ) as_myself=$0 ;;
16689     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16690 for as_dir in $PATH
16691 do
16692   IFS=$as_save_IFS
16693   test -z "$as_dir" && as_dir=.
16694   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16695 done
16696
16697        ;;
16698   esac
16699   # We did not find ourselves, most probably we were run as `sh COMMAND'
16700   # in which case we are not to be found in the path.
16701   if test "x$as_myself" = x; then
16702     as_myself=$0
16703   fi
16704   if test ! -f "$as_myself"; then
16705     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16706 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16707    { (exit 1); exit 1; }; }
16708   fi
16709   case $CONFIG_SHELL in
16710   '')
16711     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16712 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16713 do
16714   IFS=$as_save_IFS
16715   test -z "$as_dir" && as_dir=.
16716   for as_base in sh bash ksh sh5; do
16717          case $as_dir in
16718          /*)
16719            if ("$as_dir/$as_base" -c '
16720   as_lineno_1=$LINENO
16721   as_lineno_2=$LINENO
16722   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16723   test "x$as_lineno_1" != "x$as_lineno_2" &&
16724   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16725              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16726              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16727              CONFIG_SHELL=$as_dir/$as_base
16728              export CONFIG_SHELL
16729              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16730            fi;;
16731          esac
16732        done
16733 done
16734 ;;
16735   esac
16736
16737   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16738   # uniformly replaced by the line number.  The first 'sed' inserts a
16739   # line-number line before each line; the second 'sed' does the real
16740   # work.  The second script uses 'N' to pair each line-number line
16741   # with the numbered line, and appends trailing '-' during
16742   # substitution so that $LINENO is not a special case at line end.
16743   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16744   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16745   sed '=' <$as_myself |
16746     sed '
16747       N
16748       s,$,-,
16749       : loop
16750       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16751       t loop
16752       s,-$,,
16753       s,^['$as_cr_digits']*\n,,
16754     ' >$as_me.lineno &&
16755   chmod +x $as_me.lineno ||
16756     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16757 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16758    { (exit 1); exit 1; }; }
16759
16760   # Don't try to exec as it changes $[0], causing all sort of problems
16761   # (the dirname of $[0] is not the place where we might find the
16762   # original and so on.  Autoconf is especially sensible to this).
16763   . ./$as_me.lineno
16764   # Exit status is that of the last command.
16765   exit
16766 }
16767
16768
16769 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16770   *c*,-n*) ECHO_N= ECHO_C='
16771 ' ECHO_T='      ' ;;
16772   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16773   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16774 esac
16775
16776 if expr a : '\(a\)' >/dev/null 2>&1; then
16777   as_expr=expr
16778 else
16779   as_expr=false
16780 fi
16781
16782 rm -f conf$$ conf$$.exe conf$$.file
16783 echo >conf$$.file
16784 if ln -s conf$$.file conf$$ 2>/dev/null; then
16785   # We could just check for DJGPP; but this test a) works b) is more generic
16786   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16787   if test -f conf$$.exe; then
16788     # Don't use ln at all; we don't have any links
16789     as_ln_s='cp -p'
16790   else
16791     as_ln_s='ln -s'
16792   fi
16793 elif ln conf$$.file conf$$ 2>/dev/null; then
16794   as_ln_s=ln
16795 else
16796   as_ln_s='cp -p'
16797 fi
16798 rm -f conf$$ conf$$.exe conf$$.file
16799
16800 if mkdir -p . 2>/dev/null; then
16801   as_mkdir_p=:
16802 else
16803   as_mkdir_p=false
16804 fi
16805
16806 as_executable_p="test -f"
16807
16808 # Sed expression to map a string onto a valid CPP name.
16809 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16810
16811 # Sed expression to map a string onto a valid variable name.
16812 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16813
16814
16815 # IFS
16816 # We need space, tab and new line, in precisely that order.
16817 as_nl='
16818 '
16819 IFS="   $as_nl"
16820
16821 # CDPATH.
16822 $as_unset CDPATH
16823
16824 exec 6>&1
16825
16826 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16827 # report actual input values of CONFIG_FILES etc. instead of their
16828 # values after options handling.  Logging --version etc. is OK.
16829 exec 5>>config.log
16830 {
16831   echo
16832   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16833 ## Running $as_me. ##
16834 _ASBOX
16835 } >&5
16836 cat >&5 <<_CSEOF
16837
16838 This file was extended by Wine $as_me 20030813, which was
16839 generated by GNU Autoconf 2.57.  Invocation command line was
16840
16841   CONFIG_FILES    = $CONFIG_FILES
16842   CONFIG_HEADERS  = $CONFIG_HEADERS
16843   CONFIG_LINKS    = $CONFIG_LINKS
16844   CONFIG_COMMANDS = $CONFIG_COMMANDS
16845   $ $0 $@
16846
16847 _CSEOF
16848 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16849 echo >&5
16850 _ACEOF
16851
16852 # Files that config.status was made for.
16853 if test -n "$ac_config_files"; then
16854   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16855 fi
16856
16857 if test -n "$ac_config_headers"; then
16858   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16859 fi
16860
16861 if test -n "$ac_config_links"; then
16862   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16863 fi
16864
16865 if test -n "$ac_config_commands"; then
16866   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16867 fi
16868
16869 cat >>$CONFIG_STATUS <<\_ACEOF
16870
16871 ac_cs_usage="\
16872 \`$as_me' instantiates files from templates according to the
16873 current configuration.
16874
16875 Usage: $0 [OPTIONS] [FILE]...
16876
16877   -h, --help       print this help, then exit
16878   -V, --version    print version number, then exit
16879   -q, --quiet      do not print progress messages
16880   -d, --debug      don't remove temporary files
16881       --recheck    update $as_me by reconfiguring in the same conditions
16882   --file=FILE[:TEMPLATE]
16883                    instantiate the configuration file FILE
16884   --header=FILE[:TEMPLATE]
16885                    instantiate the configuration header FILE
16886
16887 Configuration files:
16888 $config_files
16889
16890 Configuration headers:
16891 $config_headers
16892
16893 Configuration commands:
16894 $config_commands
16895
16896 Report bugs to <bug-autoconf@gnu.org>."
16897 _ACEOF
16898
16899 cat >>$CONFIG_STATUS <<_ACEOF
16900 ac_cs_version="\\
16901 Wine config.status 20030813
16902 configured by $0, generated by GNU Autoconf 2.57,
16903   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16904
16905 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16906 Free Software Foundation, Inc.
16907 This config.status script is free software; the Free Software Foundation
16908 gives unlimited permission to copy, distribute and modify it."
16909 srcdir=$srcdir
16910 INSTALL="$INSTALL"
16911 _ACEOF
16912
16913 cat >>$CONFIG_STATUS <<\_ACEOF
16914 # If no file are specified by the user, then we need to provide default
16915 # value.  By we need to know if files were specified by the user.
16916 ac_need_defaults=:
16917 while test $# != 0
16918 do
16919   case $1 in
16920   --*=*)
16921     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16922     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16923     ac_shift=:
16924     ;;
16925   -*)
16926     ac_option=$1
16927     ac_optarg=$2
16928     ac_shift=shift
16929     ;;
16930   *) # This is not an option, so the user has probably given explicit
16931      # arguments.
16932      ac_option=$1
16933      ac_need_defaults=false;;
16934   esac
16935
16936   case $ac_option in
16937   # Handling of the options.
16938 _ACEOF
16939 cat >>$CONFIG_STATUS <<\_ACEOF
16940   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16941     ac_cs_recheck=: ;;
16942   --version | --vers* | -V )
16943     echo "$ac_cs_version"; exit 0 ;;
16944   --he | --h)
16945     # Conflict between --help and --header
16946     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16947 Try \`$0 --help' for more information." >&5
16948 echo "$as_me: error: ambiguous option: $1
16949 Try \`$0 --help' for more information." >&2;}
16950    { (exit 1); exit 1; }; };;
16951   --help | --hel | -h )
16952     echo "$ac_cs_usage"; exit 0 ;;
16953   --debug | --d* | -d )
16954     debug=: ;;
16955   --file | --fil | --fi | --f )
16956     $ac_shift
16957     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16958     ac_need_defaults=false;;
16959   --header | --heade | --head | --hea )
16960     $ac_shift
16961     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16962     ac_need_defaults=false;;
16963   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16964   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16965     ac_cs_silent=: ;;
16966
16967   # This is an error.
16968   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16969 Try \`$0 --help' for more information." >&5
16970 echo "$as_me: error: unrecognized option: $1
16971 Try \`$0 --help' for more information." >&2;}
16972    { (exit 1); exit 1; }; } ;;
16973
16974   *) ac_config_targets="$ac_config_targets $1" ;;
16975
16976   esac
16977   shift
16978 done
16979
16980 ac_configure_extra_args=
16981
16982 if $ac_cs_silent; then
16983   exec 6>/dev/null
16984   ac_configure_extra_args="$ac_configure_extra_args --silent"
16985 fi
16986
16987 _ACEOF
16988 cat >>$CONFIG_STATUS <<_ACEOF
16989 if \$ac_cs_recheck; then
16990   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16991   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16992 fi
16993
16994 _ACEOF
16995
16996
16997
16998
16999
17000 cat >>$CONFIG_STATUS <<\_ACEOF
17001 for ac_config_target in $ac_config_targets
17002 do
17003   case "$ac_config_target" in
17004   # Handling of arguments.
17005   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17006   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
17007   "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
17008   "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
17009   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17010   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17011   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
17012   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
17013   "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
17014   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
17015   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
17016   "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
17017   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
17018   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
17019   "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
17020   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
17021   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
17022   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
17023   "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
17024   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
17025   "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
17026   "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
17027   "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
17028   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
17029   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
17030   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
17031   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
17032   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
17033   "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
17034   "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
17035   "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
17036   "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
17037   "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
17038   "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
17039   "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
17040   "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
17041   "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
17042   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
17043   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
17044   "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
17045   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
17046   "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
17047   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
17048   "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
17049   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
17050   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
17051   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
17052   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
17053   "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
17054   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
17055   "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
17056   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
17057   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
17058   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
17059   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
17060   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
17061   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
17062   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
17063   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
17064   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
17065   "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
17066   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
17067   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
17068   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
17069   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
17070   "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
17071   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
17072   "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
17073   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
17074   "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
17075   "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
17076   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
17077   "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
17078   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
17079   "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
17080   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
17081   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
17082   "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
17083   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
17084   "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
17085   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
17086   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
17087   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
17088   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
17089   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
17090   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
17091   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
17092   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
17093   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
17094   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
17095   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
17096   "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
17097   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
17098   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
17099   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
17100   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
17101   "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
17102   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
17103   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
17104   "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
17105   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
17106   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
17107   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
17108   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
17109   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
17110   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
17111   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
17112   "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
17113   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
17114   "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
17115   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
17116   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
17117   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
17118   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
17119   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
17120   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
17121   "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
17122   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
17123   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
17124   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
17125   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
17126   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
17127   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
17128   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
17129   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
17130   "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
17131   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
17132   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
17133   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
17134   "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
17135   "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
17136   "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
17137   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
17138   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
17139   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
17140   "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
17141   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
17142   "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
17143   "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
17144   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
17145   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
17146   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
17147   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
17148   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
17149   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17150   "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
17151   "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
17152   "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
17153   "libs/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/uuid/Makefile" ;;
17154   "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
17155   "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
17156   "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
17157   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
17158   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
17159   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
17160   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
17161   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
17162   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
17163   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
17164   "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
17165   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
17166   "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
17167   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
17168   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
17169   "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
17170   "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
17171   "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
17172   "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
17173   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
17174   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
17175   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
17176   "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
17177   "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
17178   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
17179   "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
17180   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
17181   "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
17182   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
17183   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
17184   "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
17185   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
17186   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
17187   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
17188   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17189   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
17190   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
17191   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
17192   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
17193   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
17194   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
17195   "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
17196   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
17197   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
17198   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
17199   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
17200   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
17201   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
17202   "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
17203   "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
17204   "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
17205   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
17206   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
17207   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
17208   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
17209   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
17210   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
17211   "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
17212   "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
17213   "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
17214   "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
17215   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
17216   "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
17217   "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
17218   "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
17219   "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
17220   "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
17221   "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
17222   "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
17223   "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
17224   "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
17225   "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
17226   "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
17227   "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
17228   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17229   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17230 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17231    { (exit 1); exit 1; }; };;
17232   esac
17233 done
17234
17235 # If the user did not use the arguments to specify the items to instantiate,
17236 # then the envvar interface is used.  Set only those that are not.
17237 # We use the long form for the default assignment because of an extremely
17238 # bizarre bug on SunOS 4.1.3.
17239 if $ac_need_defaults; then
17240   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17241   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17242   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17243 fi
17244
17245 # Have a temporary directory for convenience.  Make it in the build tree
17246 # simply because there is no reason to put it here, and in addition,
17247 # creating and moving files from /tmp can sometimes cause problems.
17248 # Create a temporary directory, and hook for its removal unless debugging.
17249 $debug ||
17250 {
17251   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17252   trap '{ (exit 1); exit 1; }' 1 2 13 15
17253 }
17254
17255 # Create a (secure) tmp directory for tmp files.
17256
17257 {
17258   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17259   test -n "$tmp" && test -d "$tmp"
17260 }  ||
17261 {
17262   tmp=./confstat$$-$RANDOM
17263   (umask 077 && mkdir $tmp)
17264 } ||
17265 {
17266    echo "$me: cannot create a temporary directory in ." >&2
17267    { (exit 1); exit 1; }
17268 }
17269
17270 _ACEOF
17271
17272 cat >>$CONFIG_STATUS <<_ACEOF
17273
17274 #
17275 # CONFIG_FILES section.
17276 #
17277
17278 # No need to generate the scripts if there are no CONFIG_FILES.
17279 # This happens for instance when ./config.status config.h
17280 if test -n "\$CONFIG_FILES"; then
17281   # Protect against being on the right side of a sed subst in config.status.
17282   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17283    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17284 s,@SHELL@,$SHELL,;t t
17285 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17286 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17287 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17288 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17289 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17290 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17291 s,@exec_prefix@,$exec_prefix,;t t
17292 s,@prefix@,$prefix,;t t
17293 s,@program_transform_name@,$program_transform_name,;t t
17294 s,@bindir@,$bindir,;t t
17295 s,@sbindir@,$sbindir,;t t
17296 s,@libexecdir@,$libexecdir,;t t
17297 s,@datadir@,$datadir,;t t
17298 s,@sysconfdir@,$sysconfdir,;t t
17299 s,@sharedstatedir@,$sharedstatedir,;t t
17300 s,@localstatedir@,$localstatedir,;t t
17301 s,@libdir@,$libdir,;t t
17302 s,@includedir@,$includedir,;t t
17303 s,@oldincludedir@,$oldincludedir,;t t
17304 s,@infodir@,$infodir,;t t
17305 s,@mandir@,$mandir,;t t
17306 s,@build_alias@,$build_alias,;t t
17307 s,@host_alias@,$host_alias,;t t
17308 s,@target_alias@,$target_alias,;t t
17309 s,@DEFS@,$DEFS,;t t
17310 s,@ECHO_C@,$ECHO_C,;t t
17311 s,@ECHO_N@,$ECHO_N,;t t
17312 s,@ECHO_T@,$ECHO_T,;t t
17313 s,@LIBS@,$LIBS,;t t
17314 s,@WIN16_FILES@,$WIN16_FILES,;t t
17315 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
17316 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
17317 s,@build@,$build,;t t
17318 s,@build_cpu@,$build_cpu,;t t
17319 s,@build_vendor@,$build_vendor,;t t
17320 s,@build_os@,$build_os,;t t
17321 s,@host@,$host,;t t
17322 s,@host_cpu@,$host_cpu,;t t
17323 s,@host_vendor@,$host_vendor,;t t
17324 s,@host_os@,$host_os,;t t
17325 s,@SET_MAKE@,$SET_MAKE,;t t
17326 s,@CC@,$CC,;t t
17327 s,@CFLAGS@,$CFLAGS,;t t
17328 s,@LDFLAGS@,$LDFLAGS,;t t
17329 s,@CPPFLAGS@,$CPPFLAGS,;t t
17330 s,@ac_ct_CC@,$ac_ct_CC,;t t
17331 s,@EXEEXT@,$EXEEXT,;t t
17332 s,@OBJEXT@,$OBJEXT,;t t
17333 s,@CPP@,$CPP,;t t
17334 s,@TOOLSDIR@,$TOOLSDIR,;t t
17335 s,@X_CFLAGS@,$X_CFLAGS,;t t
17336 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17337 s,@X_LIBS@,$X_LIBS,;t t
17338 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17339 s,@YACC@,$YACC,;t t
17340 s,@LEX@,$LEX,;t t
17341 s,@LEXLIB@,$LEXLIB,;t t
17342 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
17343 s,@XYACC@,$XYACC,;t t
17344 s,@XLEX@,$XLEX,;t t
17345 s,@AS@,$AS,;t t
17346 s,@ac_ct_AS@,$ac_ct_AS,;t t
17347 s,@LD@,$LD,;t t
17348 s,@ac_ct_LD@,$ac_ct_LD,;t t
17349 s,@AR@,$AR,;t t
17350 s,@ac_ct_AR@,$ac_ct_AR,;t t
17351 s,@RANLIB@,$RANLIB,;t t
17352 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17353 s,@STRIP@,$STRIP,;t t
17354 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17355 s,@WINDRES@,$WINDRES,;t t
17356 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
17357 s,@LN_S@,$LN_S,;t t
17358 s,@LN@,$LN,;t t
17359 s,@LDCONFIG@,$LDCONFIG,;t t
17360 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17361 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17362 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17363 s,@LINT@,$LINT,;t t
17364 s,@LINTFLAGS@,$LINTFLAGS,;t t
17365 s,@DB2HTML@,$DB2HTML,;t t
17366 s,@DB2PDF@,$DB2PDF,;t t
17367 s,@DB2PS@,$DB2PS,;t t
17368 s,@JPEGLIB@,$JPEGLIB,;t t
17369 s,@EGREP@,$EGREP,;t t
17370 s,@GIFLIB@,$GIFLIB,;t t
17371 s,@XLIB@,$XLIB,;t t
17372 s,@XFILES@,$XFILES,;t t
17373 s,@OPENGLFILES@,$OPENGLFILES,;t t
17374 s,@GLU32FILES@,$GLU32FILES,;t t
17375 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
17376 s,@NASLIBS@,$NASLIBS,;t t
17377 s,@CURSESLIBS@,$CURSESLIBS,;t t
17378 s,@sane_devel@,$sane_devel,;t t
17379 s,@SANELIBS@,$SANELIBS,;t t
17380 s,@SANEINCL@,$SANEINCL,;t t
17381 s,@ICULIBS@,$ICULIBS,;t t
17382 s,@ft_devel@,$ft_devel,;t t
17383 s,@ft_devel2@,$ft_devel2,;t t
17384 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
17385 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
17386 s,@ARTSLIBS@,$ARTSLIBS,;t t
17387 s,@ARTSINCL@,$ARTSINCL,;t t
17388 s,@ALSALIBS@,$ALSALIBS,;t t
17389 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
17390 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
17391 s,@DLLEXT@,$DLLEXT,;t t
17392 s,@DLLFLAGS@,$DLLFLAGS,;t t
17393 s,@DLLIBS@,$DLLIBS,;t t
17394 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
17395 s,@LDSHARED@,$LDSHARED,;t t
17396 s,@LIBEXT@,$LIBEXT,;t t
17397 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
17398 s,@DLLTOOL@,$DLLTOOL,;t t
17399 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
17400 s,@DLLWRAP@,$DLLWRAP,;t t
17401 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
17402 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
17403 s,@CROSSTEST@,$CROSSTEST,;t t
17404 s,@CROSSCC@,$CROSSCC,;t t
17405 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
17406 s,@LDPATH@,$LDPATH,;t t
17407 s,@CRTLIBS@,$CRTLIBS,;t t
17408 s,@LDD@,$LDD,;t t
17409 s,@ALLOCA@,$ALLOCA,;t t
17410 s,@LIBOBJS@,$LIBOBJS,;t t
17411 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17412 /@MAKE_RULES@/r $MAKE_RULES
17413 s,@MAKE_RULES@,,;t t
17414 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
17415 s,@MAKE_DLL_RULES@,,;t t
17416 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
17417 s,@MAKE_TEST_RULES@,,;t t
17418 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
17419 s,@MAKE_LIB_RULES@,,;t t
17420 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
17421 s,@MAKE_PROG_RULES@,,;t t
17422 CEOF
17423
17424 _ACEOF
17425
17426   cat >>$CONFIG_STATUS <<\_ACEOF
17427   # Split the substitutions into bite-sized pieces for seds with
17428   # small command number limits, like on Digital OSF/1 and HP-UX.
17429   ac_max_sed_lines=48
17430   ac_sed_frag=1 # Number of current file.
17431   ac_beg=1 # First line for current file.
17432   ac_end=$ac_max_sed_lines # Line after last line for current file.
17433   ac_more_lines=:
17434   ac_sed_cmds=
17435   while $ac_more_lines; do
17436     if test $ac_beg -gt 1; then
17437       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17438     else
17439       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17440     fi
17441     if test ! -s $tmp/subs.frag; then
17442       ac_more_lines=false
17443     else
17444       # The purpose of the label and of the branching condition is to
17445       # speed up the sed processing (if there are no `@' at all, there
17446       # is no need to browse any of the substitutions).
17447       # These are the two extra sed commands mentioned above.
17448       (echo ':t
17449   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17450       if test -z "$ac_sed_cmds"; then
17451         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17452       else
17453         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17454       fi
17455       ac_sed_frag=`expr $ac_sed_frag + 1`
17456       ac_beg=$ac_end
17457       ac_end=`expr $ac_end + $ac_max_sed_lines`
17458     fi
17459   done
17460   if test -z "$ac_sed_cmds"; then
17461     ac_sed_cmds=cat
17462   fi
17463 fi # test -n "$CONFIG_FILES"
17464
17465 _ACEOF
17466 cat >>$CONFIG_STATUS <<\_ACEOF
17467 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17468   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17469   case $ac_file in
17470   - | *:- | *:-:* ) # input from stdin
17471         cat >$tmp/stdin
17472         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17473         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17474   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17475         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17476   * )   ac_file_in=$ac_file.in ;;
17477   esac
17478
17479   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17480   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17482          X"$ac_file" : 'X\(//\)[^/]' \| \
17483          X"$ac_file" : 'X\(//\)$' \| \
17484          X"$ac_file" : 'X\(/\)' \| \
17485          .     : '\(.\)' 2>/dev/null ||
17486 echo X"$ac_file" |
17487     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17488           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17489           /^X\(\/\/\)$/{ s//\1/; q; }
17490           /^X\(\/\).*/{ s//\1/; q; }
17491           s/.*/./; q'`
17492   { if $as_mkdir_p; then
17493     mkdir -p "$ac_dir"
17494   else
17495     as_dir="$ac_dir"
17496     as_dirs=
17497     while test ! -d "$as_dir"; do
17498       as_dirs="$as_dir $as_dirs"
17499       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17500 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17501          X"$as_dir" : 'X\(//\)[^/]' \| \
17502          X"$as_dir" : 'X\(//\)$' \| \
17503          X"$as_dir" : 'X\(/\)' \| \
17504          .     : '\(.\)' 2>/dev/null ||
17505 echo X"$as_dir" |
17506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17507           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17508           /^X\(\/\/\)$/{ s//\1/; q; }
17509           /^X\(\/\).*/{ s//\1/; q; }
17510           s/.*/./; q'`
17511     done
17512     test ! -n "$as_dirs" || mkdir $as_dirs
17513   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17514 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17515    { (exit 1); exit 1; }; }; }
17516
17517   ac_builddir=.
17518
17519 if test "$ac_dir" != .; then
17520   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17521   # A "../" for each directory in $ac_dir_suffix.
17522   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17523 else
17524   ac_dir_suffix= ac_top_builddir=
17525 fi
17526
17527 case $srcdir in
17528   .)  # No --srcdir option.  We are building in place.
17529     ac_srcdir=.
17530     if test -z "$ac_top_builddir"; then
17531        ac_top_srcdir=.
17532     else
17533        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17534     fi ;;
17535   [\\/]* | ?:[\\/]* )  # Absolute path.
17536     ac_srcdir=$srcdir$ac_dir_suffix;
17537     ac_top_srcdir=$srcdir ;;
17538   *) # Relative path.
17539     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17540     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17541 esac
17542 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17543 # absolute.
17544 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17545 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17546 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17547 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17548
17549
17550   case $INSTALL in
17551   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17552   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17553   esac
17554
17555   if test x"$ac_file" != x-; then
17556     { echo "$as_me:$LINENO: creating $ac_file" >&5
17557 echo "$as_me: creating $ac_file" >&6;}
17558     rm -f "$ac_file"
17559   fi
17560   # Let's still pretend it is `configure' which instantiates (i.e., don't
17561   # use $as_me), people would be surprised to read:
17562   #    /* config.h.  Generated by config.status.  */
17563   if test x"$ac_file" = x-; then
17564     configure_input=
17565   else
17566     configure_input="$ac_file.  "
17567   fi
17568   configure_input=$configure_input"Generated from `echo $ac_file_in |
17569                                      sed 's,.*/,,'` by configure."
17570
17571   # First look for the input files in the build tree, otherwise in the
17572   # src tree.
17573   ac_file_inputs=`IFS=:
17574     for f in $ac_file_in; do
17575       case $f in
17576       -) echo $tmp/stdin ;;
17577       [\\/$]*)
17578          # Absolute (can't be DOS-style, as IFS=:)
17579          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17580 echo "$as_me: error: cannot find input file: $f" >&2;}
17581    { (exit 1); exit 1; }; }
17582          echo $f;;
17583       *) # Relative
17584          if test -f "$f"; then
17585            # Build tree
17586            echo $f
17587          elif test -f "$srcdir/$f"; then
17588            # Source tree
17589            echo $srcdir/$f
17590          else
17591            # /dev/null tree
17592            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17593 echo "$as_me: error: cannot find input file: $f" >&2;}
17594    { (exit 1); exit 1; }; }
17595          fi;;
17596       esac
17597     done` || { (exit 1); exit 1; }
17598 _ACEOF
17599 cat >>$CONFIG_STATUS <<_ACEOF
17600   sed "$ac_vpsub
17601 $extrasub
17602 _ACEOF
17603 cat >>$CONFIG_STATUS <<\_ACEOF
17604 :t
17605 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17606 s,@configure_input@,$configure_input,;t t
17607 s,@srcdir@,$ac_srcdir,;t t
17608 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17609 s,@top_srcdir@,$ac_top_srcdir,;t t
17610 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17611 s,@builddir@,$ac_builddir,;t t
17612 s,@abs_builddir@,$ac_abs_builddir,;t t
17613 s,@top_builddir@,$ac_top_builddir,;t t
17614 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17615 s,@INSTALL@,$ac_INSTALL,;t t
17616 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17617   rm -f $tmp/stdin
17618   if test x"$ac_file" != x-; then
17619     mv $tmp/out $ac_file
17620   else
17621     cat $tmp/out
17622     rm -f $tmp/out
17623   fi
17624
17625 done
17626 _ACEOF
17627 cat >>$CONFIG_STATUS <<\_ACEOF
17628
17629 #
17630 # CONFIG_HEADER section.
17631 #
17632
17633 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17634 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17635 #
17636 # ac_d sets the value in "#define NAME VALUE" lines.
17637 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17638 ac_dB='[        ].*$,\1#\2'
17639 ac_dC=' '
17640 ac_dD=',;t'
17641 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17642 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17643 ac_uB='$,\1#\2define\3'
17644 ac_uC=' '
17645 ac_uD=',;t'
17646
17647 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17648   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17649   case $ac_file in
17650   - | *:- | *:-:* ) # input from stdin
17651         cat >$tmp/stdin
17652         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17653         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17654   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17655         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17656   * )   ac_file_in=$ac_file.in ;;
17657   esac
17658
17659   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17660 echo "$as_me: creating $ac_file" >&6;}
17661
17662   # First look for the input files in the build tree, otherwise in the
17663   # src tree.
17664   ac_file_inputs=`IFS=:
17665     for f in $ac_file_in; do
17666       case $f in
17667       -) echo $tmp/stdin ;;
17668       [\\/$]*)
17669          # Absolute (can't be DOS-style, as IFS=:)
17670          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17671 echo "$as_me: error: cannot find input file: $f" >&2;}
17672    { (exit 1); exit 1; }; }
17673          echo $f;;
17674       *) # Relative
17675          if test -f "$f"; then
17676            # Build tree
17677            echo $f
17678          elif test -f "$srcdir/$f"; then
17679            # Source tree
17680            echo $srcdir/$f
17681          else
17682            # /dev/null tree
17683            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17684 echo "$as_me: error: cannot find input file: $f" >&2;}
17685    { (exit 1); exit 1; }; }
17686          fi;;
17687       esac
17688     done` || { (exit 1); exit 1; }
17689   # Remove the trailing spaces.
17690   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
17691
17692 _ACEOF
17693
17694 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17695 # `conftest.undefs', that substitutes the proper values into
17696 # config.h.in to produce config.h.  The first handles `#define'
17697 # templates, and the second `#undef' templates.
17698 # And first: Protect against being on the right side of a sed subst in
17699 # config.status.  Protect against being in an unquoted here document
17700 # in config.status.
17701 rm -f conftest.defines conftest.undefs
17702 # Using a here document instead of a string reduces the quoting nightmare.
17703 # Putting comments in sed scripts is not portable.
17704 #
17705 # `end' is used to avoid that the second main sed command (meant for
17706 # 0-ary CPP macros) applies to n-ary macro definitions.
17707 # See the Autoconf documentation for `clear'.
17708 cat >confdef2sed.sed <<\_ACEOF
17709 s/[\\&,]/\\&/g
17710 s,[\\$`],\\&,g
17711 t clear
17712 : clear
17713 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17714 t end
17715 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17716 : end
17717 _ACEOF
17718 # If some macros were called several times there might be several times
17719 # the same #defines, which is useless.  Nevertheless, we may not want to
17720 # sort them, since we want the *last* AC-DEFINE to be honored.
17721 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17722 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17723 rm -f confdef2sed.sed
17724
17725 # This sed command replaces #undef with comments.  This is necessary, for
17726 # example, in the case of _POSIX_SOURCE, which is predefined and required
17727 # on some systems where configure will not decide to define it.
17728 cat >>conftest.undefs <<\_ACEOF
17729 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17730 _ACEOF
17731
17732 # Break up conftest.defines because some shells have a limit on the size
17733 # of here documents, and old seds have small limits too (100 cmds).
17734 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17735 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17736 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17737 echo '  :' >>$CONFIG_STATUS
17738 rm -f conftest.tail
17739 while grep . conftest.defines >/dev/null
17740 do
17741   # Write a limited-size here document to $tmp/defines.sed.
17742   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17743   # Speed up: don't consider the non `#define' lines.
17744   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
17745   # Work around the forget-to-reset-the-flag bug.
17746   echo 't clr' >>$CONFIG_STATUS
17747   echo ': clr' >>$CONFIG_STATUS
17748   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17749   echo 'CEOF
17750   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17751   rm -f $tmp/in
17752   mv $tmp/out $tmp/in
17753 ' >>$CONFIG_STATUS
17754   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17755   rm -f conftest.defines
17756   mv conftest.tail conftest.defines
17757 done
17758 rm -f conftest.defines
17759 echo '  fi # grep' >>$CONFIG_STATUS
17760 echo >>$CONFIG_STATUS
17761
17762 # Break up conftest.undefs because some shells have a limit on the size
17763 # of here documents, and old seds have small limits too (100 cmds).
17764 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17765 rm -f conftest.tail
17766 while grep . conftest.undefs >/dev/null
17767 do
17768   # Write a limited-size here document to $tmp/undefs.sed.
17769   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17770   # Speed up: don't consider the non `#undef'
17771   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17772   # Work around the forget-to-reset-the-flag bug.
17773   echo 't clr' >>$CONFIG_STATUS
17774   echo ': clr' >>$CONFIG_STATUS
17775   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17776   echo 'CEOF
17777   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17778   rm -f $tmp/in
17779   mv $tmp/out $tmp/in
17780 ' >>$CONFIG_STATUS
17781   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17782   rm -f conftest.undefs
17783   mv conftest.tail conftest.undefs
17784 done
17785 rm -f conftest.undefs
17786
17787 cat >>$CONFIG_STATUS <<\_ACEOF
17788   # Let's still pretend it is `configure' which instantiates (i.e., don't
17789   # use $as_me), people would be surprised to read:
17790   #    /* config.h.  Generated by config.status.  */
17791   if test x"$ac_file" = x-; then
17792     echo "/* Generated by configure.  */" >$tmp/config.h
17793   else
17794     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17795   fi
17796   cat $tmp/in >>$tmp/config.h
17797   rm -f $tmp/in
17798   if test x"$ac_file" != x-; then
17799     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17800       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17801 echo "$as_me: $ac_file is unchanged" >&6;}
17802     else
17803       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17804 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17805          X"$ac_file" : 'X\(//\)[^/]' \| \
17806          X"$ac_file" : 'X\(//\)$' \| \
17807          X"$ac_file" : 'X\(/\)' \| \
17808          .     : '\(.\)' 2>/dev/null ||
17809 echo X"$ac_file" |
17810     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17811           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17812           /^X\(\/\/\)$/{ s//\1/; q; }
17813           /^X\(\/\).*/{ s//\1/; q; }
17814           s/.*/./; q'`
17815       { if $as_mkdir_p; then
17816     mkdir -p "$ac_dir"
17817   else
17818     as_dir="$ac_dir"
17819     as_dirs=
17820     while test ! -d "$as_dir"; do
17821       as_dirs="$as_dir $as_dirs"
17822       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17823 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17824          X"$as_dir" : 'X\(//\)[^/]' \| \
17825          X"$as_dir" : 'X\(//\)$' \| \
17826          X"$as_dir" : 'X\(/\)' \| \
17827          .     : '\(.\)' 2>/dev/null ||
17828 echo X"$as_dir" |
17829     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17830           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17831           /^X\(\/\/\)$/{ s//\1/; q; }
17832           /^X\(\/\).*/{ s//\1/; q; }
17833           s/.*/./; q'`
17834     done
17835     test ! -n "$as_dirs" || mkdir $as_dirs
17836   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17837 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17838    { (exit 1); exit 1; }; }; }
17839
17840       rm -f $ac_file
17841       mv $tmp/config.h $ac_file
17842     fi
17843   else
17844     cat $tmp/config.h
17845     rm -f $tmp/config.h
17846   fi
17847 done
17848 _ACEOF
17849 cat >>$CONFIG_STATUS <<\_ACEOF
17850
17851 #
17852 # CONFIG_COMMANDS section.
17853 #
17854 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17855   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17856   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17857   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17858 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17859          X"$ac_dest" : 'X\(//\)[^/]' \| \
17860          X"$ac_dest" : 'X\(//\)$' \| \
17861          X"$ac_dest" : 'X\(/\)' \| \
17862          .     : '\(.\)' 2>/dev/null ||
17863 echo X"$ac_dest" |
17864     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17865           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17866           /^X\(\/\/\)$/{ s//\1/; q; }
17867           /^X\(\/\).*/{ s//\1/; q; }
17868           s/.*/./; q'`
17869   ac_builddir=.
17870
17871 if test "$ac_dir" != .; then
17872   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17873   # A "../" for each directory in $ac_dir_suffix.
17874   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17875 else
17876   ac_dir_suffix= ac_top_builddir=
17877 fi
17878
17879 case $srcdir in
17880   .)  # No --srcdir option.  We are building in place.
17881     ac_srcdir=.
17882     if test -z "$ac_top_builddir"; then
17883        ac_top_srcdir=.
17884     else
17885        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17886     fi ;;
17887   [\\/]* | ?:[\\/]* )  # Absolute path.
17888     ac_srcdir=$srcdir$ac_dir_suffix;
17889     ac_top_srcdir=$srcdir ;;
17890   *) # Relative path.
17891     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17892     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17893 esac
17894 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17895 # absolute.
17896 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17897 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17898 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17899 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17900
17901
17902   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17903 echo "$as_me: executing $ac_dest commands" >&6;}
17904   case $ac_dest in
17905     controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
17906 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
17907     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
17908 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
17909     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
17910 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
17911     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
17912 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
17913     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
17914 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
17915     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
17916 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
17917     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
17918 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
17919     dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
17920 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
17921     dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
17922 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
17923     dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
17924 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
17925     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
17926 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
17927     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
17928 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
17929     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
17930 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
17931     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
17932 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
17933     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
17934 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
17935     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
17936 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
17937     files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
17938 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
17939     graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
17940 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
17941     graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
17942 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
17943     if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
17944 echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
17945     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
17946 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
17947     loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
17948 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
17949     loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
17950 echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
17951     memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
17952 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
17953     misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
17954 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
17955     msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
17956 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
17957     objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
17958 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
17959     programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
17960 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
17961     programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
17962 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
17963     relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
17964 echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
17965     scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
17966 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
17967     win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
17968 echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
17969     windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
17970 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
17971   esac
17972 done
17973 _ACEOF
17974
17975 cat >>$CONFIG_STATUS <<\_ACEOF
17976
17977 { (exit 0); exit 0; }
17978 _ACEOF
17979 chmod +x $CONFIG_STATUS
17980 ac_clean_files=$ac_clean_files_save
17981
17982
17983 # configure is writing to config.log, and then calls config.status.
17984 # config.status does its own redirection, appending to config.log.
17985 # Unfortunately, on DOS this fails, as config.log is still kept open
17986 # by configure, so config.status won't be able to write to it; its
17987 # output is simply discarded.  So we exec the FD to /dev/null,
17988 # effectively closing config.log, so it can be properly (re)opened and
17989 # appended to by config.status.  When coming back to configure, we
17990 # need to make the FD available again.
17991 if test "$no_create" != yes; then
17992   ac_cs_success=:
17993   ac_config_status_args=
17994   test "$silent" = yes &&
17995     ac_config_status_args="$ac_config_status_args --quiet"
17996   exec 5>/dev/null
17997   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17998   exec 5>>config.log
17999   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18000   # would make configure fail if this is the last instruction.
18001   $ac_cs_success || { (exit 1); exit 1; }
18002 fi
18003
18004
18005 if test "$have_x" = "no"
18006 then
18007   echo
18008   echo "*** Warning: X development files not found. Wine will be built without"
18009   echo "*** X support, which currently does not work, and would probably not be"
18010   echo "*** what you want anyway. You will need to install devel packages of"
18011   echo "*** Xlib/Xfree86 at the very least."
18012 fi
18013
18014 if test "$wine_cv_opengl_version_OK" = "no"
18015 then
18016   echo
18017   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
18018   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
18019 fi
18020
18021 if test "$wine_cv_msg_freetype" = "yes"
18022 then
18023   echo
18024   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
18025   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
18026   echo "*** freetype-devel package (or its equivalent on your distribution) to"
18027   echo "*** enable Wine to use TrueType fonts."
18028 fi
18029
18030 echo
18031 echo "Configure finished.  Do 'make depend && make' to compile Wine."
18032 echo
18033