Added some tests.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for Wine 20020411.
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='20020411'
258 PACKAGE_STRING='Wine 20020411'
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 20020411 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   --target=TARGET   configure for building compilers for TARGET [HOST]
824 _ACEOF
825 fi
826
827 if test -n "$ac_init_help"; then
828   case $ac_init_help in
829      short | recursive ) echo "Configuration of Wine 20020411:";;
830    esac
831   cat <<\_ACEOF
832
833 Optional Features:
834   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
835   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
836   --disable-debug         compile out all debugging messages
837   --disable-trace         compile out TRACE messages
838   --enable-opengl         force usage of OpenGL even if the latter is
839                           thread-safe via pthread
840
841 Optional Packages:
842   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
843   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
844   --without-curses        do not use curses
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 20020411
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 20020411, 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
1269 if test "x$enable_debug" = "xno"
1270 then
1271
1272 cat >>confdefs.h <<\_ACEOF
1273 #define NO_DEBUG_MSGS 1
1274 _ACEOF
1275
1276 fi
1277 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1278 then
1279
1280 cat >>confdefs.h <<\_ACEOF
1281 #define NO_TRACE_MSGS 1
1282 _ACEOF
1283
1284 fi
1285
1286
1287 # Make sure we can run config.sub.
1288 $ac_config_sub sun4 >/dev/null 2>&1 ||
1289   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1290 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1291    { (exit 1); exit 1; }; }
1292
1293 echo "$as_me:$LINENO: checking build system type" >&5
1294 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1295 if test "${ac_cv_build+set}" = set; then
1296   echo $ECHO_N "(cached) $ECHO_C" >&6
1297 else
1298   ac_cv_build_alias=$build_alias
1299 test -z "$ac_cv_build_alias" &&
1300   ac_cv_build_alias=`$ac_config_guess`
1301 test -z "$ac_cv_build_alias" &&
1302   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1303 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1304    { (exit 1); exit 1; }; }
1305 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1306   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1307 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1308    { (exit 1); exit 1; }; }
1309
1310 fi
1311 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1312 echo "${ECHO_T}$ac_cv_build" >&6
1313 build=$ac_cv_build
1314 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1315 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1316 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1317
1318
1319 echo "$as_me:$LINENO: checking host system type" >&5
1320 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1321 if test "${ac_cv_host+set}" = set; then
1322   echo $ECHO_N "(cached) $ECHO_C" >&6
1323 else
1324   ac_cv_host_alias=$host_alias
1325 test -z "$ac_cv_host_alias" &&
1326   ac_cv_host_alias=$ac_cv_build_alias
1327 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1328   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1329 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1330    { (exit 1); exit 1; }; }
1331
1332 fi
1333 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1334 echo "${ECHO_T}$ac_cv_host" >&6
1335 host=$ac_cv_host
1336 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1337 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1338 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1339
1340
1341 echo "$as_me:$LINENO: checking target system type" >&5
1342 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1343 if test "${ac_cv_target+set}" = set; then
1344   echo $ECHO_N "(cached) $ECHO_C" >&6
1345 else
1346   ac_cv_target_alias=$target_alias
1347 test "x$ac_cv_target_alias" = "x" &&
1348   ac_cv_target_alias=$ac_cv_host_alias
1349 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1350   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1351 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1352    { (exit 1); exit 1; }; }
1353
1354 fi
1355 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1356 echo "${ECHO_T}$ac_cv_target" >&6
1357 target=$ac_cv_target
1358 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1359 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1360 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1361
1362
1363 # The aliases save the names the user supplied, while $host etc.
1364 # will get canonicalized.
1365 test -n "$target_alias" &&
1366   test "$program_prefix$program_suffix$program_transform_name" = \
1367     NONENONEs,x,x, &&
1368   program_prefix=${target_alias}-
1369 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1370 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1371 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1372 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1373   echo $ECHO_N "(cached) $ECHO_C" >&6
1374 else
1375   cat >conftest.make <<\_ACEOF
1376 all:
1377         @echo 'ac_maketemp="${MAKE}"'
1378 _ACEOF
1379 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1380 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1381 if test -n "$ac_maketemp"; then
1382   eval ac_cv_prog_make_${ac_make}_set=yes
1383 else
1384   eval ac_cv_prog_make_${ac_make}_set=no
1385 fi
1386 rm -f conftest.make
1387 fi
1388 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1389   echo "$as_me:$LINENO: result: yes" >&5
1390 echo "${ECHO_T}yes" >&6
1391   SET_MAKE=
1392 else
1393   echo "$as_me:$LINENO: result: no" >&5
1394 echo "${ECHO_T}no" >&6
1395   SET_MAKE="MAKE=${MAKE-make}"
1396 fi
1397
1398 ac_ext=c
1399 ac_cpp='$CPP $CPPFLAGS'
1400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1403 if test -n "$ac_tool_prefix"; then
1404   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1405 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1406 echo "$as_me:$LINENO: checking for $ac_word" >&5
1407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408 if test "${ac_cv_prog_CC+set}" = set; then
1409   echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411   if test -n "$CC"; then
1412   ac_cv_prog_CC="$CC" # Let the user override the test.
1413 else
1414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1415 for as_dir in $PATH
1416 do
1417   IFS=$as_save_IFS
1418   test -z "$as_dir" && as_dir=.
1419   for ac_exec_ext in '' $ac_executable_extensions; do
1420   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1421     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1423     break 2
1424   fi
1425 done
1426 done
1427
1428 fi
1429 fi
1430 CC=$ac_cv_prog_CC
1431 if test -n "$CC"; then
1432   echo "$as_me:$LINENO: result: $CC" >&5
1433 echo "${ECHO_T}$CC" >&6
1434 else
1435   echo "$as_me:$LINENO: result: no" >&5
1436 echo "${ECHO_T}no" >&6
1437 fi
1438
1439 fi
1440 if test -z "$ac_cv_prog_CC"; then
1441   ac_ct_CC=$CC
1442   # Extract the first word of "gcc", so it can be a program name with args.
1443 set dummy gcc; ac_word=$2
1444 echo "$as_me:$LINENO: checking for $ac_word" >&5
1445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1447   echo $ECHO_N "(cached) $ECHO_C" >&6
1448 else
1449   if test -n "$ac_ct_CC"; then
1450   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1451 else
1452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453 for as_dir in $PATH
1454 do
1455   IFS=$as_save_IFS
1456   test -z "$as_dir" && as_dir=.
1457   for ac_exec_ext in '' $ac_executable_extensions; do
1458   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1459     ac_cv_prog_ac_ct_CC="gcc"
1460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461     break 2
1462   fi
1463 done
1464 done
1465
1466 fi
1467 fi
1468 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1469 if test -n "$ac_ct_CC"; then
1470   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1471 echo "${ECHO_T}$ac_ct_CC" >&6
1472 else
1473   echo "$as_me:$LINENO: result: no" >&5
1474 echo "${ECHO_T}no" >&6
1475 fi
1476
1477   CC=$ac_ct_CC
1478 else
1479   CC="$ac_cv_prog_CC"
1480 fi
1481
1482 if test -z "$CC"; then
1483   if test -n "$ac_tool_prefix"; then
1484   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1485 set dummy ${ac_tool_prefix}cc; ac_word=$2
1486 echo "$as_me:$LINENO: checking for $ac_word" >&5
1487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1488 if test "${ac_cv_prog_CC+set}" = set; then
1489   echo $ECHO_N "(cached) $ECHO_C" >&6
1490 else
1491   if test -n "$CC"; then
1492   ac_cv_prog_CC="$CC" # Let the user override the test.
1493 else
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 for as_dir in $PATH
1496 do
1497   IFS=$as_save_IFS
1498   test -z "$as_dir" && as_dir=.
1499   for ac_exec_ext in '' $ac_executable_extensions; do
1500   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1501     ac_cv_prog_CC="${ac_tool_prefix}cc"
1502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1503     break 2
1504   fi
1505 done
1506 done
1507
1508 fi
1509 fi
1510 CC=$ac_cv_prog_CC
1511 if test -n "$CC"; then
1512   echo "$as_me:$LINENO: result: $CC" >&5
1513 echo "${ECHO_T}$CC" >&6
1514 else
1515   echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1517 fi
1518
1519 fi
1520 if test -z "$ac_cv_prog_CC"; then
1521   ac_ct_CC=$CC
1522   # Extract the first word of "cc", so it can be a program name with args.
1523 set dummy cc; ac_word=$2
1524 echo "$as_me:$LINENO: checking for $ac_word" >&5
1525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1527   echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529   if test -n "$ac_ct_CC"; then
1530   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1531 else
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533 for as_dir in $PATH
1534 do
1535   IFS=$as_save_IFS
1536   test -z "$as_dir" && as_dir=.
1537   for ac_exec_ext in '' $ac_executable_extensions; do
1538   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539     ac_cv_prog_ac_ct_CC="cc"
1540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541     break 2
1542   fi
1543 done
1544 done
1545
1546 fi
1547 fi
1548 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1549 if test -n "$ac_ct_CC"; then
1550   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1551 echo "${ECHO_T}$ac_ct_CC" >&6
1552 else
1553   echo "$as_me:$LINENO: result: no" >&5
1554 echo "${ECHO_T}no" >&6
1555 fi
1556
1557   CC=$ac_ct_CC
1558 else
1559   CC="$ac_cv_prog_CC"
1560 fi
1561
1562 fi
1563 if test -z "$CC"; then
1564   # Extract the first word of "cc", so it can be a program name with args.
1565 set dummy cc; ac_word=$2
1566 echo "$as_me:$LINENO: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_CC+set}" = set; then
1569   echo $ECHO_N "(cached) $ECHO_C" >&6
1570 else
1571   if test -n "$CC"; then
1572   ac_cv_prog_CC="$CC" # Let the user override the test.
1573 else
1574   ac_prog_rejected=no
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 for as_dir in $PATH
1577 do
1578   IFS=$as_save_IFS
1579   test -z "$as_dir" && as_dir=.
1580   for ac_exec_ext in '' $ac_executable_extensions; do
1581   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1583        ac_prog_rejected=yes
1584        continue
1585      fi
1586     ac_cv_prog_CC="cc"
1587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588     break 2
1589   fi
1590 done
1591 done
1592
1593 if test $ac_prog_rejected = yes; then
1594   # We found a bogon in the path, so make sure we never use it.
1595   set dummy $ac_cv_prog_CC
1596   shift
1597   if test $# != 0; then
1598     # We chose a different compiler from the bogus one.
1599     # However, it has the same basename, so the bogon will be chosen
1600     # first if we set CC to just the basename; use the full file name.
1601     shift
1602     set dummy "$as_dir/$ac_word" ${1+"$@"}
1603     shift
1604     ac_cv_prog_CC="$@"
1605   fi
1606 fi
1607 fi
1608 fi
1609 CC=$ac_cv_prog_CC
1610 if test -n "$CC"; then
1611   echo "$as_me:$LINENO: result: $CC" >&5
1612 echo "${ECHO_T}$CC" >&6
1613 else
1614   echo "$as_me:$LINENO: result: no" >&5
1615 echo "${ECHO_T}no" >&6
1616 fi
1617
1618 fi
1619 if test -z "$CC"; then
1620   if test -n "$ac_tool_prefix"; then
1621   for ac_prog in cl
1622   do
1623     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1625 echo "$as_me:$LINENO: checking for $ac_word" >&5
1626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627 if test "${ac_cv_prog_CC+set}" = set; then
1628   echo $ECHO_N "(cached) $ECHO_C" >&6
1629 else
1630   if test -n "$CC"; then
1631   ac_cv_prog_CC="$CC" # Let the user override the test.
1632 else
1633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 for as_dir in $PATH
1635 do
1636   IFS=$as_save_IFS
1637   test -z "$as_dir" && as_dir=.
1638   for ac_exec_ext in '' $ac_executable_extensions; do
1639   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1640     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1642     break 2
1643   fi
1644 done
1645 done
1646
1647 fi
1648 fi
1649 CC=$ac_cv_prog_CC
1650 if test -n "$CC"; then
1651   echo "$as_me:$LINENO: result: $CC" >&5
1652 echo "${ECHO_T}$CC" >&6
1653 else
1654   echo "$as_me:$LINENO: result: no" >&5
1655 echo "${ECHO_T}no" >&6
1656 fi
1657
1658     test -n "$CC" && break
1659   done
1660 fi
1661 if test -z "$CC"; then
1662   ac_ct_CC=$CC
1663   for ac_prog in cl
1664 do
1665   # Extract the first word of "$ac_prog", so it can be a program name with args.
1666 set dummy $ac_prog; ac_word=$2
1667 echo "$as_me:$LINENO: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1670   echo $ECHO_N "(cached) $ECHO_C" >&6
1671 else
1672   if test -n "$ac_ct_CC"; then
1673   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1674 else
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 for as_dir in $PATH
1677 do
1678   IFS=$as_save_IFS
1679   test -z "$as_dir" && as_dir=.
1680   for ac_exec_ext in '' $ac_executable_extensions; do
1681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682     ac_cv_prog_ac_ct_CC="$ac_prog"
1683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684     break 2
1685   fi
1686 done
1687 done
1688
1689 fi
1690 fi
1691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1692 if test -n "$ac_ct_CC"; then
1693   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1694 echo "${ECHO_T}$ac_ct_CC" >&6
1695 else
1696   echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1698 fi
1699
1700   test -n "$ac_ct_CC" && break
1701 done
1702
1703   CC=$ac_ct_CC
1704 fi
1705
1706 fi
1707
1708
1709 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1710 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1711    { (exit 1); exit 1; }; }
1712
1713 # Provide some information about the compiler.
1714 echo "$as_me:$LINENO:" \
1715      "checking for C compiler version" >&5
1716 ac_compiler=`set X $ac_compile; echo $2`
1717 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1718   (eval $ac_compiler --version </dev/null >&5) 2>&5
1719   ac_status=$?
1720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1721   (exit $ac_status); }
1722 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1723   (eval $ac_compiler -v </dev/null >&5) 2>&5
1724   ac_status=$?
1725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1726   (exit $ac_status); }
1727 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1728   (eval $ac_compiler -V </dev/null >&5) 2>&5
1729   ac_status=$?
1730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731   (exit $ac_status); }
1732
1733 cat >conftest.$ac_ext <<_ACEOF
1734 #line $LINENO "configure"
1735 #include "confdefs.h"
1736
1737 #ifdef F77_DUMMY_MAIN
1738 #  ifdef __cplusplus
1739      extern "C"
1740 #  endif
1741    int F77_DUMMY_MAIN() { return 1; }
1742 #endif
1743 int
1744 main ()
1745 {
1746
1747   ;
1748   return 0;
1749 }
1750 _ACEOF
1751 ac_clean_files_save=$ac_clean_files
1752 ac_clean_files="$ac_clean_files a.out a.exe"
1753 # Try to create an executable without -o first, disregard a.out.
1754 # It will help us diagnose broken compilers, and finding out an intuition
1755 # of exeext.
1756 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1757 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1758 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1759 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1760   (eval $ac_link_default) 2>&5
1761   ac_status=$?
1762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763   (exit $ac_status); }; then
1764   # Find the output, starting from the most likely.  This scheme is
1765 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1766 # resort.
1767
1768 # Be careful to initialize this variable, since it used to be cached.
1769 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1770 ac_cv_exeext=
1771 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1772                 ls a.out conftest 2>/dev/null;
1773                 ls a.* conftest.* 2>/dev/null`; do
1774   case $ac_file in
1775     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1776     a.out ) # We found the default executable, but exeext='' is most
1777             # certainly right.
1778             break;;
1779     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1780           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1781           export ac_cv_exeext
1782           break;;
1783     * ) break;;
1784   esac
1785 done
1786 else
1787   echo "$as_me: failed program was:" >&5
1788 cat conftest.$ac_ext >&5
1789 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1790 echo "$as_me: error: C compiler cannot create executables" >&2;}
1791    { (exit 77); exit 77; }; }
1792 fi
1793
1794 ac_exeext=$ac_cv_exeext
1795 echo "$as_me:$LINENO: result: $ac_file" >&5
1796 echo "${ECHO_T}$ac_file" >&6
1797
1798 # Check the compiler produces executables we can run.  If not, either
1799 # the compiler is broken, or we cross compile.
1800 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1801 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1802 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1803 # If not cross compiling, check that we can run a simple program.
1804 if test "$cross_compiling" != yes; then
1805   if { ac_try='./$ac_file'
1806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1807   (eval $ac_try) 2>&5
1808   ac_status=$?
1809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1810   (exit $ac_status); }; }; then
1811     cross_compiling=no
1812   else
1813     if test "$cross_compiling" = maybe; then
1814         cross_compiling=yes
1815     else
1816         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1817 If you meant to cross compile, use \`--host'." >&5
1818 echo "$as_me: error: cannot run C compiled programs.
1819 If you meant to cross compile, use \`--host'." >&2;}
1820    { (exit 1); exit 1; }; }
1821     fi
1822   fi
1823 fi
1824 echo "$as_me:$LINENO: result: yes" >&5
1825 echo "${ECHO_T}yes" >&6
1826
1827 rm -f a.out a.exe conftest$ac_cv_exeext
1828 ac_clean_files=$ac_clean_files_save
1829 # Check the compiler produces executables we can run.  If not, either
1830 # the compiler is broken, or we cross compile.
1831 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1832 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1833 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1834 echo "${ECHO_T}$cross_compiling" >&6
1835
1836 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1837 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1839   (eval $ac_link) 2>&5
1840   ac_status=$?
1841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842   (exit $ac_status); }; then
1843   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1844 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1845 # work properly (i.e., refer to `conftest.exe'), while it won't with
1846 # `rm'.
1847 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1848   case $ac_file in
1849     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1850     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1851           export ac_cv_exeext
1852           break;;
1853     * ) break;;
1854   esac
1855 done
1856 else
1857   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1858 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1859    { (exit 1); exit 1; }; }
1860 fi
1861
1862 rm -f conftest$ac_cv_exeext
1863 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1864 echo "${ECHO_T}$ac_cv_exeext" >&6
1865
1866 rm -f conftest.$ac_ext
1867 EXEEXT=$ac_cv_exeext
1868 ac_exeext=$EXEEXT
1869 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1870 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1871 if test "${ac_cv_objext+set}" = set; then
1872   echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874   cat >conftest.$ac_ext <<_ACEOF
1875 #line $LINENO "configure"
1876 #include "confdefs.h"
1877
1878 #ifdef F77_DUMMY_MAIN
1879 #  ifdef __cplusplus
1880      extern "C"
1881 #  endif
1882    int F77_DUMMY_MAIN() { return 1; }
1883 #endif
1884 int
1885 main ()
1886 {
1887
1888   ;
1889   return 0;
1890 }
1891 _ACEOF
1892 rm -f conftest.o conftest.obj
1893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1894   (eval $ac_compile) 2>&5
1895   ac_status=$?
1896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897   (exit $ac_status); }; then
1898   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1899   case $ac_file in
1900     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1901     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1902        break;;
1903   esac
1904 done
1905 else
1906   echo "$as_me: failed program was:" >&5
1907 cat conftest.$ac_ext >&5
1908 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1909 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1910    { (exit 1); exit 1; }; }
1911 fi
1912
1913 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1914 fi
1915 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1916 echo "${ECHO_T}$ac_cv_objext" >&6
1917 OBJEXT=$ac_cv_objext
1918 ac_objext=$OBJEXT
1919 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1920 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1921 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1922   echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924   cat >conftest.$ac_ext <<_ACEOF
1925 #line $LINENO "configure"
1926 #include "confdefs.h"
1927
1928 #ifdef F77_DUMMY_MAIN
1929 #  ifdef __cplusplus
1930      extern "C"
1931 #  endif
1932    int F77_DUMMY_MAIN() { return 1; }
1933 #endif
1934 int
1935 main ()
1936 {
1937 #ifndef __GNUC__
1938        choke me
1939 #endif
1940
1941   ;
1942   return 0;
1943 }
1944 _ACEOF
1945 rm -f conftest.$ac_objext
1946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1947   (eval $ac_compile) 2>&5
1948   ac_status=$?
1949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950   (exit $ac_status); } &&
1951          { ac_try='test -s conftest.$ac_objext'
1952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953   (eval $ac_try) 2>&5
1954   ac_status=$?
1955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956   (exit $ac_status); }; }; then
1957   ac_compiler_gnu=yes
1958 else
1959   echo "$as_me: failed program was:" >&5
1960 cat conftest.$ac_ext >&5
1961 ac_compiler_gnu=no
1962 fi
1963 rm -f conftest.$ac_objext conftest.$ac_ext
1964 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1965
1966 fi
1967 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1968 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1969 GCC=`test $ac_compiler_gnu = yes && echo yes`
1970 ac_test_CFLAGS=${CFLAGS+set}
1971 ac_save_CFLAGS=$CFLAGS
1972 CFLAGS="-g"
1973 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1974 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1975 if test "${ac_cv_prog_cc_g+set}" = set; then
1976   echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978   cat >conftest.$ac_ext <<_ACEOF
1979 #line $LINENO "configure"
1980 #include "confdefs.h"
1981
1982 #ifdef F77_DUMMY_MAIN
1983 #  ifdef __cplusplus
1984      extern "C"
1985 #  endif
1986    int F77_DUMMY_MAIN() { return 1; }
1987 #endif
1988 int
1989 main ()
1990 {
1991
1992   ;
1993   return 0;
1994 }
1995 _ACEOF
1996 rm -f conftest.$ac_objext
1997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1998   (eval $ac_compile) 2>&5
1999   ac_status=$?
2000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001   (exit $ac_status); } &&
2002          { ac_try='test -s conftest.$ac_objext'
2003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004   (eval $ac_try) 2>&5
2005   ac_status=$?
2006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007   (exit $ac_status); }; }; then
2008   ac_cv_prog_cc_g=yes
2009 else
2010   echo "$as_me: failed program was:" >&5
2011 cat conftest.$ac_ext >&5
2012 ac_cv_prog_cc_g=no
2013 fi
2014 rm -f conftest.$ac_objext conftest.$ac_ext
2015 fi
2016 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2017 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2018 if test "$ac_test_CFLAGS" = set; then
2019   CFLAGS=$ac_save_CFLAGS
2020 elif test $ac_cv_prog_cc_g = yes; then
2021   if test "$GCC" = yes; then
2022     CFLAGS="-g -O2"
2023   else
2024     CFLAGS="-g"
2025   fi
2026 else
2027   if test "$GCC" = yes; then
2028     CFLAGS="-O2"
2029   else
2030     CFLAGS=
2031   fi
2032 fi
2033 # Some people use a C++ compiler to compile C.  Since we use `exit',
2034 # in C++ we need to declare it.  In case someone uses the same compiler
2035 # for both compiling C and C++ we need to have the C++ compiler decide
2036 # the declaration of exit, since it's the most demanding environment.
2037 cat >conftest.$ac_ext <<_ACEOF
2038 #ifndef __cplusplus
2039   choke me
2040 #endif
2041 _ACEOF
2042 rm -f conftest.$ac_objext
2043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2044   (eval $ac_compile) 2>&5
2045   ac_status=$?
2046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047   (exit $ac_status); } &&
2048          { ac_try='test -s conftest.$ac_objext'
2049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2050   (eval $ac_try) 2>&5
2051   ac_status=$?
2052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053   (exit $ac_status); }; }; then
2054   for ac_declaration in \
2055    ''\
2056    '#include <stdlib.h>' \
2057    'extern "C" void std::exit (int) throw (); using std::exit;' \
2058    'extern "C" void std::exit (int); using std::exit;' \
2059    'extern "C" void exit (int) throw ();' \
2060    'extern "C" void exit (int);' \
2061    'void exit (int);'
2062 do
2063   cat >conftest.$ac_ext <<_ACEOF
2064 #line $LINENO "configure"
2065 #include "confdefs.h"
2066 #include <stdlib.h>
2067 $ac_declaration
2068 #ifdef F77_DUMMY_MAIN
2069 #  ifdef __cplusplus
2070      extern "C"
2071 #  endif
2072    int F77_DUMMY_MAIN() { return 1; }
2073 #endif
2074 int
2075 main ()
2076 {
2077 exit (42);
2078   ;
2079   return 0;
2080 }
2081 _ACEOF
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084   (eval $ac_compile) 2>&5
2085   ac_status=$?
2086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087   (exit $ac_status); } &&
2088          { ac_try='test -s conftest.$ac_objext'
2089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090   (eval $ac_try) 2>&5
2091   ac_status=$?
2092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093   (exit $ac_status); }; }; then
2094   :
2095 else
2096   echo "$as_me: failed program was:" >&5
2097 cat conftest.$ac_ext >&5
2098 continue
2099 fi
2100 rm -f conftest.$ac_objext conftest.$ac_ext
2101   cat >conftest.$ac_ext <<_ACEOF
2102 #line $LINENO "configure"
2103 #include "confdefs.h"
2104 $ac_declaration
2105 #ifdef F77_DUMMY_MAIN
2106 #  ifdef __cplusplus
2107      extern "C"
2108 #  endif
2109    int F77_DUMMY_MAIN() { return 1; }
2110 #endif
2111 int
2112 main ()
2113 {
2114 exit (42);
2115   ;
2116   return 0;
2117 }
2118 _ACEOF
2119 rm -f conftest.$ac_objext
2120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2121   (eval $ac_compile) 2>&5
2122   ac_status=$?
2123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124   (exit $ac_status); } &&
2125          { ac_try='test -s conftest.$ac_objext'
2126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127   (eval $ac_try) 2>&5
2128   ac_status=$?
2129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130   (exit $ac_status); }; }; then
2131   break
2132 else
2133   echo "$as_me: failed program was:" >&5
2134 cat conftest.$ac_ext >&5
2135 fi
2136 rm -f conftest.$ac_objext conftest.$ac_ext
2137 done
2138 rm -f conftest*
2139 if test -n "$ac_declaration"; then
2140   echo '#ifdef __cplusplus' >>confdefs.h
2141   echo $ac_declaration      >>confdefs.h
2142   echo '#endif'             >>confdefs.h
2143 fi
2144
2145 else
2146   echo "$as_me: failed program was:" >&5
2147 cat conftest.$ac_ext >&5
2148 fi
2149 rm -f conftest.$ac_objext conftest.$ac_ext
2150 ac_ext=c
2151 ac_cpp='$CPP $CPPFLAGS'
2152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2155
2156 ac_ext=c
2157 ac_cpp='$CPP $CPPFLAGS'
2158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2161 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2162 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2163 # On Suns, sometimes $CPP names a directory.
2164 if test -n "$CPP" && test -d "$CPP"; then
2165   CPP=
2166 fi
2167 if test -z "$CPP"; then
2168   if test "${ac_cv_prog_CPP+set}" = set; then
2169   echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171       # Double quotes because CPP needs to be expanded
2172     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2173     do
2174       ac_preproc_ok=false
2175 for ac_c_preproc_warn_flag in '' yes
2176 do
2177   # Use a header file that comes with gcc, so configuring glibc
2178   # with a fresh cross-compiler works.
2179   # On the NeXT, cc -E runs the code through the compiler's parser,
2180   # not just through cpp. "Syntax error" is here to catch this case.
2181   cat >conftest.$ac_ext <<_ACEOF
2182 #line $LINENO "configure"
2183 #include "confdefs.h"
2184 #include <assert.h>
2185                      Syntax error
2186 _ACEOF
2187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2188   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2189   ac_status=$?
2190   egrep -v '^ *\+' conftest.er1 >conftest.err
2191   rm -f conftest.er1
2192   cat conftest.err >&5
2193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194   (exit $ac_status); } >/dev/null; then
2195   if test -s conftest.err; then
2196     ac_cpp_err=$ac_c_preproc_warn_flag
2197   else
2198     ac_cpp_err=
2199   fi
2200 else
2201   ac_cpp_err=yes
2202 fi
2203 if test -z "$ac_cpp_err"; then
2204   :
2205 else
2206   echo "$as_me: failed program was:" >&5
2207   cat conftest.$ac_ext >&5
2208   # Broken: fails on valid input.
2209 continue
2210 fi
2211 rm -f conftest.err conftest.$ac_ext
2212
2213   # OK, works on sane cases.  Now check whether non-existent headers
2214   # can be detected and how.
2215   cat >conftest.$ac_ext <<_ACEOF
2216 #line $LINENO "configure"
2217 #include "confdefs.h"
2218 #include <ac_nonexistent.h>
2219 _ACEOF
2220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2221   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2222   ac_status=$?
2223   egrep -v '^ *\+' conftest.er1 >conftest.err
2224   rm -f conftest.er1
2225   cat conftest.err >&5
2226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227   (exit $ac_status); } >/dev/null; then
2228   if test -s conftest.err; then
2229     ac_cpp_err=$ac_c_preproc_warn_flag
2230   else
2231     ac_cpp_err=
2232   fi
2233 else
2234   ac_cpp_err=yes
2235 fi
2236 if test -z "$ac_cpp_err"; then
2237   # Broken: success on invalid input.
2238 continue
2239 else
2240   echo "$as_me: failed program was:" >&5
2241   cat conftest.$ac_ext >&5
2242   # Passes both tests.
2243 ac_preproc_ok=:
2244 break
2245 fi
2246 rm -f conftest.err conftest.$ac_ext
2247
2248 done
2249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2250 rm -f conftest.err conftest.$ac_ext
2251 if $ac_preproc_ok; then
2252   break
2253 fi
2254
2255     done
2256     ac_cv_prog_CPP=$CPP
2257
2258 fi
2259   CPP=$ac_cv_prog_CPP
2260 else
2261   ac_cv_prog_CPP=$CPP
2262 fi
2263 echo "$as_me:$LINENO: result: $CPP" >&5
2264 echo "${ECHO_T}$CPP" >&6
2265 ac_preproc_ok=false
2266 for ac_c_preproc_warn_flag in '' yes
2267 do
2268   # Use a header file that comes with gcc, so configuring glibc
2269   # with a fresh cross-compiler works.
2270   # On the NeXT, cc -E runs the code through the compiler's parser,
2271   # not just through cpp. "Syntax error" is here to catch this case.
2272   cat >conftest.$ac_ext <<_ACEOF
2273 #line $LINENO "configure"
2274 #include "confdefs.h"
2275 #include <assert.h>
2276                      Syntax error
2277 _ACEOF
2278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2279   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2280   ac_status=$?
2281   egrep -v '^ *\+' conftest.er1 >conftest.err
2282   rm -f conftest.er1
2283   cat conftest.err >&5
2284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285   (exit $ac_status); } >/dev/null; then
2286   if test -s conftest.err; then
2287     ac_cpp_err=$ac_c_preproc_warn_flag
2288   else
2289     ac_cpp_err=
2290   fi
2291 else
2292   ac_cpp_err=yes
2293 fi
2294 if test -z "$ac_cpp_err"; then
2295   :
2296 else
2297   echo "$as_me: failed program was:" >&5
2298   cat conftest.$ac_ext >&5
2299   # Broken: fails on valid input.
2300 continue
2301 fi
2302 rm -f conftest.err conftest.$ac_ext
2303
2304   # OK, works on sane cases.  Now check whether non-existent headers
2305   # can be detected and how.
2306   cat >conftest.$ac_ext <<_ACEOF
2307 #line $LINENO "configure"
2308 #include "confdefs.h"
2309 #include <ac_nonexistent.h>
2310 _ACEOF
2311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2312   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2313   ac_status=$?
2314   egrep -v '^ *\+' conftest.er1 >conftest.err
2315   rm -f conftest.er1
2316   cat conftest.err >&5
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); } >/dev/null; then
2319   if test -s conftest.err; then
2320     ac_cpp_err=$ac_c_preproc_warn_flag
2321   else
2322     ac_cpp_err=
2323   fi
2324 else
2325   ac_cpp_err=yes
2326 fi
2327 if test -z "$ac_cpp_err"; then
2328   # Broken: success on invalid input.
2329 continue
2330 else
2331   echo "$as_me: failed program was:" >&5
2332   cat conftest.$ac_ext >&5
2333   # Passes both tests.
2334 ac_preproc_ok=:
2335 break
2336 fi
2337 rm -f conftest.err conftest.$ac_ext
2338
2339 done
2340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2341 rm -f conftest.err conftest.$ac_ext
2342 if $ac_preproc_ok; then
2343   :
2344 else
2345   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2346 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2347    { (exit 1); exit 1; }; }
2348 fi
2349
2350 ac_ext=c
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355
2356
2357
2358 echo "$as_me:$LINENO: checking for X" >&5
2359 echo $ECHO_N "checking for X... $ECHO_C" >&6
2360
2361
2362 # Check whether --with-x or --without-x was given.
2363 if test "${with_x+set}" = set; then
2364   withval="$with_x"
2365
2366 fi;
2367 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2368 if test "x$with_x" = xno; then
2369   # The user explicitly disabled X.
2370   have_x=disabled
2371 else
2372   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2373     # Both variables are already set.
2374     have_x=yes
2375   else
2376     if test "${ac_cv_have_x+set}" = set; then
2377   echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379   # One or both of the vars are not set, and there is no cached value.
2380 ac_x_includes=no ac_x_libraries=no
2381 rm -fr conftest.dir
2382 if mkdir conftest.dir; then
2383   cd conftest.dir
2384   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2385   cat >Imakefile <<'_ACEOF'
2386 acfindx:
2387         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2388 _ACEOF
2389   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2390     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2391     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2392     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2393     for ac_extension in a so sl; do
2394       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2395          test -f $ac_im_libdir/libX11.$ac_extension; then
2396         ac_im_usrlibdir=$ac_im_libdir; break
2397       fi
2398     done
2399     # Screen out bogus values from the imake configuration.  They are
2400     # bogus both because they are the default anyway, and because
2401     # using them would break gcc on systems where it needs fixed includes.
2402     case $ac_im_incroot in
2403         /usr/include) ;;
2404         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2405     esac
2406     case $ac_im_usrlibdir in
2407         /usr/lib | /lib) ;;
2408         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2409     esac
2410   fi
2411   cd ..
2412   rm -fr conftest.dir
2413 fi
2414
2415 # Standard set of common directories for X headers.
2416 # Check X11 before X11Rn because it is often a symlink to the current release.
2417 ac_x_header_dirs='
2418 /usr/X11/include
2419 /usr/X11R6/include
2420 /usr/X11R5/include
2421 /usr/X11R4/include
2422
2423 /usr/include/X11
2424 /usr/include/X11R6
2425 /usr/include/X11R5
2426 /usr/include/X11R4
2427
2428 /usr/local/X11/include
2429 /usr/local/X11R6/include
2430 /usr/local/X11R5/include
2431 /usr/local/X11R4/include
2432
2433 /usr/local/include/X11
2434 /usr/local/include/X11R6
2435 /usr/local/include/X11R5
2436 /usr/local/include/X11R4
2437
2438 /usr/X386/include
2439 /usr/x386/include
2440 /usr/XFree86/include/X11
2441
2442 /usr/include
2443 /usr/local/include
2444 /usr/unsupported/include
2445 /usr/athena/include
2446 /usr/local/x11r5/include
2447 /usr/lpp/Xamples/include
2448
2449 /usr/openwin/include
2450 /usr/openwin/share/include'
2451
2452 if test "$ac_x_includes" = no; then
2453   # Guess where to find include files, by looking for Intrinsic.h.
2454   # First, try using that file with no special directory specified.
2455   cat >conftest.$ac_ext <<_ACEOF
2456 #line $LINENO "configure"
2457 #include "confdefs.h"
2458 #include <X11/Intrinsic.h>
2459 _ACEOF
2460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2461   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2462   ac_status=$?
2463   egrep -v '^ *\+' conftest.er1 >conftest.err
2464   rm -f conftest.er1
2465   cat conftest.err >&5
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); } >/dev/null; then
2468   if test -s conftest.err; then
2469     ac_cpp_err=$ac_c_preproc_warn_flag
2470   else
2471     ac_cpp_err=
2472   fi
2473 else
2474   ac_cpp_err=yes
2475 fi
2476 if test -z "$ac_cpp_err"; then
2477   # We can compile using X headers with no special include directory.
2478 ac_x_includes=
2479 else
2480   echo "$as_me: failed program was:" >&5
2481   cat conftest.$ac_ext >&5
2482   for ac_dir in $ac_x_header_dirs; do
2483   if test -r "$ac_dir/X11/Intrinsic.h"; then
2484     ac_x_includes=$ac_dir
2485     break
2486   fi
2487 done
2488 fi
2489 rm -f conftest.err conftest.$ac_ext
2490 fi # $ac_x_includes = no
2491
2492 if test "$ac_x_libraries" = no; then
2493   # Check for the libraries.
2494   # See if we find them without any special options.
2495   # Don't add to $LIBS permanently.
2496   ac_save_LIBS=$LIBS
2497   LIBS="-lXt $LIBS"
2498   cat >conftest.$ac_ext <<_ACEOF
2499 #line $LINENO "configure"
2500 #include "confdefs.h"
2501 #include <X11/Intrinsic.h>
2502 #ifdef F77_DUMMY_MAIN
2503 #  ifdef __cplusplus
2504      extern "C"
2505 #  endif
2506    int F77_DUMMY_MAIN() { return 1; }
2507 #endif
2508 int
2509 main ()
2510 {
2511 XtMalloc (0)
2512   ;
2513   return 0;
2514 }
2515 _ACEOF
2516 rm -f conftest.$ac_objext conftest$ac_exeext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2518   (eval $ac_link) 2>&5
2519   ac_status=$?
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); } &&
2522          { ac_try='test -s conftest$ac_exeext'
2523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524   (eval $ac_try) 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); }; }; then
2528   LIBS=$ac_save_LIBS
2529 # We can link X programs with no special library path.
2530 ac_x_libraries=
2531 else
2532   echo "$as_me: failed program was:" >&5
2533 cat conftest.$ac_ext >&5
2534 LIBS=$ac_save_LIBS
2535 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2536 do
2537   # Don't even attempt the hair of trying to link an X program!
2538   for ac_extension in a so sl; do
2539     if test -r $ac_dir/libXt.$ac_extension; then
2540       ac_x_libraries=$ac_dir
2541       break 2
2542     fi
2543   done
2544 done
2545 fi
2546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2547 fi # $ac_x_libraries = no
2548
2549 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2550   # Didn't find X anywhere.  Cache the known absence of X.
2551   ac_cv_have_x="have_x=no"
2552 else
2553   # Record where we found X for the cache.
2554   ac_cv_have_x="have_x=yes \
2555                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2556 fi
2557 fi
2558
2559   fi
2560   eval "$ac_cv_have_x"
2561 fi # $with_x != no
2562
2563 if test "$have_x" != yes; then
2564   echo "$as_me:$LINENO: result: $have_x" >&5
2565 echo "${ECHO_T}$have_x" >&6
2566   no_x=yes
2567 else
2568   # If each of the values was on the command line, it overrides each guess.
2569   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2570   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2571   # Update the cache value to reflect the command line values.
2572   ac_cv_have_x="have_x=yes \
2573                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2574   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2575 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2576 fi
2577
2578 if test "$no_x" = yes; then
2579   # Not all programs may use this symbol, but it does not hurt to define it.
2580
2581 cat >>confdefs.h <<\_ACEOF
2582 #define X_DISPLAY_MISSING 1
2583 _ACEOF
2584
2585   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2586 else
2587   if test -n "$x_includes"; then
2588     X_CFLAGS="$X_CFLAGS -I$x_includes"
2589   fi
2590
2591   # It would also be nice to do this for all -L options, not just this one.
2592   if test -n "$x_libraries"; then
2593     X_LIBS="$X_LIBS -L$x_libraries"
2594     # For Solaris; some versions of Sun CC require a space after -R and
2595     # others require no space.  Words are not sufficient . . . .
2596     case `(uname -sr) 2>/dev/null` in
2597     "SunOS 5"*)
2598       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2599 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2600       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2601       cat >conftest.$ac_ext <<_ACEOF
2602 #line $LINENO "configure"
2603 #include "confdefs.h"
2604
2605 #ifdef F77_DUMMY_MAIN
2606 #  ifdef __cplusplus
2607      extern "C"
2608 #  endif
2609    int F77_DUMMY_MAIN() { return 1; }
2610 #endif
2611 int
2612 main ()
2613 {
2614
2615   ;
2616   return 0;
2617 }
2618 _ACEOF
2619 rm -f conftest.$ac_objext conftest$ac_exeext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2621   (eval $ac_link) 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); } &&
2625          { ac_try='test -s conftest$ac_exeext'
2626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627   (eval $ac_try) 2>&5
2628   ac_status=$?
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); }; }; then
2631   ac_R_nospace=yes
2632 else
2633   echo "$as_me: failed program was:" >&5
2634 cat conftest.$ac_ext >&5
2635 ac_R_nospace=no
2636 fi
2637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2638       if test $ac_R_nospace = yes; then
2639         echo "$as_me:$LINENO: result: no" >&5
2640 echo "${ECHO_T}no" >&6
2641         X_LIBS="$X_LIBS -R$x_libraries"
2642       else
2643         LIBS="$ac_xsave_LIBS -R $x_libraries"
2644         cat >conftest.$ac_ext <<_ACEOF
2645 #line $LINENO "configure"
2646 #include "confdefs.h"
2647
2648 #ifdef F77_DUMMY_MAIN
2649 #  ifdef __cplusplus
2650      extern "C"
2651 #  endif
2652    int F77_DUMMY_MAIN() { return 1; }
2653 #endif
2654 int
2655 main ()
2656 {
2657
2658   ;
2659   return 0;
2660 }
2661 _ACEOF
2662 rm -f conftest.$ac_objext conftest$ac_exeext
2663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2664   (eval $ac_link) 2>&5
2665   ac_status=$?
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); } &&
2668          { ac_try='test -s conftest$ac_exeext'
2669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670   (eval $ac_try) 2>&5
2671   ac_status=$?
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); }; }; then
2674   ac_R_space=yes
2675 else
2676   echo "$as_me: failed program was:" >&5
2677 cat conftest.$ac_ext >&5
2678 ac_R_space=no
2679 fi
2680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2681         if test $ac_R_space = yes; then
2682           echo "$as_me:$LINENO: result: yes" >&5
2683 echo "${ECHO_T}yes" >&6
2684           X_LIBS="$X_LIBS -R $x_libraries"
2685         else
2686           echo "$as_me:$LINENO: result: neither works" >&5
2687 echo "${ECHO_T}neither works" >&6
2688         fi
2689       fi
2690       LIBS=$ac_xsave_LIBS
2691     esac
2692   fi
2693
2694   # Check for system-dependent libraries X programs must link with.
2695   # Do this before checking for the system-independent R6 libraries
2696   # (-lICE), since we may need -lsocket or whatever for X linking.
2697
2698   if test "$ISC" = yes; then
2699     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2700   else
2701     # Martyn Johnson says this is needed for Ultrix, if the X
2702     # libraries were built with DECnet support.  And Karl Berry says
2703     # the Alpha needs dnet_stub (dnet does not exist).
2704     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2705     cat >conftest.$ac_ext <<_ACEOF
2706 #line $LINENO "configure"
2707 #include "confdefs.h"
2708
2709 /* Override any gcc2 internal prototype to avoid an error.  */
2710 #ifdef __cplusplus
2711 extern "C"
2712 #endif
2713 /* We use char because int might match the return type of a gcc2
2714    builtin and then its argument prototype would still apply.  */
2715 char XOpenDisplay ();
2716 #ifdef F77_DUMMY_MAIN
2717 #  ifdef __cplusplus
2718      extern "C"
2719 #  endif
2720    int F77_DUMMY_MAIN() { return 1; }
2721 #endif
2722 int
2723 main ()
2724 {
2725 XOpenDisplay ();
2726   ;
2727   return 0;
2728 }
2729 _ACEOF
2730 rm -f conftest.$ac_objext conftest$ac_exeext
2731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2732   (eval $ac_link) 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); } &&
2736          { ac_try='test -s conftest$ac_exeext'
2737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; }; then
2742   :
2743 else
2744   echo "$as_me: failed program was:" >&5
2745 cat conftest.$ac_ext >&5
2746 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2747 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2748 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2749   echo $ECHO_N "(cached) $ECHO_C" >&6
2750 else
2751   ac_check_lib_save_LIBS=$LIBS
2752 LIBS="-ldnet  $LIBS"
2753 cat >conftest.$ac_ext <<_ACEOF
2754 #line $LINENO "configure"
2755 #include "confdefs.h"
2756
2757 /* Override any gcc2 internal prototype to avoid an error.  */
2758 #ifdef __cplusplus
2759 extern "C"
2760 #endif
2761 /* We use char because int might match the return type of a gcc2
2762    builtin and then its argument prototype would still apply.  */
2763 char dnet_ntoa ();
2764 #ifdef F77_DUMMY_MAIN
2765 #  ifdef __cplusplus
2766      extern "C"
2767 #  endif
2768    int F77_DUMMY_MAIN() { return 1; }
2769 #endif
2770 int
2771 main ()
2772 {
2773 dnet_ntoa ();
2774   ;
2775   return 0;
2776 }
2777 _ACEOF
2778 rm -f conftest.$ac_objext conftest$ac_exeext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2780   (eval $ac_link) 2>&5
2781   ac_status=$?
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); } &&
2784          { ac_try='test -s conftest$ac_exeext'
2785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786   (eval $ac_try) 2>&5
2787   ac_status=$?
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); }; }; then
2790   ac_cv_lib_dnet_dnet_ntoa=yes
2791 else
2792   echo "$as_me: failed program was:" >&5
2793 cat conftest.$ac_ext >&5
2794 ac_cv_lib_dnet_dnet_ntoa=no
2795 fi
2796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2797 LIBS=$ac_check_lib_save_LIBS
2798 fi
2799 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2800 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2801 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2802   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2803 fi
2804
2805     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2806       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2807 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2808 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2809   echo $ECHO_N "(cached) $ECHO_C" >&6
2810 else
2811   ac_check_lib_save_LIBS=$LIBS
2812 LIBS="-ldnet_stub  $LIBS"
2813 cat >conftest.$ac_ext <<_ACEOF
2814 #line $LINENO "configure"
2815 #include "confdefs.h"
2816
2817 /* Override any gcc2 internal prototype to avoid an error.  */
2818 #ifdef __cplusplus
2819 extern "C"
2820 #endif
2821 /* We use char because int might match the return type of a gcc2
2822    builtin and then its argument prototype would still apply.  */
2823 char dnet_ntoa ();
2824 #ifdef F77_DUMMY_MAIN
2825 #  ifdef __cplusplus
2826      extern "C"
2827 #  endif
2828    int F77_DUMMY_MAIN() { return 1; }
2829 #endif
2830 int
2831 main ()
2832 {
2833 dnet_ntoa ();
2834   ;
2835   return 0;
2836 }
2837 _ACEOF
2838 rm -f conftest.$ac_objext conftest$ac_exeext
2839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2840   (eval $ac_link) 2>&5
2841   ac_status=$?
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); } &&
2844          { ac_try='test -s conftest$ac_exeext'
2845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846   (eval $ac_try) 2>&5
2847   ac_status=$?
2848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); }; }; then
2850   ac_cv_lib_dnet_stub_dnet_ntoa=yes
2851 else
2852   echo "$as_me: failed program was:" >&5
2853 cat conftest.$ac_ext >&5
2854 ac_cv_lib_dnet_stub_dnet_ntoa=no
2855 fi
2856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2857 LIBS=$ac_check_lib_save_LIBS
2858 fi
2859 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2860 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2861 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2862   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2863 fi
2864
2865     fi
2866 fi
2867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2868     LIBS="$ac_xsave_LIBS"
2869
2870     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2871     # to get the SysV transport functions.
2872     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2873     # needs -lnsl.
2874     # The nsl library prevents programs from opening the X display
2875     # on Irix 5.2, according to T.E. Dickey.
2876     # The functions gethostbyname, getservbyname, and inet_addr are
2877     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2878     echo "$as_me:$LINENO: checking for gethostbyname" >&5
2879 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2880 if test "${ac_cv_func_gethostbyname+set}" = set; then
2881   echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883   cat >conftest.$ac_ext <<_ACEOF
2884 #line $LINENO "configure"
2885 #include "confdefs.h"
2886 /* System header to define __stub macros and hopefully few prototypes,
2887     which can conflict with char gethostbyname (); below.  */
2888 #include <assert.h>
2889 /* Override any gcc2 internal prototype to avoid an error.  */
2890 #ifdef __cplusplus
2891 extern "C"
2892 #endif
2893 /* We use char because int might match the return type of a gcc2
2894    builtin and then its argument prototype would still apply.  */
2895 char gethostbyname ();
2896 char (*f) ();
2897
2898 #ifdef F77_DUMMY_MAIN
2899 #  ifdef __cplusplus
2900      extern "C"
2901 #  endif
2902    int F77_DUMMY_MAIN() { return 1; }
2903 #endif
2904 int
2905 main ()
2906 {
2907 /* The GNU C library defines this for functions which it implements
2908     to always fail with ENOSYS.  Some functions are actually named
2909     something starting with __ and the normal name is an alias.  */
2910 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2911 choke me
2912 #else
2913 f = gethostbyname;
2914 #endif
2915
2916   ;
2917   return 0;
2918 }
2919 _ACEOF
2920 rm -f conftest.$ac_objext conftest$ac_exeext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2922   (eval $ac_link) 2>&5
2923   ac_status=$?
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); } &&
2926          { ac_try='test -s conftest$ac_exeext'
2927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928   (eval $ac_try) 2>&5
2929   ac_status=$?
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); }; }; then
2932   ac_cv_func_gethostbyname=yes
2933 else
2934   echo "$as_me: failed program was:" >&5
2935 cat conftest.$ac_ext >&5
2936 ac_cv_func_gethostbyname=no
2937 fi
2938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2939 fi
2940 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2941 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2942
2943     if test $ac_cv_func_gethostbyname = no; then
2944       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2945 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2946 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2947   echo $ECHO_N "(cached) $ECHO_C" >&6
2948 else
2949   ac_check_lib_save_LIBS=$LIBS
2950 LIBS="-lnsl  $LIBS"
2951 cat >conftest.$ac_ext <<_ACEOF
2952 #line $LINENO "configure"
2953 #include "confdefs.h"
2954
2955 /* Override any gcc2 internal prototype to avoid an error.  */
2956 #ifdef __cplusplus
2957 extern "C"
2958 #endif
2959 /* We use char because int might match the return type of a gcc2
2960    builtin and then its argument prototype would still apply.  */
2961 char gethostbyname ();
2962 #ifdef F77_DUMMY_MAIN
2963 #  ifdef __cplusplus
2964      extern "C"
2965 #  endif
2966    int F77_DUMMY_MAIN() { return 1; }
2967 #endif
2968 int
2969 main ()
2970 {
2971 gethostbyname ();
2972   ;
2973   return 0;
2974 }
2975 _ACEOF
2976 rm -f conftest.$ac_objext conftest$ac_exeext
2977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2978   (eval $ac_link) 2>&5
2979   ac_status=$?
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); } &&
2982          { ac_try='test -s conftest$ac_exeext'
2983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984   (eval $ac_try) 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); }; }; then
2988   ac_cv_lib_nsl_gethostbyname=yes
2989 else
2990   echo "$as_me: failed program was:" >&5
2991 cat conftest.$ac_ext >&5
2992 ac_cv_lib_nsl_gethostbyname=no
2993 fi
2994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2995 LIBS=$ac_check_lib_save_LIBS
2996 fi
2997 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2998 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2999 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3000   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3001 fi
3002
3003       if test $ac_cv_lib_nsl_gethostbyname = no; then
3004         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3005 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3006 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3007   echo $ECHO_N "(cached) $ECHO_C" >&6
3008 else
3009   ac_check_lib_save_LIBS=$LIBS
3010 LIBS="-lbsd  $LIBS"
3011 cat >conftest.$ac_ext <<_ACEOF
3012 #line $LINENO "configure"
3013 #include "confdefs.h"
3014
3015 /* Override any gcc2 internal prototype to avoid an error.  */
3016 #ifdef __cplusplus
3017 extern "C"
3018 #endif
3019 /* We use char because int might match the return type of a gcc2
3020    builtin and then its argument prototype would still apply.  */
3021 char gethostbyname ();
3022 #ifdef F77_DUMMY_MAIN
3023 #  ifdef __cplusplus
3024      extern "C"
3025 #  endif
3026    int F77_DUMMY_MAIN() { return 1; }
3027 #endif
3028 int
3029 main ()
3030 {
3031 gethostbyname ();
3032   ;
3033   return 0;
3034 }
3035 _ACEOF
3036 rm -f conftest.$ac_objext conftest$ac_exeext
3037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3038   (eval $ac_link) 2>&5
3039   ac_status=$?
3040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041   (exit $ac_status); } &&
3042          { ac_try='test -s conftest$ac_exeext'
3043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044   (eval $ac_try) 2>&5
3045   ac_status=$?
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); }; }; then
3048   ac_cv_lib_bsd_gethostbyname=yes
3049 else
3050   echo "$as_me: failed program was:" >&5
3051 cat conftest.$ac_ext >&5
3052 ac_cv_lib_bsd_gethostbyname=no
3053 fi
3054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3055 LIBS=$ac_check_lib_save_LIBS
3056 fi
3057 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3058 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3059 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3060   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3061 fi
3062
3063       fi
3064     fi
3065
3066     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3067     # socket/setsockopt and other routines are undefined under SCO ODT
3068     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3069     # on later versions), says Simon Leinen: it contains gethostby*
3070     # variants that don't use the nameserver (or something).  -lsocket
3071     # must be given before -lnsl if both are needed.  We assume that
3072     # if connect needs -lnsl, so does gethostbyname.
3073     echo "$as_me:$LINENO: checking for connect" >&5
3074 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3075 if test "${ac_cv_func_connect+set}" = set; then
3076   echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078   cat >conftest.$ac_ext <<_ACEOF
3079 #line $LINENO "configure"
3080 #include "confdefs.h"
3081 /* System header to define __stub macros and hopefully few prototypes,
3082     which can conflict with char connect (); below.  */
3083 #include <assert.h>
3084 /* Override any gcc2 internal prototype to avoid an error.  */
3085 #ifdef __cplusplus
3086 extern "C"
3087 #endif
3088 /* We use char because int might match the return type of a gcc2
3089    builtin and then its argument prototype would still apply.  */
3090 char connect ();
3091 char (*f) ();
3092
3093 #ifdef F77_DUMMY_MAIN
3094 #  ifdef __cplusplus
3095      extern "C"
3096 #  endif
3097    int F77_DUMMY_MAIN() { return 1; }
3098 #endif
3099 int
3100 main ()
3101 {
3102 /* The GNU C library defines this for functions which it implements
3103     to always fail with ENOSYS.  Some functions are actually named
3104     something starting with __ and the normal name is an alias.  */
3105 #if defined (__stub_connect) || defined (__stub___connect)
3106 choke me
3107 #else
3108 f = connect;
3109 #endif
3110
3111   ;
3112   return 0;
3113 }
3114 _ACEOF
3115 rm -f conftest.$ac_objext conftest$ac_exeext
3116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3117   (eval $ac_link) 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); } &&
3121          { ac_try='test -s conftest$ac_exeext'
3122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123   (eval $ac_try) 2>&5
3124   ac_status=$?
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); }; }; then
3127   ac_cv_func_connect=yes
3128 else
3129   echo "$as_me: failed program was:" >&5
3130 cat conftest.$ac_ext >&5
3131 ac_cv_func_connect=no
3132 fi
3133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3134 fi
3135 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3136 echo "${ECHO_T}$ac_cv_func_connect" >&6
3137
3138     if test $ac_cv_func_connect = no; then
3139       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3140 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3141 if test "${ac_cv_lib_socket_connect+set}" = set; then
3142   echo $ECHO_N "(cached) $ECHO_C" >&6
3143 else
3144   ac_check_lib_save_LIBS=$LIBS
3145 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3146 cat >conftest.$ac_ext <<_ACEOF
3147 #line $LINENO "configure"
3148 #include "confdefs.h"
3149
3150 /* Override any gcc2 internal prototype to avoid an error.  */
3151 #ifdef __cplusplus
3152 extern "C"
3153 #endif
3154 /* We use char because int might match the return type of a gcc2
3155    builtin and then its argument prototype would still apply.  */
3156 char connect ();
3157 #ifdef F77_DUMMY_MAIN
3158 #  ifdef __cplusplus
3159      extern "C"
3160 #  endif
3161    int F77_DUMMY_MAIN() { return 1; }
3162 #endif
3163 int
3164 main ()
3165 {
3166 connect ();
3167   ;
3168   return 0;
3169 }
3170 _ACEOF
3171 rm -f conftest.$ac_objext conftest$ac_exeext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3173   (eval $ac_link) 2>&5
3174   ac_status=$?
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); } &&
3177          { ac_try='test -s conftest$ac_exeext'
3178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179   (eval $ac_try) 2>&5
3180   ac_status=$?
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); }; }; then
3183   ac_cv_lib_socket_connect=yes
3184 else
3185   echo "$as_me: failed program was:" >&5
3186 cat conftest.$ac_ext >&5
3187 ac_cv_lib_socket_connect=no
3188 fi
3189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3190 LIBS=$ac_check_lib_save_LIBS
3191 fi
3192 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3193 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3194 if test $ac_cv_lib_socket_connect = yes; then
3195   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3196 fi
3197
3198     fi
3199
3200     # Guillermo Gomez says -lposix is necessary on A/UX.
3201     echo "$as_me:$LINENO: checking for remove" >&5
3202 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3203 if test "${ac_cv_func_remove+set}" = set; then
3204   echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206   cat >conftest.$ac_ext <<_ACEOF
3207 #line $LINENO "configure"
3208 #include "confdefs.h"
3209 /* System header to define __stub macros and hopefully few prototypes,
3210     which can conflict with char remove (); below.  */
3211 #include <assert.h>
3212 /* Override any gcc2 internal prototype to avoid an error.  */
3213 #ifdef __cplusplus
3214 extern "C"
3215 #endif
3216 /* We use char because int might match the return type of a gcc2
3217    builtin and then its argument prototype would still apply.  */
3218 char remove ();
3219 char (*f) ();
3220
3221 #ifdef F77_DUMMY_MAIN
3222 #  ifdef __cplusplus
3223      extern "C"
3224 #  endif
3225    int F77_DUMMY_MAIN() { return 1; }
3226 #endif
3227 int
3228 main ()
3229 {
3230 /* The GNU C library defines this for functions which it implements
3231     to always fail with ENOSYS.  Some functions are actually named
3232     something starting with __ and the normal name is an alias.  */
3233 #if defined (__stub_remove) || defined (__stub___remove)
3234 choke me
3235 #else
3236 f = remove;
3237 #endif
3238
3239   ;
3240   return 0;
3241 }
3242 _ACEOF
3243 rm -f conftest.$ac_objext conftest$ac_exeext
3244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3245   (eval $ac_link) 2>&5
3246   ac_status=$?
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); } &&
3249          { ac_try='test -s conftest$ac_exeext'
3250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251   (eval $ac_try) 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; }; then
3255   ac_cv_func_remove=yes
3256 else
3257   echo "$as_me: failed program was:" >&5
3258 cat conftest.$ac_ext >&5
3259 ac_cv_func_remove=no
3260 fi
3261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3262 fi
3263 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3264 echo "${ECHO_T}$ac_cv_func_remove" >&6
3265
3266     if test $ac_cv_func_remove = no; then
3267       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3268 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3269 if test "${ac_cv_lib_posix_remove+set}" = set; then
3270   echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272   ac_check_lib_save_LIBS=$LIBS
3273 LIBS="-lposix  $LIBS"
3274 cat >conftest.$ac_ext <<_ACEOF
3275 #line $LINENO "configure"
3276 #include "confdefs.h"
3277
3278 /* Override any gcc2 internal prototype to avoid an error.  */
3279 #ifdef __cplusplus
3280 extern "C"
3281 #endif
3282 /* We use char because int might match the return type of a gcc2
3283    builtin and then its argument prototype would still apply.  */
3284 char remove ();
3285 #ifdef F77_DUMMY_MAIN
3286 #  ifdef __cplusplus
3287      extern "C"
3288 #  endif
3289    int F77_DUMMY_MAIN() { return 1; }
3290 #endif
3291 int
3292 main ()
3293 {
3294 remove ();
3295   ;
3296   return 0;
3297 }
3298 _ACEOF
3299 rm -f conftest.$ac_objext conftest$ac_exeext
3300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3301   (eval $ac_link) 2>&5
3302   ac_status=$?
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); } &&
3305          { ac_try='test -s conftest$ac_exeext'
3306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307   (eval $ac_try) 2>&5
3308   ac_status=$?
3309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); }; }; then
3311   ac_cv_lib_posix_remove=yes
3312 else
3313   echo "$as_me: failed program was:" >&5
3314 cat conftest.$ac_ext >&5
3315 ac_cv_lib_posix_remove=no
3316 fi
3317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3318 LIBS=$ac_check_lib_save_LIBS
3319 fi
3320 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3321 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3322 if test $ac_cv_lib_posix_remove = yes; then
3323   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3324 fi
3325
3326     fi
3327
3328     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3329     echo "$as_me:$LINENO: checking for shmat" >&5
3330 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3331 if test "${ac_cv_func_shmat+set}" = set; then
3332   echo $ECHO_N "(cached) $ECHO_C" >&6
3333 else
3334   cat >conftest.$ac_ext <<_ACEOF
3335 #line $LINENO "configure"
3336 #include "confdefs.h"
3337 /* System header to define __stub macros and hopefully few prototypes,
3338     which can conflict with char shmat (); below.  */
3339 #include <assert.h>
3340 /* Override any gcc2 internal prototype to avoid an error.  */
3341 #ifdef __cplusplus
3342 extern "C"
3343 #endif
3344 /* We use char because int might match the return type of a gcc2
3345    builtin and then its argument prototype would still apply.  */
3346 char shmat ();
3347 char (*f) ();
3348
3349 #ifdef F77_DUMMY_MAIN
3350 #  ifdef __cplusplus
3351      extern "C"
3352 #  endif
3353    int F77_DUMMY_MAIN() { return 1; }
3354 #endif
3355 int
3356 main ()
3357 {
3358 /* The GNU C library defines this for functions which it implements
3359     to always fail with ENOSYS.  Some functions are actually named
3360     something starting with __ and the normal name is an alias.  */
3361 #if defined (__stub_shmat) || defined (__stub___shmat)
3362 choke me
3363 #else
3364 f = shmat;
3365 #endif
3366
3367   ;
3368   return 0;
3369 }
3370 _ACEOF
3371 rm -f conftest.$ac_objext conftest$ac_exeext
3372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3373   (eval $ac_link) 2>&5
3374   ac_status=$?
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); } &&
3377          { ac_try='test -s conftest$ac_exeext'
3378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379   (eval $ac_try) 2>&5
3380   ac_status=$?
3381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382   (exit $ac_status); }; }; then
3383   ac_cv_func_shmat=yes
3384 else
3385   echo "$as_me: failed program was:" >&5
3386 cat conftest.$ac_ext >&5
3387 ac_cv_func_shmat=no
3388 fi
3389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3390 fi
3391 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3392 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3393
3394     if test $ac_cv_func_shmat = no; then
3395       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3396 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3397 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3398   echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400   ac_check_lib_save_LIBS=$LIBS
3401 LIBS="-lipc  $LIBS"
3402 cat >conftest.$ac_ext <<_ACEOF
3403 #line $LINENO "configure"
3404 #include "confdefs.h"
3405
3406 /* Override any gcc2 internal prototype to avoid an error.  */
3407 #ifdef __cplusplus
3408 extern "C"
3409 #endif
3410 /* We use char because int might match the return type of a gcc2
3411    builtin and then its argument prototype would still apply.  */
3412 char shmat ();
3413 #ifdef F77_DUMMY_MAIN
3414 #  ifdef __cplusplus
3415      extern "C"
3416 #  endif
3417    int F77_DUMMY_MAIN() { return 1; }
3418 #endif
3419 int
3420 main ()
3421 {
3422 shmat ();
3423   ;
3424   return 0;
3425 }
3426 _ACEOF
3427 rm -f conftest.$ac_objext conftest$ac_exeext
3428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3429   (eval $ac_link) 2>&5
3430   ac_status=$?
3431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432   (exit $ac_status); } &&
3433          { ac_try='test -s conftest$ac_exeext'
3434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435   (eval $ac_try) 2>&5
3436   ac_status=$?
3437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438   (exit $ac_status); }; }; then
3439   ac_cv_lib_ipc_shmat=yes
3440 else
3441   echo "$as_me: failed program was:" >&5
3442 cat conftest.$ac_ext >&5
3443 ac_cv_lib_ipc_shmat=no
3444 fi
3445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3446 LIBS=$ac_check_lib_save_LIBS
3447 fi
3448 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3449 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3450 if test $ac_cv_lib_ipc_shmat = yes; then
3451   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3452 fi
3453
3454     fi
3455   fi
3456
3457   # Check for libraries that X11R6 Xt/Xaw programs need.
3458   ac_save_LDFLAGS=$LDFLAGS
3459   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3460   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3461   # check for ICE first), but we must link in the order -lSM -lICE or
3462   # we get undefined symbols.  So assume we have SM if we have ICE.
3463   # These have to be linked with before -lX11, unlike the other
3464   # libraries we check for below, so use a different variable.
3465   # John Interrante, Karl Berry
3466   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3467 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3468 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3469   echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471   ac_check_lib_save_LIBS=$LIBS
3472 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3473 cat >conftest.$ac_ext <<_ACEOF
3474 #line $LINENO "configure"
3475 #include "confdefs.h"
3476
3477 /* Override any gcc2 internal prototype to avoid an error.  */
3478 #ifdef __cplusplus
3479 extern "C"
3480 #endif
3481 /* We use char because int might match the return type of a gcc2
3482    builtin and then its argument prototype would still apply.  */
3483 char IceConnectionNumber ();
3484 #ifdef F77_DUMMY_MAIN
3485 #  ifdef __cplusplus
3486      extern "C"
3487 #  endif
3488    int F77_DUMMY_MAIN() { return 1; }
3489 #endif
3490 int
3491 main ()
3492 {
3493 IceConnectionNumber ();
3494   ;
3495   return 0;
3496 }
3497 _ACEOF
3498 rm -f conftest.$ac_objext conftest$ac_exeext
3499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3500   (eval $ac_link) 2>&5
3501   ac_status=$?
3502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503   (exit $ac_status); } &&
3504          { ac_try='test -s conftest$ac_exeext'
3505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506   (eval $ac_try) 2>&5
3507   ac_status=$?
3508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509   (exit $ac_status); }; }; then
3510   ac_cv_lib_ICE_IceConnectionNumber=yes
3511 else
3512   echo "$as_me: failed program was:" >&5
3513 cat conftest.$ac_ext >&5
3514 ac_cv_lib_ICE_IceConnectionNumber=no
3515 fi
3516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3517 LIBS=$ac_check_lib_save_LIBS
3518 fi
3519 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3520 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3521 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3522   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3523 fi
3524
3525   LDFLAGS=$ac_save_LDFLAGS
3526
3527 fi
3528
3529 for ac_prog in 'bison -y' byacc
3530 do
3531   # Extract the first word of "$ac_prog", so it can be a program name with args.
3532 set dummy $ac_prog; ac_word=$2
3533 echo "$as_me:$LINENO: checking for $ac_word" >&5
3534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3535 if test "${ac_cv_prog_YACC+set}" = set; then
3536   echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538   if test -n "$YACC"; then
3539   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3543 do
3544   IFS=$as_save_IFS
3545   test -z "$as_dir" && as_dir=.
3546   for ac_exec_ext in '' $ac_executable_extensions; do
3547   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548     ac_cv_prog_YACC="$ac_prog"
3549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3550     break 2
3551   fi
3552 done
3553 done
3554
3555 fi
3556 fi
3557 YACC=$ac_cv_prog_YACC
3558 if test -n "$YACC"; then
3559   echo "$as_me:$LINENO: result: $YACC" >&5
3560 echo "${ECHO_T}$YACC" >&6
3561 else
3562   echo "$as_me:$LINENO: result: no" >&5
3563 echo "${ECHO_T}no" >&6
3564 fi
3565
3566   test -n "$YACC" && break
3567 done
3568 test -n "$YACC" || YACC="yacc"
3569
3570 for ac_prog in flex lex
3571 do
3572   # Extract the first word of "$ac_prog", so it can be a program name with args.
3573 set dummy $ac_prog; ac_word=$2
3574 echo "$as_me:$LINENO: checking for $ac_word" >&5
3575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3576 if test "${ac_cv_prog_LEX+set}" = set; then
3577   echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579   if test -n "$LEX"; then
3580   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3581 else
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH
3584 do
3585   IFS=$as_save_IFS
3586   test -z "$as_dir" && as_dir=.
3587   for ac_exec_ext in '' $ac_executable_extensions; do
3588   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3589     ac_cv_prog_LEX="$ac_prog"
3590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3591     break 2
3592   fi
3593 done
3594 done
3595
3596 fi
3597 fi
3598 LEX=$ac_cv_prog_LEX
3599 if test -n "$LEX"; then
3600   echo "$as_me:$LINENO: result: $LEX" >&5
3601 echo "${ECHO_T}$LEX" >&6
3602 else
3603   echo "$as_me:$LINENO: result: no" >&5
3604 echo "${ECHO_T}no" >&6
3605 fi
3606
3607   test -n "$LEX" && break
3608 done
3609 test -n "$LEX" || LEX=":"
3610
3611 if test -z "$LEXLIB"
3612 then
3613   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3614 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3615 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3616   echo $ECHO_N "(cached) $ECHO_C" >&6
3617 else
3618   ac_check_lib_save_LIBS=$LIBS
3619 LIBS="-lfl  $LIBS"
3620 cat >conftest.$ac_ext <<_ACEOF
3621 #line $LINENO "configure"
3622 #include "confdefs.h"
3623
3624 /* Override any gcc2 internal prototype to avoid an error.  */
3625 #ifdef __cplusplus
3626 extern "C"
3627 #endif
3628 /* We use char because int might match the return type of a gcc2
3629    builtin and then its argument prototype would still apply.  */
3630 char yywrap ();
3631 #ifdef F77_DUMMY_MAIN
3632 #  ifdef __cplusplus
3633      extern "C"
3634 #  endif
3635    int F77_DUMMY_MAIN() { return 1; }
3636 #endif
3637 int
3638 main ()
3639 {
3640 yywrap ();
3641   ;
3642   return 0;
3643 }
3644 _ACEOF
3645 rm -f conftest.$ac_objext conftest$ac_exeext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3647   (eval $ac_link) 2>&5
3648   ac_status=$?
3649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650   (exit $ac_status); } &&
3651          { ac_try='test -s conftest$ac_exeext'
3652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653   (eval $ac_try) 2>&5
3654   ac_status=$?
3655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656   (exit $ac_status); }; }; then
3657   ac_cv_lib_fl_yywrap=yes
3658 else
3659   echo "$as_me: failed program was:" >&5
3660 cat conftest.$ac_ext >&5
3661 ac_cv_lib_fl_yywrap=no
3662 fi
3663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3664 LIBS=$ac_check_lib_save_LIBS
3665 fi
3666 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3667 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3668 if test $ac_cv_lib_fl_yywrap = yes; then
3669   LEXLIB="-lfl"
3670 else
3671   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3672 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3673 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3674   echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676   ac_check_lib_save_LIBS=$LIBS
3677 LIBS="-ll  $LIBS"
3678 cat >conftest.$ac_ext <<_ACEOF
3679 #line $LINENO "configure"
3680 #include "confdefs.h"
3681
3682 /* Override any gcc2 internal prototype to avoid an error.  */
3683 #ifdef __cplusplus
3684 extern "C"
3685 #endif
3686 /* We use char because int might match the return type of a gcc2
3687    builtin and then its argument prototype would still apply.  */
3688 char yywrap ();
3689 #ifdef F77_DUMMY_MAIN
3690 #  ifdef __cplusplus
3691      extern "C"
3692 #  endif
3693    int F77_DUMMY_MAIN() { return 1; }
3694 #endif
3695 int
3696 main ()
3697 {
3698 yywrap ();
3699   ;
3700   return 0;
3701 }
3702 _ACEOF
3703 rm -f conftest.$ac_objext conftest$ac_exeext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705   (eval $ac_link) 2>&5
3706   ac_status=$?
3707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708   (exit $ac_status); } &&
3709          { ac_try='test -s conftest$ac_exeext'
3710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711   (eval $ac_try) 2>&5
3712   ac_status=$?
3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714   (exit $ac_status); }; }; then
3715   ac_cv_lib_l_yywrap=yes
3716 else
3717   echo "$as_me: failed program was:" >&5
3718 cat conftest.$ac_ext >&5
3719 ac_cv_lib_l_yywrap=no
3720 fi
3721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3722 LIBS=$ac_check_lib_save_LIBS
3723 fi
3724 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3725 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3726 if test $ac_cv_lib_l_yywrap = yes; then
3727   LEXLIB="-ll"
3728 fi
3729
3730 fi
3731
3732 fi
3733
3734 if test "x$LEX" != "x:"; then
3735   echo "$as_me:$LINENO: checking lex output file root" >&5
3736 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3737 if test "${ac_cv_prog_lex_root+set}" = set; then
3738   echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740   # The minimal lex program is just a single line: %%.  But some broken lexes
3741 # (Solaris, I think it was) want two %% lines, so accommodate them.
3742 cat >conftest.l <<_ACEOF
3743 %%
3744 %%
3745 _ACEOF
3746 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3747   (eval $LEX conftest.l) 2>&5
3748   ac_status=$?
3749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750   (exit $ac_status); }
3751 if test -f lex.yy.c; then
3752   ac_cv_prog_lex_root=lex.yy
3753 elif test -f lexyy.c; then
3754   ac_cv_prog_lex_root=lexyy
3755 else
3756   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3757 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3758    { (exit 1); exit 1; }; }
3759 fi
3760 fi
3761 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3762 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3763 rm -f conftest.l
3764 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3765
3766 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3767 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3768 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3769   echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771   # POSIX says lex can declare yytext either as a pointer or an array; the
3772 # default is implementation-dependent. Figure out which it is, since
3773 # not all implementations provide the %pointer and %array declarations.
3774 ac_cv_prog_lex_yytext_pointer=no
3775 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3776 ac_save_LIBS=$LIBS
3777 LIBS="$LIBS $LEXLIB"
3778 cat >conftest.$ac_ext <<_ACEOF
3779 `cat $LEX_OUTPUT_ROOT.c`
3780 _ACEOF
3781 rm -f conftest.$ac_objext conftest$ac_exeext
3782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3783   (eval $ac_link) 2>&5
3784   ac_status=$?
3785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786   (exit $ac_status); } &&
3787          { ac_try='test -s conftest$ac_exeext'
3788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789   (eval $ac_try) 2>&5
3790   ac_status=$?
3791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792   (exit $ac_status); }; }; then
3793   ac_cv_prog_lex_yytext_pointer=yes
3794 else
3795   echo "$as_me: failed program was:" >&5
3796 cat conftest.$ac_ext >&5
3797 fi
3798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3799 LIBS=$ac_save_LIBS
3800 rm -f "${LEX_OUTPUT_ROOT}.c"
3801
3802 fi
3803 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3804 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3805 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3806
3807 cat >>confdefs.h <<\_ACEOF
3808 #define YYTEXT_POINTER 1
3809 _ACEOF
3810
3811 fi
3812
3813 fi
3814
3815 for ac_prog in $YACC bison yacc
3816 do
3817   # Extract the first word of "$ac_prog", so it can be a program name with args.
3818 set dummy $ac_prog; ac_word=$2
3819 echo "$as_me:$LINENO: checking for $ac_word" >&5
3820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3821 if test "${ac_cv_prog_XYACC+set}" = set; then
3822   echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824   if test -n "$XYACC"; then
3825   ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3826 else
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828 for as_dir in $PATH
3829 do
3830   IFS=$as_save_IFS
3831   test -z "$as_dir" && as_dir=.
3832   for ac_exec_ext in '' $ac_executable_extensions; do
3833   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3834     ac_cv_prog_XYACC="$ac_prog"
3835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3836     break 2
3837   fi
3838 done
3839 done
3840
3841 fi
3842 fi
3843 XYACC=$ac_cv_prog_XYACC
3844 if test -n "$XYACC"; then
3845   echo "$as_me:$LINENO: result: $XYACC" >&5
3846 echo "${ECHO_T}$XYACC" >&6
3847 else
3848   echo "$as_me:$LINENO: result: no" >&5
3849 echo "${ECHO_T}no" >&6
3850 fi
3851
3852   test -n "$XYACC" && break
3853 done
3854 test -n "$XYACC" || XYACC="none"
3855
3856 if test "$XYACC" = "none"
3857 then
3858   { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
3859 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3860    { (exit 1); exit 1; }; }
3861 fi
3862 for ac_prog in $LEX flex lex
3863 do
3864   # Extract the first word of "$ac_prog", so it can be a program name with args.
3865 set dummy $ac_prog; ac_word=$2
3866 echo "$as_me:$LINENO: checking for $ac_word" >&5
3867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3868 if test "${ac_cv_prog_XLEX+set}" = set; then
3869   echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871   if test -n "$XLEX"; then
3872   ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3873 else
3874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 for as_dir in $PATH
3876 do
3877   IFS=$as_save_IFS
3878   test -z "$as_dir" && as_dir=.
3879   for ac_exec_ext in '' $ac_executable_extensions; do
3880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3881     ac_cv_prog_XLEX="$ac_prog"
3882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3883     break 2
3884   fi
3885 done
3886 done
3887
3888 fi
3889 fi
3890 XLEX=$ac_cv_prog_XLEX
3891 if test -n "$XLEX"; then
3892   echo "$as_me:$LINENO: result: $XLEX" >&5
3893 echo "${ECHO_T}$XLEX" >&6
3894 else
3895   echo "$as_me:$LINENO: result: no" >&5
3896 echo "${ECHO_T}no" >&6
3897 fi
3898
3899   test -n "$XLEX" && break
3900 done
3901 test -n "$XLEX" || XLEX="none"
3902
3903 if test "$XLEX" = "none"
3904 then
3905   { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
3906 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3907    { (exit 1); exit 1; }; }
3908 fi
3909 if test -n "$ac_tool_prefix"; then
3910   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3911 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3912 echo "$as_me:$LINENO: checking for $ac_word" >&5
3913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3914 if test "${ac_cv_prog_RANLIB+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   if test -n "$RANLIB"; then
3918   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3919 else
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3922 do
3923   IFS=$as_save_IFS
3924   test -z "$as_dir" && as_dir=.
3925   for ac_exec_ext in '' $ac_executable_extensions; do
3926   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3929     break 2
3930   fi
3931 done
3932 done
3933
3934 fi
3935 fi
3936 RANLIB=$ac_cv_prog_RANLIB
3937 if test -n "$RANLIB"; then
3938   echo "$as_me:$LINENO: result: $RANLIB" >&5
3939 echo "${ECHO_T}$RANLIB" >&6
3940 else
3941   echo "$as_me:$LINENO: result: no" >&5
3942 echo "${ECHO_T}no" >&6
3943 fi
3944
3945 fi
3946 if test -z "$ac_cv_prog_RANLIB"; then
3947   ac_ct_RANLIB=$RANLIB
3948   # Extract the first word of "ranlib", so it can be a program name with args.
3949 set dummy ranlib; ac_word=$2
3950 echo "$as_me:$LINENO: checking for $ac_word" >&5
3951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3952 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3953   echo $ECHO_N "(cached) $ECHO_C" >&6
3954 else
3955   if test -n "$ac_ct_RANLIB"; then
3956   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3957 else
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH
3960 do
3961   IFS=$as_save_IFS
3962   test -z "$as_dir" && as_dir=.
3963   for ac_exec_ext in '' $ac_executable_extensions; do
3964   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3965     ac_cv_prog_ac_ct_RANLIB="ranlib"
3966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3967     break 2
3968   fi
3969 done
3970 done
3971
3972   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3973 fi
3974 fi
3975 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3976 if test -n "$ac_ct_RANLIB"; then
3977   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3978 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3979 else
3980   echo "$as_me:$LINENO: result: no" >&5
3981 echo "${ECHO_T}no" >&6
3982 fi
3983
3984   RANLIB=$ac_ct_RANLIB
3985 else
3986   RANLIB="$ac_cv_prog_RANLIB"
3987 fi
3988
3989 # Find a good install program.  We prefer a C program (faster),
3990 # so one script is as good as another.  But avoid the broken or
3991 # incompatible versions:
3992 # SysV /etc/install, /usr/sbin/install
3993 # SunOS /usr/etc/install
3994 # IRIX /sbin/install
3995 # AIX /bin/install
3996 # AmigaOS /C/install, which installs bootblocks on floppy discs
3997 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3998 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3999 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4000 # ./install, which can be erroneously created by make from ./install.sh.
4001 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4002 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4003 if test -z "$INSTALL"; then
4004 if test "${ac_cv_path_install+set}" = set; then
4005   echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH
4009 do
4010   IFS=$as_save_IFS
4011   test -z "$as_dir" && as_dir=.
4012   # Account for people who put trailing slashes in PATH elements.
4013 case $as_dir/ in
4014   ./ | .// | /cC/* | \
4015   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4016   /usr/ucb/* ) ;;
4017   *)
4018     # OSF1 and SCO ODT 3.0 have their own names for install.
4019     # Don't use installbsd from OSF since it installs stuff as root
4020     # by default.
4021     for ac_prog in ginstall scoinst install; do
4022       for ac_exec_ext in '' $ac_executable_extensions; do
4023         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4024           if test $ac_prog = install &&
4025             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4026             # AIX install.  It has an incompatible calling convention.
4027             :
4028           elif test $ac_prog = install &&
4029             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4030             # program-specific install script used by HP pwplus--don't use.
4031             :
4032           else
4033             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4034             break 3
4035           fi
4036         fi
4037       done
4038     done
4039     ;;
4040 esac
4041 done
4042
4043
4044 fi
4045   if test "${ac_cv_path_install+set}" = set; then
4046     INSTALL=$ac_cv_path_install
4047   else
4048     # As a last resort, use the slow shell script.  We don't cache a
4049     # path for INSTALL within a source directory, because that will
4050     # break other packages using the cache if that directory is
4051     # removed, or if the path is relative.
4052     INSTALL=$ac_install_sh
4053   fi
4054 fi
4055 echo "$as_me:$LINENO: result: $INSTALL" >&5
4056 echo "${ECHO_T}$INSTALL" >&6
4057
4058 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4059 # It thinks the first close brace ends the variable substitution.
4060 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4061
4062 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4063
4064 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4065
4066 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4067 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4068 LN_S=$as_ln_s
4069 if test "$LN_S" = "ln -s"; then
4070   echo "$as_me:$LINENO: result: yes" >&5
4071 echo "${ECHO_T}yes" >&6
4072 else
4073   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4074 echo "${ECHO_T}no, using $LN_S" >&6
4075 fi
4076
4077 # Extract the first word of "c2man", so it can be a program name with args.
4078 set dummy c2man; ac_word=$2
4079 echo "$as_me:$LINENO: checking for $ac_word" >&5
4080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4081 if test "${ac_cv_prog_C2MAN+set}" = set; then
4082   echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084   if test -n "$C2MAN"; then
4085   ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4086 else
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH
4089 do
4090   IFS=$as_save_IFS
4091   test -z "$as_dir" && as_dir=.
4092   for ac_exec_ext in '' $ac_executable_extensions; do
4093   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4094     ac_cv_prog_C2MAN="c2man"
4095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4096     break 2
4097   fi
4098 done
4099 done
4100
4101   test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4102 fi
4103 fi
4104 C2MAN=$ac_cv_prog_C2MAN
4105 if test -n "$C2MAN"; then
4106   echo "$as_me:$LINENO: result: $C2MAN" >&5
4107 echo "${ECHO_T}$C2MAN" >&6
4108 else
4109   echo "$as_me:$LINENO: result: no" >&5
4110 echo "${ECHO_T}no" >&6
4111 fi
4112
4113 # Extract the first word of "ldconfig", so it can be a program name with args.
4114 set dummy ldconfig; ac_word=$2
4115 echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4118   echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120   case $LDCONFIG in
4121   [\\/]* | ?:[\\/]*)
4122   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4123   ;;
4124   *)
4125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in /sbin /usr/sbin $PATH
4127 do
4128   IFS=$as_save_IFS
4129   test -z "$as_dir" && as_dir=.
4130   for ac_exec_ext in '' $ac_executable_extensions; do
4131   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134     break 2
4135   fi
4136 done
4137 done
4138
4139   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4140   ;;
4141 esac
4142 fi
4143 LDCONFIG=$ac_cv_path_LDCONFIG
4144
4145 if test -n "$LDCONFIG"; then
4146   echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4147 echo "${ECHO_T}$LDCONFIG" >&6
4148 else
4149   echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6
4151 fi
4152
4153
4154 for ac_prog in lclint lint
4155 do
4156   # Extract the first word of "$ac_prog", so it can be a program name with args.
4157 set dummy $ac_prog; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_prog_LINT+set}" = set; then
4161   echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163   if test -n "$LINT"; then
4164   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4168 do
4169   IFS=$as_save_IFS
4170   test -z "$as_dir" && as_dir=.
4171   for ac_exec_ext in '' $ac_executable_extensions; do
4172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173     ac_cv_prog_LINT="$ac_prog"
4174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175     break 2
4176   fi
4177 done
4178 done
4179
4180 fi
4181 fi
4182 LINT=$ac_cv_prog_LINT
4183 if test -n "$LINT"; then
4184   echo "$as_me:$LINENO: result: $LINT" >&5
4185 echo "${ECHO_T}$LINT" >&6
4186 else
4187   echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4189 fi
4190
4191   test -n "$LINT" && break
4192 done
4193
4194 if test "$LINT" = "lint"
4195 then
4196   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4197   fi
4198
4199
4200
4201 case $host_os in
4202   *cygwin*) LDCOMBINE="ld -r --enable-stdcall-fixup" ;;
4203          *) LDCOMBINE="ld -r" ;;
4204 esac
4205
4206
4207
4208
4209 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4210 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4211 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4212   echo $ECHO_N "(cached) $ECHO_C" >&6
4213 else
4214   ac_check_lib_save_LIBS=$LIBS
4215 LIBS="-lm  $LIBS"
4216 cat >conftest.$ac_ext <<_ACEOF
4217 #line $LINENO "configure"
4218 #include "confdefs.h"
4219
4220 /* Override any gcc2 internal prototype to avoid an error.  */
4221 #ifdef __cplusplus
4222 extern "C"
4223 #endif
4224 /* We use char because int might match the return type of a gcc2
4225    builtin and then its argument prototype would still apply.  */
4226 char sqrt ();
4227 #ifdef F77_DUMMY_MAIN
4228 #  ifdef __cplusplus
4229      extern "C"
4230 #  endif
4231    int F77_DUMMY_MAIN() { return 1; }
4232 #endif
4233 int
4234 main ()
4235 {
4236 sqrt ();
4237   ;
4238   return 0;
4239 }
4240 _ACEOF
4241 rm -f conftest.$ac_objext conftest$ac_exeext
4242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4243   (eval $ac_link) 2>&5
4244   ac_status=$?
4245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246   (exit $ac_status); } &&
4247          { ac_try='test -s conftest$ac_exeext'
4248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249   (eval $ac_try) 2>&5
4250   ac_status=$?
4251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252   (exit $ac_status); }; }; then
4253   ac_cv_lib_m_sqrt=yes
4254 else
4255   echo "$as_me: failed program was:" >&5
4256 cat conftest.$ac_ext >&5
4257 ac_cv_lib_m_sqrt=no
4258 fi
4259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4260 LIBS=$ac_check_lib_save_LIBS
4261 fi
4262 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4263 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4264 if test $ac_cv_lib_m_sqrt = yes; then
4265   cat >>confdefs.h <<_ACEOF
4266 #define HAVE_LIBM 1
4267 _ACEOF
4268
4269   LIBS="-lm $LIBS"
4270
4271 fi
4272
4273
4274 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
4275 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4276 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4277   echo $ECHO_N "(cached) $ECHO_C" >&6
4278 else
4279   ac_check_lib_save_LIBS=$LIBS
4280 LIBS="-li386  $LIBS"
4281 cat >conftest.$ac_ext <<_ACEOF
4282 #line $LINENO "configure"
4283 #include "confdefs.h"
4284
4285 /* Override any gcc2 internal prototype to avoid an error.  */
4286 #ifdef __cplusplus
4287 extern "C"
4288 #endif
4289 /* We use char because int might match the return type of a gcc2
4290    builtin and then its argument prototype would still apply.  */
4291 char i386_set_ldt ();
4292 #ifdef F77_DUMMY_MAIN
4293 #  ifdef __cplusplus
4294      extern "C"
4295 #  endif
4296    int F77_DUMMY_MAIN() { return 1; }
4297 #endif
4298 int
4299 main ()
4300 {
4301 i386_set_ldt ();
4302   ;
4303   return 0;
4304 }
4305 _ACEOF
4306 rm -f conftest.$ac_objext conftest$ac_exeext
4307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4308   (eval $ac_link) 2>&5
4309   ac_status=$?
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); } &&
4312          { ac_try='test -s conftest$ac_exeext'
4313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314   (eval $ac_try) 2>&5
4315   ac_status=$?
4316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317   (exit $ac_status); }; }; then
4318   ac_cv_lib_i386_i386_set_ldt=yes
4319 else
4320   echo "$as_me: failed program was:" >&5
4321 cat conftest.$ac_ext >&5
4322 ac_cv_lib_i386_i386_set_ldt=no
4323 fi
4324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4325 LIBS=$ac_check_lib_save_LIBS
4326 fi
4327 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
4328 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4329 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
4330   cat >>confdefs.h <<_ACEOF
4331 #define HAVE_LIBI386 1
4332 _ACEOF
4333
4334   LIBS="-li386 $LIBS"
4335
4336 fi
4337
4338
4339 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4340 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4341 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4342   echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344   ac_check_lib_save_LIBS=$LIBS
4345 LIBS="-lossaudio  $LIBS"
4346 cat >conftest.$ac_ext <<_ACEOF
4347 #line $LINENO "configure"
4348 #include "confdefs.h"
4349
4350 /* Override any gcc2 internal prototype to avoid an error.  */
4351 #ifdef __cplusplus
4352 extern "C"
4353 #endif
4354 /* We use char because int might match the return type of a gcc2
4355    builtin and then its argument prototype would still apply.  */
4356 char _oss_ioctl ();
4357 #ifdef F77_DUMMY_MAIN
4358 #  ifdef __cplusplus
4359      extern "C"
4360 #  endif
4361    int F77_DUMMY_MAIN() { return 1; }
4362 #endif
4363 int
4364 main ()
4365 {
4366 _oss_ioctl ();
4367   ;
4368   return 0;
4369 }
4370 _ACEOF
4371 rm -f conftest.$ac_objext conftest$ac_exeext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4373   (eval $ac_link) 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); } &&
4377          { ac_try='test -s conftest$ac_exeext'
4378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379   (eval $ac_try) 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); }; }; then
4383   ac_cv_lib_ossaudio__oss_ioctl=yes
4384 else
4385   echo "$as_me: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4387 ac_cv_lib_ossaudio__oss_ioctl=no
4388 fi
4389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4390 LIBS=$ac_check_lib_save_LIBS
4391 fi
4392 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4393 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4394 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4395   cat >>confdefs.h <<_ACEOF
4396 #define HAVE_LIBOSSAUDIO 1
4397 _ACEOF
4398
4399   LIBS="-lossaudio $LIBS"
4400
4401 fi
4402
4403
4404 for ac_func in iswalnum
4405 do
4406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4407 echo "$as_me:$LINENO: checking for $ac_func" >&5
4408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4409 if eval "test \"\${$as_ac_var+set}\" = set"; then
4410   echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412   cat >conftest.$ac_ext <<_ACEOF
4413 #line $LINENO "configure"
4414 #include "confdefs.h"
4415 /* System header to define __stub macros and hopefully few prototypes,
4416     which can conflict with char $ac_func (); below.  */
4417 #include <assert.h>
4418 /* Override any gcc2 internal prototype to avoid an error.  */
4419 #ifdef __cplusplus
4420 extern "C"
4421 #endif
4422 /* We use char because int might match the return type of a gcc2
4423    builtin and then its argument prototype would still apply.  */
4424 char $ac_func ();
4425 char (*f) ();
4426
4427 #ifdef F77_DUMMY_MAIN
4428 #  ifdef __cplusplus
4429      extern "C"
4430 #  endif
4431    int F77_DUMMY_MAIN() { return 1; }
4432 #endif
4433 int
4434 main ()
4435 {
4436 /* The GNU C library defines this for functions which it implements
4437     to always fail with ENOSYS.  Some functions are actually named
4438     something starting with __ and the normal name is an alias.  */
4439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4440 choke me
4441 #else
4442 f = $ac_func;
4443 #endif
4444
4445   ;
4446   return 0;
4447 }
4448 _ACEOF
4449 rm -f conftest.$ac_objext conftest$ac_exeext
4450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4451   (eval $ac_link) 2>&5
4452   ac_status=$?
4453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454   (exit $ac_status); } &&
4455          { ac_try='test -s conftest$ac_exeext'
4456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457   (eval $ac_try) 2>&5
4458   ac_status=$?
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); }; }; then
4461   eval "$as_ac_var=yes"
4462 else
4463   echo "$as_me: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4465 eval "$as_ac_var=no"
4466 fi
4467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4468 fi
4469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4471 if test `eval echo '${'$as_ac_var'}'` = yes; then
4472   cat >>confdefs.h <<_ACEOF
4473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4474 _ACEOF
4475
4476 else
4477
4478 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
4479 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4480 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   ac_check_lib_save_LIBS=$LIBS
4484 LIBS="-lw  $LIBS"
4485 cat >conftest.$ac_ext <<_ACEOF
4486 #line $LINENO "configure"
4487 #include "confdefs.h"
4488
4489 /* Override any gcc2 internal prototype to avoid an error.  */
4490 #ifdef __cplusplus
4491 extern "C"
4492 #endif
4493 /* We use char because int might match the return type of a gcc2
4494    builtin and then its argument prototype would still apply.  */
4495 char iswalnum ();
4496 #ifdef F77_DUMMY_MAIN
4497 #  ifdef __cplusplus
4498      extern "C"
4499 #  endif
4500    int F77_DUMMY_MAIN() { return 1; }
4501 #endif
4502 int
4503 main ()
4504 {
4505 iswalnum ();
4506   ;
4507   return 0;
4508 }
4509 _ACEOF
4510 rm -f conftest.$ac_objext conftest$ac_exeext
4511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4512   (eval $ac_link) 2>&5
4513   ac_status=$?
4514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515   (exit $ac_status); } &&
4516          { ac_try='test -s conftest$ac_exeext'
4517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518   (eval $ac_try) 2>&5
4519   ac_status=$?
4520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521   (exit $ac_status); }; }; then
4522   ac_cv_lib_w_iswalnum=yes
4523 else
4524   echo "$as_me: failed program was:" >&5
4525 cat conftest.$ac_ext >&5
4526 ac_cv_lib_w_iswalnum=no
4527 fi
4528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4529 LIBS=$ac_check_lib_save_LIBS
4530 fi
4531 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
4532 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4533 if test $ac_cv_lib_w_iswalnum = yes; then
4534   cat >>confdefs.h <<_ACEOF
4535 #define HAVE_LIBW 1
4536 _ACEOF
4537
4538   LIBS="-lw $LIBS"
4539
4540 fi
4541
4542 fi
4543 done
4544
4545
4546 for ac_func in gethostbyname
4547 do
4548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4549 echo "$as_me:$LINENO: checking for $ac_func" >&5
4550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4551 if eval "test \"\${$as_ac_var+set}\" = set"; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554   cat >conftest.$ac_ext <<_ACEOF
4555 #line $LINENO "configure"
4556 #include "confdefs.h"
4557 /* System header to define __stub macros and hopefully few prototypes,
4558     which can conflict with char $ac_func (); below.  */
4559 #include <assert.h>
4560 /* Override any gcc2 internal prototype to avoid an error.  */
4561 #ifdef __cplusplus
4562 extern "C"
4563 #endif
4564 /* We use char because int might match the return type of a gcc2
4565    builtin and then its argument prototype would still apply.  */
4566 char $ac_func ();
4567 char (*f) ();
4568
4569 #ifdef F77_DUMMY_MAIN
4570 #  ifdef __cplusplus
4571      extern "C"
4572 #  endif
4573    int F77_DUMMY_MAIN() { return 1; }
4574 #endif
4575 int
4576 main ()
4577 {
4578 /* The GNU C library defines this for functions which it implements
4579     to always fail with ENOSYS.  Some functions are actually named
4580     something starting with __ and the normal name is an alias.  */
4581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4582 choke me
4583 #else
4584 f = $ac_func;
4585 #endif
4586
4587   ;
4588   return 0;
4589 }
4590 _ACEOF
4591 rm -f conftest.$ac_objext conftest$ac_exeext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4593   (eval $ac_link) 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); } &&
4597          { ac_try='test -s conftest$ac_exeext'
4598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599   (eval $ac_try) 2>&5
4600   ac_status=$?
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); }; }; then
4603   eval "$as_ac_var=yes"
4604 else
4605   echo "$as_me: failed program was:" >&5
4606 cat conftest.$ac_ext >&5
4607 eval "$as_ac_var=no"
4608 fi
4609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4610 fi
4611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4613 if test `eval echo '${'$as_ac_var'}'` = yes; then
4614   cat >>confdefs.h <<_ACEOF
4615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4616 _ACEOF
4617
4618 else
4619
4620 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4621 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4622 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   ac_check_lib_save_LIBS=$LIBS
4626 LIBS="-lnsl  $LIBS"
4627 cat >conftest.$ac_ext <<_ACEOF
4628 #line $LINENO "configure"
4629 #include "confdefs.h"
4630
4631 /* Override any gcc2 internal prototype to avoid an error.  */
4632 #ifdef __cplusplus
4633 extern "C"
4634 #endif
4635 /* We use char because int might match the return type of a gcc2
4636    builtin and then its argument prototype would still apply.  */
4637 char gethostbyname ();
4638 #ifdef F77_DUMMY_MAIN
4639 #  ifdef __cplusplus
4640      extern "C"
4641 #  endif
4642    int F77_DUMMY_MAIN() { return 1; }
4643 #endif
4644 int
4645 main ()
4646 {
4647 gethostbyname ();
4648   ;
4649   return 0;
4650 }
4651 _ACEOF
4652 rm -f conftest.$ac_objext conftest$ac_exeext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4654   (eval $ac_link) 2>&5
4655   ac_status=$?
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); } &&
4658          { ac_try='test -s conftest$ac_exeext'
4659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660   (eval $ac_try) 2>&5
4661   ac_status=$?
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); }; }; then
4664   ac_cv_lib_nsl_gethostbyname=yes
4665 else
4666   echo "$as_me: failed program was:" >&5
4667 cat conftest.$ac_ext >&5
4668 ac_cv_lib_nsl_gethostbyname=no
4669 fi
4670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4671 LIBS=$ac_check_lib_save_LIBS
4672 fi
4673 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4674 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4675 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4676   cat >>confdefs.h <<_ACEOF
4677 #define HAVE_LIBNSL 1
4678 _ACEOF
4679
4680   LIBS="-lnsl $LIBS"
4681
4682 fi
4683
4684 fi
4685 done
4686
4687
4688 for ac_func in connect
4689 do
4690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4691 echo "$as_me:$LINENO: checking for $ac_func" >&5
4692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4693 if eval "test \"\${$as_ac_var+set}\" = set"; then
4694   echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696   cat >conftest.$ac_ext <<_ACEOF
4697 #line $LINENO "configure"
4698 #include "confdefs.h"
4699 /* System header to define __stub macros and hopefully few prototypes,
4700     which can conflict with char $ac_func (); below.  */
4701 #include <assert.h>
4702 /* Override any gcc2 internal prototype to avoid an error.  */
4703 #ifdef __cplusplus
4704 extern "C"
4705 #endif
4706 /* We use char because int might match the return type of a gcc2
4707    builtin and then its argument prototype would still apply.  */
4708 char $ac_func ();
4709 char (*f) ();
4710
4711 #ifdef F77_DUMMY_MAIN
4712 #  ifdef __cplusplus
4713      extern "C"
4714 #  endif
4715    int F77_DUMMY_MAIN() { return 1; }
4716 #endif
4717 int
4718 main ()
4719 {
4720 /* The GNU C library defines this for functions which it implements
4721     to always fail with ENOSYS.  Some functions are actually named
4722     something starting with __ and the normal name is an alias.  */
4723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4724 choke me
4725 #else
4726 f = $ac_func;
4727 #endif
4728
4729   ;
4730   return 0;
4731 }
4732 _ACEOF
4733 rm -f conftest.$ac_objext conftest$ac_exeext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4735   (eval $ac_link) 2>&5
4736   ac_status=$?
4737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738   (exit $ac_status); } &&
4739          { ac_try='test -s conftest$ac_exeext'
4740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741   (eval $ac_try) 2>&5
4742   ac_status=$?
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); }; }; then
4745   eval "$as_ac_var=yes"
4746 else
4747   echo "$as_me: failed program was:" >&5
4748 cat conftest.$ac_ext >&5
4749 eval "$as_ac_var=no"
4750 fi
4751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4752 fi
4753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4755 if test `eval echo '${'$as_ac_var'}'` = yes; then
4756   cat >>confdefs.h <<_ACEOF
4757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4758 _ACEOF
4759
4760 else
4761
4762 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4763 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4764 if test "${ac_cv_lib_socket_connect+set}" = set; then
4765   echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767   ac_check_lib_save_LIBS=$LIBS
4768 LIBS="-lsocket  $LIBS"
4769 cat >conftest.$ac_ext <<_ACEOF
4770 #line $LINENO "configure"
4771 #include "confdefs.h"
4772
4773 /* Override any gcc2 internal prototype to avoid an error.  */
4774 #ifdef __cplusplus
4775 extern "C"
4776 #endif
4777 /* We use char because int might match the return type of a gcc2
4778    builtin and then its argument prototype would still apply.  */
4779 char connect ();
4780 #ifdef F77_DUMMY_MAIN
4781 #  ifdef __cplusplus
4782      extern "C"
4783 #  endif
4784    int F77_DUMMY_MAIN() { return 1; }
4785 #endif
4786 int
4787 main ()
4788 {
4789 connect ();
4790   ;
4791   return 0;
4792 }
4793 _ACEOF
4794 rm -f conftest.$ac_objext conftest$ac_exeext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4796   (eval $ac_link) 2>&5
4797   ac_status=$?
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); } &&
4800          { ac_try='test -s conftest$ac_exeext'
4801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802   (eval $ac_try) 2>&5
4803   ac_status=$?
4804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805   (exit $ac_status); }; }; then
4806   ac_cv_lib_socket_connect=yes
4807 else
4808   echo "$as_me: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4810 ac_cv_lib_socket_connect=no
4811 fi
4812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4813 LIBS=$ac_check_lib_save_LIBS
4814 fi
4815 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4816 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4817 if test $ac_cv_lib_socket_connect = yes; then
4818   cat >>confdefs.h <<_ACEOF
4819 #define HAVE_LIBSOCKET 1
4820 _ACEOF
4821
4822   LIBS="-lsocket $LIBS"
4823
4824 fi
4825
4826 fi
4827 done
4828
4829
4830 for ac_func in inet_aton
4831 do
4832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4833 echo "$as_me:$LINENO: checking for $ac_func" >&5
4834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4835 if eval "test \"\${$as_ac_var+set}\" = set"; then
4836   echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838   cat >conftest.$ac_ext <<_ACEOF
4839 #line $LINENO "configure"
4840 #include "confdefs.h"
4841 /* System header to define __stub macros and hopefully few prototypes,
4842     which can conflict with char $ac_func (); below.  */
4843 #include <assert.h>
4844 /* Override any gcc2 internal prototype to avoid an error.  */
4845 #ifdef __cplusplus
4846 extern "C"
4847 #endif
4848 /* We use char because int might match the return type of a gcc2
4849    builtin and then its argument prototype would still apply.  */
4850 char $ac_func ();
4851 char (*f) ();
4852
4853 #ifdef F77_DUMMY_MAIN
4854 #  ifdef __cplusplus
4855      extern "C"
4856 #  endif
4857    int F77_DUMMY_MAIN() { return 1; }
4858 #endif
4859 int
4860 main ()
4861 {
4862 /* The GNU C library defines this for functions which it implements
4863     to always fail with ENOSYS.  Some functions are actually named
4864     something starting with __ and the normal name is an alias.  */
4865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4866 choke me
4867 #else
4868 f = $ac_func;
4869 #endif
4870
4871   ;
4872   return 0;
4873 }
4874 _ACEOF
4875 rm -f conftest.$ac_objext conftest$ac_exeext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4877   (eval $ac_link) 2>&5
4878   ac_status=$?
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); } &&
4881          { ac_try='test -s conftest$ac_exeext'
4882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883   (eval $ac_try) 2>&5
4884   ac_status=$?
4885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886   (exit $ac_status); }; }; then
4887   eval "$as_ac_var=yes"
4888 else
4889   echo "$as_me: failed program was:" >&5
4890 cat conftest.$ac_ext >&5
4891 eval "$as_ac_var=no"
4892 fi
4893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4894 fi
4895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4897 if test `eval echo '${'$as_ac_var'}'` = yes; then
4898   cat >>confdefs.h <<_ACEOF
4899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4900 _ACEOF
4901
4902 else
4903
4904 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
4905 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
4906 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
4907   echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909   ac_check_lib_save_LIBS=$LIBS
4910 LIBS="-lresolv  $LIBS"
4911 cat >conftest.$ac_ext <<_ACEOF
4912 #line $LINENO "configure"
4913 #include "confdefs.h"
4914
4915 /* Override any gcc2 internal prototype to avoid an error.  */
4916 #ifdef __cplusplus
4917 extern "C"
4918 #endif
4919 /* We use char because int might match the return type of a gcc2
4920    builtin and then its argument prototype would still apply.  */
4921 char inet_aton ();
4922 #ifdef F77_DUMMY_MAIN
4923 #  ifdef __cplusplus
4924      extern "C"
4925 #  endif
4926    int F77_DUMMY_MAIN() { return 1; }
4927 #endif
4928 int
4929 main ()
4930 {
4931 inet_aton ();
4932   ;
4933   return 0;
4934 }
4935 _ACEOF
4936 rm -f conftest.$ac_objext conftest$ac_exeext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4938   (eval $ac_link) 2>&5
4939   ac_status=$?
4940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941   (exit $ac_status); } &&
4942          { ac_try='test -s conftest$ac_exeext'
4943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944   (eval $ac_try) 2>&5
4945   ac_status=$?
4946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947   (exit $ac_status); }; }; then
4948   ac_cv_lib_resolv_inet_aton=yes
4949 else
4950   echo "$as_me: failed program was:" >&5
4951 cat conftest.$ac_ext >&5
4952 ac_cv_lib_resolv_inet_aton=no
4953 fi
4954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4955 LIBS=$ac_check_lib_save_LIBS
4956 fi
4957 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
4958 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
4959 if test $ac_cv_lib_resolv_inet_aton = yes; then
4960   cat >>confdefs.h <<_ACEOF
4961 #define HAVE_LIBRESOLV 1
4962 _ACEOF
4963
4964   LIBS="-lresolv $LIBS"
4965
4966 fi
4967
4968 fi
4969 done
4970
4971
4972 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
4973 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
4974 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
4975   echo $ECHO_N "(cached) $ECHO_C" >&6
4976 else
4977   ac_check_lib_save_LIBS=$LIBS
4978 LIBS="-lxpg4  $LIBS"
4979 cat >conftest.$ac_ext <<_ACEOF
4980 #line $LINENO "configure"
4981 #include "confdefs.h"
4982
4983 /* Override any gcc2 internal prototype to avoid an error.  */
4984 #ifdef __cplusplus
4985 extern "C"
4986 #endif
4987 /* We use char because int might match the return type of a gcc2
4988    builtin and then its argument prototype would still apply.  */
4989 char _xpg4_setrunelocale ();
4990 #ifdef F77_DUMMY_MAIN
4991 #  ifdef __cplusplus
4992      extern "C"
4993 #  endif
4994    int F77_DUMMY_MAIN() { return 1; }
4995 #endif
4996 int
4997 main ()
4998 {
4999 _xpg4_setrunelocale ();
5000   ;
5001   return 0;
5002 }
5003 _ACEOF
5004 rm -f conftest.$ac_objext conftest$ac_exeext
5005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5006   (eval $ac_link) 2>&5
5007   ac_status=$?
5008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009   (exit $ac_status); } &&
5010          { ac_try='test -s conftest$ac_exeext'
5011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012   (eval $ac_try) 2>&5
5013   ac_status=$?
5014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015   (exit $ac_status); }; }; then
5016   ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5017 else
5018   echo "$as_me: failed program was:" >&5
5019 cat conftest.$ac_ext >&5
5020 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5021 fi
5022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5023 LIBS=$ac_check_lib_save_LIBS
5024 fi
5025 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5026 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5027 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5028   cat >>confdefs.h <<_ACEOF
5029 #define HAVE_LIBXPG4 1
5030 _ACEOF
5031
5032   LIBS="-lxpg4 $LIBS"
5033
5034 fi
5035
5036
5037 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5038 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5039 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5040   echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042   ac_check_lib_save_LIBS=$LIBS
5043 LIBS="-lmmap  $LIBS"
5044 cat >conftest.$ac_ext <<_ACEOF
5045 #line $LINENO "configure"
5046 #include "confdefs.h"
5047
5048 /* Override any gcc2 internal prototype to avoid an error.  */
5049 #ifdef __cplusplus
5050 extern "C"
5051 #endif
5052 /* We use char because int might match the return type of a gcc2
5053    builtin and then its argument prototype would still apply.  */
5054 char mmap ();
5055 #ifdef F77_DUMMY_MAIN
5056 #  ifdef __cplusplus
5057      extern "C"
5058 #  endif
5059    int F77_DUMMY_MAIN() { return 1; }
5060 #endif
5061 int
5062 main ()
5063 {
5064 mmap ();
5065   ;
5066   return 0;
5067 }
5068 _ACEOF
5069 rm -f conftest.$ac_objext conftest$ac_exeext
5070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5071   (eval $ac_link) 2>&5
5072   ac_status=$?
5073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); } &&
5075          { ac_try='test -s conftest$ac_exeext'
5076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077   (eval $ac_try) 2>&5
5078   ac_status=$?
5079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080   (exit $ac_status); }; }; then
5081   ac_cv_lib_mmap_mmap=yes
5082 else
5083   echo "$as_me: failed program was:" >&5
5084 cat conftest.$ac_ext >&5
5085 ac_cv_lib_mmap_mmap=no
5086 fi
5087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5088 LIBS=$ac_check_lib_save_LIBS
5089 fi
5090 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5091 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5092 if test $ac_cv_lib_mmap_mmap = yes; then
5093   cat >>confdefs.h <<_ACEOF
5094 #define HAVE_LIBMMAP 1
5095 _ACEOF
5096
5097   LIBS="-lmmap $LIBS"
5098
5099 fi
5100
5101
5102 JPEGLIB=""
5103
5104 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5105 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5106 if test "${ac_cv_header_stdc+set}" = set; then
5107   echo $ECHO_N "(cached) $ECHO_C" >&6
5108 else
5109   cat >conftest.$ac_ext <<_ACEOF
5110 #line $LINENO "configure"
5111 #include "confdefs.h"
5112 #include <stdlib.h>
5113 #include <stdarg.h>
5114 #include <string.h>
5115 #include <float.h>
5116
5117 _ACEOF
5118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5119   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5120   ac_status=$?
5121   egrep -v '^ *\+' conftest.er1 >conftest.err
5122   rm -f conftest.er1
5123   cat conftest.err >&5
5124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125   (exit $ac_status); } >/dev/null; then
5126   if test -s conftest.err; then
5127     ac_cpp_err=$ac_c_preproc_warn_flag
5128   else
5129     ac_cpp_err=
5130   fi
5131 else
5132   ac_cpp_err=yes
5133 fi
5134 if test -z "$ac_cpp_err"; then
5135   ac_cv_header_stdc=yes
5136 else
5137   echo "$as_me: failed program was:" >&5
5138   cat conftest.$ac_ext >&5
5139   ac_cv_header_stdc=no
5140 fi
5141 rm -f conftest.err conftest.$ac_ext
5142
5143 if test $ac_cv_header_stdc = yes; then
5144   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5145   cat >conftest.$ac_ext <<_ACEOF
5146 #line $LINENO "configure"
5147 #include "confdefs.h"
5148 #include <string.h>
5149
5150 _ACEOF
5151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5152   egrep "memchr" >/dev/null 2>&1; then
5153   :
5154 else
5155   ac_cv_header_stdc=no
5156 fi
5157 rm -f conftest*
5158
5159 fi
5160
5161 if test $ac_cv_header_stdc = yes; then
5162   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5163   cat >conftest.$ac_ext <<_ACEOF
5164 #line $LINENO "configure"
5165 #include "confdefs.h"
5166 #include <stdlib.h>
5167
5168 _ACEOF
5169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5170   egrep "free" >/dev/null 2>&1; then
5171   :
5172 else
5173   ac_cv_header_stdc=no
5174 fi
5175 rm -f conftest*
5176
5177 fi
5178
5179 if test $ac_cv_header_stdc = yes; then
5180   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5181   if test "$cross_compiling" = yes; then
5182   :
5183 else
5184   cat >conftest.$ac_ext <<_ACEOF
5185 #line $LINENO "configure"
5186 #include "confdefs.h"
5187 #include <ctype.h>
5188 #if ((' ' & 0x0FF) == 0x020)
5189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5191 #else
5192 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5193                      || ('j' <= (c) && (c) <= 'r') \
5194                      || ('s' <= (c) && (c) <= 'z'))
5195 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5196 #endif
5197
5198 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5199 int
5200 main ()
5201 {
5202   int i;
5203   for (i = 0; i < 256; i++)
5204     if (XOR (islower (i), ISLOWER (i))
5205         || toupper (i) != TOUPPER (i))
5206       exit(2);
5207   exit (0);
5208 }
5209 _ACEOF
5210 rm -f conftest$ac_exeext
5211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5212   (eval $ac_link) 2>&5
5213   ac_status=$?
5214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217   (eval $ac_try) 2>&5
5218   ac_status=$?
5219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220   (exit $ac_status); }; }; then
5221   :
5222 else
5223   echo "$as_me: program exited with status $ac_status" >&5
5224 echo "$as_me: failed program was:" >&5
5225 cat conftest.$ac_ext >&5
5226 ( exit $ac_status )
5227 ac_cv_header_stdc=no
5228 fi
5229 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5230 fi
5231 fi
5232 fi
5233 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5234 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5235 if test $ac_cv_header_stdc = yes; then
5236
5237 cat >>confdefs.h <<\_ACEOF
5238 #define STDC_HEADERS 1
5239 _ACEOF
5240
5241 fi
5242
5243 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5254                   inttypes.h stdint.h unistd.h
5255 do
5256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5257 echo "$as_me:$LINENO: checking for $ac_header" >&5
5258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5260   echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262   cat >conftest.$ac_ext <<_ACEOF
5263 #line $LINENO "configure"
5264 #include "confdefs.h"
5265 $ac_includes_default
5266
5267 #include <$ac_header>
5268 _ACEOF
5269 rm -f conftest.$ac_objext
5270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5271   (eval $ac_compile) 2>&5
5272   ac_status=$?
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); } &&
5275          { ac_try='test -s conftest.$ac_objext'
5276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277   (eval $ac_try) 2>&5
5278   ac_status=$?
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); }; }; then
5281   eval "$as_ac_Header=yes"
5282 else
5283   echo "$as_me: failed program was:" >&5
5284 cat conftest.$ac_ext >&5
5285 eval "$as_ac_Header=no"
5286 fi
5287 rm -f conftest.$ac_objext conftest.$ac_ext
5288 fi
5289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5292   cat >>confdefs.h <<_ACEOF
5293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5294 _ACEOF
5295
5296 fi
5297
5298 done
5299
5300
5301
5302 for ac_header in jpeglib.h
5303 do
5304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5306   echo "$as_me:$LINENO: checking for $ac_header" >&5
5307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5309   echo $ECHO_N "(cached) $ECHO_C" >&6
5310 fi
5311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5313 else
5314   # Is the header compilable?
5315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5317 cat >conftest.$ac_ext <<_ACEOF
5318 #line $LINENO "configure"
5319 #include "confdefs.h"
5320 $ac_includes_default
5321 #include <$ac_header>
5322 _ACEOF
5323 rm -f conftest.$ac_objext
5324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5325   (eval $ac_compile) 2>&5
5326   ac_status=$?
5327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328   (exit $ac_status); } &&
5329          { ac_try='test -s conftest.$ac_objext'
5330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331   (eval $ac_try) 2>&5
5332   ac_status=$?
5333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334   (exit $ac_status); }; }; then
5335   ac_header_compiler=yes
5336 else
5337   echo "$as_me: failed program was:" >&5
5338 cat conftest.$ac_ext >&5
5339 ac_header_compiler=no
5340 fi
5341 rm -f conftest.$ac_objext conftest.$ac_ext
5342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5343 echo "${ECHO_T}$ac_header_compiler" >&6
5344
5345 # Is the header present?
5346 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5348 cat >conftest.$ac_ext <<_ACEOF
5349 #line $LINENO "configure"
5350 #include "confdefs.h"
5351 #include <$ac_header>
5352 _ACEOF
5353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5354   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5355   ac_status=$?
5356   egrep -v '^ *\+' conftest.er1 >conftest.err
5357   rm -f conftest.er1
5358   cat conftest.err >&5
5359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360   (exit $ac_status); } >/dev/null; then
5361   if test -s conftest.err; then
5362     ac_cpp_err=$ac_c_preproc_warn_flag
5363   else
5364     ac_cpp_err=
5365   fi
5366 else
5367   ac_cpp_err=yes
5368 fi
5369 if test -z "$ac_cpp_err"; then
5370   ac_header_preproc=yes
5371 else
5372   echo "$as_me: failed program was:" >&5
5373   cat conftest.$ac_ext >&5
5374   ac_header_preproc=no
5375 fi
5376 rm -f conftest.err conftest.$ac_ext
5377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5378 echo "${ECHO_T}$ac_header_preproc" >&6
5379
5380 # So?  What about this header?
5381 case $ac_header_compiler:$ac_header_preproc in
5382   yes:no )
5383     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5385     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5387   no:yes )
5388     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5390     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5391 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5392     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5394 esac
5395 echo "$as_me:$LINENO: checking for $ac_header" >&5
5396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5398   echo $ECHO_N "(cached) $ECHO_C" >&6
5399 else
5400   eval "$as_ac_Header=$ac_header_preproc"
5401 fi
5402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5404
5405 fi
5406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5407   cat >>confdefs.h <<_ACEOF
5408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5409 _ACEOF
5410  echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
5411 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5412 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5413   echo $ECHO_N "(cached) $ECHO_C" >&6
5414 else
5415   ac_check_lib_save_LIBS=$LIBS
5416 LIBS="-ljpeg  $LIBS"
5417 cat >conftest.$ac_ext <<_ACEOF
5418 #line $LINENO "configure"
5419 #include "confdefs.h"
5420
5421 /* Override any gcc2 internal prototype to avoid an error.  */
5422 #ifdef __cplusplus
5423 extern "C"
5424 #endif
5425 /* We use char because int might match the return type of a gcc2
5426    builtin and then its argument prototype would still apply.  */
5427 char jpeg_start_decompress ();
5428 #ifdef F77_DUMMY_MAIN
5429 #  ifdef __cplusplus
5430      extern "C"
5431 #  endif
5432    int F77_DUMMY_MAIN() { return 1; }
5433 #endif
5434 int
5435 main ()
5436 {
5437 jpeg_start_decompress ();
5438   ;
5439   return 0;
5440 }
5441 _ACEOF
5442 rm -f conftest.$ac_objext conftest$ac_exeext
5443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5444   (eval $ac_link) 2>&5
5445   ac_status=$?
5446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447   (exit $ac_status); } &&
5448          { ac_try='test -s conftest$ac_exeext'
5449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450   (eval $ac_try) 2>&5
5451   ac_status=$?
5452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453   (exit $ac_status); }; }; then
5454   ac_cv_lib_jpeg_jpeg_start_decompress=yes
5455 else
5456   echo "$as_me: failed program was:" >&5
5457 cat conftest.$ac_ext >&5
5458 ac_cv_lib_jpeg_jpeg_start_decompress=no
5459 fi
5460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5461 LIBS=$ac_check_lib_save_LIBS
5462 fi
5463 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
5464 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5465 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
5466
5467 cat >>confdefs.h <<\_ACEOF
5468 #define HAVE_LIBJPEG 1
5469 _ACEOF
5470
5471         JPEGLIB="-ljpeg"
5472
5473 fi
5474
5475
5476 fi
5477
5478 done
5479
5480
5481
5482
5483
5484 XFILES=""
5485
5486 OPENGLFILES=""
5487
5488 GLU32FILES=""
5489 if test "$have_x" = "yes"
5490 then
5491     XLIB="-lXext -lX11"
5492     ac_save_CPPFLAGS="$CPPFLAGS"
5493     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5494
5495
5496 for ac_header in X11/Xlib.h
5497 do
5498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5500   echo "$as_me:$LINENO: checking for $ac_header" >&5
5501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5503   echo $ECHO_N "(cached) $ECHO_C" >&6
5504 fi
5505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5507 else
5508   # Is the header compilable?
5509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5511 cat >conftest.$ac_ext <<_ACEOF
5512 #line $LINENO "configure"
5513 #include "confdefs.h"
5514 $ac_includes_default
5515 #include <$ac_header>
5516 _ACEOF
5517 rm -f conftest.$ac_objext
5518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5519   (eval $ac_compile) 2>&5
5520   ac_status=$?
5521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522   (exit $ac_status); } &&
5523          { ac_try='test -s conftest.$ac_objext'
5524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525   (eval $ac_try) 2>&5
5526   ac_status=$?
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); }; }; then
5529   ac_header_compiler=yes
5530 else
5531   echo "$as_me: failed program was:" >&5
5532 cat conftest.$ac_ext >&5
5533 ac_header_compiler=no
5534 fi
5535 rm -f conftest.$ac_objext conftest.$ac_ext
5536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5537 echo "${ECHO_T}$ac_header_compiler" >&6
5538
5539 # Is the header present?
5540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5542 cat >conftest.$ac_ext <<_ACEOF
5543 #line $LINENO "configure"
5544 #include "confdefs.h"
5545 #include <$ac_header>
5546 _ACEOF
5547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5548   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5549   ac_status=$?
5550   egrep -v '^ *\+' conftest.er1 >conftest.err
5551   rm -f conftest.er1
5552   cat conftest.err >&5
5553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554   (exit $ac_status); } >/dev/null; then
5555   if test -s conftest.err; then
5556     ac_cpp_err=$ac_c_preproc_warn_flag
5557   else
5558     ac_cpp_err=
5559   fi
5560 else
5561   ac_cpp_err=yes
5562 fi
5563 if test -z "$ac_cpp_err"; then
5564   ac_header_preproc=yes
5565 else
5566   echo "$as_me: failed program was:" >&5
5567   cat conftest.$ac_ext >&5
5568   ac_header_preproc=no
5569 fi
5570 rm -f conftest.err conftest.$ac_ext
5571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5572 echo "${ECHO_T}$ac_header_preproc" >&6
5573
5574 # So?  What about this header?
5575 case $ac_header_compiler:$ac_header_preproc in
5576   yes:no )
5577     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5581   no:yes )
5582     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5584     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5588 esac
5589 echo "$as_me:$LINENO: checking for $ac_header" >&5
5590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5592   echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594   eval "$as_ac_Header=$ac_header_preproc"
5595 fi
5596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5598
5599 fi
5600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5601   cat >>confdefs.h <<_ACEOF
5602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5603 _ACEOF
5604
5605
5606 for ac_header in X11/XKBlib.h
5607 do
5608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5610   echo "$as_me:$LINENO: checking for $ac_header" >&5
5611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5613   echo $ECHO_N "(cached) $ECHO_C" >&6
5614 fi
5615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5617 else
5618   # Is the header compilable?
5619 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5620 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5621 cat >conftest.$ac_ext <<_ACEOF
5622 #line $LINENO "configure"
5623 #include "confdefs.h"
5624 $ac_includes_default
5625 #include <$ac_header>
5626 _ACEOF
5627 rm -f conftest.$ac_objext
5628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5629   (eval $ac_compile) 2>&5
5630   ac_status=$?
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); } &&
5633          { ac_try='test -s conftest.$ac_objext'
5634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635   (eval $ac_try) 2>&5
5636   ac_status=$?
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); }; }; then
5639   ac_header_compiler=yes
5640 else
5641   echo "$as_me: failed program was:" >&5
5642 cat conftest.$ac_ext >&5
5643 ac_header_compiler=no
5644 fi
5645 rm -f conftest.$ac_objext conftest.$ac_ext
5646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5647 echo "${ECHO_T}$ac_header_compiler" >&6
5648
5649 # Is the header present?
5650 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5652 cat >conftest.$ac_ext <<_ACEOF
5653 #line $LINENO "configure"
5654 #include "confdefs.h"
5655 #include <$ac_header>
5656 _ACEOF
5657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5658   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5659   ac_status=$?
5660   egrep -v '^ *\+' conftest.er1 >conftest.err
5661   rm -f conftest.er1
5662   cat conftest.err >&5
5663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664   (exit $ac_status); } >/dev/null; then
5665   if test -s conftest.err; then
5666     ac_cpp_err=$ac_c_preproc_warn_flag
5667   else
5668     ac_cpp_err=
5669   fi
5670 else
5671   ac_cpp_err=yes
5672 fi
5673 if test -z "$ac_cpp_err"; then
5674   ac_header_preproc=yes
5675 else
5676   echo "$as_me: failed program was:" >&5
5677   cat conftest.$ac_ext >&5
5678   ac_header_preproc=no
5679 fi
5680 rm -f conftest.err conftest.$ac_ext
5681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5682 echo "${ECHO_T}$ac_header_preproc" >&6
5683
5684 # So?  What about this header?
5685 case $ac_header_compiler:$ac_header_preproc in
5686   yes:no )
5687     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5691   no:yes )
5692     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5694     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5698 esac
5699 echo "$as_me:$LINENO: checking for $ac_header" >&5
5700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5702   echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704   eval "$as_ac_Header=$ac_header_preproc"
5705 fi
5706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5708
5709 fi
5710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5711   cat >>confdefs.h <<_ACEOF
5712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5713 _ACEOF
5714                 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
5715 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
5716 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
5717   echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719   ac_check_lib_save_LIBS=$LIBS
5720 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
5721 cat >conftest.$ac_ext <<_ACEOF
5722 #line $LINENO "configure"
5723 #include "confdefs.h"
5724
5725 /* Override any gcc2 internal prototype to avoid an error.  */
5726 #ifdef __cplusplus
5727 extern "C"
5728 #endif
5729 /* We use char because int might match the return type of a gcc2
5730    builtin and then its argument prototype would still apply.  */
5731 char XkbQueryExtension ();
5732 #ifdef F77_DUMMY_MAIN
5733 #  ifdef __cplusplus
5734      extern "C"
5735 #  endif
5736    int F77_DUMMY_MAIN() { return 1; }
5737 #endif
5738 int
5739 main ()
5740 {
5741 XkbQueryExtension ();
5742   ;
5743   return 0;
5744 }
5745 _ACEOF
5746 rm -f conftest.$ac_objext conftest$ac_exeext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5748   (eval $ac_link) 2>&5
5749   ac_status=$?
5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751   (exit $ac_status); } &&
5752          { ac_try='test -s conftest$ac_exeext'
5753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754   (eval $ac_try) 2>&5
5755   ac_status=$?
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); }; }; then
5758   ac_cv_lib_X11_XkbQueryExtension=yes
5759 else
5760   echo "$as_me: failed program was:" >&5
5761 cat conftest.$ac_ext >&5
5762 ac_cv_lib_X11_XkbQueryExtension=no
5763 fi
5764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5765 LIBS=$ac_check_lib_save_LIBS
5766 fi
5767 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
5768 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
5769 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
5770
5771 cat >>confdefs.h <<\_ACEOF
5772 #define HAVE_XKB 1
5773 _ACEOF
5774
5775 fi
5776
5777
5778 else
5779   { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
5780 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
5781
5782 fi
5783
5784 done
5785
5786
5787
5788 for ac_header in X11/extensions/XShm.h
5789 do
5790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5791 echo "$as_me:$LINENO: checking for $ac_header" >&5
5792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5794   echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796   cat >conftest.$ac_ext <<_ACEOF
5797 #line $LINENO "configure"
5798 #include "confdefs.h"
5799 #include <X11/Xlib.h>
5800
5801 #include <$ac_header>
5802 _ACEOF
5803 rm -f conftest.$ac_objext
5804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5805   (eval $ac_compile) 2>&5
5806   ac_status=$?
5807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808   (exit $ac_status); } &&
5809          { ac_try='test -s conftest.$ac_objext'
5810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811   (eval $ac_try) 2>&5
5812   ac_status=$?
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); }; }; then
5815   eval "$as_ac_Header=yes"
5816 else
5817   echo "$as_me: failed program was:" >&5
5818 cat conftest.$ac_ext >&5
5819 eval "$as_ac_Header=no"
5820 fi
5821 rm -f conftest.$ac_objext conftest.$ac_ext
5822 fi
5823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5826   cat >>confdefs.h <<_ACEOF
5827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5828 _ACEOF
5829                 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
5830 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
5831 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834   ac_check_lib_save_LIBS=$LIBS
5835 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
5836 cat >conftest.$ac_ext <<_ACEOF
5837 #line $LINENO "configure"
5838 #include "confdefs.h"
5839
5840 /* Override any gcc2 internal prototype to avoid an error.  */
5841 #ifdef __cplusplus
5842 extern "C"
5843 #endif
5844 /* We use char because int might match the return type of a gcc2
5845    builtin and then its argument prototype would still apply.  */
5846 char XShmQueryExtension ();
5847 #ifdef F77_DUMMY_MAIN
5848 #  ifdef __cplusplus
5849      extern "C"
5850 #  endif
5851    int F77_DUMMY_MAIN() { return 1; }
5852 #endif
5853 int
5854 main ()
5855 {
5856 XShmQueryExtension ();
5857   ;
5858   return 0;
5859 }
5860 _ACEOF
5861 rm -f conftest.$ac_objext conftest$ac_exeext
5862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5863   (eval $ac_link) 2>&5
5864   ac_status=$?
5865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866   (exit $ac_status); } &&
5867          { ac_try='test -s conftest$ac_exeext'
5868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869   (eval $ac_try) 2>&5
5870   ac_status=$?
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); }; }; then
5873   ac_cv_lib_Xext_XShmQueryExtension=yes
5874 else
5875   echo "$as_me: failed program was:" >&5
5876 cat conftest.$ac_ext >&5
5877 ac_cv_lib_Xext_XShmQueryExtension=no
5878 fi
5879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5880 LIBS=$ac_check_lib_save_LIBS
5881 fi
5882 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
5883 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
5884 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
5885
5886 cat >>confdefs.h <<\_ACEOF
5887 #define HAVE_LIBXXSHM 1
5888 _ACEOF
5889
5890 fi
5891
5892
5893 else
5894   { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
5895 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
5896 fi
5897
5898 done
5899
5900
5901
5902 for ac_header in X11/extensions/shape.h
5903 do
5904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5905 echo "$as_me:$LINENO: checking for $ac_header" >&5
5906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5908   echo $ECHO_N "(cached) $ECHO_C" >&6
5909 else
5910   cat >conftest.$ac_ext <<_ACEOF
5911 #line $LINENO "configure"
5912 #include "confdefs.h"
5913 #include <X11/Xlib.h>
5914
5915 #include <$ac_header>
5916 _ACEOF
5917 rm -f conftest.$ac_objext
5918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5919   (eval $ac_compile) 2>&5
5920   ac_status=$?
5921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); } &&
5923          { ac_try='test -s conftest.$ac_objext'
5924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925   (eval $ac_try) 2>&5
5926   ac_status=$?
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); }; }; then
5929   eval "$as_ac_Header=yes"
5930 else
5931   echo "$as_me: failed program was:" >&5
5932 cat conftest.$ac_ext >&5
5933 eval "$as_ac_Header=no"
5934 fi
5935 rm -f conftest.$ac_objext conftest.$ac_ext
5936 fi
5937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
5944 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
5945 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
5946   echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948   ac_check_lib_save_LIBS=$LIBS
5949 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
5950 cat >conftest.$ac_ext <<_ACEOF
5951 #line $LINENO "configure"
5952 #include "confdefs.h"
5953
5954 /* Override any gcc2 internal prototype to avoid an error.  */
5955 #ifdef __cplusplus
5956 extern "C"
5957 #endif
5958 /* We use char because int might match the return type of a gcc2
5959    builtin and then its argument prototype would still apply.  */
5960 char XShapeQueryExtension ();
5961 #ifdef F77_DUMMY_MAIN
5962 #  ifdef __cplusplus
5963      extern "C"
5964 #  endif
5965    int F77_DUMMY_MAIN() { return 1; }
5966 #endif
5967 int
5968 main ()
5969 {
5970 XShapeQueryExtension ();
5971   ;
5972   return 0;
5973 }
5974 _ACEOF
5975 rm -f conftest.$ac_objext conftest$ac_exeext
5976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5977   (eval $ac_link) 2>&5
5978   ac_status=$?
5979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980   (exit $ac_status); } &&
5981          { ac_try='test -s conftest$ac_exeext'
5982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983   (eval $ac_try) 2>&5
5984   ac_status=$?
5985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); }; }; then
5987   ac_cv_lib_Xext_XShapeQueryExtension=yes
5988 else
5989   echo "$as_me: failed program was:" >&5
5990 cat conftest.$ac_ext >&5
5991 ac_cv_lib_Xext_XShapeQueryExtension=no
5992 fi
5993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5994 LIBS=$ac_check_lib_save_LIBS
5995 fi
5996 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
5997 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
5998 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
5999
6000 cat >>confdefs.h <<\_ACEOF
6001 #define HAVE_LIBXSHAPE 1
6002 _ACEOF
6003
6004 fi
6005
6006
6007 else
6008   { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
6009 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
6010 fi
6011
6012 done
6013
6014
6015
6016 for ac_header in X11/extensions/xf86dga.h
6017 do
6018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6019 echo "$as_me:$LINENO: checking for $ac_header" >&5
6020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6022   echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024   cat >conftest.$ac_ext <<_ACEOF
6025 #line $LINENO "configure"
6026 #include "confdefs.h"
6027 #include <X11/Xlib.h>
6028
6029 #include <$ac_header>
6030 _ACEOF
6031 rm -f conftest.$ac_objext
6032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6033   (eval $ac_compile) 2>&5
6034   ac_status=$?
6035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036   (exit $ac_status); } &&
6037          { ac_try='test -s conftest.$ac_objext'
6038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039   (eval $ac_try) 2>&5
6040   ac_status=$?
6041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042   (exit $ac_status); }; }; then
6043   eval "$as_ac_Header=yes"
6044 else
6045   echo "$as_me: failed program was:" >&5
6046 cat conftest.$ac_ext >&5
6047 eval "$as_ac_Header=no"
6048 fi
6049 rm -f conftest.$ac_objext conftest.$ac_ext
6050 fi
6051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6054   cat >>confdefs.h <<_ACEOF
6055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6056 _ACEOF
6057                               echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
6058 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6059 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6060   echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062   ac_check_lib_save_LIBS=$LIBS
6063 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6064                $LIBS"
6065 cat >conftest.$ac_ext <<_ACEOF
6066 #line $LINENO "configure"
6067 #include "confdefs.h"
6068
6069 /* Override any gcc2 internal prototype to avoid an error.  */
6070 #ifdef __cplusplus
6071 extern "C"
6072 #endif
6073 /* We use char because int might match the return type of a gcc2
6074    builtin and then its argument prototype would still apply.  */
6075 char XDGAQueryExtension ();
6076 #ifdef F77_DUMMY_MAIN
6077 #  ifdef __cplusplus
6078      extern "C"
6079 #  endif
6080    int F77_DUMMY_MAIN() { return 1; }
6081 #endif
6082 int
6083 main ()
6084 {
6085 XDGAQueryExtension ();
6086   ;
6087   return 0;
6088 }
6089 _ACEOF
6090 rm -f conftest.$ac_objext conftest$ac_exeext
6091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6092   (eval $ac_link) 2>&5
6093   ac_status=$?
6094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095   (exit $ac_status); } &&
6096          { ac_try='test -s conftest$ac_exeext'
6097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098   (eval $ac_try) 2>&5
6099   ac_status=$?
6100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101   (exit $ac_status); }; }; then
6102   ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
6103 else
6104   echo "$as_me: failed program was:" >&5
6105 cat conftest.$ac_ext >&5
6106 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
6107 fi
6108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6109 LIBS=$ac_check_lib_save_LIBS
6110 fi
6111 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
6112 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6113 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
6114
6115 cat >>confdefs.h <<\_ACEOF
6116 #define HAVE_LIBXXF86DGA2 1
6117 _ACEOF
6118
6119                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6120
6121 else
6122                                        echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
6123 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6124 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6125   echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127   ac_check_lib_save_LIBS=$LIBS
6128 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6129                    $LIBS"
6130 cat >conftest.$ac_ext <<_ACEOF
6131 #line $LINENO "configure"
6132 #include "confdefs.h"
6133
6134 /* Override any gcc2 internal prototype to avoid an error.  */
6135 #ifdef __cplusplus
6136 extern "C"
6137 #endif
6138 /* We use char because int might match the return type of a gcc2
6139    builtin and then its argument prototype would still apply.  */
6140 char XF86DGAQueryExtension ();
6141 #ifdef F77_DUMMY_MAIN
6142 #  ifdef __cplusplus
6143      extern "C"
6144 #  endif
6145    int F77_DUMMY_MAIN() { return 1; }
6146 #endif
6147 int
6148 main ()
6149 {
6150 XF86DGAQueryExtension ();
6151   ;
6152   return 0;
6153 }
6154 _ACEOF
6155 rm -f conftest.$ac_objext conftest$ac_exeext
6156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6157   (eval $ac_link) 2>&5
6158   ac_status=$?
6159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160   (exit $ac_status); } &&
6161          { ac_try='test -s conftest$ac_exeext'
6162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163   (eval $ac_try) 2>&5
6164   ac_status=$?
6165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166   (exit $ac_status); }; }; then
6167   ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
6168 else
6169   echo "$as_me: failed program was:" >&5
6170 cat conftest.$ac_ext >&5
6171 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
6172 fi
6173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6174 LIBS=$ac_check_lib_save_LIBS
6175 fi
6176 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
6177 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6178 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
6179
6180 cat >>confdefs.h <<\_ACEOF
6181 #define HAVE_LIBXXF86DGA 1
6182 _ACEOF
6183
6184                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6185
6186 fi
6187
6188
6189 fi
6190
6191
6192 else
6193   { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
6194 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
6195 fi
6196
6197 done
6198
6199
6200
6201 for ac_header in X11/extensions/xf86vmode.h
6202 do
6203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6204 echo "$as_me:$LINENO: checking for $ac_header" >&5
6205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6207   echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209   cat >conftest.$ac_ext <<_ACEOF
6210 #line $LINENO "configure"
6211 #include "confdefs.h"
6212 #include <X11/Xlib.h>
6213
6214 #include <$ac_header>
6215 _ACEOF
6216 rm -f conftest.$ac_objext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6218   (eval $ac_compile) 2>&5
6219   ac_status=$?
6220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221   (exit $ac_status); } &&
6222          { ac_try='test -s conftest.$ac_objext'
6223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224   (eval $ac_try) 2>&5
6225   ac_status=$?
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); }; }; then
6228   eval "$as_ac_Header=yes"
6229 else
6230   echo "$as_me: failed program was:" >&5
6231 cat conftest.$ac_ext >&5
6232 eval "$as_ac_Header=no"
6233 fi
6234 rm -f conftest.$ac_objext conftest.$ac_ext
6235 fi
6236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6239   cat >>confdefs.h <<_ACEOF
6240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6241 _ACEOF
6242                   echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
6243 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6244 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6245   echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247   ac_check_lib_save_LIBS=$LIBS
6248 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6249                  $LIBS"
6250 cat >conftest.$ac_ext <<_ACEOF
6251 #line $LINENO "configure"
6252 #include "confdefs.h"
6253
6254 /* Override any gcc2 internal prototype to avoid an error.  */
6255 #ifdef __cplusplus
6256 extern "C"
6257 #endif
6258 /* We use char because int might match the return type of a gcc2
6259    builtin and then its argument prototype would still apply.  */
6260 char XF86VidModeQueryExtension ();
6261 #ifdef F77_DUMMY_MAIN
6262 #  ifdef __cplusplus
6263      extern "C"
6264 #  endif
6265    int F77_DUMMY_MAIN() { return 1; }
6266 #endif
6267 int
6268 main ()
6269 {
6270 XF86VidModeQueryExtension ();
6271   ;
6272   return 0;
6273 }
6274 _ACEOF
6275 rm -f conftest.$ac_objext conftest$ac_exeext
6276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6277   (eval $ac_link) 2>&5
6278   ac_status=$?
6279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280   (exit $ac_status); } &&
6281          { ac_try='test -s conftest$ac_exeext'
6282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283   (eval $ac_try) 2>&5
6284   ac_status=$?
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); }; }; then
6287   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
6288 else
6289   echo "$as_me: failed program was:" >&5
6290 cat conftest.$ac_ext >&5
6291 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
6292 fi
6293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6294 LIBS=$ac_check_lib_save_LIBS
6295 fi
6296 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
6297 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6298 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
6299
6300 cat >>confdefs.h <<\_ACEOF
6301 #define HAVE_LIBXXF86VM 1
6302 _ACEOF
6303
6304                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
6305
6306 fi
6307
6308
6309 else
6310   { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
6311 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
6312 fi
6313
6314 done
6315
6316
6317
6318 for ac_header in X11/extensions/Xvlib.h
6319 do
6320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6321 echo "$as_me:$LINENO: checking for $ac_header" >&5
6322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6324   echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326   cat >conftest.$ac_ext <<_ACEOF
6327 #line $LINENO "configure"
6328 #include "confdefs.h"
6329 #include <X11/Xlib.h>
6330
6331 #include <$ac_header>
6332 _ACEOF
6333 rm -f conftest.$ac_objext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6335   (eval $ac_compile) 2>&5
6336   ac_status=$?
6337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338   (exit $ac_status); } &&
6339          { ac_try='test -s conftest.$ac_objext'
6340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341   (eval $ac_try) 2>&5
6342   ac_status=$?
6343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344   (exit $ac_status); }; }; then
6345   eval "$as_ac_Header=yes"
6346 else
6347   echo "$as_me: failed program was:" >&5
6348 cat conftest.$ac_ext >&5
6349 eval "$as_ac_Header=no"
6350 fi
6351 rm -f conftest.$ac_objext conftest.$ac_ext
6352 fi
6353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6356   cat >>confdefs.h <<_ACEOF
6357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6358 _ACEOF
6359                   echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
6360 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6361 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6362   echo $ECHO_N "(cached) $ECHO_C" >&6
6363 else
6364   ac_check_lib_save_LIBS=$LIBS
6365 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6366                  $LIBS"
6367 cat >conftest.$ac_ext <<_ACEOF
6368 #line $LINENO "configure"
6369 #include "confdefs.h"
6370
6371 /* Override any gcc2 internal prototype to avoid an error.  */
6372 #ifdef __cplusplus
6373 extern "C"
6374 #endif
6375 /* We use char because int might match the return type of a gcc2
6376    builtin and then its argument prototype would still apply.  */
6377 char XvShmCreateImage ();
6378 #ifdef F77_DUMMY_MAIN
6379 #  ifdef __cplusplus
6380      extern "C"
6381 #  endif
6382    int F77_DUMMY_MAIN() { return 1; }
6383 #endif
6384 int
6385 main ()
6386 {
6387 XvShmCreateImage ();
6388   ;
6389   return 0;
6390 }
6391 _ACEOF
6392 rm -f conftest.$ac_objext conftest$ac_exeext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6394   (eval $ac_link) 2>&5
6395   ac_status=$?
6396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397   (exit $ac_status); } &&
6398          { ac_try='test -s conftest$ac_exeext'
6399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400   (eval $ac_try) 2>&5
6401   ac_status=$?
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); }; }; then
6404   ac_cv_lib_Xv_XvShmCreateImage=yes
6405 else
6406   echo "$as_me: failed program was:" >&5
6407 cat conftest.$ac_ext >&5
6408 ac_cv_lib_Xv_XvShmCreateImage=no
6409 fi
6410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6411 LIBS=$ac_check_lib_save_LIBS
6412 fi
6413 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
6414 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6415 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
6416
6417 cat >>confdefs.h <<\_ACEOF
6418 #define HAVE_XVIDEO 1
6419 _ACEOF
6420
6421                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
6422
6423 fi
6424
6425
6426 else
6427   { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
6428 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
6429 fi
6430
6431 done
6432
6433
6434
6435 for ac_header in X11/extensions/Xrender.h
6436 do
6437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6438 echo "$as_me:$LINENO: checking for $ac_header" >&5
6439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6441   echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443   cat >conftest.$ac_ext <<_ACEOF
6444 #line $LINENO "configure"
6445 #include "confdefs.h"
6446 #include <X11/Xlib.h>
6447
6448 #include <$ac_header>
6449 _ACEOF
6450 rm -f conftest.$ac_objext
6451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6452   (eval $ac_compile) 2>&5
6453   ac_status=$?
6454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455   (exit $ac_status); } &&
6456          { ac_try='test -s conftest.$ac_objext'
6457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458   (eval $ac_try) 2>&5
6459   ac_status=$?
6460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461   (exit $ac_status); }; }; then
6462   eval "$as_ac_Header=yes"
6463 else
6464   echo "$as_me: failed program was:" >&5
6465 cat conftest.$ac_ext >&5
6466 eval "$as_ac_Header=no"
6467 fi
6468 rm -f conftest.$ac_objext conftest.$ac_ext
6469 fi
6470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6473   cat >>confdefs.h <<_ACEOF
6474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6475 _ACEOF
6476
6477 fi
6478
6479 done
6480
6481
6482
6483 fi
6484
6485 done
6486
6487         if test "x$enable_opengl" != "xno"
6488     then
6489         if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
6490         then
6491             { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
6492 This prevents linking to OpenGL. Delete the file and restart configure." >&5
6493 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6494 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6495    { (exit 1); exit 1; }; }
6496         fi
6497
6498
6499
6500 for ac_header in GL/gl.h GL/glx.h
6501 do
6502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6504   echo "$as_me:$LINENO: checking for $ac_header" >&5
6505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6507   echo $ECHO_N "(cached) $ECHO_C" >&6
6508 fi
6509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6511 else
6512   # Is the header compilable?
6513 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6515 cat >conftest.$ac_ext <<_ACEOF
6516 #line $LINENO "configure"
6517 #include "confdefs.h"
6518 $ac_includes_default
6519 #include <$ac_header>
6520 _ACEOF
6521 rm -f conftest.$ac_objext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523   (eval $ac_compile) 2>&5
6524   ac_status=$?
6525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526   (exit $ac_status); } &&
6527          { ac_try='test -s conftest.$ac_objext'
6528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529   (eval $ac_try) 2>&5
6530   ac_status=$?
6531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532   (exit $ac_status); }; }; then
6533   ac_header_compiler=yes
6534 else
6535   echo "$as_me: failed program was:" >&5
6536 cat conftest.$ac_ext >&5
6537 ac_header_compiler=no
6538 fi
6539 rm -f conftest.$ac_objext conftest.$ac_ext
6540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6541 echo "${ECHO_T}$ac_header_compiler" >&6
6542
6543 # Is the header present?
6544 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6546 cat >conftest.$ac_ext <<_ACEOF
6547 #line $LINENO "configure"
6548 #include "confdefs.h"
6549 #include <$ac_header>
6550 _ACEOF
6551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6552   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6553   ac_status=$?
6554   egrep -v '^ *\+' conftest.er1 >conftest.err
6555   rm -f conftest.er1
6556   cat conftest.err >&5
6557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558   (exit $ac_status); } >/dev/null; then
6559   if test -s conftest.err; then
6560     ac_cpp_err=$ac_c_preproc_warn_flag
6561   else
6562     ac_cpp_err=
6563   fi
6564 else
6565   ac_cpp_err=yes
6566 fi
6567 if test -z "$ac_cpp_err"; then
6568   ac_header_preproc=yes
6569 else
6570   echo "$as_me: failed program was:" >&5
6571   cat conftest.$ac_ext >&5
6572   ac_header_preproc=no
6573 fi
6574 rm -f conftest.err conftest.$ac_ext
6575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6576 echo "${ECHO_T}$ac_header_preproc" >&6
6577
6578 # So?  What about this header?
6579 case $ac_header_compiler:$ac_header_preproc in
6580   yes:no )
6581     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6583     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6585   no:yes )
6586     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6588     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6592 esac
6593 echo "$as_me:$LINENO: checking for $ac_header" >&5
6594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6596   echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598   eval "$as_ac_Header=$ac_header_preproc"
6599 fi
6600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6602
6603 fi
6604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6605   cat >>confdefs.h <<_ACEOF
6606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6607 _ACEOF
6608
6609 fi
6610
6611 done
6612
6613         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
6614         then
6615
6616 for ac_header in GL/glext.h
6617 do
6618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6619 echo "$as_me:$LINENO: checking for $ac_header" >&5
6620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6622   echo $ECHO_N "(cached) $ECHO_C" >&6
6623 else
6624   cat >conftest.$ac_ext <<_ACEOF
6625 #line $LINENO "configure"
6626 #include "confdefs.h"
6627 #include <GL/glx.h>
6628
6629 #include <$ac_header>
6630 _ACEOF
6631 rm -f conftest.$ac_objext
6632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6633   (eval $ac_compile) 2>&5
6634   ac_status=$?
6635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636   (exit $ac_status); } &&
6637          { ac_try='test -s conftest.$ac_objext'
6638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639   (eval $ac_try) 2>&5
6640   ac_status=$?
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); }; }; then
6643   eval "$as_ac_Header=yes"
6644 else
6645   echo "$as_me: failed program was:" >&5
6646 cat conftest.$ac_ext >&5
6647 eval "$as_ac_Header=no"
6648 fi
6649 rm -f conftest.$ac_objext conftest.$ac_ext
6650 fi
6651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6654   cat >>confdefs.h <<_ACEOF
6655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6656 _ACEOF
6657
6658 fi
6659
6660 done
6661
6662                     echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
6663 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
6664 if test "${wine_cv_opengl_version_OK+set}" = set; then
6665   echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667   cat >conftest.$ac_ext <<_ACEOF
6668 #line $LINENO "configure"
6669 #include "confdefs.h"
6670 #include <GL/gl.h>
6671 #ifdef F77_DUMMY_MAIN
6672 #  ifdef __cplusplus
6673      extern "C"
6674 #  endif
6675    int F77_DUMMY_MAIN() { return 1; }
6676 #endif
6677 int
6678 main ()
6679 {
6680 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
6681   ;
6682   return 0;
6683 }
6684 _ACEOF
6685 rm -f conftest.$ac_objext
6686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6687   (eval $ac_compile) 2>&5
6688   ac_status=$?
6689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690   (exit $ac_status); } &&
6691          { ac_try='test -s conftest.$ac_objext'
6692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693   (eval $ac_try) 2>&5
6694   ac_status=$?
6695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696   (exit $ac_status); }; }; then
6697   wine_cv_opengl_version_OK="yes"
6698 else
6699   echo "$as_me: failed program was:" >&5
6700 cat conftest.$ac_ext >&5
6701 wine_cv_opengl_version_OK="no"
6702
6703 fi
6704 rm -f conftest.$ac_objext conftest.$ac_ext
6705
6706 fi
6707 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
6708 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
6709
6710                     echo "$as_me:$LINENO: checking for thread-safe OpenGL version" >&5
6711 echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6
6712 if test "${wine_cv_opengl_version_threadsafe+set}" = set; then
6713   echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715   saved_libs=$LIBS
6716                LIBS="$X_LIBS -lGL"
6717                cat >conftest.$ac_ext <<_ACEOF
6718 #line $LINENO "configure"
6719 #include "confdefs.h"
6720
6721 #ifdef F77_DUMMY_MAIN
6722 #  ifdef __cplusplus
6723      extern "C"
6724 #  endif
6725    int F77_DUMMY_MAIN() { return 1; }
6726 #endif
6727 int
6728 main ()
6729 {
6730 pthread_getspecific();
6731   ;
6732   return 0;
6733 }
6734 _ACEOF
6735 rm -f conftest.$ac_objext conftest$ac_exeext
6736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6737   (eval $ac_link) 2>&5
6738   ac_status=$?
6739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740   (exit $ac_status); } &&
6741          { ac_try='test -s conftest$ac_exeext'
6742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743   (eval $ac_try) 2>&5
6744   ac_status=$?
6745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746   (exit $ac_status); }; }; then
6747   wine_cv_opengl_version_threadsafe="yes"
6748 else
6749   echo "$as_me: failed program was:" >&5
6750 cat conftest.$ac_ext >&5
6751 wine_cv_opengl_version_threadsafe="no"
6752 fi
6753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6754                LIBS=$saved_libs
6755
6756 fi
6757 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_threadsafe" >&5
6758 echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6
6759
6760             if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o "x$enable_opengl" = "xyes" \)
6761             then
6762                                 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
6763 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
6764 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
6765   echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767   ac_check_lib_save_LIBS=$LIBS
6768 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
6769 cat >conftest.$ac_ext <<_ACEOF
6770 #line $LINENO "configure"
6771 #include "confdefs.h"
6772
6773 /* Override any gcc2 internal prototype to avoid an error.  */
6774 #ifdef __cplusplus
6775 extern "C"
6776 #endif
6777 /* We use char because int might match the return type of a gcc2
6778    builtin and then its argument prototype would still apply.  */
6779 char glXCreateContext ();
6780 #ifdef F77_DUMMY_MAIN
6781 #  ifdef __cplusplus
6782      extern "C"
6783 #  endif
6784    int F77_DUMMY_MAIN() { return 1; }
6785 #endif
6786 int
6787 main ()
6788 {
6789 glXCreateContext ();
6790   ;
6791   return 0;
6792 }
6793 _ACEOF
6794 rm -f conftest.$ac_objext conftest$ac_exeext
6795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6796   (eval $ac_link) 2>&5
6797   ac_status=$?
6798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799   (exit $ac_status); } &&
6800          { ac_try='test -s conftest$ac_exeext'
6801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802   (eval $ac_try) 2>&5
6803   ac_status=$?
6804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805   (exit $ac_status); }; }; then
6806   ac_cv_lib_GL_glXCreateContext=yes
6807 else
6808   echo "$as_me: failed program was:" >&5
6809 cat conftest.$ac_ext >&5
6810 ac_cv_lib_GL_glXCreateContext=no
6811 fi
6812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6813 LIBS=$ac_check_lib_save_LIBS
6814 fi
6815 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
6816 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
6817 if test $ac_cv_lib_GL_glXCreateContext = yes; then
6818   X_PRE_LIBS="$X_PRE_LIBS -lGL"
6819
6820 fi
6821
6822
6823                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
6824                 then
6825                         OPENGLFILES='$(OPENGLFILES)'
6826
6827 cat >>confdefs.h <<\_ACEOF
6828 #define HAVE_OPENGL 1
6829 _ACEOF
6830
6831
6832                         echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
6833 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
6834 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
6835   echo $ECHO_N "(cached) $ECHO_C" >&6
6836 else
6837   ac_check_lib_save_LIBS=$LIBS
6838 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
6839 cat >conftest.$ac_ext <<_ACEOF
6840 #line $LINENO "configure"
6841 #include "confdefs.h"
6842
6843 /* Override any gcc2 internal prototype to avoid an error.  */
6844 #ifdef __cplusplus
6845 extern "C"
6846 #endif
6847 /* We use char because int might match the return type of a gcc2
6848    builtin and then its argument prototype would still apply.  */
6849 char glXGetProcAddressARB ();
6850 #ifdef F77_DUMMY_MAIN
6851 #  ifdef __cplusplus
6852      extern "C"
6853 #  endif
6854    int F77_DUMMY_MAIN() { return 1; }
6855 #endif
6856 int
6857 main ()
6858 {
6859 glXGetProcAddressARB ();
6860   ;
6861   return 0;
6862 }
6863 _ACEOF
6864 rm -f conftest.$ac_objext conftest$ac_exeext
6865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6866   (eval $ac_link) 2>&5
6867   ac_status=$?
6868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869   (exit $ac_status); } &&
6870          { ac_try='test -s conftest$ac_exeext'
6871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872   (eval $ac_try) 2>&5
6873   ac_status=$?
6874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875   (exit $ac_status); }; }; then
6876   ac_cv_lib_GL_glXGetProcAddressARB=yes
6877 else
6878   echo "$as_me: failed program was:" >&5
6879 cat conftest.$ac_ext >&5
6880 ac_cv_lib_GL_glXGetProcAddressARB=no
6881 fi
6882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6883 LIBS=$ac_check_lib_save_LIBS
6884 fi
6885 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
6886 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
6887 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
6888
6889 cat >>confdefs.h <<\_ACEOF
6890 #define HAVE_GLX_GETPROCADDRESS 1
6891 _ACEOF
6892
6893 fi
6894
6895
6896                         if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
6897                         then
6898                                echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
6899 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
6900 if test "${wine_cv_extension_prototypes+set}" = set; then
6901   echo $ECHO_N "(cached) $ECHO_C" >&6
6902 else
6903   cat >conftest.$ac_ext <<_ACEOF
6904 #line $LINENO "configure"
6905 #include "confdefs.h"
6906 #include <GL/gl.h>
6907                                                   #ifdef HAVE_GL_GLEXT_H
6908                                                   # include <GL/glext.h>
6909                                                   #endif
6910
6911 #ifdef F77_DUMMY_MAIN
6912 #  ifdef __cplusplus
6913      extern "C"
6914 #  endif
6915    int F77_DUMMY_MAIN() { return 1; }
6916 #endif
6917 int
6918 main ()
6919 {
6920 PFNGLCOLORTABLEEXTPROC test_proc;
6921   ;
6922   return 0;
6923 }
6924 _ACEOF
6925 rm -f conftest.$ac_objext
6926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6927   (eval $ac_compile) 2>&5
6928   ac_status=$?
6929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930   (exit $ac_status); } &&
6931          { ac_try='test -s conftest.$ac_objext'
6932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933   (eval $ac_try) 2>&5
6934   ac_status=$?
6935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936   (exit $ac_status); }; }; then
6937   wine_cv_extension_prototypes="yes"
6938 else
6939   echo "$as_me: failed program was:" >&5
6940 cat conftest.$ac_ext >&5
6941 wine_cv_extension_prototypes="no"
6942
6943 fi
6944 rm -f conftest.$ac_objext conftest.$ac_ext
6945
6946 fi
6947 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
6948 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
6949                                 if test "$wine_cv_extension_prototypes" = "yes"
6950                                 then
6951
6952 cat >>confdefs.h <<\_ACEOF
6953 #define HAVE_GLEXT_PROTOTYPES 1
6954 _ACEOF
6955
6956                                 fi
6957                         fi
6958
6959                 fi
6960                                 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
6961 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
6962 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
6963   echo $ECHO_N "(cached) $ECHO_C" >&6
6964 else
6965   ac_check_lib_save_LIBS=$LIBS
6966 LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
6967                  $LIBS"
6968 cat >conftest.$ac_ext <<_ACEOF
6969 #line $LINENO "configure"
6970 #include "confdefs.h"
6971
6972 /* Override any gcc2 internal prototype to avoid an error.  */
6973 #ifdef __cplusplus
6974 extern "C"
6975 #endif
6976 /* We use char because int might match the return type of a gcc2
6977    builtin and then its argument prototype would still apply.  */
6978 char gluLookAt ();
6979 #ifdef F77_DUMMY_MAIN
6980 #  ifdef __cplusplus
6981      extern "C"
6982 #  endif
6983    int F77_DUMMY_MAIN() { return 1; }
6984 #endif
6985 int
6986 main ()
6987 {
6988 gluLookAt ();
6989   ;
6990   return 0;
6991 }
6992 _ACEOF
6993 rm -f conftest.$ac_objext conftest$ac_exeext
6994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6995   (eval $ac_link) 2>&5
6996   ac_status=$?
6997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998   (exit $ac_status); } &&
6999          { ac_try='test -s conftest$ac_exeext'
7000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001   (eval $ac_try) 2>&5
7002   ac_status=$?
7003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004   (exit $ac_status); }; }; then
7005   ac_cv_lib_GLU_gluLookAt=yes
7006 else
7007   echo "$as_me: failed program was:" >&5
7008 cat conftest.$ac_ext >&5
7009 ac_cv_lib_GLU_gluLookAt=no
7010 fi
7011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7012 LIBS=$ac_check_lib_save_LIBS
7013 fi
7014 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7015 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7016 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7017   X_PRE_LIBS="$X_PRE_LIBS -lGLU"
7018                              GLU32FILES='$(GLU32FILES)'
7019
7020 fi
7021
7022              fi
7023          fi
7024     fi
7025
7026     CPPFLAGS="$ac_save_CPPFLAGS"
7027     XFILES='$(XFILES)'
7028 else
7029     XLIB=""
7030     X_CFLAGS=""
7031     X_LIBS=""
7032 fi
7033
7034 CURSESLIBS=""
7035 if test "x$with_curses" != "xno"
7036 then
7037
7038 for ac_header in ncurses.h
7039 do
7040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7042   echo "$as_me:$LINENO: checking for $ac_header" >&5
7043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7045   echo $ECHO_N "(cached) $ECHO_C" >&6
7046 fi
7047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7049 else
7050   # Is the header compilable?
7051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7053 cat >conftest.$ac_ext <<_ACEOF
7054 #line $LINENO "configure"
7055 #include "confdefs.h"
7056 $ac_includes_default
7057 #include <$ac_header>
7058 _ACEOF
7059 rm -f conftest.$ac_objext
7060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7061   (eval $ac_compile) 2>&5
7062   ac_status=$?
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); } &&
7065          { ac_try='test -s conftest.$ac_objext'
7066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067   (eval $ac_try) 2>&5
7068   ac_status=$?
7069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070   (exit $ac_status); }; }; then
7071   ac_header_compiler=yes
7072 else
7073   echo "$as_me: failed program was:" >&5
7074 cat conftest.$ac_ext >&5
7075 ac_header_compiler=no
7076 fi
7077 rm -f conftest.$ac_objext conftest.$ac_ext
7078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7079 echo "${ECHO_T}$ac_header_compiler" >&6
7080
7081 # Is the header present?
7082 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7084 cat >conftest.$ac_ext <<_ACEOF
7085 #line $LINENO "configure"
7086 #include "confdefs.h"
7087 #include <$ac_header>
7088 _ACEOF
7089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7090   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7091   ac_status=$?
7092   egrep -v '^ *\+' conftest.er1 >conftest.err
7093   rm -f conftest.er1
7094   cat conftest.err >&5
7095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096   (exit $ac_status); } >/dev/null; then
7097   if test -s conftest.err; then
7098     ac_cpp_err=$ac_c_preproc_warn_flag
7099   else
7100     ac_cpp_err=
7101   fi
7102 else
7103   ac_cpp_err=yes
7104 fi
7105 if test -z "$ac_cpp_err"; then
7106   ac_header_preproc=yes
7107 else
7108   echo "$as_me: failed program was:" >&5
7109   cat conftest.$ac_ext >&5
7110   ac_header_preproc=no
7111 fi
7112 rm -f conftest.err conftest.$ac_ext
7113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7114 echo "${ECHO_T}$ac_header_preproc" >&6
7115
7116 # So?  What about this header?
7117 case $ac_header_compiler:$ac_header_preproc in
7118   yes:no )
7119     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7123   no:yes )
7124     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7126     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7130 esac
7131 echo "$as_me:$LINENO: checking for $ac_header" >&5
7132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7134   echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136   eval "$as_ac_Header=$ac_header_preproc"
7137 fi
7138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7140
7141 fi
7142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7143   cat >>confdefs.h <<_ACEOF
7144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7145 _ACEOF
7146  echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
7147 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7148 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7149   echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151   ac_check_lib_save_LIBS=$LIBS
7152 LIBS="-lncurses  $LIBS"
7153 cat >conftest.$ac_ext <<_ACEOF
7154 #line $LINENO "configure"
7155 #include "confdefs.h"
7156
7157 /* Override any gcc2 internal prototype to avoid an error.  */
7158 #ifdef __cplusplus
7159 extern "C"
7160 #endif
7161 /* We use char because int might match the return type of a gcc2
7162    builtin and then its argument prototype would still apply.  */
7163 char waddch ();
7164 #ifdef F77_DUMMY_MAIN
7165 #  ifdef __cplusplus
7166      extern "C"
7167 #  endif
7168    int F77_DUMMY_MAIN() { return 1; }
7169 #endif
7170 int
7171 main ()
7172 {
7173 waddch ();
7174   ;
7175   return 0;
7176 }
7177 _ACEOF
7178 rm -f conftest.$ac_objext conftest$ac_exeext
7179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7180   (eval $ac_link) 2>&5
7181   ac_status=$?
7182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183   (exit $ac_status); } &&
7184          { ac_try='test -s conftest$ac_exeext'
7185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186   (eval $ac_try) 2>&5
7187   ac_status=$?
7188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189   (exit $ac_status); }; }; then
7190   ac_cv_lib_ncurses_waddch=yes
7191 else
7192   echo "$as_me: failed program was:" >&5
7193 cat conftest.$ac_ext >&5
7194 ac_cv_lib_ncurses_waddch=no
7195 fi
7196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7197 LIBS=$ac_check_lib_save_LIBS
7198 fi
7199 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
7200 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7201 if test $ac_cv_lib_ncurses_waddch = yes; then
7202
7203 cat >>confdefs.h <<\_ACEOF
7204 #define HAVE_LIBNCURSES 1
7205 _ACEOF
7206
7207              CURSESLIBS="-lncurses"
7208 else
7209
7210 for ac_header in curses.h
7211 do
7212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7214   echo "$as_me:$LINENO: checking for $ac_header" >&5
7215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7217   echo $ECHO_N "(cached) $ECHO_C" >&6
7218 fi
7219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7221 else
7222   # Is the header compilable?
7223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7225 cat >conftest.$ac_ext <<_ACEOF
7226 #line $LINENO "configure"
7227 #include "confdefs.h"
7228 $ac_includes_default
7229 #include <$ac_header>
7230 _ACEOF
7231 rm -f conftest.$ac_objext
7232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7233   (eval $ac_compile) 2>&5
7234   ac_status=$?
7235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236   (exit $ac_status); } &&
7237          { ac_try='test -s conftest.$ac_objext'
7238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239   (eval $ac_try) 2>&5
7240   ac_status=$?
7241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242   (exit $ac_status); }; }; then
7243   ac_header_compiler=yes
7244 else
7245   echo "$as_me: failed program was:" >&5
7246 cat conftest.$ac_ext >&5
7247 ac_header_compiler=no
7248 fi
7249 rm -f conftest.$ac_objext conftest.$ac_ext
7250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7251 echo "${ECHO_T}$ac_header_compiler" >&6
7252
7253 # Is the header present?
7254 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7256 cat >conftest.$ac_ext <<_ACEOF
7257 #line $LINENO "configure"
7258 #include "confdefs.h"
7259 #include <$ac_header>
7260 _ACEOF
7261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7262   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7263   ac_status=$?
7264   egrep -v '^ *\+' conftest.er1 >conftest.err
7265   rm -f conftest.er1
7266   cat conftest.err >&5
7267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268   (exit $ac_status); } >/dev/null; then
7269   if test -s conftest.err; then
7270     ac_cpp_err=$ac_c_preproc_warn_flag
7271   else
7272     ac_cpp_err=
7273   fi
7274 else
7275   ac_cpp_err=yes
7276 fi
7277 if test -z "$ac_cpp_err"; then
7278   ac_header_preproc=yes
7279 else
7280   echo "$as_me: failed program was:" >&5
7281   cat conftest.$ac_ext >&5
7282   ac_header_preproc=no
7283 fi
7284 rm -f conftest.err conftest.$ac_ext
7285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7286 echo "${ECHO_T}$ac_header_preproc" >&6
7287
7288 # So?  What about this header?
7289 case $ac_header_compiler:$ac_header_preproc in
7290   yes:no )
7291     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7295   no:yes )
7296     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7298     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7300     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7302 esac
7303 echo "$as_me:$LINENO: checking for $ac_header" >&5
7304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7306   echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308   eval "$as_ac_Header=$ac_header_preproc"
7309 fi
7310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7312
7313 fi
7314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7315   cat >>confdefs.h <<_ACEOF
7316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7317 _ACEOF
7318  echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
7319 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7320 if test "${ac_cv_lib_curses_waddch+set}" = set; then
7321   echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323   ac_check_lib_save_LIBS=$LIBS
7324 LIBS="-lcurses  $LIBS"
7325 cat >conftest.$ac_ext <<_ACEOF
7326 #line $LINENO "configure"
7327 #include "confdefs.h"
7328
7329 /* Override any gcc2 internal prototype to avoid an error.  */
7330 #ifdef __cplusplus
7331 extern "C"
7332 #endif
7333 /* We use char because int might match the return type of a gcc2
7334    builtin and then its argument prototype would still apply.  */
7335 char waddch ();
7336 #ifdef F77_DUMMY_MAIN
7337 #  ifdef __cplusplus
7338      extern "C"
7339 #  endif
7340    int F77_DUMMY_MAIN() { return 1; }
7341 #endif
7342 int
7343 main ()
7344 {
7345 waddch ();
7346   ;
7347   return 0;
7348 }
7349 _ACEOF
7350 rm -f conftest.$ac_objext conftest$ac_exeext
7351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7352   (eval $ac_link) 2>&5
7353   ac_status=$?
7354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355   (exit $ac_status); } &&
7356          { ac_try='test -s conftest$ac_exeext'
7357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358   (eval $ac_try) 2>&5
7359   ac_status=$?
7360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361   (exit $ac_status); }; }; then
7362   ac_cv_lib_curses_waddch=yes
7363 else
7364   echo "$as_me: failed program was:" >&5
7365 cat conftest.$ac_ext >&5
7366 ac_cv_lib_curses_waddch=no
7367 fi
7368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7369 LIBS=$ac_check_lib_save_LIBS
7370 fi
7371 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
7372 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7373 if test $ac_cv_lib_curses_waddch = yes; then
7374
7375 cat >>confdefs.h <<\_ACEOF
7376 #define HAVE_LIBCURSES 1
7377 _ACEOF
7378
7379                       CURSESLIBS="-lcurses"
7380 fi
7381
7382 fi
7383
7384 done
7385
7386 fi
7387
7388 fi
7389
7390 done
7391
7392     saved_libs="$LIBS"
7393     LIBS="$CURSESLIBS $LIBS"
7394
7395
7396 for ac_func in getbkgd resizeterm
7397 do
7398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7399 echo "$as_me:$LINENO: checking for $ac_func" >&5
7400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7401 if eval "test \"\${$as_ac_var+set}\" = set"; then
7402   echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404   cat >conftest.$ac_ext <<_ACEOF
7405 #line $LINENO "configure"
7406 #include "confdefs.h"
7407 /* System header to define __stub macros and hopefully few prototypes,
7408     which can conflict with char $ac_func (); below.  */
7409 #include <assert.h>
7410 /* Override any gcc2 internal prototype to avoid an error.  */
7411 #ifdef __cplusplus
7412 extern "C"
7413 #endif
7414 /* We use char because int might match the return type of a gcc2
7415    builtin and then its argument prototype would still apply.  */
7416 char $ac_func ();
7417 char (*f) ();
7418
7419 #ifdef F77_DUMMY_MAIN
7420 #  ifdef __cplusplus
7421      extern "C"
7422 #  endif
7423    int F77_DUMMY_MAIN() { return 1; }
7424 #endif
7425 int
7426 main ()
7427 {
7428 /* The GNU C library defines this for functions which it implements
7429     to always fail with ENOSYS.  Some functions are actually named
7430     something starting with __ and the normal name is an alias.  */
7431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7432 choke me
7433 #else
7434 f = $ac_func;
7435 #endif
7436
7437   ;
7438   return 0;
7439 }
7440 _ACEOF
7441 rm -f conftest.$ac_objext conftest$ac_exeext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7443   (eval $ac_link) 2>&5
7444   ac_status=$?
7445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); } &&
7447          { ac_try='test -s conftest$ac_exeext'
7448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449   (eval $ac_try) 2>&5
7450   ac_status=$?
7451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452   (exit $ac_status); }; }; then
7453   eval "$as_ac_var=yes"
7454 else
7455   echo "$as_me: failed program was:" >&5
7456 cat conftest.$ac_ext >&5
7457 eval "$as_ac_var=no"
7458 fi
7459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7460 fi
7461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7463 if test `eval echo '${'$as_ac_var'}'` = yes; then
7464   cat >>confdefs.h <<_ACEOF
7465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7466 _ACEOF
7467
7468 fi
7469 done
7470
7471     LIBS="$saved_libs"
7472 fi
7473
7474
7475 CUPSLIBS=""
7476 wine_cv_warn_cups_h=no
7477 echo "$as_me:$LINENO: checking for cupsGetPPD in -lcups" >&5
7478 echo $ECHO_N "checking for cupsGetPPD in -lcups... $ECHO_C" >&6
7479 if test "${ac_cv_lib_cups_cupsGetPPD+set}" = set; then
7480   echo $ECHO_N "(cached) $ECHO_C" >&6
7481 else
7482   ac_check_lib_save_LIBS=$LIBS
7483 LIBS="-lcups  $LIBS"
7484 cat >conftest.$ac_ext <<_ACEOF
7485 #line $LINENO "configure"
7486 #include "confdefs.h"
7487
7488 /* Override any gcc2 internal prototype to avoid an error.  */
7489 #ifdef __cplusplus
7490 extern "C"
7491 #endif
7492 /* We use char because int might match the return type of a gcc2
7493    builtin and then its argument prototype would still apply.  */
7494 char cupsGetPPD ();
7495 #ifdef F77_DUMMY_MAIN
7496 #  ifdef __cplusplus
7497      extern "C"
7498 #  endif
7499    int F77_DUMMY_MAIN() { return 1; }
7500 #endif
7501 int
7502 main ()
7503 {
7504 cupsGetPPD ();
7505   ;
7506   return 0;
7507 }
7508 _ACEOF
7509 rm -f conftest.$ac_objext conftest$ac_exeext
7510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7511   (eval $ac_link) 2>&5
7512   ac_status=$?
7513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514   (exit $ac_status); } &&
7515          { ac_try='test -s conftest$ac_exeext'
7516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517   (eval $ac_try) 2>&5
7518   ac_status=$?
7519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520   (exit $ac_status); }; }; then
7521   ac_cv_lib_cups_cupsGetPPD=yes
7522 else
7523   echo "$as_me: failed program was:" >&5
7524 cat conftest.$ac_ext >&5
7525 ac_cv_lib_cups_cupsGetPPD=no
7526 fi
7527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7528 LIBS=$ac_check_lib_save_LIBS
7529 fi
7530 echo "$as_me:$LINENO: result: $ac_cv_lib_cups_cupsGetPPD" >&5
7531 echo "${ECHO_T}$ac_cv_lib_cups_cupsGetPPD" >&6
7532 if test $ac_cv_lib_cups_cupsGetPPD = yes; then
7533   if test "${ac_cv_header_cups_cups_h+set}" = set; then
7534   echo "$as_me:$LINENO: checking for cups/cups.h" >&5
7535 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7536 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7537   echo $ECHO_N "(cached) $ECHO_C" >&6
7538 fi
7539 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
7540 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
7541 else
7542   # Is the header compilable?
7543 echo "$as_me:$LINENO: checking cups/cups.h usability" >&5
7544 echo $ECHO_N "checking cups/cups.h usability... $ECHO_C" >&6
7545 cat >conftest.$ac_ext <<_ACEOF
7546 #line $LINENO "configure"
7547 #include "confdefs.h"
7548 $ac_includes_default
7549 #include <cups/cups.h>
7550 _ACEOF
7551 rm -f conftest.$ac_objext
7552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7553   (eval $ac_compile) 2>&5
7554   ac_status=$?
7555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556   (exit $ac_status); } &&
7557          { ac_try='test -s conftest.$ac_objext'
7558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559   (eval $ac_try) 2>&5
7560   ac_status=$?
7561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562   (exit $ac_status); }; }; then
7563   ac_header_compiler=yes
7564 else
7565   echo "$as_me: failed program was:" >&5
7566 cat conftest.$ac_ext >&5
7567 ac_header_compiler=no
7568 fi
7569 rm -f conftest.$ac_objext conftest.$ac_ext
7570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7571 echo "${ECHO_T}$ac_header_compiler" >&6
7572
7573 # Is the header present?
7574 echo "$as_me:$LINENO: checking cups/cups.h presence" >&5
7575 echo $ECHO_N "checking cups/cups.h presence... $ECHO_C" >&6
7576 cat >conftest.$ac_ext <<_ACEOF
7577 #line $LINENO "configure"
7578 #include "confdefs.h"
7579 #include <cups/cups.h>
7580 _ACEOF
7581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7582   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7583   ac_status=$?
7584   egrep -v '^ *\+' conftest.er1 >conftest.err
7585   rm -f conftest.er1
7586   cat conftest.err >&5
7587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588   (exit $ac_status); } >/dev/null; then
7589   if test -s conftest.err; then
7590     ac_cpp_err=$ac_c_preproc_warn_flag
7591   else
7592     ac_cpp_err=
7593   fi
7594 else
7595   ac_cpp_err=yes
7596 fi
7597 if test -z "$ac_cpp_err"; then
7598   ac_header_preproc=yes
7599 else
7600   echo "$as_me: failed program was:" >&5
7601   cat conftest.$ac_ext >&5
7602   ac_header_preproc=no
7603 fi
7604 rm -f conftest.err conftest.$ac_ext
7605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7606 echo "${ECHO_T}$ac_header_preproc" >&6
7607
7608 # So?  What about this header?
7609 case $ac_header_compiler:$ac_header_preproc in
7610   yes:no )
7611     { echo "$as_me:$LINENO: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&5
7612 echo "$as_me: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7613     { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
7614 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
7615   no:yes )
7616     { echo "$as_me:$LINENO: WARNING: cups/cups.h: present but cannot be compiled" >&5
7617 echo "$as_me: WARNING: cups/cups.h: present but cannot be compiled" >&2;}
7618     { echo "$as_me:$LINENO: WARNING: cups/cups.h: check for missing prerequisite headers?" >&5
7619 echo "$as_me: WARNING: cups/cups.h: check for missing prerequisite headers?" >&2;}
7620     { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
7621 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
7622 esac
7623 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
7624 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7625 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7626   echo $ECHO_N "(cached) $ECHO_C" >&6
7627 else
7628   ac_cv_header_cups_cups_h=$ac_header_preproc
7629 fi
7630 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
7631 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
7632
7633 fi
7634 if test $ac_cv_header_cups_cups_h = yes; then
7635
7636 cat >>confdefs.h <<\_ACEOF
7637 #define HAVE_CUPS 1
7638 _ACEOF
7639
7640             CUPSLIBS="-lcups"
7641 else
7642   wine_cv_warn_cups_h=yes
7643 fi
7644
7645
7646
7647 fi
7648
7649
7650
7651 # Extract the first word of "sane-config", so it can be a program name with args.
7652 set dummy sane-config; ac_word=$2
7653 echo "$as_me:$LINENO: checking for $ac_word" >&5
7654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7655 if test "${ac_cv_prog_sane_devel+set}" = set; then
7656   echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658   if test -n "$sane_devel"; then
7659   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
7660 else
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 for as_dir in $PATH
7663 do
7664   IFS=$as_save_IFS
7665   test -z "$as_dir" && as_dir=.
7666   for ac_exec_ext in '' $ac_executable_extensions; do
7667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7668     ac_cv_prog_sane_devel="sane-config"
7669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7670     break 2
7671   fi
7672 done
7673 done
7674
7675   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
7676 fi
7677 fi
7678 sane_devel=$ac_cv_prog_sane_devel
7679 if test -n "$sane_devel"; then
7680   echo "$as_me:$LINENO: result: $sane_devel" >&5
7681 echo "${ECHO_T}$sane_devel" >&6
7682 else
7683   echo "$as_me:$LINENO: result: no" >&5
7684 echo "${ECHO_T}no" >&6
7685 fi
7686
7687 if test "$sane_devel" = "no"
7688 then
7689     SANELIBS=""
7690     SANEINCL=""
7691 else
7692     SANELIBS="`$sane_devel --libs`"
7693     SANEINCL="`$sane_devel --cflags`"
7694     ac_save_CPPFLAGS="$CPPFLAGS"
7695     ac_save_LIBS="$LIBS"
7696     CPPFLAGS="$CPPFLAGS $SANEINCL"
7697     LIBS="$LIBS $SANELIBS"
7698     if test "${ac_cv_header_sane_sane_h+set}" = set; then
7699   echo "$as_me:$LINENO: checking for sane/sane.h" >&5
7700 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
7701 if test "${ac_cv_header_sane_sane_h+set}" = set; then
7702   echo $ECHO_N "(cached) $ECHO_C" >&6
7703 fi
7704 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
7705 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
7706 else
7707   # Is the header compilable?
7708 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
7709 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
7710 cat >conftest.$ac_ext <<_ACEOF
7711 #line $LINENO "configure"
7712 #include "confdefs.h"
7713 $ac_includes_default
7714 #include <sane/sane.h>
7715 _ACEOF
7716 rm -f conftest.$ac_objext
7717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7718   (eval $ac_compile) 2>&5
7719   ac_status=$?
7720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721   (exit $ac_status); } &&
7722          { ac_try='test -s conftest.$ac_objext'
7723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724   (eval $ac_try) 2>&5
7725   ac_status=$?
7726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727   (exit $ac_status); }; }; then
7728   ac_header_compiler=yes
7729 else
7730   echo "$as_me: failed program was:" >&5
7731 cat conftest.$ac_ext >&5
7732 ac_header_compiler=no
7733 fi
7734 rm -f conftest.$ac_objext conftest.$ac_ext
7735 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7736 echo "${ECHO_T}$ac_header_compiler" >&6
7737
7738 # Is the header present?
7739 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
7740 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
7741 cat >conftest.$ac_ext <<_ACEOF
7742 #line $LINENO "configure"
7743 #include "confdefs.h"
7744 #include <sane/sane.h>
7745 _ACEOF
7746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7747   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7748   ac_status=$?
7749   egrep -v '^ *\+' conftest.er1 >conftest.err
7750   rm -f conftest.er1
7751   cat conftest.err >&5
7752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753   (exit $ac_status); } >/dev/null; then
7754   if test -s conftest.err; then
7755     ac_cpp_err=$ac_c_preproc_warn_flag
7756   else
7757     ac_cpp_err=
7758   fi
7759 else
7760   ac_cpp_err=yes
7761 fi
7762 if test -z "$ac_cpp_err"; then
7763   ac_header_preproc=yes
7764 else
7765   echo "$as_me: failed program was:" >&5
7766   cat conftest.$ac_ext >&5
7767   ac_header_preproc=no
7768 fi
7769 rm -f conftest.err conftest.$ac_ext
7770 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7771 echo "${ECHO_T}$ac_header_preproc" >&6
7772
7773 # So?  What about this header?
7774 case $ac_header_compiler:$ac_header_preproc in
7775   yes:no )
7776     { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
7777 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7778     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
7779 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
7780   no:yes )
7781     { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
7782 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
7783     { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
7784 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
7785     { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
7786 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
7787 esac
7788 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
7789 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
7790 if test "${ac_cv_header_sane_sane_h+set}" = set; then
7791   echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793   ac_cv_header_sane_sane_h=$ac_header_preproc
7794 fi
7795 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
7796 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
7797
7798 fi
7799 if test $ac_cv_header_sane_sane_h = yes; then
7800   echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
7801 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
7802 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
7803   echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805   ac_check_lib_save_LIBS=$LIBS
7806 LIBS="-lsane  $LIBS"
7807 cat >conftest.$ac_ext <<_ACEOF
7808 #line $LINENO "configure"
7809 #include "confdefs.h"
7810
7811 /* Override any gcc2 internal prototype to avoid an error.  */
7812 #ifdef __cplusplus
7813 extern "C"
7814 #endif
7815 /* We use char because int might match the return type of a gcc2
7816    builtin and then its argument prototype would still apply.  */
7817 char sane_open ();
7818 #ifdef F77_DUMMY_MAIN
7819 #  ifdef __cplusplus
7820      extern "C"
7821 #  endif
7822    int F77_DUMMY_MAIN() { return 1; }
7823 #endif
7824 int
7825 main ()
7826 {
7827 sane_open ();
7828   ;
7829   return 0;
7830 }
7831 _ACEOF
7832 rm -f conftest.$ac_objext conftest$ac_exeext
7833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7834   (eval $ac_link) 2>&5
7835   ac_status=$?
7836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837   (exit $ac_status); } &&
7838          { ac_try='test -s conftest$ac_exeext'
7839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840   (eval $ac_try) 2>&5
7841   ac_status=$?
7842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843   (exit $ac_status); }; }; then
7844   ac_cv_lib_sane_sane_open=yes
7845 else
7846   echo "$as_me: failed program was:" >&5
7847 cat conftest.$ac_ext >&5
7848 ac_cv_lib_sane_sane_open=no
7849 fi
7850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7851 LIBS=$ac_check_lib_save_LIBS
7852 fi
7853 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
7854 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
7855 if test $ac_cv_lib_sane_sane_open = yes; then
7856
7857 cat >>confdefs.h <<\_ACEOF
7858 #define HAVE_SANE 1
7859 _ACEOF
7860
7861 else
7862   SANELIBS=""
7863                                   SANEINCL=""
7864 fi
7865
7866 else
7867   SANELIBS=""
7868                     SANEINCL=""
7869 fi
7870
7871
7872     LIBS="$ac_save_LIBS"
7873     CPPFLAGS="$ac_save_CPPFLAGS"
7874 fi
7875
7876
7877
7878 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
7879 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
7880 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
7881   echo $ECHO_N "(cached) $ECHO_C" >&6
7882 else
7883   ac_check_lib_save_LIBS=$LIBS
7884 LIBS="-lfreetype $X_LIBS $LIBS"
7885 cat >conftest.$ac_ext <<_ACEOF
7886 #line $LINENO "configure"
7887 #include "confdefs.h"
7888
7889 /* Override any gcc2 internal prototype to avoid an error.  */
7890 #ifdef __cplusplus
7891 extern "C"
7892 #endif
7893 /* We use char because int might match the return type of a gcc2
7894    builtin and then its argument prototype would still apply.  */
7895 char FT_Init_FreeType ();
7896 #ifdef F77_DUMMY_MAIN
7897 #  ifdef __cplusplus
7898      extern "C"
7899 #  endif
7900    int F77_DUMMY_MAIN() { return 1; }
7901 #endif
7902 int
7903 main ()
7904 {
7905 FT_Init_FreeType ();
7906   ;
7907   return 0;
7908 }
7909 _ACEOF
7910 rm -f conftest.$ac_objext conftest$ac_exeext
7911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7912   (eval $ac_link) 2>&5
7913   ac_status=$?
7914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915   (exit $ac_status); } &&
7916          { ac_try='test -s conftest$ac_exeext'
7917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918   (eval $ac_try) 2>&5
7919   ac_status=$?
7920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921   (exit $ac_status); }; }; then
7922   ac_cv_lib_freetype_FT_Init_FreeType=yes
7923 else
7924   echo "$as_me: failed program was:" >&5
7925 cat conftest.$ac_ext >&5
7926 ac_cv_lib_freetype_FT_Init_FreeType=no
7927 fi
7928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7929 LIBS=$ac_check_lib_save_LIBS
7930 fi
7931 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
7932 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
7933 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
7934   ft_lib=yes
7935 else
7936   ft_lib=no
7937 fi
7938
7939 if test "$ft_lib" = "no"
7940 then
7941     FREETYPEINCL=""
7942     wine_cv_msg_freetype=no
7943 else
7944     # Extract the first word of "freetype-config", so it can be a program name with args.
7945 set dummy freetype-config; ac_word=$2
7946 echo "$as_me:$LINENO: checking for $ac_word" >&5
7947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7948 if test "${ac_cv_prog_ft_devel+set}" = set; then
7949   echo $ECHO_N "(cached) $ECHO_C" >&6
7950 else
7951   if test -n "$ft_devel"; then
7952   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
7953 else
7954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955 for as_dir in $PATH
7956 do
7957   IFS=$as_save_IFS
7958   test -z "$as_dir" && as_dir=.
7959   for ac_exec_ext in '' $ac_executable_extensions; do
7960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7961     ac_cv_prog_ft_devel="freetype-config"
7962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7963     break 2
7964   fi
7965 done
7966 done
7967
7968   test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
7969 fi
7970 fi
7971 ft_devel=$ac_cv_prog_ft_devel
7972 if test -n "$ft_devel"; then
7973   echo "$as_me:$LINENO: result: $ft_devel" >&5
7974 echo "${ECHO_T}$ft_devel" >&6
7975 else
7976   echo "$as_me:$LINENO: result: no" >&5
7977 echo "${ECHO_T}no" >&6
7978 fi
7979
7980     if test "$ft_devel" = "no"
7981     then
7982         # Extract the first word of "freetype2-config", so it can be a program name with args.
7983 set dummy freetype2-config; ac_word=$2
7984 echo "$as_me:$LINENO: checking for $ac_word" >&5
7985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7986 if test "${ac_cv_prog_ft_devel2+set}" = set; then
7987   echo $ECHO_N "(cached) $ECHO_C" >&6
7988 else
7989   if test -n "$ft_devel2"; then
7990   ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
7991 else
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 for as_dir in $PATH
7994 do
7995   IFS=$as_save_IFS
7996   test -z "$as_dir" && as_dir=.
7997   for ac_exec_ext in '' $ac_executable_extensions; do
7998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7999     ac_cv_prog_ft_devel2="freetype2-config"
8000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8001     break 2
8002   fi
8003 done
8004 done
8005
8006   test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8007 fi
8008 fi
8009 ft_devel2=$ac_cv_prog_ft_devel2
8010 if test -n "$ft_devel2"; then
8011   echo "$as_me:$LINENO: result: $ft_devel2" >&5
8012 echo "${ECHO_T}$ft_devel2" >&6
8013 else
8014   echo "$as_me:$LINENO: result: no" >&5
8015 echo "${ECHO_T}no" >&6
8016 fi
8017
8018         if test "$ft_devel2" = "freetype2-config"
8019         then
8020                 ft_devel=$ft_devel2
8021         fi
8022     fi
8023     if test "$ft_devel" = "no"
8024     then
8025         FREETYPEINCL=""
8026         wine_cv_msg_freetype=yes
8027     else
8028         FREETYPEINCL=`$ft_devel --cflags`
8029         ac_save_CPPFLAGS="$CPPFLAGS"
8030         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
8031
8032
8033
8034
8035
8036
8037
8038
8039 for ac_header in freetype/freetype.h \
8040                          freetype/ftglyph.h \
8041                          freetype/tttables.h \
8042                          freetype/ftnames.h \
8043                          freetype/ftsnames.h \
8044                          freetype/ttnameid.h \
8045                          freetype/ftoutln.h \
8046                          freetype/internal/sfnt.h
8047 do
8048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8050   echo "$as_me:$LINENO: checking for $ac_header" >&5
8051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8053   echo $ECHO_N "(cached) $ECHO_C" >&6
8054 fi
8055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8057 else
8058   # Is the header compilable?
8059 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8061 cat >conftest.$ac_ext <<_ACEOF
8062 #line $LINENO "configure"
8063 #include "confdefs.h"
8064 $ac_includes_default
8065 #include <$ac_header>
8066 _ACEOF
8067 rm -f conftest.$ac_objext
8068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8069   (eval $ac_compile) 2>&5
8070   ac_status=$?
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); } &&
8073          { ac_try='test -s conftest.$ac_objext'
8074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075   (eval $ac_try) 2>&5
8076   ac_status=$?
8077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078   (exit $ac_status); }; }; then
8079   ac_header_compiler=yes
8080 else
8081   echo "$as_me: failed program was:" >&5
8082 cat conftest.$ac_ext >&5
8083 ac_header_compiler=no
8084 fi
8085 rm -f conftest.$ac_objext conftest.$ac_ext
8086 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8087 echo "${ECHO_T}$ac_header_compiler" >&6
8088
8089 # Is the header present?
8090 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8092 cat >conftest.$ac_ext <<_ACEOF
8093 #line $LINENO "configure"
8094 #include "confdefs.h"
8095 #include <$ac_header>
8096 _ACEOF
8097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8098   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8099   ac_status=$?
8100   egrep -v '^ *\+' conftest.er1 >conftest.err
8101   rm -f conftest.er1
8102   cat conftest.err >&5
8103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104   (exit $ac_status); } >/dev/null; then
8105   if test -s conftest.err; then
8106     ac_cpp_err=$ac_c_preproc_warn_flag
8107   else
8108     ac_cpp_err=
8109   fi
8110 else
8111   ac_cpp_err=yes
8112 fi
8113 if test -z "$ac_cpp_err"; then
8114   ac_header_preproc=yes
8115 else
8116   echo "$as_me: failed program was:" >&5
8117   cat conftest.$ac_ext >&5
8118   ac_header_preproc=no
8119 fi
8120 rm -f conftest.err conftest.$ac_ext
8121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8122 echo "${ECHO_T}$ac_header_preproc" >&6
8123
8124 # So?  What about this header?
8125 case $ac_header_compiler:$ac_header_preproc in
8126   yes:no )
8127     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8129     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8131   no:yes )
8132     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8134     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8136     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8138 esac
8139 echo "$as_me:$LINENO: checking for $ac_header" >&5
8140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8142   echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144   eval "$as_ac_Header=$ac_header_preproc"
8145 fi
8146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8148
8149 fi
8150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8151   cat >>confdefs.h <<_ACEOF
8152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8153 _ACEOF
8154
8155 fi
8156
8157 done
8158
8159         cat >conftest.$ac_ext <<_ACEOF
8160 #line $LINENO "configure"
8161 #include "confdefs.h"
8162 #include <ft2build.h>
8163                     #include <freetype/fttrigon.h>
8164 _ACEOF
8165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8166   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8167   ac_status=$?
8168   egrep -v '^ *\+' conftest.er1 >conftest.err
8169   rm -f conftest.er1
8170   cat conftest.err >&5
8171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   (exit $ac_status); } >/dev/null; then
8173   if test -s conftest.err; then
8174     ac_cpp_err=$ac_c_preproc_warn_flag
8175   else
8176     ac_cpp_err=
8177   fi
8178 else
8179   ac_cpp_err=yes
8180 fi
8181 if test -z "$ac_cpp_err"; then
8182
8183 cat >>confdefs.h <<\_ACEOF
8184 #define HAVE_FREETYPE_FTTRIGON_H 1
8185 _ACEOF
8186
8187                     wine_cv_fttrigon=yes
8188 else
8189   echo "$as_me: failed program was:" >&5
8190   cat conftest.$ac_ext >&5
8191   wine_cv_fttrigon=no
8192 fi
8193 rm -f conftest.err conftest.$ac_ext
8194         CPPFLAGS="$ac_save_CPPFLAGS"
8195                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
8196         then
8197
8198 cat >>confdefs.h <<\_ACEOF
8199 #define HAVE_FREETYPE 1
8200 _ACEOF
8201
8202             wine_cv_msg_freetype=no
8203         else
8204             FREETYPEINCL=""
8205             wine_cv_msg_freetype=yes
8206         fi
8207     fi
8208 fi
8209
8210
8211 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
8212 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8213 if test "${ac_cv_c_ppdev+set}" = set; then
8214   echo $ECHO_N "(cached) $ECHO_C" >&6
8215 else
8216   cat >conftest.$ac_ext <<_ACEOF
8217 #line $LINENO "configure"
8218 #include "confdefs.h"
8219 #include <linux/ppdev.h>
8220 #ifdef F77_DUMMY_MAIN
8221 #  ifdef __cplusplus
8222      extern "C"
8223 #  endif
8224    int F77_DUMMY_MAIN() { return 1; }
8225 #endif
8226 int
8227 main ()
8228 {
8229 ioctl (1,PPCLAIM,0)
8230   ;
8231   return 0;
8232 }
8233 _ACEOF
8234 rm -f conftest.$ac_objext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8236   (eval $ac_compile) 2>&5
8237   ac_status=$?
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); } &&
8240          { ac_try='test -s conftest.$ac_objext'
8241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242   (eval $ac_try) 2>&5
8243   ac_status=$?
8244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245   (exit $ac_status); }; }; then
8246   ac_cv_c_ppdev="yes"
8247 else
8248   echo "$as_me: failed program was:" >&5
8249 cat conftest.$ac_ext >&5
8250 ac_cv_c_ppdev="no"
8251 fi
8252 rm -f conftest.$ac_objext conftest.$ac_ext
8253
8254 fi
8255 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
8256 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
8257 if test "$ac_cv_c_ppdev" = "yes"
8258 then
8259
8260 cat >>confdefs.h <<\_ACEOF
8261 #define HAVE_PPDEV 1
8262 _ACEOF
8263
8264 fi
8265
8266 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
8267 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8268 if test "${ac_cv_c_ipx_gnu+set}" = set; then
8269   echo $ECHO_N "(cached) $ECHO_C" >&6
8270 else
8271   cat >conftest.$ac_ext <<_ACEOF
8272 #line $LINENO "configure"
8273 #include "confdefs.h"
8274 #include <sys/socket.h>
8275     #include <netipx/ipx.h>
8276 #ifdef F77_DUMMY_MAIN
8277 #  ifdef __cplusplus
8278      extern "C"
8279 #  endif
8280    int F77_DUMMY_MAIN() { return 1; }
8281 #endif
8282 int
8283 main ()
8284 {
8285 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8286   ;
8287   return 0;
8288 }
8289 _ACEOF
8290 rm -f conftest.$ac_objext
8291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8292   (eval $ac_compile) 2>&5
8293   ac_status=$?
8294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295   (exit $ac_status); } &&
8296          { ac_try='test -s conftest.$ac_objext'
8297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298   (eval $ac_try) 2>&5
8299   ac_status=$?
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); }; }; then
8302   ac_cv_c_ipx_gnu="yes"
8303 else
8304   echo "$as_me: failed program was:" >&5
8305 cat conftest.$ac_ext >&5
8306 ac_cv_c_ipx_gnu="no"
8307 fi
8308 rm -f conftest.$ac_objext conftest.$ac_ext
8309
8310 fi
8311 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
8312 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
8313 if test "$ac_cv_c_ipx_gnu" = "yes"
8314 then
8315
8316 cat >>confdefs.h <<\_ACEOF
8317 #define HAVE_IPX_GNU 1
8318 _ACEOF
8319
8320 fi
8321
8322 if test "$ac_cv_c_ipx_gnu" = "no"
8323 then
8324  echo "$as_me:$LINENO: checking for linux style IPX support" >&5
8325 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8326 if test "${ac_cv_c_ipx_linux+set}" = set; then
8327   echo $ECHO_N "(cached) $ECHO_C" >&6
8328 else
8329   cat >conftest.$ac_ext <<_ACEOF
8330 #line $LINENO "configure"
8331 #include "confdefs.h"
8332 #include <sys/socket.h>
8333      #include <asm/types.h>
8334      #include <linux/ipx.h>
8335 #ifdef F77_DUMMY_MAIN
8336 #  ifdef __cplusplus
8337      extern "C"
8338 #  endif
8339    int F77_DUMMY_MAIN() { return 1; }
8340 #endif
8341 int
8342 main ()
8343 {
8344 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8345   ;
8346   return 0;
8347 }
8348 _ACEOF
8349 rm -f conftest.$ac_objext
8350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8351   (eval $ac_compile) 2>&5
8352   ac_status=$?
8353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); } &&
8355          { ac_try='test -s conftest.$ac_objext'
8356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357   (eval $ac_try) 2>&5
8358   ac_status=$?
8359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360   (exit $ac_status); }; }; then
8361   ac_cv_c_ipx_linux="yes"
8362 else
8363   echo "$as_me: failed program was:" >&5
8364 cat conftest.$ac_ext >&5
8365 ac_cv_c_ipx_linux="no"
8366 fi
8367 rm -f conftest.$ac_objext conftest.$ac_ext
8368
8369 fi
8370 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
8371 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
8372   if test "$ac_cv_c_ipx_linux" = "yes"
8373   then
8374
8375 cat >>confdefs.h <<\_ACEOF
8376 #define HAVE_IPX_LINUX 1
8377 _ACEOF
8378
8379   fi
8380 fi
8381
8382
8383
8384
8385 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
8386 do
8387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8389   echo "$as_me:$LINENO: checking for $ac_header" >&5
8390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8392   echo $ECHO_N "(cached) $ECHO_C" >&6
8393 fi
8394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8396 else
8397   # Is the header compilable?
8398 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8400 cat >conftest.$ac_ext <<_ACEOF
8401 #line $LINENO "configure"
8402 #include "confdefs.h"
8403 $ac_includes_default
8404 #include <$ac_header>
8405 _ACEOF
8406 rm -f conftest.$ac_objext
8407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8408   (eval $ac_compile) 2>&5
8409   ac_status=$?
8410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411   (exit $ac_status); } &&
8412          { ac_try='test -s conftest.$ac_objext'
8413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414   (eval $ac_try) 2>&5
8415   ac_status=$?
8416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417   (exit $ac_status); }; }; then
8418   ac_header_compiler=yes
8419 else
8420   echo "$as_me: failed program was:" >&5
8421 cat conftest.$ac_ext >&5
8422 ac_header_compiler=no
8423 fi
8424 rm -f conftest.$ac_objext conftest.$ac_ext
8425 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8426 echo "${ECHO_T}$ac_header_compiler" >&6
8427
8428 # Is the header present?
8429 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8431 cat >conftest.$ac_ext <<_ACEOF
8432 #line $LINENO "configure"
8433 #include "confdefs.h"
8434 #include <$ac_header>
8435 _ACEOF
8436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8437   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8438   ac_status=$?
8439   egrep -v '^ *\+' conftest.er1 >conftest.err
8440   rm -f conftest.er1
8441   cat conftest.err >&5
8442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443   (exit $ac_status); } >/dev/null; then
8444   if test -s conftest.err; then
8445     ac_cpp_err=$ac_c_preproc_warn_flag
8446   else
8447     ac_cpp_err=
8448   fi
8449 else
8450   ac_cpp_err=yes
8451 fi
8452 if test -z "$ac_cpp_err"; then
8453   ac_header_preproc=yes
8454 else
8455   echo "$as_me: failed program was:" >&5
8456   cat conftest.$ac_ext >&5
8457   ac_header_preproc=no
8458 fi
8459 rm -f conftest.err conftest.$ac_ext
8460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8461 echo "${ECHO_T}$ac_header_preproc" >&6
8462
8463 # So?  What about this header?
8464 case $ac_header_compiler:$ac_header_preproc in
8465   yes:no )
8466     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8470   no:yes )
8471     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8473     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8475     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8477 esac
8478 echo "$as_me:$LINENO: checking for $ac_header" >&5
8479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8481   echo $ECHO_N "(cached) $ECHO_C" >&6
8482 else
8483   eval "$as_ac_Header=$ac_header_preproc"
8484 fi
8485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8487
8488 fi
8489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8490   cat >>confdefs.h <<_ACEOF
8491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8492 _ACEOF
8493  break
8494 fi
8495
8496 done
8497
8498
8499 echo "$as_me:$LINENO: checking for Open Sound System" >&5
8500 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8501 if test "${ac_cv_c_opensoundsystem+set}" = set; then
8502   echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8504   cat >conftest.$ac_ext <<_ACEOF
8505 #line $LINENO "configure"
8506 #include "confdefs.h"
8507
8508         #if defined(HAVE_SYS_SOUNDCARD_H)
8509                 #include <sys/soundcard.h>
8510         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8511                 #include <machine/soundcard.h>
8512         #elif defined(HAVE_SOUNDCARD_H)
8513                 #include <soundcard.h>
8514         #endif
8515
8516 #ifdef F77_DUMMY_MAIN
8517 #  ifdef __cplusplus
8518      extern "C"
8519 #  endif
8520    int F77_DUMMY_MAIN() { return 1; }
8521 #endif
8522 int
8523 main ()
8524 {
8525
8526
8527 /* check for one of the Open Sound System specific SNDCTL_ defines */
8528 #if !defined(SNDCTL_DSP_STEREO)
8529 #error No open sound system
8530 #endif
8531
8532   ;
8533   return 0;
8534 }
8535 _ACEOF
8536 rm -f conftest.$ac_objext
8537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8538   (eval $ac_compile) 2>&5
8539   ac_status=$?
8540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541   (exit $ac_status); } &&
8542          { ac_try='test -s conftest.$ac_objext'
8543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544   (eval $ac_try) 2>&5
8545   ac_status=$?
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); }; }; then
8548   ac_cv_c_opensoundsystem="yes"
8549 else
8550   echo "$as_me: failed program was:" >&5
8551 cat conftest.$ac_ext >&5
8552 ac_cv_c_opensoundsystem="no"
8553 fi
8554 rm -f conftest.$ac_objext conftest.$ac_ext
8555 fi
8556 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
8557 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
8558
8559 if test "$ac_cv_c_opensoundsystem" = "yes"
8560 then
8561
8562 cat >>confdefs.h <<\_ACEOF
8563 #define HAVE_OSS 1
8564 _ACEOF
8565
8566 fi
8567
8568 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
8569 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
8570 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
8571   echo $ECHO_N "(cached) $ECHO_C" >&6
8572 else
8573   cat >conftest.$ac_ext <<_ACEOF
8574 #line $LINENO "configure"
8575 #include "confdefs.h"
8576
8577         #if defined(HAVE_SYS_SOUNDCARD_H)
8578                 #include <sys/soundcard.h>
8579         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8580                 #include <machine/soundcard.h>
8581         #elif defined(HAVE_SOUNDCARD_H)
8582                 #include <soundcard.h>
8583         #endif
8584
8585 #ifdef F77_DUMMY_MAIN
8586 #  ifdef __cplusplus
8587      extern "C"
8588 #  endif
8589    int F77_DUMMY_MAIN() { return 1; }
8590 #endif
8591 int
8592 main ()
8593 {
8594
8595
8596 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
8597 #if !defined(SNDCTL_SEQ_SYNC)
8598 #error No open sound system MIDI interface
8599 #endif
8600
8601   ;
8602   return 0;
8603 }
8604 _ACEOF
8605 rm -f conftest.$ac_objext
8606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8607   (eval $ac_compile) 2>&5
8608   ac_status=$?
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); } &&
8611          { ac_try='test -s conftest.$ac_objext'
8612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613   (eval $ac_try) 2>&5
8614   ac_status=$?
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   (exit $ac_status); }; }; then
8617   ac_cv_c_opensoundsystem_midi="yes"
8618 else
8619   echo "$as_me: failed program was:" >&5
8620 cat conftest.$ac_ext >&5
8621 ac_cv_c_opensoundsystem_midi="no"
8622 fi
8623 rm -f conftest.$ac_objext conftest.$ac_ext
8624 fi
8625 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
8626 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
8627
8628 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
8629 then
8630
8631 cat >>confdefs.h <<\_ACEOF
8632 #define HAVE_OSS_MIDI 1
8633 _ACEOF
8634
8635 fi
8636
8637 # Extract the first word of "artsc-config", so it can be a program name with args.
8638 set dummy artsc-config; ac_word=$2
8639 echo "$as_me:$LINENO: checking for $ac_word" >&5
8640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8641 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
8642   echo $ECHO_N "(cached) $ECHO_C" >&6
8643 else
8644   case $ARTSCCONFIG in
8645   [\\/]* | ?:[\\/]*)
8646   ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
8647   ;;
8648   *)
8649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8650 for as_dir in $PATH
8651 do
8652   IFS=$as_save_IFS
8653   test -z "$as_dir" && as_dir=.
8654   for ac_exec_ext in '' $ac_executable_extensions; do
8655   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8656     ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
8657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8658     break 2
8659   fi
8660 done
8661 done
8662
8663   ;;
8664 esac
8665 fi
8666 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
8667
8668 if test -n "$ARTSCCONFIG"; then
8669   echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
8670 echo "${ECHO_T}$ARTSCCONFIG" >&6
8671 else
8672   echo "$as_me:$LINENO: result: no" >&5
8673 echo "${ECHO_T}no" >&6
8674 fi
8675
8676 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
8677 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
8678 if test "${ac_cv_c_artsserver+set}" = set; then
8679   echo $ECHO_N "(cached) $ECHO_C" >&6
8680 else
8681   if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
8682         then
8683             ac_cv_c_artsserver=no
8684         else
8685             ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
8686             ARTSC_LIBS=`$ARTSCCONFIG --libs`
8687             ac_cv_c_artsserver=no
8688             save_CFLAGS="$CFLAGS"
8689             CFLAGS="$CFLAGS $ARTSC_CFLAGS"
8690             cat >conftest.$ac_ext <<_ACEOF
8691 #line $LINENO "configure"
8692 #include "confdefs.h"
8693
8694              #include <artsc.h>
8695
8696 #ifdef F77_DUMMY_MAIN
8697 #  ifdef __cplusplus
8698      extern "C"
8699 #  endif
8700    int F77_DUMMY_MAIN() { return 1; }
8701 #endif
8702 int
8703 main ()
8704 {
8705
8706              arts_stream_t stream;
8707
8708   ;
8709   return 0;
8710 }
8711 _ACEOF
8712 rm -f conftest.$ac_objext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8714   (eval $ac_compile) 2>&5
8715   ac_status=$?
8716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); } &&
8718          { ac_try='test -s conftest.$ac_objext'
8719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720   (eval $ac_try) 2>&5
8721   ac_status=$?
8722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723   (exit $ac_status); }; }; then
8724
8725             ac_cv_c_artsserver=yes
8726
8727 else
8728   echo "$as_me: failed program was:" >&5
8729 cat conftest.$ac_ext >&5
8730 fi
8731 rm -f conftest.$ac_objext conftest.$ac_ext
8732             CFLAGS="$save_CFLAGS"
8733         fi
8734 fi
8735 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
8736 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
8737
8738 if test "$ac_cv_c_artsserver" = "yes"
8739 then
8740     ARTSLIBS=$ARTSC_LIBS
8741
8742     ARTSINCL=$ARTSC_CFLAGS
8743
8744
8745
8746 cat >>confdefs.h <<\_ACEOF
8747 #define HAVE_ARTS 1
8748 _ACEOF
8749
8750 fi
8751
8752
8753 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
8754 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
8755 if test "${ac_cv_mmap64_works+set}" = set; then
8756   echo $ECHO_N "(cached) $ECHO_C" >&6
8757 else
8758   if test "$cross_compiling" = yes; then
8759   ac_cv_mmap64_works="no"
8760 else
8761   cat >conftest.$ac_ext <<_ACEOF
8762 #line $LINENO "configure"
8763 #include "confdefs.h"
8764
8765                 #define _FILE_OFFSET_BITS 64
8766                 #include <stdio.h>
8767                 #include <unistd.h>
8768                 #include <fcntl.h>
8769                 #include <sys/mman.h>
8770                 #include <errno.h>
8771
8772                 int main(int argc,char **argv) {
8773                         int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
8774                         if (fd == -1) exit(1);
8775
8776                         unlink("conftest.map");
8777
8778                         write(fd,"test",4);
8779
8780                         if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
8781                             (errno == EINVAL)
8782                         ) {
8783                                 exit(1);
8784                         }
8785                         close(fd);
8786                         fprintf(stderr,"success!\n");
8787                         exit(0);
8788                 }
8789
8790
8791 _ACEOF
8792 rm -f conftest$ac_exeext
8793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8794   (eval $ac_link) 2>&5
8795   ac_status=$?
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799   (eval $ac_try) 2>&5
8800   ac_status=$?
8801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802   (exit $ac_status); }; }; then
8803   ac_cv_mmap64_works="yes"
8804 else
8805   echo "$as_me: program exited with status $ac_status" >&5
8806 echo "$as_me: failed program was:" >&5
8807 cat conftest.$ac_ext >&5
8808 ( exit $ac_status )
8809 ac_cv_mmap64_works="no"
8810 fi
8811 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8812 fi
8813 fi
8814 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
8815 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
8816
8817 if test "$ac_cv_mmap64_works" = "yes"
8818 then
8819
8820 cat >>confdefs.h <<\_ACEOF
8821 #define _FILE_OFFSET_BITS 64
8822 _ACEOF
8823
8824 fi
8825
8826
8827 if test "x${GCC}" = "xyes"
8828 then
8829   CFLAGS="$CFLAGS -Wall"
8830   echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
8831 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
8832 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
8833   echo $ECHO_N "(cached) $ECHO_C" >&6
8834 else
8835   if test "$cross_compiling" = yes; then
8836   ac_cv_c_gcc_strength_bug="yes"
8837 else
8838   cat >conftest.$ac_ext <<_ACEOF
8839 #line $LINENO "configure"
8840 #include "confdefs.h"
8841
8842 int     L[4] = {0,1,2,3};
8843 int main(void) {
8844   static int Array[3];
8845   unsigned int B = 3;
8846   int i;
8847   for(i=0; i<B; i++) Array[i] = i - 3;
8848   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
8849   L[i] = 4;
8850
8851   exit( Array[1] != -2 || L[2] != 3);
8852 }
8853 _ACEOF
8854 rm -f conftest$ac_exeext
8855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8856   (eval $ac_link) 2>&5
8857   ac_status=$?
8858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861   (eval $ac_try) 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); }; }; then
8865   ac_cv_c_gcc_strength_bug="no"
8866 else
8867   echo "$as_me: program exited with status $ac_status" >&5
8868 echo "$as_me: failed program was:" >&5
8869 cat conftest.$ac_ext >&5
8870 ( exit $ac_status )
8871 ac_cv_c_gcc_strength_bug="yes"
8872 fi
8873 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8874 fi
8875 fi
8876 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
8877 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
8878   if test "$ac_cv_c_gcc_strength_bug" = "yes"
8879   then
8880     CFLAGS="$CFLAGS -fno-strength-reduce"
8881   fi
8882
8883     echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
8884 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
8885 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
8886   echo $ECHO_N "(cached) $ECHO_C" >&6
8887 else
8888   saved_cflags=$CFLAGS
8889   CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
8890   cat >conftest.$ac_ext <<_ACEOF
8891 #line $LINENO "configure"
8892 #include "confdefs.h"
8893
8894 #ifdef F77_DUMMY_MAIN
8895 #  ifdef __cplusplus
8896      extern "C"
8897 #  endif
8898    int F77_DUMMY_MAIN() { return 1; }
8899 #endif
8900 int
8901 main ()
8902 {
8903 return 0
8904   ;
8905   return 0;
8906 }
8907 _ACEOF
8908 rm -f conftest.$ac_objext
8909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8910   (eval $ac_compile) 2>&5
8911   ac_status=$?
8912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913   (exit $ac_status); } &&
8914          { ac_try='test -s conftest.$ac_objext'
8915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916   (eval $ac_try) 2>&5
8917   ac_status=$?
8918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919   (exit $ac_status); }; }; then
8920   ac_cv_c_gcc_stack_boundary="yes"
8921 else
8922   echo "$as_me: failed program was:" >&5
8923 cat conftest.$ac_ext >&5
8924 ac_cv_c_gcc_stack_boundary="no"
8925 fi
8926 rm -f conftest.$ac_objext conftest.$ac_ext
8927   CFLAGS=$saved_cflags
8928
8929 fi
8930 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
8931 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
8932   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
8933   then
8934     CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
8935   fi
8936 fi
8937
8938
8939 echo "$as_me:$LINENO: checking whether .type must sit inside a .def directive" >&5
8940 echo $ECHO_N "checking whether .type must sit inside a .def directive... $ECHO_C" >&6
8941 if test "${ac_cv_c_type_in_def+set}" = set; then
8942   echo $ECHO_N "(cached) $ECHO_C" >&6
8943 else
8944   saved_libs=$LIBS
8945 LIBS="conftest_asm.s $LIBS"
8946 cat > conftest_asm.s <<EOF
8947         .globl _ac_test
8948         .def _ac_test; .scl 2; .type 32; .endef
8949 _ac_test:
8950         .long 0
8951 EOF
8952 cat >conftest.$ac_ext <<_ACEOF
8953 #line $LINENO "configure"
8954 #include "confdefs.h"
8955
8956 #ifdef F77_DUMMY_MAIN
8957 #  ifdef __cplusplus
8958      extern "C"
8959 #  endif
8960    int F77_DUMMY_MAIN() { return 1; }
8961 #endif
8962 int
8963 main ()
8964 {
8965
8966   ;
8967   return 0;
8968 }
8969 _ACEOF
8970 rm -f conftest.$ac_objext conftest$ac_exeext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8972   (eval $ac_link) 2>&5
8973   ac_status=$?
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); } &&
8976          { ac_try='test -s conftest$ac_exeext'
8977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978   (eval $ac_try) 2>&5
8979   ac_status=$?
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); }; }; then
8982   ac_cv_c_type_in_def="yes"
8983 else
8984   echo "$as_me: failed program was:" >&5
8985 cat conftest.$ac_ext >&5
8986 ac_cv_c_type_in_def="no"
8987 fi
8988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8989 LIBS=$saved_libs
8990 fi
8991 echo "$as_me:$LINENO: result: $ac_cv_c_type_in_def" >&5
8992 echo "${ECHO_T}$ac_cv_c_type_in_def" >&6
8993 if test "$ac_cv_c_type_in_def" = "yes"
8994 then
8995
8996 cat >>confdefs.h <<\_ACEOF
8997 #define NEED_TYPE_IN_DEF 1
8998 _ACEOF
8999
9000 fi
9001
9002
9003 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
9004 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
9005 if test "${ac_cv_c_extern_prefix+set}" = set; then
9006   echo $ECHO_N "(cached) $ECHO_C" >&6
9007 else
9008   saved_libs=$LIBS
9009 LIBS="conftest_asm.s $LIBS"
9010 cat > conftest_asm.s <<EOF
9011         .globl _ac_test
9012 _ac_test:
9013         .long 0
9014 EOF
9015 cat >conftest.$ac_ext <<_ACEOF
9016 #line $LINENO "configure"
9017 #include "confdefs.h"
9018 extern int ac_test;
9019 #ifdef F77_DUMMY_MAIN
9020 #  ifdef __cplusplus
9021      extern "C"
9022 #  endif
9023    int F77_DUMMY_MAIN() { return 1; }
9024 #endif
9025 int
9026 main ()
9027 {
9028 if (ac_test) return 1
9029   ;
9030   return 0;
9031 }
9032 _ACEOF
9033 rm -f conftest.$ac_objext conftest$ac_exeext
9034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035   (eval $ac_link) 2>&5
9036   ac_status=$?
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   (exit $ac_status); } &&
9039          { ac_try='test -s conftest$ac_exeext'
9040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041   (eval $ac_try) 2>&5
9042   ac_status=$?
9043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); }; }; then
9045   ac_cv_c_extern_prefix="yes"
9046 else
9047   echo "$as_me: failed program was:" >&5
9048 cat conftest.$ac_ext >&5
9049 ac_cv_c_extern_prefix="no"
9050 fi
9051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9052 LIBS=$saved_libs
9053 fi
9054 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
9055 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
9056 if test "$ac_cv_c_extern_prefix" = "yes"
9057 then
9058
9059 cat >>confdefs.h <<\_ACEOF
9060 #define NEED_UNDERSCORE_PREFIX 1
9061 _ACEOF
9062
9063 fi
9064
9065
9066 echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5
9067 echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
9068 if test "${ac_cv_c_stdcall_decoration+set}" = set; then
9069   echo $ECHO_N "(cached) $ECHO_C" >&6
9070 else
9071   saved_libs=$LIBS
9072 LIBS="conftest_asm.s $LIBS"
9073 if test "$ac_cv_c_extern_prefix" = "yes"
9074 then
9075 cat > conftest_asm.s <<EOF
9076         .globl _ac_test@0
9077 _ac_test@0:
9078 EOF
9079 else
9080 cat > conftest_asm.s <<EOF
9081         .globl ac_test@0
9082 ac_test@0:
9083 EOF
9084 fi
9085 cat >conftest.$ac_ext <<_ACEOF
9086 #line $LINENO "configure"
9087 #include "confdefs.h"
9088 extern void __attribute__((__stdcall__)) ac_test(void);
9089 #ifdef F77_DUMMY_MAIN
9090 #  ifdef __cplusplus
9091      extern "C"
9092 #  endif
9093    int F77_DUMMY_MAIN() { return 1; }
9094 #endif
9095 int
9096 main ()
9097 {
9098 ac_test(); return 0
9099   ;
9100   return 0;
9101 }
9102 _ACEOF
9103 rm -f conftest.$ac_objext conftest$ac_exeext
9104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9105   (eval $ac_link) 2>&5
9106   ac_status=$?
9107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   (exit $ac_status); } &&
9109          { ac_try='test -s conftest$ac_exeext'
9110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111   (eval $ac_try) 2>&5
9112   ac_status=$?
9113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114   (exit $ac_status); }; }; then
9115   ac_cv_c_stdcall_decoration="yes"
9116 else
9117   echo "$as_me: failed program was:" >&5
9118 cat conftest.$ac_ext >&5
9119 ac_cv_c_stdcall_decoration="no"
9120 fi
9121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9122 LIBS=$saved_libs
9123 fi
9124 echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5
9125 echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
9126 if test "$ac_cv_c_stdcall_decoration" = "yes"
9127 then
9128
9129 cat >>confdefs.h <<\_ACEOF
9130 #define NEED_STDCALL_DECORATION 1
9131 _ACEOF
9132
9133 fi
9134
9135
9136 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
9137 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
9138 if test "${ac_cv_c_asm_string+set}" = set; then
9139   echo $ECHO_N "(cached) $ECHO_C" >&6
9140 else
9141   saved_libs=$LIBS
9142 LIBS="conftest_asm.s $LIBS"
9143 cat > conftest_asm.s <<EOF
9144         .string "test"
9145 EOF
9146 cat >conftest.$ac_ext <<_ACEOF
9147 #line $LINENO "configure"
9148 #include "confdefs.h"
9149
9150 #ifdef F77_DUMMY_MAIN
9151 #  ifdef __cplusplus
9152      extern "C"
9153 #  endif
9154    int F77_DUMMY_MAIN() { return 1; }
9155 #endif
9156 int
9157 main ()
9158 {
9159
9160   ;
9161   return 0;
9162 }
9163 _ACEOF
9164 rm -f conftest.$ac_objext conftest$ac_exeext
9165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9166   (eval $ac_link) 2>&5
9167   ac_status=$?
9168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   (exit $ac_status); } &&
9170          { ac_try='test -s conftest$ac_exeext'
9171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172   (eval $ac_try) 2>&5
9173   ac_status=$?
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); }; }; then
9176   ac_cv_c_asm_string="yes"
9177 else
9178   echo "$as_me: failed program was:" >&5
9179 cat conftest.$ac_ext >&5
9180 ac_cv_c_asm_string="no"
9181 fi
9182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9183 LIBS=$saved_libs
9184 fi
9185 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
9186 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
9187 if test "$ac_cv_c_asm_string" = "yes"
9188 then
9189
9190 cat >>confdefs.h <<\_ACEOF
9191 #define HAVE_ASM_STRING 1
9192 _ACEOF
9193
9194 fi
9195
9196
9197 LDSHARED=""
9198 LDDLLFLAGS=""
9199 DLLIBS=""
9200
9201 case $target_os in
9202   cygwin|mingw32)
9203     # Extract the first word of "dllwrap", so it can be a program name with args.
9204 set dummy dllwrap; ac_word=$2
9205 echo "$as_me:$LINENO: checking for $ac_word" >&5
9206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9207 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
9208   echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210   if test -n "$DLLWRAP"; then
9211   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
9212 else
9213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9214 for as_dir in $PATH
9215 do
9216   IFS=$as_save_IFS
9217   test -z "$as_dir" && as_dir=.
9218   for ac_exec_ext in '' $ac_executable_extensions; do
9219   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9220     ac_cv_prog_DLLWRAP="dllwrap"
9221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9222     break 2
9223   fi
9224 done
9225 done
9226
9227   test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP="false"
9228 fi
9229 fi
9230 DLLWRAP=$ac_cv_prog_DLLWRAP
9231 if test -n "$DLLWRAP"; then
9232   echo "$as_me:$LINENO: result: $DLLWRAP" >&5
9233 echo "${ECHO_T}$DLLWRAP" >&6
9234 else
9235   echo "$as_me:$LINENO: result: no" >&5
9236 echo "${ECHO_T}no" >&6
9237 fi
9238
9239     if test "$DLLWRAP" = "dllwrap"; then
9240             LIBEXT="dll"
9241     else
9242       LIBEXT="a"
9243     fi
9244     ;;
9245   *)
9246
9247 for ac_header in dlfcn.h
9248 do
9249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9251   echo "$as_me:$LINENO: checking for $ac_header" >&5
9252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9254   echo $ECHO_N "(cached) $ECHO_C" >&6
9255 fi
9256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9258 else
9259   # Is the header compilable?
9260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9262 cat >conftest.$ac_ext <<_ACEOF
9263 #line $LINENO "configure"
9264 #include "confdefs.h"
9265 $ac_includes_default
9266 #include <$ac_header>
9267 _ACEOF
9268 rm -f conftest.$ac_objext
9269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9270   (eval $ac_compile) 2>&5
9271   ac_status=$?
9272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273   (exit $ac_status); } &&
9274          { ac_try='test -s conftest.$ac_objext'
9275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276   (eval $ac_try) 2>&5
9277   ac_status=$?
9278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279   (exit $ac_status); }; }; then
9280   ac_header_compiler=yes
9281 else
9282   echo "$as_me: failed program was:" >&5
9283 cat conftest.$ac_ext >&5
9284 ac_header_compiler=no
9285 fi
9286 rm -f conftest.$ac_objext conftest.$ac_ext
9287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9288 echo "${ECHO_T}$ac_header_compiler" >&6
9289
9290 # Is the header present?
9291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9293 cat >conftest.$ac_ext <<_ACEOF
9294 #line $LINENO "configure"
9295 #include "confdefs.h"
9296 #include <$ac_header>
9297 _ACEOF
9298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9299   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9300   ac_status=$?
9301   egrep -v '^ *\+' conftest.er1 >conftest.err
9302   rm -f conftest.er1
9303   cat conftest.err >&5
9304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305   (exit $ac_status); } >/dev/null; then
9306   if test -s conftest.err; then
9307     ac_cpp_err=$ac_c_preproc_warn_flag
9308   else
9309     ac_cpp_err=
9310   fi
9311 else
9312   ac_cpp_err=yes
9313 fi
9314 if test -z "$ac_cpp_err"; then
9315   ac_header_preproc=yes
9316 else
9317   echo "$as_me: failed program was:" >&5
9318   cat conftest.$ac_ext >&5
9319   ac_header_preproc=no
9320 fi
9321 rm -f conftest.err conftest.$ac_ext
9322 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9323 echo "${ECHO_T}$ac_header_preproc" >&6
9324
9325 # So?  What about this header?
9326 case $ac_header_compiler:$ac_header_preproc in
9327   yes:no )
9328     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9330     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9332   no:yes )
9333     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9335     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9339 esac
9340 echo "$as_me:$LINENO: checking for $ac_header" >&5
9341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9343   echo $ECHO_N "(cached) $ECHO_C" >&6
9344 else
9345   eval "$as_ac_Header=$ac_header_preproc"
9346 fi
9347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9349
9350 fi
9351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9352   cat >>confdefs.h <<_ACEOF
9353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9354 _ACEOF
9355
9356 for ac_func in dlopen
9357 do
9358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9359 echo "$as_me:$LINENO: checking for $ac_func" >&5
9360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9361 if eval "test \"\${$as_ac_var+set}\" = set"; then
9362   echo $ECHO_N "(cached) $ECHO_C" >&6
9363 else
9364   cat >conftest.$ac_ext <<_ACEOF
9365 #line $LINENO "configure"
9366 #include "confdefs.h"
9367 /* System header to define __stub macros and hopefully few prototypes,
9368     which can conflict with char $ac_func (); below.  */
9369 #include <assert.h>
9370 /* Override any gcc2 internal prototype to avoid an error.  */
9371 #ifdef __cplusplus
9372 extern "C"
9373 #endif
9374 /* We use char because int might match the return type of a gcc2
9375    builtin and then its argument prototype would still apply.  */
9376 char $ac_func ();
9377 char (*f) ();
9378
9379 #ifdef F77_DUMMY_MAIN
9380 #  ifdef __cplusplus
9381      extern "C"
9382 #  endif
9383    int F77_DUMMY_MAIN() { return 1; }
9384 #endif
9385 int
9386 main ()
9387 {
9388 /* The GNU C library defines this for functions which it implements
9389     to always fail with ENOSYS.  Some functions are actually named
9390     something starting with __ and the normal name is an alias.  */
9391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9392 choke me
9393 #else
9394 f = $ac_func;
9395 #endif
9396
9397   ;
9398   return 0;
9399 }
9400 _ACEOF
9401 rm -f conftest.$ac_objext conftest$ac_exeext
9402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403   (eval $ac_link) 2>&5
9404   ac_status=$?
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); } &&
9407          { ac_try='test -s conftest$ac_exeext'
9408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409   (eval $ac_try) 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); }; }; then
9413   eval "$as_ac_var=yes"
9414 else
9415   echo "$as_me: failed program was:" >&5
9416 cat conftest.$ac_ext >&5
9417 eval "$as_ac_var=no"
9418 fi
9419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9420 fi
9421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9423 if test `eval echo '${'$as_ac_var'}'` = yes; then
9424   cat >>confdefs.h <<_ACEOF
9425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9426 _ACEOF
9427
9428 else
9429   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9430 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9431 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9432   echo $ECHO_N "(cached) $ECHO_C" >&6
9433 else
9434   ac_check_lib_save_LIBS=$LIBS
9435 LIBS="-ldl  $LIBS"
9436 cat >conftest.$ac_ext <<_ACEOF
9437 #line $LINENO "configure"
9438 #include "confdefs.h"
9439
9440 /* Override any gcc2 internal prototype to avoid an error.  */
9441 #ifdef __cplusplus
9442 extern "C"
9443 #endif
9444 /* We use char because int might match the return type of a gcc2
9445    builtin and then its argument prototype would still apply.  */
9446 char dlopen ();
9447 #ifdef F77_DUMMY_MAIN
9448 #  ifdef __cplusplus
9449      extern "C"
9450 #  endif
9451    int F77_DUMMY_MAIN() { return 1; }
9452 #endif
9453 int
9454 main ()
9455 {
9456 dlopen ();
9457   ;
9458   return 0;
9459 }
9460 _ACEOF
9461 rm -f conftest.$ac_objext conftest$ac_exeext
9462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9463   (eval $ac_link) 2>&5
9464   ac_status=$?
9465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466   (exit $ac_status); } &&
9467          { ac_try='test -s conftest$ac_exeext'
9468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469   (eval $ac_try) 2>&5
9470   ac_status=$?
9471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472   (exit $ac_status); }; }; then
9473   ac_cv_lib_dl_dlopen=yes
9474 else
9475   echo "$as_me: failed program was:" >&5
9476 cat conftest.$ac_ext >&5
9477 ac_cv_lib_dl_dlopen=no
9478 fi
9479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9480 LIBS=$ac_check_lib_save_LIBS
9481 fi
9482 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9483 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9484 if test $ac_cv_lib_dl_dlopen = yes; then
9485
9486 cat >>confdefs.h <<\_ACEOF
9487 #define HAVE_DLOPEN 1
9488 _ACEOF
9489
9490                           DLLIBS="-ldl"
9491 else
9492   LIBEXT="a"
9493 fi
9494
9495 fi
9496 done
9497
9498 else
9499   LIBEXT="a"
9500 fi
9501
9502 done
9503
9504
9505     if test "$LIBEXT" = "so"
9506     then
9507       echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
9508 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
9509 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
9510   echo $ECHO_N "(cached) $ECHO_C" >&6
9511 else
9512   saved_cflags=$CFLAGS
9513       CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
9514       cat >conftest.$ac_ext <<_ACEOF
9515 #line $LINENO "configure"
9516 #include "confdefs.h"
9517
9518 #ifdef F77_DUMMY_MAIN
9519 #  ifdef __cplusplus
9520      extern "C"
9521 #  endif
9522    int F77_DUMMY_MAIN() { return 1; }
9523 #endif
9524 int
9525 main ()
9526 {
9527 return 1
9528   ;
9529   return 0;
9530 }
9531 _ACEOF
9532 rm -f conftest.$ac_objext conftest$ac_exeext
9533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9534   (eval $ac_link) 2>&5
9535   ac_status=$?
9536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537   (exit $ac_status); } &&
9538          { ac_try='test -s conftest$ac_exeext'
9539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540   (eval $ac_try) 2>&5
9541   ac_status=$?
9542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543   (exit $ac_status); }; }; then
9544   ac_cv_c_dll_gnuelf="yes"
9545 else
9546   echo "$as_me: failed program was:" >&5
9547 cat conftest.$ac_ext >&5
9548 ac_cv_c_dll_gnuelf="no"
9549 fi
9550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9551       CFLAGS=$saved_cflags
9552
9553 fi
9554 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
9555 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
9556       if test "$ac_cv_c_dll_gnuelf" = "yes"
9557       then
9558         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
9559         LDDLLFLAGS="-Wl,-Bsymbolic"
9560       else
9561         echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
9562 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
9563 if test "${ac_cv_c_dll_unixware+set}" = set; then
9564   echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566   saved_cflags=$CFLAGS
9567         CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
9568         cat >conftest.$ac_ext <<_ACEOF
9569 #line $LINENO "configure"
9570 #include "confdefs.h"
9571
9572 #ifdef F77_DUMMY_MAIN
9573 #  ifdef __cplusplus
9574      extern "C"
9575 #  endif
9576    int F77_DUMMY_MAIN() { return 1; }
9577 #endif
9578 int
9579 main ()
9580 {
9581 return 1
9582   ;
9583   return 0;
9584 }
9585 _ACEOF
9586 rm -f conftest.$ac_objext conftest$ac_exeext
9587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9588   (eval $ac_link) 2>&5
9589   ac_status=$?
9590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); } &&
9592          { ac_try='test -s conftest$ac_exeext'
9593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594   (eval $ac_try) 2>&5
9595   ac_status=$?
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); }; }; then
9598   ac_cv_c_dll_unixware="yes"
9599 else
9600   echo "$as_me: failed program was:" >&5
9601 cat conftest.$ac_ext >&5
9602 ac_cv_c_dll_unixware="no"
9603 fi
9604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9605         CFLAGS=$saved_cflags
9606
9607 fi
9608 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
9609 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
9610         if test "$ac_cv_c_dll_unixware" = "yes"
9611         then
9612           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
9613           LDDLLFLAGS="-Wl,-B,symbolic"
9614         fi
9615       fi
9616     fi
9617     ;;
9618 esac
9619
9620 if test "$LIBEXT" = "a"; then
9621   { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
9622 It is currently not possible to build Wine without shared library
9623 (.so) support to allow transparent switch between .so and .dll files.
9624 If you are using Linux, you will need a newer binutils.
9625 " >&5
9626 echo "$as_me: error: could not find a way to build shared libraries.
9627 It is currently not possible to build Wine without shared library
9628 (.so) support to allow transparent switch between .so and .dll files.
9629 If you are using Linux, you will need a newer binutils.
9630 " >&2;}
9631    { (exit 1); exit 1; }; }
9632 fi
9633
9634 DLLFLAGS=""
9635 LDPATH=""
9636
9637 if test "$LIBEXT" = "so"; then
9638     DLLFLAGS="-fPIC"
9639     DLLEXT=".so"
9640     LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/library:\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
9641 elif test "$LIBEXT" = "dll"; then
9642     #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
9643     DLLEXT=""
9644     LDPATH="PATH=\"\$(TOPOBJDIR)/library:\$(TOPOBJDIR)/unicode:\$\$PATH\""
9645 fi
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658 wine_cv_libc_reentrant=no
9659
9660   echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
9661 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
9662 if test "${wine_cv_libc_r___errno_location+set}" = set; then
9663   echo $ECHO_N "(cached) $ECHO_C" >&6
9664 else
9665   if test "$cross_compiling" = yes; then
9666   wine_cv_libc_r___errno_location=yes
9667 else
9668   cat >conftest.$ac_ext <<_ACEOF
9669 #line $LINENO "configure"
9670 #include "confdefs.h"
9671 int myerrno = 0;
9672 char buf[256];
9673 int *__errno_location(){return &myerrno;}
9674 main(){connect(0,buf,255); exit(!myerrno);}
9675 _ACEOF
9676 rm -f conftest$ac_exeext
9677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9678   (eval $ac_link) 2>&5
9679   ac_status=$?
9680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683   (eval $ac_try) 2>&5
9684   ac_status=$?
9685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686   (exit $ac_status); }; }; then
9687   wine_cv_libc_r___errno_location=yes
9688 else
9689   echo "$as_me: program exited with status $ac_status" >&5
9690 echo "$as_me: failed program was:" >&5
9691 cat conftest.$ac_ext >&5
9692 ( exit $ac_status )
9693 wine_cv_libc_r___errno_location=no
9694 fi
9695 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9696 fi
9697
9698 fi
9699 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
9700 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
9701 if test "$wine_cv_libc_r___errno_location" = "yes"
9702 then
9703     wine_cv_libc_reentrant=__errno_location
9704 fi
9705
9706
9707   echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
9708 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
9709 if test "${wine_cv_libc_r___error+set}" = set; then
9710   echo $ECHO_N "(cached) $ECHO_C" >&6
9711 else
9712   if test "$cross_compiling" = yes; then
9713   wine_cv_libc_r___error=yes
9714 else
9715   cat >conftest.$ac_ext <<_ACEOF
9716 #line $LINENO "configure"
9717 #include "confdefs.h"
9718 int myerrno = 0;
9719 char buf[256];
9720 int *__error(){return &myerrno;}
9721 main(){connect(0,buf,255); exit(!myerrno);}
9722 _ACEOF
9723 rm -f conftest$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725   (eval $ac_link) 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730   (eval $ac_try) 2>&5
9731   ac_status=$?
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); }; }; then
9734   wine_cv_libc_r___error=yes
9735 else
9736   echo "$as_me: program exited with status $ac_status" >&5
9737 echo "$as_me: failed program was:" >&5
9738 cat conftest.$ac_ext >&5
9739 ( exit $ac_status )
9740 wine_cv_libc_r___error=no
9741 fi
9742 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9743 fi
9744
9745 fi
9746 echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
9747 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
9748 if test "$wine_cv_libc_r___error" = "yes"
9749 then
9750     wine_cv_libc_reentrant=__error
9751 fi
9752
9753
9754   echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
9755 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
9756 if test "${wine_cv_libc_r____errno+set}" = set; then
9757   echo $ECHO_N "(cached) $ECHO_C" >&6
9758 else
9759   if test "$cross_compiling" = yes; then
9760   wine_cv_libc_r____errno=yes
9761 else
9762   cat >conftest.$ac_ext <<_ACEOF
9763 #line $LINENO "configure"
9764 #include "confdefs.h"
9765 int myerrno = 0;
9766 char buf[256];
9767 int *___errno(){return &myerrno;}
9768 main(){connect(0,buf,255); exit(!myerrno);}
9769 _ACEOF
9770 rm -f conftest$ac_exeext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9772   (eval $ac_link) 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777   (eval $ac_try) 2>&5
9778   ac_status=$?
9779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780   (exit $ac_status); }; }; then
9781   wine_cv_libc_r____errno=yes
9782 else
9783   echo "$as_me: program exited with status $ac_status" >&5
9784 echo "$as_me: failed program was:" >&5
9785 cat conftest.$ac_ext >&5
9786 ( exit $ac_status )
9787 wine_cv_libc_r____errno=no
9788 fi
9789 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9790 fi
9791
9792 fi
9793 echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
9794 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
9795 if test "$wine_cv_libc_r____errno" = "yes"
9796 then
9797     wine_cv_libc_reentrant=___errno
9798 fi
9799
9800
9801   echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
9802 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
9803 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
9804   echo $ECHO_N "(cached) $ECHO_C" >&6
9805 else
9806   if test "$cross_compiling" = yes; then
9807   wine_cv_libc_r___thr_errno=yes
9808 else
9809   cat >conftest.$ac_ext <<_ACEOF
9810 #line $LINENO "configure"
9811 #include "confdefs.h"
9812 int myerrno = 0;
9813 char buf[256];
9814 int *__thr_errno(){return &myerrno;}
9815 main(){connect(0,buf,255); exit(!myerrno);}
9816 _ACEOF
9817 rm -f conftest$ac_exeext
9818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9819   (eval $ac_link) 2>&5
9820   ac_status=$?
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824   (eval $ac_try) 2>&5
9825   ac_status=$?
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); }; }; then
9828   wine_cv_libc_r___thr_errno=yes
9829 else
9830   echo "$as_me: program exited with status $ac_status" >&5
9831 echo "$as_me: failed program was:" >&5
9832 cat conftest.$ac_ext >&5
9833 ( exit $ac_status )
9834 wine_cv_libc_r___thr_errno=no
9835 fi
9836 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9837 fi
9838
9839 fi
9840 echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
9841 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
9842 if test "$wine_cv_libc_r___thr_errno" = "yes"
9843 then
9844     wine_cv_libc_reentrant=__thr_errno
9845 fi
9846
9847
9848   echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
9849 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
9850 if test "${wine_cv_libc_r___errno+set}" = set; then
9851   echo $ECHO_N "(cached) $ECHO_C" >&6
9852 else
9853   if test "$cross_compiling" = yes; then
9854   wine_cv_libc_r___errno=yes
9855 else
9856   cat >conftest.$ac_ext <<_ACEOF
9857 #line $LINENO "configure"
9858 #include "confdefs.h"
9859 int myerrno = 0;
9860 char buf[256];
9861 int *__errno(){return &myerrno;}
9862 main(){connect(0,buf,255); exit(!myerrno);}
9863 _ACEOF
9864 rm -f conftest$ac_exeext
9865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9866   (eval $ac_link) 2>&5
9867   ac_status=$?
9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871   (eval $ac_try) 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); }; }; then
9875   wine_cv_libc_r___errno=yes
9876 else
9877   echo "$as_me: program exited with status $ac_status" >&5
9878 echo "$as_me: failed program was:" >&5
9879 cat conftest.$ac_ext >&5
9880 ( exit $ac_status )
9881 wine_cv_libc_r___errno=no
9882 fi
9883 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9884 fi
9885
9886 fi
9887 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
9888 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
9889 if test "$wine_cv_libc_r___errno" = "yes"
9890 then
9891     wine_cv_libc_reentrant=__errno
9892 fi
9893
9894
9895 if test "$wine_cv_libc_reentrant" != "no"
9896 then
9897
9898 cat >>confdefs.h <<_ACEOF
9899 #define ERRNO_LOCATION $wine_cv_libc_reentrant
9900 _ACEOF
9901
9902 fi
9903
9904
9905 if test "$have_x" = "yes"
9906 then
9907 echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
9908 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
9909 if test "${wine_cv_x_reentrant+set}" = set; then
9910   echo $ECHO_N "(cached) $ECHO_C" >&6
9911 else
9912   libX11_check=none
9913     for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
9914         if test -r $dir/libX11.so; then
9915             libX11_check="-D $dir/libX11.so"
9916             break
9917         fi
9918         if test -r $dir/libX11.a; then
9919             libX11_check="$dir/libX11.a"
9920             break
9921         fi
9922     done
9923     if test "$libX11_check" != "none"; then
9924         if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
9925         then
9926             wine_cv_x_reentrant=yes
9927         else
9928             wine_cv_x_reentrant=no
9929         fi
9930     else
9931         wine_cv_x_reentrant=unknown
9932     fi
9933 fi
9934 echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
9935 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
9936 fi
9937
9938
9939 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9940 # for constant arguments.  Useless!
9941 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9942 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9943 if test "${ac_cv_working_alloca_h+set}" = set; then
9944   echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946   cat >conftest.$ac_ext <<_ACEOF
9947 #line $LINENO "configure"
9948 #include "confdefs.h"
9949 #include <alloca.h>
9950 #ifdef F77_DUMMY_MAIN
9951 #  ifdef __cplusplus
9952      extern "C"
9953 #  endif
9954    int F77_DUMMY_MAIN() { return 1; }
9955 #endif
9956 int
9957 main ()
9958 {
9959 char *p = (char *) alloca (2 * sizeof (int));
9960   ;
9961   return 0;
9962 }
9963 _ACEOF
9964 rm -f conftest.$ac_objext conftest$ac_exeext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9966   (eval $ac_link) 2>&5
9967   ac_status=$?
9968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969   (exit $ac_status); } &&
9970          { ac_try='test -s conftest$ac_exeext'
9971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972   (eval $ac_try) 2>&5
9973   ac_status=$?
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); }; }; then
9976   ac_cv_working_alloca_h=yes
9977 else
9978   echo "$as_me: failed program was:" >&5
9979 cat conftest.$ac_ext >&5
9980 ac_cv_working_alloca_h=no
9981 fi
9982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9983 fi
9984 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9985 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9986 if test $ac_cv_working_alloca_h = yes; then
9987
9988 cat >>confdefs.h <<\_ACEOF
9989 #define HAVE_ALLOCA_H 1
9990 _ACEOF
9991
9992 fi
9993
9994 echo "$as_me:$LINENO: checking for alloca" >&5
9995 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9996 if test "${ac_cv_func_alloca_works+set}" = set; then
9997   echo $ECHO_N "(cached) $ECHO_C" >&6
9998 else
9999   cat >conftest.$ac_ext <<_ACEOF
10000 #line $LINENO "configure"
10001 #include "confdefs.h"
10002 #ifdef __GNUC__
10003 # define alloca __builtin_alloca
10004 #else
10005 # ifdef _MSC_VER
10006 #  include <malloc.h>
10007 #  define alloca _alloca
10008 # else
10009 #  if HAVE_ALLOCA_H
10010 #   include <alloca.h>
10011 #  else
10012 #   ifdef _AIX
10013  #pragma alloca
10014 #   else
10015 #    ifndef alloca /* predefined by HP cc +Olibcalls */
10016 char *alloca ();
10017 #    endif
10018 #   endif
10019 #  endif
10020 # endif
10021 #endif
10022
10023 #ifdef F77_DUMMY_MAIN
10024 #  ifdef __cplusplus
10025      extern "C"
10026 #  endif
10027    int F77_DUMMY_MAIN() { return 1; }
10028 #endif
10029 int
10030 main ()
10031 {
10032 char *p = (char *) alloca (1);
10033   ;
10034   return 0;
10035 }
10036 _ACEOF
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10039   (eval $ac_link) 2>&5
10040   ac_status=$?
10041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042   (exit $ac_status); } &&
10043          { ac_try='test -s conftest$ac_exeext'
10044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045   (eval $ac_try) 2>&5
10046   ac_status=$?
10047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048   (exit $ac_status); }; }; then
10049   ac_cv_func_alloca_works=yes
10050 else
10051   echo "$as_me: failed program was:" >&5
10052 cat conftest.$ac_ext >&5
10053 ac_cv_func_alloca_works=no
10054 fi
10055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10056 fi
10057 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10058 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10059
10060 if test $ac_cv_func_alloca_works = yes; then
10061
10062 cat >>confdefs.h <<\_ACEOF
10063 #define HAVE_ALLOCA 1
10064 _ACEOF
10065
10066 else
10067   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10068 # that cause trouble.  Some versions do not even contain alloca or
10069 # contain a buggy version.  If you still want to use their alloca,
10070 # use ar to extract alloca.o from them instead of compiling alloca.c.
10071
10072 ALLOCA=alloca.$ac_objext
10073
10074 cat >>confdefs.h <<\_ACEOF
10075 #define C_ALLOCA 1
10076 _ACEOF
10077
10078
10079 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10080 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10081 if test "${ac_cv_os_cray+set}" = set; then
10082   echo $ECHO_N "(cached) $ECHO_C" >&6
10083 else
10084   cat >conftest.$ac_ext <<_ACEOF
10085 #line $LINENO "configure"
10086 #include "confdefs.h"
10087 #if defined(CRAY) && ! defined(CRAY2)
10088 webecray
10089 #else
10090 wenotbecray
10091 #endif
10092
10093 _ACEOF
10094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10095   egrep "webecray" >/dev/null 2>&1; then
10096   ac_cv_os_cray=yes
10097 else
10098   ac_cv_os_cray=no
10099 fi
10100 rm -f conftest*
10101
10102 fi
10103 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10104 echo "${ECHO_T}$ac_cv_os_cray" >&6
10105 if test $ac_cv_os_cray = yes; then
10106   for ac_func in _getb67 GETB67 getb67; do
10107     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10108 echo "$as_me:$LINENO: checking for $ac_func" >&5
10109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10110 if eval "test \"\${$as_ac_var+set}\" = set"; then
10111   echo $ECHO_N "(cached) $ECHO_C" >&6
10112 else
10113   cat >conftest.$ac_ext <<_ACEOF
10114 #line $LINENO "configure"
10115 #include "confdefs.h"
10116 /* System header to define __stub macros and hopefully few prototypes,
10117     which can conflict with char $ac_func (); below.  */
10118 #include <assert.h>
10119 /* Override any gcc2 internal prototype to avoid an error.  */
10120 #ifdef __cplusplus
10121 extern "C"
10122 #endif
10123 /* We use char because int might match the return type of a gcc2
10124    builtin and then its argument prototype would still apply.  */
10125 char $ac_func ();
10126 char (*f) ();
10127
10128 #ifdef F77_DUMMY_MAIN
10129 #  ifdef __cplusplus
10130      extern "C"
10131 #  endif
10132    int F77_DUMMY_MAIN() { return 1; }
10133 #endif
10134 int
10135 main ()
10136 {
10137 /* The GNU C library defines this for functions which it implements
10138     to always fail with ENOSYS.  Some functions are actually named
10139     something starting with __ and the normal name is an alias.  */
10140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10141 choke me
10142 #else
10143 f = $ac_func;
10144 #endif
10145
10146   ;
10147   return 0;
10148 }
10149 _ACEOF
10150 rm -f conftest.$ac_objext conftest$ac_exeext
10151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10152   (eval $ac_link) 2>&5
10153   ac_status=$?
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); } &&
10156          { ac_try='test -s conftest$ac_exeext'
10157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158   (eval $ac_try) 2>&5
10159   ac_status=$?
10160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161   (exit $ac_status); }; }; then
10162   eval "$as_ac_var=yes"
10163 else
10164   echo "$as_me: failed program was:" >&5
10165 cat conftest.$ac_ext >&5
10166 eval "$as_ac_var=no"
10167 fi
10168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10169 fi
10170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10172 if test `eval echo '${'$as_ac_var'}'` = yes; then
10173
10174 cat >>confdefs.h <<_ACEOF
10175 #define CRAY_STACKSEG_END $ac_func
10176 _ACEOF
10177
10178     break
10179 fi
10180
10181   done
10182 fi
10183
10184 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10185 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10186 if test "${ac_cv_c_stack_direction+set}" = set; then
10187   echo $ECHO_N "(cached) $ECHO_C" >&6
10188 else
10189   if test "$cross_compiling" = yes; then
10190   ac_cv_c_stack_direction=0
10191 else
10192   cat >conftest.$ac_ext <<_ACEOF
10193 #line $LINENO "configure"
10194 #include "confdefs.h"
10195 int
10196 find_stack_direction ()
10197 {
10198   static char *addr = 0;
10199   auto char dummy;
10200   if (addr == 0)
10201     {
10202       addr = &dummy;
10203       return find_stack_direction ();
10204     }
10205   else
10206     return (&dummy > addr) ? 1 : -1;
10207 }
10208
10209 int
10210 main ()
10211 {
10212   exit (find_stack_direction () < 0);
10213 }
10214 _ACEOF
10215 rm -f conftest$ac_exeext
10216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10217   (eval $ac_link) 2>&5
10218   ac_status=$?
10219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222   (eval $ac_try) 2>&5
10223   ac_status=$?
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); }; }; then
10226   ac_cv_c_stack_direction=1
10227 else
10228   echo "$as_me: program exited with status $ac_status" >&5
10229 echo "$as_me: failed program was:" >&5
10230 cat conftest.$ac_ext >&5
10231 ( exit $ac_status )
10232 ac_cv_c_stack_direction=-1
10233 fi
10234 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10235 fi
10236 fi
10237 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10238 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10239
10240 cat >>confdefs.h <<_ACEOF
10241 #define STACK_DIRECTION $ac_cv_c_stack_direction
10242 _ACEOF
10243
10244
10245 fi
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291 for ac_func in \
10292         __libc_fork \
10293         _lwp_create \
10294         _pclose \
10295         _popen \
10296         _stricmp \
10297         _strnicmp \
10298         chsize \
10299         clone \
10300         ecvt \
10301         finite \
10302         fpclass \
10303         ftruncate \
10304         ftruncate64 \
10305         getnetbyaddr \
10306         getnetbyname \
10307         getpagesize \
10308         getprotobyname \
10309         getprotobynumber \
10310         getservbyport \
10311         getsockopt \
10312         inet_network \
10313         lseek64 \
10314         lstat \
10315         memmove \
10316         mmap \
10317         pclose \
10318         popen \
10319         pread \
10320         pwrite \
10321         rfork \
10322         select \
10323         sendmsg \
10324         settimeofday \
10325         sigaltstack \
10326         statfs \
10327         strcasecmp \
10328         strerror \
10329         strncasecmp \
10330         tcgetattr \
10331         timegm \
10332         usleep \
10333         vfscanf \
10334         wait4 \
10335         waitpid \
10336
10337 do
10338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10339 echo "$as_me:$LINENO: checking for $ac_func" >&5
10340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10341 if eval "test \"\${$as_ac_var+set}\" = set"; then
10342   echo $ECHO_N "(cached) $ECHO_C" >&6
10343 else
10344   cat >conftest.$ac_ext <<_ACEOF
10345 #line $LINENO "configure"
10346 #include "confdefs.h"
10347 /* System header to define __stub macros and hopefully few prototypes,
10348     which can conflict with char $ac_func (); below.  */
10349 #include <assert.h>
10350 /* Override any gcc2 internal prototype to avoid an error.  */
10351 #ifdef __cplusplus
10352 extern "C"
10353 #endif
10354 /* We use char because int might match the return type of a gcc2
10355    builtin and then its argument prototype would still apply.  */
10356 char $ac_func ();
10357 char (*f) ();
10358
10359 #ifdef F77_DUMMY_MAIN
10360 #  ifdef __cplusplus
10361      extern "C"
10362 #  endif
10363    int F77_DUMMY_MAIN() { return 1; }
10364 #endif
10365 int
10366 main ()
10367 {
10368 /* The GNU C library defines this for functions which it implements
10369     to always fail with ENOSYS.  Some functions are actually named
10370     something starting with __ and the normal name is an alias.  */
10371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10372 choke me
10373 #else
10374 f = $ac_func;
10375 #endif
10376
10377   ;
10378   return 0;
10379 }
10380 _ACEOF
10381 rm -f conftest.$ac_objext conftest$ac_exeext
10382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383   (eval $ac_link) 2>&5
10384   ac_status=$?
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); } &&
10387          { ac_try='test -s conftest$ac_exeext'
10388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389   (eval $ac_try) 2>&5
10390   ac_status=$?
10391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392   (exit $ac_status); }; }; then
10393   eval "$as_ac_var=yes"
10394 else
10395   echo "$as_me: failed program was:" >&5
10396 cat conftest.$ac_ext >&5
10397 eval "$as_ac_var=no"
10398 fi
10399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10400 fi
10401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10403 if test `eval echo '${'$as_ac_var'}'` = yes; then
10404   cat >>confdefs.h <<_ACEOF
10405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10406 _ACEOF
10407
10408 fi
10409 done
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477 for ac_header in \
10478         arpa/inet.h \
10479         arpa/nameser.h \
10480         direct.h \
10481         elf.h \
10482         float.h \
10483         ieeefp.h \
10484         io.h \
10485         libio.h \
10486         libutil.h \
10487         link.h \
10488         linux/cdrom.h \
10489         linux/hdreg.h \
10490         linux/input.h \
10491         linux/joystick.h \
10492         linux/major.h \
10493         linux/param.h \
10494         linux/serial.h \
10495         linux/ucdrom.h \
10496         net/if.h \
10497         netdb.h \
10498         netinet/in.h \
10499         netinet/in_systm.h \
10500         netinet/ip.h \
10501         netinet/tcp.h \
10502         pty.h \
10503         resolv.h \
10504         sched.h \
10505         scsi/sg.h \
10506         socket.h \
10507         stdint.h \
10508         strings.h \
10509         sys/cdio.h \
10510         sys/errno.h \
10511         sys/file.h \
10512         sys/filio.h \
10513         sys/inttypes.h \
10514         sys/ipc.h \
10515         sys/link.h \
10516         sys/lwp.h \
10517         sys/mman.h \
10518         sys/modem.h \
10519         sys/mount.h \
10520         sys/msg.h \
10521         sys/param.h \
10522         sys/ptrace.h \
10523         sys/reg.h \
10524         sys/shm.h \
10525         sys/signal.h \
10526         sys/socket.h \
10527         sys/sockio.h \
10528         sys/statfs.h \
10529         sys/strtio.h \
10530         sys/syscall.h \
10531         sys/sysctl.h \
10532         sys/time.h \
10533         sys/user.h \
10534         sys/v86.h \
10535         sys/v86intr.h \
10536         sys/vfs.h \
10537         sys/vm86.h \
10538         sys/wait.h \
10539         syscall.h \
10540         ucontext.h \
10541         unistd.h \
10542
10543 do
10544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10546   echo "$as_me:$LINENO: checking for $ac_header" >&5
10547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10549   echo $ECHO_N "(cached) $ECHO_C" >&6
10550 fi
10551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10553 else
10554   # Is the header compilable?
10555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10557 cat >conftest.$ac_ext <<_ACEOF
10558 #line $LINENO "configure"
10559 #include "confdefs.h"
10560 $ac_includes_default
10561 #include <$ac_header>
10562 _ACEOF
10563 rm -f conftest.$ac_objext
10564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10565   (eval $ac_compile) 2>&5
10566   ac_status=$?
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); } &&
10569          { ac_try='test -s conftest.$ac_objext'
10570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571   (eval $ac_try) 2>&5
10572   ac_status=$?
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); }; }; then
10575   ac_header_compiler=yes
10576 else
10577   echo "$as_me: failed program was:" >&5
10578 cat conftest.$ac_ext >&5
10579 ac_header_compiler=no
10580 fi
10581 rm -f conftest.$ac_objext conftest.$ac_ext
10582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10583 echo "${ECHO_T}$ac_header_compiler" >&6
10584
10585 # Is the header present?
10586 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10588 cat >conftest.$ac_ext <<_ACEOF
10589 #line $LINENO "configure"
10590 #include "confdefs.h"
10591 #include <$ac_header>
10592 _ACEOF
10593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10594   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10595   ac_status=$?
10596   egrep -v '^ *\+' conftest.er1 >conftest.err
10597   rm -f conftest.er1
10598   cat conftest.err >&5
10599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600   (exit $ac_status); } >/dev/null; then
10601   if test -s conftest.err; then
10602     ac_cpp_err=$ac_c_preproc_warn_flag
10603   else
10604     ac_cpp_err=
10605   fi
10606 else
10607   ac_cpp_err=yes
10608 fi
10609 if test -z "$ac_cpp_err"; then
10610   ac_header_preproc=yes
10611 else
10612   echo "$as_me: failed program was:" >&5
10613   cat conftest.$ac_ext >&5
10614   ac_header_preproc=no
10615 fi
10616 rm -f conftest.err conftest.$ac_ext
10617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10618 echo "${ECHO_T}$ac_header_preproc" >&6
10619
10620 # So?  What about this header?
10621 case $ac_header_compiler:$ac_header_preproc in
10622   yes:no )
10623     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10625     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10627   no:yes )
10628     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10630     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10631 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10634 esac
10635 echo "$as_me:$LINENO: checking for $ac_header" >&5
10636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10638   echo $ECHO_N "(cached) $ECHO_C" >&6
10639 else
10640   eval "$as_ac_Header=$ac_header_preproc"
10641 fi
10642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10644
10645 fi
10646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10647   cat >>confdefs.h <<_ACEOF
10648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10649 _ACEOF
10650
10651 fi
10652
10653 done
10654
10655 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10656 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10657 if test "${ac_cv_header_stat_broken+set}" = set; then
10658   echo $ECHO_N "(cached) $ECHO_C" >&6
10659 else
10660   cat >conftest.$ac_ext <<_ACEOF
10661 #line $LINENO "configure"
10662 #include "confdefs.h"
10663 #include <sys/types.h>
10664 #include <sys/stat.h>
10665
10666 #if defined(S_ISBLK) && defined(S_IFDIR)
10667 # if S_ISBLK (S_IFDIR)
10668 You lose.
10669 # endif
10670 #endif
10671
10672 #if defined(S_ISBLK) && defined(S_IFCHR)
10673 # if S_ISBLK (S_IFCHR)
10674 You lose.
10675 # endif
10676 #endif
10677
10678 #if defined(S_ISLNK) && defined(S_IFREG)
10679 # if S_ISLNK (S_IFREG)
10680 You lose.
10681 # endif
10682 #endif
10683
10684 #if defined(S_ISSOCK) && defined(S_IFREG)
10685 # if S_ISSOCK (S_IFREG)
10686 You lose.
10687 # endif
10688 #endif
10689
10690 _ACEOF
10691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10692   egrep "You lose" >/dev/null 2>&1; then
10693   ac_cv_header_stat_broken=yes
10694 else
10695   ac_cv_header_stat_broken=no
10696 fi
10697 rm -f conftest*
10698
10699 fi
10700 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10701 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10702 if test $ac_cv_header_stat_broken = yes; then
10703
10704 cat >>confdefs.h <<\_ACEOF
10705 #define STAT_MACROS_BROKEN 1
10706 _ACEOF
10707
10708 fi
10709
10710
10711
10712 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10713 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10714 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10715   echo $ECHO_N "(cached) $ECHO_C" >&6
10716 else
10717   ac_cv_prog_cc_stdc=no
10718 ac_save_CC=$CC
10719 cat >conftest.$ac_ext <<_ACEOF
10720 #line $LINENO "configure"
10721 #include "confdefs.h"
10722 #include <stdarg.h>
10723 #include <stdio.h>
10724 #include <sys/types.h>
10725 #include <sys/stat.h>
10726 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10727 struct buf { int x; };
10728 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10729 static char *e (p, i)
10730      char **p;
10731      int i;
10732 {
10733   return p[i];
10734 }
10735 static char *f (char * (*g) (char **, int), char **p, ...)
10736 {
10737   char *s;
10738   va_list v;
10739   va_start (v,p);
10740   s = g (p, va_arg (v,int));
10741   va_end (v);
10742   return s;
10743 }
10744 int test (int i, double x);
10745 struct s1 {int (*f) (int a);};
10746 struct s2 {int (*f) (double a);};
10747 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10748 int argc;
10749 char **argv;
10750 #ifdef F77_DUMMY_MAIN
10751 #  ifdef __cplusplus
10752      extern "C"
10753 #  endif
10754    int F77_DUMMY_MAIN() { return 1; }
10755 #endif
10756 int
10757 main ()
10758 {
10759 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10760   ;
10761   return 0;
10762 }
10763 _ACEOF
10764 # Don't try gcc -ansi; that turns off useful extensions and
10765 # breaks some systems' header files.
10766 # AIX                   -qlanglvl=ansi
10767 # Ultrix and OSF/1      -std1
10768 # HP-UX 10.20 and later -Ae
10769 # HP-UX older versions  -Aa -D_HPUX_SOURCE
10770 # SVR4                  -Xc -D__EXTENSIONS__
10771 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10772 do
10773   CC="$ac_save_CC $ac_arg"
10774   rm -f conftest.$ac_objext
10775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10776   (eval $ac_compile) 2>&5
10777   ac_status=$?
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); } &&
10780          { ac_try='test -s conftest.$ac_objext'
10781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782   (eval $ac_try) 2>&5
10783   ac_status=$?
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); }; }; then
10786   ac_cv_prog_cc_stdc=$ac_arg
10787 break
10788 else
10789   echo "$as_me: failed program was:" >&5
10790 cat conftest.$ac_ext >&5
10791 fi
10792 rm -f conftest.$ac_objext
10793 done
10794 rm -f conftest.$ac_ext conftest.$ac_objext
10795 CC=$ac_save_CC
10796
10797 fi
10798
10799 case "x$ac_cv_prog_cc_stdc" in
10800   x|xno)
10801     echo "$as_me:$LINENO: result: none needed" >&5
10802 echo "${ECHO_T}none needed" >&6 ;;
10803   *)
10804     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10805 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10806     CC="$CC $ac_cv_prog_cc_stdc" ;;
10807 esac
10808
10809 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10810 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10811 if test "${ac_cv_c_const+set}" = set; then
10812   echo $ECHO_N "(cached) $ECHO_C" >&6
10813 else
10814   cat >conftest.$ac_ext <<_ACEOF
10815 #line $LINENO "configure"
10816 #include "confdefs.h"
10817
10818 #ifdef F77_DUMMY_MAIN
10819 #  ifdef __cplusplus
10820      extern "C"
10821 #  endif
10822    int F77_DUMMY_MAIN() { return 1; }
10823 #endif
10824 int
10825 main ()
10826 {
10827 /* FIXME: Include the comments suggested by Paul. */
10828 #ifndef __cplusplus
10829   /* Ultrix mips cc rejects this.  */
10830   typedef int charset[2];
10831   const charset x;
10832   /* SunOS 4.1.1 cc rejects this.  */
10833   char const *const *ccp;
10834   char **p;
10835   /* NEC SVR4.0.2 mips cc rejects this.  */
10836   struct point {int x, y;};
10837   static struct point const zero = {0,0};
10838   /* AIX XL C 1.02.0.0 rejects this.
10839      It does not let you subtract one const X* pointer from another in
10840      an arm of an if-expression whose if-part is not a constant
10841      expression */
10842   const char *g = "string";
10843   ccp = &g + (g ? g-g : 0);
10844   /* HPUX 7.0 cc rejects these. */
10845   ++ccp;
10846   p = (char**) ccp;
10847   ccp = (char const *const *) p;
10848   { /* SCO 3.2v4 cc rejects this.  */
10849     char *t;
10850     char const *s = 0 ? (char *) 0 : (char const *) 0;
10851
10852     *t++ = 0;
10853   }
10854   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10855     int x[] = {25, 17};
10856     const int *foo = &x[0];
10857     ++foo;
10858   }
10859   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10860     typedef const int *iptr;
10861     iptr p = 0;
10862     ++p;
10863   }
10864   { /* AIX XL C 1.02.0.0 rejects this saying
10865        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10866     struct s { int j; const int *ap[3]; };
10867     struct s *b; b->j = 5;
10868   }
10869   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10870     const int foo = 10;
10871   }
10872 #endif
10873
10874   ;
10875   return 0;
10876 }
10877 _ACEOF
10878 rm -f conftest.$ac_objext
10879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10880   (eval $ac_compile) 2>&5
10881   ac_status=$?
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); } &&
10884          { ac_try='test -s conftest.$ac_objext'
10885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886   (eval $ac_try) 2>&5
10887   ac_status=$?
10888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889   (exit $ac_status); }; }; then
10890   ac_cv_c_const=yes
10891 else
10892   echo "$as_me: failed program was:" >&5
10893 cat conftest.$ac_ext >&5
10894 ac_cv_c_const=no
10895 fi
10896 rm -f conftest.$ac_objext conftest.$ac_ext
10897 fi
10898 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10899 echo "${ECHO_T}$ac_cv_c_const" >&6
10900 if test $ac_cv_c_const = no; then
10901
10902 cat >>confdefs.h <<\_ACEOF
10903 #define const
10904 _ACEOF
10905
10906 fi
10907
10908 echo "$as_me:$LINENO: checking for inline" >&5
10909 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10910 if test "${ac_cv_c_inline+set}" = set; then
10911   echo $ECHO_N "(cached) $ECHO_C" >&6
10912 else
10913   ac_cv_c_inline=no
10914 for ac_kw in inline __inline__ __inline; do
10915   cat >conftest.$ac_ext <<_ACEOF
10916 #line $LINENO "configure"
10917 #include "confdefs.h"
10918 #ifndef __cplusplus
10919 static $ac_kw int static_foo () {return 0; }
10920 $ac_kw int foo () {return 0; }
10921 #endif
10922
10923 _ACEOF
10924 rm -f conftest.$ac_objext
10925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10926   (eval $ac_compile) 2>&5
10927   ac_status=$?
10928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929   (exit $ac_status); } &&
10930          { ac_try='test -s conftest.$ac_objext'
10931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932   (eval $ac_try) 2>&5
10933   ac_status=$?
10934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935   (exit $ac_status); }; }; then
10936   ac_cv_c_inline=$ac_kw; break
10937 else
10938   echo "$as_me: failed program was:" >&5
10939 cat conftest.$ac_ext >&5
10940 fi
10941 rm -f conftest.$ac_objext conftest.$ac_ext
10942 done
10943
10944 fi
10945 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10946 echo "${ECHO_T}$ac_cv_c_inline" >&6
10947 case $ac_cv_c_inline in
10948   inline | yes) ;;
10949   no)
10950 cat >>confdefs.h <<\_ACEOF
10951 #define inline
10952 _ACEOF
10953  ;;
10954   *)  cat >>confdefs.h <<_ACEOF
10955 #define inline $ac_cv_c_inline
10956 _ACEOF
10957  ;;
10958 esac
10959
10960 echo "$as_me:$LINENO: checking for mode_t" >&5
10961 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10962 if test "${ac_cv_type_mode_t+set}" = set; then
10963   echo $ECHO_N "(cached) $ECHO_C" >&6
10964 else
10965   cat >conftest.$ac_ext <<_ACEOF
10966 #line $LINENO "configure"
10967 #include "confdefs.h"
10968 $ac_includes_default
10969 #ifdef F77_DUMMY_MAIN
10970 #  ifdef __cplusplus
10971      extern "C"
10972 #  endif
10973    int F77_DUMMY_MAIN() { return 1; }
10974 #endif
10975 int
10976 main ()
10977 {
10978 if ((mode_t *) 0)
10979   return 0;
10980 if (sizeof (mode_t))
10981   return 0;
10982   ;
10983   return 0;
10984 }
10985 _ACEOF
10986 rm -f conftest.$ac_objext
10987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10988   (eval $ac_compile) 2>&5
10989   ac_status=$?
10990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991   (exit $ac_status); } &&
10992          { ac_try='test -s conftest.$ac_objext'
10993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994   (eval $ac_try) 2>&5
10995   ac_status=$?
10996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997   (exit $ac_status); }; }; then
10998   ac_cv_type_mode_t=yes
10999 else
11000   echo "$as_me: failed program was:" >&5
11001 cat conftest.$ac_ext >&5
11002 ac_cv_type_mode_t=no
11003 fi
11004 rm -f conftest.$ac_objext conftest.$ac_ext
11005 fi
11006 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11007 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11008 if test $ac_cv_type_mode_t = yes; then
11009
11010 cat >>confdefs.h <<_ACEOF
11011 #define HAVE_MODE_T 1
11012 _ACEOF
11013
11014
11015 fi
11016 echo "$as_me:$LINENO: checking for off_t" >&5
11017 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11018 if test "${ac_cv_type_off_t+set}" = set; then
11019   echo $ECHO_N "(cached) $ECHO_C" >&6
11020 else
11021   cat >conftest.$ac_ext <<_ACEOF
11022 #line $LINENO "configure"
11023 #include "confdefs.h"
11024 $ac_includes_default
11025 #ifdef F77_DUMMY_MAIN
11026 #  ifdef __cplusplus
11027      extern "C"
11028 #  endif
11029    int F77_DUMMY_MAIN() { return 1; }
11030 #endif
11031 int
11032 main ()
11033 {
11034 if ((off_t *) 0)
11035   return 0;
11036 if (sizeof (off_t))
11037   return 0;
11038   ;
11039   return 0;
11040 }
11041 _ACEOF
11042 rm -f conftest.$ac_objext
11043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044   (eval $ac_compile) 2>&5
11045   ac_status=$?
11046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047   (exit $ac_status); } &&
11048          { ac_try='test -s conftest.$ac_objext'
11049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050   (eval $ac_try) 2>&5
11051   ac_status=$?
11052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053   (exit $ac_status); }; }; then
11054   ac_cv_type_off_t=yes
11055 else
11056   echo "$as_me: failed program was:" >&5
11057 cat conftest.$ac_ext >&5
11058 ac_cv_type_off_t=no
11059 fi
11060 rm -f conftest.$ac_objext conftest.$ac_ext
11061 fi
11062 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11063 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11064 if test $ac_cv_type_off_t = yes; then
11065
11066 cat >>confdefs.h <<_ACEOF
11067 #define HAVE_OFF_T 1
11068 _ACEOF
11069
11070
11071 fi
11072 echo "$as_me:$LINENO: checking for pid_t" >&5
11073 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11074 if test "${ac_cv_type_pid_t+set}" = set; then
11075   echo $ECHO_N "(cached) $ECHO_C" >&6
11076 else
11077   cat >conftest.$ac_ext <<_ACEOF
11078 #line $LINENO "configure"
11079 #include "confdefs.h"
11080 $ac_includes_default
11081 #ifdef F77_DUMMY_MAIN
11082 #  ifdef __cplusplus
11083      extern "C"
11084 #  endif
11085    int F77_DUMMY_MAIN() { return 1; }
11086 #endif
11087 int
11088 main ()
11089 {
11090 if ((pid_t *) 0)
11091   return 0;
11092 if (sizeof (pid_t))
11093   return 0;
11094   ;
11095   return 0;
11096 }
11097 _ACEOF
11098 rm -f conftest.$ac_objext
11099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11100   (eval $ac_compile) 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); } &&
11104          { ac_try='test -s conftest.$ac_objext'
11105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106   (eval $ac_try) 2>&5
11107   ac_status=$?
11108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109   (exit $ac_status); }; }; then
11110   ac_cv_type_pid_t=yes
11111 else
11112   echo "$as_me: failed program was:" >&5
11113 cat conftest.$ac_ext >&5
11114 ac_cv_type_pid_t=no
11115 fi
11116 rm -f conftest.$ac_objext conftest.$ac_ext
11117 fi
11118 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11119 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11120 if test $ac_cv_type_pid_t = yes; then
11121
11122 cat >>confdefs.h <<_ACEOF
11123 #define HAVE_PID_T 1
11124 _ACEOF
11125
11126
11127 fi
11128 echo "$as_me:$LINENO: checking for size_t" >&5
11129 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11130 if test "${ac_cv_type_size_t+set}" = set; then
11131   echo $ECHO_N "(cached) $ECHO_C" >&6
11132 else
11133   cat >conftest.$ac_ext <<_ACEOF
11134 #line $LINENO "configure"
11135 #include "confdefs.h"
11136 $ac_includes_default
11137 #ifdef F77_DUMMY_MAIN
11138 #  ifdef __cplusplus
11139      extern "C"
11140 #  endif
11141    int F77_DUMMY_MAIN() { return 1; }
11142 #endif
11143 int
11144 main ()
11145 {
11146 if ((size_t *) 0)
11147   return 0;
11148 if (sizeof (size_t))
11149   return 0;
11150   ;
11151   return 0;
11152 }
11153 _ACEOF
11154 rm -f conftest.$ac_objext
11155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11156   (eval $ac_compile) 2>&5
11157   ac_status=$?
11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); } &&
11160          { ac_try='test -s conftest.$ac_objext'
11161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11162   (eval $ac_try) 2>&5
11163   ac_status=$?
11164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165   (exit $ac_status); }; }; then
11166   ac_cv_type_size_t=yes
11167 else
11168   echo "$as_me: failed program was:" >&5
11169 cat conftest.$ac_ext >&5
11170 ac_cv_type_size_t=no
11171 fi
11172 rm -f conftest.$ac_objext conftest.$ac_ext
11173 fi
11174 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11175 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11176 if test $ac_cv_type_size_t = yes; then
11177
11178 cat >>confdefs.h <<_ACEOF
11179 #define HAVE_SIZE_T 1
11180 _ACEOF
11181
11182
11183 fi
11184 echo "$as_me:$LINENO: checking for ssize_t" >&5
11185 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11186 if test "${ac_cv_type_ssize_t+set}" = set; then
11187   echo $ECHO_N "(cached) $ECHO_C" >&6
11188 else
11189   cat >conftest.$ac_ext <<_ACEOF
11190 #line $LINENO "configure"
11191 #include "confdefs.h"
11192 $ac_includes_default
11193 #ifdef F77_DUMMY_MAIN
11194 #  ifdef __cplusplus
11195      extern "C"
11196 #  endif
11197    int F77_DUMMY_MAIN() { return 1; }
11198 #endif
11199 int
11200 main ()
11201 {
11202 if ((ssize_t *) 0)
11203   return 0;
11204 if (sizeof (ssize_t))
11205   return 0;
11206   ;
11207   return 0;
11208 }
11209 _ACEOF
11210 rm -f conftest.$ac_objext
11211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11212   (eval $ac_compile) 2>&5
11213   ac_status=$?
11214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215   (exit $ac_status); } &&
11216          { ac_try='test -s conftest.$ac_objext'
11217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218   (eval $ac_try) 2>&5
11219   ac_status=$?
11220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221   (exit $ac_status); }; }; then
11222   ac_cv_type_ssize_t=yes
11223 else
11224   echo "$as_me: failed program was:" >&5
11225 cat conftest.$ac_ext >&5
11226 ac_cv_type_ssize_t=no
11227 fi
11228 rm -f conftest.$ac_objext conftest.$ac_ext
11229 fi
11230 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11231 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11232 if test $ac_cv_type_ssize_t = yes; then
11233
11234 cat >>confdefs.h <<_ACEOF
11235 #define HAVE_SSIZE_T 1
11236 _ACEOF
11237
11238
11239 fi
11240
11241 echo "$as_me:$LINENO: checking for long long" >&5
11242 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11243 if test "${ac_cv_type_long_long+set}" = set; then
11244   echo $ECHO_N "(cached) $ECHO_C" >&6
11245 else
11246   cat >conftest.$ac_ext <<_ACEOF
11247 #line $LINENO "configure"
11248 #include "confdefs.h"
11249 $ac_includes_default
11250 #ifdef F77_DUMMY_MAIN
11251 #  ifdef __cplusplus
11252      extern "C"
11253 #  endif
11254    int F77_DUMMY_MAIN() { return 1; }
11255 #endif
11256 int
11257 main ()
11258 {
11259 if ((long long *) 0)
11260   return 0;
11261 if (sizeof (long long))
11262   return 0;
11263   ;
11264   return 0;
11265 }
11266 _ACEOF
11267 rm -f conftest.$ac_objext
11268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11269   (eval $ac_compile) 2>&5
11270   ac_status=$?
11271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272   (exit $ac_status); } &&
11273          { ac_try='test -s conftest.$ac_objext'
11274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275   (eval $ac_try) 2>&5
11276   ac_status=$?
11277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278   (exit $ac_status); }; }; then
11279   ac_cv_type_long_long=yes
11280 else
11281   echo "$as_me: failed program was:" >&5
11282 cat conftest.$ac_ext >&5
11283 ac_cv_type_long_long=no
11284 fi
11285 rm -f conftest.$ac_objext conftest.$ac_ext
11286 fi
11287 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11288 echo "${ECHO_T}$ac_cv_type_long_long" >&6
11289
11290 echo "$as_me:$LINENO: checking size of long long" >&5
11291 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11292 if test "${ac_cv_sizeof_long_long+set}" = set; then
11293   echo $ECHO_N "(cached) $ECHO_C" >&6
11294 else
11295   if test "$ac_cv_type_long_long" = yes; then
11296   # The cast to unsigned long works around a bug in the HP C Compiler
11297   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11298   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11299   # This bug is HP SR number 8606223364.
11300   if test "$cross_compiling" = yes; then
11301   # Depending upon the size, compute the lo and hi bounds.
11302 cat >conftest.$ac_ext <<_ACEOF
11303 #line $LINENO "configure"
11304 #include "confdefs.h"
11305 $ac_includes_default
11306 #ifdef F77_DUMMY_MAIN
11307 #  ifdef __cplusplus
11308      extern "C"
11309 #  endif
11310    int F77_DUMMY_MAIN() { return 1; }
11311 #endif
11312 int
11313 main ()
11314 {
11315 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11316 test_array [0] = 0
11317
11318   ;
11319   return 0;
11320 }
11321 _ACEOF
11322 rm -f conftest.$ac_objext
11323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11324   (eval $ac_compile) 2>&5
11325   ac_status=$?
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); } &&
11328          { ac_try='test -s conftest.$ac_objext'
11329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330   (eval $ac_try) 2>&5
11331   ac_status=$?
11332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333   (exit $ac_status); }; }; then
11334   ac_lo=0 ac_mid=0
11335   while :; do
11336     cat >conftest.$ac_ext <<_ACEOF
11337 #line $LINENO "configure"
11338 #include "confdefs.h"
11339 $ac_includes_default
11340 #ifdef F77_DUMMY_MAIN
11341 #  ifdef __cplusplus
11342      extern "C"
11343 #  endif
11344    int F77_DUMMY_MAIN() { return 1; }
11345 #endif
11346 int
11347 main ()
11348 {
11349 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11350 test_array [0] = 0
11351
11352   ;
11353   return 0;
11354 }
11355 _ACEOF
11356 rm -f conftest.$ac_objext
11357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11358   (eval $ac_compile) 2>&5
11359   ac_status=$?
11360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361   (exit $ac_status); } &&
11362          { ac_try='test -s conftest.$ac_objext'
11363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364   (eval $ac_try) 2>&5
11365   ac_status=$?
11366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367   (exit $ac_status); }; }; then
11368   ac_hi=$ac_mid; break
11369 else
11370   echo "$as_me: failed program was:" >&5
11371 cat conftest.$ac_ext >&5
11372 ac_lo=`expr $ac_mid + 1`
11373                     if test $ac_lo -le $ac_mid; then
11374                       ac_lo= ac_hi=
11375                       break
11376                     fi
11377                     ac_mid=`expr 2 '*' $ac_mid + 1`
11378 fi
11379 rm -f conftest.$ac_objext conftest.$ac_ext
11380   done
11381 else
11382   echo "$as_me: failed program was:" >&5
11383 cat conftest.$ac_ext >&5
11384 cat >conftest.$ac_ext <<_ACEOF
11385 #line $LINENO "configure"
11386 #include "confdefs.h"
11387 $ac_includes_default
11388 #ifdef F77_DUMMY_MAIN
11389 #  ifdef __cplusplus
11390      extern "C"
11391 #  endif
11392    int F77_DUMMY_MAIN() { return 1; }
11393 #endif
11394 int
11395 main ()
11396 {
11397 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11398 test_array [0] = 0
11399
11400   ;
11401   return 0;
11402 }
11403 _ACEOF
11404 rm -f conftest.$ac_objext
11405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11406   (eval $ac_compile) 2>&5
11407   ac_status=$?
11408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409   (exit $ac_status); } &&
11410          { ac_try='test -s conftest.$ac_objext'
11411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412   (eval $ac_try) 2>&5
11413   ac_status=$?
11414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415   (exit $ac_status); }; }; then
11416   ac_hi=-1 ac_mid=-1
11417   while :; do
11418     cat >conftest.$ac_ext <<_ACEOF
11419 #line $LINENO "configure"
11420 #include "confdefs.h"
11421 $ac_includes_default
11422 #ifdef F77_DUMMY_MAIN
11423 #  ifdef __cplusplus
11424      extern "C"
11425 #  endif
11426    int F77_DUMMY_MAIN() { return 1; }
11427 #endif
11428 int
11429 main ()
11430 {
11431 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11432 test_array [0] = 0
11433
11434   ;
11435   return 0;
11436 }
11437 _ACEOF
11438 rm -f conftest.$ac_objext
11439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11440   (eval $ac_compile) 2>&5
11441   ac_status=$?
11442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443   (exit $ac_status); } &&
11444          { ac_try='test -s conftest.$ac_objext'
11445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446   (eval $ac_try) 2>&5
11447   ac_status=$?
11448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449   (exit $ac_status); }; }; then
11450   ac_lo=$ac_mid; break
11451 else
11452   echo "$as_me: failed program was:" >&5
11453 cat conftest.$ac_ext >&5
11454 ac_hi=`expr '(' $ac_mid ')' - 1`
11455                        if test $ac_mid -le $ac_hi; then
11456                          ac_lo= ac_hi=
11457                          break
11458                        fi
11459                        ac_mid=`expr 2 '*' $ac_mid`
11460 fi
11461 rm -f conftest.$ac_objext conftest.$ac_ext
11462   done
11463 else
11464   echo "$as_me: failed program was:" >&5
11465 cat conftest.$ac_ext >&5
11466 ac_lo= ac_hi=
11467 fi
11468 rm -f conftest.$ac_objext conftest.$ac_ext
11469 fi
11470 rm -f conftest.$ac_objext conftest.$ac_ext
11471 # Binary search between lo and hi bounds.
11472 while test "x$ac_lo" != "x$ac_hi"; do
11473   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11474   cat >conftest.$ac_ext <<_ACEOF
11475 #line $LINENO "configure"
11476 #include "confdefs.h"
11477 $ac_includes_default
11478 #ifdef F77_DUMMY_MAIN
11479 #  ifdef __cplusplus
11480      extern "C"
11481 #  endif
11482    int F77_DUMMY_MAIN() { return 1; }
11483 #endif
11484 int
11485 main ()
11486 {
11487 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11488 test_array [0] = 0
11489
11490   ;
11491   return 0;
11492 }
11493 _ACEOF
11494 rm -f conftest.$ac_objext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11496   (eval $ac_compile) 2>&5
11497   ac_status=$?
11498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499   (exit $ac_status); } &&
11500          { ac_try='test -s conftest.$ac_objext'
11501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502   (eval $ac_try) 2>&5
11503   ac_status=$?
11504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505   (exit $ac_status); }; }; then
11506   ac_hi=$ac_mid
11507 else
11508   echo "$as_me: failed program was:" >&5
11509 cat conftest.$ac_ext >&5
11510 ac_lo=`expr '(' $ac_mid ')' + 1`
11511 fi
11512 rm -f conftest.$ac_objext conftest.$ac_ext
11513 done
11514 case $ac_lo in
11515 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11516 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
11517 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
11518    { (exit 1); exit 1; }; } ;;
11519 esac
11520 else
11521   if test "$cross_compiling" = yes; then
11522   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11523 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11524    { (exit 1); exit 1; }; }
11525 else
11526   cat >conftest.$ac_ext <<_ACEOF
11527 #line $LINENO "configure"
11528 #include "confdefs.h"
11529 $ac_includes_default
11530 long longval () { return (long) (sizeof (long long)); }
11531 unsigned long ulongval () { return (long) (sizeof (long long)); }
11532 #include <stdio.h>
11533 #include <stdlib.h>
11534 #ifdef F77_DUMMY_MAIN
11535 #  ifdef __cplusplus
11536      extern "C"
11537 #  endif
11538    int F77_DUMMY_MAIN() { return 1; }
11539 #endif
11540 int
11541 main ()
11542 {
11543
11544   FILE *f = fopen ("conftest.val", "w");
11545   if (! f)
11546     exit (1);
11547   if (((long) (sizeof (long long))) < 0)
11548     {
11549       long i = longval ();
11550       if (i != ((long) (sizeof (long long))))
11551         exit (1);
11552       fprintf (f, "%ld\n", i);
11553     }
11554   else
11555     {
11556       unsigned long i = ulongval ();
11557       if (i != ((long) (sizeof (long long))))
11558         exit (1);
11559       fprintf (f, "%lu\n", i);
11560     }
11561   exit (ferror (f) || fclose (f) != 0);
11562
11563   ;
11564   return 0;
11565 }
11566 _ACEOF
11567 rm -f conftest$ac_exeext
11568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11569   (eval $ac_link) 2>&5
11570   ac_status=$?
11571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11574   (eval $ac_try) 2>&5
11575   ac_status=$?
11576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577   (exit $ac_status); }; }; then
11578   ac_cv_sizeof_long_long=`cat conftest.val`
11579 else
11580   echo "$as_me: program exited with status $ac_status" >&5
11581 echo "$as_me: failed program was:" >&5
11582 cat conftest.$ac_ext >&5
11583 ( exit $ac_status )
11584 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
11585 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
11586    { (exit 1); exit 1; }; }
11587 fi
11588 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11589 fi
11590 fi
11591 rm -f conftest.val
11592 else
11593   ac_cv_sizeof_long_long=0
11594 fi
11595 fi
11596 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11597 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11598 cat >>confdefs.h <<_ACEOF
11599 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11600 _ACEOF
11601
11602
11603
11604 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
11605 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
11606 if test "${wine_cv_linux_input_h+set}" = set; then
11607   echo $ECHO_N "(cached) $ECHO_C" >&6
11608 else
11609   cat >conftest.$ac_ext <<_ACEOF
11610 #line $LINENO "configure"
11611 #include "confdefs.h"
11612
11613             #include <linux/input.h>
11614
11615 #ifdef F77_DUMMY_MAIN
11616 #  ifdef __cplusplus
11617      extern "C"
11618 #  endif
11619    int F77_DUMMY_MAIN() { return 1; }
11620 #endif
11621 int
11622 main ()
11623 {
11624
11625             int foo = EVIOCGBIT(EV_ABS,42);
11626             int bar = BTN_PINKIE;
11627             int fortytwo = 42;
11628
11629   ;
11630   return 0;
11631 }
11632 _ACEOF
11633 rm -f conftest.$ac_objext
11634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11635   (eval $ac_compile) 2>&5
11636   ac_status=$?
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); } &&
11639          { ac_try='test -s conftest.$ac_objext'
11640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641   (eval $ac_try) 2>&5
11642   ac_status=$?
11643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644   (exit $ac_status); }; }; then
11645   wine_cv_linux_input_h=yes
11646 else
11647   echo "$as_me: failed program was:" >&5
11648 cat conftest.$ac_ext >&5
11649 wine_cv_linux_input_h=no
11650 fi
11651 rm -f conftest.$ac_objext conftest.$ac_ext
11652
11653 fi
11654 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
11655 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
11656     if test "$wine_cv_linux_input_h" = "yes"
11657     then
11658
11659 cat >>confdefs.h <<\_ACEOF
11660 #define HAVE_CORRECT_LINUXINPUT_H 1
11661 _ACEOF
11662
11663     fi
11664
11665
11666 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
11667 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
11668 if test "${wine_cv_linux_gethostbyname_r_6+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
11675 #include <netdb.h>
11676
11677 #ifdef F77_DUMMY_MAIN
11678 #  ifdef __cplusplus
11679      extern "C"
11680 #  endif
11681    int F77_DUMMY_MAIN() { return 1; }
11682 #endif
11683 int
11684 main ()
11685 {
11686
11687     char *name=NULL;
11688     struct hostent he;
11689     struct hostent *result;
11690     char *buf=NULL;
11691     int bufsize=0;
11692     int res,errnr;
11693     char *addr=NULL;
11694     int addrlen=0;
11695     int addrtype=0;
11696     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
11697     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
11698
11699   ;
11700   return 0;
11701 }
11702 _ACEOF
11703 rm -f conftest.$ac_objext
11704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11705   (eval $ac_compile) 2>&5
11706   ac_status=$?
11707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); } &&
11709          { ac_try='test -s conftest.$ac_objext'
11710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711   (eval $ac_try) 2>&5
11712   ac_status=$?
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); }; }; then
11715   wine_cv_linux_gethostbyname_r_6=yes
11716 else
11717   echo "$as_me: failed program was:" >&5
11718 cat conftest.$ac_ext >&5
11719 wine_cv_linux_gethostbyname_r_6=no
11720
11721 fi
11722 rm -f conftest.$ac_objext conftest.$ac_ext
11723
11724 fi
11725 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
11726 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
11727    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
11728    then
11729
11730 cat >>confdefs.h <<\_ACEOF
11731 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
11732 _ACEOF
11733
11734    fi
11735
11736 if test "$ac_cv_header_linux_joystick_h" = "yes"
11737 then
11738    echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
11739 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
11740 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
11741   echo $ECHO_N "(cached) $ECHO_C" >&6
11742 else
11743   cat >conftest.$ac_ext <<_ACEOF
11744 #line $LINENO "configure"
11745 #include "confdefs.h"
11746
11747         #include <sys/ioctl.h>
11748         #include <linux/joystick.h>
11749
11750         struct js_event blub;
11751         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
11752         #error "no 2.2 header"
11753         #endif
11754
11755 #ifdef F77_DUMMY_MAIN
11756 #  ifdef __cplusplus
11757      extern "C"
11758 #  endif
11759    int F77_DUMMY_MAIN() { return 1; }
11760 #endif
11761 int
11762 main ()
11763 {
11764 /*empty*/
11765   ;
11766   return 0;
11767 }
11768 _ACEOF
11769 rm -f conftest.$ac_objext
11770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11771   (eval $ac_compile) 2>&5
11772   ac_status=$?
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); } &&
11775          { ac_try='test -s conftest.$ac_objext'
11776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777   (eval $ac_try) 2>&5
11778   ac_status=$?
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); }; }; then
11781   wine_cv_linux_joystick_22_api=yes
11782 else
11783   echo "$as_me: failed program was:" >&5
11784 cat conftest.$ac_ext >&5
11785 wine_cv_linux_joystick_22_api=no
11786 fi
11787 rm -f conftest.$ac_objext conftest.$ac_ext
11788
11789 fi
11790 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
11791 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
11792    if test "$wine_cv_linux_joystick_22_api" = "yes"
11793    then
11794
11795 cat >>confdefs.h <<\_ACEOF
11796 #define HAVE_LINUX_22_JOYSTICK_API 1
11797 _ACEOF
11798
11799    fi
11800 fi
11801
11802
11803 if test "$ac_cv_header_sys_vfs_h" = "yes"
11804 then
11805     echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
11806 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
11807 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
11808   echo $ECHO_N "(cached) $ECHO_C" >&6
11809 else
11810   cat >conftest.$ac_ext <<_ACEOF
11811 #line $LINENO "configure"
11812 #include "confdefs.h"
11813
11814         #include <sys/types.h>
11815         #ifdef HAVE_SYS_PARAM_H
11816         # include <sys/param.h>
11817         #endif
11818         #include <sys/vfs.h>
11819
11820 #ifdef F77_DUMMY_MAIN
11821 #  ifdef __cplusplus
11822      extern "C"
11823 #  endif
11824    int F77_DUMMY_MAIN() { return 1; }
11825 #endif
11826 int
11827 main ()
11828 {
11829
11830                 struct statfs stfs;
11831
11832                 memset(&stfs,0,sizeof(stfs));
11833
11834   ;
11835   return 0;
11836 }
11837 _ACEOF
11838 rm -f conftest.$ac_objext
11839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11840   (eval $ac_compile) 2>&5
11841   ac_status=$?
11842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843   (exit $ac_status); } &&
11844          { ac_try='test -s conftest.$ac_objext'
11845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11846   (eval $ac_try) 2>&5
11847   ac_status=$?
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); }; }; then
11850   wine_cv_sys_vfs_has_statfs=yes
11851 else
11852   echo "$as_me: failed program was:" >&5
11853 cat conftest.$ac_ext >&5
11854 wine_cv_sys_vfs_has_statfs=no
11855
11856 fi
11857 rm -f conftest.$ac_objext conftest.$ac_ext
11858
11859 fi
11860 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
11861 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
11862     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
11863     then
11864
11865 cat >>confdefs.h <<\_ACEOF
11866 #define STATFS_DEFINED_BY_SYS_VFS 1
11867 _ACEOF
11868
11869     fi
11870 fi
11871
11872 if test "$ac_cv_header_sys_statfs_h" = "yes"
11873 then
11874     echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
11875 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
11876 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
11877   echo $ECHO_N "(cached) $ECHO_C" >&6
11878 else
11879   cat >conftest.$ac_ext <<_ACEOF
11880 #line $LINENO "configure"
11881 #include "confdefs.h"
11882
11883         #include <sys/types.h>
11884         #ifdef HAVE_SYS_PARAM_H
11885         # include <sys/param.h>
11886         #endif
11887         #include <sys/statfs.h>
11888
11889 #ifdef F77_DUMMY_MAIN
11890 #  ifdef __cplusplus
11891      extern "C"
11892 #  endif
11893    int F77_DUMMY_MAIN() { return 1; }
11894 #endif
11895 int
11896 main ()
11897 {
11898
11899                 struct statfs stfs;
11900
11901   ;
11902   return 0;
11903 }
11904 _ACEOF
11905 rm -f conftest.$ac_objext
11906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11907   (eval $ac_compile) 2>&5
11908   ac_status=$?
11909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910   (exit $ac_status); } &&
11911          { ac_try='test -s conftest.$ac_objext'
11912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913   (eval $ac_try) 2>&5
11914   ac_status=$?
11915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916   (exit $ac_status); }; }; then
11917   wine_cv_sys_statfs_has_statfs=yes
11918 else
11919   echo "$as_me: failed program was:" >&5
11920 cat conftest.$ac_ext >&5
11921 wine_cv_sys_statfs_has_statfs=no
11922
11923 fi
11924 rm -f conftest.$ac_objext conftest.$ac_ext
11925
11926 fi
11927 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
11928 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
11929     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
11930     then
11931
11932 cat >>confdefs.h <<\_ACEOF
11933 #define STATFS_DEFINED_BY_SYS_STATFS 1
11934 _ACEOF
11935
11936     fi
11937 fi
11938
11939 if test "$ac_cv_header_sys_mount_h" = "yes"
11940 then
11941     echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
11942 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
11943 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
11944   echo $ECHO_N "(cached) $ECHO_C" >&6
11945 else
11946   cat >conftest.$ac_ext <<_ACEOF
11947 #line $LINENO "configure"
11948 #include "confdefs.h"
11949
11950         #include <sys/types.h>
11951         #ifdef HAVE_SYS_PARAM_H
11952         # include <sys/param.h>
11953         #endif
11954         #include <sys/mount.h>
11955
11956 #ifdef F77_DUMMY_MAIN
11957 #  ifdef __cplusplus
11958      extern "C"
11959 #  endif
11960    int F77_DUMMY_MAIN() { return 1; }
11961 #endif
11962 int
11963 main ()
11964 {
11965
11966                 struct statfs stfs;
11967
11968   ;
11969   return 0;
11970 }
11971 _ACEOF
11972 rm -f conftest.$ac_objext
11973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11974   (eval $ac_compile) 2>&5
11975   ac_status=$?
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); } &&
11978          { ac_try='test -s conftest.$ac_objext'
11979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980   (eval $ac_try) 2>&5
11981   ac_status=$?
11982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983   (exit $ac_status); }; }; then
11984   wine_cv_sys_mount_has_statfs=yes
11985 else
11986   echo "$as_me: failed program was:" >&5
11987 cat conftest.$ac_ext >&5
11988 wine_cv_sys_mount_has_statfs=no
11989
11990 fi
11991 rm -f conftest.$ac_objext conftest.$ac_ext
11992
11993 fi
11994 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
11995 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
11996     if test "$wine_cv_sys_mount_has_statfs" = "yes"
11997     then
11998
11999 cat >>confdefs.h <<\_ACEOF
12000 #define STATFS_DEFINED_BY_SYS_MOUNT 1
12001 _ACEOF
12002
12003     fi
12004 fi
12005
12006
12007
12008
12009
12010
12011 echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
12012 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
12013 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
12014   echo $ECHO_N "(cached) $ECHO_C" >&6
12015 else
12016   cat >conftest.$ac_ext <<_ACEOF
12017 #line $LINENO "configure"
12018 #include "confdefs.h"
12019 #include <sys/types.h>
12020 #ifdef HAVE_SYS_PARAM_H
12021 # include <sys/param.h>
12022 #endif
12023 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
12024 # include <sys/mount.h>
12025 #else
12026 # ifdef STATFS_DEFINED_BY_SYS_VFS
12027 #  include <sys/vfs.h>
12028 # else
12029 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
12030 #   include <sys/statfs.h>
12031 #  endif
12032 # endif
12033 #endif
12034 #ifdef F77_DUMMY_MAIN
12035 #  ifdef __cplusplus
12036      extern "C"
12037 #  endif
12038    int F77_DUMMY_MAIN() { return 1; }
12039 #endif
12040 int
12041 main ()
12042 {
12043 struct statfs s; s.f_bfree = 0
12044   ;
12045   return 0;
12046 }
12047 _ACEOF
12048 rm -f conftest.$ac_objext
12049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12050   (eval $ac_compile) 2>&5
12051   ac_status=$?
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); } &&
12054          { ac_try='test -s conftest.$ac_objext'
12055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056   (eval $ac_try) 2>&5
12057   ac_status=$?
12058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059   (exit $ac_status); }; }; then
12060   ac_cv_c_statfs_f_bfree="yes"
12061 else
12062   echo "$as_me: failed program was:" >&5
12063 cat conftest.$ac_ext >&5
12064 ac_cv_c_statfs_f_bfree="no"
12065 fi
12066 rm -f conftest.$ac_objext conftest.$ac_ext
12067 fi
12068 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
12069 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
12070 if  test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
12071
12072 cat >>confdefs.h <<\_ACEOF
12073 #define STATFS_HAS_BFREE 1
12074 _ACEOF
12075
12076 fi
12077
12078
12079
12080 echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
12081 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
12082 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
12083   echo $ECHO_N "(cached) $ECHO_C" >&6
12084 else
12085   cat >conftest.$ac_ext <<_ACEOF
12086 #line $LINENO "configure"
12087 #include "confdefs.h"
12088 #include <sys/types.h>
12089 #ifdef HAVE_SYS_PARAM_H
12090 # include <sys/param.h>
12091 #endif
12092 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
12093 # include <sys/mount.h>
12094 #else
12095 # ifdef STATFS_DEFINED_BY_SYS_VFS
12096 #  include <sys/vfs.h>
12097 # else
12098 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
12099 #   include <sys/statfs.h>
12100 #  endif
12101 # endif
12102 #endif
12103 #ifdef F77_DUMMY_MAIN
12104 #  ifdef __cplusplus
12105      extern "C"
12106 #  endif
12107    int F77_DUMMY_MAIN() { return 1; }
12108 #endif
12109 int
12110 main ()
12111 {
12112 struct statfs s; s.f_bavail = 0
12113   ;
12114   return 0;
12115 }
12116 _ACEOF
12117 rm -f conftest.$ac_objext
12118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12119   (eval $ac_compile) 2>&5
12120   ac_status=$?
12121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122   (exit $ac_status); } &&
12123          { ac_try='test -s conftest.$ac_objext'
12124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125   (eval $ac_try) 2>&5
12126   ac_status=$?
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); }; }; then
12129   ac_cv_c_statfs_f_bavail="yes"
12130 else
12131   echo "$as_me: failed program was:" >&5
12132 cat conftest.$ac_ext >&5
12133 ac_cv_c_statfs_f_bavail="no"
12134 fi
12135 rm -f conftest.$ac_objext conftest.$ac_ext
12136 fi
12137 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
12138 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
12139 if  test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
12140
12141 cat >>confdefs.h <<\_ACEOF
12142 #define STATFS_HAS_BAVAIL 1
12143 _ACEOF
12144
12145 fi
12146
12147
12148
12149 echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
12150 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
12151 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
12152   echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154   cat >conftest.$ac_ext <<_ACEOF
12155 #line $LINENO "configure"
12156 #include "confdefs.h"
12157 #include <sys/types.h>
12158 #include <sys/socket.h>
12159 #ifdef F77_DUMMY_MAIN
12160 #  ifdef __cplusplus
12161      extern "C"
12162 #  endif
12163    int F77_DUMMY_MAIN() { return 1; }
12164 #endif
12165 int
12166 main ()
12167 {
12168 struct msghdr s; s.msg_accrights = 0
12169   ;
12170   return 0;
12171 }
12172 _ACEOF
12173 rm -f conftest.$ac_objext
12174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12175   (eval $ac_compile) 2>&5
12176   ac_status=$?
12177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178   (exit $ac_status); } &&
12179          { ac_try='test -s conftest.$ac_objext'
12180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12181   (eval $ac_try) 2>&5
12182   ac_status=$?
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); }; }; then
12185   ac_cv_c_msghdr_msg_accrights="yes"
12186 else
12187   echo "$as_me: failed program was:" >&5
12188 cat conftest.$ac_ext >&5
12189 ac_cv_c_msghdr_msg_accrights="no"
12190 fi
12191 rm -f conftest.$ac_objext conftest.$ac_ext
12192 fi
12193 echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
12194 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
12195 if  test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
12196
12197 cat >>confdefs.h <<\_ACEOF
12198 #define HAVE_MSGHDR_ACCRIGHTS 1
12199 _ACEOF
12200
12201 fi
12202
12203
12204
12205 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
12206 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
12207 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
12208   echo $ECHO_N "(cached) $ECHO_C" >&6
12209 else
12210   cat >conftest.$ac_ext <<_ACEOF
12211 #line $LINENO "configure"
12212 #include "confdefs.h"
12213 #include <sys/types.h>
12214 #include <sys/socket.h>
12215 #ifdef F77_DUMMY_MAIN
12216 #  ifdef __cplusplus
12217      extern "C"
12218 #  endif
12219    int F77_DUMMY_MAIN() { return 1; }
12220 #endif
12221 int
12222 main ()
12223 {
12224 struct sockaddr s; s.sa_len = 0
12225   ;
12226   return 0;
12227 }
12228 _ACEOF
12229 rm -f conftest.$ac_objext
12230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12231   (eval $ac_compile) 2>&5
12232   ac_status=$?
12233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234   (exit $ac_status); } &&
12235          { ac_try='test -s conftest.$ac_objext'
12236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237   (eval $ac_try) 2>&5
12238   ac_status=$?
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); }; }; then
12241   ac_cv_c_sockaddr_sa_len="yes"
12242 else
12243   echo "$as_me: failed program was:" >&5
12244 cat conftest.$ac_ext >&5
12245 ac_cv_c_sockaddr_sa_len="no"
12246 fi
12247 rm -f conftest.$ac_objext conftest.$ac_ext
12248 fi
12249 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
12250 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
12251 if  test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
12252
12253 cat >>confdefs.h <<\_ACEOF
12254 #define HAVE_SOCKADDR_SA_LEN 1
12255 _ACEOF
12256
12257 fi
12258
12259
12260
12261 echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
12262 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
12263 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
12264   echo $ECHO_N "(cached) $ECHO_C" >&6
12265 else
12266   cat >conftest.$ac_ext <<_ACEOF
12267 #line $LINENO "configure"
12268 #include "confdefs.h"
12269 #include <sys/types.h>
12270 #include <sys/socket.h>
12271 #include <sys/un.h>
12272 #ifdef F77_DUMMY_MAIN
12273 #  ifdef __cplusplus
12274      extern "C"
12275 #  endif
12276    int F77_DUMMY_MAIN() { return 1; }
12277 #endif
12278 int
12279 main ()
12280 {
12281 struct sockaddr_un s; s.sun_len = 0
12282   ;
12283   return 0;
12284 }
12285 _ACEOF
12286 rm -f conftest.$ac_objext
12287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12288   (eval $ac_compile) 2>&5
12289   ac_status=$?
12290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291   (exit $ac_status); } &&
12292          { ac_try='test -s conftest.$ac_objext'
12293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294   (eval $ac_try) 2>&5
12295   ac_status=$?
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); }; }; then
12298   ac_cv_c_sockaddr_un_sun_len="yes"
12299 else
12300   echo "$as_me: failed program was:" >&5
12301 cat conftest.$ac_ext >&5
12302 ac_cv_c_sockaddr_un_sun_len="no"
12303 fi
12304 rm -f conftest.$ac_objext conftest.$ac_ext
12305 fi
12306 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
12307 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
12308 if  test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
12309
12310 cat >>confdefs.h <<\_ACEOF
12311 #define HAVE_SOCKADDR_SUN_LEN 1
12312 _ACEOF
12313
12314 fi
12315
12316
12317
12318
12319 case $target_cpu in
12320   *i345678986* )
12321     echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
12322 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
12323 if test "${ac_cv_cpp_def_i386+set}" = set; then
12324   echo $ECHO_N "(cached) $ECHO_C" >&6
12325 else
12326   cat >conftest.$ac_ext <<_ACEOF
12327 #line $LINENO "configure"
12328 #include "confdefs.h"
12329 #ifndef __i386__
12330 yes
12331 #endif
12332 _ACEOF
12333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12334   egrep "yes" >/dev/null 2>&1; then
12335   ac_cv_cpp_def_i386="yes"
12336 else
12337   ac_cv_cpp_def_i386="no"
12338 fi
12339 rm -f conftest*
12340
12341 fi
12342 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5
12343 echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
12344     ;;
12345 esac
12346 if test "$ac_cv_cpp_def_i386" = "yes"
12347 then
12348     CFLAGS="$CFLAGS -D__i386__"
12349     LINTFLAGS="$LINTFLAGS -D__i386__"
12350 fi
12351
12352
12353
12354
12355
12356
12357
12358 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
12359
12360 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
12361
12362 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
12363
12364 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
12365
12366 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
12367
12368 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
12369
12370 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
12371
12372 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
12373
12374 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
12375
12376 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
12377
12378 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
12379
12380 ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
12381
12382 ac_config_commands="$ac_config_commands dlls/kernel/messages"
12383
12384 ac_config_commands="$ac_config_commands dlls/kernel/tests"
12385
12386 ac_config_commands="$ac_config_commands dlls/oleaut32/tests"
12387
12388 ac_config_commands="$ac_config_commands dlls/shlwapi/tests"
12389
12390 ac_config_commands="$ac_config_commands dlls/user/dde"
12391
12392 ac_config_commands="$ac_config_commands dlls/user/resources"
12393
12394 ac_config_commands="$ac_config_commands dlls/user/tests"
12395
12396 ac_config_commands="$ac_config_commands dlls/wineps/data"
12397
12398 ac_config_commands="$ac_config_commands dlls/winsock/tests"
12399
12400 ac_config_commands="$ac_config_commands include/wine"
12401
12402 ac_config_commands="$ac_config_commands programs/regapi/tests"
12403
12404 ac_config_commands="$ac_config_commands programs/winetest/tests"
12405
12406
12407 MAKE_RULES=Make.rules
12408
12409
12410 MAKE_DLL_RULES=dlls/Makedll.rules
12411
12412
12413 MAKE_PROG_RULES=programs/Makeprog.rules
12414
12415
12416 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules programs/Makeprog.rules Makefile controls/Makefile debugger/Makefile dlls/Makefile dlls/advapi32/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/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/msg711/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/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 files/Makefile graphics/Makefile graphics/x11drv/Makefile if1632/Makefile include/Makefile library/Makefile libtest/Makefile loader/Makefile loader/ne/Makefile memory/Makefile misc/Makefile miscemu/Makefile msdos/Makefile objects/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/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/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winhelp/Makefile programs/winver/Makefile relay32/Makefile scheduler/Makefile server/Makefile tools/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wrc/Makefile tsx11/Makefile unicode/Makefile win32/Makefile windows/Makefile"
12417
12418
12419 cat >confcache <<\_ACEOF
12420 # This file is a shell script that caches the results of configure
12421 # tests run on this system so they can be shared between configure
12422 # scripts and configure runs, see configure's option --config-cache.
12423 # It is not useful on other systems.  If it contains results you don't
12424 # want to keep, you may remove or edit it.
12425 #
12426 # config.status only pays attention to the cache file if you give it
12427 # the --recheck option to rerun configure.
12428 #
12429 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12430 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12431 # following values.
12432
12433 _ACEOF
12434
12435 # The following way of writing the cache mishandles newlines in values,
12436 # but we know of no workaround that is simple, portable, and efficient.
12437 # So, don't put newlines in cache variables' values.
12438 # Ultrix sh set writes to stderr and can't be redirected directly,
12439 # and sets the high bit in the cache file unless we assign to the vars.
12440 {
12441   (set) 2>&1 |
12442     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12443     *ac_space=\ *)
12444       # `set' does not quote correctly, so add quotes (double-quote
12445       # substitution turns \\\\ into \\, and sed turns \\ into \).
12446       sed -n \
12447         "s/'/'\\\\''/g;
12448           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12449       ;;
12450     *)
12451       # `set' quotes correctly as required by POSIX, so do not add quotes.
12452       sed -n \
12453         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12454       ;;
12455     esac;
12456 } |
12457   sed '
12458      t clear
12459      : clear
12460      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12461      t end
12462      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12463      : end' >>confcache
12464 if cmp -s $cache_file confcache; then :; else
12465   if test -w $cache_file; then
12466     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12467     cat confcache >$cache_file
12468   else
12469     echo "not updating unwritable cache $cache_file"
12470   fi
12471 fi
12472 rm -f confcache
12473
12474 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12475 # Let make expand exec_prefix.
12476 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12477
12478 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12479 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12480 # trailing colons and then remove the whole line if VPATH becomes empty
12481 # (actually we leave an empty line to preserve line numbers).
12482 if test "x$srcdir" = x.; then
12483   ac_vpsub='/^[         ]*VPATH[        ]*=/{
12484 s/:*\$(srcdir):*/:/;
12485 s/:*\${srcdir}:*/:/;
12486 s/:*@srcdir@:*/:/;
12487 s/^\([^=]*=[    ]*\):*/\1/;
12488 s/:*$//;
12489 s/^[^=]*=[      ]*$//;
12490 }'
12491 fi
12492
12493 DEFS=-DHAVE_CONFIG_H
12494
12495
12496 : ${CONFIG_STATUS=./config.status}
12497 ac_clean_files_save=$ac_clean_files
12498 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12499 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12500 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12501 cat >$CONFIG_STATUS <<_ACEOF
12502 #! $SHELL
12503 # Generated by $as_me.
12504 # Run this file to recreate the current configuration.
12505 # Compiler output produced by configure, useful for debugging
12506 # configure, is in config.log if it exists.
12507
12508 debug=false
12509 SHELL=\${CONFIG_SHELL-$SHELL}
12510 _ACEOF
12511
12512 cat >>$CONFIG_STATUS <<\_ACEOF
12513
12514 ## --------------------- ##
12515 ## M4sh Initialization.  ##
12516 ## --------------------- ##
12517
12518 # Be Bourne compatible
12519 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12520   emulate sh
12521   NULLCMD=:
12522 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12523   set -o posix
12524 fi
12525
12526 # NLS nuisances.
12527 # Support unset when possible.
12528 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12529   as_unset=unset
12530 else
12531   as_unset=false
12532 fi
12533
12534 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
12535     { $as_unset LANG || test "${LANG+set}" != set; } ||
12536       { LANG=C; export LANG; }
12537 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
12538     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
12539       { LC_ALL=C; export LC_ALL; }
12540 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
12541     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
12542       { LC_TIME=C; export LC_TIME; }
12543 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
12544     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
12545       { LC_CTYPE=C; export LC_CTYPE; }
12546 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
12547     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
12548       { LANGUAGE=C; export LANGUAGE; }
12549 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
12550     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
12551       { LC_COLLATE=C; export LC_COLLATE; }
12552 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
12553     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
12554       { LC_NUMERIC=C; export LC_NUMERIC; }
12555 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
12556     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
12557       { LC_MESSAGES=C; export LC_MESSAGES; }
12558
12559
12560 # Name of the executable.
12561 as_me=`(basename "$0") 2>/dev/null ||
12562 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12563          X"$0" : 'X\(//\)$' \| \
12564          X"$0" : 'X\(/\)$' \| \
12565          .     : '\(.\)' 2>/dev/null ||
12566 echo X/"$0" |
12567     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12568           /^X\/\(\/\/\)$/{ s//\1/; q; }
12569           /^X\/\(\/\).*/{ s//\1/; q; }
12570           s/.*/./; q'`
12571
12572 # PATH needs CR, and LINENO needs CR and PATH.
12573 # Avoid depending upon Character Ranges.
12574 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12575 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12576 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12577 as_cr_digits='0123456789'
12578 as_cr_alnum=$as_cr_Letters$as_cr_digits
12579
12580 # The user is always right.
12581 if test "${PATH_SEPARATOR+set}" != set; then
12582   echo "#! /bin/sh" >conftest.sh
12583   echo  "exit 0"   >>conftest.sh
12584   chmod +x conftest.sh
12585   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
12586     PATH_SEPARATOR=';'
12587   else
12588     PATH_SEPARATOR=:
12589   fi
12590   rm -f conftest.sh
12591 fi
12592
12593
12594   as_lineno_1=$LINENO
12595   as_lineno_2=$LINENO
12596   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12597   test "x$as_lineno_1" != "x$as_lineno_2" &&
12598   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12599   # Find who we are.  Look in the path if we contain no path at all
12600   # relative or not.
12601   case $0 in
12602     *[\\/]* ) as_myself=$0 ;;
12603     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12604 for as_dir in $PATH
12605 do
12606   IFS=$as_save_IFS
12607   test -z "$as_dir" && as_dir=.
12608   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12609 done
12610
12611        ;;
12612   esac
12613   # We did not find ourselves, most probably we were run as `sh COMMAND'
12614   # in which case we are not to be found in the path.
12615   if test "x$as_myself" = x; then
12616     as_myself=$0
12617   fi
12618   if test ! -f "$as_myself"; then
12619     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12620 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12621    { (exit 1); exit 1; }; }
12622   fi
12623   case $CONFIG_SHELL in
12624   '')
12625     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12627 do
12628   IFS=$as_save_IFS
12629   test -z "$as_dir" && as_dir=.
12630   for as_base in sh bash ksh sh5; do
12631          case $as_dir in
12632          /*)
12633            if ("$as_dir/$as_base" -c '
12634   as_lineno_1=$LINENO
12635   as_lineno_2=$LINENO
12636   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12637   test "x$as_lineno_1" != "x$as_lineno_2" &&
12638   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12639              CONFIG_SHELL=$as_dir/$as_base
12640              export CONFIG_SHELL
12641              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12642            fi;;
12643          esac
12644        done
12645 done
12646 ;;
12647   esac
12648
12649   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12650   # uniformly replaced by the line number.  The first 'sed' inserts a
12651   # line-number line before each line; the second 'sed' does the real
12652   # work.  The second script uses 'N' to pair each line-number line
12653   # with the numbered line, and appends trailing '-' during
12654   # substitution so that $LINENO is not a special case at line end.
12655   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12656   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12657   sed '=' <$as_myself |
12658     sed '
12659       N
12660       s,$,-,
12661       : loop
12662       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12663       t loop
12664       s,-$,,
12665       s,^['$as_cr_digits']*\n,,
12666     ' >$as_me.lineno &&
12667   chmod +x $as_me.lineno ||
12668     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12669 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12670    { (exit 1); exit 1; }; }
12671
12672   # Don't try to exec as it changes $[0], causing all sort of problems
12673   # (the dirname of $[0] is not the place where we might find the
12674   # original and so on.  Autoconf is especially sensible to this).
12675   . ./$as_me.lineno
12676   # Exit status is that of the last command.
12677   exit
12678 }
12679
12680
12681 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12682   *c*,-n*) ECHO_N= ECHO_C='
12683 ' ECHO_T='      ' ;;
12684   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12685   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12686 esac
12687
12688 if expr a : '\(a\)' >/dev/null 2>&1; then
12689   as_expr=expr
12690 else
12691   as_expr=false
12692 fi
12693
12694 rm -f conf$$ conf$$.exe conf$$.file
12695 echo >conf$$.file
12696 if ln -s conf$$.file conf$$ 2>/dev/null; then
12697   # We could just check for DJGPP; but this test a) works b) is more generic
12698   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12699   if test -f conf$$.exe; then
12700     # Don't use ln at all; we don't have any links
12701     as_ln_s='cp -p'
12702   else
12703     as_ln_s='ln -s'
12704   fi
12705 elif ln conf$$.file conf$$ 2>/dev/null; then
12706   as_ln_s=ln
12707 else
12708   as_ln_s='cp -p'
12709 fi
12710 rm -f conf$$ conf$$.exe conf$$.file
12711
12712 as_executable_p="test -f"
12713
12714 # Sed expression to map a string onto a valid CPP name.
12715 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12716
12717 # Sed expression to map a string onto a valid variable name.
12718 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12719
12720
12721 # IFS
12722 # We need space, tab and new line, in precisely that order.
12723 as_nl='
12724 '
12725 IFS="   $as_nl"
12726
12727 # CDPATH.
12728 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
12729
12730 exec 6>&1
12731
12732 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12733 # report actual input values of CONFIG_FILES etc. instead of their
12734 # values after options handling.  Logging --version etc. is OK.
12735 exec 5>>config.log
12736 {
12737   echo
12738   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12739 ## Running $as_me. ##
12740 _ASBOX
12741 } >&5
12742 cat >&5 <<_CSEOF
12743
12744 This file was extended by Wine $as_me 20020411, which was
12745 generated by GNU Autoconf 2.53.  Invocation command line was
12746
12747   CONFIG_FILES    = $CONFIG_FILES
12748   CONFIG_HEADERS  = $CONFIG_HEADERS
12749   CONFIG_LINKS    = $CONFIG_LINKS
12750   CONFIG_COMMANDS = $CONFIG_COMMANDS
12751   $ $0 $@
12752
12753 _CSEOF
12754 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12755 echo >&5
12756 _ACEOF
12757
12758 # Files that config.status was made for.
12759 if test -n "$ac_config_files"; then
12760   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12761 fi
12762
12763 if test -n "$ac_config_headers"; then
12764   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12765 fi
12766
12767 if test -n "$ac_config_links"; then
12768   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12769 fi
12770
12771 if test -n "$ac_config_commands"; then
12772   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12773 fi
12774
12775 cat >>$CONFIG_STATUS <<\_ACEOF
12776
12777 ac_cs_usage="\
12778 \`$as_me' instantiates files from templates according to the
12779 current configuration.
12780
12781 Usage: $0 [OPTIONS] [FILE]...
12782
12783   -h, --help       print this help, then exit
12784   -V, --version    print version number, then exit
12785   -d, --debug      don't remove temporary files
12786       --recheck    update $as_me by reconfiguring in the same conditions
12787   --file=FILE[:TEMPLATE]
12788                    instantiate the configuration file FILE
12789   --header=FILE[:TEMPLATE]
12790                    instantiate the configuration header FILE
12791
12792 Configuration files:
12793 $config_files
12794
12795 Configuration headers:
12796 $config_headers
12797
12798 Configuration commands:
12799 $config_commands
12800
12801 Report bugs to <bug-autoconf@gnu.org>."
12802 _ACEOF
12803
12804 cat >>$CONFIG_STATUS <<_ACEOF
12805 ac_cs_version="\\
12806 Wine config.status 20020411
12807 configured by $0, generated by GNU Autoconf 2.53,
12808   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12809
12810 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12811 Free Software Foundation, Inc.
12812 This config.status script is free software; the Free Software Foundation
12813 gives unlimited permission to copy, distribute and modify it."
12814 srcdir=$srcdir
12815 INSTALL="$INSTALL"
12816 _ACEOF
12817
12818 cat >>$CONFIG_STATUS <<\_ACEOF
12819 # If no file are specified by the user, then we need to provide default
12820 # value.  By we need to know if files were specified by the user.
12821 ac_need_defaults=:
12822 while test $# != 0
12823 do
12824   case $1 in
12825   --*=*)
12826     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12827     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12828     shift
12829     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
12830     shift
12831     ;;
12832   -*);;
12833   *) # This is not an option, so the user has probably given explicit
12834      # arguments.
12835      ac_need_defaults=false;;
12836   esac
12837
12838   case $1 in
12839   # Handling of the options.
12840 _ACEOF
12841 cat >>$CONFIG_STATUS <<_ACEOF
12842   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12843     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12844     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12845 _ACEOF
12846 cat >>$CONFIG_STATUS <<\_ACEOF
12847   --version | --vers* | -V )
12848     echo "$ac_cs_version"; exit 0 ;;
12849   --he | --h)
12850     # Conflict between --help and --header
12851     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12852 Try \`$0 --help' for more information." >&5
12853 echo "$as_me: error: ambiguous option: $1
12854 Try \`$0 --help' for more information." >&2;}
12855    { (exit 1); exit 1; }; };;
12856   --help | --hel | -h )
12857     echo "$ac_cs_usage"; exit 0 ;;
12858   --debug | --d* | -d )
12859     debug=: ;;
12860   --file | --fil | --fi | --f )
12861     shift
12862     CONFIG_FILES="$CONFIG_FILES $1"
12863     ac_need_defaults=false;;
12864   --header | --heade | --head | --hea )
12865     shift
12866     CONFIG_HEADERS="$CONFIG_HEADERS $1"
12867     ac_need_defaults=false;;
12868
12869   # This is an error.
12870   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12871 Try \`$0 --help' for more information." >&5
12872 echo "$as_me: error: unrecognized option: $1
12873 Try \`$0 --help' for more information." >&2;}
12874    { (exit 1); exit 1; }; } ;;
12875
12876   *) ac_config_targets="$ac_config_targets $1" ;;
12877
12878   esac
12879   shift
12880 done
12881
12882 _ACEOF
12883
12884
12885
12886
12887
12888 cat >>$CONFIG_STATUS <<\_ACEOF
12889 for ac_config_target in $ac_config_targets
12890 do
12891   case "$ac_config_target" in
12892   # Handling of arguments.
12893   "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
12894   "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
12895   "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
12896   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12897   "controls/Makefile" ) CONFIG_FILES="$CONFIG_FILES controls/Makefile" ;;
12898   "debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/Makefile" ;;
12899   "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
12900   "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
12901   "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
12902   "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
12903   "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
12904   "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
12905   "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
12906   "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
12907   "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
12908   "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
12909   "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
12910   "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
12911   "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
12912   "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
12913   "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
12914   "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
12915   "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
12916   "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
12917   "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
12918   "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
12919   "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
12920   "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
12921   "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
12922   "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
12923   "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
12924   "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
12925   "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
12926   "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
12927   "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
12928   "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
12929   "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
12930   "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
12931   "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
12932   "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
12933   "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
12934   "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
12935   "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
12936   "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
12937   "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
12938   "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
12939   "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
12940   "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
12941   "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
12942   "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
12943   "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
12944   "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
12945   "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
12946   "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
12947   "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
12948   "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
12949   "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
12950   "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
12951   "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
12952   "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
12953   "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
12954   "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
12955   "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
12956   "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
12957   "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
12958   "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
12959   "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
12960   "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
12961   "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
12962   "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
12963   "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
12964   "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
12965   "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
12966   "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
12967   "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
12968   "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
12969   "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
12970   "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
12971   "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
12972   "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
12973   "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
12974   "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
12975   "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
12976   "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
12977   "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
12978   "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
12979   "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
12980   "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
12981   "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
12982   "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
12983   "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
12984   "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
12985   "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
12986   "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
12987   "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
12988   "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
12989   "files/Makefile" ) CONFIG_FILES="$CONFIG_FILES files/Makefile" ;;
12990   "graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/Makefile" ;;
12991   "graphics/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/x11drv/Makefile" ;;
12992   "if1632/Makefile" ) CONFIG_FILES="$CONFIG_FILES if1632/Makefile" ;;
12993   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12994   "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
12995   "libtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtest/Makefile" ;;
12996   "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
12997   "loader/ne/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/ne/Makefile" ;;
12998   "memory/Makefile" ) CONFIG_FILES="$CONFIG_FILES memory/Makefile" ;;
12999   "misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
13000   "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
13001   "msdos/Makefile" ) CONFIG_FILES="$CONFIG_FILES msdos/Makefile" ;;
13002   "objects/Makefile" ) CONFIG_FILES="$CONFIG_FILES objects/Makefile" ;;
13003   "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
13004   "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
13005   "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
13006   "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
13007   "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
13008   "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
13009   "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
13010   "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
13011   "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
13012   "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
13013   "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
13014   "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
13015   "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
13016   "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
13017   "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
13018   "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
13019   "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
13020   "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
13021   "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
13022   "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
13023   "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
13024   "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
13025   "relay32/Makefile" ) CONFIG_FILES="$CONFIG_FILES relay32/Makefile" ;;
13026   "scheduler/Makefile" ) CONFIG_FILES="$CONFIG_FILES scheduler/Makefile" ;;
13027   "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
13028   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13029   "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
13030   "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
13031   "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
13032   "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
13033   "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
13034   "tsx11/Makefile" ) CONFIG_FILES="$CONFIG_FILES tsx11/Makefile" ;;
13035   "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
13036   "win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
13037   "windows/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows/Makefile" ;;
13038   "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
13039   "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
13040   "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
13041   "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
13042   "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
13043   "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
13044   "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
13045   "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
13046   "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
13047   "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
13048   "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
13049   "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
13050   "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
13051   "dlls/kernel/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/tests" ;;
13052   "dlls/oleaut32/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/oleaut32/tests" ;;
13053   "dlls/shlwapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/shlwapi/tests" ;;
13054   "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
13055   "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
13056   "dlls/user/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/tests" ;;
13057   "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
13058   "dlls/winsock/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/winsock/tests" ;;
13059   "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
13060   "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
13061   "programs/winetest/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/winetest/tests" ;;
13062   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13063   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13064 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13065    { (exit 1); exit 1; }; };;
13066   esac
13067 done
13068
13069 # If the user did not use the arguments to specify the items to instantiate,
13070 # then the envvar interface is used.  Set only those that are not.
13071 # We use the long form for the default assignment because of an extremely
13072 # bizarre bug on SunOS 4.1.3.
13073 if $ac_need_defaults; then
13074   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13075   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13076   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13077 fi
13078
13079 # Create a temporary directory, and hook for its removal unless debugging.
13080 $debug ||
13081 {
13082   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13083   trap '{ (exit 1); exit 1; }' 1 2 13 15
13084 }
13085
13086 # Create a (secure) tmp directory for tmp files.
13087 : ${TMPDIR=/tmp}
13088 {
13089   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
13090   test -n "$tmp" && test -d "$tmp"
13091 }  ||
13092 {
13093   tmp=$TMPDIR/cs$$-$RANDOM
13094   (umask 077 && mkdir $tmp)
13095 } ||
13096 {
13097    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13098    { (exit 1); exit 1; }
13099 }
13100
13101 _ACEOF
13102
13103 cat >>$CONFIG_STATUS <<_ACEOF
13104
13105 #
13106 # CONFIG_FILES section.
13107 #
13108
13109 # No need to generate the scripts if there are no CONFIG_FILES.
13110 # This happens for instance when ./config.status config.h
13111 if test -n "\$CONFIG_FILES"; then
13112   # Protect against being on the right side of a sed subst in config.status.
13113   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13114    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13115 s,@SHELL@,$SHELL,;t t
13116 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13117 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13118 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13119 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13120 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13121 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13122 s,@exec_prefix@,$exec_prefix,;t t
13123 s,@prefix@,$prefix,;t t
13124 s,@program_transform_name@,$program_transform_name,;t t
13125 s,@bindir@,$bindir,;t t
13126 s,@sbindir@,$sbindir,;t t
13127 s,@libexecdir@,$libexecdir,;t t
13128 s,@datadir@,$datadir,;t t
13129 s,@sysconfdir@,$sysconfdir,;t t
13130 s,@sharedstatedir@,$sharedstatedir,;t t
13131 s,@localstatedir@,$localstatedir,;t t
13132 s,@libdir@,$libdir,;t t
13133 s,@includedir@,$includedir,;t t
13134 s,@oldincludedir@,$oldincludedir,;t t
13135 s,@infodir@,$infodir,;t t
13136 s,@mandir@,$mandir,;t t
13137 s,@build_alias@,$build_alias,;t t
13138 s,@host_alias@,$host_alias,;t t
13139 s,@target_alias@,$target_alias,;t t
13140 s,@DEFS@,$DEFS,;t t
13141 s,@ECHO_C@,$ECHO_C,;t t
13142 s,@ECHO_N@,$ECHO_N,;t t
13143 s,@ECHO_T@,$ECHO_T,;t t
13144 s,@LIBS@,$LIBS,;t t
13145 s,@OPTIONS@,$OPTIONS,;t t
13146 s,@build@,$build,;t t
13147 s,@build_cpu@,$build_cpu,;t t
13148 s,@build_vendor@,$build_vendor,;t t
13149 s,@build_os@,$build_os,;t t
13150 s,@host@,$host,;t t
13151 s,@host_cpu@,$host_cpu,;t t
13152 s,@host_vendor@,$host_vendor,;t t
13153 s,@host_os@,$host_os,;t t
13154 s,@target@,$target,;t t
13155 s,@target_cpu@,$target_cpu,;t t
13156 s,@target_vendor@,$target_vendor,;t t
13157 s,@target_os@,$target_os,;t t
13158 s,@SET_MAKE@,$SET_MAKE,;t t
13159 s,@CC@,$CC,;t t
13160 s,@CFLAGS@,$CFLAGS,;t t
13161 s,@LDFLAGS@,$LDFLAGS,;t t
13162 s,@CPPFLAGS@,$CPPFLAGS,;t t
13163 s,@ac_ct_CC@,$ac_ct_CC,;t t
13164 s,@EXEEXT@,$EXEEXT,;t t
13165 s,@OBJEXT@,$OBJEXT,;t t
13166 s,@CPP@,$CPP,;t t
13167 s,@X_CFLAGS@,$X_CFLAGS,;t t
13168 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13169 s,@X_LIBS@,$X_LIBS,;t t
13170 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13171 s,@YACC@,$YACC,;t t
13172 s,@LEX@,$LEX,;t t
13173 s,@LEXLIB@,$LEXLIB,;t t
13174 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13175 s,@XYACC@,$XYACC,;t t
13176 s,@XLEX@,$XLEX,;t t
13177 s,@RANLIB@,$RANLIB,;t t
13178 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13179 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13180 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13181 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13182 s,@LN_S@,$LN_S,;t t
13183 s,@C2MAN@,$C2MAN,;t t
13184 s,@LDCONFIG@,$LDCONFIG,;t t
13185 s,@LINT@,$LINT,;t t
13186 s,@LINTFLAGS@,$LINTFLAGS,;t t
13187 s,@LDCOMBINE@,$LDCOMBINE,;t t
13188 s,@JPEGLIB@,$JPEGLIB,;t t
13189 s,@XLIB@,$XLIB,;t t
13190 s,@XFILES@,$XFILES,;t t
13191 s,@OPENGLFILES@,$OPENGLFILES,;t t
13192 s,@GLU32FILES@,$GLU32FILES,;t t
13193 s,@CURSESLIBS@,$CURSESLIBS,;t t
13194 s,@CUPSLIBS@,$CUPSLIBS,;t t
13195 s,@sane_devel@,$sane_devel,;t t
13196 s,@SANELIBS@,$SANELIBS,;t t
13197 s,@SANEINCL@,$SANEINCL,;t t
13198 s,@ft_devel@,$ft_devel,;t t
13199 s,@ft_devel2@,$ft_devel2,;t t
13200 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
13201 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
13202 s,@ARTSLIBS@,$ARTSLIBS,;t t
13203 s,@ARTSINCL@,$ARTSINCL,;t t
13204 s,@DLLWRAP@,$DLLWRAP,;t t
13205 s,@DLLIBS@,$DLLIBS,;t t
13206 s,@DLLFLAGS@,$DLLFLAGS,;t t
13207 s,@DLLEXT@,$DLLEXT,;t t
13208 s,@LDSHARED@,$LDSHARED,;t t
13209 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
13210 s,@LIBEXT@,$LIBEXT,;t t
13211 s,@LDPATH@,$LDPATH,;t t
13212 s,@ALLOCA@,$ALLOCA,;t t
13213 /@MAKE_RULES@/r $MAKE_RULES
13214 s,@MAKE_RULES@,,;t t
13215 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
13216 s,@MAKE_DLL_RULES@,,;t t
13217 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
13218 s,@MAKE_PROG_RULES@,,;t t
13219 CEOF
13220
13221 _ACEOF
13222
13223   cat >>$CONFIG_STATUS <<\_ACEOF
13224   # Split the substitutions into bite-sized pieces for seds with
13225   # small command number limits, like on Digital OSF/1 and HP-UX.
13226   ac_max_sed_lines=48
13227   ac_sed_frag=1 # Number of current file.
13228   ac_beg=1 # First line for current file.
13229   ac_end=$ac_max_sed_lines # Line after last line for current file.
13230   ac_more_lines=:
13231   ac_sed_cmds=
13232   while $ac_more_lines; do
13233     if test $ac_beg -gt 1; then
13234       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13235     else
13236       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13237     fi
13238     if test ! -s $tmp/subs.frag; then
13239       ac_more_lines=false
13240     else
13241       # The purpose of the label and of the branching condition is to
13242       # speed up the sed processing (if there are no `@' at all, there
13243       # is no need to browse any of the substitutions).
13244       # These are the two extra sed commands mentioned above.
13245       (echo ':t
13246   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13247       if test -z "$ac_sed_cmds"; then
13248         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13249       else
13250         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13251       fi
13252       ac_sed_frag=`expr $ac_sed_frag + 1`
13253       ac_beg=$ac_end
13254       ac_end=`expr $ac_end + $ac_max_sed_lines`
13255     fi
13256   done
13257   if test -z "$ac_sed_cmds"; then
13258     ac_sed_cmds=cat
13259   fi
13260 fi # test -n "$CONFIG_FILES"
13261
13262 _ACEOF
13263 cat >>$CONFIG_STATUS <<\_ACEOF
13264 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13265   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13266   case $ac_file in
13267   - | *:- | *:-:* ) # input from stdin
13268         cat >$tmp/stdin
13269         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13270         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13271   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13272         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13273   * )   ac_file_in=$ac_file.in ;;
13274   esac
13275
13276   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13277   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13278 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13279          X"$ac_file" : 'X\(//\)[^/]' \| \
13280          X"$ac_file" : 'X\(//\)$' \| \
13281          X"$ac_file" : 'X\(/\)' \| \
13282          .     : '\(.\)' 2>/dev/null ||
13283 echo X"$ac_file" |
13284     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13285           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13286           /^X\(\/\/\)$/{ s//\1/; q; }
13287           /^X\(\/\).*/{ s//\1/; q; }
13288           s/.*/./; q'`
13289   { case "$ac_dir" in
13290   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13291   *)                      as_incr_dir=.;;
13292 esac
13293 as_dummy="$ac_dir"
13294 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13295   case $as_mkdir_dir in
13296     # Skip DOS drivespec
13297     ?:) as_incr_dir=$as_mkdir_dir ;;
13298     *)
13299       as_incr_dir=$as_incr_dir/$as_mkdir_dir
13300       test -d "$as_incr_dir" ||
13301         mkdir "$as_incr_dir" ||
13302         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
13303 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
13304    { (exit 1); exit 1; }; }
13305     ;;
13306   esac
13307 done; }
13308
13309   ac_builddir=.
13310
13311 if test "$ac_dir" != .; then
13312   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13313   # A "../" for each directory in $ac_dir_suffix.
13314   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13315 else
13316   ac_dir_suffix= ac_top_builddir=
13317 fi
13318
13319 case $srcdir in
13320   .)  # No --srcdir option.  We are building in place.
13321     ac_srcdir=.
13322     if test -z "$ac_top_builddir"; then
13323        ac_top_srcdir=.
13324     else
13325        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13326     fi ;;
13327   [\\/]* | ?:[\\/]* )  # Absolute path.
13328     ac_srcdir=$srcdir$ac_dir_suffix;
13329     ac_top_srcdir=$srcdir ;;
13330   *) # Relative path.
13331     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13332     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13333 esac
13334 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13335 # absolute.
13336 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13337 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
13338 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13339 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13340
13341
13342   case $INSTALL in
13343   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13344   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13345   esac
13346
13347   if test x"$ac_file" != x-; then
13348     { echo "$as_me:$LINENO: creating $ac_file" >&5
13349 echo "$as_me: creating $ac_file" >&6;}
13350     rm -f "$ac_file"
13351   fi
13352   # Let's still pretend it is `configure' which instantiates (i.e., don't
13353   # use $as_me), people would be surprised to read:
13354   #    /* config.h.  Generated by config.status.  */
13355   if test x"$ac_file" = x-; then
13356     configure_input=
13357   else
13358     configure_input="$ac_file.  "
13359   fi
13360   configure_input=$configure_input"Generated from `echo $ac_file_in |
13361                                      sed 's,.*/,,'` by configure."
13362
13363   # First look for the input files in the build tree, otherwise in the
13364   # src tree.
13365   ac_file_inputs=`IFS=:
13366     for f in $ac_file_in; do
13367       case $f in
13368       -) echo $tmp/stdin ;;
13369       [\\/$]*)
13370          # Absolute (can't be DOS-style, as IFS=:)
13371          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13372 echo "$as_me: error: cannot find input file: $f" >&2;}
13373    { (exit 1); exit 1; }; }
13374          echo $f;;
13375       *) # Relative
13376          if test -f "$f"; then
13377            # Build tree
13378            echo $f
13379          elif test -f "$srcdir/$f"; then
13380            # Source tree
13381            echo $srcdir/$f
13382          else
13383            # /dev/null tree
13384            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13385 echo "$as_me: error: cannot find input file: $f" >&2;}
13386    { (exit 1); exit 1; }; }
13387          fi;;
13388       esac
13389     done` || { (exit 1); exit 1; }
13390 _ACEOF
13391 cat >>$CONFIG_STATUS <<_ACEOF
13392   sed "$ac_vpsub
13393 $extrasub
13394 _ACEOF
13395 cat >>$CONFIG_STATUS <<\_ACEOF
13396 :t
13397 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13398 s,@configure_input@,$configure_input,;t t
13399 s,@srcdir@,$ac_srcdir,;t t
13400 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13401 s,@top_srcdir@,$ac_top_srcdir,;t t
13402 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13403 s,@builddir@,$ac_builddir,;t t
13404 s,@abs_builddir@,$ac_abs_builddir,;t t
13405 s,@top_builddir@,$ac_top_builddir,;t t
13406 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13407 s,@INSTALL@,$ac_INSTALL,;t t
13408 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13409   rm -f $tmp/stdin
13410   if test x"$ac_file" != x-; then
13411     mv $tmp/out $ac_file
13412   else
13413     cat $tmp/out
13414     rm -f $tmp/out
13415   fi
13416
13417 done
13418 _ACEOF
13419 cat >>$CONFIG_STATUS <<\_ACEOF
13420
13421 #
13422 # CONFIG_HEADER section.
13423 #
13424
13425 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13426 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13427 #
13428 # ac_d sets the value in "#define NAME VALUE" lines.
13429 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
13430 ac_dB='[        ].*$,\1#\2'
13431 ac_dC=' '
13432 ac_dD=',;t'
13433 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13434 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13435 ac_uB='$,\1#\2define\3'
13436 ac_uC=' '
13437 ac_uD=',;t'
13438
13439 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13440   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13441   case $ac_file in
13442   - | *:- | *:-:* ) # input from stdin
13443         cat >$tmp/stdin
13444         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13445         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13446   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13447         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13448   * )   ac_file_in=$ac_file.in ;;
13449   esac
13450
13451   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13452 echo "$as_me: creating $ac_file" >&6;}
13453
13454   # First look for the input files in the build tree, otherwise in the
13455   # src tree.
13456   ac_file_inputs=`IFS=:
13457     for f in $ac_file_in; do
13458       case $f in
13459       -) echo $tmp/stdin ;;
13460       [\\/$]*)
13461          # Absolute (can't be DOS-style, as IFS=:)
13462          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13463 echo "$as_me: error: cannot find input file: $f" >&2;}
13464    { (exit 1); exit 1; }; }
13465          echo $f;;
13466       *) # Relative
13467          if test -f "$f"; then
13468            # Build tree
13469            echo $f
13470          elif test -f "$srcdir/$f"; then
13471            # Source tree
13472            echo $srcdir/$f
13473          else
13474            # /dev/null tree
13475            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13476 echo "$as_me: error: cannot find input file: $f" >&2;}
13477    { (exit 1); exit 1; }; }
13478          fi;;
13479       esac
13480     done` || { (exit 1); exit 1; }
13481   # Remove the trailing spaces.
13482   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
13483
13484 _ACEOF
13485
13486 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13487 # `conftest.undefs', that substitutes the proper values into
13488 # config.h.in to produce config.h.  The first handles `#define'
13489 # templates, and the second `#undef' templates.
13490 # And first: Protect against being on the right side of a sed subst in
13491 # config.status.  Protect against being in an unquoted here document
13492 # in config.status.
13493 rm -f conftest.defines conftest.undefs
13494 # Using a here document instead of a string reduces the quoting nightmare.
13495 # Putting comments in sed scripts is not portable.
13496 #
13497 # `end' is used to avoid that the second main sed command (meant for
13498 # 0-ary CPP macros) applies to n-ary macro definitions.
13499 # See the Autoconf documentation for `clear'.
13500 cat >confdef2sed.sed <<\_ACEOF
13501 s/[\\&,]/\\&/g
13502 s,[\\$`],\\&,g
13503 t clear
13504 : clear
13505 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13506 t end
13507 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13508 : end
13509 _ACEOF
13510 # If some macros were called several times there might be several times
13511 # the same #defines, which is useless.  Nevertheless, we may not want to
13512 # sort them, since we want the *last* AC-DEFINE to be honored.
13513 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13514 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13515 rm -f confdef2sed.sed
13516
13517 # This sed command replaces #undef with comments.  This is necessary, for
13518 # example, in the case of _POSIX_SOURCE, which is predefined and required
13519 # on some systems where configure will not decide to define it.
13520 cat >>conftest.undefs <<\_ACEOF
13521 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13522 _ACEOF
13523
13524 # Break up conftest.defines because some shells have a limit on the size
13525 # of here documents, and old seds have small limits too (100 cmds).
13526 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13527 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13528 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13529 echo '  :' >>$CONFIG_STATUS
13530 rm -f conftest.tail
13531 while grep . conftest.defines >/dev/null
13532 do
13533   # Write a limited-size here document to $tmp/defines.sed.
13534   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13535   # Speed up: don't consider the non `#define' lines.
13536   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
13537   # Work around the forget-to-reset-the-flag bug.
13538   echo 't clr' >>$CONFIG_STATUS
13539   echo ': clr' >>$CONFIG_STATUS
13540   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13541   echo 'CEOF
13542   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13543   rm -f $tmp/in
13544   mv $tmp/out $tmp/in
13545 ' >>$CONFIG_STATUS
13546   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13547   rm -f conftest.defines
13548   mv conftest.tail conftest.defines
13549 done
13550 rm -f conftest.defines
13551 echo '  fi # egrep' >>$CONFIG_STATUS
13552 echo >>$CONFIG_STATUS
13553
13554 # Break up conftest.undefs because some shells have a limit on the size
13555 # of here documents, and old seds have small limits too (100 cmds).
13556 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13557 rm -f conftest.tail
13558 while grep . conftest.undefs >/dev/null
13559 do
13560   # Write a limited-size here document to $tmp/undefs.sed.
13561   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13562   # Speed up: don't consider the non `#undef'
13563   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13564   # Work around the forget-to-reset-the-flag bug.
13565   echo 't clr' >>$CONFIG_STATUS
13566   echo ': clr' >>$CONFIG_STATUS
13567   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13568   echo 'CEOF
13569   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13570   rm -f $tmp/in
13571   mv $tmp/out $tmp/in
13572 ' >>$CONFIG_STATUS
13573   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13574   rm -f conftest.undefs
13575   mv conftest.tail conftest.undefs
13576 done
13577 rm -f conftest.undefs
13578
13579 cat >>$CONFIG_STATUS <<\_ACEOF
13580   # Let's still pretend it is `configure' which instantiates (i.e., don't
13581   # use $as_me), people would be surprised to read:
13582   #    /* config.h.  Generated by config.status.  */
13583   if test x"$ac_file" = x-; then
13584     echo "/* Generated by configure.  */" >$tmp/config.h
13585   else
13586     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13587   fi
13588   cat $tmp/in >>$tmp/config.h
13589   rm -f $tmp/in
13590   if test x"$ac_file" != x-; then
13591     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13592       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13593 echo "$as_me: $ac_file is unchanged" >&6;}
13594     else
13595       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13596 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13597          X"$ac_file" : 'X\(//\)[^/]' \| \
13598          X"$ac_file" : 'X\(//\)$' \| \
13599          X"$ac_file" : 'X\(/\)' \| \
13600          .     : '\(.\)' 2>/dev/null ||
13601 echo X"$ac_file" |
13602     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13603           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13604           /^X\(\/\/\)$/{ s//\1/; q; }
13605           /^X\(\/\).*/{ s//\1/; q; }
13606           s/.*/./; q'`
13607       { case "$ac_dir" in
13608   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13609   *)                      as_incr_dir=.;;
13610 esac
13611 as_dummy="$ac_dir"
13612 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13613   case $as_mkdir_dir in
13614     # Skip DOS drivespec
13615     ?:) as_incr_dir=$as_mkdir_dir ;;
13616     *)
13617       as_incr_dir=$as_incr_dir/$as_mkdir_dir
13618       test -d "$as_incr_dir" ||
13619         mkdir "$as_incr_dir" ||
13620         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
13621 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
13622    { (exit 1); exit 1; }; }
13623     ;;
13624   esac
13625 done; }
13626
13627       rm -f $ac_file
13628       mv $tmp/config.h $ac_file
13629     fi
13630   else
13631     cat $tmp/config.h
13632     rm -f $tmp/config.h
13633   fi
13634 done
13635 _ACEOF
13636 cat >>$CONFIG_STATUS <<\_ACEOF
13637
13638 #
13639 # CONFIG_COMMANDS section.
13640 #
13641 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13642   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13643   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13644   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13645 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13646          X"$ac_dest" : 'X\(//\)[^/]' \| \
13647          X"$ac_dest" : 'X\(//\)$' \| \
13648          X"$ac_dest" : 'X\(/\)' \| \
13649          .     : '\(.\)' 2>/dev/null ||
13650 echo X"$ac_dest" |
13651     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13652           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13653           /^X\(\/\/\)$/{ s//\1/; q; }
13654           /^X\(\/\).*/{ s//\1/; q; }
13655           s/.*/./; q'`
13656   ac_builddir=.
13657
13658 if test "$ac_dir" != .; then
13659   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13660   # A "../" for each directory in $ac_dir_suffix.
13661   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13662 else
13663   ac_dir_suffix= ac_top_builddir=
13664 fi
13665
13666 case $srcdir in
13667   .)  # No --srcdir option.  We are building in place.
13668     ac_srcdir=.
13669     if test -z "$ac_top_builddir"; then
13670        ac_top_srcdir=.
13671     else
13672        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13673     fi ;;
13674   [\\/]* | ?:[\\/]* )  # Absolute path.
13675     ac_srcdir=$srcdir$ac_dir_suffix;
13676     ac_top_srcdir=$srcdir ;;
13677   *) # Relative path.
13678     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13679     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13680 esac
13681 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13682 # absolute.
13683 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13684 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
13685 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13686 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13687
13688
13689   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13690 echo "$as_me: executing $ac_dest commands" >&6;}
13691   case $ac_dest in
13692     dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
13693 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
13694     dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
13695 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
13696     dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
13697 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
13698     dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
13699 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
13700     dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
13701 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
13702     dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
13703 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
13704     dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
13705 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
13706     dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
13707 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
13708     dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
13709 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
13710     dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
13711 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
13712     dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
13713 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
13714     dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
13715 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
13716     dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
13717 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
13718     dlls/kernel/tests ) test -d "dlls/kernel/tests" || ({ echo "$as_me:$LINENO: creating dlls/kernel/tests" >&5
13719 echo "$as_me: creating dlls/kernel/tests" >&6;} && mkdir "dlls/kernel/tests") ;;
13720     dlls/oleaut32/tests ) test -d "dlls/oleaut32/tests" || ({ echo "$as_me:$LINENO: creating dlls/oleaut32/tests" >&5
13721 echo "$as_me: creating dlls/oleaut32/tests" >&6;} && mkdir "dlls/oleaut32/tests") ;;
13722     dlls/shlwapi/tests ) test -d "dlls/shlwapi/tests" || ({ echo "$as_me:$LINENO: creating dlls/shlwapi/tests" >&5
13723 echo "$as_me: creating dlls/shlwapi/tests" >&6;} && mkdir "dlls/shlwapi/tests") ;;
13724     dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
13725 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
13726     dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
13727 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
13728     dlls/user/tests ) test -d "dlls/user/tests" || ({ echo "$as_me:$LINENO: creating dlls/user/tests" >&5
13729 echo "$as_me: creating dlls/user/tests" >&6;} && mkdir "dlls/user/tests") ;;
13730     dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
13731 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
13732     dlls/winsock/tests ) test -d "dlls/winsock/tests" || ({ echo "$as_me:$LINENO: creating dlls/winsock/tests" >&5
13733 echo "$as_me: creating dlls/winsock/tests" >&6;} && mkdir "dlls/winsock/tests") ;;
13734     include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
13735 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
13736     programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
13737 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
13738     programs/winetest/tests ) test -d "programs/winetest/tests" || ({ echo "$as_me:$LINENO: creating programs/winetest/tests" >&5
13739 echo "$as_me: creating programs/winetest/tests" >&6;} && mkdir "programs/winetest/tests") ;;
13740   esac
13741 done
13742 _ACEOF
13743
13744 cat >>$CONFIG_STATUS <<\_ACEOF
13745
13746 { (exit 0); exit 0; }
13747 _ACEOF
13748 chmod +x $CONFIG_STATUS
13749 ac_clean_files=$ac_clean_files_save
13750
13751
13752 # configure is writing to config.log, and then calls config.status.
13753 # config.status does its own redirection, appending to config.log.
13754 # Unfortunately, on DOS this fails, as config.log is still kept open
13755 # by configure, so config.status won't be able to write to it; its
13756 # output is simply discarded.  So we exec the FD to /dev/null,
13757 # effectively closing config.log, so it can be properly (re)opened and
13758 # appended to by config.status.  When coming back to configure, we
13759 # need to make the FD available again.
13760 if test "$no_create" != yes; then
13761   ac_cs_success=:
13762   exec 5>/dev/null
13763   $SHELL $CONFIG_STATUS || ac_cs_success=false
13764   exec 5>>config.log
13765   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13766   # would make configure fail if this is the last instruction.
13767   $ac_cs_success || { (exit 1); exit 1; }
13768 fi
13769
13770
13771 if test "$have_x" = "no"
13772 then
13773   echo
13774   echo "*** Warning: X development files not found. Wine will be built without"
13775   echo "*** X support, which currently does not work, and would probably not be"
13776   echo "*** what you want anyway. You will need to install devel packages of"
13777   echo "*** Xlib/Xfree86 at the very least."
13778 fi
13779
13780 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
13781 then
13782   echo
13783   echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
13784   echo "*** terminal resize support. Consider upgrading ncurses."
13785 fi
13786
13787 if test "$wine_cv_libc_reentrant" = "no"
13788 then
13789   echo
13790   echo "*** Warning: non-reentrant libc detected. Wine will be built without"
13791   echo "*** threading support. Consider upgrading libc to a more recent"
13792   echo "*** reentrant version of libc."
13793 fi
13794
13795 if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
13796 then
13797   echo
13798   echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
13799   echo "*** applications won't work properly. You should upgrade your X11 library."
13800 fi
13801
13802 if test "$wine_cv_opengl_version_OK" = "no"
13803 then
13804   echo
13805   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
13806   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
13807 fi
13808
13809 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x"
13810 then
13811   echo
13812   echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
13813   echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
13814   echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
13815   echo "*** start configure with '--enable-opengl' to force OpenGL support."
13816 fi
13817
13818 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes"
13819 then
13820   echo
13821   echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
13822   echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
13823   echo "*** support before reporting bugs."
13824 fi
13825
13826 if test "$wine_cv_warn_cups_h" = "yes"
13827 then
13828   echo
13829   echo "*** Note: You have cups runtime libraries, but no development"
13830   echo "*** libraries. Install the cups-devel package or whichever package"
13831   echo "*** contains cups.h to enable CUPS support in Wine."
13832 fi
13833
13834 if test "$wine_cv_msg_freetype" = "yes"
13835 then
13836   echo
13837   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
13838   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
13839   echo "*** freetype-devel package (or its equivalent on your distribution) to"
13840   echo "*** enable Wine to use TrueType fonts."
13841 fi
13842
13843 echo
13844 echo "Configure finished.  Do 'make depend && make' to compile Wine."
13845 echo
13846