- X11/extensions/shape.h requires X11/Xutil.h.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for Wine 20020710.
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 if expr a : '\(a\)' >/dev/null 2>&1; then
11   as_expr=expr
12 else
13   as_expr=false
14 fi
15
16
17 ## --------------------- ##
18 ## M4sh Initialization.  ##
19 ## --------------------- ##
20
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23   emulate sh
24   NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26   set -o posix
27 fi
28
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32   as_unset=unset
33 else
34   as_unset=false
35 fi
36
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38     { $as_unset LANG || test "${LANG+set}" != set; } ||
39       { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42       { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45       { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48       { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51       { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54       { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57       { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60       { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66          X"$0" : 'X\(//\)$' \| \
67          X"$0" : 'X\(/\)$' \| \
68          .     : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71           /^X\/\(\/\/\)$/{ s//\1/; q; }
72           /^X\/\(\/\).*/{ s//\1/; q; }
73           s/.*/./; q'`
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85   echo "#! /bin/sh" >conftest.sh
86   echo  "exit 0"   >>conftest.sh
87   chmod +x conftest.sh
88   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89     PATH_SEPARATOR=';'
90   else
91     PATH_SEPARATOR=:
92   fi
93   rm -f conftest.sh
94 fi
95
96
97   as_lineno_1=$LINENO
98   as_lineno_2=$LINENO
99   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100   test "x$as_lineno_1" != "x$as_lineno_2" &&
101   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102   # Find who we are.  Look in the path if we contain no path at all
103   # relative or not.
104   case $0 in
105     *[\\/]* ) as_myself=$0 ;;
106     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109   IFS=$as_save_IFS
110   test -z "$as_dir" && as_dir=.
111   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114        ;;
115   esac
116   # We did not find ourselves, most probably we were run as `sh COMMAND'
117   # in which case we are not to be found in the path.
118   if test "x$as_myself" = x; then
119     as_myself=$0
120   fi
121   if test ! -f "$as_myself"; then
122     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123    { (exit 1); exit 1; }; }
124   fi
125   case $CONFIG_SHELL in
126   '')
127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130   IFS=$as_save_IFS
131   test -z "$as_dir" && as_dir=.
132   for as_base in sh bash ksh sh5; do
133          case $as_dir in
134          /*)
135            if ("$as_dir/$as_base" -c '
136   as_lineno_1=$LINENO
137   as_lineno_2=$LINENO
138   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139   test "x$as_lineno_1" != "x$as_lineno_2" &&
140   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141              CONFIG_SHELL=$as_dir/$as_base
142              export CONFIG_SHELL
143              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144            fi;;
145          esac
146        done
147 done
148 ;;
149   esac
150
151   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152   # uniformly replaced by the line number.  The first 'sed' inserts a
153   # line-number line before each line; the second 'sed' does the real
154   # work.  The second script uses 'N' to pair each line-number line
155   # with the numbered line, and appends trailing '-' during
156   # substitution so that $LINENO is not a special case at line end.
157   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
159   sed '=' <$as_myself |
160     sed '
161       N
162       s,$,-,
163       : loop
164       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165       t loop
166       s,-$,,
167       s,^['$as_cr_digits']*\n,,
168     ' >$as_me.lineno &&
169   chmod +x $as_me.lineno ||
170     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171    { (exit 1); exit 1; }; }
172
173   # Don't try to exec as it changes $[0], causing all sort of problems
174   # (the dirname of $[0] is not the place where we might find the
175   # original and so on.  Autoconf is especially sensible to this).
176   . ./$as_me.lineno
177   # Exit status is that of the last command.
178   exit
179 }
180
181
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183   *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T='      ' ;;
185   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190   as_expr=expr
191 else
192   as_expr=false
193 fi
194
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198   # We could just check for DJGPP; but this test a) works b) is more generic
199   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200   if test -f conf$$.exe; then
201     # Don't use ln at all; we don't have any links
202     as_ln_s='cp -p'
203   else
204     as_ln_s='ln -s'
205   fi
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207   as_ln_s=ln
208 else
209   as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
225 '
226 IFS="   $as_nl"
227
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237 exec 6>&1
238
239 #
240 # Initializations.
241 #
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete.  It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
253
254 # Identity of this package.
255 PACKAGE_NAME='Wine'
256 PACKAGE_TARNAME='wine'
257 PACKAGE_VERSION='20020710'
258 PACKAGE_STRING='Wine 20020710'
259 PACKAGE_BUGREPORT=''
260
261 ac_unique_file="server/atom.c"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 #  include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 #  include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 #  include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
298
299
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
319
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
337
338 ac_prev=
339 for ac_option
340 do
341   # If the previous option needs an argument, assign it.
342   if test -n "$ac_prev"; then
343     eval "$ac_prev=\$ac_option"
344     ac_prev=
345     continue
346   fi
347
348   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350   # Accept the important Cygnus configure options, so we can diagnose typos.
351
352   case $ac_option in
353
354   -bindir | --bindir | --bindi | --bind | --bin | --bi)
355     ac_prev=bindir ;;
356   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357     bindir=$ac_optarg ;;
358
359   -build | --build | --buil | --bui | --bu)
360     ac_prev=build_alias ;;
361   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362     build_alias=$ac_optarg ;;
363
364   -cache-file | --cache-file | --cache-fil | --cache-fi \
365   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366     ac_prev=cache_file ;;
367   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369     cache_file=$ac_optarg ;;
370
371   --config-cache | -C)
372     cache_file=config.cache ;;
373
374   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375     ac_prev=datadir ;;
376   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377   | --da=*)
378     datadir=$ac_optarg ;;
379
380   -disable-* | --disable-*)
381     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382     # Reject names that are not valid shell variable names.
383     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385    { (exit 1); exit 1; }; }
386     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387     eval "enable_$ac_feature=no" ;;
388
389   -enable-* | --enable-*)
390     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391     # Reject names that are not valid shell variable names.
392     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394    { (exit 1); exit 1; }; }
395     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396     case $ac_option in
397       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398       *) ac_optarg=yes ;;
399     esac
400     eval "enable_$ac_feature='$ac_optarg'" ;;
401
402   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404   | --exec | --exe | --ex)
405     ac_prev=exec_prefix ;;
406   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408   | --exec=* | --exe=* | --ex=*)
409     exec_prefix=$ac_optarg ;;
410
411   -gas | --gas | --ga | --g)
412     # Obsolete; use --with-gas.
413     with_gas=yes ;;
414
415   -help | --help | --hel | --he | -h)
416     ac_init_help=long ;;
417   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418     ac_init_help=recursive ;;
419   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420     ac_init_help=short ;;
421
422   -host | --host | --hos | --ho)
423     ac_prev=host_alias ;;
424   -host=* | --host=* | --hos=* | --ho=*)
425     host_alias=$ac_optarg ;;
426
427   -includedir | --includedir | --includedi | --included | --include \
428   | --includ | --inclu | --incl | --inc)
429     ac_prev=includedir ;;
430   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431   | --includ=* | --inclu=* | --incl=* | --inc=*)
432     includedir=$ac_optarg ;;
433
434   -infodir | --infodir | --infodi | --infod | --info | --inf)
435     ac_prev=infodir ;;
436   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437     infodir=$ac_optarg ;;
438
439   -libdir | --libdir | --libdi | --libd)
440     ac_prev=libdir ;;
441   -libdir=* | --libdir=* | --libdi=* | --libd=*)
442     libdir=$ac_optarg ;;
443
444   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445   | --libexe | --libex | --libe)
446     ac_prev=libexecdir ;;
447   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448   | --libexe=* | --libex=* | --libe=*)
449     libexecdir=$ac_optarg ;;
450
451   -localstatedir | --localstatedir | --localstatedi | --localstated \
452   | --localstate | --localstat | --localsta | --localst \
453   | --locals | --local | --loca | --loc | --lo)
454     ac_prev=localstatedir ;;
455   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458     localstatedir=$ac_optarg ;;
459
460   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461     ac_prev=mandir ;;
462   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463     mandir=$ac_optarg ;;
464
465   -nfp | --nfp | --nf)
466     # Obsolete; use --without-fp.
467     with_fp=no ;;
468
469   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470   | --no-cr | --no-c | -n)
471     no_create=yes ;;
472
473   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475     no_recursion=yes ;;
476
477   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479   | --oldin | --oldi | --old | --ol | --o)
480     ac_prev=oldincludedir ;;
481   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484     oldincludedir=$ac_optarg ;;
485
486   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487     ac_prev=prefix ;;
488   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489     prefix=$ac_optarg ;;
490
491   -program-prefix | --program-prefix | --program-prefi | --program-pref \
492   | --program-pre | --program-pr | --program-p)
493     ac_prev=program_prefix ;;
494   -program-prefix=* | --program-prefix=* | --program-prefi=* \
495   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496     program_prefix=$ac_optarg ;;
497
498   -program-suffix | --program-suffix | --program-suffi | --program-suff \
499   | --program-suf | --program-su | --program-s)
500     ac_prev=program_suffix ;;
501   -program-suffix=* | --program-suffix=* | --program-suffi=* \
502   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503     program_suffix=$ac_optarg ;;
504
505   -program-transform-name | --program-transform-name \
506   | --program-transform-nam | --program-transform-na \
507   | --program-transform-n | --program-transform- \
508   | --program-transform | --program-transfor \
509   | --program-transfo | --program-transf \
510   | --program-trans | --program-tran \
511   | --progr-tra | --program-tr | --program-t)
512     ac_prev=program_transform_name ;;
513   -program-transform-name=* | --program-transform-name=* \
514   | --program-transform-nam=* | --program-transform-na=* \
515   | --program-transform-n=* | --program-transform-=* \
516   | --program-transform=* | --program-transfor=* \
517   | --program-transfo=* | --program-transf=* \
518   | --program-trans=* | --program-tran=* \
519   | --progr-tra=* | --program-tr=* | --program-t=*)
520     program_transform_name=$ac_optarg ;;
521
522   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523   | -silent | --silent | --silen | --sile | --sil)
524     silent=yes ;;
525
526   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527     ac_prev=sbindir ;;
528   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529   | --sbi=* | --sb=*)
530     sbindir=$ac_optarg ;;
531
532   -sharedstatedir | --sharedstatedir | --sharedstatedi \
533   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534   | --sharedst | --shareds | --shared | --share | --shar \
535   | --sha | --sh)
536     ac_prev=sharedstatedir ;;
537   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540   | --sha=* | --sh=*)
541     sharedstatedir=$ac_optarg ;;
542
543   -site | --site | --sit)
544     ac_prev=site ;;
545   -site=* | --site=* | --sit=*)
546     site=$ac_optarg ;;
547
548   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549     ac_prev=srcdir ;;
550   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551     srcdir=$ac_optarg ;;
552
553   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554   | --syscon | --sysco | --sysc | --sys | --sy)
555     ac_prev=sysconfdir ;;
556   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558     sysconfdir=$ac_optarg ;;
559
560   -target | --target | --targe | --targ | --tar | --ta | --t)
561     ac_prev=target_alias ;;
562   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563     target_alias=$ac_optarg ;;
564
565   -v | -verbose | --verbose | --verbos | --verbo | --verb)
566     verbose=yes ;;
567
568   -version | --version | --versio | --versi | --vers | -V)
569     ac_init_version=: ;;
570
571   -with-* | --with-*)
572     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid package name: $ac_package" >&2
576    { (exit 1); exit 1; }; }
577     ac_package=`echo $ac_package| sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "with_$ac_package='$ac_optarg'" ;;
583
584   -without-* | --without-*)
585     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586     # Reject names that are not valid shell variable names.
587     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588       { echo "$as_me: error: invalid package name: $ac_package" >&2
589    { (exit 1); exit 1; }; }
590     ac_package=`echo $ac_package | sed 's/-/_/g'`
591     eval "with_$ac_package=no" ;;
592
593   --x)
594     # Obsolete; use --with-x.
595     with_x=yes ;;
596
597   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598   | --x-incl | --x-inc | --x-in | --x-i)
599     ac_prev=x_includes ;;
600   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602     x_includes=$ac_optarg ;;
603
604   -x-libraries | --x-libraries | --x-librarie | --x-librari \
605   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606     ac_prev=x_libraries ;;
607   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609     x_libraries=$ac_optarg ;;
610
611   -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613    { (exit 1); exit 1; }; }
614     ;;
615
616   *=*)
617     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618     # Reject names that are not valid shell variable names.
619     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621    { (exit 1); exit 1; }; }
622     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623     eval "$ac_envvar='$ac_optarg'"
624     export $ac_envvar ;;
625
626   *)
627     # FIXME: should be removed in autoconf 3.0.
628     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632     ;;
633
634   esac
635 done
636
637 if test -n "$ac_prev"; then
638   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639   { echo "$as_me: error: missing argument to $ac_option" >&2
640    { (exit 1); exit 1; }; }
641 fi
642
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
645 do
646   eval ac_val=$`echo $ac_var`
647   case $ac_val in
648     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650    { (exit 1); exit 1; }; };;
651   esac
652 done
653
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656               localstatedir libdir includedir oldincludedir infodir mandir
657 do
658   eval ac_val=$`echo $ac_var`
659   case $ac_val in
660     [\\/$]* | ?:[\\/]* ) ;;
661     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662    { (exit 1); exit 1; }; };;
663   esac
664 done
665
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
672
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675   if test "x$build_alias" = x; then
676     cross_compiling=maybe
677     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678     If a cross compiler is detected then cross compile mode will be used." >&2
679   elif test "x$build_alias" != "x$host_alias"; then
680     cross_compiling=yes
681   fi
682 fi
683
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687 test "$silent" = yes && exec 6>/dev/null
688
689
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692   ac_srcdir_defaulted=yes
693   # Try the directory containing this script, then its parent.
694   ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696          X"$0" : 'X\(//\)[^/]' \| \
697          X"$0" : 'X\(//\)$' \| \
698          X"$0" : 'X\(/\)' \| \
699          .     : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703           /^X\(\/\/\)$/{ s//\1/; q; }
704           /^X\(\/\).*/{ s//\1/; q; }
705           s/.*/./; q'`
706   srcdir=$ac_confdir
707   if test ! -r $srcdir/$ac_unique_file; then
708     srcdir=..
709   fi
710 else
711   ac_srcdir_defaulted=no
712 fi
713 if test ! -r $srcdir/$ac_unique_file; then
714   if test "$ac_srcdir_defaulted" = yes; then
715     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716    { (exit 1); exit 1; }; }
717   else
718     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719    { (exit 1); exit 1; }; }
720   fi
721 fi
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
755
756 #
757 # Report the --help message.
758 #
759 if test "$ac_init_help" = "long"; then
760   # Omit some internal or obsolete options to make the list less imposing.
761   # This message is too long to be a string in the A/UX 3.1 sh.
762   cat <<_ACEOF
763 \`configure' configures Wine 20020710 to adapt to many kinds of systems.
764
765 Usage: $0 [OPTION]... [VAR=VALUE]...
766
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE.  See below for descriptions of some of the useful variables.
769
770 Defaults for the options are specified in brackets.
771
772 Configuration:
773   -h, --help              display this help and exit
774       --help=short        display options specific to this package
775       --help=recursive    display the short help of all the included packages
776   -V, --version           display version information and exit
777   -q, --quiet, --silent   do not print \`checking...' messages
778       --cache-file=FILE   cache test results in FILE [disabled]
779   -C, --config-cache      alias for \`--cache-file=config.cache'
780   -n, --no-create         do not create output files
781       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
782
783 _ACEOF
784
785   cat <<_ACEOF
786 Installation directories:
787   --prefix=PREFIX         install architecture-independent files in PREFIX
788                           [$ac_default_prefix]
789   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
790                           [PREFIX]
791
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
796
797 For better control, use the options below.
798
799 Fine tuning of the installation directories:
800   --bindir=DIR           user executables [EPREFIX/bin]
801   --sbindir=DIR          system admin executables [EPREFIX/sbin]
802   --libexecdir=DIR       program executables [EPREFIX/libexec]
803   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
804   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
805   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
806   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
807   --libdir=DIR           object code libraries [EPREFIX/lib]
808   --includedir=DIR       C header files [PREFIX/include]
809   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
810   --infodir=DIR          info documentation [PREFIX/info]
811   --mandir=DIR           man documentation [PREFIX/man]
812 _ACEOF
813
814   cat <<\_ACEOF
815
816 X features:
817   --x-includes=DIR    X include files are in DIR
818   --x-libraries=DIR   X library files are in DIR
819
820 System types:
821   --build=BUILD     configure for building on BUILD [guessed]
822   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
823 _ACEOF
824 fi
825
826 if test -n "$ac_init_help"; then
827   case $ac_init_help in
828      short | recursive ) echo "Configuration of Wine 20020710:";;
829    esac
830   cat <<\_ACEOF
831
832 Optional Features:
833   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
834   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
835   --disable-debug         compile out all debugging messages
836   --disable-trace         compile out TRACE messages
837   --enable-opengl         force usage of OpenGL even if the latter is
838                           thread-safe via pthread
839
840 Optional Packages:
841   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
842   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
843   --without-curses        do not use curses
844   --with-wine-tools=<dir> use Wine tools from directory <dir>
845   --with-x                use the X Window System
846
847 Some influential environment variables:
848   CC          C compiler command
849   CFLAGS      C compiler flags
850   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
851               nonstandard directory <lib dir>
852   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
853               headers in a nonstandard directory <include dir>
854   CPP         C preprocessor
855
856 Use these variables to override the choices made by `configure' or to help
857 it to find libraries and programs with nonstandard names/locations.
858
859 _ACEOF
860 fi
861
862 if test "$ac_init_help" = "recursive"; then
863   # If there are subdirs, report their specific --help.
864   ac_popdir=`pwd`
865   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
866     test -d $ac_dir || continue
867     ac_builddir=.
868
869 if test "$ac_dir" != .; then
870   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
871   # A "../" for each directory in $ac_dir_suffix.
872   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
873 else
874   ac_dir_suffix= ac_top_builddir=
875 fi
876
877 case $srcdir in
878   .)  # No --srcdir option.  We are building in place.
879     ac_srcdir=.
880     if test -z "$ac_top_builddir"; then
881        ac_top_srcdir=.
882     else
883        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
884     fi ;;
885   [\\/]* | ?:[\\/]* )  # Absolute path.
886     ac_srcdir=$srcdir$ac_dir_suffix;
887     ac_top_srcdir=$srcdir ;;
888   *) # Relative path.
889     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
890     ac_top_srcdir=$ac_top_builddir$srcdir ;;
891 esac
892 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
893 # absolute.
894 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
895 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
896 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
897 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
898
899     cd $ac_dir
900     # Check for guested configure; otherwise get Cygnus style configure.
901     if test -f $ac_srcdir/configure.gnu; then
902       echo
903       $SHELL $ac_srcdir/configure.gnu  --help=recursive
904     elif test -f $ac_srcdir/configure; then
905       echo
906       $SHELL $ac_srcdir/configure  --help=recursive
907     elif test -f $ac_srcdir/configure.ac ||
908            test -f $ac_srcdir/configure.in; then
909       echo
910       $ac_configure --help
911     else
912       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
913     fi
914     cd $ac_popdir
915   done
916 fi
917
918 test -n "$ac_init_help" && exit 0
919 if $ac_init_version; then
920   cat <<\_ACEOF
921 Wine configure 20020710
922 generated by GNU Autoconf 2.53
923
924 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
925 Free Software Foundation, Inc.
926 This configure script is free software; the Free Software Foundation
927 gives unlimited permission to copy, distribute and modify it.
928 _ACEOF
929   exit 0
930 fi
931 exec 5>config.log
932 cat >&5 <<_ACEOF
933 This file contains any messages produced by compilers while
934 running configure, to aid debugging if configure makes a mistake.
935
936 It was created by Wine $as_me 20020710, which was
937 generated by GNU Autoconf 2.53.  Invocation command line was
938
939   $ $0 $@
940
941 _ACEOF
942 {
943 cat <<_ASUNAME
944 ## --------- ##
945 ## Platform. ##
946 ## --------- ##
947
948 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
949 uname -m = `(uname -m) 2>/dev/null || echo unknown`
950 uname -r = `(uname -r) 2>/dev/null || echo unknown`
951 uname -s = `(uname -s) 2>/dev/null || echo unknown`
952 uname -v = `(uname -v) 2>/dev/null || echo unknown`
953
954 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
955 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
956
957 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
958 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
959 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
960 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
961 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
962 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
963 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
964
965 _ASUNAME
966
967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
968 for as_dir in $PATH
969 do
970   IFS=$as_save_IFS
971   test -z "$as_dir" && as_dir=.
972   echo "PATH: $as_dir"
973 done
974
975 } >&5
976
977 cat >&5 <<_ACEOF
978
979
980 ## ----------- ##
981 ## Core tests. ##
982 ## ----------- ##
983
984 _ACEOF
985
986
987 # Keep a trace of the command line.
988 # Strip out --no-create and --no-recursion so they do not pile up.
989 # Also quote any args containing shell meta-characters.
990 ac_configure_args=
991 ac_sep=
992 for ac_arg
993 do
994   case $ac_arg in
995   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996   | --no-cr | --no-c | -n ) continue ;;
997   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999     continue ;;
1000   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1001     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1002   esac
1003   case " $ac_configure_args " in
1004     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1005     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1006        ac_sep=" " ;;
1007   esac
1008   # Get rid of the leading space.
1009 done
1010
1011 # When interrupted or exit'd, cleanup temporary files, and complete
1012 # config.log.  We remove comments because anyway the quotes in there
1013 # would cause problems or look ugly.
1014 # WARNING: Be sure not to use single quotes in there, as some shells,
1015 # such as our DU 5.0 friend, will then `close' the trap.
1016 trap 'exit_status=$?
1017   # Save into config.log some information that might help in debugging.
1018   {
1019     echo
1020     cat <<\_ASBOX
1021 ## ---------------- ##
1022 ## Cache variables. ##
1023 ## ---------------- ##
1024 _ASBOX
1025     echo
1026     # The following way of writing the cache mishandles newlines in values,
1027 {
1028   (set) 2>&1 |
1029     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1030     *ac_space=\ *)
1031       sed -n \
1032         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1033           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1034       ;;
1035     *)
1036       sed -n \
1037         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1038       ;;
1039     esac;
1040 }
1041     echo
1042     if test -s confdefs.h; then
1043       cat <<\_ASBOX
1044 ## ----------- ##
1045 ## confdefs.h. ##
1046 ## ----------- ##
1047 _ASBOX
1048       echo
1049       sed "/^$/d" confdefs.h
1050       echo
1051     fi
1052     test "$ac_signal" != 0 &&
1053       echo "$as_me: caught signal $ac_signal"
1054     echo "$as_me: exit $exit_status"
1055   } >&5
1056   rm -f core core.* *.core &&
1057   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1058     exit $exit_status
1059      ' 0
1060 for ac_signal in 1 2 13 15; do
1061   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1062 done
1063 ac_signal=0
1064
1065 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1066 rm -rf conftest* confdefs.h
1067 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1068 echo >confdefs.h
1069
1070 # Predefined preprocessor variables.
1071
1072 cat >>confdefs.h <<_ACEOF
1073 #define PACKAGE_NAME "$PACKAGE_NAME"
1074 _ACEOF
1075
1076
1077 cat >>confdefs.h <<_ACEOF
1078 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1079 _ACEOF
1080
1081
1082 cat >>confdefs.h <<_ACEOF
1083 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1084 _ACEOF
1085
1086
1087 cat >>confdefs.h <<_ACEOF
1088 #define PACKAGE_STRING "$PACKAGE_STRING"
1089 _ACEOF
1090
1091
1092 cat >>confdefs.h <<_ACEOF
1093 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1094 _ACEOF
1095
1096
1097 # Let the site file select an alternate cache file if it wants to.
1098 # Prefer explicitly selected file to automatically selected ones.
1099 if test -z "$CONFIG_SITE"; then
1100   if test "x$prefix" != xNONE; then
1101     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1102   else
1103     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1104   fi
1105 fi
1106 for ac_site_file in $CONFIG_SITE; do
1107   if test -r "$ac_site_file"; then
1108     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1109 echo "$as_me: loading site script $ac_site_file" >&6;}
1110     sed 's/^/| /' "$ac_site_file" >&5
1111     . "$ac_site_file"
1112   fi
1113 done
1114
1115 if test -r "$cache_file"; then
1116   # Some versions of bash will fail to source /dev/null (special
1117   # files actually), so we avoid doing that.
1118   if test -f "$cache_file"; then
1119     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1120 echo "$as_me: loading cache $cache_file" >&6;}
1121     case $cache_file in
1122       [\\/]* | ?:[\\/]* ) . $cache_file;;
1123       *)                      . ./$cache_file;;
1124     esac
1125   fi
1126 else
1127   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1128 echo "$as_me: creating cache $cache_file" >&6;}
1129   >$cache_file
1130 fi
1131
1132 # Check that the precious variables saved in the cache have kept the same
1133 # value.
1134 ac_cache_corrupted=false
1135 for ac_var in `(set) 2>&1 |
1136                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1137   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1138   eval ac_new_set=\$ac_env_${ac_var}_set
1139   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1140   eval ac_new_val="\$ac_env_${ac_var}_value"
1141   case $ac_old_set,$ac_new_set in
1142     set,)
1143       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1144 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1145       ac_cache_corrupted=: ;;
1146     ,set)
1147       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1148 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1149       ac_cache_corrupted=: ;;
1150     ,);;
1151     *)
1152       if test "x$ac_old_val" != "x$ac_new_val"; then
1153         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1154 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1155         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1156 echo "$as_me:   former value:  $ac_old_val" >&2;}
1157         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1158 echo "$as_me:   current value: $ac_new_val" >&2;}
1159         ac_cache_corrupted=:
1160       fi;;
1161   esac
1162   # Pass precious variables to config.status.
1163   if test "$ac_new_set" = set; then
1164     case $ac_new_val in
1165     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1166       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1167     *) ac_arg=$ac_var=$ac_new_val ;;
1168     esac
1169     case " $ac_configure_args " in
1170       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1171       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1172     esac
1173   fi
1174 done
1175 if $ac_cache_corrupted; then
1176   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1177 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1178   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1179 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1180    { (exit 1); exit 1; }; }
1181 fi
1182
1183 ac_ext=c
1184 ac_cpp='$CPP $CPPFLAGS'
1185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215 ac_config_headers="$ac_config_headers include/config.h"
1216
1217 ac_aux_dir=
1218 for ac_dir in tools $srcdir/tools; do
1219   if test -f $ac_dir/install-sh; then
1220     ac_aux_dir=$ac_dir
1221     ac_install_sh="$ac_aux_dir/install-sh -c"
1222     break
1223   elif test -f $ac_dir/install.sh; then
1224     ac_aux_dir=$ac_dir
1225     ac_install_sh="$ac_aux_dir/install.sh -c"
1226     break
1227   elif test -f $ac_dir/shtool; then
1228     ac_aux_dir=$ac_dir
1229     ac_install_sh="$ac_aux_dir/shtool install -c"
1230     break
1231   fi
1232 done
1233 if test -z "$ac_aux_dir"; then
1234   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1235 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1236    { (exit 1); exit 1; }; }
1237 fi
1238 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1239 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1240 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1241
1242
1243
1244 LIBEXT=so       # library type .so or .a
1245
1246 # Check whether --enable-debug or --disable-debug was given.
1247 if test "${enable_debug+set}" = set; then
1248   enableval="$enable_debug"
1249
1250 fi;
1251 # Check whether --enable-trace or --disable-trace was given.
1252 if test "${enable_trace+set}" = set; then
1253   enableval="$enable_trace"
1254
1255 fi;
1256 # Check whether --enable-opengl or --disable-opengl was given.
1257 if test "${enable_opengl+set}" = set; then
1258   enableval="$enable_opengl"
1259
1260 fi;
1261
1262 # Check whether --with-curses or --without-curses was given.
1263 if test "${with_curses+set}" = set; then
1264   withval="$with_curses"
1265
1266 fi;
1267
1268 # Check whether --with-wine-tools or --without-wine-tools was given.
1269 if test "${with_wine_tools+set}" = set; then
1270   withval="$with_wine_tools"
1271
1272 fi;
1273
1274
1275 if test "x$enable_debug" = "xno"
1276 then
1277
1278 cat >>confdefs.h <<\_ACEOF
1279 #define NO_DEBUG_MSGS 1
1280 _ACEOF
1281
1282 fi
1283 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1284 then
1285
1286 cat >>confdefs.h <<\_ACEOF
1287 #define NO_TRACE_MSGS 1
1288 _ACEOF
1289
1290 fi
1291
1292
1293 # Make sure we can run config.sub.
1294 $ac_config_sub sun4 >/dev/null 2>&1 ||
1295   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1296 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1297    { (exit 1); exit 1; }; }
1298
1299 echo "$as_me:$LINENO: checking build system type" >&5
1300 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1301 if test "${ac_cv_build+set}" = set; then
1302   echo $ECHO_N "(cached) $ECHO_C" >&6
1303 else
1304   ac_cv_build_alias=$build_alias
1305 test -z "$ac_cv_build_alias" &&
1306   ac_cv_build_alias=`$ac_config_guess`
1307 test -z "$ac_cv_build_alias" &&
1308   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1309 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1310    { (exit 1); exit 1; }; }
1311 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1312   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1313 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1314    { (exit 1); exit 1; }; }
1315
1316 fi
1317 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1318 echo "${ECHO_T}$ac_cv_build" >&6
1319 build=$ac_cv_build
1320 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1321 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1322 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1323
1324
1325 echo "$as_me:$LINENO: checking host system type" >&5
1326 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1327 if test "${ac_cv_host+set}" = set; then
1328   echo $ECHO_N "(cached) $ECHO_C" >&6
1329 else
1330   ac_cv_host_alias=$host_alias
1331 test -z "$ac_cv_host_alias" &&
1332   ac_cv_host_alias=$ac_cv_build_alias
1333 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1334   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1335 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1336    { (exit 1); exit 1; }; }
1337
1338 fi
1339 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1340 echo "${ECHO_T}$ac_cv_host" >&6
1341 host=$ac_cv_host
1342 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1343 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1344 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1345
1346
1347 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1348 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1349 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1350 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1351   echo $ECHO_N "(cached) $ECHO_C" >&6
1352 else
1353   cat >conftest.make <<\_ACEOF
1354 all:
1355         @echo 'ac_maketemp="${MAKE}"'
1356 _ACEOF
1357 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1358 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1359 if test -n "$ac_maketemp"; then
1360   eval ac_cv_prog_make_${ac_make}_set=yes
1361 else
1362   eval ac_cv_prog_make_${ac_make}_set=no
1363 fi
1364 rm -f conftest.make
1365 fi
1366 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1367   echo "$as_me:$LINENO: result: yes" >&5
1368 echo "${ECHO_T}yes" >&6
1369   SET_MAKE=
1370 else
1371   echo "$as_me:$LINENO: result: no" >&5
1372 echo "${ECHO_T}no" >&6
1373   SET_MAKE="MAKE=${MAKE-make}"
1374 fi
1375
1376 ac_ext=c
1377 ac_cpp='$CPP $CPPFLAGS'
1378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1381 if test -n "$ac_tool_prefix"; then
1382   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1383 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1384 echo "$as_me:$LINENO: checking for $ac_word" >&5
1385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1386 if test "${ac_cv_prog_CC+set}" = set; then
1387   echo $ECHO_N "(cached) $ECHO_C" >&6
1388 else
1389   if test -n "$CC"; then
1390   ac_cv_prog_CC="$CC" # Let the user override the test.
1391 else
1392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1393 for as_dir in $PATH
1394 do
1395   IFS=$as_save_IFS
1396   test -z "$as_dir" && as_dir=.
1397   for ac_exec_ext in '' $ac_executable_extensions; do
1398   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1399     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1401     break 2
1402   fi
1403 done
1404 done
1405
1406 fi
1407 fi
1408 CC=$ac_cv_prog_CC
1409 if test -n "$CC"; then
1410   echo "$as_me:$LINENO: result: $CC" >&5
1411 echo "${ECHO_T}$CC" >&6
1412 else
1413   echo "$as_me:$LINENO: result: no" >&5
1414 echo "${ECHO_T}no" >&6
1415 fi
1416
1417 fi
1418 if test -z "$ac_cv_prog_CC"; then
1419   ac_ct_CC=$CC
1420   # Extract the first word of "gcc", so it can be a program name with args.
1421 set dummy gcc; ac_word=$2
1422 echo "$as_me:$LINENO: checking for $ac_word" >&5
1423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1424 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1425   echo $ECHO_N "(cached) $ECHO_C" >&6
1426 else
1427   if test -n "$ac_ct_CC"; then
1428   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1429 else
1430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431 for as_dir in $PATH
1432 do
1433   IFS=$as_save_IFS
1434   test -z "$as_dir" && as_dir=.
1435   for ac_exec_ext in '' $ac_executable_extensions; do
1436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1437     ac_cv_prog_ac_ct_CC="gcc"
1438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1439     break 2
1440   fi
1441 done
1442 done
1443
1444 fi
1445 fi
1446 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1447 if test -n "$ac_ct_CC"; then
1448   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1449 echo "${ECHO_T}$ac_ct_CC" >&6
1450 else
1451   echo "$as_me:$LINENO: result: no" >&5
1452 echo "${ECHO_T}no" >&6
1453 fi
1454
1455   CC=$ac_ct_CC
1456 else
1457   CC="$ac_cv_prog_CC"
1458 fi
1459
1460 if test -z "$CC"; then
1461   if test -n "$ac_tool_prefix"; then
1462   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1463 set dummy ${ac_tool_prefix}cc; ac_word=$2
1464 echo "$as_me:$LINENO: checking for $ac_word" >&5
1465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466 if test "${ac_cv_prog_CC+set}" = set; then
1467   echo $ECHO_N "(cached) $ECHO_C" >&6
1468 else
1469   if test -n "$CC"; then
1470   ac_cv_prog_CC="$CC" # Let the user override the test.
1471 else
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473 for as_dir in $PATH
1474 do
1475   IFS=$as_save_IFS
1476   test -z "$as_dir" && as_dir=.
1477   for ac_exec_ext in '' $ac_executable_extensions; do
1478   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479     ac_cv_prog_CC="${ac_tool_prefix}cc"
1480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481     break 2
1482   fi
1483 done
1484 done
1485
1486 fi
1487 fi
1488 CC=$ac_cv_prog_CC
1489 if test -n "$CC"; then
1490   echo "$as_me:$LINENO: result: $CC" >&5
1491 echo "${ECHO_T}$CC" >&6
1492 else
1493   echo "$as_me:$LINENO: result: no" >&5
1494 echo "${ECHO_T}no" >&6
1495 fi
1496
1497 fi
1498 if test -z "$ac_cv_prog_CC"; then
1499   ac_ct_CC=$CC
1500   # Extract the first word of "cc", so it can be a program name with args.
1501 set dummy cc; ac_word=$2
1502 echo "$as_me:$LINENO: checking for $ac_word" >&5
1503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1505   echo $ECHO_N "(cached) $ECHO_C" >&6
1506 else
1507   if test -n "$ac_ct_CC"; then
1508   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1509 else
1510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511 for as_dir in $PATH
1512 do
1513   IFS=$as_save_IFS
1514   test -z "$as_dir" && as_dir=.
1515   for ac_exec_ext in '' $ac_executable_extensions; do
1516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517     ac_cv_prog_ac_ct_CC="cc"
1518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519     break 2
1520   fi
1521 done
1522 done
1523
1524 fi
1525 fi
1526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1527 if test -n "$ac_ct_CC"; then
1528   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1529 echo "${ECHO_T}$ac_ct_CC" >&6
1530 else
1531   echo "$as_me:$LINENO: result: no" >&5
1532 echo "${ECHO_T}no" >&6
1533 fi
1534
1535   CC=$ac_ct_CC
1536 else
1537   CC="$ac_cv_prog_CC"
1538 fi
1539
1540 fi
1541 if test -z "$CC"; then
1542   # Extract the first word of "cc", so it can be a program name with args.
1543 set dummy cc; ac_word=$2
1544 echo "$as_me:$LINENO: checking for $ac_word" >&5
1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546 if test "${ac_cv_prog_CC+set}" = set; then
1547   echo $ECHO_N "(cached) $ECHO_C" >&6
1548 else
1549   if test -n "$CC"; then
1550   ac_cv_prog_CC="$CC" # Let the user override the test.
1551 else
1552   ac_prog_rejected=no
1553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 for as_dir in $PATH
1555 do
1556   IFS=$as_save_IFS
1557   test -z "$as_dir" && as_dir=.
1558   for ac_exec_ext in '' $ac_executable_extensions; do
1559   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1560     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1561        ac_prog_rejected=yes
1562        continue
1563      fi
1564     ac_cv_prog_CC="cc"
1565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566     break 2
1567   fi
1568 done
1569 done
1570
1571 if test $ac_prog_rejected = yes; then
1572   # We found a bogon in the path, so make sure we never use it.
1573   set dummy $ac_cv_prog_CC
1574   shift
1575   if test $# != 0; then
1576     # We chose a different compiler from the bogus one.
1577     # However, it has the same basename, so the bogon will be chosen
1578     # first if we set CC to just the basename; use the full file name.
1579     shift
1580     set dummy "$as_dir/$ac_word" ${1+"$@"}
1581     shift
1582     ac_cv_prog_CC="$@"
1583   fi
1584 fi
1585 fi
1586 fi
1587 CC=$ac_cv_prog_CC
1588 if test -n "$CC"; then
1589   echo "$as_me:$LINENO: result: $CC" >&5
1590 echo "${ECHO_T}$CC" >&6
1591 else
1592   echo "$as_me:$LINENO: result: no" >&5
1593 echo "${ECHO_T}no" >&6
1594 fi
1595
1596 fi
1597 if test -z "$CC"; then
1598   if test -n "$ac_tool_prefix"; then
1599   for ac_prog in cl
1600   do
1601     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1603 echo "$as_me:$LINENO: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_CC+set}" = set; then
1606   echo $ECHO_N "(cached) $ECHO_C" >&6
1607 else
1608   if test -n "$CC"; then
1609   ac_cv_prog_CC="$CC" # Let the user override the test.
1610 else
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1613 do
1614   IFS=$as_save_IFS
1615   test -z "$as_dir" && as_dir=.
1616   for ac_exec_ext in '' $ac_executable_extensions; do
1617   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620     break 2
1621   fi
1622 done
1623 done
1624
1625 fi
1626 fi
1627 CC=$ac_cv_prog_CC
1628 if test -n "$CC"; then
1629   echo "$as_me:$LINENO: result: $CC" >&5
1630 echo "${ECHO_T}$CC" >&6
1631 else
1632   echo "$as_me:$LINENO: result: no" >&5
1633 echo "${ECHO_T}no" >&6
1634 fi
1635
1636     test -n "$CC" && break
1637   done
1638 fi
1639 if test -z "$CC"; then
1640   ac_ct_CC=$CC
1641   for ac_prog in cl
1642 do
1643   # Extract the first word of "$ac_prog", so it can be a program name with args.
1644 set dummy $ac_prog; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648   echo $ECHO_N "(cached) $ECHO_C" >&6
1649 else
1650   if test -n "$ac_ct_CC"; then
1651   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 else
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 for as_dir in $PATH
1655 do
1656   IFS=$as_save_IFS
1657   test -z "$as_dir" && as_dir=.
1658   for ac_exec_ext in '' $ac_executable_extensions; do
1659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660     ac_cv_prog_ac_ct_CC="$ac_prog"
1661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662     break 2
1663   fi
1664 done
1665 done
1666
1667 fi
1668 fi
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1673 else
1674   echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1676 fi
1677
1678   test -n "$ac_ct_CC" && break
1679 done
1680
1681   CC=$ac_ct_CC
1682 fi
1683
1684 fi
1685
1686
1687 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1688 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1689    { (exit 1); exit 1; }; }
1690
1691 # Provide some information about the compiler.
1692 echo "$as_me:$LINENO:" \
1693      "checking for C compiler version" >&5
1694 ac_compiler=`set X $ac_compile; echo $2`
1695 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1696   (eval $ac_compiler --version </dev/null >&5) 2>&5
1697   ac_status=$?
1698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1699   (exit $ac_status); }
1700 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1701   (eval $ac_compiler -v </dev/null >&5) 2>&5
1702   ac_status=$?
1703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1704   (exit $ac_status); }
1705 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1706   (eval $ac_compiler -V </dev/null >&5) 2>&5
1707   ac_status=$?
1708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1709   (exit $ac_status); }
1710
1711 cat >conftest.$ac_ext <<_ACEOF
1712 #line $LINENO "configure"
1713 #include "confdefs.h"
1714
1715 #ifdef F77_DUMMY_MAIN
1716 #  ifdef __cplusplus
1717      extern "C"
1718 #  endif
1719    int F77_DUMMY_MAIN() { return 1; }
1720 #endif
1721 int
1722 main ()
1723 {
1724
1725   ;
1726   return 0;
1727 }
1728 _ACEOF
1729 ac_clean_files_save=$ac_clean_files
1730 ac_clean_files="$ac_clean_files a.out a.exe"
1731 # Try to create an executable without -o first, disregard a.out.
1732 # It will help us diagnose broken compilers, and finding out an intuition
1733 # of exeext.
1734 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1735 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1736 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1737 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1738   (eval $ac_link_default) 2>&5
1739   ac_status=$?
1740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741   (exit $ac_status); }; then
1742   # Find the output, starting from the most likely.  This scheme is
1743 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1744 # resort.
1745
1746 # Be careful to initialize this variable, since it used to be cached.
1747 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1748 ac_cv_exeext=
1749 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1750                 ls a.out conftest 2>/dev/null;
1751                 ls a.* conftest.* 2>/dev/null`; do
1752   case $ac_file in
1753     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1754     a.out ) # We found the default executable, but exeext='' is most
1755             # certainly right.
1756             break;;
1757     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1758           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1759           export ac_cv_exeext
1760           break;;
1761     * ) break;;
1762   esac
1763 done
1764 else
1765   echo "$as_me: failed program was:" >&5
1766 cat conftest.$ac_ext >&5
1767 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1768 echo "$as_me: error: C compiler cannot create executables" >&2;}
1769    { (exit 77); exit 77; }; }
1770 fi
1771
1772 ac_exeext=$ac_cv_exeext
1773 echo "$as_me:$LINENO: result: $ac_file" >&5
1774 echo "${ECHO_T}$ac_file" >&6
1775
1776 # Check the compiler produces executables we can run.  If not, either
1777 # the compiler is broken, or we cross compile.
1778 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1779 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1780 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1781 # If not cross compiling, check that we can run a simple program.
1782 if test "$cross_compiling" != yes; then
1783   if { ac_try='./$ac_file'
1784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1785   (eval $ac_try) 2>&5
1786   ac_status=$?
1787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788   (exit $ac_status); }; }; then
1789     cross_compiling=no
1790   else
1791     if test "$cross_compiling" = maybe; then
1792         cross_compiling=yes
1793     else
1794         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1795 If you meant to cross compile, use \`--host'." >&5
1796 echo "$as_me: error: cannot run C compiled programs.
1797 If you meant to cross compile, use \`--host'." >&2;}
1798    { (exit 1); exit 1; }; }
1799     fi
1800   fi
1801 fi
1802 echo "$as_me:$LINENO: result: yes" >&5
1803 echo "${ECHO_T}yes" >&6
1804
1805 rm -f a.out a.exe conftest$ac_cv_exeext
1806 ac_clean_files=$ac_clean_files_save
1807 # Check the compiler produces executables we can run.  If not, either
1808 # the compiler is broken, or we cross compile.
1809 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1810 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1811 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1812 echo "${ECHO_T}$cross_compiling" >&6
1813
1814 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1815 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1817   (eval $ac_link) 2>&5
1818   ac_status=$?
1819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820   (exit $ac_status); }; then
1821   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1822 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1823 # work properly (i.e., refer to `conftest.exe'), while it won't with
1824 # `rm'.
1825 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1826   case $ac_file in
1827     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1828     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1829           export ac_cv_exeext
1830           break;;
1831     * ) break;;
1832   esac
1833 done
1834 else
1835   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1836 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1837    { (exit 1); exit 1; }; }
1838 fi
1839
1840 rm -f conftest$ac_cv_exeext
1841 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1842 echo "${ECHO_T}$ac_cv_exeext" >&6
1843
1844 rm -f conftest.$ac_ext
1845 EXEEXT=$ac_cv_exeext
1846 ac_exeext=$EXEEXT
1847 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1848 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1849 if test "${ac_cv_objext+set}" = set; then
1850   echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852   cat >conftest.$ac_ext <<_ACEOF
1853 #line $LINENO "configure"
1854 #include "confdefs.h"
1855
1856 #ifdef F77_DUMMY_MAIN
1857 #  ifdef __cplusplus
1858      extern "C"
1859 #  endif
1860    int F77_DUMMY_MAIN() { return 1; }
1861 #endif
1862 int
1863 main ()
1864 {
1865
1866   ;
1867   return 0;
1868 }
1869 _ACEOF
1870 rm -f conftest.o conftest.obj
1871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1872   (eval $ac_compile) 2>&5
1873   ac_status=$?
1874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875   (exit $ac_status); }; then
1876   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1877   case $ac_file in
1878     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1879     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1880        break;;
1881   esac
1882 done
1883 else
1884   echo "$as_me: failed program was:" >&5
1885 cat conftest.$ac_ext >&5
1886 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1887 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1888    { (exit 1); exit 1; }; }
1889 fi
1890
1891 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1892 fi
1893 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1894 echo "${ECHO_T}$ac_cv_objext" >&6
1895 OBJEXT=$ac_cv_objext
1896 ac_objext=$OBJEXT
1897 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1898 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1899 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1900   echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902   cat >conftest.$ac_ext <<_ACEOF
1903 #line $LINENO "configure"
1904 #include "confdefs.h"
1905
1906 #ifdef F77_DUMMY_MAIN
1907 #  ifdef __cplusplus
1908      extern "C"
1909 #  endif
1910    int F77_DUMMY_MAIN() { return 1; }
1911 #endif
1912 int
1913 main ()
1914 {
1915 #ifndef __GNUC__
1916        choke me
1917 #endif
1918
1919   ;
1920   return 0;
1921 }
1922 _ACEOF
1923 rm -f conftest.$ac_objext
1924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1925   (eval $ac_compile) 2>&5
1926   ac_status=$?
1927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928   (exit $ac_status); } &&
1929          { ac_try='test -s conftest.$ac_objext'
1930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1931   (eval $ac_try) 2>&5
1932   ac_status=$?
1933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934   (exit $ac_status); }; }; then
1935   ac_compiler_gnu=yes
1936 else
1937   echo "$as_me: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1939 ac_compiler_gnu=no
1940 fi
1941 rm -f conftest.$ac_objext conftest.$ac_ext
1942 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1943
1944 fi
1945 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1946 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1947 GCC=`test $ac_compiler_gnu = yes && echo yes`
1948 ac_test_CFLAGS=${CFLAGS+set}
1949 ac_save_CFLAGS=$CFLAGS
1950 CFLAGS="-g"
1951 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1952 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1953 if test "${ac_cv_prog_cc_g+set}" = set; then
1954   echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956   cat >conftest.$ac_ext <<_ACEOF
1957 #line $LINENO "configure"
1958 #include "confdefs.h"
1959
1960 #ifdef F77_DUMMY_MAIN
1961 #  ifdef __cplusplus
1962      extern "C"
1963 #  endif
1964    int F77_DUMMY_MAIN() { return 1; }
1965 #endif
1966 int
1967 main ()
1968 {
1969
1970   ;
1971   return 0;
1972 }
1973 _ACEOF
1974 rm -f conftest.$ac_objext
1975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1976   (eval $ac_compile) 2>&5
1977   ac_status=$?
1978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979   (exit $ac_status); } &&
1980          { ac_try='test -s conftest.$ac_objext'
1981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1982   (eval $ac_try) 2>&5
1983   ac_status=$?
1984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985   (exit $ac_status); }; }; then
1986   ac_cv_prog_cc_g=yes
1987 else
1988   echo "$as_me: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 ac_cv_prog_cc_g=no
1991 fi
1992 rm -f conftest.$ac_objext conftest.$ac_ext
1993 fi
1994 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1995 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1996 if test "$ac_test_CFLAGS" = set; then
1997   CFLAGS=$ac_save_CFLAGS
1998 elif test $ac_cv_prog_cc_g = yes; then
1999   if test "$GCC" = yes; then
2000     CFLAGS="-g -O2"
2001   else
2002     CFLAGS="-g"
2003   fi
2004 else
2005   if test "$GCC" = yes; then
2006     CFLAGS="-O2"
2007   else
2008     CFLAGS=
2009   fi
2010 fi
2011 # Some people use a C++ compiler to compile C.  Since we use `exit',
2012 # in C++ we need to declare it.  In case someone uses the same compiler
2013 # for both compiling C and C++ we need to have the C++ compiler decide
2014 # the declaration of exit, since it's the most demanding environment.
2015 cat >conftest.$ac_ext <<_ACEOF
2016 #ifndef __cplusplus
2017   choke me
2018 #endif
2019 _ACEOF
2020 rm -f conftest.$ac_objext
2021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2022   (eval $ac_compile) 2>&5
2023   ac_status=$?
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); } &&
2026          { ac_try='test -s conftest.$ac_objext'
2027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2028   (eval $ac_try) 2>&5
2029   ac_status=$?
2030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031   (exit $ac_status); }; }; then
2032   for ac_declaration in \
2033    ''\
2034    '#include <stdlib.h>' \
2035    'extern "C" void std::exit (int) throw (); using std::exit;' \
2036    'extern "C" void std::exit (int); using std::exit;' \
2037    'extern "C" void exit (int) throw ();' \
2038    'extern "C" void exit (int);' \
2039    'void exit (int);'
2040 do
2041   cat >conftest.$ac_ext <<_ACEOF
2042 #line $LINENO "configure"
2043 #include "confdefs.h"
2044 #include <stdlib.h>
2045 $ac_declaration
2046 #ifdef F77_DUMMY_MAIN
2047 #  ifdef __cplusplus
2048      extern "C"
2049 #  endif
2050    int F77_DUMMY_MAIN() { return 1; }
2051 #endif
2052 int
2053 main ()
2054 {
2055 exit (42);
2056   ;
2057   return 0;
2058 }
2059 _ACEOF
2060 rm -f conftest.$ac_objext
2061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2062   (eval $ac_compile) 2>&5
2063   ac_status=$?
2064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065   (exit $ac_status); } &&
2066          { ac_try='test -s conftest.$ac_objext'
2067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068   (eval $ac_try) 2>&5
2069   ac_status=$?
2070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071   (exit $ac_status); }; }; then
2072   :
2073 else
2074   echo "$as_me: failed program was:" >&5
2075 cat conftest.$ac_ext >&5
2076 continue
2077 fi
2078 rm -f conftest.$ac_objext conftest.$ac_ext
2079   cat >conftest.$ac_ext <<_ACEOF
2080 #line $LINENO "configure"
2081 #include "confdefs.h"
2082 $ac_declaration
2083 #ifdef F77_DUMMY_MAIN
2084 #  ifdef __cplusplus
2085      extern "C"
2086 #  endif
2087    int F77_DUMMY_MAIN() { return 1; }
2088 #endif
2089 int
2090 main ()
2091 {
2092 exit (42);
2093   ;
2094   return 0;
2095 }
2096 _ACEOF
2097 rm -f conftest.$ac_objext
2098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2099   (eval $ac_compile) 2>&5
2100   ac_status=$?
2101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102   (exit $ac_status); } &&
2103          { ac_try='test -s conftest.$ac_objext'
2104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105   (eval $ac_try) 2>&5
2106   ac_status=$?
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); }; }; then
2109   break
2110 else
2111   echo "$as_me: failed program was:" >&5
2112 cat conftest.$ac_ext >&5
2113 fi
2114 rm -f conftest.$ac_objext conftest.$ac_ext
2115 done
2116 rm -f conftest*
2117 if test -n "$ac_declaration"; then
2118   echo '#ifdef __cplusplus' >>confdefs.h
2119   echo $ac_declaration      >>confdefs.h
2120   echo '#endif'             >>confdefs.h
2121 fi
2122
2123 else
2124   echo "$as_me: failed program was:" >&5
2125 cat conftest.$ac_ext >&5
2126 fi
2127 rm -f conftest.$ac_objext conftest.$ac_ext
2128 ac_ext=c
2129 ac_cpp='$CPP $CPPFLAGS'
2130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2133
2134 ac_ext=c
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2140 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2141 # On Suns, sometimes $CPP names a directory.
2142 if test -n "$CPP" && test -d "$CPP"; then
2143   CPP=
2144 fi
2145 if test -z "$CPP"; then
2146   if test "${ac_cv_prog_CPP+set}" = set; then
2147   echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149       # Double quotes because CPP needs to be expanded
2150     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2151     do
2152       ac_preproc_ok=false
2153 for ac_c_preproc_warn_flag in '' yes
2154 do
2155   # Use a header file that comes with gcc, so configuring glibc
2156   # with a fresh cross-compiler works.
2157   # On the NeXT, cc -E runs the code through the compiler's parser,
2158   # not just through cpp. "Syntax error" is here to catch this case.
2159   cat >conftest.$ac_ext <<_ACEOF
2160 #line $LINENO "configure"
2161 #include "confdefs.h"
2162 #include <assert.h>
2163                      Syntax error
2164 _ACEOF
2165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2166   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2167   ac_status=$?
2168   egrep -v '^ *\+' conftest.er1 >conftest.err
2169   rm -f conftest.er1
2170   cat conftest.err >&5
2171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172   (exit $ac_status); } >/dev/null; then
2173   if test -s conftest.err; then
2174     ac_cpp_err=$ac_c_preproc_warn_flag
2175   else
2176     ac_cpp_err=
2177   fi
2178 else
2179   ac_cpp_err=yes
2180 fi
2181 if test -z "$ac_cpp_err"; then
2182   :
2183 else
2184   echo "$as_me: failed program was:" >&5
2185   cat conftest.$ac_ext >&5
2186   # Broken: fails on valid input.
2187 continue
2188 fi
2189 rm -f conftest.err conftest.$ac_ext
2190
2191   # OK, works on sane cases.  Now check whether non-existent headers
2192   # can be detected and how.
2193   cat >conftest.$ac_ext <<_ACEOF
2194 #line $LINENO "configure"
2195 #include "confdefs.h"
2196 #include <ac_nonexistent.h>
2197 _ACEOF
2198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2199   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2200   ac_status=$?
2201   egrep -v '^ *\+' conftest.er1 >conftest.err
2202   rm -f conftest.er1
2203   cat conftest.err >&5
2204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205   (exit $ac_status); } >/dev/null; then
2206   if test -s conftest.err; then
2207     ac_cpp_err=$ac_c_preproc_warn_flag
2208   else
2209     ac_cpp_err=
2210   fi
2211 else
2212   ac_cpp_err=yes
2213 fi
2214 if test -z "$ac_cpp_err"; then
2215   # Broken: success on invalid input.
2216 continue
2217 else
2218   echo "$as_me: failed program was:" >&5
2219   cat conftest.$ac_ext >&5
2220   # Passes both tests.
2221 ac_preproc_ok=:
2222 break
2223 fi
2224 rm -f conftest.err conftest.$ac_ext
2225
2226 done
2227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2228 rm -f conftest.err conftest.$ac_ext
2229 if $ac_preproc_ok; then
2230   break
2231 fi
2232
2233     done
2234     ac_cv_prog_CPP=$CPP
2235
2236 fi
2237   CPP=$ac_cv_prog_CPP
2238 else
2239   ac_cv_prog_CPP=$CPP
2240 fi
2241 echo "$as_me:$LINENO: result: $CPP" >&5
2242 echo "${ECHO_T}$CPP" >&6
2243 ac_preproc_ok=false
2244 for ac_c_preproc_warn_flag in '' yes
2245 do
2246   # Use a header file that comes with gcc, so configuring glibc
2247   # with a fresh cross-compiler works.
2248   # On the NeXT, cc -E runs the code through the compiler's parser,
2249   # not just through cpp. "Syntax error" is here to catch this case.
2250   cat >conftest.$ac_ext <<_ACEOF
2251 #line $LINENO "configure"
2252 #include "confdefs.h"
2253 #include <assert.h>
2254                      Syntax error
2255 _ACEOF
2256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2257   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2258   ac_status=$?
2259   egrep -v '^ *\+' conftest.er1 >conftest.err
2260   rm -f conftest.er1
2261   cat conftest.err >&5
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); } >/dev/null; then
2264   if test -s conftest.err; then
2265     ac_cpp_err=$ac_c_preproc_warn_flag
2266   else
2267     ac_cpp_err=
2268   fi
2269 else
2270   ac_cpp_err=yes
2271 fi
2272 if test -z "$ac_cpp_err"; then
2273   :
2274 else
2275   echo "$as_me: failed program was:" >&5
2276   cat conftest.$ac_ext >&5
2277   # Broken: fails on valid input.
2278 continue
2279 fi
2280 rm -f conftest.err conftest.$ac_ext
2281
2282   # OK, works on sane cases.  Now check whether non-existent headers
2283   # can be detected and how.
2284   cat >conftest.$ac_ext <<_ACEOF
2285 #line $LINENO "configure"
2286 #include "confdefs.h"
2287 #include <ac_nonexistent.h>
2288 _ACEOF
2289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2290   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2291   ac_status=$?
2292   egrep -v '^ *\+' conftest.er1 >conftest.err
2293   rm -f conftest.er1
2294   cat conftest.err >&5
2295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296   (exit $ac_status); } >/dev/null; then
2297   if test -s conftest.err; then
2298     ac_cpp_err=$ac_c_preproc_warn_flag
2299   else
2300     ac_cpp_err=
2301   fi
2302 else
2303   ac_cpp_err=yes
2304 fi
2305 if test -z "$ac_cpp_err"; then
2306   # Broken: success on invalid input.
2307 continue
2308 else
2309   echo "$as_me: failed program was:" >&5
2310   cat conftest.$ac_ext >&5
2311   # Passes both tests.
2312 ac_preproc_ok=:
2313 break
2314 fi
2315 rm -f conftest.err conftest.$ac_ext
2316
2317 done
2318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2319 rm -f conftest.err conftest.$ac_ext
2320 if $ac_preproc_ok; then
2321   :
2322 else
2323   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2324 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2325    { (exit 1); exit 1; }; }
2326 fi
2327
2328 ac_ext=c
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333
2334
2335 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2336 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2337 if test "${wine_cv_toolsdir+set}" = set; then
2338   echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340   if test -z "$with_wine_tools"; then
2341      if test "$cross_compiling" = "yes"; then
2342        { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2343 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2344    { (exit 1); exit 1; }; }
2345      else
2346        wine_cv_toolsdir="\$(TOPOBJDIR)"
2347      fi
2348    elif test -d "$with_wine_tools/tools/winebuild"; then
2349      case $with_wine_tools in
2350        /*) wine_cv_toolsdir="$with_wine_tools" ;;
2351        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2352      esac
2353    else
2354      { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2355 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2356    { (exit 1); exit 1; }; }
2357    fi
2358 fi
2359 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2360 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2361 TOOLSDIR=$wine_cv_toolsdir
2362
2363
2364
2365
2366 echo "$as_me:$LINENO: checking for X" >&5
2367 echo $ECHO_N "checking for X... $ECHO_C" >&6
2368
2369
2370 # Check whether --with-x or --without-x was given.
2371 if test "${with_x+set}" = set; then
2372   withval="$with_x"
2373
2374 fi;
2375 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2376 if test "x$with_x" = xno; then
2377   # The user explicitly disabled X.
2378   have_x=disabled
2379 else
2380   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2381     # Both variables are already set.
2382     have_x=yes
2383   else
2384     if test "${ac_cv_have_x+set}" = set; then
2385   echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387   # One or both of the vars are not set, and there is no cached value.
2388 ac_x_includes=no ac_x_libraries=no
2389 rm -fr conftest.dir
2390 if mkdir conftest.dir; then
2391   cd conftest.dir
2392   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2393   cat >Imakefile <<'_ACEOF'
2394 acfindx:
2395         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2396 _ACEOF
2397   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2398     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2399     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2400     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2401     for ac_extension in a so sl; do
2402       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2403          test -f $ac_im_libdir/libX11.$ac_extension; then
2404         ac_im_usrlibdir=$ac_im_libdir; break
2405       fi
2406     done
2407     # Screen out bogus values from the imake configuration.  They are
2408     # bogus both because they are the default anyway, and because
2409     # using them would break gcc on systems where it needs fixed includes.
2410     case $ac_im_incroot in
2411         /usr/include) ;;
2412         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2413     esac
2414     case $ac_im_usrlibdir in
2415         /usr/lib | /lib) ;;
2416         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2417     esac
2418   fi
2419   cd ..
2420   rm -fr conftest.dir
2421 fi
2422
2423 # Standard set of common directories for X headers.
2424 # Check X11 before X11Rn because it is often a symlink to the current release.
2425 ac_x_header_dirs='
2426 /usr/X11/include
2427 /usr/X11R6/include
2428 /usr/X11R5/include
2429 /usr/X11R4/include
2430
2431 /usr/include/X11
2432 /usr/include/X11R6
2433 /usr/include/X11R5
2434 /usr/include/X11R4
2435
2436 /usr/local/X11/include
2437 /usr/local/X11R6/include
2438 /usr/local/X11R5/include
2439 /usr/local/X11R4/include
2440
2441 /usr/local/include/X11
2442 /usr/local/include/X11R6
2443 /usr/local/include/X11R5
2444 /usr/local/include/X11R4
2445
2446 /usr/X386/include
2447 /usr/x386/include
2448 /usr/XFree86/include/X11
2449
2450 /usr/include
2451 /usr/local/include
2452 /usr/unsupported/include
2453 /usr/athena/include
2454 /usr/local/x11r5/include
2455 /usr/lpp/Xamples/include
2456
2457 /usr/openwin/include
2458 /usr/openwin/share/include'
2459
2460 if test "$ac_x_includes" = no; then
2461   # Guess where to find include files, by looking for Intrinsic.h.
2462   # First, try using that file with no special directory specified.
2463   cat >conftest.$ac_ext <<_ACEOF
2464 #line $LINENO "configure"
2465 #include "confdefs.h"
2466 #include <X11/Intrinsic.h>
2467 _ACEOF
2468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2469   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2470   ac_status=$?
2471   egrep -v '^ *\+' conftest.er1 >conftest.err
2472   rm -f conftest.er1
2473   cat conftest.err >&5
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); } >/dev/null; then
2476   if test -s conftest.err; then
2477     ac_cpp_err=$ac_c_preproc_warn_flag
2478   else
2479     ac_cpp_err=
2480   fi
2481 else
2482   ac_cpp_err=yes
2483 fi
2484 if test -z "$ac_cpp_err"; then
2485   # We can compile using X headers with no special include directory.
2486 ac_x_includes=
2487 else
2488   echo "$as_me: failed program was:" >&5
2489   cat conftest.$ac_ext >&5
2490   for ac_dir in $ac_x_header_dirs; do
2491   if test -r "$ac_dir/X11/Intrinsic.h"; then
2492     ac_x_includes=$ac_dir
2493     break
2494   fi
2495 done
2496 fi
2497 rm -f conftest.err conftest.$ac_ext
2498 fi # $ac_x_includes = no
2499
2500 if test "$ac_x_libraries" = no; then
2501   # Check for the libraries.
2502   # See if we find them without any special options.
2503   # Don't add to $LIBS permanently.
2504   ac_save_LIBS=$LIBS
2505   LIBS="-lXt $LIBS"
2506   cat >conftest.$ac_ext <<_ACEOF
2507 #line $LINENO "configure"
2508 #include "confdefs.h"
2509 #include <X11/Intrinsic.h>
2510 #ifdef F77_DUMMY_MAIN
2511 #  ifdef __cplusplus
2512      extern "C"
2513 #  endif
2514    int F77_DUMMY_MAIN() { return 1; }
2515 #endif
2516 int
2517 main ()
2518 {
2519 XtMalloc (0)
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 rm -f conftest.$ac_objext conftest$ac_exeext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2526   (eval $ac_link) 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); } &&
2530          { ac_try='test -s conftest$ac_exeext'
2531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532   (eval $ac_try) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; }; then
2536   LIBS=$ac_save_LIBS
2537 # We can link X programs with no special library path.
2538 ac_x_libraries=
2539 else
2540   echo "$as_me: failed program was:" >&5
2541 cat conftest.$ac_ext >&5
2542 LIBS=$ac_save_LIBS
2543 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2544 do
2545   # Don't even attempt the hair of trying to link an X program!
2546   for ac_extension in a so sl; do
2547     if test -r $ac_dir/libXt.$ac_extension; then
2548       ac_x_libraries=$ac_dir
2549       break 2
2550     fi
2551   done
2552 done
2553 fi
2554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2555 fi # $ac_x_libraries = no
2556
2557 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2558   # Didn't find X anywhere.  Cache the known absence of X.
2559   ac_cv_have_x="have_x=no"
2560 else
2561   # Record where we found X for the cache.
2562   ac_cv_have_x="have_x=yes \
2563                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2564 fi
2565 fi
2566
2567   fi
2568   eval "$ac_cv_have_x"
2569 fi # $with_x != no
2570
2571 if test "$have_x" != yes; then
2572   echo "$as_me:$LINENO: result: $have_x" >&5
2573 echo "${ECHO_T}$have_x" >&6
2574   no_x=yes
2575 else
2576   # If each of the values was on the command line, it overrides each guess.
2577   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2578   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2579   # Update the cache value to reflect the command line values.
2580   ac_cv_have_x="have_x=yes \
2581                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2582   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2583 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2584 fi
2585
2586 if test "$no_x" = yes; then
2587   # Not all programs may use this symbol, but it does not hurt to define it.
2588
2589 cat >>confdefs.h <<\_ACEOF
2590 #define X_DISPLAY_MISSING 1
2591 _ACEOF
2592
2593   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2594 else
2595   if test -n "$x_includes"; then
2596     X_CFLAGS="$X_CFLAGS -I$x_includes"
2597   fi
2598
2599   # It would also be nice to do this for all -L options, not just this one.
2600   if test -n "$x_libraries"; then
2601     X_LIBS="$X_LIBS -L$x_libraries"
2602     # For Solaris; some versions of Sun CC require a space after -R and
2603     # others require no space.  Words are not sufficient . . . .
2604     case `(uname -sr) 2>/dev/null` in
2605     "SunOS 5"*)
2606       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2607 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2608       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2609       cat >conftest.$ac_ext <<_ACEOF
2610 #line $LINENO "configure"
2611 #include "confdefs.h"
2612
2613 #ifdef F77_DUMMY_MAIN
2614 #  ifdef __cplusplus
2615      extern "C"
2616 #  endif
2617    int F77_DUMMY_MAIN() { return 1; }
2618 #endif
2619 int
2620 main ()
2621 {
2622
2623   ;
2624   return 0;
2625 }
2626 _ACEOF
2627 rm -f conftest.$ac_objext conftest$ac_exeext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2629   (eval $ac_link) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } &&
2633          { ac_try='test -s conftest$ac_exeext'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; }; then
2639   ac_R_nospace=yes
2640 else
2641   echo "$as_me: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2643 ac_R_nospace=no
2644 fi
2645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2646       if test $ac_R_nospace = yes; then
2647         echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6
2649         X_LIBS="$X_LIBS -R$x_libraries"
2650       else
2651         LIBS="$ac_xsave_LIBS -R $x_libraries"
2652         cat >conftest.$ac_ext <<_ACEOF
2653 #line $LINENO "configure"
2654 #include "confdefs.h"
2655
2656 #ifdef F77_DUMMY_MAIN
2657 #  ifdef __cplusplus
2658      extern "C"
2659 #  endif
2660    int F77_DUMMY_MAIN() { return 1; }
2661 #endif
2662 int
2663 main ()
2664 {
2665
2666   ;
2667   return 0;
2668 }
2669 _ACEOF
2670 rm -f conftest.$ac_objext conftest$ac_exeext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2672   (eval $ac_link) 2>&5
2673   ac_status=$?
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); } &&
2676          { ac_try='test -s conftest$ac_exeext'
2677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678   (eval $ac_try) 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }; }; then
2682   ac_R_space=yes
2683 else
2684   echo "$as_me: failed program was:" >&5
2685 cat conftest.$ac_ext >&5
2686 ac_R_space=no
2687 fi
2688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2689         if test $ac_R_space = yes; then
2690           echo "$as_me:$LINENO: result: yes" >&5
2691 echo "${ECHO_T}yes" >&6
2692           X_LIBS="$X_LIBS -R $x_libraries"
2693         else
2694           echo "$as_me:$LINENO: result: neither works" >&5
2695 echo "${ECHO_T}neither works" >&6
2696         fi
2697       fi
2698       LIBS=$ac_xsave_LIBS
2699     esac
2700   fi
2701
2702   # Check for system-dependent libraries X programs must link with.
2703   # Do this before checking for the system-independent R6 libraries
2704   # (-lICE), since we may need -lsocket or whatever for X linking.
2705
2706   if test "$ISC" = yes; then
2707     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2708   else
2709     # Martyn Johnson says this is needed for Ultrix, if the X
2710     # libraries were built with DECnet support.  And Karl Berry says
2711     # the Alpha needs dnet_stub (dnet does not exist).
2712     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2713     cat >conftest.$ac_ext <<_ACEOF
2714 #line $LINENO "configure"
2715 #include "confdefs.h"
2716
2717 /* Override any gcc2 internal prototype to avoid an error.  */
2718 #ifdef __cplusplus
2719 extern "C"
2720 #endif
2721 /* We use char because int might match the return type of a gcc2
2722    builtin and then its argument prototype would still apply.  */
2723 char XOpenDisplay ();
2724 #ifdef F77_DUMMY_MAIN
2725 #  ifdef __cplusplus
2726      extern "C"
2727 #  endif
2728    int F77_DUMMY_MAIN() { return 1; }
2729 #endif
2730 int
2731 main ()
2732 {
2733 XOpenDisplay ();
2734   ;
2735   return 0;
2736 }
2737 _ACEOF
2738 rm -f conftest.$ac_objext conftest$ac_exeext
2739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2740   (eval $ac_link) 2>&5
2741   ac_status=$?
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); } &&
2744          { ac_try='test -s conftest$ac_exeext'
2745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746   (eval $ac_try) 2>&5
2747   ac_status=$?
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); }; }; then
2750   :
2751 else
2752   echo "$as_me: failed program was:" >&5
2753 cat conftest.$ac_ext >&5
2754 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2755 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2756 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2757   echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759   ac_check_lib_save_LIBS=$LIBS
2760 LIBS="-ldnet  $LIBS"
2761 cat >conftest.$ac_ext <<_ACEOF
2762 #line $LINENO "configure"
2763 #include "confdefs.h"
2764
2765 /* Override any gcc2 internal prototype to avoid an error.  */
2766 #ifdef __cplusplus
2767 extern "C"
2768 #endif
2769 /* We use char because int might match the return type of a gcc2
2770    builtin and then its argument prototype would still apply.  */
2771 char dnet_ntoa ();
2772 #ifdef F77_DUMMY_MAIN
2773 #  ifdef __cplusplus
2774      extern "C"
2775 #  endif
2776    int F77_DUMMY_MAIN() { return 1; }
2777 #endif
2778 int
2779 main ()
2780 {
2781 dnet_ntoa ();
2782   ;
2783   return 0;
2784 }
2785 _ACEOF
2786 rm -f conftest.$ac_objext conftest$ac_exeext
2787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2788   (eval $ac_link) 2>&5
2789   ac_status=$?
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); } &&
2792          { ac_try='test -s conftest$ac_exeext'
2793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794   (eval $ac_try) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; }; then
2798   ac_cv_lib_dnet_dnet_ntoa=yes
2799 else
2800   echo "$as_me: failed program was:" >&5
2801 cat conftest.$ac_ext >&5
2802 ac_cv_lib_dnet_dnet_ntoa=no
2803 fi
2804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2805 LIBS=$ac_check_lib_save_LIBS
2806 fi
2807 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2808 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2809 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2810   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2811 fi
2812
2813     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2814       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2815 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2816 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2817   echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819   ac_check_lib_save_LIBS=$LIBS
2820 LIBS="-ldnet_stub  $LIBS"
2821 cat >conftest.$ac_ext <<_ACEOF
2822 #line $LINENO "configure"
2823 #include "confdefs.h"
2824
2825 /* Override any gcc2 internal prototype to avoid an error.  */
2826 #ifdef __cplusplus
2827 extern "C"
2828 #endif
2829 /* We use char because int might match the return type of a gcc2
2830    builtin and then its argument prototype would still apply.  */
2831 char dnet_ntoa ();
2832 #ifdef F77_DUMMY_MAIN
2833 #  ifdef __cplusplus
2834      extern "C"
2835 #  endif
2836    int F77_DUMMY_MAIN() { return 1; }
2837 #endif
2838 int
2839 main ()
2840 {
2841 dnet_ntoa ();
2842   ;
2843   return 0;
2844 }
2845 _ACEOF
2846 rm -f conftest.$ac_objext conftest$ac_exeext
2847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2848   (eval $ac_link) 2>&5
2849   ac_status=$?
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); } &&
2852          { ac_try='test -s conftest$ac_exeext'
2853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854   (eval $ac_try) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); }; }; then
2858   ac_cv_lib_dnet_stub_dnet_ntoa=yes
2859 else
2860   echo "$as_me: failed program was:" >&5
2861 cat conftest.$ac_ext >&5
2862 ac_cv_lib_dnet_stub_dnet_ntoa=no
2863 fi
2864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2865 LIBS=$ac_check_lib_save_LIBS
2866 fi
2867 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2868 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2869 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2870   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2871 fi
2872
2873     fi
2874 fi
2875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2876     LIBS="$ac_xsave_LIBS"
2877
2878     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2879     # to get the SysV transport functions.
2880     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2881     # needs -lnsl.
2882     # The nsl library prevents programs from opening the X display
2883     # on Irix 5.2, according to T.E. Dickey.
2884     # The functions gethostbyname, getservbyname, and inet_addr are
2885     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2886     echo "$as_me:$LINENO: checking for gethostbyname" >&5
2887 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2888 if test "${ac_cv_func_gethostbyname+set}" = set; then
2889   echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891   cat >conftest.$ac_ext <<_ACEOF
2892 #line $LINENO "configure"
2893 #include "confdefs.h"
2894 /* System header to define __stub macros and hopefully few prototypes,
2895     which can conflict with char gethostbyname (); below.  */
2896 #include <assert.h>
2897 /* Override any gcc2 internal prototype to avoid an error.  */
2898 #ifdef __cplusplus
2899 extern "C"
2900 #endif
2901 /* We use char because int might match the return type of a gcc2
2902    builtin and then its argument prototype would still apply.  */
2903 char gethostbyname ();
2904 char (*f) ();
2905
2906 #ifdef F77_DUMMY_MAIN
2907 #  ifdef __cplusplus
2908      extern "C"
2909 #  endif
2910    int F77_DUMMY_MAIN() { return 1; }
2911 #endif
2912 int
2913 main ()
2914 {
2915 /* The GNU C library defines this for functions which it implements
2916     to always fail with ENOSYS.  Some functions are actually named
2917     something starting with __ and the normal name is an alias.  */
2918 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2919 choke me
2920 #else
2921 f = gethostbyname;
2922 #endif
2923
2924   ;
2925   return 0;
2926 }
2927 _ACEOF
2928 rm -f conftest.$ac_objext conftest$ac_exeext
2929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2930   (eval $ac_link) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); } &&
2934          { ac_try='test -s conftest$ac_exeext'
2935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936   (eval $ac_try) 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; }; then
2940   ac_cv_func_gethostbyname=yes
2941 else
2942   echo "$as_me: failed program was:" >&5
2943 cat conftest.$ac_ext >&5
2944 ac_cv_func_gethostbyname=no
2945 fi
2946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2947 fi
2948 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2949 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2950
2951     if test $ac_cv_func_gethostbyname = no; then
2952       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2953 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2954 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2955   echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957   ac_check_lib_save_LIBS=$LIBS
2958 LIBS="-lnsl  $LIBS"
2959 cat >conftest.$ac_ext <<_ACEOF
2960 #line $LINENO "configure"
2961 #include "confdefs.h"
2962
2963 /* Override any gcc2 internal prototype to avoid an error.  */
2964 #ifdef __cplusplus
2965 extern "C"
2966 #endif
2967 /* We use char because int might match the return type of a gcc2
2968    builtin and then its argument prototype would still apply.  */
2969 char gethostbyname ();
2970 #ifdef F77_DUMMY_MAIN
2971 #  ifdef __cplusplus
2972      extern "C"
2973 #  endif
2974    int F77_DUMMY_MAIN() { return 1; }
2975 #endif
2976 int
2977 main ()
2978 {
2979 gethostbyname ();
2980   ;
2981   return 0;
2982 }
2983 _ACEOF
2984 rm -f conftest.$ac_objext conftest$ac_exeext
2985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2986   (eval $ac_link) 2>&5
2987   ac_status=$?
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); } &&
2990          { ac_try='test -s conftest$ac_exeext'
2991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992   (eval $ac_try) 2>&5
2993   ac_status=$?
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); }; }; then
2996   ac_cv_lib_nsl_gethostbyname=yes
2997 else
2998   echo "$as_me: failed program was:" >&5
2999 cat conftest.$ac_ext >&5
3000 ac_cv_lib_nsl_gethostbyname=no
3001 fi
3002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3003 LIBS=$ac_check_lib_save_LIBS
3004 fi
3005 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3006 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3007 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3008   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3009 fi
3010
3011       if test $ac_cv_lib_nsl_gethostbyname = no; then
3012         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3013 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3014 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3015   echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017   ac_check_lib_save_LIBS=$LIBS
3018 LIBS="-lbsd  $LIBS"
3019 cat >conftest.$ac_ext <<_ACEOF
3020 #line $LINENO "configure"
3021 #include "confdefs.h"
3022
3023 /* Override any gcc2 internal prototype to avoid an error.  */
3024 #ifdef __cplusplus
3025 extern "C"
3026 #endif
3027 /* We use char because int might match the return type of a gcc2
3028    builtin and then its argument prototype would still apply.  */
3029 char gethostbyname ();
3030 #ifdef F77_DUMMY_MAIN
3031 #  ifdef __cplusplus
3032      extern "C"
3033 #  endif
3034    int F77_DUMMY_MAIN() { return 1; }
3035 #endif
3036 int
3037 main ()
3038 {
3039 gethostbyname ();
3040   ;
3041   return 0;
3042 }
3043 _ACEOF
3044 rm -f conftest.$ac_objext conftest$ac_exeext
3045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3046   (eval $ac_link) 2>&5
3047   ac_status=$?
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); } &&
3050          { ac_try='test -s conftest$ac_exeext'
3051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052   (eval $ac_try) 2>&5
3053   ac_status=$?
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); }; }; then
3056   ac_cv_lib_bsd_gethostbyname=yes
3057 else
3058   echo "$as_me: failed program was:" >&5
3059 cat conftest.$ac_ext >&5
3060 ac_cv_lib_bsd_gethostbyname=no
3061 fi
3062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3063 LIBS=$ac_check_lib_save_LIBS
3064 fi
3065 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3066 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3067 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3068   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3069 fi
3070
3071       fi
3072     fi
3073
3074     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3075     # socket/setsockopt and other routines are undefined under SCO ODT
3076     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3077     # on later versions), says Simon Leinen: it contains gethostby*
3078     # variants that don't use the nameserver (or something).  -lsocket
3079     # must be given before -lnsl if both are needed.  We assume that
3080     # if connect needs -lnsl, so does gethostbyname.
3081     echo "$as_me:$LINENO: checking for connect" >&5
3082 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3083 if test "${ac_cv_func_connect+set}" = set; then
3084   echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086   cat >conftest.$ac_ext <<_ACEOF
3087 #line $LINENO "configure"
3088 #include "confdefs.h"
3089 /* System header to define __stub macros and hopefully few prototypes,
3090     which can conflict with char connect (); below.  */
3091 #include <assert.h>
3092 /* Override any gcc2 internal prototype to avoid an error.  */
3093 #ifdef __cplusplus
3094 extern "C"
3095 #endif
3096 /* We use char because int might match the return type of a gcc2
3097    builtin and then its argument prototype would still apply.  */
3098 char connect ();
3099 char (*f) ();
3100
3101 #ifdef F77_DUMMY_MAIN
3102 #  ifdef __cplusplus
3103      extern "C"
3104 #  endif
3105    int F77_DUMMY_MAIN() { return 1; }
3106 #endif
3107 int
3108 main ()
3109 {
3110 /* The GNU C library defines this for functions which it implements
3111     to always fail with ENOSYS.  Some functions are actually named
3112     something starting with __ and the normal name is an alias.  */
3113 #if defined (__stub_connect) || defined (__stub___connect)
3114 choke me
3115 #else
3116 f = connect;
3117 #endif
3118
3119   ;
3120   return 0;
3121 }
3122 _ACEOF
3123 rm -f conftest.$ac_objext conftest$ac_exeext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3125   (eval $ac_link) 2>&5
3126   ac_status=$?
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); } &&
3129          { ac_try='test -s conftest$ac_exeext'
3130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131   (eval $ac_try) 2>&5
3132   ac_status=$?
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); }; }; then
3135   ac_cv_func_connect=yes
3136 else
3137   echo "$as_me: failed program was:" >&5
3138 cat conftest.$ac_ext >&5
3139 ac_cv_func_connect=no
3140 fi
3141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3142 fi
3143 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3144 echo "${ECHO_T}$ac_cv_func_connect" >&6
3145
3146     if test $ac_cv_func_connect = no; then
3147       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3148 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3149 if test "${ac_cv_lib_socket_connect+set}" = set; then
3150   echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152   ac_check_lib_save_LIBS=$LIBS
3153 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3154 cat >conftest.$ac_ext <<_ACEOF
3155 #line $LINENO "configure"
3156 #include "confdefs.h"
3157
3158 /* Override any gcc2 internal prototype to avoid an error.  */
3159 #ifdef __cplusplus
3160 extern "C"
3161 #endif
3162 /* We use char because int might match the return type of a gcc2
3163    builtin and then its argument prototype would still apply.  */
3164 char connect ();
3165 #ifdef F77_DUMMY_MAIN
3166 #  ifdef __cplusplus
3167      extern "C"
3168 #  endif
3169    int F77_DUMMY_MAIN() { return 1; }
3170 #endif
3171 int
3172 main ()
3173 {
3174 connect ();
3175   ;
3176   return 0;
3177 }
3178 _ACEOF
3179 rm -f conftest.$ac_objext conftest$ac_exeext
3180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3181   (eval $ac_link) 2>&5
3182   ac_status=$?
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); } &&
3185          { ac_try='test -s conftest$ac_exeext'
3186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187   (eval $ac_try) 2>&5
3188   ac_status=$?
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); }; }; then
3191   ac_cv_lib_socket_connect=yes
3192 else
3193   echo "$as_me: failed program was:" >&5
3194 cat conftest.$ac_ext >&5
3195 ac_cv_lib_socket_connect=no
3196 fi
3197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3198 LIBS=$ac_check_lib_save_LIBS
3199 fi
3200 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3201 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3202 if test $ac_cv_lib_socket_connect = yes; then
3203   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3204 fi
3205
3206     fi
3207
3208     # Guillermo Gomez says -lposix is necessary on A/UX.
3209     echo "$as_me:$LINENO: checking for remove" >&5
3210 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3211 if test "${ac_cv_func_remove+set}" = set; then
3212   echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214   cat >conftest.$ac_ext <<_ACEOF
3215 #line $LINENO "configure"
3216 #include "confdefs.h"
3217 /* System header to define __stub macros and hopefully few prototypes,
3218     which can conflict with char remove (); below.  */
3219 #include <assert.h>
3220 /* Override any gcc2 internal prototype to avoid an error.  */
3221 #ifdef __cplusplus
3222 extern "C"
3223 #endif
3224 /* We use char because int might match the return type of a gcc2
3225    builtin and then its argument prototype would still apply.  */
3226 char remove ();
3227 char (*f) ();
3228
3229 #ifdef F77_DUMMY_MAIN
3230 #  ifdef __cplusplus
3231      extern "C"
3232 #  endif
3233    int F77_DUMMY_MAIN() { return 1; }
3234 #endif
3235 int
3236 main ()
3237 {
3238 /* The GNU C library defines this for functions which it implements
3239     to always fail with ENOSYS.  Some functions are actually named
3240     something starting with __ and the normal name is an alias.  */
3241 #if defined (__stub_remove) || defined (__stub___remove)
3242 choke me
3243 #else
3244 f = remove;
3245 #endif
3246
3247   ;
3248   return 0;
3249 }
3250 _ACEOF
3251 rm -f conftest.$ac_objext conftest$ac_exeext
3252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3253   (eval $ac_link) 2>&5
3254   ac_status=$?
3255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256   (exit $ac_status); } &&
3257          { ac_try='test -s conftest$ac_exeext'
3258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259   (eval $ac_try) 2>&5
3260   ac_status=$?
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); }; }; then
3263   ac_cv_func_remove=yes
3264 else
3265   echo "$as_me: failed program was:" >&5
3266 cat conftest.$ac_ext >&5
3267 ac_cv_func_remove=no
3268 fi
3269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3270 fi
3271 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3272 echo "${ECHO_T}$ac_cv_func_remove" >&6
3273
3274     if test $ac_cv_func_remove = no; then
3275       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3276 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3277 if test "${ac_cv_lib_posix_remove+set}" = set; then
3278   echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280   ac_check_lib_save_LIBS=$LIBS
3281 LIBS="-lposix  $LIBS"
3282 cat >conftest.$ac_ext <<_ACEOF
3283 #line $LINENO "configure"
3284 #include "confdefs.h"
3285
3286 /* Override any gcc2 internal prototype to avoid an error.  */
3287 #ifdef __cplusplus
3288 extern "C"
3289 #endif
3290 /* We use char because int might match the return type of a gcc2
3291    builtin and then its argument prototype would still apply.  */
3292 char remove ();
3293 #ifdef F77_DUMMY_MAIN
3294 #  ifdef __cplusplus
3295      extern "C"
3296 #  endif
3297    int F77_DUMMY_MAIN() { return 1; }
3298 #endif
3299 int
3300 main ()
3301 {
3302 remove ();
3303   ;
3304   return 0;
3305 }
3306 _ACEOF
3307 rm -f conftest.$ac_objext conftest$ac_exeext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3309   (eval $ac_link) 2>&5
3310   ac_status=$?
3311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312   (exit $ac_status); } &&
3313          { ac_try='test -s conftest$ac_exeext'
3314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315   (eval $ac_try) 2>&5
3316   ac_status=$?
3317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); }; }; then
3319   ac_cv_lib_posix_remove=yes
3320 else
3321   echo "$as_me: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3323 ac_cv_lib_posix_remove=no
3324 fi
3325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3326 LIBS=$ac_check_lib_save_LIBS
3327 fi
3328 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3329 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3330 if test $ac_cv_lib_posix_remove = yes; then
3331   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3332 fi
3333
3334     fi
3335
3336     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3337     echo "$as_me:$LINENO: checking for shmat" >&5
3338 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3339 if test "${ac_cv_func_shmat+set}" = set; then
3340   echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342   cat >conftest.$ac_ext <<_ACEOF
3343 #line $LINENO "configure"
3344 #include "confdefs.h"
3345 /* System header to define __stub macros and hopefully few prototypes,
3346     which can conflict with char shmat (); below.  */
3347 #include <assert.h>
3348 /* Override any gcc2 internal prototype to avoid an error.  */
3349 #ifdef __cplusplus
3350 extern "C"
3351 #endif
3352 /* We use char because int might match the return type of a gcc2
3353    builtin and then its argument prototype would still apply.  */
3354 char shmat ();
3355 char (*f) ();
3356
3357 #ifdef F77_DUMMY_MAIN
3358 #  ifdef __cplusplus
3359      extern "C"
3360 #  endif
3361    int F77_DUMMY_MAIN() { return 1; }
3362 #endif
3363 int
3364 main ()
3365 {
3366 /* The GNU C library defines this for functions which it implements
3367     to always fail with ENOSYS.  Some functions are actually named
3368     something starting with __ and the normal name is an alias.  */
3369 #if defined (__stub_shmat) || defined (__stub___shmat)
3370 choke me
3371 #else
3372 f = shmat;
3373 #endif
3374
3375   ;
3376   return 0;
3377 }
3378 _ACEOF
3379 rm -f conftest.$ac_objext conftest$ac_exeext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3381   (eval $ac_link) 2>&5
3382   ac_status=$?
3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384   (exit $ac_status); } &&
3385          { ac_try='test -s conftest$ac_exeext'
3386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387   (eval $ac_try) 2>&5
3388   ac_status=$?
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); }; }; then
3391   ac_cv_func_shmat=yes
3392 else
3393   echo "$as_me: failed program was:" >&5
3394 cat conftest.$ac_ext >&5
3395 ac_cv_func_shmat=no
3396 fi
3397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3398 fi
3399 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3400 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3401
3402     if test $ac_cv_func_shmat = no; then
3403       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3404 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3405 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3406   echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408   ac_check_lib_save_LIBS=$LIBS
3409 LIBS="-lipc  $LIBS"
3410 cat >conftest.$ac_ext <<_ACEOF
3411 #line $LINENO "configure"
3412 #include "confdefs.h"
3413
3414 /* Override any gcc2 internal prototype to avoid an error.  */
3415 #ifdef __cplusplus
3416 extern "C"
3417 #endif
3418 /* We use char because int might match the return type of a gcc2
3419    builtin and then its argument prototype would still apply.  */
3420 char shmat ();
3421 #ifdef F77_DUMMY_MAIN
3422 #  ifdef __cplusplus
3423      extern "C"
3424 #  endif
3425    int F77_DUMMY_MAIN() { return 1; }
3426 #endif
3427 int
3428 main ()
3429 {
3430 shmat ();
3431   ;
3432   return 0;
3433 }
3434 _ACEOF
3435 rm -f conftest.$ac_objext conftest$ac_exeext
3436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3437   (eval $ac_link) 2>&5
3438   ac_status=$?
3439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440   (exit $ac_status); } &&
3441          { ac_try='test -s conftest$ac_exeext'
3442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443   (eval $ac_try) 2>&5
3444   ac_status=$?
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); }; }; then
3447   ac_cv_lib_ipc_shmat=yes
3448 else
3449   echo "$as_me: failed program was:" >&5
3450 cat conftest.$ac_ext >&5
3451 ac_cv_lib_ipc_shmat=no
3452 fi
3453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3454 LIBS=$ac_check_lib_save_LIBS
3455 fi
3456 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3457 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3458 if test $ac_cv_lib_ipc_shmat = yes; then
3459   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3460 fi
3461
3462     fi
3463   fi
3464
3465   # Check for libraries that X11R6 Xt/Xaw programs need.
3466   ac_save_LDFLAGS=$LDFLAGS
3467   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3468   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3469   # check for ICE first), but we must link in the order -lSM -lICE or
3470   # we get undefined symbols.  So assume we have SM if we have ICE.
3471   # These have to be linked with before -lX11, unlike the other
3472   # libraries we check for below, so use a different variable.
3473   # John Interrante, Karl Berry
3474   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3475 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3476 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3477   echo $ECHO_N "(cached) $ECHO_C" >&6
3478 else
3479   ac_check_lib_save_LIBS=$LIBS
3480 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3481 cat >conftest.$ac_ext <<_ACEOF
3482 #line $LINENO "configure"
3483 #include "confdefs.h"
3484
3485 /* Override any gcc2 internal prototype to avoid an error.  */
3486 #ifdef __cplusplus
3487 extern "C"
3488 #endif
3489 /* We use char because int might match the return type of a gcc2
3490    builtin and then its argument prototype would still apply.  */
3491 char IceConnectionNumber ();
3492 #ifdef F77_DUMMY_MAIN
3493 #  ifdef __cplusplus
3494      extern "C"
3495 #  endif
3496    int F77_DUMMY_MAIN() { return 1; }
3497 #endif
3498 int
3499 main ()
3500 {
3501 IceConnectionNumber ();
3502   ;
3503   return 0;
3504 }
3505 _ACEOF
3506 rm -f conftest.$ac_objext conftest$ac_exeext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3508   (eval $ac_link) 2>&5
3509   ac_status=$?
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); } &&
3512          { ac_try='test -s conftest$ac_exeext'
3513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514   (eval $ac_try) 2>&5
3515   ac_status=$?
3516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517   (exit $ac_status); }; }; then
3518   ac_cv_lib_ICE_IceConnectionNumber=yes
3519 else
3520   echo "$as_me: failed program was:" >&5
3521 cat conftest.$ac_ext >&5
3522 ac_cv_lib_ICE_IceConnectionNumber=no
3523 fi
3524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3525 LIBS=$ac_check_lib_save_LIBS
3526 fi
3527 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3528 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3529 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3530   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3531 fi
3532
3533   LDFLAGS=$ac_save_LDFLAGS
3534
3535 fi
3536
3537 for ac_prog in 'bison -y' byacc
3538 do
3539   # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set dummy $ac_prog; ac_word=$2
3541 echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543 if test "${ac_cv_prog_YACC+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   if test -n "$YACC"; then
3547   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3551 do
3552   IFS=$as_save_IFS
3553   test -z "$as_dir" && as_dir=.
3554   for ac_exec_ext in '' $ac_executable_extensions; do
3555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556     ac_cv_prog_YACC="$ac_prog"
3557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3558     break 2
3559   fi
3560 done
3561 done
3562
3563 fi
3564 fi
3565 YACC=$ac_cv_prog_YACC
3566 if test -n "$YACC"; then
3567   echo "$as_me:$LINENO: result: $YACC" >&5
3568 echo "${ECHO_T}$YACC" >&6
3569 else
3570   echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3572 fi
3573
3574   test -n "$YACC" && break
3575 done
3576 test -n "$YACC" || YACC="yacc"
3577
3578 for ac_prog in flex lex
3579 do
3580   # Extract the first word of "$ac_prog", so it can be a program name with args.
3581 set dummy $ac_prog; ac_word=$2
3582 echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584 if test "${ac_cv_prog_LEX+set}" = set; then
3585   echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587   if test -n "$LEX"; then
3588   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595   for ac_exec_ext in '' $ac_executable_extensions; do
3596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597     ac_cv_prog_LEX="$ac_prog"
3598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599     break 2
3600   fi
3601 done
3602 done
3603
3604 fi
3605 fi
3606 LEX=$ac_cv_prog_LEX
3607 if test -n "$LEX"; then
3608   echo "$as_me:$LINENO: result: $LEX" >&5
3609 echo "${ECHO_T}$LEX" >&6
3610 else
3611   echo "$as_me:$LINENO: result: no" >&5
3612 echo "${ECHO_T}no" >&6
3613 fi
3614
3615   test -n "$LEX" && break
3616 done
3617 test -n "$LEX" || LEX=":"
3618
3619 if test -z "$LEXLIB"
3620 then
3621   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3622 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3623 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   ac_check_lib_save_LIBS=$LIBS
3627 LIBS="-lfl  $LIBS"
3628 cat >conftest.$ac_ext <<_ACEOF
3629 #line $LINENO "configure"
3630 #include "confdefs.h"
3631
3632 /* Override any gcc2 internal prototype to avoid an error.  */
3633 #ifdef __cplusplus
3634 extern "C"
3635 #endif
3636 /* We use char because int might match the return type of a gcc2
3637    builtin and then its argument prototype would still apply.  */
3638 char yywrap ();
3639 #ifdef F77_DUMMY_MAIN
3640 #  ifdef __cplusplus
3641      extern "C"
3642 #  endif
3643    int F77_DUMMY_MAIN() { return 1; }
3644 #endif
3645 int
3646 main ()
3647 {
3648 yywrap ();
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_lib_fl_yywrap=yes
3666 else
3667   echo "$as_me: failed program was:" >&5
3668 cat conftest.$ac_ext >&5
3669 ac_cv_lib_fl_yywrap=no
3670 fi
3671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3672 LIBS=$ac_check_lib_save_LIBS
3673 fi
3674 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3675 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3676 if test $ac_cv_lib_fl_yywrap = yes; then
3677   LEXLIB="-lfl"
3678 else
3679   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3680 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3681 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3682   echo $ECHO_N "(cached) $ECHO_C" >&6
3683 else
3684   ac_check_lib_save_LIBS=$LIBS
3685 LIBS="-ll  $LIBS"
3686 cat >conftest.$ac_ext <<_ACEOF
3687 #line $LINENO "configure"
3688 #include "confdefs.h"
3689
3690 /* Override any gcc2 internal prototype to avoid an error.  */
3691 #ifdef __cplusplus
3692 extern "C"
3693 #endif
3694 /* We use char because int might match the return type of a gcc2
3695    builtin and then its argument prototype would still apply.  */
3696 char yywrap ();
3697 #ifdef F77_DUMMY_MAIN
3698 #  ifdef __cplusplus
3699      extern "C"
3700 #  endif
3701    int F77_DUMMY_MAIN() { return 1; }
3702 #endif
3703 int
3704 main ()
3705 {
3706 yywrap ();
3707   ;
3708   return 0;
3709 }
3710 _ACEOF
3711 rm -f conftest.$ac_objext conftest$ac_exeext
3712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3713   (eval $ac_link) 2>&5
3714   ac_status=$?
3715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716   (exit $ac_status); } &&
3717          { ac_try='test -s conftest$ac_exeext'
3718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719   (eval $ac_try) 2>&5
3720   ac_status=$?
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); }; }; then
3723   ac_cv_lib_l_yywrap=yes
3724 else
3725   echo "$as_me: failed program was:" >&5
3726 cat conftest.$ac_ext >&5
3727 ac_cv_lib_l_yywrap=no
3728 fi
3729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3730 LIBS=$ac_check_lib_save_LIBS
3731 fi
3732 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3733 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3734 if test $ac_cv_lib_l_yywrap = yes; then
3735   LEXLIB="-ll"
3736 fi
3737
3738 fi
3739
3740 fi
3741
3742 if test "x$LEX" != "x:"; then
3743   echo "$as_me:$LINENO: checking lex output file root" >&5
3744 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3745 if test "${ac_cv_prog_lex_root+set}" = set; then
3746   echo $ECHO_N "(cached) $ECHO_C" >&6
3747 else
3748   # The minimal lex program is just a single line: %%.  But some broken lexes
3749 # (Solaris, I think it was) want two %% lines, so accommodate them.
3750 cat >conftest.l <<_ACEOF
3751 %%
3752 %%
3753 _ACEOF
3754 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3755   (eval $LEX conftest.l) 2>&5
3756   ac_status=$?
3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758   (exit $ac_status); }
3759 if test -f lex.yy.c; then
3760   ac_cv_prog_lex_root=lex.yy
3761 elif test -f lexyy.c; then
3762   ac_cv_prog_lex_root=lexyy
3763 else
3764   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3765 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3766    { (exit 1); exit 1; }; }
3767 fi
3768 fi
3769 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3770 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3771 rm -f conftest.l
3772 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3773
3774 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3775 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3776 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3777   echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779   # POSIX says lex can declare yytext either as a pointer or an array; the
3780 # default is implementation-dependent. Figure out which it is, since
3781 # not all implementations provide the %pointer and %array declarations.
3782 ac_cv_prog_lex_yytext_pointer=no
3783 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3784 ac_save_LIBS=$LIBS
3785 LIBS="$LIBS $LEXLIB"
3786 cat >conftest.$ac_ext <<_ACEOF
3787 `cat $LEX_OUTPUT_ROOT.c`
3788 _ACEOF
3789 rm -f conftest.$ac_objext conftest$ac_exeext
3790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3791   (eval $ac_link) 2>&5
3792   ac_status=$?
3793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794   (exit $ac_status); } &&
3795          { ac_try='test -s conftest$ac_exeext'
3796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797   (eval $ac_try) 2>&5
3798   ac_status=$?
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); }; }; then
3801   ac_cv_prog_lex_yytext_pointer=yes
3802 else
3803   echo "$as_me: failed program was:" >&5
3804 cat conftest.$ac_ext >&5
3805 fi
3806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3807 LIBS=$ac_save_LIBS
3808 rm -f "${LEX_OUTPUT_ROOT}.c"
3809
3810 fi
3811 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3812 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3813 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3814
3815 cat >>confdefs.h <<\_ACEOF
3816 #define YYTEXT_POINTER 1
3817 _ACEOF
3818
3819 fi
3820
3821 fi
3822
3823 for ac_prog in $YACC bison yacc
3824 do
3825   # Extract the first word of "$ac_prog", so it can be a program name with args.
3826 set dummy $ac_prog; ac_word=$2
3827 echo "$as_me:$LINENO: checking for $ac_word" >&5
3828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3829 if test "${ac_cv_prog_XYACC+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832   if test -n "$XYACC"; then
3833   ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3834 else
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3837 do
3838   IFS=$as_save_IFS
3839   test -z "$as_dir" && as_dir=.
3840   for ac_exec_ext in '' $ac_executable_extensions; do
3841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842     ac_cv_prog_XYACC="$ac_prog"
3843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3844     break 2
3845   fi
3846 done
3847 done
3848
3849 fi
3850 fi
3851 XYACC=$ac_cv_prog_XYACC
3852 if test -n "$XYACC"; then
3853   echo "$as_me:$LINENO: result: $XYACC" >&5
3854 echo "${ECHO_T}$XYACC" >&6
3855 else
3856   echo "$as_me:$LINENO: result: no" >&5
3857 echo "${ECHO_T}no" >&6
3858 fi
3859
3860   test -n "$XYACC" && break
3861 done
3862 test -n "$XYACC" || XYACC="none"
3863
3864 if test "$XYACC" = "none"
3865 then
3866   { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
3867 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3868    { (exit 1); exit 1; }; }
3869 fi
3870 for ac_prog in $LEX flex lex
3871 do
3872   # Extract the first word of "$ac_prog", so it can be a program name with args.
3873 set dummy $ac_prog; ac_word=$2
3874 echo "$as_me:$LINENO: checking for $ac_word" >&5
3875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3876 if test "${ac_cv_prog_XLEX+set}" = set; then
3877   echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879   if test -n "$XLEX"; then
3880   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3881 else
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3884 do
3885   IFS=$as_save_IFS
3886   test -z "$as_dir" && as_dir=.
3887   for ac_exec_ext in '' $ac_executable_extensions; do
3888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3889     ac_cv_prog_XLEX="$ac_prog"
3890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3891     break 2
3892   fi
3893 done
3894 done
3895
3896 fi
3897 fi
3898 XLEX=$ac_cv_prog_XLEX
3899 if test -n "$XLEX"; then
3900   echo "$as_me:$LINENO: result: $XLEX" >&5
3901 echo "${ECHO_T}$XLEX" >&6
3902 else
3903   echo "$as_me:$LINENO: result: no" >&5
3904 echo "${ECHO_T}no" >&6
3905 fi
3906
3907   test -n "$XLEX" && break
3908 done
3909 test -n "$XLEX" || XLEX="none"
3910
3911 if test "$XLEX" = "none"
3912 then
3913   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
3914 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3915    { (exit 1); exit 1; }; }
3916 fi
3917
3918 if test -n "$ac_tool_prefix"; then
3919   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3920 set dummy ${ac_tool_prefix}ld; ac_word=$2
3921 echo "$as_me:$LINENO: checking for $ac_word" >&5
3922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923 if test "${ac_cv_prog_LD+set}" = set; then
3924   echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926   if test -n "$LD"; then
3927   ac_cv_prog_LD="$LD" # Let the user override the test.
3928 else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3931 do
3932   IFS=$as_save_IFS
3933   test -z "$as_dir" && as_dir=.
3934   for ac_exec_ext in '' $ac_executable_extensions; do
3935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936     ac_cv_prog_LD="${ac_tool_prefix}ld"
3937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938     break 2
3939   fi
3940 done
3941 done
3942
3943 fi
3944 fi
3945 LD=$ac_cv_prog_LD
3946 if test -n "$LD"; then
3947   echo "$as_me:$LINENO: result: $LD" >&5
3948 echo "${ECHO_T}$LD" >&6
3949 else
3950   echo "$as_me:$LINENO: result: no" >&5
3951 echo "${ECHO_T}no" >&6
3952 fi
3953
3954 fi
3955 if test -z "$ac_cv_prog_LD"; then
3956   ac_ct_LD=$LD
3957   # Extract the first word of "ld", so it can be a program name with args.
3958 set dummy ld; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3962   echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964   if test -n "$ac_ct_LD"; then
3965   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970   IFS=$as_save_IFS
3971   test -z "$as_dir" && as_dir=.
3972   for ac_exec_ext in '' $ac_executable_extensions; do
3973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974     ac_cv_prog_ac_ct_LD="ld"
3975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976     break 2
3977   fi
3978 done
3979 done
3980
3981   test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3982 fi
3983 fi
3984 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3985 if test -n "$ac_ct_LD"; then
3986   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3987 echo "${ECHO_T}$ac_ct_LD" >&6
3988 else
3989   echo "$as_me:$LINENO: result: no" >&5
3990 echo "${ECHO_T}no" >&6
3991 fi
3992
3993   LD=$ac_ct_LD
3994 else
3995   LD="$ac_cv_prog_LD"
3996 fi
3997
3998 if test -n "$ac_tool_prefix"; then
3999   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4000 set dummy ${ac_tool_prefix}ar; ac_word=$2
4001 echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_prog_AR+set}" = set; then
4004   echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006   if test -n "$AR"; then
4007   ac_cv_prog_AR="$AR" # Let the user override the test.
4008 else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4011 do
4012   IFS=$as_save_IFS
4013   test -z "$as_dir" && as_dir=.
4014   for ac_exec_ext in '' $ac_executable_extensions; do
4015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016     ac_cv_prog_AR="${ac_tool_prefix}ar"
4017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018     break 2
4019   fi
4020 done
4021 done
4022
4023 fi
4024 fi
4025 AR=$ac_cv_prog_AR
4026 if test -n "$AR"; then
4027   echo "$as_me:$LINENO: result: $AR" >&5
4028 echo "${ECHO_T}$AR" >&6
4029 else
4030   echo "$as_me:$LINENO: result: no" >&5
4031 echo "${ECHO_T}no" >&6
4032 fi
4033
4034 fi
4035 if test -z "$ac_cv_prog_AR"; then
4036   ac_ct_AR=$AR
4037   # Extract the first word of "ar", so it can be a program name with args.
4038 set dummy ar; ac_word=$2
4039 echo "$as_me:$LINENO: checking for $ac_word" >&5
4040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4041 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4042   echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044   if test -n "$ac_ct_AR"; then
4045   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4046 else
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH
4049 do
4050   IFS=$as_save_IFS
4051   test -z "$as_dir" && as_dir=.
4052   for ac_exec_ext in '' $ac_executable_extensions; do
4053   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4054     ac_cv_prog_ac_ct_AR="ar"
4055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4056     break 2
4057   fi
4058 done
4059 done
4060
4061   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4062 fi
4063 fi
4064 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4065 if test -n "$ac_ct_AR"; then
4066   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4067 echo "${ECHO_T}$ac_ct_AR" >&6
4068 else
4069   echo "$as_me:$LINENO: result: no" >&5
4070 echo "${ECHO_T}no" >&6
4071 fi
4072
4073   AR=$ac_ct_AR
4074 else
4075   AR="$ac_cv_prog_AR"
4076 fi
4077
4078 if test -n "$ac_tool_prefix"; then
4079   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4080 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4081 echo "$as_me:$LINENO: checking for $ac_word" >&5
4082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4083 if test "${ac_cv_prog_RANLIB+set}" = set; then
4084   echo $ECHO_N "(cached) $ECHO_C" >&6
4085 else
4086   if test -n "$RANLIB"; then
4087   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4088 else
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH
4091 do
4092   IFS=$as_save_IFS
4093   test -z "$as_dir" && as_dir=.
4094   for ac_exec_ext in '' $ac_executable_extensions; do
4095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098     break 2
4099   fi
4100 done
4101 done
4102
4103 fi
4104 fi
4105 RANLIB=$ac_cv_prog_RANLIB
4106 if test -n "$RANLIB"; then
4107   echo "$as_me:$LINENO: result: $RANLIB" >&5
4108 echo "${ECHO_T}$RANLIB" >&6
4109 else
4110   echo "$as_me:$LINENO: result: no" >&5
4111 echo "${ECHO_T}no" >&6
4112 fi
4113
4114 fi
4115 if test -z "$ac_cv_prog_RANLIB"; then
4116   ac_ct_RANLIB=$RANLIB
4117   # Extract the first word of "ranlib", so it can be a program name with args.
4118 set dummy ranlib; ac_word=$2
4119 echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4122   echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124   if test -n "$ac_ct_RANLIB"; then
4125   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130   IFS=$as_save_IFS
4131   test -z "$as_dir" && as_dir=.
4132   for ac_exec_ext in '' $ac_executable_extensions; do
4133   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134     ac_cv_prog_ac_ct_RANLIB="ranlib"
4135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136     break 2
4137   fi
4138 done
4139 done
4140
4141   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4142 fi
4143 fi
4144 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4145 if test -n "$ac_ct_RANLIB"; then
4146   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4147 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4148 else
4149   echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6
4151 fi
4152
4153   RANLIB=$ac_ct_RANLIB
4154 else
4155   RANLIB="$ac_cv_prog_RANLIB"
4156 fi
4157
4158 if test -n "$ac_tool_prefix"; then
4159   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4160 set dummy ${ac_tool_prefix}strip; ac_word=$2
4161 echo "$as_me:$LINENO: checking for $ac_word" >&5
4162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4163 if test "${ac_cv_prog_STRIP+set}" = set; then
4164   echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166   if test -n "$STRIP"; then
4167   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4168 else
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4171 do
4172   IFS=$as_save_IFS
4173   test -z "$as_dir" && as_dir=.
4174   for ac_exec_ext in '' $ac_executable_extensions; do
4175   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4176     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4178     break 2
4179   fi
4180 done
4181 done
4182
4183 fi
4184 fi
4185 STRIP=$ac_cv_prog_STRIP
4186 if test -n "$STRIP"; then
4187   echo "$as_me:$LINENO: result: $STRIP" >&5
4188 echo "${ECHO_T}$STRIP" >&6
4189 else
4190   echo "$as_me:$LINENO: result: no" >&5
4191 echo "${ECHO_T}no" >&6
4192 fi
4193
4194 fi
4195 if test -z "$ac_cv_prog_STRIP"; then
4196   ac_ct_STRIP=$STRIP
4197   # Extract the first word of "strip", so it can be a program name with args.
4198 set dummy strip; ac_word=$2
4199 echo "$as_me:$LINENO: checking for $ac_word" >&5
4200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4201 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4202   echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204   if test -n "$ac_ct_STRIP"; then
4205   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4206 else
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4209 do
4210   IFS=$as_save_IFS
4211   test -z "$as_dir" && as_dir=.
4212   for ac_exec_ext in '' $ac_executable_extensions; do
4213   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4214     ac_cv_prog_ac_ct_STRIP="strip"
4215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216     break 2
4217   fi
4218 done
4219 done
4220
4221   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4222 fi
4223 fi
4224 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4225 if test -n "$ac_ct_STRIP"; then
4226   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4227 echo "${ECHO_T}$ac_ct_STRIP" >&6
4228 else
4229   echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4231 fi
4232
4233   STRIP=$ac_ct_STRIP
4234 else
4235   STRIP="$ac_cv_prog_STRIP"
4236 fi
4237
4238 if test -n "$ac_tool_prefix"; then
4239   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4240 set dummy ${ac_tool_prefix}windres; ac_word=$2
4241 echo "$as_me:$LINENO: checking for $ac_word" >&5
4242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4243 if test "${ac_cv_prog_WINDRES+set}" = set; then
4244   echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246   if test -n "$WINDRES"; then
4247   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4248 else
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4251 do
4252   IFS=$as_save_IFS
4253   test -z "$as_dir" && as_dir=.
4254   for ac_exec_ext in '' $ac_executable_extensions; do
4255   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4256     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4258     break 2
4259   fi
4260 done
4261 done
4262
4263 fi
4264 fi
4265 WINDRES=$ac_cv_prog_WINDRES
4266 if test -n "$WINDRES"; then
4267   echo "$as_me:$LINENO: result: $WINDRES" >&5
4268 echo "${ECHO_T}$WINDRES" >&6
4269 else
4270   echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6
4272 fi
4273
4274 fi
4275 if test -z "$ac_cv_prog_WINDRES"; then
4276   ac_ct_WINDRES=$WINDRES
4277   # Extract the first word of "windres", so it can be a program name with args.
4278 set dummy windres; ac_word=$2
4279 echo "$as_me:$LINENO: checking for $ac_word" >&5
4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4281 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4282   echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284   if test -n "$ac_ct_WINDRES"; then
4285   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290   IFS=$as_save_IFS
4291   test -z "$as_dir" && as_dir=.
4292   for ac_exec_ext in '' $ac_executable_extensions; do
4293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294     ac_cv_prog_ac_ct_WINDRES="windres"
4295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296     break 2
4297   fi
4298 done
4299 done
4300
4301   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4302 fi
4303 fi
4304 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4305 if test -n "$ac_ct_WINDRES"; then
4306   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4307 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4308 else
4309   echo "$as_me:$LINENO: result: no" >&5
4310 echo "${ECHO_T}no" >&6
4311 fi
4312
4313   WINDRES=$ac_ct_WINDRES
4314 else
4315   WINDRES="$ac_cv_prog_WINDRES"
4316 fi
4317
4318 # Find a good install program.  We prefer a C program (faster),
4319 # so one script is as good as another.  But avoid the broken or
4320 # incompatible versions:
4321 # SysV /etc/install, /usr/sbin/install
4322 # SunOS /usr/etc/install
4323 # IRIX /sbin/install
4324 # AIX /bin/install
4325 # AmigaOS /C/install, which installs bootblocks on floppy discs
4326 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4327 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4328 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4329 # ./install, which can be erroneously created by make from ./install.sh.
4330 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4331 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4332 if test -z "$INSTALL"; then
4333 if test "${ac_cv_path_install+set}" = set; then
4334   echo $ECHO_N "(cached) $ECHO_C" >&6
4335 else
4336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH
4338 do
4339   IFS=$as_save_IFS
4340   test -z "$as_dir" && as_dir=.
4341   # Account for people who put trailing slashes in PATH elements.
4342 case $as_dir/ in
4343   ./ | .// | /cC/* | \
4344   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4345   /usr/ucb/* ) ;;
4346   *)
4347     # OSF1 and SCO ODT 3.0 have their own names for install.
4348     # Don't use installbsd from OSF since it installs stuff as root
4349     # by default.
4350     for ac_prog in ginstall scoinst install; do
4351       for ac_exec_ext in '' $ac_executable_extensions; do
4352         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4353           if test $ac_prog = install &&
4354             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4355             # AIX install.  It has an incompatible calling convention.
4356             :
4357           elif test $ac_prog = install &&
4358             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4359             # program-specific install script used by HP pwplus--don't use.
4360             :
4361           else
4362             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4363             break 3
4364           fi
4365         fi
4366       done
4367     done
4368     ;;
4369 esac
4370 done
4371
4372
4373 fi
4374   if test "${ac_cv_path_install+set}" = set; then
4375     INSTALL=$ac_cv_path_install
4376   else
4377     # As a last resort, use the slow shell script.  We don't cache a
4378     # path for INSTALL within a source directory, because that will
4379     # break other packages using the cache if that directory is
4380     # removed, or if the path is relative.
4381     INSTALL=$ac_install_sh
4382   fi
4383 fi
4384 echo "$as_me:$LINENO: result: $INSTALL" >&5
4385 echo "${ECHO_T}$INSTALL" >&6
4386
4387 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4388 # It thinks the first close brace ends the variable substitution.
4389 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4390
4391 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4392
4393 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4394
4395 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4396 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4397 LN_S=$as_ln_s
4398 if test "$LN_S" = "ln -s"; then
4399   echo "$as_me:$LINENO: result: yes" >&5
4400 echo "${ECHO_T}yes" >&6
4401 else
4402   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4403 echo "${ECHO_T}no, using $LN_S" >&6
4404 fi
4405
4406 echo "$as_me:$LINENO: checking whether ln works" >&5
4407 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4408 rm -f conf$$ conf$$.file
4409 echo >conf$$.file
4410 if ln conf$$.file conf$$ 2>/dev/null; then
4411   LN=ln
4412
4413   echo "$as_me:$LINENO: result: yes" >&5
4414 echo "${ECHO_T}yes" >&6
4415 else
4416   LN="cp -p"
4417
4418   echo "$as_me:$LINENO: result: no, using $LN" >&5
4419 echo "${ECHO_T}no, using $LN" >&6
4420 fi
4421 rm -f conf$$ conf$$.file
4422 # Extract the first word of "c2man", so it can be a program name with args.
4423 set dummy c2man; ac_word=$2
4424 echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4426 if test "${ac_cv_prog_C2MAN+set}" = set; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429   if test -n "$C2MAN"; then
4430   ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4431 else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4434 do
4435   IFS=$as_save_IFS
4436   test -z "$as_dir" && as_dir=.
4437   for ac_exec_ext in '' $ac_executable_extensions; do
4438   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4439     ac_cv_prog_C2MAN="c2man"
4440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441     break 2
4442   fi
4443 done
4444 done
4445
4446   test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4447 fi
4448 fi
4449 C2MAN=$ac_cv_prog_C2MAN
4450 if test -n "$C2MAN"; then
4451   echo "$as_me:$LINENO: result: $C2MAN" >&5
4452 echo "${ECHO_T}$C2MAN" >&6
4453 else
4454   echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6
4456 fi
4457
4458 # Extract the first word of "ldconfig", so it can be a program name with args.
4459 set dummy ldconfig; ac_word=$2
4460 echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4462 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   case $LDCONFIG in
4466   [\\/]* | ?:[\\/]*)
4467   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4468   ;;
4469   *)
4470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in /sbin /usr/sbin $PATH
4472 do
4473   IFS=$as_save_IFS
4474   test -z "$as_dir" && as_dir=.
4475   for ac_exec_ext in '' $ac_executable_extensions; do
4476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479     break 2
4480   fi
4481 done
4482 done
4483
4484   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4485   ;;
4486 esac
4487 fi
4488 LDCONFIG=$ac_cv_path_LDCONFIG
4489
4490 if test -n "$LDCONFIG"; then
4491   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4492 echo "${ECHO_T}$LDCONFIG" >&6
4493 else
4494   echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6
4496 fi
4497
4498
4499 for ac_prog in lclint lint
4500 do
4501   # Extract the first word of "$ac_prog", so it can be a program name with args.
4502 set dummy $ac_prog; ac_word=$2
4503 echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4505 if test "${ac_cv_prog_LINT+set}" = set; then
4506   echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508   if test -n "$LINT"; then
4509   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4510 else
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4513 do
4514   IFS=$as_save_IFS
4515   test -z "$as_dir" && as_dir=.
4516   for ac_exec_ext in '' $ac_executable_extensions; do
4517   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518     ac_cv_prog_LINT="$ac_prog"
4519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520     break 2
4521   fi
4522 done
4523 done
4524
4525 fi
4526 fi
4527 LINT=$ac_cv_prog_LINT
4528 if test -n "$LINT"; then
4529   echo "$as_me:$LINENO: result: $LINT" >&5
4530 echo "${ECHO_T}$LINT" >&6
4531 else
4532   echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6
4534 fi
4535
4536   test -n "$LINT" && break
4537 done
4538
4539 if test "$LINT" = "lint"
4540 then
4541   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4542   fi
4543
4544
4545
4546
4547
4548 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4549 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4550 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4551   echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553   ac_check_lib_save_LIBS=$LIBS
4554 LIBS="-lm  $LIBS"
4555 cat >conftest.$ac_ext <<_ACEOF
4556 #line $LINENO "configure"
4557 #include "confdefs.h"
4558
4559 /* Override any gcc2 internal prototype to avoid an error.  */
4560 #ifdef __cplusplus
4561 extern "C"
4562 #endif
4563 /* We use char because int might match the return type of a gcc2
4564    builtin and then its argument prototype would still apply.  */
4565 char sqrt ();
4566 #ifdef F77_DUMMY_MAIN
4567 #  ifdef __cplusplus
4568      extern "C"
4569 #  endif
4570    int F77_DUMMY_MAIN() { return 1; }
4571 #endif
4572 int
4573 main ()
4574 {
4575 sqrt ();
4576   ;
4577   return 0;
4578 }
4579 _ACEOF
4580 rm -f conftest.$ac_objext conftest$ac_exeext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4582   (eval $ac_link) 2>&5
4583   ac_status=$?
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); } &&
4586          { ac_try='test -s conftest$ac_exeext'
4587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588   (eval $ac_try) 2>&5
4589   ac_status=$?
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); }; }; then
4592   ac_cv_lib_m_sqrt=yes
4593 else
4594   echo "$as_me: failed program was:" >&5
4595 cat conftest.$ac_ext >&5
4596 ac_cv_lib_m_sqrt=no
4597 fi
4598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4599 LIBS=$ac_check_lib_save_LIBS
4600 fi
4601 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4602 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4603 if test $ac_cv_lib_m_sqrt = yes; then
4604   cat >>confdefs.h <<_ACEOF
4605 #define HAVE_LIBM 1
4606 _ACEOF
4607
4608   LIBS="-lm $LIBS"
4609
4610 fi
4611
4612
4613 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
4614 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4615 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4616   echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618   ac_check_lib_save_LIBS=$LIBS
4619 LIBS="-li386  $LIBS"
4620 cat >conftest.$ac_ext <<_ACEOF
4621 #line $LINENO "configure"
4622 #include "confdefs.h"
4623
4624 /* Override any gcc2 internal prototype to avoid an error.  */
4625 #ifdef __cplusplus
4626 extern "C"
4627 #endif
4628 /* We use char because int might match the return type of a gcc2
4629    builtin and then its argument prototype would still apply.  */
4630 char i386_set_ldt ();
4631 #ifdef F77_DUMMY_MAIN
4632 #  ifdef __cplusplus
4633      extern "C"
4634 #  endif
4635    int F77_DUMMY_MAIN() { return 1; }
4636 #endif
4637 int
4638 main ()
4639 {
4640 i386_set_ldt ();
4641   ;
4642   return 0;
4643 }
4644 _ACEOF
4645 rm -f conftest.$ac_objext conftest$ac_exeext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4647   (eval $ac_link) 2>&5
4648   ac_status=$?
4649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650   (exit $ac_status); } &&
4651          { ac_try='test -s conftest$ac_exeext'
4652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653   (eval $ac_try) 2>&5
4654   ac_status=$?
4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); }; }; then
4657   ac_cv_lib_i386_i386_set_ldt=yes
4658 else
4659   echo "$as_me: failed program was:" >&5
4660 cat conftest.$ac_ext >&5
4661 ac_cv_lib_i386_i386_set_ldt=no
4662 fi
4663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4664 LIBS=$ac_check_lib_save_LIBS
4665 fi
4666 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
4667 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4668 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
4669   cat >>confdefs.h <<_ACEOF
4670 #define HAVE_LIBI386 1
4671 _ACEOF
4672
4673   LIBS="-li386 $LIBS"
4674
4675 fi
4676
4677
4678 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4679 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4680 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4681   echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683   ac_check_lib_save_LIBS=$LIBS
4684 LIBS="-lossaudio  $LIBS"
4685 cat >conftest.$ac_ext <<_ACEOF
4686 #line $LINENO "configure"
4687 #include "confdefs.h"
4688
4689 /* Override any gcc2 internal prototype to avoid an error.  */
4690 #ifdef __cplusplus
4691 extern "C"
4692 #endif
4693 /* We use char because int might match the return type of a gcc2
4694    builtin and then its argument prototype would still apply.  */
4695 char _oss_ioctl ();
4696 #ifdef F77_DUMMY_MAIN
4697 #  ifdef __cplusplus
4698      extern "C"
4699 #  endif
4700    int F77_DUMMY_MAIN() { return 1; }
4701 #endif
4702 int
4703 main ()
4704 {
4705 _oss_ioctl ();
4706   ;
4707   return 0;
4708 }
4709 _ACEOF
4710 rm -f conftest.$ac_objext conftest$ac_exeext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4712   (eval $ac_link) 2>&5
4713   ac_status=$?
4714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715   (exit $ac_status); } &&
4716          { ac_try='test -s conftest$ac_exeext'
4717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718   (eval $ac_try) 2>&5
4719   ac_status=$?
4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721   (exit $ac_status); }; }; then
4722   ac_cv_lib_ossaudio__oss_ioctl=yes
4723 else
4724   echo "$as_me: failed program was:" >&5
4725 cat conftest.$ac_ext >&5
4726 ac_cv_lib_ossaudio__oss_ioctl=no
4727 fi
4728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4729 LIBS=$ac_check_lib_save_LIBS
4730 fi
4731 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4732 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4733 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4734   cat >>confdefs.h <<_ACEOF
4735 #define HAVE_LIBOSSAUDIO 1
4736 _ACEOF
4737
4738   LIBS="-lossaudio $LIBS"
4739
4740 fi
4741
4742
4743 for ac_func in iswalnum
4744 do
4745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4746 echo "$as_me:$LINENO: checking for $ac_func" >&5
4747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4748 if eval "test \"\${$as_ac_var+set}\" = set"; then
4749   echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751   cat >conftest.$ac_ext <<_ACEOF
4752 #line $LINENO "configure"
4753 #include "confdefs.h"
4754 /* System header to define __stub macros and hopefully few prototypes,
4755     which can conflict with char $ac_func (); below.  */
4756 #include <assert.h>
4757 /* Override any gcc2 internal prototype to avoid an error.  */
4758 #ifdef __cplusplus
4759 extern "C"
4760 #endif
4761 /* We use char because int might match the return type of a gcc2
4762    builtin and then its argument prototype would still apply.  */
4763 char $ac_func ();
4764 char (*f) ();
4765
4766 #ifdef F77_DUMMY_MAIN
4767 #  ifdef __cplusplus
4768      extern "C"
4769 #  endif
4770    int F77_DUMMY_MAIN() { return 1; }
4771 #endif
4772 int
4773 main ()
4774 {
4775 /* The GNU C library defines this for functions which it implements
4776     to always fail with ENOSYS.  Some functions are actually named
4777     something starting with __ and the normal name is an alias.  */
4778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4779 choke me
4780 #else
4781 f = $ac_func;
4782 #endif
4783
4784   ;
4785   return 0;
4786 }
4787 _ACEOF
4788 rm -f conftest.$ac_objext conftest$ac_exeext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4790   (eval $ac_link) 2>&5
4791   ac_status=$?
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); } &&
4794          { ac_try='test -s conftest$ac_exeext'
4795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796   (eval $ac_try) 2>&5
4797   ac_status=$?
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); }; }; then
4800   eval "$as_ac_var=yes"
4801 else
4802   echo "$as_me: failed program was:" >&5
4803 cat conftest.$ac_ext >&5
4804 eval "$as_ac_var=no"
4805 fi
4806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4807 fi
4808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4809 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4810 if test `eval echo '${'$as_ac_var'}'` = yes; then
4811   cat >>confdefs.h <<_ACEOF
4812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4813 _ACEOF
4814
4815 else
4816
4817 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
4818 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4819 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4820   echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822   ac_check_lib_save_LIBS=$LIBS
4823 LIBS="-lw  $LIBS"
4824 cat >conftest.$ac_ext <<_ACEOF
4825 #line $LINENO "configure"
4826 #include "confdefs.h"
4827
4828 /* Override any gcc2 internal prototype to avoid an error.  */
4829 #ifdef __cplusplus
4830 extern "C"
4831 #endif
4832 /* We use char because int might match the return type of a gcc2
4833    builtin and then its argument prototype would still apply.  */
4834 char iswalnum ();
4835 #ifdef F77_DUMMY_MAIN
4836 #  ifdef __cplusplus
4837      extern "C"
4838 #  endif
4839    int F77_DUMMY_MAIN() { return 1; }
4840 #endif
4841 int
4842 main ()
4843 {
4844 iswalnum ();
4845   ;
4846   return 0;
4847 }
4848 _ACEOF
4849 rm -f conftest.$ac_objext conftest$ac_exeext
4850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4851   (eval $ac_link) 2>&5
4852   ac_status=$?
4853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854   (exit $ac_status); } &&
4855          { ac_try='test -s conftest$ac_exeext'
4856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857   (eval $ac_try) 2>&5
4858   ac_status=$?
4859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860   (exit $ac_status); }; }; then
4861   ac_cv_lib_w_iswalnum=yes
4862 else
4863   echo "$as_me: failed program was:" >&5
4864 cat conftest.$ac_ext >&5
4865 ac_cv_lib_w_iswalnum=no
4866 fi
4867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4868 LIBS=$ac_check_lib_save_LIBS
4869 fi
4870 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
4871 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4872 if test $ac_cv_lib_w_iswalnum = yes; then
4873   cat >>confdefs.h <<_ACEOF
4874 #define HAVE_LIBW 1
4875 _ACEOF
4876
4877   LIBS="-lw $LIBS"
4878
4879 fi
4880
4881 fi
4882 done
4883
4884
4885 for ac_func in gethostbyname
4886 do
4887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4888 echo "$as_me:$LINENO: checking for $ac_func" >&5
4889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4890 if eval "test \"\${$as_ac_var+set}\" = set"; then
4891   echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893   cat >conftest.$ac_ext <<_ACEOF
4894 #line $LINENO "configure"
4895 #include "confdefs.h"
4896 /* System header to define __stub macros and hopefully few prototypes,
4897     which can conflict with char $ac_func (); below.  */
4898 #include <assert.h>
4899 /* Override any gcc2 internal prototype to avoid an error.  */
4900 #ifdef __cplusplus
4901 extern "C"
4902 #endif
4903 /* We use char because int might match the return type of a gcc2
4904    builtin and then its argument prototype would still apply.  */
4905 char $ac_func ();
4906 char (*f) ();
4907
4908 #ifdef F77_DUMMY_MAIN
4909 #  ifdef __cplusplus
4910      extern "C"
4911 #  endif
4912    int F77_DUMMY_MAIN() { return 1; }
4913 #endif
4914 int
4915 main ()
4916 {
4917 /* The GNU C library defines this for functions which it implements
4918     to always fail with ENOSYS.  Some functions are actually named
4919     something starting with __ and the normal name is an alias.  */
4920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4921 choke me
4922 #else
4923 f = $ac_func;
4924 #endif
4925
4926   ;
4927   return 0;
4928 }
4929 _ACEOF
4930 rm -f conftest.$ac_objext conftest$ac_exeext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932   (eval $ac_link) 2>&5
4933   ac_status=$?
4934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935   (exit $ac_status); } &&
4936          { ac_try='test -s conftest$ac_exeext'
4937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938   (eval $ac_try) 2>&5
4939   ac_status=$?
4940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941   (exit $ac_status); }; }; then
4942   eval "$as_ac_var=yes"
4943 else
4944   echo "$as_me: failed program was:" >&5
4945 cat conftest.$ac_ext >&5
4946 eval "$as_ac_var=no"
4947 fi
4948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4949 fi
4950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4952 if test `eval echo '${'$as_ac_var'}'` = yes; then
4953   cat >>confdefs.h <<_ACEOF
4954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4955 _ACEOF
4956
4957 else
4958
4959 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4960 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4961 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4962   echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964   ac_check_lib_save_LIBS=$LIBS
4965 LIBS="-lnsl  $LIBS"
4966 cat >conftest.$ac_ext <<_ACEOF
4967 #line $LINENO "configure"
4968 #include "confdefs.h"
4969
4970 /* Override any gcc2 internal prototype to avoid an error.  */
4971 #ifdef __cplusplus
4972 extern "C"
4973 #endif
4974 /* We use char because int might match the return type of a gcc2
4975    builtin and then its argument prototype would still apply.  */
4976 char gethostbyname ();
4977 #ifdef F77_DUMMY_MAIN
4978 #  ifdef __cplusplus
4979      extern "C"
4980 #  endif
4981    int F77_DUMMY_MAIN() { return 1; }
4982 #endif
4983 int
4984 main ()
4985 {
4986 gethostbyname ();
4987   ;
4988   return 0;
4989 }
4990 _ACEOF
4991 rm -f conftest.$ac_objext conftest$ac_exeext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4993   (eval $ac_link) 2>&5
4994   ac_status=$?
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); } &&
4997          { ac_try='test -s conftest$ac_exeext'
4998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999   (eval $ac_try) 2>&5
5000   ac_status=$?
5001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002   (exit $ac_status); }; }; then
5003   ac_cv_lib_nsl_gethostbyname=yes
5004 else
5005   echo "$as_me: failed program was:" >&5
5006 cat conftest.$ac_ext >&5
5007 ac_cv_lib_nsl_gethostbyname=no
5008 fi
5009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5010 LIBS=$ac_check_lib_save_LIBS
5011 fi
5012 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5013 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5014 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5015   cat >>confdefs.h <<_ACEOF
5016 #define HAVE_LIBNSL 1
5017 _ACEOF
5018
5019   LIBS="-lnsl $LIBS"
5020
5021 fi
5022
5023 fi
5024 done
5025
5026
5027 for ac_func in connect
5028 do
5029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5030 echo "$as_me:$LINENO: checking for $ac_func" >&5
5031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5032 if eval "test \"\${$as_ac_var+set}\" = set"; then
5033   echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035   cat >conftest.$ac_ext <<_ACEOF
5036 #line $LINENO "configure"
5037 #include "confdefs.h"
5038 /* System header to define __stub macros and hopefully few prototypes,
5039     which can conflict with char $ac_func (); below.  */
5040 #include <assert.h>
5041 /* Override any gcc2 internal prototype to avoid an error.  */
5042 #ifdef __cplusplus
5043 extern "C"
5044 #endif
5045 /* We use char because int might match the return type of a gcc2
5046    builtin and then its argument prototype would still apply.  */
5047 char $ac_func ();
5048 char (*f) ();
5049
5050 #ifdef F77_DUMMY_MAIN
5051 #  ifdef __cplusplus
5052      extern "C"
5053 #  endif
5054    int F77_DUMMY_MAIN() { return 1; }
5055 #endif
5056 int
5057 main ()
5058 {
5059 /* The GNU C library defines this for functions which it implements
5060     to always fail with ENOSYS.  Some functions are actually named
5061     something starting with __ and the normal name is an alias.  */
5062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5063 choke me
5064 #else
5065 f = $ac_func;
5066 #endif
5067
5068   ;
5069   return 0;
5070 }
5071 _ACEOF
5072 rm -f conftest.$ac_objext conftest$ac_exeext
5073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5074   (eval $ac_link) 2>&5
5075   ac_status=$?
5076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077   (exit $ac_status); } &&
5078          { ac_try='test -s conftest$ac_exeext'
5079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080   (eval $ac_try) 2>&5
5081   ac_status=$?
5082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083   (exit $ac_status); }; }; then
5084   eval "$as_ac_var=yes"
5085 else
5086   echo "$as_me: failed program was:" >&5
5087 cat conftest.$ac_ext >&5
5088 eval "$as_ac_var=no"
5089 fi
5090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5091 fi
5092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5094 if test `eval echo '${'$as_ac_var'}'` = yes; then
5095   cat >>confdefs.h <<_ACEOF
5096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5097 _ACEOF
5098
5099 else
5100
5101 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5102 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5103 if test "${ac_cv_lib_socket_connect+set}" = set; then
5104   echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106   ac_check_lib_save_LIBS=$LIBS
5107 LIBS="-lsocket  $LIBS"
5108 cat >conftest.$ac_ext <<_ACEOF
5109 #line $LINENO "configure"
5110 #include "confdefs.h"
5111
5112 /* Override any gcc2 internal prototype to avoid an error.  */
5113 #ifdef __cplusplus
5114 extern "C"
5115 #endif
5116 /* We use char because int might match the return type of a gcc2
5117    builtin and then its argument prototype would still apply.  */
5118 char connect ();
5119 #ifdef F77_DUMMY_MAIN
5120 #  ifdef __cplusplus
5121      extern "C"
5122 #  endif
5123    int F77_DUMMY_MAIN() { return 1; }
5124 #endif
5125 int
5126 main ()
5127 {
5128 connect ();
5129   ;
5130   return 0;
5131 }
5132 _ACEOF
5133 rm -f conftest.$ac_objext conftest$ac_exeext
5134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5135   (eval $ac_link) 2>&5
5136   ac_status=$?
5137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138   (exit $ac_status); } &&
5139          { ac_try='test -s conftest$ac_exeext'
5140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141   (eval $ac_try) 2>&5
5142   ac_status=$?
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); }; }; then
5145   ac_cv_lib_socket_connect=yes
5146 else
5147   echo "$as_me: failed program was:" >&5
5148 cat conftest.$ac_ext >&5
5149 ac_cv_lib_socket_connect=no
5150 fi
5151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5152 LIBS=$ac_check_lib_save_LIBS
5153 fi
5154 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5155 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5156 if test $ac_cv_lib_socket_connect = yes; then
5157   cat >>confdefs.h <<_ACEOF
5158 #define HAVE_LIBSOCKET 1
5159 _ACEOF
5160
5161   LIBS="-lsocket $LIBS"
5162
5163 fi
5164
5165 fi
5166 done
5167
5168
5169 for ac_func in inet_aton
5170 do
5171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5172 echo "$as_me:$LINENO: checking for $ac_func" >&5
5173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5174 if eval "test \"\${$as_ac_var+set}\" = set"; then
5175   echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177   cat >conftest.$ac_ext <<_ACEOF
5178 #line $LINENO "configure"
5179 #include "confdefs.h"
5180 /* System header to define __stub macros and hopefully few prototypes,
5181     which can conflict with char $ac_func (); below.  */
5182 #include <assert.h>
5183 /* Override any gcc2 internal prototype to avoid an error.  */
5184 #ifdef __cplusplus
5185 extern "C"
5186 #endif
5187 /* We use char because int might match the return type of a gcc2
5188    builtin and then its argument prototype would still apply.  */
5189 char $ac_func ();
5190 char (*f) ();
5191
5192 #ifdef F77_DUMMY_MAIN
5193 #  ifdef __cplusplus
5194      extern "C"
5195 #  endif
5196    int F77_DUMMY_MAIN() { return 1; }
5197 #endif
5198 int
5199 main ()
5200 {
5201 /* The GNU C library defines this for functions which it implements
5202     to always fail with ENOSYS.  Some functions are actually named
5203     something starting with __ and the normal name is an alias.  */
5204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5205 choke me
5206 #else
5207 f = $ac_func;
5208 #endif
5209
5210   ;
5211   return 0;
5212 }
5213 _ACEOF
5214 rm -f conftest.$ac_objext conftest$ac_exeext
5215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5216   (eval $ac_link) 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); } &&
5220          { ac_try='test -s conftest$ac_exeext'
5221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222   (eval $ac_try) 2>&5
5223   ac_status=$?
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); }; }; then
5226   eval "$as_ac_var=yes"
5227 else
5228   echo "$as_me: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5230 eval "$as_ac_var=no"
5231 fi
5232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5233 fi
5234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5236 if test `eval echo '${'$as_ac_var'}'` = yes; then
5237   cat >>confdefs.h <<_ACEOF
5238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5239 _ACEOF
5240
5241 else
5242
5243 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5244 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5245 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5246   echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248   ac_check_lib_save_LIBS=$LIBS
5249 LIBS="-lresolv  $LIBS"
5250 cat >conftest.$ac_ext <<_ACEOF
5251 #line $LINENO "configure"
5252 #include "confdefs.h"
5253
5254 /* Override any gcc2 internal prototype to avoid an error.  */
5255 #ifdef __cplusplus
5256 extern "C"
5257 #endif
5258 /* We use char because int might match the return type of a gcc2
5259    builtin and then its argument prototype would still apply.  */
5260 char inet_aton ();
5261 #ifdef F77_DUMMY_MAIN
5262 #  ifdef __cplusplus
5263      extern "C"
5264 #  endif
5265    int F77_DUMMY_MAIN() { return 1; }
5266 #endif
5267 int
5268 main ()
5269 {
5270 inet_aton ();
5271   ;
5272   return 0;
5273 }
5274 _ACEOF
5275 rm -f conftest.$ac_objext conftest$ac_exeext
5276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5277   (eval $ac_link) 2>&5
5278   ac_status=$?
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); } &&
5281          { ac_try='test -s conftest$ac_exeext'
5282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283   (eval $ac_try) 2>&5
5284   ac_status=$?
5285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286   (exit $ac_status); }; }; then
5287   ac_cv_lib_resolv_inet_aton=yes
5288 else
5289   echo "$as_me: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
5291 ac_cv_lib_resolv_inet_aton=no
5292 fi
5293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5294 LIBS=$ac_check_lib_save_LIBS
5295 fi
5296 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5297 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5298 if test $ac_cv_lib_resolv_inet_aton = yes; then
5299   cat >>confdefs.h <<_ACEOF
5300 #define HAVE_LIBRESOLV 1
5301 _ACEOF
5302
5303   LIBS="-lresolv $LIBS"
5304
5305 fi
5306
5307 fi
5308 done
5309
5310
5311 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5312 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5313 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5314   echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316   ac_check_lib_save_LIBS=$LIBS
5317 LIBS="-lxpg4  $LIBS"
5318 cat >conftest.$ac_ext <<_ACEOF
5319 #line $LINENO "configure"
5320 #include "confdefs.h"
5321
5322 /* Override any gcc2 internal prototype to avoid an error.  */
5323 #ifdef __cplusplus
5324 extern "C"
5325 #endif
5326 /* We use char because int might match the return type of a gcc2
5327    builtin and then its argument prototype would still apply.  */
5328 char _xpg4_setrunelocale ();
5329 #ifdef F77_DUMMY_MAIN
5330 #  ifdef __cplusplus
5331      extern "C"
5332 #  endif
5333    int F77_DUMMY_MAIN() { return 1; }
5334 #endif
5335 int
5336 main ()
5337 {
5338 _xpg4_setrunelocale ();
5339   ;
5340   return 0;
5341 }
5342 _ACEOF
5343 rm -f conftest.$ac_objext conftest$ac_exeext
5344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5345   (eval $ac_link) 2>&5
5346   ac_status=$?
5347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348   (exit $ac_status); } &&
5349          { ac_try='test -s conftest$ac_exeext'
5350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351   (eval $ac_try) 2>&5
5352   ac_status=$?
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); }; }; then
5355   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5356 else
5357   echo "$as_me: failed program was:" >&5
5358 cat conftest.$ac_ext >&5
5359 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5360 fi
5361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5362 LIBS=$ac_check_lib_save_LIBS
5363 fi
5364 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5365 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5366 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5367   cat >>confdefs.h <<_ACEOF
5368 #define HAVE_LIBXPG4 1
5369 _ACEOF
5370
5371   LIBS="-lxpg4 $LIBS"
5372
5373 fi
5374
5375
5376 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5377 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5378 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5379   echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381   ac_check_lib_save_LIBS=$LIBS
5382 LIBS="-lmmap  $LIBS"
5383 cat >conftest.$ac_ext <<_ACEOF
5384 #line $LINENO "configure"
5385 #include "confdefs.h"
5386
5387 /* Override any gcc2 internal prototype to avoid an error.  */
5388 #ifdef __cplusplus
5389 extern "C"
5390 #endif
5391 /* We use char because int might match the return type of a gcc2
5392    builtin and then its argument prototype would still apply.  */
5393 char mmap ();
5394 #ifdef F77_DUMMY_MAIN
5395 #  ifdef __cplusplus
5396      extern "C"
5397 #  endif
5398    int F77_DUMMY_MAIN() { return 1; }
5399 #endif
5400 int
5401 main ()
5402 {
5403 mmap ();
5404   ;
5405   return 0;
5406 }
5407 _ACEOF
5408 rm -f conftest.$ac_objext conftest$ac_exeext
5409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5410   (eval $ac_link) 2>&5
5411   ac_status=$?
5412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413   (exit $ac_status); } &&
5414          { ac_try='test -s conftest$ac_exeext'
5415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416   (eval $ac_try) 2>&5
5417   ac_status=$?
5418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419   (exit $ac_status); }; }; then
5420   ac_cv_lib_mmap_mmap=yes
5421 else
5422   echo "$as_me: failed program was:" >&5
5423 cat conftest.$ac_ext >&5
5424 ac_cv_lib_mmap_mmap=no
5425 fi
5426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5427 LIBS=$ac_check_lib_save_LIBS
5428 fi
5429 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5430 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5431 if test $ac_cv_lib_mmap_mmap = yes; then
5432   cat >>confdefs.h <<_ACEOF
5433 #define HAVE_LIBMMAP 1
5434 _ACEOF
5435
5436   LIBS="-lmmap $LIBS"
5437
5438 fi
5439
5440
5441 JPEGLIB=""
5442
5443 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5444 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5445 if test "${ac_cv_header_stdc+set}" = set; then
5446   echo $ECHO_N "(cached) $ECHO_C" >&6
5447 else
5448   cat >conftest.$ac_ext <<_ACEOF
5449 #line $LINENO "configure"
5450 #include "confdefs.h"
5451 #include <stdlib.h>
5452 #include <stdarg.h>
5453 #include <string.h>
5454 #include <float.h>
5455
5456 _ACEOF
5457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5458   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5459   ac_status=$?
5460   egrep -v '^ *\+' conftest.er1 >conftest.err
5461   rm -f conftest.er1
5462   cat conftest.err >&5
5463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464   (exit $ac_status); } >/dev/null; then
5465   if test -s conftest.err; then
5466     ac_cpp_err=$ac_c_preproc_warn_flag
5467   else
5468     ac_cpp_err=
5469   fi
5470 else
5471   ac_cpp_err=yes
5472 fi
5473 if test -z "$ac_cpp_err"; then
5474   ac_cv_header_stdc=yes
5475 else
5476   echo "$as_me: failed program was:" >&5
5477   cat conftest.$ac_ext >&5
5478   ac_cv_header_stdc=no
5479 fi
5480 rm -f conftest.err conftest.$ac_ext
5481
5482 if test $ac_cv_header_stdc = yes; then
5483   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5484   cat >conftest.$ac_ext <<_ACEOF
5485 #line $LINENO "configure"
5486 #include "confdefs.h"
5487 #include <string.h>
5488
5489 _ACEOF
5490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5491   egrep "memchr" >/dev/null 2>&1; then
5492   :
5493 else
5494   ac_cv_header_stdc=no
5495 fi
5496 rm -f conftest*
5497
5498 fi
5499
5500 if test $ac_cv_header_stdc = yes; then
5501   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5502   cat >conftest.$ac_ext <<_ACEOF
5503 #line $LINENO "configure"
5504 #include "confdefs.h"
5505 #include <stdlib.h>
5506
5507 _ACEOF
5508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5509   egrep "free" >/dev/null 2>&1; then
5510   :
5511 else
5512   ac_cv_header_stdc=no
5513 fi
5514 rm -f conftest*
5515
5516 fi
5517
5518 if test $ac_cv_header_stdc = yes; then
5519   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5520   if test "$cross_compiling" = yes; then
5521   :
5522 else
5523   cat >conftest.$ac_ext <<_ACEOF
5524 #line $LINENO "configure"
5525 #include "confdefs.h"
5526 #include <ctype.h>
5527 #if ((' ' & 0x0FF) == 0x020)
5528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5530 #else
5531 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5532                      || ('j' <= (c) && (c) <= 'r') \
5533                      || ('s' <= (c) && (c) <= 'z'))
5534 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5535 #endif
5536
5537 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5538 int
5539 main ()
5540 {
5541   int i;
5542   for (i = 0; i < 256; i++)
5543     if (XOR (islower (i), ISLOWER (i))
5544         || toupper (i) != TOUPPER (i))
5545       exit(2);
5546   exit (0);
5547 }
5548 _ACEOF
5549 rm -f conftest$ac_exeext
5550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5551   (eval $ac_link) 2>&5
5552   ac_status=$?
5553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556   (eval $ac_try) 2>&5
5557   ac_status=$?
5558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559   (exit $ac_status); }; }; then
5560   :
5561 else
5562   echo "$as_me: program exited with status $ac_status" >&5
5563 echo "$as_me: failed program was:" >&5
5564 cat conftest.$ac_ext >&5
5565 ( exit $ac_status )
5566 ac_cv_header_stdc=no
5567 fi
5568 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5569 fi
5570 fi
5571 fi
5572 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5573 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5574 if test $ac_cv_header_stdc = yes; then
5575
5576 cat >>confdefs.h <<\_ACEOF
5577 #define STDC_HEADERS 1
5578 _ACEOF
5579
5580 fi
5581
5582 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5593                   inttypes.h stdint.h unistd.h
5594 do
5595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5596 echo "$as_me:$LINENO: checking for $ac_header" >&5
5597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5599   echo $ECHO_N "(cached) $ECHO_C" >&6
5600 else
5601   cat >conftest.$ac_ext <<_ACEOF
5602 #line $LINENO "configure"
5603 #include "confdefs.h"
5604 $ac_includes_default
5605
5606 #include <$ac_header>
5607 _ACEOF
5608 rm -f conftest.$ac_objext
5609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5610   (eval $ac_compile) 2>&5
5611   ac_status=$?
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); } &&
5614          { ac_try='test -s conftest.$ac_objext'
5615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616   (eval $ac_try) 2>&5
5617   ac_status=$?
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); }; }; then
5620   eval "$as_ac_Header=yes"
5621 else
5622   echo "$as_me: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5624 eval "$as_ac_Header=no"
5625 fi
5626 rm -f conftest.$ac_objext conftest.$ac_ext
5627 fi
5628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5631   cat >>confdefs.h <<_ACEOF
5632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5633 _ACEOF
5634
5635 fi
5636
5637 done
5638
5639
5640
5641 for ac_header in jpeglib.h
5642 do
5643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5645   echo "$as_me:$LINENO: checking for $ac_header" >&5
5646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5648   echo $ECHO_N "(cached) $ECHO_C" >&6
5649 fi
5650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5652 else
5653   # Is the header compilable?
5654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5656 cat >conftest.$ac_ext <<_ACEOF
5657 #line $LINENO "configure"
5658 #include "confdefs.h"
5659 $ac_includes_default
5660 #include <$ac_header>
5661 _ACEOF
5662 rm -f conftest.$ac_objext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5664   (eval $ac_compile) 2>&5
5665   ac_status=$?
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); } &&
5668          { ac_try='test -s conftest.$ac_objext'
5669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670   (eval $ac_try) 2>&5
5671   ac_status=$?
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); }; }; then
5674   ac_header_compiler=yes
5675 else
5676   echo "$as_me: failed program was:" >&5
5677 cat conftest.$ac_ext >&5
5678 ac_header_compiler=no
5679 fi
5680 rm -f conftest.$ac_objext conftest.$ac_ext
5681 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5682 echo "${ECHO_T}$ac_header_compiler" >&6
5683
5684 # Is the header present?
5685 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5687 cat >conftest.$ac_ext <<_ACEOF
5688 #line $LINENO "configure"
5689 #include "confdefs.h"
5690 #include <$ac_header>
5691 _ACEOF
5692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5693   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5694   ac_status=$?
5695   egrep -v '^ *\+' conftest.er1 >conftest.err
5696   rm -f conftest.er1
5697   cat conftest.err >&5
5698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699   (exit $ac_status); } >/dev/null; then
5700   if test -s conftest.err; then
5701     ac_cpp_err=$ac_c_preproc_warn_flag
5702   else
5703     ac_cpp_err=
5704   fi
5705 else
5706   ac_cpp_err=yes
5707 fi
5708 if test -z "$ac_cpp_err"; then
5709   ac_header_preproc=yes
5710 else
5711   echo "$as_me: failed program was:" >&5
5712   cat conftest.$ac_ext >&5
5713   ac_header_preproc=no
5714 fi
5715 rm -f conftest.err conftest.$ac_ext
5716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5717 echo "${ECHO_T}$ac_header_preproc" >&6
5718
5719 # So?  What about this header?
5720 case $ac_header_compiler:$ac_header_preproc in
5721   yes:no )
5722     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5724     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5726   no:yes )
5727     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5729     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5730 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5733 esac
5734 echo "$as_me:$LINENO: checking for $ac_header" >&5
5735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5737   echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739   eval "$as_ac_Header=$ac_header_preproc"
5740 fi
5741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5743
5744 fi
5745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5746   cat >>confdefs.h <<_ACEOF
5747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5748 _ACEOF
5749  echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
5750 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5751 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5752   echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754   ac_check_lib_save_LIBS=$LIBS
5755 LIBS="-ljpeg  $LIBS"
5756 cat >conftest.$ac_ext <<_ACEOF
5757 #line $LINENO "configure"
5758 #include "confdefs.h"
5759
5760 /* Override any gcc2 internal prototype to avoid an error.  */
5761 #ifdef __cplusplus
5762 extern "C"
5763 #endif
5764 /* We use char because int might match the return type of a gcc2
5765    builtin and then its argument prototype would still apply.  */
5766 char jpeg_start_decompress ();
5767 #ifdef F77_DUMMY_MAIN
5768 #  ifdef __cplusplus
5769      extern "C"
5770 #  endif
5771    int F77_DUMMY_MAIN() { return 1; }
5772 #endif
5773 int
5774 main ()
5775 {
5776 jpeg_start_decompress ();
5777   ;
5778   return 0;
5779 }
5780 _ACEOF
5781 rm -f conftest.$ac_objext conftest$ac_exeext
5782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5783   (eval $ac_link) 2>&5
5784   ac_status=$?
5785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786   (exit $ac_status); } &&
5787          { ac_try='test -s conftest$ac_exeext'
5788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789   (eval $ac_try) 2>&5
5790   ac_status=$?
5791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792   (exit $ac_status); }; }; then
5793   ac_cv_lib_jpeg_jpeg_start_decompress=yes
5794 else
5795   echo "$as_me: failed program was:" >&5
5796 cat conftest.$ac_ext >&5
5797 ac_cv_lib_jpeg_jpeg_start_decompress=no
5798 fi
5799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5800 LIBS=$ac_check_lib_save_LIBS
5801 fi
5802 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
5803 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5804 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
5805
5806 cat >>confdefs.h <<\_ACEOF
5807 #define HAVE_LIBJPEG 1
5808 _ACEOF
5809
5810         JPEGLIB="-ljpeg"
5811
5812 fi
5813
5814
5815 fi
5816
5817 done
5818
5819
5820
5821
5822
5823 XFILES=""
5824
5825 OPENGLFILES=""
5826
5827 GLU32FILES=""
5828 if test "$have_x" = "yes"
5829 then
5830     XLIB="-lXext -lX11"
5831     ac_save_CPPFLAGS="$CPPFLAGS"
5832     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5833
5834
5835 for ac_header in X11/Xlib.h
5836 do
5837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5839   echo "$as_me:$LINENO: checking for $ac_header" >&5
5840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5842   echo $ECHO_N "(cached) $ECHO_C" >&6
5843 fi
5844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5846 else
5847   # Is the header compilable?
5848 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5850 cat >conftest.$ac_ext <<_ACEOF
5851 #line $LINENO "configure"
5852 #include "confdefs.h"
5853 $ac_includes_default
5854 #include <$ac_header>
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858   (eval $ac_compile) 2>&5
5859   ac_status=$?
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); } &&
5862          { ac_try='test -s conftest.$ac_objext'
5863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864   (eval $ac_try) 2>&5
5865   ac_status=$?
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); }; }; then
5868   ac_header_compiler=yes
5869 else
5870   echo "$as_me: failed program was:" >&5
5871 cat conftest.$ac_ext >&5
5872 ac_header_compiler=no
5873 fi
5874 rm -f conftest.$ac_objext conftest.$ac_ext
5875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5876 echo "${ECHO_T}$ac_header_compiler" >&6
5877
5878 # Is the header present?
5879 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5881 cat >conftest.$ac_ext <<_ACEOF
5882 #line $LINENO "configure"
5883 #include "confdefs.h"
5884 #include <$ac_header>
5885 _ACEOF
5886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5887   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5888   ac_status=$?
5889   egrep -v '^ *\+' conftest.er1 >conftest.err
5890   rm -f conftest.er1
5891   cat conftest.err >&5
5892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893   (exit $ac_status); } >/dev/null; then
5894   if test -s conftest.err; then
5895     ac_cpp_err=$ac_c_preproc_warn_flag
5896   else
5897     ac_cpp_err=
5898   fi
5899 else
5900   ac_cpp_err=yes
5901 fi
5902 if test -z "$ac_cpp_err"; then
5903   ac_header_preproc=yes
5904 else
5905   echo "$as_me: failed program was:" >&5
5906   cat conftest.$ac_ext >&5
5907   ac_header_preproc=no
5908 fi
5909 rm -f conftest.err conftest.$ac_ext
5910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5911 echo "${ECHO_T}$ac_header_preproc" >&6
5912
5913 # So?  What about this header?
5914 case $ac_header_compiler:$ac_header_preproc in
5915   yes:no )
5916     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5920   no:yes )
5921     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5923     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5925     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5927 esac
5928 echo "$as_me:$LINENO: checking for $ac_header" >&5
5929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5931   echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933   eval "$as_ac_Header=$ac_header_preproc"
5934 fi
5935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5937
5938 fi
5939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5940   cat >>confdefs.h <<_ACEOF
5941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5942 _ACEOF
5943
5944
5945 for ac_header in X11/XKBlib.h
5946 do
5947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5948 echo "$as_me:$LINENO: checking for $ac_header" >&5
5949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5951   echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953   cat >conftest.$ac_ext <<_ACEOF
5954 #line $LINENO "configure"
5955 #include "confdefs.h"
5956 #include <X11/Xlib.h>
5957
5958 #include <$ac_header>
5959 _ACEOF
5960 rm -f conftest.$ac_objext
5961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5962   (eval $ac_compile) 2>&5
5963   ac_status=$?
5964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965   (exit $ac_status); } &&
5966          { ac_try='test -s conftest.$ac_objext'
5967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968   (eval $ac_try) 2>&5
5969   ac_status=$?
5970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971   (exit $ac_status); }; }; then
5972   eval "$as_ac_Header=yes"
5973 else
5974   echo "$as_me: failed program was:" >&5
5975 cat conftest.$ac_ext >&5
5976 eval "$as_ac_Header=no"
5977 fi
5978 rm -f conftest.$ac_objext conftest.$ac_ext
5979 fi
5980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5983   cat >>confdefs.h <<_ACEOF
5984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5985 _ACEOF
5986                 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
5987 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
5988 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
5989   echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991   ac_check_lib_save_LIBS=$LIBS
5992 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
5993 cat >conftest.$ac_ext <<_ACEOF
5994 #line $LINENO "configure"
5995 #include "confdefs.h"
5996
5997 /* Override any gcc2 internal prototype to avoid an error.  */
5998 #ifdef __cplusplus
5999 extern "C"
6000 #endif
6001 /* We use char because int might match the return type of a gcc2
6002    builtin and then its argument prototype would still apply.  */
6003 char XkbQueryExtension ();
6004 #ifdef F77_DUMMY_MAIN
6005 #  ifdef __cplusplus
6006      extern "C"
6007 #  endif
6008    int F77_DUMMY_MAIN() { return 1; }
6009 #endif
6010 int
6011 main ()
6012 {
6013 XkbQueryExtension ();
6014   ;
6015   return 0;
6016 }
6017 _ACEOF
6018 rm -f conftest.$ac_objext conftest$ac_exeext
6019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6020   (eval $ac_link) 2>&5
6021   ac_status=$?
6022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023   (exit $ac_status); } &&
6024          { ac_try='test -s conftest$ac_exeext'
6025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026   (eval $ac_try) 2>&5
6027   ac_status=$?
6028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029   (exit $ac_status); }; }; then
6030   ac_cv_lib_X11_XkbQueryExtension=yes
6031 else
6032   echo "$as_me: failed program was:" >&5
6033 cat conftest.$ac_ext >&5
6034 ac_cv_lib_X11_XkbQueryExtension=no
6035 fi
6036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6037 LIBS=$ac_check_lib_save_LIBS
6038 fi
6039 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6040 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6041 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6042
6043 cat >>confdefs.h <<\_ACEOF
6044 #define HAVE_XKB 1
6045 _ACEOF
6046
6047 fi
6048
6049
6050 else
6051   { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6052 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6053 fi
6054
6055 done
6056
6057
6058
6059 for ac_header in X11/extensions/XShm.h
6060 do
6061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6062 echo "$as_me:$LINENO: checking for $ac_header" >&5
6063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6065   echo $ECHO_N "(cached) $ECHO_C" >&6
6066 else
6067   cat >conftest.$ac_ext <<_ACEOF
6068 #line $LINENO "configure"
6069 #include "confdefs.h"
6070 #include <X11/Xlib.h>
6071
6072 #include <$ac_header>
6073 _ACEOF
6074 rm -f conftest.$ac_objext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6076   (eval $ac_compile) 2>&5
6077   ac_status=$?
6078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079   (exit $ac_status); } &&
6080          { ac_try='test -s conftest.$ac_objext'
6081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082   (eval $ac_try) 2>&5
6083   ac_status=$?
6084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085   (exit $ac_status); }; }; then
6086   eval "$as_ac_Header=yes"
6087 else
6088   echo "$as_me: failed program was:" >&5
6089 cat conftest.$ac_ext >&5
6090 eval "$as_ac_Header=no"
6091 fi
6092 rm -f conftest.$ac_objext conftest.$ac_ext
6093 fi
6094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6097   cat >>confdefs.h <<_ACEOF
6098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6099 _ACEOF
6100                 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6101 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6102 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6103   echo $ECHO_N "(cached) $ECHO_C" >&6
6104 else
6105   ac_check_lib_save_LIBS=$LIBS
6106 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6107 cat >conftest.$ac_ext <<_ACEOF
6108 #line $LINENO "configure"
6109 #include "confdefs.h"
6110
6111 /* Override any gcc2 internal prototype to avoid an error.  */
6112 #ifdef __cplusplus
6113 extern "C"
6114 #endif
6115 /* We use char because int might match the return type of a gcc2
6116    builtin and then its argument prototype would still apply.  */
6117 char XShmQueryExtension ();
6118 #ifdef F77_DUMMY_MAIN
6119 #  ifdef __cplusplus
6120      extern "C"
6121 #  endif
6122    int F77_DUMMY_MAIN() { return 1; }
6123 #endif
6124 int
6125 main ()
6126 {
6127 XShmQueryExtension ();
6128   ;
6129   return 0;
6130 }
6131 _ACEOF
6132 rm -f conftest.$ac_objext conftest$ac_exeext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6134   (eval $ac_link) 2>&5
6135   ac_status=$?
6136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137   (exit $ac_status); } &&
6138          { ac_try='test -s conftest$ac_exeext'
6139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140   (eval $ac_try) 2>&5
6141   ac_status=$?
6142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143   (exit $ac_status); }; }; then
6144   ac_cv_lib_Xext_XShmQueryExtension=yes
6145 else
6146   echo "$as_me: failed program was:" >&5
6147 cat conftest.$ac_ext >&5
6148 ac_cv_lib_Xext_XShmQueryExtension=no
6149 fi
6150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6151 LIBS=$ac_check_lib_save_LIBS
6152 fi
6153 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
6154 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6155 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
6156
6157 cat >>confdefs.h <<\_ACEOF
6158 #define HAVE_LIBXXSHM 1
6159 _ACEOF
6160
6161 fi
6162
6163
6164 else
6165   { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
6166 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
6167 fi
6168
6169 done
6170
6171
6172
6173 for ac_header in X11/Xutil.h
6174 do
6175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6176 echo "$as_me:$LINENO: checking for $ac_header" >&5
6177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6179   echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181   cat >conftest.$ac_ext <<_ACEOF
6182 #line $LINENO "configure"
6183 #include "confdefs.h"
6184 #include <X11/Xlib.h>
6185
6186 #include <$ac_header>
6187 _ACEOF
6188 rm -f conftest.$ac_objext
6189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6190   (eval $ac_compile) 2>&5
6191   ac_status=$?
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); } &&
6194          { ac_try='test -s conftest.$ac_objext'
6195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196   (eval $ac_try) 2>&5
6197   ac_status=$?
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); }; }; then
6200   eval "$as_ac_Header=yes"
6201 else
6202   echo "$as_me: failed program was:" >&5
6203 cat conftest.$ac_ext >&5
6204 eval "$as_ac_Header=no"
6205 fi
6206 rm -f conftest.$ac_objext conftest.$ac_ext
6207 fi
6208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6211   cat >>confdefs.h <<_ACEOF
6212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6213 _ACEOF
6214
6215 fi
6216
6217 done
6218
6219
6220
6221 for ac_header in X11/extensions/shape.h
6222 do
6223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6224 echo "$as_me:$LINENO: checking for $ac_header" >&5
6225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6227   echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229   cat >conftest.$ac_ext <<_ACEOF
6230 #line $LINENO "configure"
6231 #include "confdefs.h"
6232 #include <X11/Xlib.h>
6233              #ifdef HAVE_X11_XUTIL_H
6234              # include <X11/Xutil.h>
6235              #endif
6236
6237 #include <$ac_header>
6238 _ACEOF
6239 rm -f conftest.$ac_objext
6240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6241   (eval $ac_compile) 2>&5
6242   ac_status=$?
6243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244   (exit $ac_status); } &&
6245          { ac_try='test -s conftest.$ac_objext'
6246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247   (eval $ac_try) 2>&5
6248   ac_status=$?
6249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250   (exit $ac_status); }; }; then
6251   eval "$as_ac_Header=yes"
6252 else
6253   echo "$as_me: failed program was:" >&5
6254 cat conftest.$ac_ext >&5
6255 eval "$as_ac_Header=no"
6256 fi
6257 rm -f conftest.$ac_objext conftest.$ac_ext
6258 fi
6259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6262   cat >>confdefs.h <<_ACEOF
6263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6264 _ACEOF
6265                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
6266 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6267 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6268   echo $ECHO_N "(cached) $ECHO_C" >&6
6269 else
6270   ac_check_lib_save_LIBS=$LIBS
6271 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6272 cat >conftest.$ac_ext <<_ACEOF
6273 #line $LINENO "configure"
6274 #include "confdefs.h"
6275
6276 /* Override any gcc2 internal prototype to avoid an error.  */
6277 #ifdef __cplusplus
6278 extern "C"
6279 #endif
6280 /* We use char because int might match the return type of a gcc2
6281    builtin and then its argument prototype would still apply.  */
6282 char XShapeQueryExtension ();
6283 #ifdef F77_DUMMY_MAIN
6284 #  ifdef __cplusplus
6285      extern "C"
6286 #  endif
6287    int F77_DUMMY_MAIN() { return 1; }
6288 #endif
6289 int
6290 main ()
6291 {
6292 XShapeQueryExtension ();
6293   ;
6294   return 0;
6295 }
6296 _ACEOF
6297 rm -f conftest.$ac_objext conftest$ac_exeext
6298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6299   (eval $ac_link) 2>&5
6300   ac_status=$?
6301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302   (exit $ac_status); } &&
6303          { ac_try='test -s conftest$ac_exeext'
6304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305   (eval $ac_try) 2>&5
6306   ac_status=$?
6307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308   (exit $ac_status); }; }; then
6309   ac_cv_lib_Xext_XShapeQueryExtension=yes
6310 else
6311   echo "$as_me: failed program was:" >&5
6312 cat conftest.$ac_ext >&5
6313 ac_cv_lib_Xext_XShapeQueryExtension=no
6314 fi
6315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6316 LIBS=$ac_check_lib_save_LIBS
6317 fi
6318 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6319 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6320 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6321
6322 cat >>confdefs.h <<\_ACEOF
6323 #define HAVE_LIBXSHAPE 1
6324 _ACEOF
6325
6326 fi
6327
6328
6329 else
6330   { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
6331 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
6332 fi
6333
6334 done
6335
6336
6337
6338 for ac_header in X11/extensions/xf86dga.h
6339 do
6340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6341 echo "$as_me:$LINENO: checking for $ac_header" >&5
6342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6344   echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346   cat >conftest.$ac_ext <<_ACEOF
6347 #line $LINENO "configure"
6348 #include "confdefs.h"
6349 #include <X11/Xlib.h>
6350
6351 #include <$ac_header>
6352 _ACEOF
6353 rm -f conftest.$ac_objext
6354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6355   (eval $ac_compile) 2>&5
6356   ac_status=$?
6357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358   (exit $ac_status); } &&
6359          { ac_try='test -s conftest.$ac_objext'
6360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361   (eval $ac_try) 2>&5
6362   ac_status=$?
6363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); }; }; then
6365   eval "$as_ac_Header=yes"
6366 else
6367   echo "$as_me: failed program was:" >&5
6368 cat conftest.$ac_ext >&5
6369 eval "$as_ac_Header=no"
6370 fi
6371 rm -f conftest.$ac_objext conftest.$ac_ext
6372 fi
6373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6376   cat >>confdefs.h <<_ACEOF
6377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6378 _ACEOF
6379                               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
6380 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6381 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6382   echo $ECHO_N "(cached) $ECHO_C" >&6
6383 else
6384   ac_check_lib_save_LIBS=$LIBS
6385 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6386                $LIBS"
6387 cat >conftest.$ac_ext <<_ACEOF
6388 #line $LINENO "configure"
6389 #include "confdefs.h"
6390
6391 /* Override any gcc2 internal prototype to avoid an error.  */
6392 #ifdef __cplusplus
6393 extern "C"
6394 #endif
6395 /* We use char because int might match the return type of a gcc2
6396    builtin and then its argument prototype would still apply.  */
6397 char XDGAQueryExtension ();
6398 #ifdef F77_DUMMY_MAIN
6399 #  ifdef __cplusplus
6400      extern "C"
6401 #  endif
6402    int F77_DUMMY_MAIN() { return 1; }
6403 #endif
6404 int
6405 main ()
6406 {
6407 XDGAQueryExtension ();
6408   ;
6409   return 0;
6410 }
6411 _ACEOF
6412 rm -f conftest.$ac_objext conftest$ac_exeext
6413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6414   (eval $ac_link) 2>&5
6415   ac_status=$?
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); } &&
6418          { ac_try='test -s conftest$ac_exeext'
6419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420   (eval $ac_try) 2>&5
6421   ac_status=$?
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); }; }; then
6424   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
6425 else
6426   echo "$as_me: failed program was:" >&5
6427 cat conftest.$ac_ext >&5
6428 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
6429 fi
6430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6431 LIBS=$ac_check_lib_save_LIBS
6432 fi
6433 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
6434 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6435 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
6436
6437 cat >>confdefs.h <<\_ACEOF
6438 #define HAVE_LIBXXF86DGA2 1
6439 _ACEOF
6440
6441                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6442
6443 else
6444                                        echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
6445 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6446 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6447   echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449   ac_check_lib_save_LIBS=$LIBS
6450 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6451                    $LIBS"
6452 cat >conftest.$ac_ext <<_ACEOF
6453 #line $LINENO "configure"
6454 #include "confdefs.h"
6455
6456 /* Override any gcc2 internal prototype to avoid an error.  */
6457 #ifdef __cplusplus
6458 extern "C"
6459 #endif
6460 /* We use char because int might match the return type of a gcc2
6461    builtin and then its argument prototype would still apply.  */
6462 char XF86DGAQueryExtension ();
6463 #ifdef F77_DUMMY_MAIN
6464 #  ifdef __cplusplus
6465      extern "C"
6466 #  endif
6467    int F77_DUMMY_MAIN() { return 1; }
6468 #endif
6469 int
6470 main ()
6471 {
6472 XF86DGAQueryExtension ();
6473   ;
6474   return 0;
6475 }
6476 _ACEOF
6477 rm -f conftest.$ac_objext conftest$ac_exeext
6478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6479   (eval $ac_link) 2>&5
6480   ac_status=$?
6481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482   (exit $ac_status); } &&
6483          { ac_try='test -s conftest$ac_exeext'
6484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485   (eval $ac_try) 2>&5
6486   ac_status=$?
6487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488   (exit $ac_status); }; }; then
6489   ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
6490 else
6491   echo "$as_me: failed program was:" >&5
6492 cat conftest.$ac_ext >&5
6493 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
6494 fi
6495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6496 LIBS=$ac_check_lib_save_LIBS
6497 fi
6498 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
6499 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6500 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
6501
6502 cat >>confdefs.h <<\_ACEOF
6503 #define HAVE_LIBXXF86DGA 1
6504 _ACEOF
6505
6506                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6507
6508 fi
6509
6510
6511 fi
6512
6513
6514 else
6515   { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
6516 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
6517 fi
6518
6519 done
6520
6521
6522
6523 for ac_header in X11/extensions/xf86vmode.h
6524 do
6525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6526 echo "$as_me:$LINENO: checking for $ac_header" >&5
6527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6529   echo $ECHO_N "(cached) $ECHO_C" >&6
6530 else
6531   cat >conftest.$ac_ext <<_ACEOF
6532 #line $LINENO "configure"
6533 #include "confdefs.h"
6534 #include <X11/Xlib.h>
6535
6536 #include <$ac_header>
6537 _ACEOF
6538 rm -f conftest.$ac_objext
6539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6540   (eval $ac_compile) 2>&5
6541   ac_status=$?
6542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543   (exit $ac_status); } &&
6544          { ac_try='test -s conftest.$ac_objext'
6545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546   (eval $ac_try) 2>&5
6547   ac_status=$?
6548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549   (exit $ac_status); }; }; then
6550   eval "$as_ac_Header=yes"
6551 else
6552   echo "$as_me: failed program was:" >&5
6553 cat conftest.$ac_ext >&5
6554 eval "$as_ac_Header=no"
6555 fi
6556 rm -f conftest.$ac_objext conftest.$ac_ext
6557 fi
6558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6561   cat >>confdefs.h <<_ACEOF
6562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6563 _ACEOF
6564                   echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
6565 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6566 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6567   echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569   ac_check_lib_save_LIBS=$LIBS
6570 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6571                  $LIBS"
6572 cat >conftest.$ac_ext <<_ACEOF
6573 #line $LINENO "configure"
6574 #include "confdefs.h"
6575
6576 /* Override any gcc2 internal prototype to avoid an error.  */
6577 #ifdef __cplusplus
6578 extern "C"
6579 #endif
6580 /* We use char because int might match the return type of a gcc2
6581    builtin and then its argument prototype would still apply.  */
6582 char XF86VidModeQueryExtension ();
6583 #ifdef F77_DUMMY_MAIN
6584 #  ifdef __cplusplus
6585      extern "C"
6586 #  endif
6587    int F77_DUMMY_MAIN() { return 1; }
6588 #endif
6589 int
6590 main ()
6591 {
6592 XF86VidModeQueryExtension ();
6593   ;
6594   return 0;
6595 }
6596 _ACEOF
6597 rm -f conftest.$ac_objext conftest$ac_exeext
6598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6599   (eval $ac_link) 2>&5
6600   ac_status=$?
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); } &&
6603          { ac_try='test -s conftest$ac_exeext'
6604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605   (eval $ac_try) 2>&5
6606   ac_status=$?
6607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608   (exit $ac_status); }; }; then
6609   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
6610 else
6611   echo "$as_me: failed program was:" >&5
6612 cat conftest.$ac_ext >&5
6613 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
6614 fi
6615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6616 LIBS=$ac_check_lib_save_LIBS
6617 fi
6618 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
6619 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6620 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
6621
6622 cat >>confdefs.h <<\_ACEOF
6623 #define HAVE_LIBXXF86VM 1
6624 _ACEOF
6625
6626                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
6627
6628 fi
6629
6630
6631 else
6632   { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
6633 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
6634 fi
6635
6636 done
6637
6638
6639
6640 for ac_header in X11/extensions/Xvlib.h
6641 do
6642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6643 echo "$as_me:$LINENO: checking for $ac_header" >&5
6644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6646   echo $ECHO_N "(cached) $ECHO_C" >&6
6647 else
6648   cat >conftest.$ac_ext <<_ACEOF
6649 #line $LINENO "configure"
6650 #include "confdefs.h"
6651 #include <X11/Xlib.h>
6652
6653 #include <$ac_header>
6654 _ACEOF
6655 rm -f conftest.$ac_objext
6656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6657   (eval $ac_compile) 2>&5
6658   ac_status=$?
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); } &&
6661          { ac_try='test -s conftest.$ac_objext'
6662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663   (eval $ac_try) 2>&5
6664   ac_status=$?
6665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666   (exit $ac_status); }; }; then
6667   eval "$as_ac_Header=yes"
6668 else
6669   echo "$as_me: failed program was:" >&5
6670 cat conftest.$ac_ext >&5
6671 eval "$as_ac_Header=no"
6672 fi
6673 rm -f conftest.$ac_objext conftest.$ac_ext
6674 fi
6675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6678   cat >>confdefs.h <<_ACEOF
6679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6680 _ACEOF
6681                   echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
6682 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6683 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6684   echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686   ac_check_lib_save_LIBS=$LIBS
6687 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6688                  $LIBS"
6689 cat >conftest.$ac_ext <<_ACEOF
6690 #line $LINENO "configure"
6691 #include "confdefs.h"
6692
6693 /* Override any gcc2 internal prototype to avoid an error.  */
6694 #ifdef __cplusplus
6695 extern "C"
6696 #endif
6697 /* We use char because int might match the return type of a gcc2
6698    builtin and then its argument prototype would still apply.  */
6699 char XvShmCreateImage ();
6700 #ifdef F77_DUMMY_MAIN
6701 #  ifdef __cplusplus
6702      extern "C"
6703 #  endif
6704    int F77_DUMMY_MAIN() { return 1; }
6705 #endif
6706 int
6707 main ()
6708 {
6709 XvShmCreateImage ();
6710   ;
6711   return 0;
6712 }
6713 _ACEOF
6714 rm -f conftest.$ac_objext conftest$ac_exeext
6715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6716   (eval $ac_link) 2>&5
6717   ac_status=$?
6718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719   (exit $ac_status); } &&
6720          { ac_try='test -s conftest$ac_exeext'
6721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722   (eval $ac_try) 2>&5
6723   ac_status=$?
6724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725   (exit $ac_status); }; }; then
6726   ac_cv_lib_Xv_XvShmCreateImage=yes
6727 else
6728   echo "$as_me: failed program was:" >&5
6729 cat conftest.$ac_ext >&5
6730 ac_cv_lib_Xv_XvShmCreateImage=no
6731 fi
6732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6733 LIBS=$ac_check_lib_save_LIBS
6734 fi
6735 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
6736 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6737 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
6738
6739 cat >>confdefs.h <<\_ACEOF
6740 #define HAVE_XVIDEO 1
6741 _ACEOF
6742
6743                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
6744
6745 fi
6746
6747
6748 else
6749   { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
6750 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
6751 fi
6752
6753 done
6754
6755
6756
6757 for ac_header in X11/extensions/Xrender.h
6758 do
6759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6760 echo "$as_me:$LINENO: checking for $ac_header" >&5
6761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6763   echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765   cat >conftest.$ac_ext <<_ACEOF
6766 #line $LINENO "configure"
6767 #include "confdefs.h"
6768 #include <X11/Xlib.h>
6769
6770 #include <$ac_header>
6771 _ACEOF
6772 rm -f conftest.$ac_objext
6773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6774   (eval $ac_compile) 2>&5
6775   ac_status=$?
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); } &&
6778          { ac_try='test -s conftest.$ac_objext'
6779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780   (eval $ac_try) 2>&5
6781   ac_status=$?
6782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783   (exit $ac_status); }; }; then
6784   eval "$as_ac_Header=yes"
6785 else
6786   echo "$as_me: failed program was:" >&5
6787 cat conftest.$ac_ext >&5
6788 eval "$as_ac_Header=no"
6789 fi
6790 rm -f conftest.$ac_objext conftest.$ac_ext
6791 fi
6792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6795   cat >>confdefs.h <<_ACEOF
6796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6797 _ACEOF
6798
6799 fi
6800
6801 done
6802
6803
6804
6805 fi
6806
6807 done
6808
6809         if test "x$enable_opengl" != "xno"
6810     then
6811         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
6812         then
6813             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
6814 This prevents linking to OpenGL. Delete the file and restart configure." >&5
6815 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6816 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6817    { (exit 1); exit 1; }; }
6818         fi
6819
6820
6821
6822 for ac_header in GL/gl.h GL/glx.h
6823 do
6824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6826   echo "$as_me:$LINENO: checking for $ac_header" >&5
6827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6829   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
6834   # Is the header compilable?
6835 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6837 cat >conftest.$ac_ext <<_ACEOF
6838 #line $LINENO "configure"
6839 #include "confdefs.h"
6840 $ac_includes_default
6841 #include <$ac_header>
6842 _ACEOF
6843 rm -f conftest.$ac_objext
6844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6845   (eval $ac_compile) 2>&5
6846   ac_status=$?
6847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848   (exit $ac_status); } &&
6849          { ac_try='test -s conftest.$ac_objext'
6850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851   (eval $ac_try) 2>&5
6852   ac_status=$?
6853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854   (exit $ac_status); }; }; then
6855   ac_header_compiler=yes
6856 else
6857   echo "$as_me: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6859 ac_header_compiler=no
6860 fi
6861 rm -f conftest.$ac_objext conftest.$ac_ext
6862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6863 echo "${ECHO_T}$ac_header_compiler" >&6
6864
6865 # Is the header present?
6866 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6868 cat >conftest.$ac_ext <<_ACEOF
6869 #line $LINENO "configure"
6870 #include "confdefs.h"
6871 #include <$ac_header>
6872 _ACEOF
6873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6874   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6875   ac_status=$?
6876   egrep -v '^ *\+' conftest.er1 >conftest.err
6877   rm -f conftest.er1
6878   cat conftest.err >&5
6879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880   (exit $ac_status); } >/dev/null; then
6881   if test -s conftest.err; then
6882     ac_cpp_err=$ac_c_preproc_warn_flag
6883   else
6884     ac_cpp_err=
6885   fi
6886 else
6887   ac_cpp_err=yes
6888 fi
6889 if test -z "$ac_cpp_err"; then
6890   ac_header_preproc=yes
6891 else
6892   echo "$as_me: failed program was:" >&5
6893   cat conftest.$ac_ext >&5
6894   ac_header_preproc=no
6895 fi
6896 rm -f conftest.err conftest.$ac_ext
6897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6898 echo "${ECHO_T}$ac_header_preproc" >&6
6899
6900 # So?  What about this header?
6901 case $ac_header_compiler:$ac_header_preproc in
6902   yes:no )
6903     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6905     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6907   no:yes )
6908     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6910     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6912     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6914 esac
6915 echo "$as_me:$LINENO: checking for $ac_header" >&5
6916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6918   echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920   eval "$as_ac_Header=$ac_header_preproc"
6921 fi
6922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6924
6925 fi
6926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6927   cat >>confdefs.h <<_ACEOF
6928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6929 _ACEOF
6930
6931 fi
6932
6933 done
6934
6935         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
6936         then
6937
6938 for ac_header in GL/glext.h
6939 do
6940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6941 echo "$as_me:$LINENO: checking for $ac_header" >&5
6942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6944   echo $ECHO_N "(cached) $ECHO_C" >&6
6945 else
6946   cat >conftest.$ac_ext <<_ACEOF
6947 #line $LINENO "configure"
6948 #include "confdefs.h"
6949 #include <GL/glx.h>
6950
6951 #include <$ac_header>
6952 _ACEOF
6953 rm -f conftest.$ac_objext
6954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6955   (eval $ac_compile) 2>&5
6956   ac_status=$?
6957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958   (exit $ac_status); } &&
6959          { ac_try='test -s conftest.$ac_objext'
6960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961   (eval $ac_try) 2>&5
6962   ac_status=$?
6963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964   (exit $ac_status); }; }; then
6965   eval "$as_ac_Header=yes"
6966 else
6967   echo "$as_me: failed program was:" >&5
6968 cat conftest.$ac_ext >&5
6969 eval "$as_ac_Header=no"
6970 fi
6971 rm -f conftest.$ac_objext conftest.$ac_ext
6972 fi
6973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6976   cat >>confdefs.h <<_ACEOF
6977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6978 _ACEOF
6979
6980 fi
6981
6982 done
6983
6984                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
6985 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
6986 if test "${wine_cv_opengl_version_OK+set}" = set; then
6987   echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989   cat >conftest.$ac_ext <<_ACEOF
6990 #line $LINENO "configure"
6991 #include "confdefs.h"
6992 #include <GL/gl.h>
6993 #ifdef F77_DUMMY_MAIN
6994 #  ifdef __cplusplus
6995      extern "C"
6996 #  endif
6997    int F77_DUMMY_MAIN() { return 1; }
6998 #endif
6999 int
7000 main ()
7001 {
7002 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7003   ;
7004   return 0;
7005 }
7006 _ACEOF
7007 rm -f conftest.$ac_objext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7009   (eval $ac_compile) 2>&5
7010   ac_status=$?
7011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012   (exit $ac_status); } &&
7013          { ac_try='test -s conftest.$ac_objext'
7014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015   (eval $ac_try) 2>&5
7016   ac_status=$?
7017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); }; }; then
7019   wine_cv_opengl_version_OK="yes"
7020 else
7021   echo "$as_me: failed program was:" >&5
7022 cat conftest.$ac_ext >&5
7023 wine_cv_opengl_version_OK="no"
7024
7025 fi
7026 rm -f conftest.$ac_objext conftest.$ac_ext
7027
7028 fi
7029 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7030 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7031
7032                     echo "$as_me:$LINENO: checking for thread-safe OpenGL version" >&5
7033 echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6
7034 if test "${wine_cv_opengl_version_threadsafe+set}" = set; then
7035   echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037   saved_libs=$LIBS
7038                LIBS="$X_LIBS -lGL"
7039                cat >conftest.$ac_ext <<_ACEOF
7040 #line $LINENO "configure"
7041 #include "confdefs.h"
7042
7043 #ifdef F77_DUMMY_MAIN
7044 #  ifdef __cplusplus
7045      extern "C"
7046 #  endif
7047    int F77_DUMMY_MAIN() { return 1; }
7048 #endif
7049 int
7050 main ()
7051 {
7052 pthread_getspecific();
7053   ;
7054   return 0;
7055 }
7056 _ACEOF
7057 rm -f conftest.$ac_objext conftest$ac_exeext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7059   (eval $ac_link) 2>&5
7060   ac_status=$?
7061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062   (exit $ac_status); } &&
7063          { ac_try='test -s conftest$ac_exeext'
7064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065   (eval $ac_try) 2>&5
7066   ac_status=$?
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); }; }; then
7069   wine_cv_opengl_version_threadsafe="yes"
7070 else
7071   echo "$as_me: failed program was:" >&5
7072 cat conftest.$ac_ext >&5
7073 wine_cv_opengl_version_threadsafe="no"
7074 fi
7075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7076                LIBS=$saved_libs
7077
7078 fi
7079 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_threadsafe" >&5
7080 echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6
7081
7082             if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o "x$enable_opengl" = "xyes" \)
7083             then
7084                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7085 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7086 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7087   echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089   ac_check_lib_save_LIBS=$LIBS
7090 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7091 cat >conftest.$ac_ext <<_ACEOF
7092 #line $LINENO "configure"
7093 #include "confdefs.h"
7094
7095 /* Override any gcc2 internal prototype to avoid an error.  */
7096 #ifdef __cplusplus
7097 extern "C"
7098 #endif
7099 /* We use char because int might match the return type of a gcc2
7100    builtin and then its argument prototype would still apply.  */
7101 char glXCreateContext ();
7102 #ifdef F77_DUMMY_MAIN
7103 #  ifdef __cplusplus
7104      extern "C"
7105 #  endif
7106    int F77_DUMMY_MAIN() { return 1; }
7107 #endif
7108 int
7109 main ()
7110 {
7111 glXCreateContext ();
7112   ;
7113   return 0;
7114 }
7115 _ACEOF
7116 rm -f conftest.$ac_objext conftest$ac_exeext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7118   (eval $ac_link) 2>&5
7119   ac_status=$?
7120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121   (exit $ac_status); } &&
7122          { ac_try='test -s conftest$ac_exeext'
7123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124   (eval $ac_try) 2>&5
7125   ac_status=$?
7126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); }; }; then
7128   ac_cv_lib_GL_glXCreateContext=yes
7129 else
7130   echo "$as_me: failed program was:" >&5
7131 cat conftest.$ac_ext >&5
7132 ac_cv_lib_GL_glXCreateContext=no
7133 fi
7134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7135 LIBS=$ac_check_lib_save_LIBS
7136 fi
7137 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7138 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7139 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7140   X_PRE_LIBS="$X_PRE_LIBS -lGL"
7141
7142 fi
7143
7144
7145                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7146                 then
7147                         OPENGLFILES='$(OPENGLFILES)'
7148
7149 cat >>confdefs.h <<\_ACEOF
7150 #define HAVE_OPENGL 1
7151 _ACEOF
7152
7153
7154                         echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7155 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7156 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7157   echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159   ac_check_lib_save_LIBS=$LIBS
7160 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7161 cat >conftest.$ac_ext <<_ACEOF
7162 #line $LINENO "configure"
7163 #include "confdefs.h"
7164
7165 /* Override any gcc2 internal prototype to avoid an error.  */
7166 #ifdef __cplusplus
7167 extern "C"
7168 #endif
7169 /* We use char because int might match the return type of a gcc2
7170    builtin and then its argument prototype would still apply.  */
7171 char glXGetProcAddressARB ();
7172 #ifdef F77_DUMMY_MAIN
7173 #  ifdef __cplusplus
7174      extern "C"
7175 #  endif
7176    int F77_DUMMY_MAIN() { return 1; }
7177 #endif
7178 int
7179 main ()
7180 {
7181 glXGetProcAddressARB ();
7182   ;
7183   return 0;
7184 }
7185 _ACEOF
7186 rm -f conftest.$ac_objext conftest$ac_exeext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7188   (eval $ac_link) 2>&5
7189   ac_status=$?
7190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191   (exit $ac_status); } &&
7192          { ac_try='test -s conftest$ac_exeext'
7193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194   (eval $ac_try) 2>&5
7195   ac_status=$?
7196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197   (exit $ac_status); }; }; then
7198   ac_cv_lib_GL_glXGetProcAddressARB=yes
7199 else
7200   echo "$as_me: failed program was:" >&5
7201 cat conftest.$ac_ext >&5
7202 ac_cv_lib_GL_glXGetProcAddressARB=no
7203 fi
7204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7205 LIBS=$ac_check_lib_save_LIBS
7206 fi
7207 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7208 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7209 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7210
7211 cat >>confdefs.h <<\_ACEOF
7212 #define HAVE_GLX_GETPROCADDRESS 1
7213 _ACEOF
7214
7215 fi
7216
7217
7218                         if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7219                         then
7220                                echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7221 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7222 if test "${wine_cv_extension_prototypes+set}" = set; then
7223   echo $ECHO_N "(cached) $ECHO_C" >&6
7224 else
7225   cat >conftest.$ac_ext <<_ACEOF
7226 #line $LINENO "configure"
7227 #include "confdefs.h"
7228 #include <GL/gl.h>
7229                                                   #ifdef HAVE_GL_GLEXT_H
7230                                                   # include <GL/glext.h>
7231                                                   #endif
7232
7233 #ifdef F77_DUMMY_MAIN
7234 #  ifdef __cplusplus
7235      extern "C"
7236 #  endif
7237    int F77_DUMMY_MAIN() { return 1; }
7238 #endif
7239 int
7240 main ()
7241 {
7242 PFNGLCOLORTABLEEXTPROC test_proc;
7243   ;
7244   return 0;
7245 }
7246 _ACEOF
7247 rm -f conftest.$ac_objext
7248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7249   (eval $ac_compile) 2>&5
7250   ac_status=$?
7251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252   (exit $ac_status); } &&
7253          { ac_try='test -s conftest.$ac_objext'
7254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255   (eval $ac_try) 2>&5
7256   ac_status=$?
7257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258   (exit $ac_status); }; }; then
7259   wine_cv_extension_prototypes="yes"
7260 else
7261   echo "$as_me: failed program was:" >&5
7262 cat conftest.$ac_ext >&5
7263 wine_cv_extension_prototypes="no"
7264
7265 fi
7266 rm -f conftest.$ac_objext conftest.$ac_ext
7267
7268 fi
7269 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7270 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7271                                 if test "$wine_cv_extension_prototypes" = "yes"
7272                                 then
7273
7274 cat >>confdefs.h <<\_ACEOF
7275 #define HAVE_GLEXT_PROTOTYPES 1
7276 _ACEOF
7277
7278                                 fi
7279                         fi
7280
7281                 fi
7282                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7283 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7284 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7285   echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287   ac_check_lib_save_LIBS=$LIBS
7288 LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7289                  $LIBS"
7290 cat >conftest.$ac_ext <<_ACEOF
7291 #line $LINENO "configure"
7292 #include "confdefs.h"
7293
7294 /* Override any gcc2 internal prototype to avoid an error.  */
7295 #ifdef __cplusplus
7296 extern "C"
7297 #endif
7298 /* We use char because int might match the return type of a gcc2
7299    builtin and then its argument prototype would still apply.  */
7300 char gluLookAt ();
7301 #ifdef F77_DUMMY_MAIN
7302 #  ifdef __cplusplus
7303      extern "C"
7304 #  endif
7305    int F77_DUMMY_MAIN() { return 1; }
7306 #endif
7307 int
7308 main ()
7309 {
7310 gluLookAt ();
7311   ;
7312   return 0;
7313 }
7314 _ACEOF
7315 rm -f conftest.$ac_objext conftest$ac_exeext
7316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7317   (eval $ac_link) 2>&5
7318   ac_status=$?
7319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320   (exit $ac_status); } &&
7321          { ac_try='test -s conftest$ac_exeext'
7322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323   (eval $ac_try) 2>&5
7324   ac_status=$?
7325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326   (exit $ac_status); }; }; then
7327   ac_cv_lib_GLU_gluLookAt=yes
7328 else
7329   echo "$as_me: failed program was:" >&5
7330 cat conftest.$ac_ext >&5
7331 ac_cv_lib_GLU_gluLookAt=no
7332 fi
7333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7334 LIBS=$ac_check_lib_save_LIBS
7335 fi
7336 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7337 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7338 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7339   X_PRE_LIBS="$X_PRE_LIBS -lGLU"
7340                              GLU32FILES='$(GLU32FILES)'
7341
7342 fi
7343
7344              fi
7345          fi
7346     fi
7347
7348     CPPFLAGS="$ac_save_CPPFLAGS"
7349     XFILES='$(XFILES)'
7350 else
7351     XLIB=""
7352     X_CFLAGS=""
7353     X_LIBS=""
7354 fi
7355
7356 CURSESLIBS=""
7357 if test "x$with_curses" != "xno"
7358 then
7359
7360 for ac_header in ncurses.h
7361 do
7362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7364   echo "$as_me:$LINENO: checking for $ac_header" >&5
7365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7367   echo $ECHO_N "(cached) $ECHO_C" >&6
7368 fi
7369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7371 else
7372   # Is the header compilable?
7373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7375 cat >conftest.$ac_ext <<_ACEOF
7376 #line $LINENO "configure"
7377 #include "confdefs.h"
7378 $ac_includes_default
7379 #include <$ac_header>
7380 _ACEOF
7381 rm -f conftest.$ac_objext
7382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7383   (eval $ac_compile) 2>&5
7384   ac_status=$?
7385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386   (exit $ac_status); } &&
7387          { ac_try='test -s conftest.$ac_objext'
7388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389   (eval $ac_try) 2>&5
7390   ac_status=$?
7391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392   (exit $ac_status); }; }; then
7393   ac_header_compiler=yes
7394 else
7395   echo "$as_me: failed program was:" >&5
7396 cat conftest.$ac_ext >&5
7397 ac_header_compiler=no
7398 fi
7399 rm -f conftest.$ac_objext conftest.$ac_ext
7400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7401 echo "${ECHO_T}$ac_header_compiler" >&6
7402
7403 # Is the header present?
7404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7406 cat >conftest.$ac_ext <<_ACEOF
7407 #line $LINENO "configure"
7408 #include "confdefs.h"
7409 #include <$ac_header>
7410 _ACEOF
7411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7412   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7413   ac_status=$?
7414   egrep -v '^ *\+' conftest.er1 >conftest.err
7415   rm -f conftest.er1
7416   cat conftest.err >&5
7417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418   (exit $ac_status); } >/dev/null; then
7419   if test -s conftest.err; then
7420     ac_cpp_err=$ac_c_preproc_warn_flag
7421   else
7422     ac_cpp_err=
7423   fi
7424 else
7425   ac_cpp_err=yes
7426 fi
7427 if test -z "$ac_cpp_err"; then
7428   ac_header_preproc=yes
7429 else
7430   echo "$as_me: failed program was:" >&5
7431   cat conftest.$ac_ext >&5
7432   ac_header_preproc=no
7433 fi
7434 rm -f conftest.err conftest.$ac_ext
7435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7436 echo "${ECHO_T}$ac_header_preproc" >&6
7437
7438 # So?  What about this header?
7439 case $ac_header_compiler:$ac_header_preproc in
7440   yes:no )
7441     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7443     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7445   no:yes )
7446     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7448     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7452 esac
7453 echo "$as_me:$LINENO: checking for $ac_header" >&5
7454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7456   echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458   eval "$as_ac_Header=$ac_header_preproc"
7459 fi
7460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7462
7463 fi
7464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7465   cat >>confdefs.h <<_ACEOF
7466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7467 _ACEOF
7468  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
7469 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7470 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7471   echo $ECHO_N "(cached) $ECHO_C" >&6
7472 else
7473   ac_check_lib_save_LIBS=$LIBS
7474 LIBS="-lncurses  $LIBS"
7475 cat >conftest.$ac_ext <<_ACEOF
7476 #line $LINENO "configure"
7477 #include "confdefs.h"
7478
7479 /* Override any gcc2 internal prototype to avoid an error.  */
7480 #ifdef __cplusplus
7481 extern "C"
7482 #endif
7483 /* We use char because int might match the return type of a gcc2
7484    builtin and then its argument prototype would still apply.  */
7485 char waddch ();
7486 #ifdef F77_DUMMY_MAIN
7487 #  ifdef __cplusplus
7488      extern "C"
7489 #  endif
7490    int F77_DUMMY_MAIN() { return 1; }
7491 #endif
7492 int
7493 main ()
7494 {
7495 waddch ();
7496   ;
7497   return 0;
7498 }
7499 _ACEOF
7500 rm -f conftest.$ac_objext conftest$ac_exeext
7501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7502   (eval $ac_link) 2>&5
7503   ac_status=$?
7504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505   (exit $ac_status); } &&
7506          { ac_try='test -s conftest$ac_exeext'
7507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508   (eval $ac_try) 2>&5
7509   ac_status=$?
7510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511   (exit $ac_status); }; }; then
7512   ac_cv_lib_ncurses_waddch=yes
7513 else
7514   echo "$as_me: failed program was:" >&5
7515 cat conftest.$ac_ext >&5
7516 ac_cv_lib_ncurses_waddch=no
7517 fi
7518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7519 LIBS=$ac_check_lib_save_LIBS
7520 fi
7521 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
7522 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7523 if test $ac_cv_lib_ncurses_waddch = yes; then
7524
7525 cat >>confdefs.h <<\_ACEOF
7526 #define HAVE_LIBNCURSES 1
7527 _ACEOF
7528
7529              CURSESLIBS="-lncurses"
7530 else
7531
7532 for ac_header in curses.h
7533 do
7534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7536   echo "$as_me:$LINENO: checking for $ac_header" >&5
7537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7539   echo $ECHO_N "(cached) $ECHO_C" >&6
7540 fi
7541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7543 else
7544   # Is the header compilable?
7545 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7547 cat >conftest.$ac_ext <<_ACEOF
7548 #line $LINENO "configure"
7549 #include "confdefs.h"
7550 $ac_includes_default
7551 #include <$ac_header>
7552 _ACEOF
7553 rm -f conftest.$ac_objext
7554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7555   (eval $ac_compile) 2>&5
7556   ac_status=$?
7557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558   (exit $ac_status); } &&
7559          { ac_try='test -s conftest.$ac_objext'
7560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561   (eval $ac_try) 2>&5
7562   ac_status=$?
7563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564   (exit $ac_status); }; }; then
7565   ac_header_compiler=yes
7566 else
7567   echo "$as_me: failed program was:" >&5
7568 cat conftest.$ac_ext >&5
7569 ac_header_compiler=no
7570 fi
7571 rm -f conftest.$ac_objext conftest.$ac_ext
7572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7573 echo "${ECHO_T}$ac_header_compiler" >&6
7574
7575 # Is the header present?
7576 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7578 cat >conftest.$ac_ext <<_ACEOF
7579 #line $LINENO "configure"
7580 #include "confdefs.h"
7581 #include <$ac_header>
7582 _ACEOF
7583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7584   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7585   ac_status=$?
7586   egrep -v '^ *\+' conftest.er1 >conftest.err
7587   rm -f conftest.er1
7588   cat conftest.err >&5
7589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590   (exit $ac_status); } >/dev/null; then
7591   if test -s conftest.err; then
7592     ac_cpp_err=$ac_c_preproc_warn_flag
7593   else
7594     ac_cpp_err=
7595   fi
7596 else
7597   ac_cpp_err=yes
7598 fi
7599 if test -z "$ac_cpp_err"; then
7600   ac_header_preproc=yes
7601 else
7602   echo "$as_me: failed program was:" >&5
7603   cat conftest.$ac_ext >&5
7604   ac_header_preproc=no
7605 fi
7606 rm -f conftest.err conftest.$ac_ext
7607 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7608 echo "${ECHO_T}$ac_header_preproc" >&6
7609
7610 # So?  What about this header?
7611 case $ac_header_compiler:$ac_header_preproc in
7612   yes:no )
7613     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7615     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7617   no:yes )
7618     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7620     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7622     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7624 esac
7625 echo "$as_me:$LINENO: checking for $ac_header" >&5
7626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7628   echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630   eval "$as_ac_Header=$ac_header_preproc"
7631 fi
7632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7634
7635 fi
7636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7637   cat >>confdefs.h <<_ACEOF
7638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7639 _ACEOF
7640  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
7641 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7642 if test "${ac_cv_lib_curses_waddch+set}" = set; then
7643   echo $ECHO_N "(cached) $ECHO_C" >&6
7644 else
7645   ac_check_lib_save_LIBS=$LIBS
7646 LIBS="-lcurses  $LIBS"
7647 cat >conftest.$ac_ext <<_ACEOF
7648 #line $LINENO "configure"
7649 #include "confdefs.h"
7650
7651 /* Override any gcc2 internal prototype to avoid an error.  */
7652 #ifdef __cplusplus
7653 extern "C"
7654 #endif
7655 /* We use char because int might match the return type of a gcc2
7656    builtin and then its argument prototype would still apply.  */
7657 char waddch ();
7658 #ifdef F77_DUMMY_MAIN
7659 #  ifdef __cplusplus
7660      extern "C"
7661 #  endif
7662    int F77_DUMMY_MAIN() { return 1; }
7663 #endif
7664 int
7665 main ()
7666 {
7667 waddch ();
7668   ;
7669   return 0;
7670 }
7671 _ACEOF
7672 rm -f conftest.$ac_objext conftest$ac_exeext
7673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7674   (eval $ac_link) 2>&5
7675   ac_status=$?
7676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677   (exit $ac_status); } &&
7678          { ac_try='test -s conftest$ac_exeext'
7679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680   (eval $ac_try) 2>&5
7681   ac_status=$?
7682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683   (exit $ac_status); }; }; then
7684   ac_cv_lib_curses_waddch=yes
7685 else
7686   echo "$as_me: failed program was:" >&5
7687 cat conftest.$ac_ext >&5
7688 ac_cv_lib_curses_waddch=no
7689 fi
7690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7691 LIBS=$ac_check_lib_save_LIBS
7692 fi
7693 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
7694 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7695 if test $ac_cv_lib_curses_waddch = yes; then
7696
7697 cat >>confdefs.h <<\_ACEOF
7698 #define HAVE_LIBCURSES 1
7699 _ACEOF
7700
7701                       CURSESLIBS="-lcurses"
7702 fi
7703
7704 fi
7705
7706 done
7707
7708 fi
7709
7710 fi
7711
7712 done
7713
7714     saved_libs="$LIBS"
7715     LIBS="$CURSESLIBS $LIBS"
7716
7717
7718 for ac_func in getbkgd resizeterm
7719 do
7720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7721 echo "$as_me:$LINENO: checking for $ac_func" >&5
7722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7723 if eval "test \"\${$as_ac_var+set}\" = set"; then
7724   echo $ECHO_N "(cached) $ECHO_C" >&6
7725 else
7726   cat >conftest.$ac_ext <<_ACEOF
7727 #line $LINENO "configure"
7728 #include "confdefs.h"
7729 /* System header to define __stub macros and hopefully few prototypes,
7730     which can conflict with char $ac_func (); below.  */
7731 #include <assert.h>
7732 /* Override any gcc2 internal prototype to avoid an error.  */
7733 #ifdef __cplusplus
7734 extern "C"
7735 #endif
7736 /* We use char because int might match the return type of a gcc2
7737    builtin and then its argument prototype would still apply.  */
7738 char $ac_func ();
7739 char (*f) ();
7740
7741 #ifdef F77_DUMMY_MAIN
7742 #  ifdef __cplusplus
7743      extern "C"
7744 #  endif
7745    int F77_DUMMY_MAIN() { return 1; }
7746 #endif
7747 int
7748 main ()
7749 {
7750 /* The GNU C library defines this for functions which it implements
7751     to always fail with ENOSYS.  Some functions are actually named
7752     something starting with __ and the normal name is an alias.  */
7753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7754 choke me
7755 #else
7756 f = $ac_func;
7757 #endif
7758
7759   ;
7760   return 0;
7761 }
7762 _ACEOF
7763 rm -f conftest.$ac_objext conftest$ac_exeext
7764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7765   (eval $ac_link) 2>&5
7766   ac_status=$?
7767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768   (exit $ac_status); } &&
7769          { ac_try='test -s conftest$ac_exeext'
7770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771   (eval $ac_try) 2>&5
7772   ac_status=$?
7773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774   (exit $ac_status); }; }; then
7775   eval "$as_ac_var=yes"
7776 else
7777   echo "$as_me: failed program was:" >&5
7778 cat conftest.$ac_ext >&5
7779 eval "$as_ac_var=no"
7780 fi
7781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7782 fi
7783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7785 if test `eval echo '${'$as_ac_var'}'` = yes; then
7786   cat >>confdefs.h <<_ACEOF
7787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7788 _ACEOF
7789
7790 fi
7791 done
7792
7793     LIBS="$saved_libs"
7794 fi
7795
7796
7797 CUPSLIBS=""
7798 wine_cv_warn_cups_h=no
7799 echo "$as_me:$LINENO: checking for cupsGetPPD in -lcups" >&5
7800 echo $ECHO_N "checking for cupsGetPPD in -lcups... $ECHO_C" >&6
7801 if test "${ac_cv_lib_cups_cupsGetPPD+set}" = set; then
7802   echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804   ac_check_lib_save_LIBS=$LIBS
7805 LIBS="-lcups  $LIBS"
7806 cat >conftest.$ac_ext <<_ACEOF
7807 #line $LINENO "configure"
7808 #include "confdefs.h"
7809
7810 /* Override any gcc2 internal prototype to avoid an error.  */
7811 #ifdef __cplusplus
7812 extern "C"
7813 #endif
7814 /* We use char because int might match the return type of a gcc2
7815    builtin and then its argument prototype would still apply.  */
7816 char cupsGetPPD ();
7817 #ifdef F77_DUMMY_MAIN
7818 #  ifdef __cplusplus
7819      extern "C"
7820 #  endif
7821    int F77_DUMMY_MAIN() { return 1; }
7822 #endif
7823 int
7824 main ()
7825 {
7826 cupsGetPPD ();
7827   ;
7828   return 0;
7829 }
7830 _ACEOF
7831 rm -f conftest.$ac_objext conftest$ac_exeext
7832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7833   (eval $ac_link) 2>&5
7834   ac_status=$?
7835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836   (exit $ac_status); } &&
7837          { ac_try='test -s conftest$ac_exeext'
7838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839   (eval $ac_try) 2>&5
7840   ac_status=$?
7841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842   (exit $ac_status); }; }; then
7843   ac_cv_lib_cups_cupsGetPPD=yes
7844 else
7845   echo "$as_me: failed program was:" >&5
7846 cat conftest.$ac_ext >&5
7847 ac_cv_lib_cups_cupsGetPPD=no
7848 fi
7849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7850 LIBS=$ac_check_lib_save_LIBS
7851 fi
7852 echo "$as_me:$LINENO: result: $ac_cv_lib_cups_cupsGetPPD" >&5
7853 echo "${ECHO_T}$ac_cv_lib_cups_cupsGetPPD" >&6
7854 if test $ac_cv_lib_cups_cupsGetPPD = yes; then
7855   if test "${ac_cv_header_cups_cups_h+set}" = set; then
7856   echo "$as_me:$LINENO: checking for cups/cups.h" >&5
7857 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7858 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7859   echo $ECHO_N "(cached) $ECHO_C" >&6
7860 fi
7861 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
7862 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
7863 else
7864   # Is the header compilable?
7865 echo "$as_me:$LINENO: checking cups/cups.h usability" >&5
7866 echo $ECHO_N "checking cups/cups.h usability... $ECHO_C" >&6
7867 cat >conftest.$ac_ext <<_ACEOF
7868 #line $LINENO "configure"
7869 #include "confdefs.h"
7870 $ac_includes_default
7871 #include <cups/cups.h>
7872 _ACEOF
7873 rm -f conftest.$ac_objext
7874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7875   (eval $ac_compile) 2>&5
7876   ac_status=$?
7877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878   (exit $ac_status); } &&
7879          { ac_try='test -s conftest.$ac_objext'
7880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881   (eval $ac_try) 2>&5
7882   ac_status=$?
7883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884   (exit $ac_status); }; }; then
7885   ac_header_compiler=yes
7886 else
7887   echo "$as_me: failed program was:" >&5
7888 cat conftest.$ac_ext >&5
7889 ac_header_compiler=no
7890 fi
7891 rm -f conftest.$ac_objext conftest.$ac_ext
7892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7893 echo "${ECHO_T}$ac_header_compiler" >&6
7894
7895 # Is the header present?
7896 echo "$as_me:$LINENO: checking cups/cups.h presence" >&5
7897 echo $ECHO_N "checking cups/cups.h presence... $ECHO_C" >&6
7898 cat >conftest.$ac_ext <<_ACEOF
7899 #line $LINENO "configure"
7900 #include "confdefs.h"
7901 #include <cups/cups.h>
7902 _ACEOF
7903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7904   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7905   ac_status=$?
7906   egrep -v '^ *\+' conftest.er1 >conftest.err
7907   rm -f conftest.er1
7908   cat conftest.err >&5
7909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910   (exit $ac_status); } >/dev/null; then
7911   if test -s conftest.err; then
7912     ac_cpp_err=$ac_c_preproc_warn_flag
7913   else
7914     ac_cpp_err=
7915   fi
7916 else
7917   ac_cpp_err=yes
7918 fi
7919 if test -z "$ac_cpp_err"; then
7920   ac_header_preproc=yes
7921 else
7922   echo "$as_me: failed program was:" >&5
7923   cat conftest.$ac_ext >&5
7924   ac_header_preproc=no
7925 fi
7926 rm -f conftest.err conftest.$ac_ext
7927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7928 echo "${ECHO_T}$ac_header_preproc" >&6
7929
7930 # So?  What about this header?
7931 case $ac_header_compiler:$ac_header_preproc in
7932   yes:no )
7933     { echo "$as_me:$LINENO: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&5
7934 echo "$as_me: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7935     { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
7936 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
7937   no:yes )
7938     { echo "$as_me:$LINENO: WARNING: cups/cups.h: present but cannot be compiled" >&5
7939 echo "$as_me: WARNING: cups/cups.h: present but cannot be compiled" >&2;}
7940     { echo "$as_me:$LINENO: WARNING: cups/cups.h: check for missing prerequisite headers?" >&5
7941 echo "$as_me: WARNING: cups/cups.h: check for missing prerequisite headers?" >&2;}
7942     { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
7943 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
7944 esac
7945 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
7946 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7947 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7948   echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950   ac_cv_header_cups_cups_h=$ac_header_preproc
7951 fi
7952 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
7953 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
7954
7955 fi
7956 if test $ac_cv_header_cups_cups_h = yes; then
7957
7958 cat >>confdefs.h <<\_ACEOF
7959 #define HAVE_CUPS 1
7960 _ACEOF
7961
7962             CUPSLIBS="-lcups"
7963 else
7964   wine_cv_warn_cups_h=yes
7965 fi
7966
7967
7968
7969 fi
7970
7971
7972
7973 # Extract the first word of "sane-config", so it can be a program name with args.
7974 set dummy sane-config; ac_word=$2
7975 echo "$as_me:$LINENO: checking for $ac_word" >&5
7976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7977 if test "${ac_cv_prog_sane_devel+set}" = set; then
7978   echo $ECHO_N "(cached) $ECHO_C" >&6
7979 else
7980   if test -n "$sane_devel"; then
7981   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
7982 else
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7985 do
7986   IFS=$as_save_IFS
7987   test -z "$as_dir" && as_dir=.
7988   for ac_exec_ext in '' $ac_executable_extensions; do
7989   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990     ac_cv_prog_sane_devel="sane-config"
7991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7992     break 2
7993   fi
7994 done
7995 done
7996
7997   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
7998 fi
7999 fi
8000 sane_devel=$ac_cv_prog_sane_devel
8001 if test -n "$sane_devel"; then
8002   echo "$as_me:$LINENO: result: $sane_devel" >&5
8003 echo "${ECHO_T}$sane_devel" >&6
8004 else
8005   echo "$as_me:$LINENO: result: no" >&5
8006 echo "${ECHO_T}no" >&6
8007 fi
8008
8009 if test "$sane_devel" = "no"
8010 then
8011     SANELIBS=""
8012     SANEINCL=""
8013 else
8014     SANELIBS="`$sane_devel --libs`"
8015     SANEINCL="`$sane_devel --cflags`"
8016     ac_save_CPPFLAGS="$CPPFLAGS"
8017     ac_save_LIBS="$LIBS"
8018     CPPFLAGS="$CPPFLAGS $SANEINCL"
8019     LIBS="$LIBS $SANELIBS"
8020     if test "${ac_cv_header_sane_sane_h+set}" = set; then
8021   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8022 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8023 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8024   echo $ECHO_N "(cached) $ECHO_C" >&6
8025 fi
8026 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8027 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8028 else
8029   # Is the header compilable?
8030 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8031 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8032 cat >conftest.$ac_ext <<_ACEOF
8033 #line $LINENO "configure"
8034 #include "confdefs.h"
8035 $ac_includes_default
8036 #include <sane/sane.h>
8037 _ACEOF
8038 rm -f conftest.$ac_objext
8039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8040   (eval $ac_compile) 2>&5
8041   ac_status=$?
8042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043   (exit $ac_status); } &&
8044          { ac_try='test -s conftest.$ac_objext'
8045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046   (eval $ac_try) 2>&5
8047   ac_status=$?
8048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049   (exit $ac_status); }; }; then
8050   ac_header_compiler=yes
8051 else
8052   echo "$as_me: failed program was:" >&5
8053 cat conftest.$ac_ext >&5
8054 ac_header_compiler=no
8055 fi
8056 rm -f conftest.$ac_objext conftest.$ac_ext
8057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8058 echo "${ECHO_T}$ac_header_compiler" >&6
8059
8060 # Is the header present?
8061 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8062 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8063 cat >conftest.$ac_ext <<_ACEOF
8064 #line $LINENO "configure"
8065 #include "confdefs.h"
8066 #include <sane/sane.h>
8067 _ACEOF
8068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8069   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8070   ac_status=$?
8071   egrep -v '^ *\+' conftest.er1 >conftest.err
8072   rm -f conftest.er1
8073   cat conftest.err >&5
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); } >/dev/null; then
8076   if test -s conftest.err; then
8077     ac_cpp_err=$ac_c_preproc_warn_flag
8078   else
8079     ac_cpp_err=
8080   fi
8081 else
8082   ac_cpp_err=yes
8083 fi
8084 if test -z "$ac_cpp_err"; then
8085   ac_header_preproc=yes
8086 else
8087   echo "$as_me: failed program was:" >&5
8088   cat conftest.$ac_ext >&5
8089   ac_header_preproc=no
8090 fi
8091 rm -f conftest.err conftest.$ac_ext
8092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8093 echo "${ECHO_T}$ac_header_preproc" >&6
8094
8095 # So?  What about this header?
8096 case $ac_header_compiler:$ac_header_preproc in
8097   yes:no )
8098     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8099 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8100     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8101 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8102   no:yes )
8103     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8104 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8105     { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8106 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8107     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8108 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8109 esac
8110 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8111 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8112 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8113   echo $ECHO_N "(cached) $ECHO_C" >&6
8114 else
8115   ac_cv_header_sane_sane_h=$ac_header_preproc
8116 fi
8117 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8118 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8119
8120 fi
8121 if test $ac_cv_header_sane_sane_h = yes; then
8122   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8123 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8124 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8125   echo $ECHO_N "(cached) $ECHO_C" >&6
8126 else
8127   ac_check_lib_save_LIBS=$LIBS
8128 LIBS="-lsane  $LIBS"
8129 cat >conftest.$ac_ext <<_ACEOF
8130 #line $LINENO "configure"
8131 #include "confdefs.h"
8132
8133 /* Override any gcc2 internal prototype to avoid an error.  */
8134 #ifdef __cplusplus
8135 extern "C"
8136 #endif
8137 /* We use char because int might match the return type of a gcc2
8138    builtin and then its argument prototype would still apply.  */
8139 char sane_open ();
8140 #ifdef F77_DUMMY_MAIN
8141 #  ifdef __cplusplus
8142      extern "C"
8143 #  endif
8144    int F77_DUMMY_MAIN() { return 1; }
8145 #endif
8146 int
8147 main ()
8148 {
8149 sane_open ();
8150   ;
8151   return 0;
8152 }
8153 _ACEOF
8154 rm -f conftest.$ac_objext conftest$ac_exeext
8155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8156   (eval $ac_link) 2>&5
8157   ac_status=$?
8158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159   (exit $ac_status); } &&
8160          { ac_try='test -s conftest$ac_exeext'
8161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162   (eval $ac_try) 2>&5
8163   ac_status=$?
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); }; }; then
8166   ac_cv_lib_sane_sane_open=yes
8167 else
8168   echo "$as_me: failed program was:" >&5
8169 cat conftest.$ac_ext >&5
8170 ac_cv_lib_sane_sane_open=no
8171 fi
8172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8173 LIBS=$ac_check_lib_save_LIBS
8174 fi
8175 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8176 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8177 if test $ac_cv_lib_sane_sane_open = yes; then
8178
8179 cat >>confdefs.h <<\_ACEOF
8180 #define HAVE_SANE 1
8181 _ACEOF
8182
8183 else
8184   SANELIBS=""
8185                                   SANEINCL=""
8186 fi
8187
8188 else
8189   SANELIBS=""
8190                     SANEINCL=""
8191 fi
8192
8193
8194     LIBS="$ac_save_LIBS"
8195     CPPFLAGS="$ac_save_CPPFLAGS"
8196 fi
8197
8198
8199
8200 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8201 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8202 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8203   echo $ECHO_N "(cached) $ECHO_C" >&6
8204 else
8205   ac_check_lib_save_LIBS=$LIBS
8206 LIBS="-lfreetype $X_LIBS $LIBS"
8207 cat >conftest.$ac_ext <<_ACEOF
8208 #line $LINENO "configure"
8209 #include "confdefs.h"
8210
8211 /* Override any gcc2 internal prototype to avoid an error.  */
8212 #ifdef __cplusplus
8213 extern "C"
8214 #endif
8215 /* We use char because int might match the return type of a gcc2
8216    builtin and then its argument prototype would still apply.  */
8217 char FT_Init_FreeType ();
8218 #ifdef F77_DUMMY_MAIN
8219 #  ifdef __cplusplus
8220      extern "C"
8221 #  endif
8222    int F77_DUMMY_MAIN() { return 1; }
8223 #endif
8224 int
8225 main ()
8226 {
8227 FT_Init_FreeType ();
8228   ;
8229   return 0;
8230 }
8231 _ACEOF
8232 rm -f conftest.$ac_objext conftest$ac_exeext
8233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8234   (eval $ac_link) 2>&5
8235   ac_status=$?
8236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237   (exit $ac_status); } &&
8238          { ac_try='test -s conftest$ac_exeext'
8239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240   (eval $ac_try) 2>&5
8241   ac_status=$?
8242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243   (exit $ac_status); }; }; then
8244   ac_cv_lib_freetype_FT_Init_FreeType=yes
8245 else
8246   echo "$as_me: failed program was:" >&5
8247 cat conftest.$ac_ext >&5
8248 ac_cv_lib_freetype_FT_Init_FreeType=no
8249 fi
8250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8251 LIBS=$ac_check_lib_save_LIBS
8252 fi
8253 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8254 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8255 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8256   ft_lib=yes
8257 else
8258   ft_lib=no
8259 fi
8260
8261 if test "$ft_lib" = "no"
8262 then
8263     FREETYPEINCL=""
8264     wine_cv_msg_freetype=no
8265 else
8266     # Extract the first word of "freetype-config", so it can be a program name with args.
8267 set dummy freetype-config; ac_word=$2
8268 echo "$as_me:$LINENO: checking for $ac_word" >&5
8269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8270 if test "${ac_cv_prog_ft_devel+set}" = set; then
8271   echo $ECHO_N "(cached) $ECHO_C" >&6
8272 else
8273   if test -n "$ft_devel"; then
8274   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8275 else
8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 for as_dir in $PATH
8278 do
8279   IFS=$as_save_IFS
8280   test -z "$as_dir" && as_dir=.
8281   for ac_exec_ext in '' $ac_executable_extensions; do
8282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8283     ac_cv_prog_ft_devel="freetype-config"
8284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8285     break 2
8286   fi
8287 done
8288 done
8289
8290   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8291 fi
8292 fi
8293 ft_devel=$ac_cv_prog_ft_devel
8294 if test -n "$ft_devel"; then
8295   echo "$as_me:$LINENO: result: $ft_devel" >&5
8296 echo "${ECHO_T}$ft_devel" >&6
8297 else
8298   echo "$as_me:$LINENO: result: no" >&5
8299 echo "${ECHO_T}no" >&6
8300 fi
8301
8302     if test "$ft_devel" = "no"
8303     then
8304         # Extract the first word of "freetype2-config", so it can be a program name with args.
8305 set dummy freetype2-config; ac_word=$2
8306 echo "$as_me:$LINENO: checking for $ac_word" >&5
8307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8308 if test "${ac_cv_prog_ft_devel2+set}" = set; then
8309   echo $ECHO_N "(cached) $ECHO_C" >&6
8310 else
8311   if test -n "$ft_devel2"; then
8312   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
8313 else
8314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315 for as_dir in $PATH
8316 do
8317   IFS=$as_save_IFS
8318   test -z "$as_dir" && as_dir=.
8319   for ac_exec_ext in '' $ac_executable_extensions; do
8320   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8321     ac_cv_prog_ft_devel2="freetype2-config"
8322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8323     break 2
8324   fi
8325 done
8326 done
8327
8328   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8329 fi
8330 fi
8331 ft_devel2=$ac_cv_prog_ft_devel2
8332 if test -n "$ft_devel2"; then
8333   echo "$as_me:$LINENO: result: $ft_devel2" >&5
8334 echo "${ECHO_T}$ft_devel2" >&6
8335 else
8336   echo "$as_me:$LINENO: result: no" >&5
8337 echo "${ECHO_T}no" >&6
8338 fi
8339
8340         if test "$ft_devel2" = "freetype2-config"
8341         then
8342                 ft_devel=$ft_devel2
8343         fi
8344     fi
8345     if test "$ft_devel" = "no"
8346     then
8347         FREETYPEINCL=""
8348         wine_cv_msg_freetype=yes
8349     else
8350         FREETYPEINCL=`$ft_devel --cflags`
8351         ac_save_CPPFLAGS="$CPPFLAGS"
8352         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
8353
8354
8355
8356
8357
8358
8359
8360
8361 for ac_header in freetype/freetype.h \
8362                          freetype/ftglyph.h \
8363                          freetype/tttables.h \
8364                          freetype/ftnames.h \
8365                          freetype/ftsnames.h \
8366                          freetype/ttnameid.h \
8367                          freetype/ftoutln.h \
8368                          freetype/internal/sfnt.h
8369 do
8370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8372   echo "$as_me:$LINENO: checking for $ac_header" >&5
8373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8375   echo $ECHO_N "(cached) $ECHO_C" >&6
8376 fi
8377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8379 else
8380   # Is the header compilable?
8381 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8383 cat >conftest.$ac_ext <<_ACEOF
8384 #line $LINENO "configure"
8385 #include "confdefs.h"
8386 $ac_includes_default
8387 #include <$ac_header>
8388 _ACEOF
8389 rm -f conftest.$ac_objext
8390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8391   (eval $ac_compile) 2>&5
8392   ac_status=$?
8393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394   (exit $ac_status); } &&
8395          { ac_try='test -s conftest.$ac_objext'
8396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397   (eval $ac_try) 2>&5
8398   ac_status=$?
8399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); }; }; then
8401   ac_header_compiler=yes
8402 else
8403   echo "$as_me: failed program was:" >&5
8404 cat conftest.$ac_ext >&5
8405 ac_header_compiler=no
8406 fi
8407 rm -f conftest.$ac_objext conftest.$ac_ext
8408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8409 echo "${ECHO_T}$ac_header_compiler" >&6
8410
8411 # Is the header present?
8412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8414 cat >conftest.$ac_ext <<_ACEOF
8415 #line $LINENO "configure"
8416 #include "confdefs.h"
8417 #include <$ac_header>
8418 _ACEOF
8419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8420   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8421   ac_status=$?
8422   egrep -v '^ *\+' conftest.er1 >conftest.err
8423   rm -f conftest.er1
8424   cat conftest.err >&5
8425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426   (exit $ac_status); } >/dev/null; then
8427   if test -s conftest.err; then
8428     ac_cpp_err=$ac_c_preproc_warn_flag
8429   else
8430     ac_cpp_err=
8431   fi
8432 else
8433   ac_cpp_err=yes
8434 fi
8435 if test -z "$ac_cpp_err"; then
8436   ac_header_preproc=yes
8437 else
8438   echo "$as_me: failed program was:" >&5
8439   cat conftest.$ac_ext >&5
8440   ac_header_preproc=no
8441 fi
8442 rm -f conftest.err conftest.$ac_ext
8443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8444 echo "${ECHO_T}$ac_header_preproc" >&6
8445
8446 # So?  What about this header?
8447 case $ac_header_compiler:$ac_header_preproc in
8448   yes:no )
8449     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8453   no:yes )
8454     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8456     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8458     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8460 esac
8461 echo "$as_me:$LINENO: checking for $ac_header" >&5
8462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8464   echo $ECHO_N "(cached) $ECHO_C" >&6
8465 else
8466   eval "$as_ac_Header=$ac_header_preproc"
8467 fi
8468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8470
8471 fi
8472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8473   cat >>confdefs.h <<_ACEOF
8474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8475 _ACEOF
8476
8477 fi
8478
8479 done
8480
8481         cat >conftest.$ac_ext <<_ACEOF
8482 #line $LINENO "configure"
8483 #include "confdefs.h"
8484 #include <ft2build.h>
8485                     #include <freetype/fttrigon.h>
8486 _ACEOF
8487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8488   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8489   ac_status=$?
8490   egrep -v '^ *\+' conftest.er1 >conftest.err
8491   rm -f conftest.er1
8492   cat conftest.err >&5
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); } >/dev/null; then
8495   if test -s conftest.err; then
8496     ac_cpp_err=$ac_c_preproc_warn_flag
8497   else
8498     ac_cpp_err=
8499   fi
8500 else
8501   ac_cpp_err=yes
8502 fi
8503 if test -z "$ac_cpp_err"; then
8504
8505 cat >>confdefs.h <<\_ACEOF
8506 #define HAVE_FREETYPE_FTTRIGON_H 1
8507 _ACEOF
8508
8509                     wine_cv_fttrigon=yes
8510 else
8511   echo "$as_me: failed program was:" >&5
8512   cat conftest.$ac_ext >&5
8513   wine_cv_fttrigon=no
8514 fi
8515 rm -f conftest.err conftest.$ac_ext
8516         CPPFLAGS="$ac_save_CPPFLAGS"
8517                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
8518         then
8519
8520 cat >>confdefs.h <<\_ACEOF
8521 #define HAVE_FREETYPE 1
8522 _ACEOF
8523
8524             wine_cv_msg_freetype=no
8525         else
8526             FREETYPEINCL=""
8527             wine_cv_msg_freetype=yes
8528         fi
8529     fi
8530 fi
8531
8532
8533 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
8534 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8535 if test "${ac_cv_c_ppdev+set}" = set; then
8536   echo $ECHO_N "(cached) $ECHO_C" >&6
8537 else
8538   cat >conftest.$ac_ext <<_ACEOF
8539 #line $LINENO "configure"
8540 #include "confdefs.h"
8541 #include <linux/ppdev.h>
8542 #ifdef F77_DUMMY_MAIN
8543 #  ifdef __cplusplus
8544      extern "C"
8545 #  endif
8546    int F77_DUMMY_MAIN() { return 1; }
8547 #endif
8548 int
8549 main ()
8550 {
8551 ioctl (1,PPCLAIM,0)
8552   ;
8553   return 0;
8554 }
8555 _ACEOF
8556 rm -f conftest.$ac_objext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8558   (eval $ac_compile) 2>&5
8559   ac_status=$?
8560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561   (exit $ac_status); } &&
8562          { ac_try='test -s conftest.$ac_objext'
8563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564   (eval $ac_try) 2>&5
8565   ac_status=$?
8566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567   (exit $ac_status); }; }; then
8568   ac_cv_c_ppdev="yes"
8569 else
8570   echo "$as_me: failed program was:" >&5
8571 cat conftest.$ac_ext >&5
8572 ac_cv_c_ppdev="no"
8573 fi
8574 rm -f conftest.$ac_objext conftest.$ac_ext
8575
8576 fi
8577 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
8578 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
8579 if test "$ac_cv_c_ppdev" = "yes"
8580 then
8581
8582 cat >>confdefs.h <<\_ACEOF
8583 #define HAVE_PPDEV 1
8584 _ACEOF
8585
8586 fi
8587
8588 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
8589 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8590 if test "${ac_cv_c_ipx_gnu+set}" = set; then
8591   echo $ECHO_N "(cached) $ECHO_C" >&6
8592 else
8593   cat >conftest.$ac_ext <<_ACEOF
8594 #line $LINENO "configure"
8595 #include "confdefs.h"
8596 #include <sys/socket.h>
8597     #include <netipx/ipx.h>
8598 #ifdef F77_DUMMY_MAIN
8599 #  ifdef __cplusplus
8600      extern "C"
8601 #  endif
8602    int F77_DUMMY_MAIN() { return 1; }
8603 #endif
8604 int
8605 main ()
8606 {
8607 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8608   ;
8609   return 0;
8610 }
8611 _ACEOF
8612 rm -f conftest.$ac_objext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8614   (eval $ac_compile) 2>&5
8615   ac_status=$?
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   (exit $ac_status); } &&
8618          { ac_try='test -s conftest.$ac_objext'
8619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620   (eval $ac_try) 2>&5
8621   ac_status=$?
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); }; }; then
8624   ac_cv_c_ipx_gnu="yes"
8625 else
8626   echo "$as_me: failed program was:" >&5
8627 cat conftest.$ac_ext >&5
8628 ac_cv_c_ipx_gnu="no"
8629 fi
8630 rm -f conftest.$ac_objext conftest.$ac_ext
8631
8632 fi
8633 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
8634 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
8635 if test "$ac_cv_c_ipx_gnu" = "yes"
8636 then
8637
8638 cat >>confdefs.h <<\_ACEOF
8639 #define HAVE_IPX_GNU 1
8640 _ACEOF
8641
8642 fi
8643
8644 if test "$ac_cv_c_ipx_gnu" = "no"
8645 then
8646  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
8647 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8648 if test "${ac_cv_c_ipx_linux+set}" = set; then
8649   echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651   cat >conftest.$ac_ext <<_ACEOF
8652 #line $LINENO "configure"
8653 #include "confdefs.h"
8654 #include <sys/socket.h>
8655      #include <asm/types.h>
8656      #include <linux/ipx.h>
8657 #ifdef F77_DUMMY_MAIN
8658 #  ifdef __cplusplus
8659      extern "C"
8660 #  endif
8661    int F77_DUMMY_MAIN() { return 1; }
8662 #endif
8663 int
8664 main ()
8665 {
8666 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8667   ;
8668   return 0;
8669 }
8670 _ACEOF
8671 rm -f conftest.$ac_objext
8672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8673   (eval $ac_compile) 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); } &&
8677          { ac_try='test -s conftest.$ac_objext'
8678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679   (eval $ac_try) 2>&5
8680   ac_status=$?
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); }; }; then
8683   ac_cv_c_ipx_linux="yes"
8684 else
8685   echo "$as_me: failed program was:" >&5
8686 cat conftest.$ac_ext >&5
8687 ac_cv_c_ipx_linux="no"
8688 fi
8689 rm -f conftest.$ac_objext conftest.$ac_ext
8690
8691 fi
8692 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
8693 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
8694   if test "$ac_cv_c_ipx_linux" = "yes"
8695   then
8696
8697 cat >>confdefs.h <<\_ACEOF
8698 #define HAVE_IPX_LINUX 1
8699 _ACEOF
8700
8701   fi
8702 fi
8703
8704
8705
8706
8707 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
8708 do
8709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8711   echo "$as_me:$LINENO: checking for $ac_header" >&5
8712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8714   echo $ECHO_N "(cached) $ECHO_C" >&6
8715 fi
8716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8718 else
8719   # Is the header compilable?
8720 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8722 cat >conftest.$ac_ext <<_ACEOF
8723 #line $LINENO "configure"
8724 #include "confdefs.h"
8725 $ac_includes_default
8726 #include <$ac_header>
8727 _ACEOF
8728 rm -f conftest.$ac_objext
8729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8730   (eval $ac_compile) 2>&5
8731   ac_status=$?
8732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733   (exit $ac_status); } &&
8734          { ac_try='test -s conftest.$ac_objext'
8735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736   (eval $ac_try) 2>&5
8737   ac_status=$?
8738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739   (exit $ac_status); }; }; then
8740   ac_header_compiler=yes
8741 else
8742   echo "$as_me: failed program was:" >&5
8743 cat conftest.$ac_ext >&5
8744 ac_header_compiler=no
8745 fi
8746 rm -f conftest.$ac_objext conftest.$ac_ext
8747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8748 echo "${ECHO_T}$ac_header_compiler" >&6
8749
8750 # Is the header present?
8751 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8753 cat >conftest.$ac_ext <<_ACEOF
8754 #line $LINENO "configure"
8755 #include "confdefs.h"
8756 #include <$ac_header>
8757 _ACEOF
8758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8759   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8760   ac_status=$?
8761   egrep -v '^ *\+' conftest.er1 >conftest.err
8762   rm -f conftest.er1
8763   cat conftest.err >&5
8764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765   (exit $ac_status); } >/dev/null; then
8766   if test -s conftest.err; then
8767     ac_cpp_err=$ac_c_preproc_warn_flag
8768   else
8769     ac_cpp_err=
8770   fi
8771 else
8772   ac_cpp_err=yes
8773 fi
8774 if test -z "$ac_cpp_err"; then
8775   ac_header_preproc=yes
8776 else
8777   echo "$as_me: failed program was:" >&5
8778   cat conftest.$ac_ext >&5
8779   ac_header_preproc=no
8780 fi
8781 rm -f conftest.err conftest.$ac_ext
8782 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8783 echo "${ECHO_T}$ac_header_preproc" >&6
8784
8785 # So?  What about this header?
8786 case $ac_header_compiler:$ac_header_preproc in
8787   yes:no )
8788     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8792   no:yes )
8793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8795     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
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  break
8816 fi
8817
8818 done
8819
8820
8821 echo "$as_me:$LINENO: checking for Open Sound System" >&5
8822 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8823 if test "${ac_cv_c_opensoundsystem+set}" = set; then
8824   echo $ECHO_N "(cached) $ECHO_C" >&6
8825 else
8826   cat >conftest.$ac_ext <<_ACEOF
8827 #line $LINENO "configure"
8828 #include "confdefs.h"
8829
8830         #if defined(HAVE_SYS_SOUNDCARD_H)
8831                 #include <sys/soundcard.h>
8832         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8833                 #include <machine/soundcard.h>
8834         #elif defined(HAVE_SOUNDCARD_H)
8835                 #include <soundcard.h>
8836         #endif
8837
8838 #ifdef F77_DUMMY_MAIN
8839 #  ifdef __cplusplus
8840      extern "C"
8841 #  endif
8842    int F77_DUMMY_MAIN() { return 1; }
8843 #endif
8844 int
8845 main ()
8846 {
8847
8848
8849 /* check for one of the Open Sound System specific SNDCTL_ defines */
8850 #if !defined(SNDCTL_DSP_STEREO)
8851 #error No open sound system
8852 #endif
8853
8854   ;
8855   return 0;
8856 }
8857 _ACEOF
8858 rm -f conftest.$ac_objext
8859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8860   (eval $ac_compile) 2>&5
8861   ac_status=$?
8862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863   (exit $ac_status); } &&
8864          { ac_try='test -s conftest.$ac_objext'
8865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866   (eval $ac_try) 2>&5
8867   ac_status=$?
8868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869   (exit $ac_status); }; }; then
8870   ac_cv_c_opensoundsystem="yes"
8871 else
8872   echo "$as_me: failed program was:" >&5
8873 cat conftest.$ac_ext >&5
8874 ac_cv_c_opensoundsystem="no"
8875 fi
8876 rm -f conftest.$ac_objext conftest.$ac_ext
8877 fi
8878 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
8879 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
8880
8881 if test "$ac_cv_c_opensoundsystem" = "yes"
8882 then
8883
8884 cat >>confdefs.h <<\_ACEOF
8885 #define HAVE_OSS 1
8886 _ACEOF
8887
8888 fi
8889
8890 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
8891 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
8892 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
8893   echo $ECHO_N "(cached) $ECHO_C" >&6
8894 else
8895   cat >conftest.$ac_ext <<_ACEOF
8896 #line $LINENO "configure"
8897 #include "confdefs.h"
8898
8899         #if defined(HAVE_SYS_SOUNDCARD_H)
8900                 #include <sys/soundcard.h>
8901         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8902                 #include <machine/soundcard.h>
8903         #elif defined(HAVE_SOUNDCARD_H)
8904                 #include <soundcard.h>
8905         #endif
8906
8907 #ifdef F77_DUMMY_MAIN
8908 #  ifdef __cplusplus
8909      extern "C"
8910 #  endif
8911    int F77_DUMMY_MAIN() { return 1; }
8912 #endif
8913 int
8914 main ()
8915 {
8916
8917
8918 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
8919 #if !defined(SNDCTL_SEQ_SYNC)
8920 #error No open sound system MIDI interface
8921 #endif
8922
8923   ;
8924   return 0;
8925 }
8926 _ACEOF
8927 rm -f conftest.$ac_objext
8928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8929   (eval $ac_compile) 2>&5
8930   ac_status=$?
8931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932   (exit $ac_status); } &&
8933          { ac_try='test -s conftest.$ac_objext'
8934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935   (eval $ac_try) 2>&5
8936   ac_status=$?
8937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938   (exit $ac_status); }; }; then
8939   ac_cv_c_opensoundsystem_midi="yes"
8940 else
8941   echo "$as_me: failed program was:" >&5
8942 cat conftest.$ac_ext >&5
8943 ac_cv_c_opensoundsystem_midi="no"
8944 fi
8945 rm -f conftest.$ac_objext conftest.$ac_ext
8946 fi
8947 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
8948 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
8949
8950 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
8951 then
8952
8953 cat >>confdefs.h <<\_ACEOF
8954 #define HAVE_OSS_MIDI 1
8955 _ACEOF
8956
8957 fi
8958
8959 # Extract the first word of "artsc-config", so it can be a program name with args.
8960 set dummy artsc-config; ac_word=$2
8961 echo "$as_me:$LINENO: checking for $ac_word" >&5
8962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8963 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
8964   echo $ECHO_N "(cached) $ECHO_C" >&6
8965 else
8966   case $ARTSCCONFIG in
8967   [\\/]* | ?:[\\/]*)
8968   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
8969   ;;
8970   *)
8971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972 for as_dir in $PATH
8973 do
8974   IFS=$as_save_IFS
8975   test -z "$as_dir" && as_dir=.
8976   for ac_exec_ext in '' $ac_executable_extensions; do
8977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8978     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
8979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8980     break 2
8981   fi
8982 done
8983 done
8984
8985   ;;
8986 esac
8987 fi
8988 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
8989
8990 if test -n "$ARTSCCONFIG"; then
8991   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
8992 echo "${ECHO_T}$ARTSCCONFIG" >&6
8993 else
8994   echo "$as_me:$LINENO: result: no" >&5
8995 echo "${ECHO_T}no" >&6
8996 fi
8997
8998 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
8999 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9000 if test "${ac_cv_c_artsserver+set}" = set; then
9001   echo $ECHO_N "(cached) $ECHO_C" >&6
9002 else
9003   if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9004         then
9005             ac_cv_c_artsserver=no
9006         else
9007             ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9008             ARTSC_LIBS=`$ARTSCCONFIG --libs`
9009             ac_cv_c_artsserver=no
9010             save_CFLAGS="$CFLAGS"
9011             CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9012             cat >conftest.$ac_ext <<_ACEOF
9013 #line $LINENO "configure"
9014 #include "confdefs.h"
9015
9016              #include <artsc.h>
9017
9018 #ifdef F77_DUMMY_MAIN
9019 #  ifdef __cplusplus
9020      extern "C"
9021 #  endif
9022    int F77_DUMMY_MAIN() { return 1; }
9023 #endif
9024 int
9025 main ()
9026 {
9027
9028              arts_stream_t stream;
9029
9030   ;
9031   return 0;
9032 }
9033 _ACEOF
9034 rm -f conftest.$ac_objext
9035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9036   (eval $ac_compile) 2>&5
9037   ac_status=$?
9038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039   (exit $ac_status); } &&
9040          { ac_try='test -s conftest.$ac_objext'
9041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042   (eval $ac_try) 2>&5
9043   ac_status=$?
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); }; }; then
9046
9047             ac_cv_c_artsserver=yes
9048
9049 else
9050   echo "$as_me: failed program was:" >&5
9051 cat conftest.$ac_ext >&5
9052 fi
9053 rm -f conftest.$ac_objext conftest.$ac_ext
9054             CFLAGS="$save_CFLAGS"
9055         fi
9056 fi
9057 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
9058 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9059
9060 if test "$ac_cv_c_artsserver" = "yes"
9061 then
9062     ARTSLIBS=$ARTSC_LIBS
9063
9064     ARTSINCL=$ARTSC_CFLAGS
9065
9066
9067
9068 cat >>confdefs.h <<\_ACEOF
9069 #define HAVE_ARTS 1
9070 _ACEOF
9071
9072 fi
9073
9074 ALSALIBS=""
9075
9076
9077 for ac_header in sys/asoundlib.h
9078 do
9079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9081   echo "$as_me:$LINENO: checking for $ac_header" >&5
9082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9084   echo $ECHO_N "(cached) $ECHO_C" >&6
9085 fi
9086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9088 else
9089   # Is the header compilable?
9090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9092 cat >conftest.$ac_ext <<_ACEOF
9093 #line $LINENO "configure"
9094 #include "confdefs.h"
9095 $ac_includes_default
9096 #include <$ac_header>
9097 _ACEOF
9098 rm -f conftest.$ac_objext
9099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9100   (eval $ac_compile) 2>&5
9101   ac_status=$?
9102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103   (exit $ac_status); } &&
9104          { ac_try='test -s conftest.$ac_objext'
9105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106   (eval $ac_try) 2>&5
9107   ac_status=$?
9108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109   (exit $ac_status); }; }; then
9110   ac_header_compiler=yes
9111 else
9112   echo "$as_me: failed program was:" >&5
9113 cat conftest.$ac_ext >&5
9114 ac_header_compiler=no
9115 fi
9116 rm -f conftest.$ac_objext conftest.$ac_ext
9117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9118 echo "${ECHO_T}$ac_header_compiler" >&6
9119
9120 # Is the header present?
9121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9123 cat >conftest.$ac_ext <<_ACEOF
9124 #line $LINENO "configure"
9125 #include "confdefs.h"
9126 #include <$ac_header>
9127 _ACEOF
9128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9129   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9130   ac_status=$?
9131   egrep -v '^ *\+' conftest.er1 >conftest.err
9132   rm -f conftest.er1
9133   cat conftest.err >&5
9134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135   (exit $ac_status); } >/dev/null; then
9136   if test -s conftest.err; then
9137     ac_cpp_err=$ac_c_preproc_warn_flag
9138   else
9139     ac_cpp_err=
9140   fi
9141 else
9142   ac_cpp_err=yes
9143 fi
9144 if test -z "$ac_cpp_err"; then
9145   ac_header_preproc=yes
9146 else
9147   echo "$as_me: failed program was:" >&5
9148   cat conftest.$ac_ext >&5
9149   ac_header_preproc=no
9150 fi
9151 rm -f conftest.err conftest.$ac_ext
9152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9153 echo "${ECHO_T}$ac_header_preproc" >&6
9154
9155 # So?  What about this header?
9156 case $ac_header_compiler:$ac_header_preproc in
9157   yes:no )
9158     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9160     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9162   no:yes )
9163     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9165     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9166 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9169 esac
9170 echo "$as_me:$LINENO: checking for $ac_header" >&5
9171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9173   echo $ECHO_N "(cached) $ECHO_C" >&6
9174 else
9175   eval "$as_ac_Header=$ac_header_preproc"
9176 fi
9177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9179
9180 fi
9181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9182   cat >>confdefs.h <<_ACEOF
9183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9184 _ACEOF
9185
9186 fi
9187
9188 done
9189
9190 if test "$ac_cv_header_sys_asoundlib_h" = "yes"
9191 then
9192     echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
9193 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
9194 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
9195   echo $ECHO_N "(cached) $ECHO_C" >&6
9196 else
9197   ac_check_lib_save_LIBS=$LIBS
9198 LIBS="-lasound  $LIBS"
9199 cat >conftest.$ac_ext <<_ACEOF
9200 #line $LINENO "configure"
9201 #include "confdefs.h"
9202
9203 /* Override any gcc2 internal prototype to avoid an error.  */
9204 #ifdef __cplusplus
9205 extern "C"
9206 #endif
9207 /* We use char because int might match the return type of a gcc2
9208    builtin and then its argument prototype would still apply.  */
9209 char snd_pcm_open ();
9210 #ifdef F77_DUMMY_MAIN
9211 #  ifdef __cplusplus
9212      extern "C"
9213 #  endif
9214    int F77_DUMMY_MAIN() { return 1; }
9215 #endif
9216 int
9217 main ()
9218 {
9219 snd_pcm_open ();
9220   ;
9221   return 0;
9222 }
9223 _ACEOF
9224 rm -f conftest.$ac_objext conftest$ac_exeext
9225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9226   (eval $ac_link) 2>&5
9227   ac_status=$?
9228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229   (exit $ac_status); } &&
9230          { ac_try='test -s conftest$ac_exeext'
9231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232   (eval $ac_try) 2>&5
9233   ac_status=$?
9234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235   (exit $ac_status); }; }; then
9236   ac_cv_lib_asound_snd_pcm_open=yes
9237 else
9238   echo "$as_me: failed program was:" >&5
9239 cat conftest.$ac_ext >&5
9240 ac_cv_lib_asound_snd_pcm_open=no
9241 fi
9242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9243 LIBS=$ac_check_lib_save_LIBS
9244 fi
9245 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
9246 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
9247 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
9248
9249 cat >>confdefs.h <<\_ACEOF
9250 #define HAVE_ALSA 1
9251 _ACEOF
9252
9253         ALSALIBS="-lasound"
9254 fi
9255
9256 fi
9257
9258
9259 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
9260 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9261 if test "${ac_cv_mmap64_works+set}" = set; then
9262   echo $ECHO_N "(cached) $ECHO_C" >&6
9263 else
9264   if test "$cross_compiling" = yes; then
9265   ac_cv_mmap64_works="no"
9266 else
9267   cat >conftest.$ac_ext <<_ACEOF
9268 #line $LINENO "configure"
9269 #include "confdefs.h"
9270
9271                 #define _FILE_OFFSET_BITS 64
9272                 #include <stdio.h>
9273                 #include <unistd.h>
9274                 #include <fcntl.h>
9275                 #include <sys/mman.h>
9276                 #include <errno.h>
9277
9278                 int main(int argc,char **argv) {
9279                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9280                         if (fd == -1) exit(1);
9281
9282                         unlink("conftest.map");
9283
9284                         write(fd,"test",4);
9285
9286                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9287                             (errno == EINVAL)
9288                         ) {
9289                                 exit(1);
9290                         }
9291                         close(fd);
9292                         fprintf(stderr,"success!\n");
9293                         exit(0);
9294                 }
9295
9296
9297 _ACEOF
9298 rm -f conftest$ac_exeext
9299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9300   (eval $ac_link) 2>&5
9301   ac_status=$?
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305   (eval $ac_try) 2>&5
9306   ac_status=$?
9307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308   (exit $ac_status); }; }; then
9309   ac_cv_mmap64_works="yes"
9310 else
9311   echo "$as_me: program exited with status $ac_status" >&5
9312 echo "$as_me: failed program was:" >&5
9313 cat conftest.$ac_ext >&5
9314 ( exit $ac_status )
9315 ac_cv_mmap64_works="no"
9316 fi
9317 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9318 fi
9319 fi
9320 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
9321 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
9322
9323 if test "$ac_cv_mmap64_works" = "yes"
9324 then
9325
9326 cat >>confdefs.h <<\_ACEOF
9327 #define _FILE_OFFSET_BITS 64
9328 _ACEOF
9329
9330 fi
9331
9332
9333 if test "x${GCC}" = "xyes"
9334 then
9335   CFLAGS="$CFLAGS -Wall"
9336   echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
9337 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9338 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9339   echo $ECHO_N "(cached) $ECHO_C" >&6
9340 else
9341   if test "$cross_compiling" = yes; then
9342   ac_cv_c_gcc_strength_bug="yes"
9343 else
9344   cat >conftest.$ac_ext <<_ACEOF
9345 #line $LINENO "configure"
9346 #include "confdefs.h"
9347
9348 int     L[4] = {0,1,2,3};
9349 int main(void) {
9350   static int Array[3];
9351   unsigned int B = 3;
9352   int i;
9353   for(i=0; i<B; i++) Array[i] = i - 3;
9354   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9355   L[i] = 4;
9356
9357   exit( Array[1] != -2 || L[2] != 3);
9358 }
9359 _ACEOF
9360 rm -f conftest$ac_exeext
9361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9362   (eval $ac_link) 2>&5
9363   ac_status=$?
9364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367   (eval $ac_try) 2>&5
9368   ac_status=$?
9369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370   (exit $ac_status); }; }; then
9371   ac_cv_c_gcc_strength_bug="no"
9372 else
9373   echo "$as_me: program exited with status $ac_status" >&5
9374 echo "$as_me: failed program was:" >&5
9375 cat conftest.$ac_ext >&5
9376 ( exit $ac_status )
9377 ac_cv_c_gcc_strength_bug="yes"
9378 fi
9379 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9380 fi
9381 fi
9382 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
9383 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
9384   if test "$ac_cv_c_gcc_strength_bug" = "yes"
9385   then
9386     CFLAGS="$CFLAGS -fno-strength-reduce"
9387   fi
9388
9389     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
9390 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9391 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9392   echo $ECHO_N "(cached) $ECHO_C" >&6
9393 else
9394   ac_wine_try_cflags_saved=$CFLAGS
9395 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9396 cat >conftest.$ac_ext <<_ACEOF
9397 #line $LINENO "configure"
9398 #include "confdefs.h"
9399
9400 #ifdef F77_DUMMY_MAIN
9401 #  ifdef __cplusplus
9402      extern "C"
9403 #  endif
9404    int F77_DUMMY_MAIN() { return 1; }
9405 #endif
9406 int
9407 main ()
9408 {
9409
9410   ;
9411   return 0;
9412 }
9413 _ACEOF
9414 rm -f conftest.$ac_objext conftest$ac_exeext
9415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9416   (eval $ac_link) 2>&5
9417   ac_status=$?
9418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419   (exit $ac_status); } &&
9420          { ac_try='test -s conftest$ac_exeext'
9421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422   (eval $ac_try) 2>&5
9423   ac_status=$?
9424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425   (exit $ac_status); }; }; then
9426   ac_cv_c_gcc_stack_boundary="yes"
9427 else
9428   echo "$as_me: failed program was:" >&5
9429 cat conftest.$ac_ext >&5
9430 ac_cv_c_gcc_stack_boundary="no"
9431 fi
9432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9433 CFLAGS=$ac_wine_try_cflags_saved
9434 fi
9435 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
9436 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
9437   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9438   then
9439     CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9440   fi
9441 fi
9442
9443
9444 echo "$as_me:$LINENO: checking whether .type must sit inside a .def directive" >&5
9445 echo $ECHO_N "checking whether .type must sit inside a .def directive... $ECHO_C" >&6
9446 if test "${ac_cv_c_type_in_def+set}" = set; then
9447   echo $ECHO_N "(cached) $ECHO_C" >&6
9448 else
9449   ac_try_asm_link_saved_libs=$LIBS
9450 LIBS="conftest_asm.s $LIBS"
9451 cat > conftest_asm.s <<EOF
9452         .globl _ac_test
9453         .def _ac_test; .scl 2; .type 32; .endef
9454 _ac_test:
9455         .long 0
9456 EOF
9457 cat >conftest.$ac_ext <<_ACEOF
9458 #line $LINENO "configure"
9459 #include "confdefs.h"
9460
9461 #ifdef F77_DUMMY_MAIN
9462 #  ifdef __cplusplus
9463      extern "C"
9464 #  endif
9465    int F77_DUMMY_MAIN() { return 1; }
9466 #endif
9467 int
9468 main ()
9469 {
9470
9471   ;
9472   return 0;
9473 }
9474 _ACEOF
9475 rm -f conftest.$ac_objext conftest$ac_exeext
9476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9477   (eval $ac_link) 2>&5
9478   ac_status=$?
9479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480   (exit $ac_status); } &&
9481          { ac_try='test -s conftest$ac_exeext'
9482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9483   (eval $ac_try) 2>&5
9484   ac_status=$?
9485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   (exit $ac_status); }; }; then
9487   ac_cv_c_type_in_def="yes"
9488 else
9489   echo "$as_me: failed program was:" >&5
9490 cat conftest.$ac_ext >&5
9491 ac_cv_c_type_in_def="no"
9492 fi
9493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9494 rm -f conftest_asm.s
9495 LIBS=$ac_try_asm_link_saved_libs
9496 fi
9497 echo "$as_me:$LINENO: result: $ac_cv_c_type_in_def" >&5
9498 echo "${ECHO_T}$ac_cv_c_type_in_def" >&6
9499 if test "$ac_cv_c_type_in_def" = "yes"
9500 then
9501
9502 cat >>confdefs.h <<\_ACEOF
9503 #define NEED_TYPE_IN_DEF 1
9504 _ACEOF
9505
9506 fi
9507
9508
9509 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
9510 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
9511 if test "${ac_cv_c_extern_prefix+set}" = set; then
9512   echo $ECHO_N "(cached) $ECHO_C" >&6
9513 else
9514   ac_try_asm_link_saved_libs=$LIBS
9515 LIBS="conftest_asm.s $LIBS"
9516 cat > conftest_asm.s <<EOF
9517         .globl _ac_test
9518 _ac_test:
9519         .long 0
9520 EOF
9521 cat >conftest.$ac_ext <<_ACEOF
9522 #line $LINENO "configure"
9523 #include "confdefs.h"
9524 extern int ac_test;
9525 #ifdef F77_DUMMY_MAIN
9526 #  ifdef __cplusplus
9527      extern "C"
9528 #  endif
9529    int F77_DUMMY_MAIN() { return 1; }
9530 #endif
9531 int
9532 main ()
9533 {
9534 if (ac_test) return 1
9535   ;
9536   return 0;
9537 }
9538 _ACEOF
9539 rm -f conftest.$ac_objext conftest$ac_exeext
9540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9541   (eval $ac_link) 2>&5
9542   ac_status=$?
9543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544   (exit $ac_status); } &&
9545          { ac_try='test -s conftest$ac_exeext'
9546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547   (eval $ac_try) 2>&5
9548   ac_status=$?
9549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550   (exit $ac_status); }; }; then
9551   ac_cv_c_extern_prefix="yes"
9552 else
9553   echo "$as_me: failed program was:" >&5
9554 cat conftest.$ac_ext >&5
9555 ac_cv_c_extern_prefix="no"
9556 fi
9557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9558 rm -f conftest_asm.s
9559 LIBS=$ac_try_asm_link_saved_libs
9560 fi
9561 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
9562 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
9563 if test "$ac_cv_c_extern_prefix" = "yes"
9564 then
9565
9566 cat >>confdefs.h <<\_ACEOF
9567 #define NEED_UNDERSCORE_PREFIX 1
9568 _ACEOF
9569
9570 fi
9571
9572
9573 echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5
9574 echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
9575 if test "${ac_cv_c_stdcall_decoration+set}" = set; then
9576   echo $ECHO_N "(cached) $ECHO_C" >&6
9577 else
9578   ac_try_asm_link_saved_libs=$LIBS
9579 LIBS="conftest_asm.s $LIBS"
9580 cat > conftest_asm.s <<EOF
9581         .globl _ac_test@0
9582 _ac_test@0:
9583         .globl ac_test@0
9584 ac_test@0:
9585 EOF
9586 cat >conftest.$ac_ext <<_ACEOF
9587 #line $LINENO "configure"
9588 #include "confdefs.h"
9589 extern void __attribute__((__stdcall__)) ac_test(void);
9590 #ifdef F77_DUMMY_MAIN
9591 #  ifdef __cplusplus
9592      extern "C"
9593 #  endif
9594    int F77_DUMMY_MAIN() { return 1; }
9595 #endif
9596 int
9597 main ()
9598 {
9599 ac_test()
9600   ;
9601   return 0;
9602 }
9603 _ACEOF
9604 rm -f conftest.$ac_objext conftest$ac_exeext
9605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9606   (eval $ac_link) 2>&5
9607   ac_status=$?
9608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609   (exit $ac_status); } &&
9610          { ac_try='test -s conftest$ac_exeext'
9611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612   (eval $ac_try) 2>&5
9613   ac_status=$?
9614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615   (exit $ac_status); }; }; then
9616   ac_cv_c_stdcall_decoration="yes"
9617 else
9618   echo "$as_me: failed program was:" >&5
9619 cat conftest.$ac_ext >&5
9620 ac_cv_c_stdcall_decoration="no"
9621 fi
9622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9623 rm -f conftest_asm.s
9624 LIBS=$ac_try_asm_link_saved_libs
9625 fi
9626 echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5
9627 echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
9628 if test "$ac_cv_c_stdcall_decoration" = "yes"
9629 then
9630
9631 cat >>confdefs.h <<\_ACEOF
9632 #define NEED_STDCALL_DECORATION 1
9633 _ACEOF
9634
9635 fi
9636
9637
9638 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
9639 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
9640 if test "${ac_cv_c_asm_string+set}" = set; then
9641   echo $ECHO_N "(cached) $ECHO_C" >&6
9642 else
9643   ac_try_asm_link_saved_libs=$LIBS
9644 LIBS="conftest_asm.s $LIBS"
9645 cat > conftest_asm.s <<EOF
9646         .string "test"
9647 EOF
9648 cat >conftest.$ac_ext <<_ACEOF
9649 #line $LINENO "configure"
9650 #include "confdefs.h"
9651
9652 #ifdef F77_DUMMY_MAIN
9653 #  ifdef __cplusplus
9654      extern "C"
9655 #  endif
9656    int F77_DUMMY_MAIN() { return 1; }
9657 #endif
9658 int
9659 main ()
9660 {
9661
9662   ;
9663   return 0;
9664 }
9665 _ACEOF
9666 rm -f conftest.$ac_objext conftest$ac_exeext
9667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9668   (eval $ac_link) 2>&5
9669   ac_status=$?
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); } &&
9672          { ac_try='test -s conftest$ac_exeext'
9673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674   (eval $ac_try) 2>&5
9675   ac_status=$?
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); }; }; then
9678   ac_cv_c_asm_string="yes"
9679 else
9680   echo "$as_me: failed program was:" >&5
9681 cat conftest.$ac_ext >&5
9682 ac_cv_c_asm_string="no"
9683 fi
9684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9685 rm -f conftest_asm.s
9686 LIBS=$ac_try_asm_link_saved_libs
9687 fi
9688 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
9689 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
9690 if test "$ac_cv_c_asm_string" = "yes"
9691 then
9692
9693 cat >>confdefs.h <<\_ACEOF
9694 #define HAVE_ASM_STRING 1
9695 _ACEOF
9696
9697 fi
9698
9699
9700 LDSHARED=""
9701 LDDLLFLAGS=""
9702 DLLIBS=""
9703
9704 case $host_os in
9705   cygwin*|mingw32*)
9706     if test -n "$ac_tool_prefix"; then
9707   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
9708 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
9709 echo "$as_me:$LINENO: checking for $ac_word" >&5
9710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9711 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
9712   echo $ECHO_N "(cached) $ECHO_C" >&6
9713 else
9714   if test -n "$DLLWRAP"; then
9715   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
9716 else
9717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9718 for as_dir in $PATH
9719 do
9720   IFS=$as_save_IFS
9721   test -z "$as_dir" && as_dir=.
9722   for ac_exec_ext in '' $ac_executable_extensions; do
9723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9724     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
9725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9726     break 2
9727   fi
9728 done
9729 done
9730
9731 fi
9732 fi
9733 DLLWRAP=$ac_cv_prog_DLLWRAP
9734 if test -n "$DLLWRAP"; then
9735   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
9736 echo "${ECHO_T}$DLLWRAP" >&6
9737 else
9738   echo "$as_me:$LINENO: result: no" >&5
9739 echo "${ECHO_T}no" >&6
9740 fi
9741
9742 fi
9743 if test -z "$ac_cv_prog_DLLWRAP"; then
9744   ac_ct_DLLWRAP=$DLLWRAP
9745   # Extract the first word of "dllwrap", so it can be a program name with args.
9746 set dummy dllwrap; ac_word=$2
9747 echo "$as_me:$LINENO: checking for $ac_word" >&5
9748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9749 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
9750   echo $ECHO_N "(cached) $ECHO_C" >&6
9751 else
9752   if test -n "$ac_ct_DLLWRAP"; then
9753   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
9754 else
9755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9756 for as_dir in $PATH
9757 do
9758   IFS=$as_save_IFS
9759   test -z "$as_dir" && as_dir=.
9760   for ac_exec_ext in '' $ac_executable_extensions; do
9761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9762     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
9763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9764     break 2
9765   fi
9766 done
9767 done
9768
9769   test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
9770 fi
9771 fi
9772 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
9773 if test -n "$ac_ct_DLLWRAP"; then
9774   echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
9775 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
9776 else
9777   echo "$as_me:$LINENO: result: no" >&5
9778 echo "${ECHO_T}no" >&6
9779 fi
9780
9781   DLLWRAP=$ac_ct_DLLWRAP
9782 else
9783   DLLWRAP="$ac_cv_prog_DLLWRAP"
9784 fi
9785
9786     if test "$DLLWRAP" = "false"; then
9787       LIBEXT="a"
9788     else
9789             LIBEXT="dll"
9790     fi
9791     ;;
9792   *)
9793
9794 for ac_header in dlfcn.h
9795 do
9796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9798   echo "$as_me:$LINENO: checking for $ac_header" >&5
9799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9801   echo $ECHO_N "(cached) $ECHO_C" >&6
9802 fi
9803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9805 else
9806   # Is the header compilable?
9807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9809 cat >conftest.$ac_ext <<_ACEOF
9810 #line $LINENO "configure"
9811 #include "confdefs.h"
9812 $ac_includes_default
9813 #include <$ac_header>
9814 _ACEOF
9815 rm -f conftest.$ac_objext
9816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9817   (eval $ac_compile) 2>&5
9818   ac_status=$?
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); } &&
9821          { ac_try='test -s conftest.$ac_objext'
9822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9823   (eval $ac_try) 2>&5
9824   ac_status=$?
9825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); }; }; then
9827   ac_header_compiler=yes
9828 else
9829   echo "$as_me: failed program was:" >&5
9830 cat conftest.$ac_ext >&5
9831 ac_header_compiler=no
9832 fi
9833 rm -f conftest.$ac_objext conftest.$ac_ext
9834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9835 echo "${ECHO_T}$ac_header_compiler" >&6
9836
9837 # Is the header present?
9838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9840 cat >conftest.$ac_ext <<_ACEOF
9841 #line $LINENO "configure"
9842 #include "confdefs.h"
9843 #include <$ac_header>
9844 _ACEOF
9845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9846   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9847   ac_status=$?
9848   egrep -v '^ *\+' conftest.er1 >conftest.err
9849   rm -f conftest.er1
9850   cat conftest.err >&5
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); } >/dev/null; then
9853   if test -s conftest.err; then
9854     ac_cpp_err=$ac_c_preproc_warn_flag
9855   else
9856     ac_cpp_err=
9857   fi
9858 else
9859   ac_cpp_err=yes
9860 fi
9861 if test -z "$ac_cpp_err"; then
9862   ac_header_preproc=yes
9863 else
9864   echo "$as_me: failed program was:" >&5
9865   cat conftest.$ac_ext >&5
9866   ac_header_preproc=no
9867 fi
9868 rm -f conftest.err conftest.$ac_ext
9869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9870 echo "${ECHO_T}$ac_header_preproc" >&6
9871
9872 # So?  What about this header?
9873 case $ac_header_compiler:$ac_header_preproc in
9874   yes:no )
9875     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9879   no:yes )
9880     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9882     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9884     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9886 esac
9887 echo "$as_me:$LINENO: checking for $ac_header" >&5
9888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9890   echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892   eval "$as_ac_Header=$ac_header_preproc"
9893 fi
9894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9896
9897 fi
9898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9899   cat >>confdefs.h <<_ACEOF
9900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9901 _ACEOF
9902
9903 for ac_func in dlopen
9904 do
9905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9906 echo "$as_me:$LINENO: checking for $ac_func" >&5
9907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9908 if eval "test \"\${$as_ac_var+set}\" = set"; then
9909   echo $ECHO_N "(cached) $ECHO_C" >&6
9910 else
9911   cat >conftest.$ac_ext <<_ACEOF
9912 #line $LINENO "configure"
9913 #include "confdefs.h"
9914 /* System header to define __stub macros and hopefully few prototypes,
9915     which can conflict with char $ac_func (); below.  */
9916 #include <assert.h>
9917 /* Override any gcc2 internal prototype to avoid an error.  */
9918 #ifdef __cplusplus
9919 extern "C"
9920 #endif
9921 /* We use char because int might match the return type of a gcc2
9922    builtin and then its argument prototype would still apply.  */
9923 char $ac_func ();
9924 char (*f) ();
9925
9926 #ifdef F77_DUMMY_MAIN
9927 #  ifdef __cplusplus
9928      extern "C"
9929 #  endif
9930    int F77_DUMMY_MAIN() { return 1; }
9931 #endif
9932 int
9933 main ()
9934 {
9935 /* The GNU C library defines this for functions which it implements
9936     to always fail with ENOSYS.  Some functions are actually named
9937     something starting with __ and the normal name is an alias.  */
9938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9939 choke me
9940 #else
9941 f = $ac_func;
9942 #endif
9943
9944   ;
9945   return 0;
9946 }
9947 _ACEOF
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9950   (eval $ac_link) 2>&5
9951   ac_status=$?
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); } &&
9954          { ac_try='test -s conftest$ac_exeext'
9955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956   (eval $ac_try) 2>&5
9957   ac_status=$?
9958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959   (exit $ac_status); }; }; then
9960   eval "$as_ac_var=yes"
9961 else
9962   echo "$as_me: failed program was:" >&5
9963 cat conftest.$ac_ext >&5
9964 eval "$as_ac_var=no"
9965 fi
9966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9967 fi
9968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9969 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9970 if test `eval echo '${'$as_ac_var'}'` = yes; then
9971   cat >>confdefs.h <<_ACEOF
9972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9973 _ACEOF
9974
9975 else
9976   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9977 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9978 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9979   echo $ECHO_N "(cached) $ECHO_C" >&6
9980 else
9981   ac_check_lib_save_LIBS=$LIBS
9982 LIBS="-ldl  $LIBS"
9983 cat >conftest.$ac_ext <<_ACEOF
9984 #line $LINENO "configure"
9985 #include "confdefs.h"
9986
9987 /* Override any gcc2 internal prototype to avoid an error.  */
9988 #ifdef __cplusplus
9989 extern "C"
9990 #endif
9991 /* We use char because int might match the return type of a gcc2
9992    builtin and then its argument prototype would still apply.  */
9993 char dlopen ();
9994 #ifdef F77_DUMMY_MAIN
9995 #  ifdef __cplusplus
9996      extern "C"
9997 #  endif
9998    int F77_DUMMY_MAIN() { return 1; }
9999 #endif
10000 int
10001 main ()
10002 {
10003 dlopen ();
10004   ;
10005   return 0;
10006 }
10007 _ACEOF
10008 rm -f conftest.$ac_objext conftest$ac_exeext
10009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10010   (eval $ac_link) 2>&5
10011   ac_status=$?
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); } &&
10014          { ac_try='test -s conftest$ac_exeext'
10015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016   (eval $ac_try) 2>&5
10017   ac_status=$?
10018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019   (exit $ac_status); }; }; then
10020   ac_cv_lib_dl_dlopen=yes
10021 else
10022   echo "$as_me: failed program was:" >&5
10023 cat conftest.$ac_ext >&5
10024 ac_cv_lib_dl_dlopen=no
10025 fi
10026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10027 LIBS=$ac_check_lib_save_LIBS
10028 fi
10029 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10030 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10031 if test $ac_cv_lib_dl_dlopen = yes; then
10032
10033 cat >>confdefs.h <<\_ACEOF
10034 #define HAVE_DLOPEN 1
10035 _ACEOF
10036
10037                           DLLIBS="-ldl"
10038 else
10039   LIBEXT="a"
10040 fi
10041
10042 fi
10043 done
10044
10045 else
10046   LIBEXT="a"
10047 fi
10048
10049 done
10050
10051
10052     if test "$LIBEXT" = "so"
10053     then
10054       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
10055 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
10056 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
10057   echo $ECHO_N "(cached) $ECHO_C" >&6
10058 else
10059   ac_wine_try_cflags_saved=$CFLAGS
10060 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
10061 cat >conftest.$ac_ext <<_ACEOF
10062 #line $LINENO "configure"
10063 #include "confdefs.h"
10064
10065 #ifdef F77_DUMMY_MAIN
10066 #  ifdef __cplusplus
10067      extern "C"
10068 #  endif
10069    int F77_DUMMY_MAIN() { return 1; }
10070 #endif
10071 int
10072 main ()
10073 {
10074
10075   ;
10076   return 0;
10077 }
10078 _ACEOF
10079 rm -f conftest.$ac_objext conftest$ac_exeext
10080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10081   (eval $ac_link) 2>&5
10082   ac_status=$?
10083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084   (exit $ac_status); } &&
10085          { ac_try='test -s conftest$ac_exeext'
10086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087   (eval $ac_try) 2>&5
10088   ac_status=$?
10089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090   (exit $ac_status); }; }; then
10091   ac_cv_c_dll_gnuelf="yes"
10092 else
10093   echo "$as_me: failed program was:" >&5
10094 cat conftest.$ac_ext >&5
10095 ac_cv_c_dll_gnuelf="no"
10096 fi
10097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10098 CFLAGS=$ac_wine_try_cflags_saved
10099 fi
10100 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
10101 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
10102       if test "$ac_cv_c_dll_gnuelf" = "yes"
10103       then
10104         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
10105         LDDLLFLAGS="-Wl,-Bsymbolic"
10106       else
10107         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
10108 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
10109 if test "${ac_cv_c_dll_unixware+set}" = set; then
10110   echo $ECHO_N "(cached) $ECHO_C" >&6
10111 else
10112   ac_wine_try_cflags_saved=$CFLAGS
10113 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
10114 cat >conftest.$ac_ext <<_ACEOF
10115 #line $LINENO "configure"
10116 #include "confdefs.h"
10117
10118 #ifdef F77_DUMMY_MAIN
10119 #  ifdef __cplusplus
10120      extern "C"
10121 #  endif
10122    int F77_DUMMY_MAIN() { return 1; }
10123 #endif
10124 int
10125 main ()
10126 {
10127
10128   ;
10129   return 0;
10130 }
10131 _ACEOF
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134   (eval $ac_link) 2>&5
10135   ac_status=$?
10136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137   (exit $ac_status); } &&
10138          { ac_try='test -s conftest$ac_exeext'
10139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140   (eval $ac_try) 2>&5
10141   ac_status=$?
10142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143   (exit $ac_status); }; }; then
10144   ac_cv_c_dll_unixware="yes"
10145 else
10146   echo "$as_me: failed program was:" >&5
10147 cat conftest.$ac_ext >&5
10148 ac_cv_c_dll_unixware="no"
10149 fi
10150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10151 CFLAGS=$ac_wine_try_cflags_saved
10152 fi
10153 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
10154 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
10155         if test "$ac_cv_c_dll_unixware" = "yes"
10156         then
10157           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
10158           LDDLLFLAGS="-Wl,-B,symbolic"
10159         fi
10160       fi
10161     fi
10162     ;;
10163 esac
10164
10165 if test "$LIBEXT" = "a"; then
10166   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
10167 It is currently not possible to build Wine without shared library
10168 (.so) support to allow transparent switch between .so and .dll files.
10169 If you are using Linux, you will need a newer binutils.
10170 " >&5
10171 echo "$as_me: error: could not find a way to build shared libraries.
10172 It is currently not possible to build Wine without shared library
10173 (.so) support to allow transparent switch between .so and .dll files.
10174 If you are using Linux, you will need a newer binutils.
10175 " >&2;}
10176    { (exit 1); exit 1; }; }
10177 fi
10178
10179 DLLFLAGS=""
10180
10181 if test "$LIBEXT" = "so"; then
10182     DLLFLAGS="-fPIC"
10183     DLLEXT=".so"
10184 elif test "$LIBEXT" = "dll"; then
10185     #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
10186     DLLEXT=""
10187 fi
10188
10189 case $build_os in
10190   cygwin*|mingw32*)
10191     LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\"" ;;
10192   *)
10193     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\"" ;;
10194 esac
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205 if test "$LIBEXT" = "so"
10206 then
10207   # Extract the first word of "ldd", so it can be a program name with args.
10208 set dummy ldd; ac_word=$2
10209 echo "$as_me:$LINENO: checking for $ac_word" >&5
10210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10211 if test "${ac_cv_path_LDD+set}" = set; then
10212   echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214   case $LDD in
10215   [\\/]* | ?:[\\/]*)
10216   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10217   ;;
10218   *)
10219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10220 for as_dir in /sbin:/usr/sbin:$PATH
10221 do
10222   IFS=$as_save_IFS
10223   test -z "$as_dir" && as_dir=.
10224   for ac_exec_ext in '' $ac_executable_extensions; do
10225   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10226     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10228     break 2
10229   fi
10230 done
10231 done
10232
10233   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
10234   ;;
10235 esac
10236 fi
10237 LDD=$ac_cv_path_LDD
10238
10239 if test -n "$LDD"; then
10240   echo "$as_me:$LINENO: result: $LDD" >&5
10241 echo "${ECHO_T}$LDD" >&6
10242 else
10243   echo "$as_me:$LINENO: result: no" >&5
10244 echo "${ECHO_T}no" >&6
10245 fi
10246
10247
10248 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
10249 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
10250 if test "${ac_cv_lib_soname_X11+set}" = set; then
10251   echo $ECHO_N "(cached) $ECHO_C" >&6
10252 else
10253   ac_get_soname_save_LIBS=$LIBS
10254 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
10255   cat >conftest.$ac_ext <<_ACEOF
10256 #line $LINENO "configure"
10257 #include "confdefs.h"
10258
10259 /* Override any gcc2 internal prototype to avoid an error.  */
10260 #ifdef __cplusplus
10261 extern "C"
10262 #endif
10263 /* We use char because int might match the return type of a gcc2
10264    builtin and then its argument prototype would still apply.  */
10265 char XCreateWindow ();
10266 #ifdef F77_DUMMY_MAIN
10267 #  ifdef __cplusplus
10268      extern "C"
10269 #  endif
10270    int F77_DUMMY_MAIN() { return 1; }
10271 #endif
10272 int
10273 main ()
10274 {
10275 XCreateWindow ();
10276   ;
10277   return 0;
10278 }
10279 _ACEOF
10280 rm -f conftest.$ac_objext conftest$ac_exeext
10281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10282   (eval $ac_link) 2>&5
10283   ac_status=$?
10284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285   (exit $ac_status); } &&
10286          { ac_try='test -s conftest$ac_exeext'
10287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288   (eval $ac_try) 2>&5
10289   ac_status=$?
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); }; }; then
10292   ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[       ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10293   if test "x$ac_cv_lib_soname_X11" = "x"
10294   then
10295      ac_cv_lib_soname_X11="libX11.so"
10296   fi
10297 else
10298   echo "$as_me: failed program was:" >&5
10299 cat conftest.$ac_ext >&5
10300 ac_cv_lib_soname_X11="libX11.so"
10301 fi
10302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10303   LIBS=$ac_get_soname_save_LIBS
10304 fi
10305 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
10306 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
10307 if test "x$ac_cv_lib_soname_X11" != xNONE
10308 then
10309 cat >>confdefs.h <<_ACEOF
10310 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
10311 _ACEOF
10312 fi
10313
10314 echo "$as_me:$LINENO: checking for -lXext soname" >&5
10315 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
10316 if test "${ac_cv_lib_soname_Xext+set}" = set; then
10317   echo $ECHO_N "(cached) $ECHO_C" >&6
10318 else
10319   ac_get_soname_save_LIBS=$LIBS
10320 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10321   cat >conftest.$ac_ext <<_ACEOF
10322 #line $LINENO "configure"
10323 #include "confdefs.h"
10324
10325 /* Override any gcc2 internal prototype to avoid an error.  */
10326 #ifdef __cplusplus
10327 extern "C"
10328 #endif
10329 /* We use char because int might match the return type of a gcc2
10330    builtin and then its argument prototype would still apply.  */
10331 char XextCreateExtension ();
10332 #ifdef F77_DUMMY_MAIN
10333 #  ifdef __cplusplus
10334      extern "C"
10335 #  endif
10336    int F77_DUMMY_MAIN() { return 1; }
10337 #endif
10338 int
10339 main ()
10340 {
10341 XextCreateExtension ();
10342   ;
10343   return 0;
10344 }
10345 _ACEOF
10346 rm -f conftest.$ac_objext conftest$ac_exeext
10347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10348   (eval $ac_link) 2>&5
10349   ac_status=$?
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); } &&
10352          { ac_try='test -s conftest$ac_exeext'
10353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354   (eval $ac_try) 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); }; }; then
10358   ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10359   if test "x$ac_cv_lib_soname_Xext" = "x"
10360   then
10361      ac_cv_lib_soname_Xext="libXext.so"
10362   fi
10363 else
10364   echo "$as_me: failed program was:" >&5
10365 cat conftest.$ac_ext >&5
10366 ac_cv_lib_soname_Xext="libXext.so"
10367 fi
10368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10369   LIBS=$ac_get_soname_save_LIBS
10370 fi
10371 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
10372 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
10373 if test "x$ac_cv_lib_soname_Xext" != xNONE
10374 then
10375 cat >>confdefs.h <<_ACEOF
10376 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
10377 _ACEOF
10378 fi
10379
10380 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
10381 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
10382 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
10383   echo $ECHO_N "(cached) $ECHO_C" >&6
10384 else
10385   ac_get_soname_save_LIBS=$LIBS
10386 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10387   cat >conftest.$ac_ext <<_ACEOF
10388 #line $LINENO "configure"
10389 #include "confdefs.h"
10390
10391 /* Override any gcc2 internal prototype to avoid an error.  */
10392 #ifdef __cplusplus
10393 extern "C"
10394 #endif
10395 /* We use char because int might match the return type of a gcc2
10396    builtin and then its argument prototype would still apply.  */
10397 char XRenderQueryExtension ();
10398 #ifdef F77_DUMMY_MAIN
10399 #  ifdef __cplusplus
10400      extern "C"
10401 #  endif
10402    int F77_DUMMY_MAIN() { return 1; }
10403 #endif
10404 int
10405 main ()
10406 {
10407 XRenderQueryExtension ();
10408   ;
10409   return 0;
10410 }
10411 _ACEOF
10412 rm -f conftest.$ac_objext conftest$ac_exeext
10413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10414   (eval $ac_link) 2>&5
10415   ac_status=$?
10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417   (exit $ac_status); } &&
10418          { ac_try='test -s conftest$ac_exeext'
10419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420   (eval $ac_try) 2>&5
10421   ac_status=$?
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); }; }; then
10424   ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[       ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10425   if test "x$ac_cv_lib_soname_Xrender" = "x"
10426   then
10427      ac_cv_lib_soname_Xrender="libXrender.so"
10428   fi
10429 else
10430   echo "$as_me: failed program was:" >&5
10431 cat conftest.$ac_ext >&5
10432 ac_cv_lib_soname_Xrender="libXrender.so"
10433 fi
10434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10435   LIBS=$ac_get_soname_save_LIBS
10436 fi
10437 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
10438 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
10439 if test "x$ac_cv_lib_soname_Xrender" != xNONE
10440 then
10441 cat >>confdefs.h <<_ACEOF
10442 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
10443 _ACEOF
10444 fi
10445
10446 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
10447 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
10448 if test "${ac_cv_lib_soname_freetype+set}" = set; then
10449   echo $ECHO_N "(cached) $ECHO_C" >&6
10450 else
10451   ac_get_soname_save_LIBS=$LIBS
10452 LIBS="-lfreetype $X_LIBS $LIBS"
10453   cat >conftest.$ac_ext <<_ACEOF
10454 #line $LINENO "configure"
10455 #include "confdefs.h"
10456
10457 /* Override any gcc2 internal prototype to avoid an error.  */
10458 #ifdef __cplusplus
10459 extern "C"
10460 #endif
10461 /* We use char because int might match the return type of a gcc2
10462    builtin and then its argument prototype would still apply.  */
10463 char FT_Init_FreeType ();
10464 #ifdef F77_DUMMY_MAIN
10465 #  ifdef __cplusplus
10466      extern "C"
10467 #  endif
10468    int F77_DUMMY_MAIN() { return 1; }
10469 #endif
10470 int
10471 main ()
10472 {
10473 FT_Init_FreeType ();
10474   ;
10475   return 0;
10476 }
10477 _ACEOF
10478 rm -f conftest.$ac_objext conftest$ac_exeext
10479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10480   (eval $ac_link) 2>&5
10481   ac_status=$?
10482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483   (exit $ac_status); } &&
10484          { ac_try='test -s conftest$ac_exeext'
10485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486   (eval $ac_try) 2>&5
10487   ac_status=$?
10488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489   (exit $ac_status); }; }; then
10490   ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[     ]*\([^  ]*\)[   ]*=>.*$/\1/'`
10491   if test "x$ac_cv_lib_soname_freetype" = "x"
10492   then
10493      ac_cv_lib_soname_freetype="libfreetype.so"
10494   fi
10495 else
10496   echo "$as_me: failed program was:" >&5
10497 cat conftest.$ac_ext >&5
10498 ac_cv_lib_soname_freetype="libfreetype.so"
10499 fi
10500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10501   LIBS=$ac_get_soname_save_LIBS
10502 fi
10503 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
10504 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
10505 if test "x$ac_cv_lib_soname_freetype" != xNONE
10506 then
10507 cat >>confdefs.h <<_ACEOF
10508 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10509 _ACEOF
10510 fi
10511 fi
10512
10513
10514
10515 wine_cv_libc_reentrant=no
10516 echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
10517 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
10518 if test "${wine_cv_libc_r___errno_location+set}" = set; then
10519   echo $ECHO_N "(cached) $ECHO_C" >&6
10520 else
10521   if test "$cross_compiling" = yes; then
10522   wine_cv_libc_r___errno_location=yes
10523 else
10524   cat >conftest.$ac_ext <<_ACEOF
10525 #line $LINENO "configure"
10526 #include "confdefs.h"
10527 int myerrno = 0;
10528 int *__errno_location(){return &myerrno;}
10529 main(){close(333); close(333); exit(!myerrno);}
10530 _ACEOF
10531 rm -f conftest$ac_exeext
10532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10533   (eval $ac_link) 2>&5
10534   ac_status=$?
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538   (eval $ac_try) 2>&5
10539   ac_status=$?
10540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541   (exit $ac_status); }; }; then
10542   wine_cv_libc_r___errno_location=yes
10543 else
10544   echo "$as_me: program exited with status $ac_status" >&5
10545 echo "$as_me: failed program was:" >&5
10546 cat conftest.$ac_ext >&5
10547 ( exit $ac_status )
10548 wine_cv_libc_r___errno_location=no
10549 fi
10550 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10551 fi
10552 fi
10553 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
10554 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
10555 if test "$wine_cv_libc_r___errno_location" = "yes"; then
10556   wine_cv_libc_reentrant=__errno_location
10557 else
10558     echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
10559 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
10560 if test "${wine_cv_libc_r___error+set}" = set; then
10561   echo $ECHO_N "(cached) $ECHO_C" >&6
10562 else
10563   if test "$cross_compiling" = yes; then
10564   wine_cv_libc_r___error=yes
10565 else
10566   cat >conftest.$ac_ext <<_ACEOF
10567 #line $LINENO "configure"
10568 #include "confdefs.h"
10569 int myerrno = 0;
10570 int *__error(){return &myerrno;}
10571 main(){close(333); close(333); exit(!myerrno);}
10572 _ACEOF
10573 rm -f conftest$ac_exeext
10574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10575   (eval $ac_link) 2>&5
10576   ac_status=$?
10577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580   (eval $ac_try) 2>&5
10581   ac_status=$?
10582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583   (exit $ac_status); }; }; then
10584   wine_cv_libc_r___error=yes
10585 else
10586   echo "$as_me: program exited with status $ac_status" >&5
10587 echo "$as_me: failed program was:" >&5
10588 cat conftest.$ac_ext >&5
10589 ( exit $ac_status )
10590 wine_cv_libc_r___error=no
10591 fi
10592 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10593 fi
10594 fi
10595 echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
10596 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
10597 if test "$wine_cv_libc_r___error" = "yes"; then
10598   wine_cv_libc_reentrant=__error
10599 else
10600       echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
10601 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
10602 if test "${wine_cv_libc_r____errno+set}" = set; then
10603   echo $ECHO_N "(cached) $ECHO_C" >&6
10604 else
10605   if test "$cross_compiling" = yes; then
10606   wine_cv_libc_r____errno=yes
10607 else
10608   cat >conftest.$ac_ext <<_ACEOF
10609 #line $LINENO "configure"
10610 #include "confdefs.h"
10611 int myerrno = 0;
10612 int *___errno(){return &myerrno;}
10613 main(){close(333); close(333); exit(!myerrno);}
10614 _ACEOF
10615 rm -f conftest$ac_exeext
10616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10617   (eval $ac_link) 2>&5
10618   ac_status=$?
10619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622   (eval $ac_try) 2>&5
10623   ac_status=$?
10624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); }; }; then
10626   wine_cv_libc_r____errno=yes
10627 else
10628   echo "$as_me: program exited with status $ac_status" >&5
10629 echo "$as_me: failed program was:" >&5
10630 cat conftest.$ac_ext >&5
10631 ( exit $ac_status )
10632 wine_cv_libc_r____errno=no
10633 fi
10634 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10635 fi
10636 fi
10637 echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
10638 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
10639 if test "$wine_cv_libc_r____errno" = "yes"; then
10640   wine_cv_libc_reentrant=___errno
10641 else
10642         echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
10643 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
10644 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
10645   echo $ECHO_N "(cached) $ECHO_C" >&6
10646 else
10647   if test "$cross_compiling" = yes; then
10648   wine_cv_libc_r___thr_errno=yes
10649 else
10650   cat >conftest.$ac_ext <<_ACEOF
10651 #line $LINENO "configure"
10652 #include "confdefs.h"
10653 int myerrno = 0;
10654 int *__thr_errno(){return &myerrno;}
10655 main(){close(333); close(333); exit(!myerrno);}
10656 _ACEOF
10657 rm -f conftest$ac_exeext
10658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10659   (eval $ac_link) 2>&5
10660   ac_status=$?
10661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664   (eval $ac_try) 2>&5
10665   ac_status=$?
10666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667   (exit $ac_status); }; }; then
10668   wine_cv_libc_r___thr_errno=yes
10669 else
10670   echo "$as_me: program exited with status $ac_status" >&5
10671 echo "$as_me: failed program was:" >&5
10672 cat conftest.$ac_ext >&5
10673 ( exit $ac_status )
10674 wine_cv_libc_r___thr_errno=no
10675 fi
10676 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10677 fi
10678 fi
10679 echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
10680 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
10681 if test "$wine_cv_libc_r___thr_errno" = "yes"; then
10682   wine_cv_libc_reentrant=__thr_errno
10683 else
10684           echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
10685 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
10686 if test "${wine_cv_libc_r___errno+set}" = set; then
10687   echo $ECHO_N "(cached) $ECHO_C" >&6
10688 else
10689   if test "$cross_compiling" = yes; then
10690   wine_cv_libc_r___errno=yes
10691 else
10692   cat >conftest.$ac_ext <<_ACEOF
10693 #line $LINENO "configure"
10694 #include "confdefs.h"
10695 int myerrno = 0;
10696 int *__errno(){return &myerrno;}
10697 main(){close(333); close(333); exit(!myerrno);}
10698 _ACEOF
10699 rm -f conftest$ac_exeext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10701   (eval $ac_link) 2>&5
10702   ac_status=$?
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706   (eval $ac_try) 2>&5
10707   ac_status=$?
10708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709   (exit $ac_status); }; }; then
10710   wine_cv_libc_r___errno=yes
10711 else
10712   echo "$as_me: program exited with status $ac_status" >&5
10713 echo "$as_me: failed program was:" >&5
10714 cat conftest.$ac_ext >&5
10715 ( exit $ac_status )
10716 wine_cv_libc_r___errno=no
10717 fi
10718 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10719 fi
10720 fi
10721 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
10722 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
10723 if test "$wine_cv_libc_r___errno" = "yes"; then
10724   wine_cv_libc_reentrant=__errno
10725 fi
10726
10727
10728 fi
10729
10730 fi
10731
10732 fi
10733
10734 fi
10735
10736
10737 if test "$wine_cv_libc_reentrant" != "no"
10738 then
10739
10740 cat >>confdefs.h <<_ACEOF
10741 #define ERRNO_LOCATION $wine_cv_libc_reentrant
10742 _ACEOF
10743
10744 fi
10745
10746
10747 if test "$have_x" = "yes"
10748 then
10749 echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
10750 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
10751 if test "${wine_cv_x_reentrant+set}" = set; then
10752   echo $ECHO_N "(cached) $ECHO_C" >&6
10753 else
10754   libX11_check=none
10755     for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
10756         if test -r $dir/libX11.so; then
10757             libX11_check="-D $dir/libX11.so"
10758             break
10759         fi
10760         if test -r $dir/libX11.a; then
10761             libX11_check="$dir/libX11.a"
10762             break
10763         fi
10764     done
10765     if test "$libX11_check" != "none"; then
10766         if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
10767         then
10768             wine_cv_x_reentrant=yes
10769         else
10770             wine_cv_x_reentrant=no
10771         fi
10772     else
10773         wine_cv_x_reentrant=unknown
10774     fi
10775 fi
10776 echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
10777 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
10778 fi
10779
10780
10781 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10782 # for constant arguments.  Useless!
10783 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10784 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10785 if test "${ac_cv_working_alloca_h+set}" = set; then
10786   echo $ECHO_N "(cached) $ECHO_C" >&6
10787 else
10788   cat >conftest.$ac_ext <<_ACEOF
10789 #line $LINENO "configure"
10790 #include "confdefs.h"
10791 #include <alloca.h>
10792 #ifdef F77_DUMMY_MAIN
10793 #  ifdef __cplusplus
10794      extern "C"
10795 #  endif
10796    int F77_DUMMY_MAIN() { return 1; }
10797 #endif
10798 int
10799 main ()
10800 {
10801 char *p = (char *) alloca (2 * sizeof (int));
10802   ;
10803   return 0;
10804 }
10805 _ACEOF
10806 rm -f conftest.$ac_objext conftest$ac_exeext
10807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10808   (eval $ac_link) 2>&5
10809   ac_status=$?
10810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811   (exit $ac_status); } &&
10812          { ac_try='test -s conftest$ac_exeext'
10813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814   (eval $ac_try) 2>&5
10815   ac_status=$?
10816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817   (exit $ac_status); }; }; then
10818   ac_cv_working_alloca_h=yes
10819 else
10820   echo "$as_me: failed program was:" >&5
10821 cat conftest.$ac_ext >&5
10822 ac_cv_working_alloca_h=no
10823 fi
10824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10825 fi
10826 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10827 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10828 if test $ac_cv_working_alloca_h = yes; then
10829
10830 cat >>confdefs.h <<\_ACEOF
10831 #define HAVE_ALLOCA_H 1
10832 _ACEOF
10833
10834 fi
10835
10836 echo "$as_me:$LINENO: checking for alloca" >&5
10837 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10838 if test "${ac_cv_func_alloca_works+set}" = set; then
10839   echo $ECHO_N "(cached) $ECHO_C" >&6
10840 else
10841   cat >conftest.$ac_ext <<_ACEOF
10842 #line $LINENO "configure"
10843 #include "confdefs.h"
10844 #ifdef __GNUC__
10845 # define alloca __builtin_alloca
10846 #else
10847 # ifdef _MSC_VER
10848 #  include <malloc.h>
10849 #  define alloca _alloca
10850 # else
10851 #  if HAVE_ALLOCA_H
10852 #   include <alloca.h>
10853 #  else
10854 #   ifdef _AIX
10855  #pragma alloca
10856 #   else
10857 #    ifndef alloca /* predefined by HP cc +Olibcalls */
10858 char *alloca ();
10859 #    endif
10860 #   endif
10861 #  endif
10862 # endif
10863 #endif
10864
10865 #ifdef F77_DUMMY_MAIN
10866 #  ifdef __cplusplus
10867      extern "C"
10868 #  endif
10869    int F77_DUMMY_MAIN() { return 1; }
10870 #endif
10871 int
10872 main ()
10873 {
10874 char *p = (char *) alloca (1);
10875   ;
10876   return 0;
10877 }
10878 _ACEOF
10879 rm -f conftest.$ac_objext conftest$ac_exeext
10880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10881   (eval $ac_link) 2>&5
10882   ac_status=$?
10883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884   (exit $ac_status); } &&
10885          { ac_try='test -s conftest$ac_exeext'
10886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887   (eval $ac_try) 2>&5
10888   ac_status=$?
10889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); }; }; then
10891   ac_cv_func_alloca_works=yes
10892 else
10893   echo "$as_me: failed program was:" >&5
10894 cat conftest.$ac_ext >&5
10895 ac_cv_func_alloca_works=no
10896 fi
10897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10898 fi
10899 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10900 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10901
10902 if test $ac_cv_func_alloca_works = yes; then
10903
10904 cat >>confdefs.h <<\_ACEOF
10905 #define HAVE_ALLOCA 1
10906 _ACEOF
10907
10908 else
10909   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10910 # that cause trouble.  Some versions do not even contain alloca or
10911 # contain a buggy version.  If you still want to use their alloca,
10912 # use ar to extract alloca.o from them instead of compiling alloca.c.
10913
10914 ALLOCA=alloca.$ac_objext
10915
10916 cat >>confdefs.h <<\_ACEOF
10917 #define C_ALLOCA 1
10918 _ACEOF
10919
10920
10921 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10922 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10923 if test "${ac_cv_os_cray+set}" = set; then
10924   echo $ECHO_N "(cached) $ECHO_C" >&6
10925 else
10926   cat >conftest.$ac_ext <<_ACEOF
10927 #line $LINENO "configure"
10928 #include "confdefs.h"
10929 #if defined(CRAY) && ! defined(CRAY2)
10930 webecray
10931 #else
10932 wenotbecray
10933 #endif
10934
10935 _ACEOF
10936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10937   egrep "webecray" >/dev/null 2>&1; then
10938   ac_cv_os_cray=yes
10939 else
10940   ac_cv_os_cray=no
10941 fi
10942 rm -f conftest*
10943
10944 fi
10945 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10946 echo "${ECHO_T}$ac_cv_os_cray" >&6
10947 if test $ac_cv_os_cray = yes; then
10948   for ac_func in _getb67 GETB67 getb67; do
10949     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10950 echo "$as_me:$LINENO: checking for $ac_func" >&5
10951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10952 if eval "test \"\${$as_ac_var+set}\" = set"; then
10953   echo $ECHO_N "(cached) $ECHO_C" >&6
10954 else
10955   cat >conftest.$ac_ext <<_ACEOF
10956 #line $LINENO "configure"
10957 #include "confdefs.h"
10958 /* System header to define __stub macros and hopefully few prototypes,
10959     which can conflict with char $ac_func (); below.  */
10960 #include <assert.h>
10961 /* Override any gcc2 internal prototype to avoid an error.  */
10962 #ifdef __cplusplus
10963 extern "C"
10964 #endif
10965 /* We use char because int might match the return type of a gcc2
10966    builtin and then its argument prototype would still apply.  */
10967 char $ac_func ();
10968 char (*f) ();
10969
10970 #ifdef F77_DUMMY_MAIN
10971 #  ifdef __cplusplus
10972      extern "C"
10973 #  endif
10974    int F77_DUMMY_MAIN() { return 1; }
10975 #endif
10976 int
10977 main ()
10978 {
10979 /* The GNU C library defines this for functions which it implements
10980     to always fail with ENOSYS.  Some functions are actually named
10981     something starting with __ and the normal name is an alias.  */
10982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10983 choke me
10984 #else
10985 f = $ac_func;
10986 #endif
10987
10988   ;
10989   return 0;
10990 }
10991 _ACEOF
10992 rm -f conftest.$ac_objext conftest$ac_exeext
10993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10994   (eval $ac_link) 2>&5
10995   ac_status=$?
10996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997   (exit $ac_status); } &&
10998          { ac_try='test -s conftest$ac_exeext'
10999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000   (eval $ac_try) 2>&5
11001   ac_status=$?
11002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003   (exit $ac_status); }; }; then
11004   eval "$as_ac_var=yes"
11005 else
11006   echo "$as_me: failed program was:" >&5
11007 cat conftest.$ac_ext >&5
11008 eval "$as_ac_var=no"
11009 fi
11010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11011 fi
11012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11013 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11014 if test `eval echo '${'$as_ac_var'}'` = yes; then
11015
11016 cat >>confdefs.h <<_ACEOF
11017 #define CRAY_STACKSEG_END $ac_func
11018 _ACEOF
11019
11020     break
11021 fi
11022
11023   done
11024 fi
11025
11026 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11027 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11028 if test "${ac_cv_c_stack_direction+set}" = set; then
11029   echo $ECHO_N "(cached) $ECHO_C" >&6
11030 else
11031   if test "$cross_compiling" = yes; then
11032   ac_cv_c_stack_direction=0
11033 else
11034   cat >conftest.$ac_ext <<_ACEOF
11035 #line $LINENO "configure"
11036 #include "confdefs.h"
11037 int
11038 find_stack_direction ()
11039 {
11040   static char *addr = 0;
11041   auto char dummy;
11042   if (addr == 0)
11043     {
11044       addr = &dummy;
11045       return find_stack_direction ();
11046     }
11047   else
11048     return (&dummy > addr) ? 1 : -1;
11049 }
11050
11051 int
11052 main ()
11053 {
11054   exit (find_stack_direction () < 0);
11055 }
11056 _ACEOF
11057 rm -f conftest$ac_exeext
11058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11059   (eval $ac_link) 2>&5
11060   ac_status=$?
11061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11064   (eval $ac_try) 2>&5
11065   ac_status=$?
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   (exit $ac_status); }; }; then
11068   ac_cv_c_stack_direction=1
11069 else
11070   echo "$as_me: program exited with status $ac_status" >&5
11071 echo "$as_me: failed program was:" >&5
11072 cat conftest.$ac_ext >&5
11073 ( exit $ac_status )
11074 ac_cv_c_stack_direction=-1
11075 fi
11076 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11077 fi
11078 fi
11079 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11080 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11081
11082 cat >>confdefs.h <<_ACEOF
11083 #define STACK_DIRECTION $ac_cv_c_stack_direction
11084 _ACEOF
11085
11086
11087 fi
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136 for ac_func in \
11137         __libc_fork \
11138         _lwp_create \
11139         _pclose \
11140         _popen \
11141         _snprintf \
11142         _stricmp \
11143         _strnicmp \
11144         chsize \
11145         clone \
11146         ecvt \
11147         finite \
11148         fpclass \
11149         ftruncate \
11150         ftruncate64 \
11151         getnetbyaddr \
11152         getnetbyname \
11153         getpagesize \
11154         getprotobyname \
11155         getprotobynumber \
11156         getpwuid \
11157         getservbyport \
11158         getsockopt \
11159         inet_network \
11160         lseek64 \
11161         lstat \
11162         memmove \
11163         mmap \
11164         pclose \
11165         popen \
11166         pread \
11167         pwrite \
11168         rfork \
11169         select \
11170         sendmsg \
11171         settimeofday \
11172         sigaltstack \
11173         snprintf \
11174         statfs \
11175         strcasecmp \
11176         strerror \
11177         strncasecmp \
11178         tcgetattr \
11179         timegm \
11180         usleep \
11181         vfscanf \
11182         wait4 \
11183         waitpid \
11184
11185 do
11186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11187 echo "$as_me:$LINENO: checking for $ac_func" >&5
11188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11189 if eval "test \"\${$as_ac_var+set}\" = set"; then
11190   echo $ECHO_N "(cached) $ECHO_C" >&6
11191 else
11192   cat >conftest.$ac_ext <<_ACEOF
11193 #line $LINENO "configure"
11194 #include "confdefs.h"
11195 /* System header to define __stub macros and hopefully few prototypes,
11196     which can conflict with char $ac_func (); below.  */
11197 #include <assert.h>
11198 /* Override any gcc2 internal prototype to avoid an error.  */
11199 #ifdef __cplusplus
11200 extern "C"
11201 #endif
11202 /* We use char because int might match the return type of a gcc2
11203    builtin and then its argument prototype would still apply.  */
11204 char $ac_func ();
11205 char (*f) ();
11206
11207 #ifdef F77_DUMMY_MAIN
11208 #  ifdef __cplusplus
11209      extern "C"
11210 #  endif
11211    int F77_DUMMY_MAIN() { return 1; }
11212 #endif
11213 int
11214 main ()
11215 {
11216 /* The GNU C library defines this for functions which it implements
11217     to always fail with ENOSYS.  Some functions are actually named
11218     something starting with __ and the normal name is an alias.  */
11219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11220 choke me
11221 #else
11222 f = $ac_func;
11223 #endif
11224
11225   ;
11226   return 0;
11227 }
11228 _ACEOF
11229 rm -f conftest.$ac_objext conftest$ac_exeext
11230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11231   (eval $ac_link) 2>&5
11232   ac_status=$?
11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234   (exit $ac_status); } &&
11235          { ac_try='test -s conftest$ac_exeext'
11236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237   (eval $ac_try) 2>&5
11238   ac_status=$?
11239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240   (exit $ac_status); }; }; then
11241   eval "$as_ac_var=yes"
11242 else
11243   echo "$as_me: failed program was:" >&5
11244 cat conftest.$ac_ext >&5
11245 eval "$as_ac_var=no"
11246 fi
11247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11248 fi
11249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11251 if test `eval echo '${'$as_ac_var'}'` = yes; then
11252   cat >>confdefs.h <<_ACEOF
11253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11254 _ACEOF
11255
11256 fi
11257 done
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325 for ac_header in \
11326         arpa/inet.h \
11327         arpa/nameser.h \
11328         direct.h \
11329         elf.h \
11330         float.h \
11331         ieeefp.h \
11332         io.h \
11333         libio.h \
11334         libutil.h \
11335         link.h \
11336         linux/cdrom.h \
11337         linux/hdreg.h \
11338         linux/input.h \
11339         linux/joystick.h \
11340         linux/major.h \
11341         linux/param.h \
11342         linux/serial.h \
11343         linux/ucdrom.h \
11344         netdb.h \
11345         netinet/in.h \
11346         netinet/in_systm.h \
11347         netinet/tcp.h \
11348         pty.h \
11349         pwd.h \
11350         sched.h \
11351         scsi/sg.h \
11352         socket.h \
11353         stdint.h \
11354         strings.h \
11355         sys/cdio.h \
11356         sys/errno.h \
11357         sys/file.h \
11358         sys/filio.h \
11359         sys/inttypes.h \
11360         sys/ioctl.h \
11361         sys/ipc.h \
11362         sys/link.h \
11363         sys/lwp.h \
11364         sys/mman.h \
11365         sys/modem.h \
11366         sys/mount.h \
11367         sys/msg.h \
11368         sys/param.h \
11369         sys/ptrace.h \
11370         sys/reg.h \
11371         sys/shm.h \
11372         sys/signal.h \
11373         sys/socket.h \
11374         sys/sockio.h \
11375         sys/statfs.h \
11376         sys/strtio.h \
11377         sys/syscall.h \
11378         sys/sysctl.h \
11379         sys/time.h \
11380         sys/user.h \
11381         sys/v86.h \
11382         sys/v86intr.h \
11383         sys/vfs.h \
11384         sys/vm86.h \
11385         sys/wait.h \
11386         syscall.h \
11387         termios.h \
11388         ucontext.h \
11389         unistd.h \
11390
11391 do
11392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11394   echo "$as_me:$LINENO: checking for $ac_header" >&5
11395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11397   echo $ECHO_N "(cached) $ECHO_C" >&6
11398 fi
11399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11401 else
11402   # Is the header compilable?
11403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11405 cat >conftest.$ac_ext <<_ACEOF
11406 #line $LINENO "configure"
11407 #include "confdefs.h"
11408 $ac_includes_default
11409 #include <$ac_header>
11410 _ACEOF
11411 rm -f conftest.$ac_objext
11412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11413   (eval $ac_compile) 2>&5
11414   ac_status=$?
11415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416   (exit $ac_status); } &&
11417          { ac_try='test -s conftest.$ac_objext'
11418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419   (eval $ac_try) 2>&5
11420   ac_status=$?
11421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422   (exit $ac_status); }; }; then
11423   ac_header_compiler=yes
11424 else
11425   echo "$as_me: failed program was:" >&5
11426 cat conftest.$ac_ext >&5
11427 ac_header_compiler=no
11428 fi
11429 rm -f conftest.$ac_objext conftest.$ac_ext
11430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11431 echo "${ECHO_T}$ac_header_compiler" >&6
11432
11433 # Is the header present?
11434 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11436 cat >conftest.$ac_ext <<_ACEOF
11437 #line $LINENO "configure"
11438 #include "confdefs.h"
11439 #include <$ac_header>
11440 _ACEOF
11441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11442   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11443   ac_status=$?
11444   egrep -v '^ *\+' conftest.er1 >conftest.err
11445   rm -f conftest.er1
11446   cat conftest.err >&5
11447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448   (exit $ac_status); } >/dev/null; then
11449   if test -s conftest.err; then
11450     ac_cpp_err=$ac_c_preproc_warn_flag
11451   else
11452     ac_cpp_err=
11453   fi
11454 else
11455   ac_cpp_err=yes
11456 fi
11457 if test -z "$ac_cpp_err"; then
11458   ac_header_preproc=yes
11459 else
11460   echo "$as_me: failed program was:" >&5
11461   cat conftest.$ac_ext >&5
11462   ac_header_preproc=no
11463 fi
11464 rm -f conftest.err conftest.$ac_ext
11465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11466 echo "${ECHO_T}$ac_header_preproc" >&6
11467
11468 # So?  What about this header?
11469 case $ac_header_compiler:$ac_header_preproc in
11470   yes:no )
11471     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11475   no:yes )
11476     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11478     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11482 esac
11483 echo "$as_me:$LINENO: checking for $ac_header" >&5
11484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11486   echo $ECHO_N "(cached) $ECHO_C" >&6
11487 else
11488   eval "$as_ac_Header=$ac_header_preproc"
11489 fi
11490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11492
11493 fi
11494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11495   cat >>confdefs.h <<_ACEOF
11496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11497 _ACEOF
11498
11499 fi
11500
11501 done
11502
11503 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11504 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11505 if test "${ac_cv_header_stat_broken+set}" = set; then
11506   echo $ECHO_N "(cached) $ECHO_C" >&6
11507 else
11508   cat >conftest.$ac_ext <<_ACEOF
11509 #line $LINENO "configure"
11510 #include "confdefs.h"
11511 #include <sys/types.h>
11512 #include <sys/stat.h>
11513
11514 #if defined(S_ISBLK) && defined(S_IFDIR)
11515 # if S_ISBLK (S_IFDIR)
11516 You lose.
11517 # endif
11518 #endif
11519
11520 #if defined(S_ISBLK) && defined(S_IFCHR)
11521 # if S_ISBLK (S_IFCHR)
11522 You lose.
11523 # endif
11524 #endif
11525
11526 #if defined(S_ISLNK) && defined(S_IFREG)
11527 # if S_ISLNK (S_IFREG)
11528 You lose.
11529 # endif
11530 #endif
11531
11532 #if defined(S_ISSOCK) && defined(S_IFREG)
11533 # if S_ISSOCK (S_IFREG)
11534 You lose.
11535 # endif
11536 #endif
11537
11538 _ACEOF
11539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11540   egrep "You lose" >/dev/null 2>&1; then
11541   ac_cv_header_stat_broken=yes
11542 else
11543   ac_cv_header_stat_broken=no
11544 fi
11545 rm -f conftest*
11546
11547 fi
11548 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11549 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11550 if test $ac_cv_header_stat_broken = yes; then
11551
11552 cat >>confdefs.h <<\_ACEOF
11553 #define STAT_MACROS_BROKEN 1
11554 _ACEOF
11555
11556 fi
11557
11558
11559
11560 for ac_header in net/if.h
11561 do
11562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11563 echo "$as_me:$LINENO: checking for $ac_header" >&5
11564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11566   echo $ECHO_N "(cached) $ECHO_C" >&6
11567 else
11568   cat >conftest.$ac_ext <<_ACEOF
11569 #line $LINENO "configure"
11570 #include "confdefs.h"
11571 #if HAVE_SYS_SOCKET_H
11572      # include <sys/socket.h>
11573      #endif
11574
11575 #include <$ac_header>
11576 _ACEOF
11577 rm -f conftest.$ac_objext
11578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11579   (eval $ac_compile) 2>&5
11580   ac_status=$?
11581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582   (exit $ac_status); } &&
11583          { ac_try='test -s conftest.$ac_objext'
11584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585   (eval $ac_try) 2>&5
11586   ac_status=$?
11587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588   (exit $ac_status); }; }; then
11589   eval "$as_ac_Header=yes"
11590 else
11591   echo "$as_me: failed program was:" >&5
11592 cat conftest.$ac_ext >&5
11593 eval "$as_ac_Header=no"
11594 fi
11595 rm -f conftest.$ac_objext conftest.$ac_ext
11596 fi
11597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11600   cat >>confdefs.h <<_ACEOF
11601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11602 _ACEOF
11603
11604 fi
11605
11606 done
11607
11608
11609
11610 for ac_header in netinet/ip.h
11611 do
11612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11613 echo "$as_me:$LINENO: checking for $ac_header" >&5
11614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11616   echo $ECHO_N "(cached) $ECHO_C" >&6
11617 else
11618   cat >conftest.$ac_ext <<_ACEOF
11619 #line $LINENO "configure"
11620 #include "confdefs.h"
11621 #if HAVE_SYS_SOCKET_H
11622      # include <sys/socket.h>
11623      #endif
11624      #if HAVE_NETINET_IN_SYSTM_H
11625      # include <netinet/in_systm.h>
11626      #endif
11627
11628 #include <$ac_header>
11629 _ACEOF
11630 rm -f conftest.$ac_objext
11631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11632   (eval $ac_compile) 2>&5
11633   ac_status=$?
11634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635   (exit $ac_status); } &&
11636          { ac_try='test -s conftest.$ac_objext'
11637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638   (eval $ac_try) 2>&5
11639   ac_status=$?
11640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641   (exit $ac_status); }; }; then
11642   eval "$as_ac_Header=yes"
11643 else
11644   echo "$as_me: failed program was:" >&5
11645 cat conftest.$ac_ext >&5
11646 eval "$as_ac_Header=no"
11647 fi
11648 rm -f conftest.$ac_objext conftest.$ac_ext
11649 fi
11650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11653   cat >>confdefs.h <<_ACEOF
11654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11655 _ACEOF
11656
11657 fi
11658
11659 done
11660
11661
11662
11663 for ac_header in resolv.h
11664 do
11665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11666 echo "$as_me:$LINENO: checking for $ac_header" >&5
11667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11669   echo $ECHO_N "(cached) $ECHO_C" >&6
11670 else
11671   cat >conftest.$ac_ext <<_ACEOF
11672 #line $LINENO "configure"
11673 #include "confdefs.h"
11674 #if HAVE_SYS_SOCKET_H
11675      # include <sys/socket.h>
11676      #endif
11677
11678 #include <$ac_header>
11679 _ACEOF
11680 rm -f conftest.$ac_objext
11681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11682   (eval $ac_compile) 2>&5
11683   ac_status=$?
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); } &&
11686          { ac_try='test -s conftest.$ac_objext'
11687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11688   (eval $ac_try) 2>&5
11689   ac_status=$?
11690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691   (exit $ac_status); }; }; then
11692   eval "$as_ac_Header=yes"
11693 else
11694   echo "$as_me: failed program was:" >&5
11695 cat conftest.$ac_ext >&5
11696 eval "$as_ac_Header=no"
11697 fi
11698 rm -f conftest.$ac_objext conftest.$ac_ext
11699 fi
11700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11703   cat >>confdefs.h <<_ACEOF
11704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11705 _ACEOF
11706
11707 fi
11708
11709 done
11710
11711
11712
11713 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11714 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11715 if test "${ac_cv_prog_cc_stdc+set}" = set; then
11716   echo $ECHO_N "(cached) $ECHO_C" >&6
11717 else
11718   ac_cv_prog_cc_stdc=no
11719 ac_save_CC=$CC
11720 cat >conftest.$ac_ext <<_ACEOF
11721 #line $LINENO "configure"
11722 #include "confdefs.h"
11723 #include <stdarg.h>
11724 #include <stdio.h>
11725 #include <sys/types.h>
11726 #include <sys/stat.h>
11727 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11728 struct buf { int x; };
11729 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11730 static char *e (p, i)
11731      char **p;
11732      int i;
11733 {
11734   return p[i];
11735 }
11736 static char *f (char * (*g) (char **, int), char **p, ...)
11737 {
11738   char *s;
11739   va_list v;
11740   va_start (v,p);
11741   s = g (p, va_arg (v,int));
11742   va_end (v);
11743   return s;
11744 }
11745 int test (int i, double x);
11746 struct s1 {int (*f) (int a);};
11747 struct s2 {int (*f) (double a);};
11748 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11749 int argc;
11750 char **argv;
11751 #ifdef F77_DUMMY_MAIN
11752 #  ifdef __cplusplus
11753      extern "C"
11754 #  endif
11755    int F77_DUMMY_MAIN() { return 1; }
11756 #endif
11757 int
11758 main ()
11759 {
11760 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11761   ;
11762   return 0;
11763 }
11764 _ACEOF
11765 # Don't try gcc -ansi; that turns off useful extensions and
11766 # breaks some systems' header files.
11767 # AIX                   -qlanglvl=ansi
11768 # Ultrix and OSF/1      -std1
11769 # HP-UX 10.20 and later -Ae
11770 # HP-UX older versions  -Aa -D_HPUX_SOURCE
11771 # SVR4                  -Xc -D__EXTENSIONS__
11772 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11773 do
11774   CC="$ac_save_CC $ac_arg"
11775   rm -f conftest.$ac_objext
11776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11777   (eval $ac_compile) 2>&5
11778   ac_status=$?
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); } &&
11781          { ac_try='test -s conftest.$ac_objext'
11782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783   (eval $ac_try) 2>&5
11784   ac_status=$?
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); }; }; then
11787   ac_cv_prog_cc_stdc=$ac_arg
11788 break
11789 else
11790   echo "$as_me: failed program was:" >&5
11791 cat conftest.$ac_ext >&5
11792 fi
11793 rm -f conftest.$ac_objext
11794 done
11795 rm -f conftest.$ac_ext conftest.$ac_objext
11796 CC=$ac_save_CC
11797
11798 fi
11799
11800 case "x$ac_cv_prog_cc_stdc" in
11801   x|xno)
11802     echo "$as_me:$LINENO: result: none needed" >&5
11803 echo "${ECHO_T}none needed" >&6 ;;
11804   *)
11805     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11806 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11807     CC="$CC $ac_cv_prog_cc_stdc" ;;
11808 esac
11809
11810 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11811 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11812 if test "${ac_cv_c_const+set}" = set; then
11813   echo $ECHO_N "(cached) $ECHO_C" >&6
11814 else
11815   cat >conftest.$ac_ext <<_ACEOF
11816 #line $LINENO "configure"
11817 #include "confdefs.h"
11818
11819 #ifdef F77_DUMMY_MAIN
11820 #  ifdef __cplusplus
11821      extern "C"
11822 #  endif
11823    int F77_DUMMY_MAIN() { return 1; }
11824 #endif
11825 int
11826 main ()
11827 {
11828 /* FIXME: Include the comments suggested by Paul. */
11829 #ifndef __cplusplus
11830   /* Ultrix mips cc rejects this.  */
11831   typedef int charset[2];
11832   const charset x;
11833   /* SunOS 4.1.1 cc rejects this.  */
11834   char const *const *ccp;
11835   char **p;
11836   /* NEC SVR4.0.2 mips cc rejects this.  */
11837   struct point {int x, y;};
11838   static struct point const zero = {0,0};
11839   /* AIX XL C 1.02.0.0 rejects this.
11840      It does not let you subtract one const X* pointer from another in
11841      an arm of an if-expression whose if-part is not a constant
11842      expression */
11843   const char *g = "string";
11844   ccp = &g + (g ? g-g : 0);
11845   /* HPUX 7.0 cc rejects these. */
11846   ++ccp;
11847   p = (char**) ccp;
11848   ccp = (char const *const *) p;
11849   { /* SCO 3.2v4 cc rejects this.  */
11850     char *t;
11851     char const *s = 0 ? (char *) 0 : (char const *) 0;
11852
11853     *t++ = 0;
11854   }
11855   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11856     int x[] = {25, 17};
11857     const int *foo = &x[0];
11858     ++foo;
11859   }
11860   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11861     typedef const int *iptr;
11862     iptr p = 0;
11863     ++p;
11864   }
11865   { /* AIX XL C 1.02.0.0 rejects this saying
11866        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11867     struct s { int j; const int *ap[3]; };
11868     struct s *b; b->j = 5;
11869   }
11870   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11871     const int foo = 10;
11872   }
11873 #endif
11874
11875   ;
11876   return 0;
11877 }
11878 _ACEOF
11879 rm -f conftest.$ac_objext
11880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11881   (eval $ac_compile) 2>&5
11882   ac_status=$?
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); } &&
11885          { ac_try='test -s conftest.$ac_objext'
11886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887   (eval $ac_try) 2>&5
11888   ac_status=$?
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); }; }; then
11891   ac_cv_c_const=yes
11892 else
11893   echo "$as_me: failed program was:" >&5
11894 cat conftest.$ac_ext >&5
11895 ac_cv_c_const=no
11896 fi
11897 rm -f conftest.$ac_objext conftest.$ac_ext
11898 fi
11899 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11900 echo "${ECHO_T}$ac_cv_c_const" >&6
11901 if test $ac_cv_c_const = no; then
11902
11903 cat >>confdefs.h <<\_ACEOF
11904 #define const
11905 _ACEOF
11906
11907 fi
11908
11909 echo "$as_me:$LINENO: checking for inline" >&5
11910 echo $ECHO_N "checking for inline... $ECHO_C" >&6
11911 if test "${ac_cv_c_inline+set}" = set; then
11912   echo $ECHO_N "(cached) $ECHO_C" >&6
11913 else
11914   ac_cv_c_inline=no
11915 for ac_kw in inline __inline__ __inline; do
11916   cat >conftest.$ac_ext <<_ACEOF
11917 #line $LINENO "configure"
11918 #include "confdefs.h"
11919 #ifndef __cplusplus
11920 static $ac_kw int static_foo () {return 0; }
11921 $ac_kw int foo () {return 0; }
11922 #endif
11923
11924 _ACEOF
11925 rm -f conftest.$ac_objext
11926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11927   (eval $ac_compile) 2>&5
11928   ac_status=$?
11929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930   (exit $ac_status); } &&
11931          { ac_try='test -s conftest.$ac_objext'
11932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933   (eval $ac_try) 2>&5
11934   ac_status=$?
11935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936   (exit $ac_status); }; }; then
11937   ac_cv_c_inline=$ac_kw; break
11938 else
11939   echo "$as_me: failed program was:" >&5
11940 cat conftest.$ac_ext >&5
11941 fi
11942 rm -f conftest.$ac_objext conftest.$ac_ext
11943 done
11944
11945 fi
11946 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11947 echo "${ECHO_T}$ac_cv_c_inline" >&6
11948 case $ac_cv_c_inline in
11949   inline | yes) ;;
11950   no)
11951 cat >>confdefs.h <<\_ACEOF
11952 #define inline
11953 _ACEOF
11954  ;;
11955   *)  cat >>confdefs.h <<_ACEOF
11956 #define inline $ac_cv_c_inline
11957 _ACEOF
11958  ;;
11959 esac
11960
11961 echo "$as_me:$LINENO: checking for mode_t" >&5
11962 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11963 if test "${ac_cv_type_mode_t+set}" = set; then
11964   echo $ECHO_N "(cached) $ECHO_C" >&6
11965 else
11966   cat >conftest.$ac_ext <<_ACEOF
11967 #line $LINENO "configure"
11968 #include "confdefs.h"
11969 $ac_includes_default
11970 #ifdef F77_DUMMY_MAIN
11971 #  ifdef __cplusplus
11972      extern "C"
11973 #  endif
11974    int F77_DUMMY_MAIN() { return 1; }
11975 #endif
11976 int
11977 main ()
11978 {
11979 if ((mode_t *) 0)
11980   return 0;
11981 if (sizeof (mode_t))
11982   return 0;
11983   ;
11984   return 0;
11985 }
11986 _ACEOF
11987 rm -f conftest.$ac_objext
11988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11989   (eval $ac_compile) 2>&5
11990   ac_status=$?
11991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992   (exit $ac_status); } &&
11993          { ac_try='test -s conftest.$ac_objext'
11994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995   (eval $ac_try) 2>&5
11996   ac_status=$?
11997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998   (exit $ac_status); }; }; then
11999   ac_cv_type_mode_t=yes
12000 else
12001   echo "$as_me: failed program was:" >&5
12002 cat conftest.$ac_ext >&5
12003 ac_cv_type_mode_t=no
12004 fi
12005 rm -f conftest.$ac_objext conftest.$ac_ext
12006 fi
12007 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12008 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12009 if test $ac_cv_type_mode_t = yes; then
12010
12011 cat >>confdefs.h <<_ACEOF
12012 #define HAVE_MODE_T 1
12013 _ACEOF
12014
12015
12016 fi
12017 echo "$as_me:$LINENO: checking for off_t" >&5
12018 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12019 if test "${ac_cv_type_off_t+set}" = set; then
12020   echo $ECHO_N "(cached) $ECHO_C" >&6
12021 else
12022   cat >conftest.$ac_ext <<_ACEOF
12023 #line $LINENO "configure"
12024 #include "confdefs.h"
12025 $ac_includes_default
12026 #ifdef F77_DUMMY_MAIN
12027 #  ifdef __cplusplus
12028      extern "C"
12029 #  endif
12030    int F77_DUMMY_MAIN() { return 1; }
12031 #endif
12032 int
12033 main ()
12034 {
12035 if ((off_t *) 0)
12036   return 0;
12037 if (sizeof (off_t))
12038   return 0;
12039   ;
12040   return 0;
12041 }
12042 _ACEOF
12043 rm -f conftest.$ac_objext
12044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12045   (eval $ac_compile) 2>&5
12046   ac_status=$?
12047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048   (exit $ac_status); } &&
12049          { ac_try='test -s conftest.$ac_objext'
12050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051   (eval $ac_try) 2>&5
12052   ac_status=$?
12053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054   (exit $ac_status); }; }; then
12055   ac_cv_type_off_t=yes
12056 else
12057   echo "$as_me: failed program was:" >&5
12058 cat conftest.$ac_ext >&5
12059 ac_cv_type_off_t=no
12060 fi
12061 rm -f conftest.$ac_objext conftest.$ac_ext
12062 fi
12063 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12064 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12065 if test $ac_cv_type_off_t = yes; then
12066
12067 cat >>confdefs.h <<_ACEOF
12068 #define HAVE_OFF_T 1
12069 _ACEOF
12070
12071
12072 fi
12073 echo "$as_me:$LINENO: checking for pid_t" >&5
12074 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12075 if test "${ac_cv_type_pid_t+set}" = set; then
12076   echo $ECHO_N "(cached) $ECHO_C" >&6
12077 else
12078   cat >conftest.$ac_ext <<_ACEOF
12079 #line $LINENO "configure"
12080 #include "confdefs.h"
12081 $ac_includes_default
12082 #ifdef F77_DUMMY_MAIN
12083 #  ifdef __cplusplus
12084      extern "C"
12085 #  endif
12086    int F77_DUMMY_MAIN() { return 1; }
12087 #endif
12088 int
12089 main ()
12090 {
12091 if ((pid_t *) 0)
12092   return 0;
12093 if (sizeof (pid_t))
12094   return 0;
12095   ;
12096   return 0;
12097 }
12098 _ACEOF
12099 rm -f conftest.$ac_objext
12100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12101   (eval $ac_compile) 2>&5
12102   ac_status=$?
12103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104   (exit $ac_status); } &&
12105          { ac_try='test -s conftest.$ac_objext'
12106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107   (eval $ac_try) 2>&5
12108   ac_status=$?
12109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110   (exit $ac_status); }; }; then
12111   ac_cv_type_pid_t=yes
12112 else
12113   echo "$as_me: failed program was:" >&5
12114 cat conftest.$ac_ext >&5
12115 ac_cv_type_pid_t=no
12116 fi
12117 rm -f conftest.$ac_objext conftest.$ac_ext
12118 fi
12119 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12120 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12121 if test $ac_cv_type_pid_t = yes; then
12122
12123 cat >>confdefs.h <<_ACEOF
12124 #define HAVE_PID_T 1
12125 _ACEOF
12126
12127
12128 fi
12129 echo "$as_me:$LINENO: checking for size_t" >&5
12130 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12131 if test "${ac_cv_type_size_t+set}" = set; then
12132   echo $ECHO_N "(cached) $ECHO_C" >&6
12133 else
12134   cat >conftest.$ac_ext <<_ACEOF
12135 #line $LINENO "configure"
12136 #include "confdefs.h"
12137 $ac_includes_default
12138 #ifdef F77_DUMMY_MAIN
12139 #  ifdef __cplusplus
12140      extern "C"
12141 #  endif
12142    int F77_DUMMY_MAIN() { return 1; }
12143 #endif
12144 int
12145 main ()
12146 {
12147 if ((size_t *) 0)
12148   return 0;
12149 if (sizeof (size_t))
12150   return 0;
12151   ;
12152   return 0;
12153 }
12154 _ACEOF
12155 rm -f conftest.$ac_objext
12156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12157   (eval $ac_compile) 2>&5
12158   ac_status=$?
12159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160   (exit $ac_status); } &&
12161          { ac_try='test -s conftest.$ac_objext'
12162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163   (eval $ac_try) 2>&5
12164   ac_status=$?
12165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166   (exit $ac_status); }; }; then
12167   ac_cv_type_size_t=yes
12168 else
12169   echo "$as_me: failed program was:" >&5
12170 cat conftest.$ac_ext >&5
12171 ac_cv_type_size_t=no
12172 fi
12173 rm -f conftest.$ac_objext conftest.$ac_ext
12174 fi
12175 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12176 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12177 if test $ac_cv_type_size_t = yes; then
12178
12179 cat >>confdefs.h <<_ACEOF
12180 #define HAVE_SIZE_T 1
12181 _ACEOF
12182
12183
12184 fi
12185 echo "$as_me:$LINENO: checking for ssize_t" >&5
12186 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12187 if test "${ac_cv_type_ssize_t+set}" = set; then
12188   echo $ECHO_N "(cached) $ECHO_C" >&6
12189 else
12190   cat >conftest.$ac_ext <<_ACEOF
12191 #line $LINENO "configure"
12192 #include "confdefs.h"
12193 $ac_includes_default
12194 #ifdef F77_DUMMY_MAIN
12195 #  ifdef __cplusplus
12196      extern "C"
12197 #  endif
12198    int F77_DUMMY_MAIN() { return 1; }
12199 #endif
12200 int
12201 main ()
12202 {
12203 if ((ssize_t *) 0)
12204   return 0;
12205 if (sizeof (ssize_t))
12206   return 0;
12207   ;
12208   return 0;
12209 }
12210 _ACEOF
12211 rm -f conftest.$ac_objext
12212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12213   (eval $ac_compile) 2>&5
12214   ac_status=$?
12215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216   (exit $ac_status); } &&
12217          { ac_try='test -s conftest.$ac_objext'
12218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219   (eval $ac_try) 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); }; }; then
12223   ac_cv_type_ssize_t=yes
12224 else
12225   echo "$as_me: failed program was:" >&5
12226 cat conftest.$ac_ext >&5
12227 ac_cv_type_ssize_t=no
12228 fi
12229 rm -f conftest.$ac_objext conftest.$ac_ext
12230 fi
12231 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12232 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12233 if test $ac_cv_type_ssize_t = yes; then
12234
12235 cat >>confdefs.h <<_ACEOF
12236 #define HAVE_SSIZE_T 1
12237 _ACEOF
12238
12239
12240 fi
12241
12242 echo "$as_me:$LINENO: checking for long long" >&5
12243 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12244 if test "${ac_cv_type_long_long+set}" = set; then
12245   echo $ECHO_N "(cached) $ECHO_C" >&6
12246 else
12247   cat >conftest.$ac_ext <<_ACEOF
12248 #line $LINENO "configure"
12249 #include "confdefs.h"
12250 $ac_includes_default
12251 #ifdef F77_DUMMY_MAIN
12252 #  ifdef __cplusplus
12253      extern "C"
12254 #  endif
12255    int F77_DUMMY_MAIN() { return 1; }
12256 #endif
12257 int
12258 main ()
12259 {
12260 if ((long long *) 0)
12261   return 0;
12262 if (sizeof (long long))
12263   return 0;
12264   ;
12265   return 0;
12266 }
12267 _ACEOF
12268 rm -f conftest.$ac_objext
12269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12270   (eval $ac_compile) 2>&5
12271   ac_status=$?
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   (exit $ac_status); } &&
12274          { ac_try='test -s conftest.$ac_objext'
12275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276   (eval $ac_try) 2>&5
12277   ac_status=$?
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); }; }; then
12280   ac_cv_type_long_long=yes
12281 else
12282   echo "$as_me: failed program was:" >&5
12283 cat conftest.$ac_ext >&5
12284 ac_cv_type_long_long=no
12285 fi
12286 rm -f conftest.$ac_objext conftest.$ac_ext
12287 fi
12288 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12289 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12290
12291 echo "$as_me:$LINENO: checking size of long long" >&5
12292 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12293 if test "${ac_cv_sizeof_long_long+set}" = set; then
12294   echo $ECHO_N "(cached) $ECHO_C" >&6
12295 else
12296   if test "$ac_cv_type_long_long" = yes; then
12297   # The cast to unsigned long works around a bug in the HP C Compiler
12298   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12299   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12300   # This bug is HP SR number 8606223364.
12301   if test "$cross_compiling" = yes; then
12302   # Depending upon the size, compute the lo and hi bounds.
12303 cat >conftest.$ac_ext <<_ACEOF
12304 #line $LINENO "configure"
12305 #include "confdefs.h"
12306 $ac_includes_default
12307 #ifdef F77_DUMMY_MAIN
12308 #  ifdef __cplusplus
12309      extern "C"
12310 #  endif
12311    int F77_DUMMY_MAIN() { return 1; }
12312 #endif
12313 int
12314 main ()
12315 {
12316 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12317 test_array [0] = 0
12318
12319   ;
12320   return 0;
12321 }
12322 _ACEOF
12323 rm -f conftest.$ac_objext
12324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12325   (eval $ac_compile) 2>&5
12326   ac_status=$?
12327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328   (exit $ac_status); } &&
12329          { ac_try='test -s conftest.$ac_objext'
12330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331   (eval $ac_try) 2>&5
12332   ac_status=$?
12333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334   (exit $ac_status); }; }; then
12335   ac_lo=0 ac_mid=0
12336   while :; do
12337     cat >conftest.$ac_ext <<_ACEOF
12338 #line $LINENO "configure"
12339 #include "confdefs.h"
12340 $ac_includes_default
12341 #ifdef F77_DUMMY_MAIN
12342 #  ifdef __cplusplus
12343      extern "C"
12344 #  endif
12345    int F77_DUMMY_MAIN() { return 1; }
12346 #endif
12347 int
12348 main ()
12349 {
12350 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12351 test_array [0] = 0
12352
12353   ;
12354   return 0;
12355 }
12356 _ACEOF
12357 rm -f conftest.$ac_objext
12358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12359   (eval $ac_compile) 2>&5
12360   ac_status=$?
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); } &&
12363          { ac_try='test -s conftest.$ac_objext'
12364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365   (eval $ac_try) 2>&5
12366   ac_status=$?
12367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368   (exit $ac_status); }; }; then
12369   ac_hi=$ac_mid; break
12370 else
12371   echo "$as_me: failed program was:" >&5
12372 cat conftest.$ac_ext >&5
12373 ac_lo=`expr $ac_mid + 1`
12374                     if test $ac_lo -le $ac_mid; then
12375                       ac_lo= ac_hi=
12376                       break
12377                     fi
12378                     ac_mid=`expr 2 '*' $ac_mid + 1`
12379 fi
12380 rm -f conftest.$ac_objext conftest.$ac_ext
12381   done
12382 else
12383   echo "$as_me: failed program was:" >&5
12384 cat conftest.$ac_ext >&5
12385 cat >conftest.$ac_ext <<_ACEOF
12386 #line $LINENO "configure"
12387 #include "confdefs.h"
12388 $ac_includes_default
12389 #ifdef F77_DUMMY_MAIN
12390 #  ifdef __cplusplus
12391      extern "C"
12392 #  endif
12393    int F77_DUMMY_MAIN() { return 1; }
12394 #endif
12395 int
12396 main ()
12397 {
12398 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12399 test_array [0] = 0
12400
12401   ;
12402   return 0;
12403 }
12404 _ACEOF
12405 rm -f conftest.$ac_objext
12406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12407   (eval $ac_compile) 2>&5
12408   ac_status=$?
12409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410   (exit $ac_status); } &&
12411          { ac_try='test -s conftest.$ac_objext'
12412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413   (eval $ac_try) 2>&5
12414   ac_status=$?
12415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416   (exit $ac_status); }; }; then
12417   ac_hi=-1 ac_mid=-1
12418   while :; do
12419     cat >conftest.$ac_ext <<_ACEOF
12420 #line $LINENO "configure"
12421 #include "confdefs.h"
12422 $ac_includes_default
12423 #ifdef F77_DUMMY_MAIN
12424 #  ifdef __cplusplus
12425      extern "C"
12426 #  endif
12427    int F77_DUMMY_MAIN() { return 1; }
12428 #endif
12429 int
12430 main ()
12431 {
12432 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12433 test_array [0] = 0
12434
12435   ;
12436   return 0;
12437 }
12438 _ACEOF
12439 rm -f conftest.$ac_objext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12441   (eval $ac_compile) 2>&5
12442   ac_status=$?
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); } &&
12445          { ac_try='test -s conftest.$ac_objext'
12446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447   (eval $ac_try) 2>&5
12448   ac_status=$?
12449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450   (exit $ac_status); }; }; then
12451   ac_lo=$ac_mid; break
12452 else
12453   echo "$as_me: failed program was:" >&5
12454 cat conftest.$ac_ext >&5
12455 ac_hi=`expr '(' $ac_mid ')' - 1`
12456                        if test $ac_mid -le $ac_hi; then
12457                          ac_lo= ac_hi=
12458                          break
12459                        fi
12460                        ac_mid=`expr 2 '*' $ac_mid`
12461 fi
12462 rm -f conftest.$ac_objext conftest.$ac_ext
12463   done
12464 else
12465   echo "$as_me: failed program was:" >&5
12466 cat conftest.$ac_ext >&5
12467 ac_lo= ac_hi=
12468 fi
12469 rm -f conftest.$ac_objext conftest.$ac_ext
12470 fi
12471 rm -f conftest.$ac_objext conftest.$ac_ext
12472 # Binary search between lo and hi bounds.
12473 while test "x$ac_lo" != "x$ac_hi"; do
12474   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12475   cat >conftest.$ac_ext <<_ACEOF
12476 #line $LINENO "configure"
12477 #include "confdefs.h"
12478 $ac_includes_default
12479 #ifdef F77_DUMMY_MAIN
12480 #  ifdef __cplusplus
12481      extern "C"
12482 #  endif
12483    int F77_DUMMY_MAIN() { return 1; }
12484 #endif
12485 int
12486 main ()
12487 {
12488 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12489 test_array [0] = 0
12490
12491   ;
12492   return 0;
12493 }
12494 _ACEOF
12495 rm -f conftest.$ac_objext
12496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12497   (eval $ac_compile) 2>&5
12498   ac_status=$?
12499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); } &&
12501          { ac_try='test -s conftest.$ac_objext'
12502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503   (eval $ac_try) 2>&5
12504   ac_status=$?
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); }; }; then
12507   ac_hi=$ac_mid
12508 else
12509   echo "$as_me: failed program was:" >&5
12510 cat conftest.$ac_ext >&5
12511 ac_lo=`expr '(' $ac_mid ')' + 1`
12512 fi
12513 rm -f conftest.$ac_objext conftest.$ac_ext
12514 done
12515 case $ac_lo in
12516 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12517 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12518 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12519    { (exit 1); exit 1; }; } ;;
12520 esac
12521 else
12522   if test "$cross_compiling" = yes; then
12523   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12524 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12525    { (exit 1); exit 1; }; }
12526 else
12527   cat >conftest.$ac_ext <<_ACEOF
12528 #line $LINENO "configure"
12529 #include "confdefs.h"
12530 $ac_includes_default
12531 long longval () { return (long) (sizeof (long long)); }
12532 unsigned long ulongval () { return (long) (sizeof (long long)); }
12533 #include <stdio.h>
12534 #include <stdlib.h>
12535 #ifdef F77_DUMMY_MAIN
12536 #  ifdef __cplusplus
12537      extern "C"
12538 #  endif
12539    int F77_DUMMY_MAIN() { return 1; }
12540 #endif
12541 int
12542 main ()
12543 {
12544
12545   FILE *f = fopen ("conftest.val", "w");
12546   if (! f)
12547     exit (1);
12548   if (((long) (sizeof (long long))) < 0)
12549     {
12550       long i = longval ();
12551       if (i != ((long) (sizeof (long long))))
12552         exit (1);
12553       fprintf (f, "%ld\n", i);
12554     }
12555   else
12556     {
12557       unsigned long i = ulongval ();
12558       if (i != ((long) (sizeof (long long))))
12559         exit (1);
12560       fprintf (f, "%lu\n", i);
12561     }
12562   exit (ferror (f) || fclose (f) != 0);
12563
12564   ;
12565   return 0;
12566 }
12567 _ACEOF
12568 rm -f conftest$ac_exeext
12569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12570   (eval $ac_link) 2>&5
12571   ac_status=$?
12572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575   (eval $ac_try) 2>&5
12576   ac_status=$?
12577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578   (exit $ac_status); }; }; then
12579   ac_cv_sizeof_long_long=`cat conftest.val`
12580 else
12581   echo "$as_me: program exited with status $ac_status" >&5
12582 echo "$as_me: failed program was:" >&5
12583 cat conftest.$ac_ext >&5
12584 ( exit $ac_status )
12585 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12586 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12587    { (exit 1); exit 1; }; }
12588 fi
12589 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12590 fi
12591 fi
12592 rm -f conftest.val
12593 else
12594   ac_cv_sizeof_long_long=0
12595 fi
12596 fi
12597 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12598 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12599 cat >>confdefs.h <<_ACEOF
12600 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12601 _ACEOF
12602
12603
12604
12605 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
12606 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
12607 if test "${wine_cv_linux_input_h+set}" = set; then
12608   echo $ECHO_N "(cached) $ECHO_C" >&6
12609 else
12610   cat >conftest.$ac_ext <<_ACEOF
12611 #line $LINENO "configure"
12612 #include "confdefs.h"
12613
12614             #include <linux/input.h>
12615
12616 #ifdef F77_DUMMY_MAIN
12617 #  ifdef __cplusplus
12618      extern "C"
12619 #  endif
12620    int F77_DUMMY_MAIN() { return 1; }
12621 #endif
12622 int
12623 main ()
12624 {
12625
12626             int foo = EVIOCGBIT(EV_ABS,42);
12627             int bar = BTN_PINKIE;
12628             int fortytwo = 42;
12629
12630   ;
12631   return 0;
12632 }
12633 _ACEOF
12634 rm -f conftest.$ac_objext
12635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12636   (eval $ac_compile) 2>&5
12637   ac_status=$?
12638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639   (exit $ac_status); } &&
12640          { ac_try='test -s conftest.$ac_objext'
12641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642   (eval $ac_try) 2>&5
12643   ac_status=$?
12644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645   (exit $ac_status); }; }; then
12646   wine_cv_linux_input_h=yes
12647 else
12648   echo "$as_me: failed program was:" >&5
12649 cat conftest.$ac_ext >&5
12650 wine_cv_linux_input_h=no
12651 fi
12652 rm -f conftest.$ac_objext conftest.$ac_ext
12653
12654 fi
12655 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
12656 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
12657     if test "$wine_cv_linux_input_h" = "yes"
12658     then
12659
12660 cat >>confdefs.h <<\_ACEOF
12661 #define HAVE_CORRECT_LINUXINPUT_H 1
12662 _ACEOF
12663
12664     fi
12665
12666
12667 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
12668 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
12669 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
12670   echo $ECHO_N "(cached) $ECHO_C" >&6
12671 else
12672   cat >conftest.$ac_ext <<_ACEOF
12673 #line $LINENO "configure"
12674 #include "confdefs.h"
12675
12676 #include <netdb.h>
12677
12678 #ifdef F77_DUMMY_MAIN
12679 #  ifdef __cplusplus
12680      extern "C"
12681 #  endif
12682    int F77_DUMMY_MAIN() { return 1; }
12683 #endif
12684 int
12685 main ()
12686 {
12687
12688     char *name=NULL;
12689     struct hostent he;
12690     struct hostent *result;
12691     char *buf=NULL;
12692     int bufsize=0;
12693     int res,errnr;
12694     char *addr=NULL;
12695     int addrlen=0;
12696     int addrtype=0;
12697     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
12698     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
12699
12700   ;
12701   return 0;
12702 }
12703 _ACEOF
12704 rm -f conftest.$ac_objext
12705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12706   (eval $ac_compile) 2>&5
12707   ac_status=$?
12708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709   (exit $ac_status); } &&
12710          { ac_try='test -s conftest.$ac_objext'
12711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712   (eval $ac_try) 2>&5
12713   ac_status=$?
12714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715   (exit $ac_status); }; }; then
12716   wine_cv_linux_gethostbyname_r_6=yes
12717 else
12718   echo "$as_me: failed program was:" >&5
12719 cat conftest.$ac_ext >&5
12720 wine_cv_linux_gethostbyname_r_6=no
12721
12722 fi
12723 rm -f conftest.$ac_objext conftest.$ac_ext
12724
12725 fi
12726 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
12727 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
12728    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
12729    then
12730
12731 cat >>confdefs.h <<\_ACEOF
12732 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
12733 _ACEOF
12734
12735    fi
12736
12737 if test "$ac_cv_header_linux_joystick_h" = "yes"
12738 then
12739    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
12740 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
12741 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
12742   echo $ECHO_N "(cached) $ECHO_C" >&6
12743 else
12744   cat >conftest.$ac_ext <<_ACEOF
12745 #line $LINENO "configure"
12746 #include "confdefs.h"
12747
12748         #include <sys/ioctl.h>
12749         #include <linux/joystick.h>
12750
12751         struct js_event blub;
12752         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
12753         #error "no 2.2 header"
12754         #endif
12755
12756 #ifdef F77_DUMMY_MAIN
12757 #  ifdef __cplusplus
12758      extern "C"
12759 #  endif
12760    int F77_DUMMY_MAIN() { return 1; }
12761 #endif
12762 int
12763 main ()
12764 {
12765 /*empty*/
12766   ;
12767   return 0;
12768 }
12769 _ACEOF
12770 rm -f conftest.$ac_objext
12771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12772   (eval $ac_compile) 2>&5
12773   ac_status=$?
12774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775   (exit $ac_status); } &&
12776          { ac_try='test -s conftest.$ac_objext'
12777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12778   (eval $ac_try) 2>&5
12779   ac_status=$?
12780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781   (exit $ac_status); }; }; then
12782   wine_cv_linux_joystick_22_api=yes
12783 else
12784   echo "$as_me: failed program was:" >&5
12785 cat conftest.$ac_ext >&5
12786 wine_cv_linux_joystick_22_api=no
12787 fi
12788 rm -f conftest.$ac_objext conftest.$ac_ext
12789
12790 fi
12791 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
12792 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
12793    if test "$wine_cv_linux_joystick_22_api" = "yes"
12794    then
12795
12796 cat >>confdefs.h <<\_ACEOF
12797 #define HAVE_LINUX_22_JOYSTICK_API 1
12798 _ACEOF
12799
12800    fi
12801 fi
12802
12803
12804 if test "$ac_cv_header_sys_vfs_h" = "yes"
12805 then
12806     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
12807 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
12808 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
12809   echo $ECHO_N "(cached) $ECHO_C" >&6
12810 else
12811   cat >conftest.$ac_ext <<_ACEOF
12812 #line $LINENO "configure"
12813 #include "confdefs.h"
12814
12815         #include <sys/types.h>
12816         #ifdef HAVE_SYS_PARAM_H
12817         # include <sys/param.h>
12818         #endif
12819         #include <sys/vfs.h>
12820
12821 #ifdef F77_DUMMY_MAIN
12822 #  ifdef __cplusplus
12823      extern "C"
12824 #  endif
12825    int F77_DUMMY_MAIN() { return 1; }
12826 #endif
12827 int
12828 main ()
12829 {
12830
12831                 struct statfs stfs;
12832
12833                 memset(&stfs,0,sizeof(stfs));
12834
12835   ;
12836   return 0;
12837 }
12838 _ACEOF
12839 rm -f conftest.$ac_objext
12840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12841   (eval $ac_compile) 2>&5
12842   ac_status=$?
12843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844   (exit $ac_status); } &&
12845          { ac_try='test -s conftest.$ac_objext'
12846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847   (eval $ac_try) 2>&5
12848   ac_status=$?
12849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850   (exit $ac_status); }; }; then
12851   wine_cv_sys_vfs_has_statfs=yes
12852 else
12853   echo "$as_me: failed program was:" >&5
12854 cat conftest.$ac_ext >&5
12855 wine_cv_sys_vfs_has_statfs=no
12856
12857 fi
12858 rm -f conftest.$ac_objext conftest.$ac_ext
12859
12860 fi
12861 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
12862 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
12863     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
12864     then
12865
12866 cat >>confdefs.h <<\_ACEOF
12867 #define STATFS_DEFINED_BY_SYS_VFS 1
12868 _ACEOF
12869
12870     fi
12871 fi
12872
12873 if test "$ac_cv_header_sys_statfs_h" = "yes"
12874 then
12875     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
12876 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
12877 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
12878   echo $ECHO_N "(cached) $ECHO_C" >&6
12879 else
12880   cat >conftest.$ac_ext <<_ACEOF
12881 #line $LINENO "configure"
12882 #include "confdefs.h"
12883
12884         #include <sys/types.h>
12885         #ifdef HAVE_SYS_PARAM_H
12886         # include <sys/param.h>
12887         #endif
12888         #include <sys/statfs.h>
12889
12890 #ifdef F77_DUMMY_MAIN
12891 #  ifdef __cplusplus
12892      extern "C"
12893 #  endif
12894    int F77_DUMMY_MAIN() { return 1; }
12895 #endif
12896 int
12897 main ()
12898 {
12899
12900                 struct statfs stfs;
12901
12902   ;
12903   return 0;
12904 }
12905 _ACEOF
12906 rm -f conftest.$ac_objext
12907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12908   (eval $ac_compile) 2>&5
12909   ac_status=$?
12910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911   (exit $ac_status); } &&
12912          { ac_try='test -s conftest.$ac_objext'
12913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12914   (eval $ac_try) 2>&5
12915   ac_status=$?
12916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917   (exit $ac_status); }; }; then
12918   wine_cv_sys_statfs_has_statfs=yes
12919 else
12920   echo "$as_me: failed program was:" >&5
12921 cat conftest.$ac_ext >&5
12922 wine_cv_sys_statfs_has_statfs=no
12923
12924 fi
12925 rm -f conftest.$ac_objext conftest.$ac_ext
12926
12927 fi
12928 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
12929 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
12930     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
12931     then
12932
12933 cat >>confdefs.h <<\_ACEOF
12934 #define STATFS_DEFINED_BY_SYS_STATFS 1
12935 _ACEOF
12936
12937     fi
12938 fi
12939
12940 if test "$ac_cv_header_sys_mount_h" = "yes"
12941 then
12942     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
12943 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
12944 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
12945   echo $ECHO_N "(cached) $ECHO_C" >&6
12946 else
12947   cat >conftest.$ac_ext <<_ACEOF
12948 #line $LINENO "configure"
12949 #include "confdefs.h"
12950
12951         #include <sys/types.h>
12952         #ifdef HAVE_SYS_PARAM_H
12953         # include <sys/param.h>
12954         #endif
12955         #include <sys/mount.h>
12956
12957 #ifdef F77_DUMMY_MAIN
12958 #  ifdef __cplusplus
12959      extern "C"
12960 #  endif
12961    int F77_DUMMY_MAIN() { return 1; }
12962 #endif
12963 int
12964 main ()
12965 {
12966
12967                 struct statfs stfs;
12968
12969   ;
12970   return 0;
12971 }
12972 _ACEOF
12973 rm -f conftest.$ac_objext
12974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12975   (eval $ac_compile) 2>&5
12976   ac_status=$?
12977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978   (exit $ac_status); } &&
12979          { ac_try='test -s conftest.$ac_objext'
12980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981   (eval $ac_try) 2>&5
12982   ac_status=$?
12983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984   (exit $ac_status); }; }; then
12985   wine_cv_sys_mount_has_statfs=yes
12986 else
12987   echo "$as_me: failed program was:" >&5
12988 cat conftest.$ac_ext >&5
12989 wine_cv_sys_mount_has_statfs=no
12990
12991 fi
12992 rm -f conftest.$ac_objext conftest.$ac_ext
12993
12994 fi
12995 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
12996 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
12997     if test "$wine_cv_sys_mount_has_statfs" = "yes"
12998     then
12999
13000 cat >>confdefs.h <<\_ACEOF
13001 #define STATFS_DEFINED_BY_SYS_MOUNT 1
13002 _ACEOF
13003
13004     fi
13005 fi
13006
13007
13008 echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
13009 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
13010 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
13011   echo $ECHO_N "(cached) $ECHO_C" >&6
13012 else
13013   cat >conftest.$ac_ext <<_ACEOF
13014 #line $LINENO "configure"
13015 #include "confdefs.h"
13016 #include <sys/types.h>
13017 #ifdef HAVE_SYS_PARAM_H
13018 # include <sys/param.h>
13019 #endif
13020 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
13021 # include <sys/mount.h>
13022 #else
13023 # ifdef STATFS_DEFINED_BY_SYS_VFS
13024 #  include <sys/vfs.h>
13025 # else
13026 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
13027 #   include <sys/statfs.h>
13028 #  endif
13029 # endif
13030 #endif
13031 #ifdef F77_DUMMY_MAIN
13032 #  ifdef __cplusplus
13033      extern "C"
13034 #  endif
13035    int F77_DUMMY_MAIN() { return 1; }
13036 #endif
13037 int
13038 main ()
13039 {
13040 struct statfs s; s.f_bfree = 0
13041   ;
13042   return 0;
13043 }
13044 _ACEOF
13045 rm -f conftest.$ac_objext
13046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13047   (eval $ac_compile) 2>&5
13048   ac_status=$?
13049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050   (exit $ac_status); } &&
13051          { ac_try='test -s conftest.$ac_objext'
13052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13053   (eval $ac_try) 2>&5
13054   ac_status=$?
13055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056   (exit $ac_status); }; }; then
13057   ac_cv_c_statfs_f_bfree="yes"
13058 else
13059   echo "$as_me: failed program was:" >&5
13060 cat conftest.$ac_ext >&5
13061 ac_cv_c_statfs_f_bfree="no"
13062 fi
13063 rm -f conftest.$ac_objext conftest.$ac_ext
13064 fi
13065 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
13066 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
13067 if  test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
13068
13069 cat >>confdefs.h <<\_ACEOF
13070 #define STATFS_HAS_BFREE 1
13071 _ACEOF
13072
13073 fi
13074
13075
13076
13077 echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
13078 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
13079 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
13080   echo $ECHO_N "(cached) $ECHO_C" >&6
13081 else
13082   cat >conftest.$ac_ext <<_ACEOF
13083 #line $LINENO "configure"
13084 #include "confdefs.h"
13085 #include <sys/types.h>
13086 #ifdef HAVE_SYS_PARAM_H
13087 # include <sys/param.h>
13088 #endif
13089 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
13090 # include <sys/mount.h>
13091 #else
13092 # ifdef STATFS_DEFINED_BY_SYS_VFS
13093 #  include <sys/vfs.h>
13094 # else
13095 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
13096 #   include <sys/statfs.h>
13097 #  endif
13098 # endif
13099 #endif
13100 #ifdef F77_DUMMY_MAIN
13101 #  ifdef __cplusplus
13102      extern "C"
13103 #  endif
13104    int F77_DUMMY_MAIN() { return 1; }
13105 #endif
13106 int
13107 main ()
13108 {
13109 struct statfs s; s.f_bavail = 0
13110   ;
13111   return 0;
13112 }
13113 _ACEOF
13114 rm -f conftest.$ac_objext
13115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13116   (eval $ac_compile) 2>&5
13117   ac_status=$?
13118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119   (exit $ac_status); } &&
13120          { ac_try='test -s conftest.$ac_objext'
13121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13122   (eval $ac_try) 2>&5
13123   ac_status=$?
13124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125   (exit $ac_status); }; }; then
13126   ac_cv_c_statfs_f_bavail="yes"
13127 else
13128   echo "$as_me: failed program was:" >&5
13129 cat conftest.$ac_ext >&5
13130 ac_cv_c_statfs_f_bavail="no"
13131 fi
13132 rm -f conftest.$ac_objext conftest.$ac_ext
13133 fi
13134 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
13135 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
13136 if  test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
13137
13138 cat >>confdefs.h <<\_ACEOF
13139 #define STATFS_HAS_BAVAIL 1
13140 _ACEOF
13141
13142 fi
13143
13144
13145
13146 echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
13147 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
13148 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
13149   echo $ECHO_N "(cached) $ECHO_C" >&6
13150 else
13151   cat >conftest.$ac_ext <<_ACEOF
13152 #line $LINENO "configure"
13153 #include "confdefs.h"
13154 #include <sys/types.h>
13155 #include <sys/socket.h>
13156 #ifdef F77_DUMMY_MAIN
13157 #  ifdef __cplusplus
13158      extern "C"
13159 #  endif
13160    int F77_DUMMY_MAIN() { return 1; }
13161 #endif
13162 int
13163 main ()
13164 {
13165 struct msghdr s; s.msg_accrights = 0
13166   ;
13167   return 0;
13168 }
13169 _ACEOF
13170 rm -f conftest.$ac_objext
13171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13172   (eval $ac_compile) 2>&5
13173   ac_status=$?
13174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175   (exit $ac_status); } &&
13176          { ac_try='test -s conftest.$ac_objext'
13177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178   (eval $ac_try) 2>&5
13179   ac_status=$?
13180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181   (exit $ac_status); }; }; then
13182   ac_cv_c_msghdr_msg_accrights="yes"
13183 else
13184   echo "$as_me: failed program was:" >&5
13185 cat conftest.$ac_ext >&5
13186 ac_cv_c_msghdr_msg_accrights="no"
13187 fi
13188 rm -f conftest.$ac_objext conftest.$ac_ext
13189 fi
13190 echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
13191 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
13192 if  test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
13193
13194 cat >>confdefs.h <<\_ACEOF
13195 #define HAVE_MSGHDR_ACCRIGHTS 1
13196 _ACEOF
13197
13198 fi
13199
13200
13201
13202 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
13203 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
13204 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
13205   echo $ECHO_N "(cached) $ECHO_C" >&6
13206 else
13207   cat >conftest.$ac_ext <<_ACEOF
13208 #line $LINENO "configure"
13209 #include "confdefs.h"
13210 #include <sys/types.h>
13211 #include <sys/socket.h>
13212 #ifdef F77_DUMMY_MAIN
13213 #  ifdef __cplusplus
13214      extern "C"
13215 #  endif
13216    int F77_DUMMY_MAIN() { return 1; }
13217 #endif
13218 int
13219 main ()
13220 {
13221 struct sockaddr s; s.sa_len = 0
13222   ;
13223   return 0;
13224 }
13225 _ACEOF
13226 rm -f conftest.$ac_objext
13227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13228   (eval $ac_compile) 2>&5
13229   ac_status=$?
13230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231   (exit $ac_status); } &&
13232          { ac_try='test -s conftest.$ac_objext'
13233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234   (eval $ac_try) 2>&5
13235   ac_status=$?
13236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237   (exit $ac_status); }; }; then
13238   ac_cv_c_sockaddr_sa_len="yes"
13239 else
13240   echo "$as_me: failed program was:" >&5
13241 cat conftest.$ac_ext >&5
13242 ac_cv_c_sockaddr_sa_len="no"
13243 fi
13244 rm -f conftest.$ac_objext conftest.$ac_ext
13245 fi
13246 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
13247 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
13248 if  test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
13249
13250 cat >>confdefs.h <<\_ACEOF
13251 #define HAVE_SOCKADDR_SA_LEN 1
13252 _ACEOF
13253
13254 fi
13255
13256
13257
13258 echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
13259 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
13260 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
13261   echo $ECHO_N "(cached) $ECHO_C" >&6
13262 else
13263   cat >conftest.$ac_ext <<_ACEOF
13264 #line $LINENO "configure"
13265 #include "confdefs.h"
13266 #include <sys/types.h>
13267 #include <sys/socket.h>
13268 #include <sys/un.h>
13269 #ifdef F77_DUMMY_MAIN
13270 #  ifdef __cplusplus
13271      extern "C"
13272 #  endif
13273    int F77_DUMMY_MAIN() { return 1; }
13274 #endif
13275 int
13276 main ()
13277 {
13278 struct sockaddr_un s; s.sun_len = 0
13279   ;
13280   return 0;
13281 }
13282 _ACEOF
13283 rm -f conftest.$ac_objext
13284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13285   (eval $ac_compile) 2>&5
13286   ac_status=$?
13287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288   (exit $ac_status); } &&
13289          { ac_try='test -s conftest.$ac_objext'
13290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291   (eval $ac_try) 2>&5
13292   ac_status=$?
13293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294   (exit $ac_status); }; }; then
13295   ac_cv_c_sockaddr_un_sun_len="yes"
13296 else
13297   echo "$as_me: failed program was:" >&5
13298 cat conftest.$ac_ext >&5
13299 ac_cv_c_sockaddr_un_sun_len="no"
13300 fi
13301 rm -f conftest.$ac_objext conftest.$ac_ext
13302 fi
13303 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
13304 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
13305 if  test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
13306
13307 cat >>confdefs.h <<\_ACEOF
13308 #define HAVE_SOCKADDR_SUN_LEN 1
13309 _ACEOF
13310
13311 fi
13312
13313
13314
13315
13316 case $host_cpu in
13317   *i345678986* )
13318     echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
13319 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
13320 if test "${ac_cv_cpp_def_i386+set}" = set; then
13321   echo $ECHO_N "(cached) $ECHO_C" >&6
13322 else
13323   cat >conftest.$ac_ext <<_ACEOF
13324 #line $LINENO "configure"
13325 #include "confdefs.h"
13326 #ifndef __i386__
13327 yes
13328 #endif
13329 _ACEOF
13330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13331   egrep "yes" >/dev/null 2>&1; then
13332   ac_cv_cpp_def_i386="yes"
13333 else
13334   ac_cv_cpp_def_i386="no"
13335 fi
13336 rm -f conftest*
13337
13338 fi
13339 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5
13340 echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
13341     ;;
13342 esac
13343 if test "$ac_cv_cpp_def_i386" = "yes"
13344 then
13345     CFLAGS="$CFLAGS -D__i386__"
13346     LINTFLAGS="$LINTFLAGS -D__i386__"
13347 fi
13348
13349
13350
13351
13352
13353 ac_config_commands="$ac_config_commands controls"
13354
13355 ac_config_commands="$ac_config_commands dlls/advapi32/tests"
13356
13357 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
13358
13359 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
13360
13361 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
13362
13363 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
13364
13365 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
13366
13367 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
13368
13369 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
13370
13371 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
13372
13373 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
13374
13375 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
13376
13377 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
13378
13379 ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
13380
13381 ac_config_commands="$ac_config_commands dlls/kernel/messages"
13382
13383 ac_config_commands="$ac_config_commands dlls/kernel/tests"
13384
13385 ac_config_commands="$ac_config_commands dlls/oleaut32/tests"
13386
13387 ac_config_commands="$ac_config_commands dlls/shlwapi/tests"
13388
13389 ac_config_commands="$ac_config_commands dlls/user/dde"
13390
13391 ac_config_commands="$ac_config_commands dlls/user/resources"
13392
13393 ac_config_commands="$ac_config_commands dlls/user/tests"
13394
13395 ac_config_commands="$ac_config_commands dlls/wineps/data"
13396
13397 ac_config_commands="$ac_config_commands dlls/wininet/tests"
13398
13399 ac_config_commands="$ac_config_commands dlls/winsock/tests"
13400
13401 ac_config_commands="$ac_config_commands files"
13402
13403 ac_config_commands="$ac_config_commands graphics"
13404
13405 ac_config_commands="$ac_config_commands graphics/x11drv"
13406
13407 ac_config_commands="$ac_config_commands if1632"
13408
13409 ac_config_commands="$ac_config_commands include/wine"
13410
13411 ac_config_commands="$ac_config_commands loader"
13412
13413 ac_config_commands="$ac_config_commands loader/ne"
13414
13415 ac_config_commands="$ac_config_commands memory"
13416
13417 ac_config_commands="$ac_config_commands misc"
13418
13419 ac_config_commands="$ac_config_commands msdos"
13420
13421 ac_config_commands="$ac_config_commands objects"
13422
13423 ac_config_commands="$ac_config_commands programs/regapi/tests"
13424
13425 ac_config_commands="$ac_config_commands programs/regedit/tests"
13426
13427 ac_config_commands="$ac_config_commands programs/winetest/tests"
13428
13429 ac_config_commands="$ac_config_commands relay32"
13430
13431 ac_config_commands="$ac_config_commands scheduler"
13432
13433 ac_config_commands="$ac_config_commands win32"
13434
13435 ac_config_commands="$ac_config_commands windows"
13436
13437
13438 MAKE_RULES=Make.rules
13439
13440
13441 MAKE_DLL_RULES=dlls/Makedll.rules
13442
13443
13444 MAKE_PROG_RULES=programs/Makeprog.rules
13445
13446
13447 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules programs/Makeprog.rules Makefile debugger/Makefile dlls/Makefile dlls/advapi32/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/d3d8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/gdi/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/netapi32/Makefile dlls/ntdll/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/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/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/user/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/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/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winspool/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile library/Makefile miscemu/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wpp/Makefile tools/wrc/Makefile tsx11/Makefile unicode/Makefile"
13448
13449
13450 cat >confcache <<\_ACEOF
13451 # This file is a shell script that caches the results of configure
13452 # tests run on this system so they can be shared between configure
13453 # scripts and configure runs, see configure's option --config-cache.
13454 # It is not useful on other systems.  If it contains results you don't
13455 # want to keep, you may remove or edit it.
13456 #
13457 # config.status only pays attention to the cache file if you give it
13458 # the --recheck option to rerun configure.
13459 #
13460 # `ac_cv_env_foo' variables (set or unset) will be overriden when
13461 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13462 # following values.
13463
13464 _ACEOF
13465
13466 # The following way of writing the cache mishandles newlines in values,
13467 # but we know of no workaround that is simple, portable, and efficient.
13468 # So, don't put newlines in cache variables' values.
13469 # Ultrix sh set writes to stderr and can't be redirected directly,
13470 # and sets the high bit in the cache file unless we assign to the vars.
13471 {
13472   (set) 2>&1 |
13473     case `(ac_space=' '; set | grep ac_space) 2>&1` in
13474     *ac_space=\ *)
13475       # `set' does not quote correctly, so add quotes (double-quote
13476       # substitution turns \\\\ into \\, and sed turns \\ into \).
13477       sed -n \
13478         "s/'/'\\\\''/g;
13479           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13480       ;;
13481     *)
13482       # `set' quotes correctly as required by POSIX, so do not add quotes.
13483       sed -n \
13484         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13485       ;;
13486     esac;
13487 } |
13488   sed '
13489      t clear
13490      : clear
13491      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13492      t end
13493      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13494      : end' >>confcache
13495 if cmp -s $cache_file confcache; then :; else
13496   if test -w $cache_file; then
13497     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13498     cat confcache >$cache_file
13499   else
13500     echo "not updating unwritable cache $cache_file"
13501   fi
13502 fi
13503 rm -f confcache
13504
13505 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13506 # Let make expand exec_prefix.
13507 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13508
13509 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13510 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13511 # trailing colons and then remove the whole line if VPATH becomes empty
13512 # (actually we leave an empty line to preserve line numbers).
13513 if test "x$srcdir" = x.; then
13514   ac_vpsub='/^[         ]*VPATH[        ]*=/{
13515 s/:*\$(srcdir):*/:/;
13516 s/:*\${srcdir}:*/:/;
13517 s/:*@srcdir@:*/:/;
13518 s/^\([^=]*=[    ]*\):*/\1/;
13519 s/:*$//;
13520 s/^[^=]*=[      ]*$//;
13521 }'
13522 fi
13523
13524 DEFS=-DHAVE_CONFIG_H
13525
13526
13527 : ${CONFIG_STATUS=./config.status}
13528 ac_clean_files_save=$ac_clean_files
13529 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13530 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13531 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13532 cat >$CONFIG_STATUS <<_ACEOF
13533 #! $SHELL
13534 # Generated by $as_me.
13535 # Run this file to recreate the current configuration.
13536 # Compiler output produced by configure, useful for debugging
13537 # configure, is in config.log if it exists.
13538
13539 debug=false
13540 SHELL=\${CONFIG_SHELL-$SHELL}
13541 _ACEOF
13542
13543 cat >>$CONFIG_STATUS <<\_ACEOF
13544
13545 ## --------------------- ##
13546 ## M4sh Initialization.  ##
13547 ## --------------------- ##
13548
13549 # Be Bourne compatible
13550 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13551   emulate sh
13552   NULLCMD=:
13553 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13554   set -o posix
13555 fi
13556
13557 # NLS nuisances.
13558 # Support unset when possible.
13559 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
13560   as_unset=unset
13561 else
13562   as_unset=false
13563 fi
13564
13565 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
13566     { $as_unset LANG || test "${LANG+set}" != set; } ||
13567       { LANG=C; export LANG; }
13568 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
13569     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
13570       { LC_ALL=C; export LC_ALL; }
13571 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
13572     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
13573       { LC_TIME=C; export LC_TIME; }
13574 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
13575     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
13576       { LC_CTYPE=C; export LC_CTYPE; }
13577 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
13578     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
13579       { LANGUAGE=C; export LANGUAGE; }
13580 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
13581     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
13582       { LC_COLLATE=C; export LC_COLLATE; }
13583 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
13584     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
13585       { LC_NUMERIC=C; export LC_NUMERIC; }
13586 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
13587     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
13588       { LC_MESSAGES=C; export LC_MESSAGES; }
13589
13590
13591 # Name of the executable.
13592 as_me=`(basename "$0") 2>/dev/null ||
13593 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13594          X"$0" : 'X\(//\)$' \| \
13595          X"$0" : 'X\(/\)$' \| \
13596          .     : '\(.\)' 2>/dev/null ||
13597 echo X/"$0" |
13598     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13599           /^X\/\(\/\/\)$/{ s//\1/; q; }
13600           /^X\/\(\/\).*/{ s//\1/; q; }
13601           s/.*/./; q'`
13602
13603 # PATH needs CR, and LINENO needs CR and PATH.
13604 # Avoid depending upon Character Ranges.
13605 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13606 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13607 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13608 as_cr_digits='0123456789'
13609 as_cr_alnum=$as_cr_Letters$as_cr_digits
13610
13611 # The user is always right.
13612 if test "${PATH_SEPARATOR+set}" != set; then
13613   echo "#! /bin/sh" >conftest.sh
13614   echo  "exit 0"   >>conftest.sh
13615   chmod +x conftest.sh
13616   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
13617     PATH_SEPARATOR=';'
13618   else
13619     PATH_SEPARATOR=:
13620   fi
13621   rm -f conftest.sh
13622 fi
13623
13624
13625   as_lineno_1=$LINENO
13626   as_lineno_2=$LINENO
13627   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13628   test "x$as_lineno_1" != "x$as_lineno_2" &&
13629   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
13630   # Find who we are.  Look in the path if we contain no path at all
13631   # relative or not.
13632   case $0 in
13633     *[\\/]* ) as_myself=$0 ;;
13634     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13635 for as_dir in $PATH
13636 do
13637   IFS=$as_save_IFS
13638   test -z "$as_dir" && as_dir=.
13639   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13640 done
13641
13642        ;;
13643   esac
13644   # We did not find ourselves, most probably we were run as `sh COMMAND'
13645   # in which case we are not to be found in the path.
13646   if test "x$as_myself" = x; then
13647     as_myself=$0
13648   fi
13649   if test ! -f "$as_myself"; then
13650     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13651 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13652    { (exit 1); exit 1; }; }
13653   fi
13654   case $CONFIG_SHELL in
13655   '')
13656     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13657 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13658 do
13659   IFS=$as_save_IFS
13660   test -z "$as_dir" && as_dir=.
13661   for as_base in sh bash ksh sh5; do
13662          case $as_dir in
13663          /*)
13664            if ("$as_dir/$as_base" -c '
13665   as_lineno_1=$LINENO
13666   as_lineno_2=$LINENO
13667   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13668   test "x$as_lineno_1" != "x$as_lineno_2" &&
13669   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
13670              CONFIG_SHELL=$as_dir/$as_base
13671              export CONFIG_SHELL
13672              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13673            fi;;
13674          esac
13675        done
13676 done
13677 ;;
13678   esac
13679
13680   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13681   # uniformly replaced by the line number.  The first 'sed' inserts a
13682   # line-number line before each line; the second 'sed' does the real
13683   # work.  The second script uses 'N' to pair each line-number line
13684   # with the numbered line, and appends trailing '-' during
13685   # substitution so that $LINENO is not a special case at line end.
13686   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13687   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
13688   sed '=' <$as_myself |
13689     sed '
13690       N
13691       s,$,-,
13692       : loop
13693       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13694       t loop
13695       s,-$,,
13696       s,^['$as_cr_digits']*\n,,
13697     ' >$as_me.lineno &&
13698   chmod +x $as_me.lineno ||
13699     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13700 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13701    { (exit 1); exit 1; }; }
13702
13703   # Don't try to exec as it changes $[0], causing all sort of problems
13704   # (the dirname of $[0] is not the place where we might find the
13705   # original and so on.  Autoconf is especially sensible to this).
13706   . ./$as_me.lineno
13707   # Exit status is that of the last command.
13708   exit
13709 }
13710
13711
13712 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13713   *c*,-n*) ECHO_N= ECHO_C='
13714 ' ECHO_T='      ' ;;
13715   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13716   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
13717 esac
13718
13719 if expr a : '\(a\)' >/dev/null 2>&1; then
13720   as_expr=expr
13721 else
13722   as_expr=false
13723 fi
13724
13725 rm -f conf$$ conf$$.exe conf$$.file
13726 echo >conf$$.file
13727 if ln -s conf$$.file conf$$ 2>/dev/null; then
13728   # We could just check for DJGPP; but this test a) works b) is more generic
13729   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13730   if test -f conf$$.exe; then
13731     # Don't use ln at all; we don't have any links
13732     as_ln_s='cp -p'
13733   else
13734     as_ln_s='ln -s'
13735   fi
13736 elif ln conf$$.file conf$$ 2>/dev/null; then
13737   as_ln_s=ln
13738 else
13739   as_ln_s='cp -p'
13740 fi
13741 rm -f conf$$ conf$$.exe conf$$.file
13742
13743 as_executable_p="test -f"
13744
13745 # Sed expression to map a string onto a valid CPP name.
13746 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
13747
13748 # Sed expression to map a string onto a valid variable name.
13749 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
13750
13751
13752 # IFS
13753 # We need space, tab and new line, in precisely that order.
13754 as_nl='
13755 '
13756 IFS="   $as_nl"
13757
13758 # CDPATH.
13759 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
13760
13761 exec 6>&1
13762
13763 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13764 # report actual input values of CONFIG_FILES etc. instead of their
13765 # values after options handling.  Logging --version etc. is OK.
13766 exec 5>>config.log
13767 {
13768   echo
13769   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13770 ## Running $as_me. ##
13771 _ASBOX
13772 } >&5
13773 cat >&5 <<_CSEOF
13774
13775 This file was extended by Wine $as_me 20020710, which was
13776 generated by GNU Autoconf 2.53.  Invocation command line was
13777
13778   CONFIG_FILES    = $CONFIG_FILES
13779   CONFIG_HEADERS  = $CONFIG_HEADERS
13780   CONFIG_LINKS    = $CONFIG_LINKS
13781   CONFIG_COMMANDS = $CONFIG_COMMANDS
13782   $ $0 $@
13783
13784 _CSEOF
13785 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13786 echo >&5
13787 _ACEOF
13788
13789 # Files that config.status was made for.
13790 if test -n "$ac_config_files"; then
13791   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13792 fi
13793
13794 if test -n "$ac_config_headers"; then
13795   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13796 fi
13797
13798 if test -n "$ac_config_links"; then
13799   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13800 fi
13801
13802 if test -n "$ac_config_commands"; then
13803   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13804 fi
13805
13806 cat >>$CONFIG_STATUS <<\_ACEOF
13807
13808 ac_cs_usage="\
13809 \`$as_me' instantiates files from templates according to the
13810 current configuration.
13811
13812 Usage: $0 [OPTIONS] [FILE]...
13813
13814   -h, --help       print this help, then exit
13815   -V, --version    print version number, then exit
13816   -d, --debug      don't remove temporary files
13817       --recheck    update $as_me by reconfiguring in the same conditions
13818   --file=FILE[:TEMPLATE]
13819                    instantiate the configuration file FILE
13820   --header=FILE[:TEMPLATE]
13821                    instantiate the configuration header FILE
13822
13823 Configuration files:
13824 $config_files
13825
13826 Configuration headers:
13827 $config_headers
13828
13829 Configuration commands:
13830 $config_commands
13831
13832 Report bugs to <bug-autoconf@gnu.org>."
13833 _ACEOF
13834
13835 cat >>$CONFIG_STATUS <<_ACEOF
13836 ac_cs_version="\\
13837 Wine config.status 20020710
13838 configured by $0, generated by GNU Autoconf 2.53,
13839   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13840
13841 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
13842 Free Software Foundation, Inc.
13843 This config.status script is free software; the Free Software Foundation
13844 gives unlimited permission to copy, distribute and modify it."
13845 srcdir=$srcdir
13846 INSTALL="$INSTALL"
13847 _ACEOF
13848
13849 cat >>$CONFIG_STATUS <<\_ACEOF
13850 # If no file are specified by the user, then we need to provide default
13851 # value.  By we need to know if files were specified by the user.
13852 ac_need_defaults=:
13853 while test $# != 0
13854 do
13855   case $1 in
13856   --*=*)
13857     ac_option=`expr "x$1" : 'x\([^=]*\)='`
13858     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13859     shift
13860     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
13861     shift
13862     ;;
13863   -*);;
13864   *) # This is not an option, so the user has probably given explicit
13865      # arguments.
13866      ac_need_defaults=false;;
13867   esac
13868
13869   case $1 in
13870   # Handling of the options.
13871 _ACEOF
13872 cat >>$CONFIG_STATUS <<_ACEOF
13873   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13874     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
13875     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
13876 _ACEOF
13877 cat >>$CONFIG_STATUS <<\_ACEOF
13878   --version | --vers* | -V )
13879     echo "$ac_cs_version"; exit 0 ;;
13880   --he | --h)
13881     # Conflict between --help and --header
13882     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13883 Try \`$0 --help' for more information." >&5
13884 echo "$as_me: error: ambiguous option: $1
13885 Try \`$0 --help' for more information." >&2;}
13886    { (exit 1); exit 1; }; };;
13887   --help | --hel | -h )
13888     echo "$ac_cs_usage"; exit 0 ;;
13889   --debug | --d* | -d )
13890     debug=: ;;
13891   --file | --fil | --fi | --f )
13892     shift
13893     CONFIG_FILES="$CONFIG_FILES $1"
13894     ac_need_defaults=false;;
13895   --header | --heade | --head | --hea )
13896     shift
13897     CONFIG_HEADERS="$CONFIG_HEADERS $1"
13898     ac_need_defaults=false;;
13899
13900   # This is an error.
13901   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13902 Try \`$0 --help' for more information." >&5
13903 echo "$as_me: error: unrecognized option: $1
13904 Try \`$0 --help' for more information." >&2;}
13905    { (exit 1); exit 1; }; } ;;
13906
13907   *) ac_config_targets="$ac_config_targets $1" ;;
13908
13909   esac
13910   shift
13911 done
13912
13913 _ACEOF
13914
13915
13916
13917
13918
13919 cat >>$CONFIG_STATUS <<\_ACEOF
13920 for ac_config_target in $ac_config_targets
13921 do
13922   case "$ac_config_target" in
13923   # Handling of arguments.
13924   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
13925   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
13926   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
13927   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13928   "debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/Makefile" ;;
13929   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
13930   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
13931   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
13932   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
13933   "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
13934   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
13935   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
13936   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
13937   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
13938   "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
13939   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
13940   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
13941   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
13942   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
13943   "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
13944   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
13945   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
13946   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
13947   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
13948   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
13949   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
13950   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
13951   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
13952   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
13953   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
13954   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
13955   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
13956   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
13957   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
13958   "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
13959   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
13960   "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
13961   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
13962   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
13963   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
13964   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
13965   "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
13966   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
13967   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
13968   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
13969   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
13970   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
13971   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
13972   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
13973   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
13974   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
13975   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
13976   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
13977   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
13978   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
13979   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
13980   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
13981   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
13982   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
13983   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
13984   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
13985   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
13986   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
13987   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
13988   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
13989   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
13990   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
13991   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
13992   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
13993   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
13994   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
13995   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
13996   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
13997   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
13998   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
13999   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
14000   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
14001   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
14002   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
14003   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
14004   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
14005   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
14006   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
14007   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
14008   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
14009   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
14010   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
14011   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
14012   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
14013   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
14014   "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
14015   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
14016   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
14017   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
14018   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
14019   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
14020   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
14021   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
14022   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
14023   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
14024   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
14025   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14026   "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
14027   "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
14028   "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
14029   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
14030   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
14031   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
14032   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
14033   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
14034   "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
14035   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
14036   "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
14037   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
14038   "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
14039   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
14040   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
14041   "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
14042   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
14043   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
14044   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
14045   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
14046   "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
14047   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
14048   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
14049   "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
14050   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
14051   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
14052   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
14053   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14054   "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
14055   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
14056   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
14057   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
14058   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
14059   "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
14060   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
14061   "tsx11/Makefile" ) CONFIG_FILES="$CONFIG_FILES tsx11/Makefile" ;;
14062   "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
14063   "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
14064   "dlls/advapi32/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/advapi32/tests" ;;
14065   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
14066   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
14067   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
14068   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
14069   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
14070   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
14071   "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
14072   "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
14073   "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
14074   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
14075   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
14076   "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
14077   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
14078   "dlls/kernel/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/tests" ;;
14079   "dlls/oleaut32/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/oleaut32/tests" ;;
14080   "dlls/shlwapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/shlwapi/tests" ;;
14081   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
14082   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
14083   "dlls/user/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/tests" ;;
14084   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
14085   "dlls/wininet/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wininet/tests" ;;
14086   "dlls/winsock/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/winsock/tests" ;;
14087   "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
14088   "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
14089   "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
14090   "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
14091   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
14092   "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
14093   "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
14094   "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
14095   "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
14096   "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
14097   "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
14098   "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
14099   "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
14100   "programs/winetest/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/winetest/tests" ;;
14101   "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
14102   "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
14103   "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
14104   "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
14105   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
14106   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14107 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14108    { (exit 1); exit 1; }; };;
14109   esac
14110 done
14111
14112 # If the user did not use the arguments to specify the items to instantiate,
14113 # then the envvar interface is used.  Set only those that are not.
14114 # We use the long form for the default assignment because of an extremely
14115 # bizarre bug on SunOS 4.1.3.
14116 if $ac_need_defaults; then
14117   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14118   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14119   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14120 fi
14121
14122 # Create a temporary directory, and hook for its removal unless debugging.
14123 $debug ||
14124 {
14125   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14126   trap '{ (exit 1); exit 1; }' 1 2 13 15
14127 }
14128
14129 # Create a (secure) tmp directory for tmp files.
14130 : ${TMPDIR=/tmp}
14131 {
14132   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14133   test -n "$tmp" && test -d "$tmp"
14134 }  ||
14135 {
14136   tmp=$TMPDIR/cs$$-$RANDOM
14137   (umask 077 && mkdir $tmp)
14138 } ||
14139 {
14140    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14141    { (exit 1); exit 1; }
14142 }
14143
14144 _ACEOF
14145
14146 cat >>$CONFIG_STATUS <<_ACEOF
14147
14148 #
14149 # CONFIG_FILES section.
14150 #
14151
14152 # No need to generate the scripts if there are no CONFIG_FILES.
14153 # This happens for instance when ./config.status config.h
14154 if test -n "\$CONFIG_FILES"; then
14155   # Protect against being on the right side of a sed subst in config.status.
14156   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14157    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14158 s,@SHELL@,$SHELL,;t t
14159 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14160 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14161 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14162 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14163 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14164 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14165 s,@exec_prefix@,$exec_prefix,;t t
14166 s,@prefix@,$prefix,;t t
14167 s,@program_transform_name@,$program_transform_name,;t t
14168 s,@bindir@,$bindir,;t t
14169 s,@sbindir@,$sbindir,;t t
14170 s,@libexecdir@,$libexecdir,;t t
14171 s,@datadir@,$datadir,;t t
14172 s,@sysconfdir@,$sysconfdir,;t t
14173 s,@sharedstatedir@,$sharedstatedir,;t t
14174 s,@localstatedir@,$localstatedir,;t t
14175 s,@libdir@,$libdir,;t t
14176 s,@includedir@,$includedir,;t t
14177 s,@oldincludedir@,$oldincludedir,;t t
14178 s,@infodir@,$infodir,;t t
14179 s,@mandir@,$mandir,;t t
14180 s,@build_alias@,$build_alias,;t t
14181 s,@host_alias@,$host_alias,;t t
14182 s,@target_alias@,$target_alias,;t t
14183 s,@DEFS@,$DEFS,;t t
14184 s,@ECHO_C@,$ECHO_C,;t t
14185 s,@ECHO_N@,$ECHO_N,;t t
14186 s,@ECHO_T@,$ECHO_T,;t t
14187 s,@LIBS@,$LIBS,;t t
14188 s,@OPTIONS@,$OPTIONS,;t t
14189 s,@build@,$build,;t t
14190 s,@build_cpu@,$build_cpu,;t t
14191 s,@build_vendor@,$build_vendor,;t t
14192 s,@build_os@,$build_os,;t t
14193 s,@host@,$host,;t t
14194 s,@host_cpu@,$host_cpu,;t t
14195 s,@host_vendor@,$host_vendor,;t t
14196 s,@host_os@,$host_os,;t t
14197 s,@SET_MAKE@,$SET_MAKE,;t t
14198 s,@CC@,$CC,;t t
14199 s,@CFLAGS@,$CFLAGS,;t t
14200 s,@LDFLAGS@,$LDFLAGS,;t t
14201 s,@CPPFLAGS@,$CPPFLAGS,;t t
14202 s,@ac_ct_CC@,$ac_ct_CC,;t t
14203 s,@EXEEXT@,$EXEEXT,;t t
14204 s,@OBJEXT@,$OBJEXT,;t t
14205 s,@CPP@,$CPP,;t t
14206 s,@TOOLSDIR@,$TOOLSDIR,;t t
14207 s,@X_CFLAGS@,$X_CFLAGS,;t t
14208 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
14209 s,@X_LIBS@,$X_LIBS,;t t
14210 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
14211 s,@YACC@,$YACC,;t t
14212 s,@LEX@,$LEX,;t t
14213 s,@LEXLIB@,$LEXLIB,;t t
14214 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14215 s,@XYACC@,$XYACC,;t t
14216 s,@XLEX@,$XLEX,;t t
14217 s,@LD@,$LD,;t t
14218 s,@ac_ct_LD@,$ac_ct_LD,;t t
14219 s,@AR@,$AR,;t t
14220 s,@ac_ct_AR@,$ac_ct_AR,;t t
14221 s,@RANLIB@,$RANLIB,;t t
14222 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14223 s,@STRIP@,$STRIP,;t t
14224 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14225 s,@WINDRES@,$WINDRES,;t t
14226 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
14227 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14228 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14229 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14230 s,@LN_S@,$LN_S,;t t
14231 s,@LN@,$LN,;t t
14232 s,@C2MAN@,$C2MAN,;t t
14233 s,@LDCONFIG@,$LDCONFIG,;t t
14234 s,@LINT@,$LINT,;t t
14235 s,@LINTFLAGS@,$LINTFLAGS,;t t
14236 s,@JPEGLIB@,$JPEGLIB,;t t
14237 s,@XLIB@,$XLIB,;t t
14238 s,@XFILES@,$XFILES,;t t
14239 s,@OPENGLFILES@,$OPENGLFILES,;t t
14240 s,@GLU32FILES@,$GLU32FILES,;t t
14241 s,@CURSESLIBS@,$CURSESLIBS,;t t
14242 s,@CUPSLIBS@,$CUPSLIBS,;t t
14243 s,@sane_devel@,$sane_devel,;t t
14244 s,@SANELIBS@,$SANELIBS,;t t
14245 s,@SANEINCL@,$SANEINCL,;t t
14246 s,@ft_devel@,$ft_devel,;t t
14247 s,@ft_devel2@,$ft_devel2,;t t
14248 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
14249 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
14250 s,@ARTSLIBS@,$ARTSLIBS,;t t
14251 s,@ARTSINCL@,$ARTSINCL,;t t
14252 s,@ALSALIBS@,$ALSALIBS,;t t
14253 s,@DLLWRAP@,$DLLWRAP,;t t
14254 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
14255 s,@DLLIBS@,$DLLIBS,;t t
14256 s,@DLLFLAGS@,$DLLFLAGS,;t t
14257 s,@DLLEXT@,$DLLEXT,;t t
14258 s,@LDSHARED@,$LDSHARED,;t t
14259 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
14260 s,@LIBEXT@,$LIBEXT,;t t
14261 s,@LDPATH@,$LDPATH,;t t
14262 s,@LDD@,$LDD,;t t
14263 s,@ALLOCA@,$ALLOCA,;t t
14264 /@MAKE_RULES@/r $MAKE_RULES
14265 s,@MAKE_RULES@,,;t t
14266 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
14267 s,@MAKE_DLL_RULES@,,;t t
14268 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
14269 s,@MAKE_PROG_RULES@,,;t t
14270 CEOF
14271
14272 _ACEOF
14273
14274   cat >>$CONFIG_STATUS <<\_ACEOF
14275   # Split the substitutions into bite-sized pieces for seds with
14276   # small command number limits, like on Digital OSF/1 and HP-UX.
14277   ac_max_sed_lines=48
14278   ac_sed_frag=1 # Number of current file.
14279   ac_beg=1 # First line for current file.
14280   ac_end=$ac_max_sed_lines # Line after last line for current file.
14281   ac_more_lines=:
14282   ac_sed_cmds=
14283   while $ac_more_lines; do
14284     if test $ac_beg -gt 1; then
14285       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14286     else
14287       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14288     fi
14289     if test ! -s $tmp/subs.frag; then
14290       ac_more_lines=false
14291     else
14292       # The purpose of the label and of the branching condition is to
14293       # speed up the sed processing (if there are no `@' at all, there
14294       # is no need to browse any of the substitutions).
14295       # These are the two extra sed commands mentioned above.
14296       (echo ':t
14297   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14298       if test -z "$ac_sed_cmds"; then
14299         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14300       else
14301         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14302       fi
14303       ac_sed_frag=`expr $ac_sed_frag + 1`
14304       ac_beg=$ac_end
14305       ac_end=`expr $ac_end + $ac_max_sed_lines`
14306     fi
14307   done
14308   if test -z "$ac_sed_cmds"; then
14309     ac_sed_cmds=cat
14310   fi
14311 fi # test -n "$CONFIG_FILES"
14312
14313 _ACEOF
14314 cat >>$CONFIG_STATUS <<\_ACEOF
14315 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14316   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14317   case $ac_file in
14318   - | *:- | *:-:* ) # input from stdin
14319         cat >$tmp/stdin
14320         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14321         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14322   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14323         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14324   * )   ac_file_in=$ac_file.in ;;
14325   esac
14326
14327   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14328   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14329 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14330          X"$ac_file" : 'X\(//\)[^/]' \| \
14331          X"$ac_file" : 'X\(//\)$' \| \
14332          X"$ac_file" : 'X\(/\)' \| \
14333          .     : '\(.\)' 2>/dev/null ||
14334 echo X"$ac_file" |
14335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14336           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14337           /^X\(\/\/\)$/{ s//\1/; q; }
14338           /^X\(\/\).*/{ s//\1/; q; }
14339           s/.*/./; q'`
14340   { case "$ac_dir" in
14341   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14342   *)                      as_incr_dir=.;;
14343 esac
14344 as_dummy="$ac_dir"
14345 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14346   case $as_mkdir_dir in
14347     # Skip DOS drivespec
14348     ?:) as_incr_dir=$as_mkdir_dir ;;
14349     *)
14350       as_incr_dir=$as_incr_dir/$as_mkdir_dir
14351       test -d "$as_incr_dir" ||
14352         mkdir "$as_incr_dir" ||
14353         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
14354 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
14355    { (exit 1); exit 1; }; }
14356     ;;
14357   esac
14358 done; }
14359
14360   ac_builddir=.
14361
14362 if test "$ac_dir" != .; then
14363   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14364   # A "../" for each directory in $ac_dir_suffix.
14365   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14366 else
14367   ac_dir_suffix= ac_top_builddir=
14368 fi
14369
14370 case $srcdir in
14371   .)  # No --srcdir option.  We are building in place.
14372     ac_srcdir=.
14373     if test -z "$ac_top_builddir"; then
14374        ac_top_srcdir=.
14375     else
14376        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14377     fi ;;
14378   [\\/]* | ?:[\\/]* )  # Absolute path.
14379     ac_srcdir=$srcdir$ac_dir_suffix;
14380     ac_top_srcdir=$srcdir ;;
14381   *) # Relative path.
14382     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14383     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14384 esac
14385 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14386 # absolute.
14387 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14388 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
14389 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14390 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14391
14392
14393   case $INSTALL in
14394   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14395   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14396   esac
14397
14398   if test x"$ac_file" != x-; then
14399     { echo "$as_me:$LINENO: creating $ac_file" >&5
14400 echo "$as_me: creating $ac_file" >&6;}
14401     rm -f "$ac_file"
14402   fi
14403   # Let's still pretend it is `configure' which instantiates (i.e., don't
14404   # use $as_me), people would be surprised to read:
14405   #    /* config.h.  Generated by config.status.  */
14406   if test x"$ac_file" = x-; then
14407     configure_input=
14408   else
14409     configure_input="$ac_file.  "
14410   fi
14411   configure_input=$configure_input"Generated from `echo $ac_file_in |
14412                                      sed 's,.*/,,'` by configure."
14413
14414   # First look for the input files in the build tree, otherwise in the
14415   # src tree.
14416   ac_file_inputs=`IFS=:
14417     for f in $ac_file_in; do
14418       case $f in
14419       -) echo $tmp/stdin ;;
14420       [\\/$]*)
14421          # Absolute (can't be DOS-style, as IFS=:)
14422          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14423 echo "$as_me: error: cannot find input file: $f" >&2;}
14424    { (exit 1); exit 1; }; }
14425          echo $f;;
14426       *) # Relative
14427          if test -f "$f"; then
14428            # Build tree
14429            echo $f
14430          elif test -f "$srcdir/$f"; then
14431            # Source tree
14432            echo $srcdir/$f
14433          else
14434            # /dev/null tree
14435            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14436 echo "$as_me: error: cannot find input file: $f" >&2;}
14437    { (exit 1); exit 1; }; }
14438          fi;;
14439       esac
14440     done` || { (exit 1); exit 1; }
14441 _ACEOF
14442 cat >>$CONFIG_STATUS <<_ACEOF
14443   sed "$ac_vpsub
14444 $extrasub
14445 _ACEOF
14446 cat >>$CONFIG_STATUS <<\_ACEOF
14447 :t
14448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14449 s,@configure_input@,$configure_input,;t t
14450 s,@srcdir@,$ac_srcdir,;t t
14451 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14452 s,@top_srcdir@,$ac_top_srcdir,;t t
14453 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14454 s,@builddir@,$ac_builddir,;t t
14455 s,@abs_builddir@,$ac_abs_builddir,;t t
14456 s,@top_builddir@,$ac_top_builddir,;t t
14457 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14458 s,@INSTALL@,$ac_INSTALL,;t t
14459 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14460   rm -f $tmp/stdin
14461   if test x"$ac_file" != x-; then
14462     mv $tmp/out $ac_file
14463   else
14464     cat $tmp/out
14465     rm -f $tmp/out
14466   fi
14467
14468 done
14469 _ACEOF
14470 cat >>$CONFIG_STATUS <<\_ACEOF
14471
14472 #
14473 # CONFIG_HEADER section.
14474 #
14475
14476 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14477 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14478 #
14479 # ac_d sets the value in "#define NAME VALUE" lines.
14480 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
14481 ac_dB='[        ].*$,\1#\2'
14482 ac_dC=' '
14483 ac_dD=',;t'
14484 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14485 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
14486 ac_uB='$,\1#\2define\3'
14487 ac_uC=' '
14488 ac_uD=',;t'
14489
14490 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14491   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14492   case $ac_file in
14493   - | *:- | *:-:* ) # input from stdin
14494         cat >$tmp/stdin
14495         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14496         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14497   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14498         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14499   * )   ac_file_in=$ac_file.in ;;
14500   esac
14501
14502   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14503 echo "$as_me: creating $ac_file" >&6;}
14504
14505   # First look for the input files in the build tree, otherwise in the
14506   # src tree.
14507   ac_file_inputs=`IFS=:
14508     for f in $ac_file_in; do
14509       case $f in
14510       -) echo $tmp/stdin ;;
14511       [\\/$]*)
14512          # Absolute (can't be DOS-style, as IFS=:)
14513          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14514 echo "$as_me: error: cannot find input file: $f" >&2;}
14515    { (exit 1); exit 1; }; }
14516          echo $f;;
14517       *) # Relative
14518          if test -f "$f"; then
14519            # Build tree
14520            echo $f
14521          elif test -f "$srcdir/$f"; then
14522            # Source tree
14523            echo $srcdir/$f
14524          else
14525            # /dev/null tree
14526            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14527 echo "$as_me: error: cannot find input file: $f" >&2;}
14528    { (exit 1); exit 1; }; }
14529          fi;;
14530       esac
14531     done` || { (exit 1); exit 1; }
14532   # Remove the trailing spaces.
14533   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
14534
14535 _ACEOF
14536
14537 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14538 # `conftest.undefs', that substitutes the proper values into
14539 # config.h.in to produce config.h.  The first handles `#define'
14540 # templates, and the second `#undef' templates.
14541 # And first: Protect against being on the right side of a sed subst in
14542 # config.status.  Protect against being in an unquoted here document
14543 # in config.status.
14544 rm -f conftest.defines conftest.undefs
14545 # Using a here document instead of a string reduces the quoting nightmare.
14546 # Putting comments in sed scripts is not portable.
14547 #
14548 # `end' is used to avoid that the second main sed command (meant for
14549 # 0-ary CPP macros) applies to n-ary macro definitions.
14550 # See the Autoconf documentation for `clear'.
14551 cat >confdef2sed.sed <<\_ACEOF
14552 s/[\\&,]/\\&/g
14553 s,[\\$`],\\&,g
14554 t clear
14555 : clear
14556 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14557 t end
14558 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14559 : end
14560 _ACEOF
14561 # If some macros were called several times there might be several times
14562 # the same #defines, which is useless.  Nevertheless, we may not want to
14563 # sort them, since we want the *last* AC-DEFINE to be honored.
14564 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14565 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14566 rm -f confdef2sed.sed
14567
14568 # This sed command replaces #undef with comments.  This is necessary, for
14569 # example, in the case of _POSIX_SOURCE, which is predefined and required
14570 # on some systems where configure will not decide to define it.
14571 cat >>conftest.undefs <<\_ACEOF
14572 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14573 _ACEOF
14574
14575 # Break up conftest.defines because some shells have a limit on the size
14576 # of here documents, and old seds have small limits too (100 cmds).
14577 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14578 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14579 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14580 echo '  :' >>$CONFIG_STATUS
14581 rm -f conftest.tail
14582 while grep . conftest.defines >/dev/null
14583 do
14584   # Write a limited-size here document to $tmp/defines.sed.
14585   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14586   # Speed up: don't consider the non `#define' lines.
14587   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
14588   # Work around the forget-to-reset-the-flag bug.
14589   echo 't clr' >>$CONFIG_STATUS
14590   echo ': clr' >>$CONFIG_STATUS
14591   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14592   echo 'CEOF
14593   sed -f $tmp/defines.sed $tmp/in >$tmp/out
14594   rm -f $tmp/in
14595   mv $tmp/out $tmp/in
14596 ' >>$CONFIG_STATUS
14597   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14598   rm -f conftest.defines
14599   mv conftest.tail conftest.defines
14600 done
14601 rm -f conftest.defines
14602 echo '  fi # egrep' >>$CONFIG_STATUS
14603 echo >>$CONFIG_STATUS
14604
14605 # Break up conftest.undefs because some shells have a limit on the size
14606 # of here documents, and old seds have small limits too (100 cmds).
14607 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
14608 rm -f conftest.tail
14609 while grep . conftest.undefs >/dev/null
14610 do
14611   # Write a limited-size here document to $tmp/undefs.sed.
14612   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14613   # Speed up: don't consider the non `#undef'
14614   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
14615   # Work around the forget-to-reset-the-flag bug.
14616   echo 't clr' >>$CONFIG_STATUS
14617   echo ': clr' >>$CONFIG_STATUS
14618   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14619   echo 'CEOF
14620   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14621   rm -f $tmp/in
14622   mv $tmp/out $tmp/in
14623 ' >>$CONFIG_STATUS
14624   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14625   rm -f conftest.undefs
14626   mv conftest.tail conftest.undefs
14627 done
14628 rm -f conftest.undefs
14629
14630 cat >>$CONFIG_STATUS <<\_ACEOF
14631   # Let's still pretend it is `configure' which instantiates (i.e., don't
14632   # use $as_me), people would be surprised to read:
14633   #    /* config.h.  Generated by config.status.  */
14634   if test x"$ac_file" = x-; then
14635     echo "/* Generated by configure.  */" >$tmp/config.h
14636   else
14637     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
14638   fi
14639   cat $tmp/in >>$tmp/config.h
14640   rm -f $tmp/in
14641   if test x"$ac_file" != x-; then
14642     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
14643       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14644 echo "$as_me: $ac_file is unchanged" >&6;}
14645     else
14646       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14647 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14648          X"$ac_file" : 'X\(//\)[^/]' \| \
14649          X"$ac_file" : 'X\(//\)$' \| \
14650          X"$ac_file" : 'X\(/\)' \| \
14651          .     : '\(.\)' 2>/dev/null ||
14652 echo X"$ac_file" |
14653     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14654           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14655           /^X\(\/\/\)$/{ s//\1/; q; }
14656           /^X\(\/\).*/{ s//\1/; q; }
14657           s/.*/./; q'`
14658       { case "$ac_dir" in
14659   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14660   *)                      as_incr_dir=.;;
14661 esac
14662 as_dummy="$ac_dir"
14663 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14664   case $as_mkdir_dir in
14665     # Skip DOS drivespec
14666     ?:) as_incr_dir=$as_mkdir_dir ;;
14667     *)
14668       as_incr_dir=$as_incr_dir/$as_mkdir_dir
14669       test -d "$as_incr_dir" ||
14670         mkdir "$as_incr_dir" ||
14671         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
14672 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
14673    { (exit 1); exit 1; }; }
14674     ;;
14675   esac
14676 done; }
14677
14678       rm -f $ac_file
14679       mv $tmp/config.h $ac_file
14680     fi
14681   else
14682     cat $tmp/config.h
14683     rm -f $tmp/config.h
14684   fi
14685 done
14686 _ACEOF
14687 cat >>$CONFIG_STATUS <<\_ACEOF
14688
14689 #
14690 # CONFIG_COMMANDS section.
14691 #
14692 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14693   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14694   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14695   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14696 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14697          X"$ac_dest" : 'X\(//\)[^/]' \| \
14698          X"$ac_dest" : 'X\(//\)$' \| \
14699          X"$ac_dest" : 'X\(/\)' \| \
14700          .     : '\(.\)' 2>/dev/null ||
14701 echo X"$ac_dest" |
14702     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14703           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14704           /^X\(\/\/\)$/{ s//\1/; q; }
14705           /^X\(\/\).*/{ s//\1/; q; }
14706           s/.*/./; q'`
14707   ac_builddir=.
14708
14709 if test "$ac_dir" != .; then
14710   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14711   # A "../" for each directory in $ac_dir_suffix.
14712   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14713 else
14714   ac_dir_suffix= ac_top_builddir=
14715 fi
14716
14717 case $srcdir in
14718   .)  # No --srcdir option.  We are building in place.
14719     ac_srcdir=.
14720     if test -z "$ac_top_builddir"; then
14721        ac_top_srcdir=.
14722     else
14723        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14724     fi ;;
14725   [\\/]* | ?:[\\/]* )  # Absolute path.
14726     ac_srcdir=$srcdir$ac_dir_suffix;
14727     ac_top_srcdir=$srcdir ;;
14728   *) # Relative path.
14729     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14730     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14731 esac
14732 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14733 # absolute.
14734 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14735 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
14736 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14737 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14738
14739
14740   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14741 echo "$as_me: executing $ac_dest commands" >&6;}
14742   case $ac_dest in
14743     controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
14744 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
14745     dlls/advapi32/tests ) test -d "dlls/advapi32/tests" || ({ echo "$as_me:$LINENO: creating dlls/advapi32/tests" >&5
14746 echo "$as_me: creating dlls/advapi32/tests" >&6;} && mkdir "dlls/advapi32/tests") ;;
14747     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
14748 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
14749     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
14750 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
14751     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
14752 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
14753     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
14754 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
14755     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
14756 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
14757     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
14758 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
14759     dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
14760 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
14761     dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
14762 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
14763     dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
14764 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
14765     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
14766 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
14767     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
14768 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
14769     dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
14770 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
14771     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
14772 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
14773     dlls/kernel/tests ) test -d "dlls/kernel/tests" || ({ echo "$as_me:$LINENO: creating dlls/kernel/tests" >&5
14774 echo "$as_me: creating dlls/kernel/tests" >&6;} && mkdir "dlls/kernel/tests") ;;
14775     dlls/oleaut32/tests ) test -d "dlls/oleaut32/tests" || ({ echo "$as_me:$LINENO: creating dlls/oleaut32/tests" >&5
14776 echo "$as_me: creating dlls/oleaut32/tests" >&6;} && mkdir "dlls/oleaut32/tests") ;;
14777     dlls/shlwapi/tests ) test -d "dlls/shlwapi/tests" || ({ echo "$as_me:$LINENO: creating dlls/shlwapi/tests" >&5
14778 echo "$as_me: creating dlls/shlwapi/tests" >&6;} && mkdir "dlls/shlwapi/tests") ;;
14779     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
14780 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
14781     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
14782 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
14783     dlls/user/tests ) test -d "dlls/user/tests" || ({ echo "$as_me:$LINENO: creating dlls/user/tests" >&5
14784 echo "$as_me: creating dlls/user/tests" >&6;} && mkdir "dlls/user/tests") ;;
14785     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
14786 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
14787     dlls/wininet/tests ) test -d "dlls/wininet/tests" || ({ echo "$as_me:$LINENO: creating dlls/wininet/tests" >&5
14788 echo "$as_me: creating dlls/wininet/tests" >&6;} && mkdir "dlls/wininet/tests") ;;
14789     dlls/winsock/tests ) test -d "dlls/winsock/tests" || ({ echo "$as_me:$LINENO: creating dlls/winsock/tests" >&5
14790 echo "$as_me: creating dlls/winsock/tests" >&6;} && mkdir "dlls/winsock/tests") ;;
14791     files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
14792 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
14793     graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
14794 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
14795     graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
14796 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
14797     if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
14798 echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
14799     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
14800 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
14801     loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
14802 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
14803     loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
14804 echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
14805     memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
14806 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
14807     misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
14808 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
14809     msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
14810 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
14811     objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
14812 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
14813     programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
14814 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
14815     programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
14816 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
14817     programs/winetest/tests ) test -d "programs/winetest/tests" || ({ echo "$as_me:$LINENO: creating programs/winetest/tests" >&5
14818 echo "$as_me: creating programs/winetest/tests" >&6;} && mkdir "programs/winetest/tests") ;;
14819     relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
14820 echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
14821     scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
14822 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
14823     win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
14824 echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
14825     windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
14826 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
14827   esac
14828 done
14829 _ACEOF
14830
14831 cat >>$CONFIG_STATUS <<\_ACEOF
14832
14833 { (exit 0); exit 0; }
14834 _ACEOF
14835 chmod +x $CONFIG_STATUS
14836 ac_clean_files=$ac_clean_files_save
14837
14838
14839 # configure is writing to config.log, and then calls config.status.
14840 # config.status does its own redirection, appending to config.log.
14841 # Unfortunately, on DOS this fails, as config.log is still kept open
14842 # by configure, so config.status won't be able to write to it; its
14843 # output is simply discarded.  So we exec the FD to /dev/null,
14844 # effectively closing config.log, so it can be properly (re)opened and
14845 # appended to by config.status.  When coming back to configure, we
14846 # need to make the FD available again.
14847 if test "$no_create" != yes; then
14848   ac_cs_success=:
14849   exec 5>/dev/null
14850   $SHELL $CONFIG_STATUS || ac_cs_success=false
14851   exec 5>>config.log
14852   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14853   # would make configure fail if this is the last instruction.
14854   $ac_cs_success || { (exit 1); exit 1; }
14855 fi
14856
14857
14858 if test "$have_x" = "no"
14859 then
14860   echo
14861   echo "*** Warning: X development files not found. Wine will be built without"
14862   echo "*** X support, which currently does not work, and would probably not be"
14863   echo "*** what you want anyway. You will need to install devel packages of"
14864   echo "*** Xlib/Xfree86 at the very least."
14865 fi
14866
14867 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
14868 then
14869   echo
14870   echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
14871   echo "*** terminal resize support. Consider upgrading ncurses."
14872 fi
14873
14874 if test "$wine_cv_libc_reentrant" = "no"
14875 then
14876   echo
14877   echo "*** Warning: non-reentrant libc detected. Wine will be built without"
14878   echo "*** threading support. Consider upgrading libc to a more recent"
14879   echo "*** reentrant version of libc."
14880 fi
14881
14882 if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
14883 then
14884   echo
14885   echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
14886   echo "*** applications won't work properly. You should upgrade your X11 library."
14887 fi
14888
14889 if test "$wine_cv_opengl_version_OK" = "no"
14890 then
14891   echo
14892   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
14893   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
14894 fi
14895
14896 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x"
14897 then
14898   echo
14899   echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
14900   echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
14901   echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
14902   echo "*** start configure with '--enable-opengl' to force OpenGL support."
14903 fi
14904
14905 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes"
14906 then
14907   echo
14908   echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
14909   echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
14910   echo "*** support before reporting bugs."
14911 fi
14912
14913 if test "$wine_cv_warn_cups_h" = "yes"
14914 then
14915   echo
14916   echo "*** Note: You have cups runtime libraries, but no development"
14917   echo "*** libraries. Install the cups-devel package or whichever package"
14918   echo "*** contains cups.h to enable CUPS support in Wine."
14919 fi
14920
14921 if test "$wine_cv_msg_freetype" = "yes"
14922 then
14923   echo
14924   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
14925   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
14926   echo "*** freetype-devel package (or its equivalent on your distribution) to"
14927   echo "*** enable Wine to use TrueType fonts."
14928 fi
14929
14930 echo
14931 echo "Configure finished.  Do 'make depend && make' to compile Wine."
14932 echo
14933