- Move SetSystemTime, GetTimeZoneInformation and
[wine/multimedia.git] / configure
blobc8e01fac549da542f06a430156a0e145a58ce939
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54 for Wine 20021031.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
43 else
44 $as_unset $as_var
46 done
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
50 as_expr=expr
51 else
52 as_expr=false
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56 as_basename=basename
57 else
58 as_basename=false
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
68 echo X/"$0" |
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
72 s/.*/./; q'`
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
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
93 rm -f conftest.sh
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
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
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
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; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143 CONFIG_SHELL=$as_dir/$as_base
144 export CONFIG_SHELL
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146 fi;;
147 esac
148 done
149 done
151 esac
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
162 sed '
164 s,$,-,
165 : loop
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 t loop
168 s,-$,,
169 s,^['$as_cr_digits']*\n,,
170 ' >$as_me.lineno &&
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
178 . ./$as_me.lineno
179 # Exit status is that of the last command.
180 exit
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T=' ' ;;
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192 as_expr=expr
193 else
194 as_expr=false
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
204 as_ln_s='cp -p'
205 else
206 as_ln_s='ln -s'
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209 as_ln_s=ln
210 else
211 as_ln_s='cp -p'
213 rm -f conf$$ conf$$.exe conf$$.file
215 if mkdir -p . 2>/dev/null; then
216 as_mkdir_p=:
217 else
218 as_mkdir_p=false
221 as_executable_p="test -f"
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
230 # IFS
231 # We need space, tab and new line, in precisely that order.
232 as_nl='
234 IFS=" $as_nl"
236 # CDPATH.
237 $as_unset CDPATH
240 # Name of the host.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
245 exec 6>&1
248 # Initializations.
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
252 cross_compiling=no
253 subdirs=
254 MFLAGS=
255 MAKEFLAGS=
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
263 # Identity of this package.
264 PACKAGE_NAME='Wine'
265 PACKAGE_TARNAME='wine'
266 PACKAGE_VERSION='20021031'
267 PACKAGE_STRING='Wine 20021031'
268 PACKAGE_BUGREPORT=''
270 ac_unique_file="server/atom.c"
271 # Factoring default headers for most tests.
272 ac_includes_default="\
273 #include <stdio.h>
274 #if HAVE_SYS_TYPES_H
275 # include <sys/types.h>
276 #endif
277 #if HAVE_SYS_STAT_H
278 # include <sys/stat.h>
279 #endif
280 #if STDC_HEADERS
281 # include <stdlib.h>
282 # include <stddef.h>
283 #else
284 # if HAVE_STDLIB_H
285 # include <stdlib.h>
286 # endif
287 #endif
288 #if HAVE_STRING_H
289 # if !STDC_HEADERS && HAVE_MEMORY_H
290 # include <memory.h>
291 # endif
292 # include <string.h>
293 #endif
294 #if HAVE_STRINGS_H
295 # include <strings.h>
296 #endif
297 #if HAVE_INTTYPES_H
298 # include <inttypes.h>
299 #else
300 # if HAVE_STDINT_H
301 # include <stdint.h>
302 # endif
303 #endif
304 #if HAVE_UNISTD_H
305 # include <unistd.h>
306 #endif"
308 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LIBEXT OPTIONS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S LN C2MAN LDCONFIG LINT LINTFLAGS DB2HTML DB2PDF DB2PS JPEGLIB EGREP XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED DLLWRAP ac_ct_DLLWRAP CROSSTEST CROSSCC DLLTOOL LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS'
309 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_PROG_RULES'
311 # Initialize some variables set by options.
312 ac_init_help=
313 ac_init_version=false
314 # The variables have the same names as the options, with
315 # dashes changed to underlines.
316 cache_file=/dev/null
317 exec_prefix=NONE
318 no_create=
319 no_recursion=
320 prefix=NONE
321 program_prefix=NONE
322 program_suffix=NONE
323 program_transform_name=s,x,x,
324 silent=
325 site=
326 srcdir=
327 verbose=
328 x_includes=NONE
329 x_libraries=NONE
331 # Installation directory options.
332 # These are left unexpanded so users can "make install exec_prefix=/foo"
333 # and all the variables that are supposed to be based on exec_prefix
334 # by default will actually change.
335 # Use braces instead of parens because sh, perl, etc. also accept them.
336 bindir='${exec_prefix}/bin'
337 sbindir='${exec_prefix}/sbin'
338 libexecdir='${exec_prefix}/libexec'
339 datadir='${prefix}/share'
340 sysconfdir='${prefix}/etc'
341 sharedstatedir='${prefix}/com'
342 localstatedir='${prefix}/var'
343 libdir='${exec_prefix}/lib'
344 includedir='${prefix}/include'
345 oldincludedir='/usr/include'
346 infodir='${prefix}/info'
347 mandir='${prefix}/man'
349 ac_prev=
350 for ac_option
352 # If the previous option needs an argument, assign it.
353 if test -n "$ac_prev"; then
354 eval "$ac_prev=\$ac_option"
355 ac_prev=
356 continue
359 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
361 # Accept the important Cygnus configure options, so we can diagnose typos.
363 case $ac_option in
365 -bindir | --bindir | --bindi | --bind | --bin | --bi)
366 ac_prev=bindir ;;
367 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
368 bindir=$ac_optarg ;;
370 -build | --build | --buil | --bui | --bu)
371 ac_prev=build_alias ;;
372 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
373 build_alias=$ac_optarg ;;
375 -cache-file | --cache-file | --cache-fil | --cache-fi \
376 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
377 ac_prev=cache_file ;;
378 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
379 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
380 cache_file=$ac_optarg ;;
382 --config-cache | -C)
383 cache_file=config.cache ;;
385 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
386 ac_prev=datadir ;;
387 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
388 | --da=*)
389 datadir=$ac_optarg ;;
391 -disable-* | --disable-*)
392 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
393 # Reject names that are not valid shell variable names.
394 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396 { (exit 1); exit 1; }; }
397 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398 eval "enable_$ac_feature=no" ;;
400 -enable-* | --enable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 case $ac_option in
408 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
409 *) ac_optarg=yes ;;
410 esac
411 eval "enable_$ac_feature='$ac_optarg'" ;;
413 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
414 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
415 | --exec | --exe | --ex)
416 ac_prev=exec_prefix ;;
417 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
418 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
419 | --exec=* | --exe=* | --ex=*)
420 exec_prefix=$ac_optarg ;;
422 -gas | --gas | --ga | --g)
423 # Obsolete; use --with-gas.
424 with_gas=yes ;;
426 -help | --help | --hel | --he | -h)
427 ac_init_help=long ;;
428 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
429 ac_init_help=recursive ;;
430 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
431 ac_init_help=short ;;
433 -host | --host | --hos | --ho)
434 ac_prev=host_alias ;;
435 -host=* | --host=* | --hos=* | --ho=*)
436 host_alias=$ac_optarg ;;
438 -includedir | --includedir | --includedi | --included | --include \
439 | --includ | --inclu | --incl | --inc)
440 ac_prev=includedir ;;
441 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
442 | --includ=* | --inclu=* | --incl=* | --inc=*)
443 includedir=$ac_optarg ;;
445 -infodir | --infodir | --infodi | --infod | --info | --inf)
446 ac_prev=infodir ;;
447 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
448 infodir=$ac_optarg ;;
450 -libdir | --libdir | --libdi | --libd)
451 ac_prev=libdir ;;
452 -libdir=* | --libdir=* | --libdi=* | --libd=*)
453 libdir=$ac_optarg ;;
455 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
456 | --libexe | --libex | --libe)
457 ac_prev=libexecdir ;;
458 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
459 | --libexe=* | --libex=* | --libe=*)
460 libexecdir=$ac_optarg ;;
462 -localstatedir | --localstatedir | --localstatedi | --localstated \
463 | --localstate | --localstat | --localsta | --localst \
464 | --locals | --local | --loca | --loc | --lo)
465 ac_prev=localstatedir ;;
466 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
467 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
468 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
469 localstatedir=$ac_optarg ;;
471 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
472 ac_prev=mandir ;;
473 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
474 mandir=$ac_optarg ;;
476 -nfp | --nfp | --nf)
477 # Obsolete; use --without-fp.
478 with_fp=no ;;
480 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481 | --no-cr | --no-c | -n)
482 no_create=yes ;;
484 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
485 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
486 no_recursion=yes ;;
488 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
489 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
490 | --oldin | --oldi | --old | --ol | --o)
491 ac_prev=oldincludedir ;;
492 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
493 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
494 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
495 oldincludedir=$ac_optarg ;;
497 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
498 ac_prev=prefix ;;
499 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
500 prefix=$ac_optarg ;;
502 -program-prefix | --program-prefix | --program-prefi | --program-pref \
503 | --program-pre | --program-pr | --program-p)
504 ac_prev=program_prefix ;;
505 -program-prefix=* | --program-prefix=* | --program-prefi=* \
506 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
507 program_prefix=$ac_optarg ;;
509 -program-suffix | --program-suffix | --program-suffi | --program-suff \
510 | --program-suf | --program-su | --program-s)
511 ac_prev=program_suffix ;;
512 -program-suffix=* | --program-suffix=* | --program-suffi=* \
513 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
514 program_suffix=$ac_optarg ;;
516 -program-transform-name | --program-transform-name \
517 | --program-transform-nam | --program-transform-na \
518 | --program-transform-n | --program-transform- \
519 | --program-transform | --program-transfor \
520 | --program-transfo | --program-transf \
521 | --program-trans | --program-tran \
522 | --progr-tra | --program-tr | --program-t)
523 ac_prev=program_transform_name ;;
524 -program-transform-name=* | --program-transform-name=* \
525 | --program-transform-nam=* | --program-transform-na=* \
526 | --program-transform-n=* | --program-transform-=* \
527 | --program-transform=* | --program-transfor=* \
528 | --program-transfo=* | --program-transf=* \
529 | --program-trans=* | --program-tran=* \
530 | --progr-tra=* | --program-tr=* | --program-t=*)
531 program_transform_name=$ac_optarg ;;
533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
534 | -silent | --silent | --silen | --sile | --sil)
535 silent=yes ;;
537 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
538 ac_prev=sbindir ;;
539 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
540 | --sbi=* | --sb=*)
541 sbindir=$ac_optarg ;;
543 -sharedstatedir | --sharedstatedir | --sharedstatedi \
544 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
545 | --sharedst | --shareds | --shared | --share | --shar \
546 | --sha | --sh)
547 ac_prev=sharedstatedir ;;
548 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
549 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
550 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
551 | --sha=* | --sh=*)
552 sharedstatedir=$ac_optarg ;;
554 -site | --site | --sit)
555 ac_prev=site ;;
556 -site=* | --site=* | --sit=*)
557 site=$ac_optarg ;;
559 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
560 ac_prev=srcdir ;;
561 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
562 srcdir=$ac_optarg ;;
564 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
565 | --syscon | --sysco | --sysc | --sys | --sy)
566 ac_prev=sysconfdir ;;
567 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
568 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
569 sysconfdir=$ac_optarg ;;
571 -target | --target | --targe | --targ | --tar | --ta | --t)
572 ac_prev=target_alias ;;
573 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
574 target_alias=$ac_optarg ;;
576 -v | -verbose | --verbose | --verbos | --verbo | --verb)
577 verbose=yes ;;
579 -version | --version | --versio | --versi | --vers | -V)
580 ac_init_version=: ;;
582 -with-* | --with-*)
583 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
584 # Reject names that are not valid shell variable names.
585 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
586 { echo "$as_me: error: invalid package name: $ac_package" >&2
587 { (exit 1); exit 1; }; }
588 ac_package=`echo $ac_package| sed 's/-/_/g'`
589 case $ac_option in
590 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
591 *) ac_optarg=yes ;;
592 esac
593 eval "with_$ac_package='$ac_optarg'" ;;
595 -without-* | --without-*)
596 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid package name: $ac_package" >&2
600 { (exit 1); exit 1; }; }
601 ac_package=`echo $ac_package | sed 's/-/_/g'`
602 eval "with_$ac_package=no" ;;
604 --x)
605 # Obsolete; use --with-x.
606 with_x=yes ;;
608 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
609 | --x-incl | --x-inc | --x-in | --x-i)
610 ac_prev=x_includes ;;
611 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
612 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
613 x_includes=$ac_optarg ;;
615 -x-libraries | --x-libraries | --x-librarie | --x-librari \
616 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
617 ac_prev=x_libraries ;;
618 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
619 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
620 x_libraries=$ac_optarg ;;
622 -*) { echo "$as_me: error: unrecognized option: $ac_option
623 Try \`$0 --help' for more information." >&2
624 { (exit 1); exit 1; }; }
627 *=*)
628 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
629 # Reject names that are not valid shell variable names.
630 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
631 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
632 { (exit 1); exit 1; }; }
633 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
634 eval "$ac_envvar='$ac_optarg'"
635 export $ac_envvar ;;
638 # FIXME: should be removed in autoconf 3.0.
639 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
640 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
641 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
642 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
645 esac
646 done
648 if test -n "$ac_prev"; then
649 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
650 { echo "$as_me: error: missing argument to $ac_option" >&2
651 { (exit 1); exit 1; }; }
654 # Be sure to have absolute paths.
655 for ac_var in exec_prefix prefix
657 eval ac_val=$`echo $ac_var`
658 case $ac_val in
659 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
660 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661 { (exit 1); exit 1; }; };;
662 esac
663 done
665 # Be sure to have absolute paths.
666 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
667 localstatedir libdir includedir oldincludedir infodir mandir
669 eval ac_val=$`echo $ac_var`
670 case $ac_val in
671 [\\/$]* | ?:[\\/]* ) ;;
672 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
673 { (exit 1); exit 1; }; };;
674 esac
675 done
677 # There might be people who depend on the old broken behavior: `$host'
678 # used to hold the argument of --host etc.
679 # FIXME: To remove some day.
680 build=$build_alias
681 host=$host_alias
682 target=$target_alias
684 # FIXME: To remove some day.
685 if test "x$host_alias" != x; then
686 if test "x$build_alias" = x; then
687 cross_compiling=maybe
688 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
689 If a cross compiler is detected then cross compile mode will be used." >&2
690 elif test "x$build_alias" != "x$host_alias"; then
691 cross_compiling=yes
695 ac_tool_prefix=
696 test -n "$host_alias" && ac_tool_prefix=$host_alias-
698 test "$silent" = yes && exec 6>/dev/null
701 # Find the source files, if location was not specified.
702 if test -z "$srcdir"; then
703 ac_srcdir_defaulted=yes
704 # Try the directory containing this script, then its parent.
705 ac_confdir=`(dirname "$0") 2>/dev/null ||
706 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
707 X"$0" : 'X\(//\)[^/]' \| \
708 X"$0" : 'X\(//\)$' \| \
709 X"$0" : 'X\(/\)' \| \
710 . : '\(.\)' 2>/dev/null ||
711 echo X"$0" |
712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
714 /^X\(\/\/\)$/{ s//\1/; q; }
715 /^X\(\/\).*/{ s//\1/; q; }
716 s/.*/./; q'`
717 srcdir=$ac_confdir
718 if test ! -r $srcdir/$ac_unique_file; then
719 srcdir=..
721 else
722 ac_srcdir_defaulted=no
724 if test ! -r $srcdir/$ac_unique_file; then
725 if test "$ac_srcdir_defaulted" = yes; then
726 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
727 { (exit 1); exit 1; }; }
728 else
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
730 { (exit 1); exit 1; }; }
733 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
734 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
735 { (exit 1); exit 1; }; }
736 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
737 ac_env_build_alias_set=${build_alias+set}
738 ac_env_build_alias_value=$build_alias
739 ac_cv_env_build_alias_set=${build_alias+set}
740 ac_cv_env_build_alias_value=$build_alias
741 ac_env_host_alias_set=${host_alias+set}
742 ac_env_host_alias_value=$host_alias
743 ac_cv_env_host_alias_set=${host_alias+set}
744 ac_cv_env_host_alias_value=$host_alias
745 ac_env_target_alias_set=${target_alias+set}
746 ac_env_target_alias_value=$target_alias
747 ac_cv_env_target_alias_set=${target_alias+set}
748 ac_cv_env_target_alias_value=$target_alias
749 ac_env_CC_set=${CC+set}
750 ac_env_CC_value=$CC
751 ac_cv_env_CC_set=${CC+set}
752 ac_cv_env_CC_value=$CC
753 ac_env_CFLAGS_set=${CFLAGS+set}
754 ac_env_CFLAGS_value=$CFLAGS
755 ac_cv_env_CFLAGS_set=${CFLAGS+set}
756 ac_cv_env_CFLAGS_value=$CFLAGS
757 ac_env_LDFLAGS_set=${LDFLAGS+set}
758 ac_env_LDFLAGS_value=$LDFLAGS
759 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
760 ac_cv_env_LDFLAGS_value=$LDFLAGS
761 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
762 ac_env_CPPFLAGS_value=$CPPFLAGS
763 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
764 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
765 ac_env_CPP_set=${CPP+set}
766 ac_env_CPP_value=$CPP
767 ac_cv_env_CPP_set=${CPP+set}
768 ac_cv_env_CPP_value=$CPP
771 # Report the --help message.
773 if test "$ac_init_help" = "long"; then
774 # Omit some internal or obsolete options to make the list less imposing.
775 # This message is too long to be a string in the A/UX 3.1 sh.
776 cat <<_ACEOF
777 \`configure' configures Wine 20021031 to adapt to many kinds of systems.
779 Usage: $0 [OPTION]... [VAR=VALUE]...
781 To assign environment variables (e.g., CC, CFLAGS...), specify them as
782 VAR=VALUE. See below for descriptions of some of the useful variables.
784 Defaults for the options are specified in brackets.
786 Configuration:
787 -h, --help display this help and exit
788 --help=short display options specific to this package
789 --help=recursive display the short help of all the included packages
790 -V, --version display version information and exit
791 -q, --quiet, --silent do not print \`checking...' messages
792 --cache-file=FILE cache test results in FILE [disabled]
793 -C, --config-cache alias for \`--cache-file=config.cache'
794 -n, --no-create do not create output files
795 --srcdir=DIR find the sources in DIR [configure dir or \`..']
797 _ACEOF
799 cat <<_ACEOF
800 Installation directories:
801 --prefix=PREFIX install architecture-independent files in PREFIX
802 [$ac_default_prefix]
803 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
804 [PREFIX]
806 By default, \`make install' will install all the files in
807 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
808 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
809 for instance \`--prefix=\$HOME'.
811 For better control, use the options below.
813 Fine tuning of the installation directories:
814 --bindir=DIR user executables [EPREFIX/bin]
815 --sbindir=DIR system admin executables [EPREFIX/sbin]
816 --libexecdir=DIR program executables [EPREFIX/libexec]
817 --datadir=DIR read-only architecture-independent data [PREFIX/share]
818 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
819 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
820 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
821 --libdir=DIR object code libraries [EPREFIX/lib]
822 --includedir=DIR C header files [PREFIX/include]
823 --oldincludedir=DIR C header files for non-gcc [/usr/include]
824 --infodir=DIR info documentation [PREFIX/info]
825 --mandir=DIR man documentation [PREFIX/man]
826 _ACEOF
828 cat <<\_ACEOF
830 X features:
831 --x-includes=DIR X include files are in DIR
832 --x-libraries=DIR X library files are in DIR
834 System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 _ACEOF
840 if test -n "$ac_init_help"; then
841 case $ac_init_help in
842 short | recursive ) echo "Configuration of Wine 20021031:";;
843 esac
844 cat <<\_ACEOF
846 Optional Features:
847 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
848 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
849 --disable-win16 do not include Win16 support
850 --disable-debug compile out all debugging messages
851 --disable-trace compile out TRACE messages
853 Optional Packages:
854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
856 --without-opengl do not use OpenGL
857 --without-curses do not use curses
858 --with-wine-tools=<dir> use Wine tools from directory <dir>
859 --with-x use the X Window System
861 Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
868 CPP C preprocessor
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
873 _ACEOF
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
878 ac_popdir=`pwd`
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
881 ac_builddir=.
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888 ac_dir_suffix= ac_top_builddir=
891 case $srcdir in
892 .) # No --srcdir option. We are building in place.
893 ac_srcdir=.
894 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=.
896 else
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 fi ;;
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
902 *) # Relative path.
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
906 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
907 # absolute.
908 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
909 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
910 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
911 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913 cd $ac_dir
914 # Check for guested configure; otherwise get Cygnus style configure.
915 if test -f $ac_srcdir/configure.gnu; then
916 echo
917 $SHELL $ac_srcdir/configure.gnu --help=recursive
918 elif test -f $ac_srcdir/configure; then
919 echo
920 $SHELL $ac_srcdir/configure --help=recursive
921 elif test -f $ac_srcdir/configure.ac ||
922 test -f $ac_srcdir/configure.in; then
923 echo
924 $ac_configure --help
925 else
926 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
928 cd $ac_popdir
929 done
932 test -n "$ac_init_help" && exit 0
933 if $ac_init_version; then
934 cat <<\_ACEOF
935 Wine configure 20021031
936 generated by GNU Autoconf 2.54
938 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
939 Free Software Foundation, Inc.
940 This configure script is free software; the Free Software Foundation
941 gives unlimited permission to copy, distribute and modify it.
942 _ACEOF
943 exit 0
945 exec 5>config.log
946 cat >&5 <<_ACEOF
947 This file contains any messages produced by compilers while
948 running configure, to aid debugging if configure makes a mistake.
950 It was created by Wine $as_me 20021031, which was
951 generated by GNU Autoconf 2.54. Invocation command line was
953 $ $0 $@
955 _ACEOF
957 cat <<_ASUNAME
958 ## --------- ##
959 ## Platform. ##
960 ## --------- ##
962 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
963 uname -m = `(uname -m) 2>/dev/null || echo unknown`
964 uname -r = `(uname -r) 2>/dev/null || echo unknown`
965 uname -s = `(uname -s) 2>/dev/null || echo unknown`
966 uname -v = `(uname -v) 2>/dev/null || echo unknown`
968 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
969 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
971 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
972 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
973 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
974 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
975 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
976 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
977 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
979 _ASUNAME
981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
982 for as_dir in $PATH
984 IFS=$as_save_IFS
985 test -z "$as_dir" && as_dir=.
986 echo "PATH: $as_dir"
987 done
989 } >&5
991 cat >&5 <<_ACEOF
994 ## ----------- ##
995 ## Core tests. ##
996 ## ----------- ##
998 _ACEOF
1001 # Keep a trace of the command line.
1002 # Strip out --no-create and --no-recursion so they do not pile up.
1003 # Also quote any args containing shell meta-characters.
1004 ac_configure_args=
1005 ac_sep=
1006 for ac_arg
1008 case $ac_arg in
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n ) continue ;;
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 continue ;;
1014 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1015 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1016 esac
1017 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1018 # Get rid of the leading space.
1019 ac_sep=" "
1020 done
1022 # When interrupted or exit'd, cleanup temporary files, and complete
1023 # config.log. We remove comments because anyway the quotes in there
1024 # would cause problems or look ugly.
1025 # WARNING: Be sure not to use single quotes in there, as some shells,
1026 # such as our DU 5.0 friend, will then `close' the trap.
1027 trap 'exit_status=$?
1028 # Save into config.log some information that might help in debugging.
1030 echo
1032 cat <<\_ASBOX
1033 ## ---------------- ##
1034 ## Cache variables. ##
1035 ## ---------------- ##
1036 _ASBOX
1037 echo
1038 # The following way of writing the cache mishandles newlines in values,
1040 (set) 2>&1 |
1041 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1042 *ac_space=\ *)
1043 sed -n \
1044 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1048 sed -n \
1049 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1051 esac;
1053 echo
1055 cat <<\_ASBOX
1056 ## ----------------- ##
1057 ## Output variables. ##
1058 ## ----------------- ##
1059 _ASBOX
1060 echo
1061 for ac_var in $ac_subst_vars
1063 eval ac_val=$`echo $ac_var`
1064 echo "$ac_var='"'"'$ac_val'"'"'"
1065 done | sort
1066 echo
1068 if test -n "$ac_subst_files"; then
1069 cat <<\_ASBOX
1070 ## ------------- ##
1071 ## Output files. ##
1072 ## ------------- ##
1073 _ASBOX
1074 echo
1075 for ac_var in $ac_subst_files
1077 eval ac_val=$`echo $ac_var`
1078 echo "$ac_var='"'"'$ac_val'"'"'"
1079 done | sort
1080 echo
1083 if test -s confdefs.h; then
1084 cat <<\_ASBOX
1085 ## ----------- ##
1086 ## confdefs.h. ##
1087 ## ----------- ##
1088 _ASBOX
1089 echo
1090 sed "/^$/d" confdefs.h | sort
1091 echo
1093 test "$ac_signal" != 0 &&
1094 echo "$as_me: caught signal $ac_signal"
1095 echo "$as_me: exit $exit_status"
1096 } >&5
1097 rm -f core core.* *.core &&
1098 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1099 exit $exit_status
1101 for ac_signal in 1 2 13 15; do
1102 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1103 done
1104 ac_signal=0
1106 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1107 rm -rf conftest* confdefs.h
1108 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1109 echo >confdefs.h
1111 # Predefined preprocessor variables.
1113 cat >>confdefs.h <<_ACEOF
1114 #define PACKAGE_NAME "$PACKAGE_NAME"
1115 _ACEOF
1118 cat >>confdefs.h <<_ACEOF
1119 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1120 _ACEOF
1123 cat >>confdefs.h <<_ACEOF
1124 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1125 _ACEOF
1128 cat >>confdefs.h <<_ACEOF
1129 #define PACKAGE_STRING "$PACKAGE_STRING"
1130 _ACEOF
1133 cat >>confdefs.h <<_ACEOF
1134 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1135 _ACEOF
1138 # Let the site file select an alternate cache file if it wants to.
1139 # Prefer explicitly selected file to automatically selected ones.
1140 if test -z "$CONFIG_SITE"; then
1141 if test "x$prefix" != xNONE; then
1142 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1143 else
1144 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1147 for ac_site_file in $CONFIG_SITE; do
1148 if test -r "$ac_site_file"; then
1149 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1150 echo "$as_me: loading site script $ac_site_file" >&6;}
1151 sed 's/^/| /' "$ac_site_file" >&5
1152 . "$ac_site_file"
1154 done
1156 if test -r "$cache_file"; then
1157 # Some versions of bash will fail to source /dev/null (special
1158 # files actually), so we avoid doing that.
1159 if test -f "$cache_file"; then
1160 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1161 echo "$as_me: loading cache $cache_file" >&6;}
1162 case $cache_file in
1163 [\\/]* | ?:[\\/]* ) . $cache_file;;
1164 *) . ./$cache_file;;
1165 esac
1167 else
1168 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1169 echo "$as_me: creating cache $cache_file" >&6;}
1170 >$cache_file
1173 # Check that the precious variables saved in the cache have kept the same
1174 # value.
1175 ac_cache_corrupted=false
1176 for ac_var in `(set) 2>&1 |
1177 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1178 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1179 eval ac_new_set=\$ac_env_${ac_var}_set
1180 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1181 eval ac_new_val="\$ac_env_${ac_var}_value"
1182 case $ac_old_set,$ac_new_set in
1183 set,)
1184 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1185 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1186 ac_cache_corrupted=: ;;
1187 ,set)
1188 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1189 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1190 ac_cache_corrupted=: ;;
1191 ,);;
1193 if test "x$ac_old_val" != "x$ac_new_val"; then
1194 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1195 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1196 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1197 echo "$as_me: former value: $ac_old_val" >&2;}
1198 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1199 echo "$as_me: current value: $ac_new_val" >&2;}
1200 ac_cache_corrupted=:
1201 fi;;
1202 esac
1203 # Pass precious variables to config.status.
1204 if test "$ac_new_set" = set; then
1205 case $ac_new_val in
1206 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1207 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1208 *) ac_arg=$ac_var=$ac_new_val ;;
1209 esac
1210 case " $ac_configure_args " in
1211 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1212 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1213 esac
1215 done
1216 if $ac_cache_corrupted; then
1217 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1218 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1219 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1220 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1221 { (exit 1); exit 1; }; }
1224 ac_ext=c
1225 ac_cpp='$CPP $CPPFLAGS'
1226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1257 ac_config_headers="$ac_config_headers include/config.h"
1259 ac_aux_dir=
1260 for ac_dir in tools $srcdir/tools; do
1261 if test -f $ac_dir/install-sh; then
1262 ac_aux_dir=$ac_dir
1263 ac_install_sh="$ac_aux_dir/install-sh -c"
1264 break
1265 elif test -f $ac_dir/install.sh; then
1266 ac_aux_dir=$ac_dir
1267 ac_install_sh="$ac_aux_dir/install.sh -c"
1268 break
1269 elif test -f $ac_dir/shtool; then
1270 ac_aux_dir=$ac_dir
1271 ac_install_sh="$ac_aux_dir/shtool install -c"
1272 break
1274 done
1275 if test -z "$ac_aux_dir"; then
1276 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1277 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1278 { (exit 1); exit 1; }; }
1280 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1281 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1282 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1286 LIBEXT="so"
1289 # Check whether --enable-win16 or --disable-win16 was given.
1290 if test "${enable_win16+set}" = set; then
1291 enableval="$enable_win16"
1294 # Check whether --enable-debug or --disable-debug was given.
1295 if test "${enable_debug+set}" = set; then
1296 enableval="$enable_debug"
1299 # Check whether --enable-trace or --disable-trace was given.
1300 if test "${enable_trace+set}" = set; then
1301 enableval="$enable_trace"
1306 # Check whether --with-opengl or --without-opengl was given.
1307 if test "${with_opengl+set}" = set; then
1308 withval="$with_opengl"
1312 # Check whether --with-curses or --without-curses was given.
1313 if test "${with_curses+set}" = set; then
1314 withval="$with_curses"
1318 # Check whether --with-wine-tools or --without-wine-tools was given.
1319 if test "${with_wine_tools+set}" = set; then
1320 withval="$with_wine_tools"
1325 WIN16_FILES="\$(WIN16_FILES)"
1327 WIN16_INSTALL="\$(WIN16_INSTALL)"
1329 if test "x$enable_win16" = "xno"
1330 then
1331 WIN16_FILES=""
1332 WIN16_INSTALL=""
1334 if test "x$enable_debug" = "xno"
1335 then
1337 cat >>confdefs.h <<\_ACEOF
1338 #define NO_DEBUG_MSGS 1
1339 _ACEOF
1342 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1343 then
1345 cat >>confdefs.h <<\_ACEOF
1346 #define NO_TRACE_MSGS 1
1347 _ACEOF
1352 # Make sure we can run config.sub.
1353 $ac_config_sub sun4 >/dev/null 2>&1 ||
1354 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1355 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1356 { (exit 1); exit 1; }; }
1358 echo "$as_me:$LINENO: checking build system type" >&5
1359 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1360 if test "${ac_cv_build+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 else
1363 ac_cv_build_alias=$build_alias
1364 test -z "$ac_cv_build_alias" &&
1365 ac_cv_build_alias=`$ac_config_guess`
1366 test -z "$ac_cv_build_alias" &&
1367 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1368 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1369 { (exit 1); exit 1; }; }
1370 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1371 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1372 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1373 { (exit 1); exit 1; }; }
1376 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1377 echo "${ECHO_T}$ac_cv_build" >&6
1378 build=$ac_cv_build
1379 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1384 echo "$as_me:$LINENO: checking host system type" >&5
1385 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1386 if test "${ac_cv_host+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1388 else
1389 ac_cv_host_alias=$host_alias
1390 test -z "$ac_cv_host_alias" &&
1391 ac_cv_host_alias=$ac_cv_build_alias
1392 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1393 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1394 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1395 { (exit 1); exit 1; }; }
1398 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1399 echo "${ECHO_T}$ac_cv_host" >&6
1400 host=$ac_cv_host
1401 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1407 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1408 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1409 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 else
1412 cat >conftest.make <<\_ACEOF
1413 all:
1414 @echo 'ac_maketemp="${MAKE}"'
1415 _ACEOF
1416 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1417 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1418 if test -n "$ac_maketemp"; then
1419 eval ac_cv_prog_make_${ac_make}_set=yes
1420 else
1421 eval ac_cv_prog_make_${ac_make}_set=no
1423 rm -f conftest.make
1425 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1426 echo "$as_me:$LINENO: result: yes" >&5
1427 echo "${ECHO_T}yes" >&6
1428 SET_MAKE=
1429 else
1430 echo "$as_me:$LINENO: result: no" >&5
1431 echo "${ECHO_T}no" >&6
1432 SET_MAKE="MAKE=${MAKE-make}"
1435 ac_ext=c
1436 ac_cpp='$CPP $CPPFLAGS'
1437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1440 if test -n "$ac_tool_prefix"; then
1441 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1442 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 else
1448 if test -n "$CC"; then
1449 ac_cv_prog_CC="$CC" # Let the user override the test.
1450 else
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 for as_dir in $PATH
1454 IFS=$as_save_IFS
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460 break 2
1462 done
1463 done
1467 CC=$ac_cv_prog_CC
1468 if test -n "$CC"; then
1469 echo "$as_me:$LINENO: result: $CC" >&5
1470 echo "${ECHO_T}$CC" >&6
1471 else
1472 echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1477 if test -z "$ac_cv_prog_CC"; then
1478 ac_ct_CC=$CC
1479 # Extract the first word of "gcc", so it can be a program name with args.
1480 set dummy gcc; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486 if test -n "$ac_ct_CC"; then
1487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1488 else
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490 for as_dir in $PATH
1492 IFS=$as_save_IFS
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496 ac_cv_prog_ac_ct_CC="gcc"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 break 2
1500 done
1501 done
1505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1506 if test -n "$ac_ct_CC"; then
1507 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1508 echo "${ECHO_T}$ac_ct_CC" >&6
1509 else
1510 echo "$as_me:$LINENO: result: no" >&5
1511 echo "${ECHO_T}no" >&6
1514 CC=$ac_ct_CC
1515 else
1516 CC="$ac_cv_prog_CC"
1519 if test -z "$CC"; then
1520 if test -n "$ac_tool_prefix"; then
1521 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1522 set dummy ${ac_tool_prefix}cc; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528 if test -n "$CC"; then
1529 ac_cv_prog_CC="$CC" # Let the user override the test.
1530 else
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 for as_dir in $PATH
1534 IFS=$as_save_IFS
1535 test -z "$as_dir" && as_dir=.
1536 for ac_exec_ext in '' $ac_executable_extensions; do
1537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538 ac_cv_prog_CC="${ac_tool_prefix}cc"
1539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540 break 2
1542 done
1543 done
1547 CC=$ac_cv_prog_CC
1548 if test -n "$CC"; then
1549 echo "$as_me:$LINENO: result: $CC" >&5
1550 echo "${ECHO_T}$CC" >&6
1551 else
1552 echo "$as_me:$LINENO: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1557 if test -z "$ac_cv_prog_CC"; then
1558 ac_ct_CC=$CC
1559 # Extract the first word of "cc", so it can be a program name with args.
1560 set dummy cc; ac_word=$2
1561 echo "$as_me:$LINENO: checking for $ac_word" >&5
1562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1565 else
1566 if test -n "$ac_ct_CC"; then
1567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1568 else
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 for as_dir in $PATH
1572 IFS=$as_save_IFS
1573 test -z "$as_dir" && as_dir=.
1574 for ac_exec_ext in '' $ac_executable_extensions; do
1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576 ac_cv_prog_ac_ct_CC="cc"
1577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 break 2
1580 done
1581 done
1585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1586 if test -n "$ac_ct_CC"; then
1587 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1588 echo "${ECHO_T}$ac_ct_CC" >&6
1589 else
1590 echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1594 CC=$ac_ct_CC
1595 else
1596 CC="$ac_cv_prog_CC"
1600 if test -z "$CC"; then
1601 # Extract the first word of "cc", so it can be a program name with args.
1602 set dummy cc; ac_word=$2
1603 echo "$as_me:$LINENO: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_CC+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 else
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1610 else
1611 ac_prog_rejected=no
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 for as_dir in $PATH
1615 IFS=$as_save_IFS
1616 test -z "$as_dir" && as_dir=.
1617 for ac_exec_ext in '' $ac_executable_extensions; do
1618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1619 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1620 ac_prog_rejected=yes
1621 continue
1623 ac_cv_prog_CC="cc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 break 2
1627 done
1628 done
1630 if test $ac_prog_rejected = yes; then
1631 # We found a bogon in the path, so make sure we never use it.
1632 set dummy $ac_cv_prog_CC
1633 shift
1634 if test $# != 0; then
1635 # We chose a different compiler from the bogus one.
1636 # However, it has the same basename, so the bogon will be chosen
1637 # first if we set CC to just the basename; use the full file name.
1638 shift
1639 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1644 CC=$ac_cv_prog_CC
1645 if test -n "$CC"; then
1646 echo "$as_me:$LINENO: result: $CC" >&5
1647 echo "${ECHO_T}$CC" >&6
1648 else
1649 echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1654 if test -z "$CC"; then
1655 if test -n "$ac_tool_prefix"; then
1656 for ac_prog in cl
1658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1660 echo "$as_me:$LINENO: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_CC+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 else
1665 if test -n "$CC"; then
1666 ac_cv_prog_CC="$CC" # Let the user override the test.
1667 else
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 for as_dir in $PATH
1671 IFS=$as_save_IFS
1672 test -z "$as_dir" && as_dir=.
1673 for ac_exec_ext in '' $ac_executable_extensions; do
1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 break 2
1679 done
1680 done
1684 CC=$ac_cv_prog_CC
1685 if test -n "$CC"; then
1686 echo "$as_me:$LINENO: result: $CC" >&5
1687 echo "${ECHO_T}$CC" >&6
1688 else
1689 echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1693 test -n "$CC" && break
1694 done
1696 if test -z "$CC"; then
1697 ac_ct_CC=$CC
1698 for ac_prog in cl
1700 # Extract the first word of "$ac_prog", so it can be a program name with args.
1701 set dummy $ac_prog; ac_word=$2
1702 echo "$as_me:$LINENO: checking for $ac_word" >&5
1703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707 if test -n "$ac_ct_CC"; then
1708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1709 else
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 for as_dir in $PATH
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 for ac_exec_ext in '' $ac_executable_extensions; do
1716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717 ac_cv_prog_ac_ct_CC="$ac_prog"
1718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719 break 2
1721 done
1722 done
1726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1727 if test -n "$ac_ct_CC"; then
1728 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1729 echo "${ECHO_T}$ac_ct_CC" >&6
1730 else
1731 echo "$as_me:$LINENO: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1735 test -n "$ac_ct_CC" && break
1736 done
1738 CC=$ac_ct_CC
1744 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1745 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1746 { (exit 1); exit 1; }; }
1748 # Provide some information about the compiler.
1749 echo "$as_me:$LINENO:" \
1750 "checking for C compiler version" >&5
1751 ac_compiler=`set X $ac_compile; echo $2`
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1753 (eval $ac_compiler --version </dev/null >&5) 2>&5
1754 ac_status=$?
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1758 (eval $ac_compiler -v </dev/null >&5) 2>&5
1759 ac_status=$?
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }
1762 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1763 (eval $ac_compiler -V </dev/null >&5) 2>&5
1764 ac_status=$?
1765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1766 (exit $ac_status); }
1768 cat >conftest.$ac_ext <<_ACEOF
1769 #line $LINENO "configure"
1770 #include "confdefs.h"
1773 main ()
1777 return 0;
1779 _ACEOF
1780 ac_clean_files_save=$ac_clean_files
1781 ac_clean_files="$ac_clean_files a.out a.exe"
1782 # Try to create an executable without -o first, disregard a.out.
1783 # It will help us diagnose broken compilers, and finding out an intuition
1784 # of exeext.
1785 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1786 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1787 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1788 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1789 (eval $ac_link_default) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; then
1793 # Find the output, starting from the most likely. This scheme is
1794 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1795 # resort.
1797 # Be careful to initialize this variable, since it used to be cached.
1798 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799 ac_cv_exeext=
1800 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1801 test -f "$ac_file" || continue
1802 case $ac_file in
1803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1804 a.out ) # We found the default executable, but exeext='' is most
1805 # certainly right.
1806 break;;
1807 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1808 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1809 export ac_cv_exeext
1810 break;;
1811 * ) break;;
1812 esac
1813 done
1814 else
1815 echo "$as_me: failed program was:" >&5
1816 cat conftest.$ac_ext >&5
1817 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1818 check \`config.log' for details." >&5
1819 echo "$as_me: error: C compiler cannot create executables
1820 check \`config.log' for details." >&2;}
1821 { (exit 77); exit 77; }; }
1824 ac_exeext=$ac_cv_exeext
1825 echo "$as_me:$LINENO: result: $ac_file" >&5
1826 echo "${ECHO_T}$ac_file" >&6
1828 # Check the compiler produces executables we can run. If not, either
1829 # the compiler is broken, or we cross compile.
1830 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1831 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1832 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1833 # If not cross compiling, check that we can run a simple program.
1834 if test "$cross_compiling" != yes; then
1835 if { ac_try='./$ac_file'
1836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1837 (eval $ac_try) 2>&5
1838 ac_status=$?
1839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840 (exit $ac_status); }; }; then
1841 cross_compiling=no
1842 else
1843 if test "$cross_compiling" = maybe; then
1844 cross_compiling=yes
1845 else
1846 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1847 If you meant to cross compile, use \`--host'." >&5
1848 echo "$as_me: error: cannot run C compiled programs.
1849 If you meant to cross compile, use \`--host'." >&2;}
1850 { (exit 1); exit 1; }; }
1854 echo "$as_me:$LINENO: result: yes" >&5
1855 echo "${ECHO_T}yes" >&6
1857 rm -f a.out a.exe conftest$ac_cv_exeext
1858 ac_clean_files=$ac_clean_files_save
1859 # Check the compiler produces executables we can run. If not, either
1860 # the compiler is broken, or we cross compile.
1861 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1862 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1863 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1864 echo "${ECHO_T}$cross_compiling" >&6
1866 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1867 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1869 (eval $ac_link) 2>&5
1870 ac_status=$?
1871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872 (exit $ac_status); }; then
1873 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1874 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1875 # work properly (i.e., refer to `conftest.exe'), while it won't with
1876 # `rm'.
1877 for ac_file in conftest.exe conftest conftest.*; do
1878 test -f "$ac_file" || continue
1879 case $ac_file in
1880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1881 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1882 export ac_cv_exeext
1883 break;;
1884 * ) break;;
1885 esac
1886 done
1887 else
1888 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1889 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1890 { (exit 1); exit 1; }; }
1893 rm -f conftest$ac_cv_exeext
1894 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1895 echo "${ECHO_T}$ac_cv_exeext" >&6
1897 rm -f conftest.$ac_ext
1898 EXEEXT=$ac_cv_exeext
1899 ac_exeext=$EXEEXT
1900 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1901 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1902 if test "${ac_cv_objext+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905 cat >conftest.$ac_ext <<_ACEOF
1906 #line $LINENO "configure"
1907 #include "confdefs.h"
1910 main ()
1914 return 0;
1916 _ACEOF
1917 rm -f conftest.o conftest.obj
1918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1919 (eval $ac_compile) 2>&5
1920 ac_status=$?
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); }; then
1923 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1924 case $ac_file in
1925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1926 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1927 break;;
1928 esac
1929 done
1930 else
1931 echo "$as_me: failed program was:" >&5
1932 cat conftest.$ac_ext >&5
1933 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1934 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1935 { (exit 1); exit 1; }; }
1938 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1940 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1941 echo "${ECHO_T}$ac_cv_objext" >&6
1942 OBJEXT=$ac_cv_objext
1943 ac_objext=$OBJEXT
1944 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1945 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1946 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949 cat >conftest.$ac_ext <<_ACEOF
1950 #line $LINENO "configure"
1951 #include "confdefs.h"
1954 main ()
1956 #ifndef __GNUC__
1957 choke me
1958 #endif
1961 return 0;
1963 _ACEOF
1964 rm -f conftest.$ac_objext
1965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966 (eval $ac_compile) 2>&5
1967 ac_status=$?
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); } &&
1970 { ac_try='test -s conftest.$ac_objext'
1971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1972 (eval $ac_try) 2>&5
1973 ac_status=$?
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); }; }; then
1976 ac_compiler_gnu=yes
1977 else
1978 echo "$as_me: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1980 ac_compiler_gnu=no
1982 rm -f conftest.$ac_objext conftest.$ac_ext
1983 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1986 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1987 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1988 GCC=`test $ac_compiler_gnu = yes && echo yes`
1989 ac_test_CFLAGS=${CFLAGS+set}
1990 ac_save_CFLAGS=$CFLAGS
1991 CFLAGS="-g"
1992 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1993 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1994 if test "${ac_cv_prog_cc_g+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 else
1997 cat >conftest.$ac_ext <<_ACEOF
1998 #line $LINENO "configure"
1999 #include "confdefs.h"
2002 main ()
2006 return 0;
2008 _ACEOF
2009 rm -f conftest.$ac_objext
2010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2011 (eval $ac_compile) 2>&5
2012 ac_status=$?
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); } &&
2015 { ac_try='test -s conftest.$ac_objext'
2016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2017 (eval $ac_try) 2>&5
2018 ac_status=$?
2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020 (exit $ac_status); }; }; then
2021 ac_cv_prog_cc_g=yes
2022 else
2023 echo "$as_me: failed program was:" >&5
2024 cat conftest.$ac_ext >&5
2025 ac_cv_prog_cc_g=no
2027 rm -f conftest.$ac_objext conftest.$ac_ext
2029 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2030 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2031 if test "$ac_test_CFLAGS" = set; then
2032 CFLAGS=$ac_save_CFLAGS
2033 elif test $ac_cv_prog_cc_g = yes; then
2034 if test "$GCC" = yes; then
2035 CFLAGS="-g -O2"
2036 else
2037 CFLAGS="-g"
2039 else
2040 if test "$GCC" = yes; then
2041 CFLAGS="-O2"
2042 else
2043 CFLAGS=
2046 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2047 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2048 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 ac_cv_prog_cc_stdc=no
2052 ac_save_CC=$CC
2053 cat >conftest.$ac_ext <<_ACEOF
2054 #line $LINENO "configure"
2055 #include "confdefs.h"
2056 #include <stdarg.h>
2057 #include <stdio.h>
2058 #include <sys/types.h>
2059 #include <sys/stat.h>
2060 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2061 struct buf { int x; };
2062 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2063 static char *e (p, i)
2064 char **p;
2065 int i;
2067 return p[i];
2069 static char *f (char * (*g) (char **, int), char **p, ...)
2071 char *s;
2072 va_list v;
2073 va_start (v,p);
2074 s = g (p, va_arg (v,int));
2075 va_end (v);
2076 return s;
2078 int test (int i, double x);
2079 struct s1 {int (*f) (int a);};
2080 struct s2 {int (*f) (double a);};
2081 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2082 int argc;
2083 char **argv;
2085 main ()
2087 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2089 return 0;
2091 _ACEOF
2092 # Don't try gcc -ansi; that turns off useful extensions and
2093 # breaks some systems' header files.
2094 # AIX -qlanglvl=ansi
2095 # Ultrix and OSF/1 -std1
2096 # HP-UX 10.20 and later -Ae
2097 # HP-UX older versions -Aa -D_HPUX_SOURCE
2098 # SVR4 -Xc -D__EXTENSIONS__
2099 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2101 CC="$ac_save_CC $ac_arg"
2102 rm -f conftest.$ac_objext
2103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2104 (eval $ac_compile) 2>&5
2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); } &&
2108 { ac_try='test -s conftest.$ac_objext'
2109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110 (eval $ac_try) 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; }; then
2114 ac_cv_prog_cc_stdc=$ac_arg
2115 break
2116 else
2117 echo "$as_me: failed program was:" >&5
2118 cat conftest.$ac_ext >&5
2120 rm -f conftest.$ac_objext
2121 done
2122 rm -f conftest.$ac_ext conftest.$ac_objext
2123 CC=$ac_save_CC
2127 case "x$ac_cv_prog_cc_stdc" in
2128 x|xno)
2129 echo "$as_me:$LINENO: result: none needed" >&5
2130 echo "${ECHO_T}none needed" >&6 ;;
2132 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2133 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2134 CC="$CC $ac_cv_prog_cc_stdc" ;;
2135 esac
2137 # Some people use a C++ compiler to compile C. Since we use `exit',
2138 # in C++ we need to declare it. In case someone uses the same compiler
2139 # for both compiling C and C++ we need to have the C++ compiler decide
2140 # the declaration of exit, since it's the most demanding environment.
2141 cat >conftest.$ac_ext <<_ACEOF
2142 #ifndef __cplusplus
2143 choke me
2144 #endif
2145 _ACEOF
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148 (eval $ac_compile) 2>&5
2149 ac_status=$?
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
2152 { ac_try='test -s conftest.$ac_objext'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 (eval $ac_try) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2158 for ac_declaration in \
2160 '#include <stdlib.h>' \
2161 'extern "C" void std::exit (int) throw (); using std::exit;' \
2162 'extern "C" void std::exit (int); using std::exit;' \
2163 'extern "C" void exit (int) throw ();' \
2164 'extern "C" void exit (int);' \
2165 'void exit (int);'
2167 cat >conftest.$ac_ext <<_ACEOF
2168 #line $LINENO "configure"
2169 #include "confdefs.h"
2170 #include <stdlib.h>
2171 $ac_declaration
2173 main ()
2175 exit (42);
2177 return 0;
2179 _ACEOF
2180 rm -f conftest.$ac_objext
2181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2182 (eval $ac_compile) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
2186 { ac_try='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2193 else
2194 echo "$as_me: failed program was:" >&5
2195 cat conftest.$ac_ext >&5
2196 continue
2198 rm -f conftest.$ac_objext conftest.$ac_ext
2199 cat >conftest.$ac_ext <<_ACEOF
2200 #line $LINENO "configure"
2201 #include "confdefs.h"
2202 $ac_declaration
2204 main ()
2206 exit (42);
2208 return 0;
2210 _ACEOF
2211 rm -f conftest.$ac_objext
2212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2213 (eval $ac_compile) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); } &&
2217 { ac_try='test -s conftest.$ac_objext'
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 (eval $ac_try) 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; }; then
2223 break
2224 else
2225 echo "$as_me: failed program was:" >&5
2226 cat conftest.$ac_ext >&5
2228 rm -f conftest.$ac_objext conftest.$ac_ext
2229 done
2230 rm -f conftest*
2231 if test -n "$ac_declaration"; then
2232 echo '#ifdef __cplusplus' >>confdefs.h
2233 echo $ac_declaration >>confdefs.h
2234 echo '#endif' >>confdefs.h
2237 else
2238 echo "$as_me: failed program was:" >&5
2239 cat conftest.$ac_ext >&5
2241 rm -f conftest.$ac_objext conftest.$ac_ext
2242 ac_ext=c
2243 ac_cpp='$CPP $CPPFLAGS'
2244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2248 ac_ext=c
2249 ac_cpp='$CPP $CPPFLAGS'
2250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2253 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2254 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2255 # On Suns, sometimes $CPP names a directory.
2256 if test -n "$CPP" && test -d "$CPP"; then
2257 CPP=
2259 if test -z "$CPP"; then
2260 if test "${ac_cv_prog_CPP+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 else
2263 # Double quotes because CPP needs to be expanded
2264 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2266 ac_preproc_ok=false
2267 for ac_c_preproc_warn_flag in '' yes
2269 # Use a header file that comes with gcc, so configuring glibc
2270 # with a fresh cross-compiler works.
2271 # On the NeXT, cc -E runs the code through the compiler's parser,
2272 # not just through cpp. "Syntax error" is here to catch this case.
2273 cat >conftest.$ac_ext <<_ACEOF
2274 #line $LINENO "configure"
2275 #include "confdefs.h"
2276 #include <assert.h>
2277 Syntax error
2278 _ACEOF
2279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2281 ac_status=$?
2282 grep -v '^ *+' conftest.er1 >conftest.err
2283 rm -f conftest.er1
2284 cat conftest.err >&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); } >/dev/null; then
2287 if test -s conftest.err; then
2288 ac_cpp_err=$ac_c_preproc_warn_flag
2289 else
2290 ac_cpp_err=
2292 else
2293 ac_cpp_err=yes
2295 if test -z "$ac_cpp_err"; then
2297 else
2298 echo "$as_me: failed program was:" >&5
2299 cat conftest.$ac_ext >&5
2300 # Broken: fails on valid input.
2301 continue
2303 rm -f conftest.err conftest.$ac_ext
2305 # OK, works on sane cases. Now check whether non-existent headers
2306 # can be detected and how.
2307 cat >conftest.$ac_ext <<_ACEOF
2308 #line $LINENO "configure"
2309 #include "confdefs.h"
2310 #include <ac_nonexistent.h>
2311 _ACEOF
2312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2314 ac_status=$?
2315 grep -v '^ *+' conftest.er1 >conftest.err
2316 rm -f conftest.er1
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } >/dev/null; then
2320 if test -s conftest.err; then
2321 ac_cpp_err=$ac_c_preproc_warn_flag
2322 else
2323 ac_cpp_err=
2325 else
2326 ac_cpp_err=yes
2328 if test -z "$ac_cpp_err"; then
2329 # Broken: success on invalid input.
2330 continue
2331 else
2332 echo "$as_me: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2334 # Passes both tests.
2335 ac_preproc_ok=:
2336 break
2338 rm -f conftest.err conftest.$ac_ext
2340 done
2341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2342 rm -f conftest.err conftest.$ac_ext
2343 if $ac_preproc_ok; then
2344 break
2347 done
2348 ac_cv_prog_CPP=$CPP
2351 CPP=$ac_cv_prog_CPP
2352 else
2353 ac_cv_prog_CPP=$CPP
2355 echo "$as_me:$LINENO: result: $CPP" >&5
2356 echo "${ECHO_T}$CPP" >&6
2357 ac_preproc_ok=false
2358 for ac_c_preproc_warn_flag in '' yes
2360 # Use a header file that comes with gcc, so configuring glibc
2361 # with a fresh cross-compiler works.
2362 # On the NeXT, cc -E runs the code through the compiler's parser,
2363 # not just through cpp. "Syntax error" is here to catch this case.
2364 cat >conftest.$ac_ext <<_ACEOF
2365 #line $LINENO "configure"
2366 #include "confdefs.h"
2367 #include <assert.h>
2368 Syntax error
2369 _ACEOF
2370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2372 ac_status=$?
2373 grep -v '^ *+' conftest.er1 >conftest.err
2374 rm -f conftest.er1
2375 cat conftest.err >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } >/dev/null; then
2378 if test -s conftest.err; then
2379 ac_cpp_err=$ac_c_preproc_warn_flag
2380 else
2381 ac_cpp_err=
2383 else
2384 ac_cpp_err=yes
2386 if test -z "$ac_cpp_err"; then
2388 else
2389 echo "$as_me: failed program was:" >&5
2390 cat conftest.$ac_ext >&5
2391 # Broken: fails on valid input.
2392 continue
2394 rm -f conftest.err conftest.$ac_ext
2396 # OK, works on sane cases. Now check whether non-existent headers
2397 # can be detected and how.
2398 cat >conftest.$ac_ext <<_ACEOF
2399 #line $LINENO "configure"
2400 #include "confdefs.h"
2401 #include <ac_nonexistent.h>
2402 _ACEOF
2403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2405 ac_status=$?
2406 grep -v '^ *+' conftest.er1 >conftest.err
2407 rm -f conftest.er1
2408 cat conftest.err >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); } >/dev/null; then
2411 if test -s conftest.err; then
2412 ac_cpp_err=$ac_c_preproc_warn_flag
2413 else
2414 ac_cpp_err=
2416 else
2417 ac_cpp_err=yes
2419 if test -z "$ac_cpp_err"; then
2420 # Broken: success on invalid input.
2421 continue
2422 else
2423 echo "$as_me: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2425 # Passes both tests.
2426 ac_preproc_ok=:
2427 break
2429 rm -f conftest.err conftest.$ac_ext
2431 done
2432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2433 rm -f conftest.err conftest.$ac_ext
2434 if $ac_preproc_ok; then
2436 else
2437 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2438 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2439 { (exit 1); exit 1; }; }
2442 ac_ext=c
2443 ac_cpp='$CPP $CPPFLAGS'
2444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2449 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2450 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2451 if test "${wine_cv_toolsdir+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454 if test -z "$with_wine_tools"; then
2455 if test "$cross_compiling" = "yes"; then
2456 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2457 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2458 { (exit 1); exit 1; }; }
2459 else
2460 wine_cv_toolsdir="\$(TOPOBJDIR)"
2462 elif test -d "$with_wine_tools/tools/winebuild"; then
2463 case $with_wine_tools in
2464 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2465 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2466 esac
2467 else
2468 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2469 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2470 { (exit 1); exit 1; }; }
2473 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2474 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2475 TOOLSDIR=$wine_cv_toolsdir
2480 echo "$as_me:$LINENO: checking for X" >&5
2481 echo $ECHO_N "checking for X... $ECHO_C" >&6
2484 # Check whether --with-x or --without-x was given.
2485 if test "${with_x+set}" = set; then
2486 withval="$with_x"
2489 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2490 if test "x$with_x" = xno; then
2491 # The user explicitly disabled X.
2492 have_x=disabled
2493 else
2494 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2495 # Both variables are already set.
2496 have_x=yes
2497 else
2498 if test "${ac_cv_have_x+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501 # One or both of the vars are not set, and there is no cached value.
2502 ac_x_includes=no ac_x_libraries=no
2503 rm -fr conftest.dir
2504 if mkdir conftest.dir; then
2505 cd conftest.dir
2506 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2507 cat >Imakefile <<'_ACEOF'
2508 acfindx:
2509 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2510 _ACEOF
2511 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2512 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2513 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2514 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2515 for ac_extension in a so sl; do
2516 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2517 test -f $ac_im_libdir/libX11.$ac_extension; then
2518 ac_im_usrlibdir=$ac_im_libdir; break
2520 done
2521 # Screen out bogus values from the imake configuration. They are
2522 # bogus both because they are the default anyway, and because
2523 # using them would break gcc on systems where it needs fixed includes.
2524 case $ac_im_incroot in
2525 /usr/include) ;;
2526 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2527 esac
2528 case $ac_im_usrlibdir in
2529 /usr/lib | /lib) ;;
2530 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2531 esac
2533 cd ..
2534 rm -fr conftest.dir
2537 # Standard set of common directories for X headers.
2538 # Check X11 before X11Rn because it is often a symlink to the current release.
2539 ac_x_header_dirs='
2540 /usr/X11/include
2541 /usr/X11R6/include
2542 /usr/X11R5/include
2543 /usr/X11R4/include
2545 /usr/include/X11
2546 /usr/include/X11R6
2547 /usr/include/X11R5
2548 /usr/include/X11R4
2550 /usr/local/X11/include
2551 /usr/local/X11R6/include
2552 /usr/local/X11R5/include
2553 /usr/local/X11R4/include
2555 /usr/local/include/X11
2556 /usr/local/include/X11R6
2557 /usr/local/include/X11R5
2558 /usr/local/include/X11R4
2560 /usr/X386/include
2561 /usr/x386/include
2562 /usr/XFree86/include/X11
2564 /usr/include
2565 /usr/local/include
2566 /usr/unsupported/include
2567 /usr/athena/include
2568 /usr/local/x11r5/include
2569 /usr/lpp/Xamples/include
2571 /usr/openwin/include
2572 /usr/openwin/share/include'
2574 if test "$ac_x_includes" = no; then
2575 # Guess where to find include files, by looking for Intrinsic.h.
2576 # First, try using that file with no special directory specified.
2577 cat >conftest.$ac_ext <<_ACEOF
2578 #line $LINENO "configure"
2579 #include "confdefs.h"
2580 #include <X11/Intrinsic.h>
2581 _ACEOF
2582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2584 ac_status=$?
2585 grep -v '^ *+' conftest.er1 >conftest.err
2586 rm -f conftest.er1
2587 cat conftest.err >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); } >/dev/null; then
2590 if test -s conftest.err; then
2591 ac_cpp_err=$ac_c_preproc_warn_flag
2592 else
2593 ac_cpp_err=
2595 else
2596 ac_cpp_err=yes
2598 if test -z "$ac_cpp_err"; then
2599 # We can compile using X headers with no special include directory.
2600 ac_x_includes=
2601 else
2602 echo "$as_me: failed program was:" >&5
2603 cat conftest.$ac_ext >&5
2604 for ac_dir in $ac_x_header_dirs; do
2605 if test -r "$ac_dir/X11/Intrinsic.h"; then
2606 ac_x_includes=$ac_dir
2607 break
2609 done
2611 rm -f conftest.err conftest.$ac_ext
2612 fi # $ac_x_includes = no
2614 if test "$ac_x_libraries" = no; then
2615 # Check for the libraries.
2616 # See if we find them without any special options.
2617 # Don't add to $LIBS permanently.
2618 ac_save_LIBS=$LIBS
2619 LIBS="-lXt $LIBS"
2620 cat >conftest.$ac_ext <<_ACEOF
2621 #line $LINENO "configure"
2622 #include "confdefs.h"
2623 #include <X11/Intrinsic.h>
2625 main ()
2627 XtMalloc (0)
2629 return 0;
2631 _ACEOF
2632 rm -f conftest.$ac_objext conftest$ac_exeext
2633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2634 (eval $ac_link) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
2638 { ac_try='test -s conftest$ac_exeext'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 (eval $ac_try) 2>&5
2641 ac_status=$?
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; }; then
2644 LIBS=$ac_save_LIBS
2645 # We can link X programs with no special library path.
2646 ac_x_libraries=
2647 else
2648 echo "$as_me: failed program was:" >&5
2649 cat conftest.$ac_ext >&5
2650 LIBS=$ac_save_LIBS
2651 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2653 # Don't even attempt the hair of trying to link an X program!
2654 for ac_extension in a so sl; do
2655 if test -r $ac_dir/libXt.$ac_extension; then
2656 ac_x_libraries=$ac_dir
2657 break 2
2659 done
2660 done
2662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2663 fi # $ac_x_libraries = no
2665 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2666 # Didn't find X anywhere. Cache the known absence of X.
2667 ac_cv_have_x="have_x=no"
2668 else
2669 # Record where we found X for the cache.
2670 ac_cv_have_x="have_x=yes \
2671 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2676 eval "$ac_cv_have_x"
2677 fi # $with_x != no
2679 if test "$have_x" != yes; then
2680 echo "$as_me:$LINENO: result: $have_x" >&5
2681 echo "${ECHO_T}$have_x" >&6
2682 no_x=yes
2683 else
2684 # If each of the values was on the command line, it overrides each guess.
2685 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2686 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2687 # Update the cache value to reflect the command line values.
2688 ac_cv_have_x="have_x=yes \
2689 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2690 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2691 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2694 if test "$no_x" = yes; then
2695 # Not all programs may use this symbol, but it does not hurt to define it.
2697 cat >>confdefs.h <<\_ACEOF
2698 #define X_DISPLAY_MISSING 1
2699 _ACEOF
2701 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2702 else
2703 if test -n "$x_includes"; then
2704 X_CFLAGS="$X_CFLAGS -I$x_includes"
2707 # It would also be nice to do this for all -L options, not just this one.
2708 if test -n "$x_libraries"; then
2709 X_LIBS="$X_LIBS -L$x_libraries"
2710 # For Solaris; some versions of Sun CC require a space after -R and
2711 # others require no space. Words are not sufficient . . . .
2712 case `(uname -sr) 2>/dev/null` in
2713 "SunOS 5"*)
2714 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2715 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2716 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2717 cat >conftest.$ac_ext <<_ACEOF
2718 #line $LINENO "configure"
2719 #include "confdefs.h"
2722 main ()
2726 return 0;
2728 _ACEOF
2729 rm -f conftest.$ac_objext conftest$ac_exeext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2731 (eval $ac_link) 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); } &&
2735 { ac_try='test -s conftest$ac_exeext'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 ac_R_nospace=yes
2742 else
2743 echo "$as_me: failed program was:" >&5
2744 cat conftest.$ac_ext >&5
2745 ac_R_nospace=no
2747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2748 if test $ac_R_nospace = yes; then
2749 echo "$as_me:$LINENO: result: no" >&5
2750 echo "${ECHO_T}no" >&6
2751 X_LIBS="$X_LIBS -R$x_libraries"
2752 else
2753 LIBS="$ac_xsave_LIBS -R $x_libraries"
2754 cat >conftest.$ac_ext <<_ACEOF
2755 #line $LINENO "configure"
2756 #include "confdefs.h"
2759 main ()
2763 return 0;
2765 _ACEOF
2766 rm -f conftest.$ac_objext conftest$ac_exeext
2767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2768 (eval $ac_link) 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -s conftest$ac_exeext'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2778 ac_R_space=yes
2779 else
2780 echo "$as_me: failed program was:" >&5
2781 cat conftest.$ac_ext >&5
2782 ac_R_space=no
2784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2785 if test $ac_R_space = yes; then
2786 echo "$as_me:$LINENO: result: yes" >&5
2787 echo "${ECHO_T}yes" >&6
2788 X_LIBS="$X_LIBS -R $x_libraries"
2789 else
2790 echo "$as_me:$LINENO: result: neither works" >&5
2791 echo "${ECHO_T}neither works" >&6
2794 LIBS=$ac_xsave_LIBS
2795 esac
2798 # Check for system-dependent libraries X programs must link with.
2799 # Do this before checking for the system-independent R6 libraries
2800 # (-lICE), since we may need -lsocket or whatever for X linking.
2802 if test "$ISC" = yes; then
2803 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2804 else
2805 # Martyn Johnson says this is needed for Ultrix, if the X
2806 # libraries were built with DECnet support. And Karl Berry says
2807 # the Alpha needs dnet_stub (dnet does not exist).
2808 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2809 cat >conftest.$ac_ext <<_ACEOF
2810 #line $LINENO "configure"
2811 #include "confdefs.h"
2813 /* Override any gcc2 internal prototype to avoid an error. */
2814 #ifdef __cplusplus
2815 extern "C"
2816 #endif
2817 /* We use char because int might match the return type of a gcc2
2818 builtin and then its argument prototype would still apply. */
2819 char XOpenDisplay ();
2821 main ()
2823 XOpenDisplay ();
2825 return 0;
2827 _ACEOF
2828 rm -f conftest.$ac_objext conftest$ac_exeext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2830 (eval $ac_link) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try='test -s conftest$ac_exeext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2841 else
2842 echo "$as_me: failed program was:" >&5
2843 cat conftest.$ac_ext >&5
2844 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2845 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2846 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849 ac_check_lib_save_LIBS=$LIBS
2850 LIBS="-ldnet $LIBS"
2851 cat >conftest.$ac_ext <<_ACEOF
2852 #line $LINENO "configure"
2853 #include "confdefs.h"
2855 /* Override any gcc2 internal prototype to avoid an error. */
2856 #ifdef __cplusplus
2857 extern "C"
2858 #endif
2859 /* We use char because int might match the return type of a gcc2
2860 builtin and then its argument prototype would still apply. */
2861 char dnet_ntoa ();
2863 main ()
2865 dnet_ntoa ();
2867 return 0;
2869 _ACEOF
2870 rm -f conftest.$ac_objext conftest$ac_exeext
2871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2872 (eval $ac_link) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } &&
2876 { ac_try='test -s conftest$ac_exeext'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 (eval $ac_try) 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2882 ac_cv_lib_dnet_dnet_ntoa=yes
2883 else
2884 echo "$as_me: failed program was:" >&5
2885 cat conftest.$ac_ext >&5
2886 ac_cv_lib_dnet_dnet_ntoa=no
2888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2889 LIBS=$ac_check_lib_save_LIBS
2891 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2892 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2893 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2894 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2897 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2898 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2899 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2900 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903 ac_check_lib_save_LIBS=$LIBS
2904 LIBS="-ldnet_stub $LIBS"
2905 cat >conftest.$ac_ext <<_ACEOF
2906 #line $LINENO "configure"
2907 #include "confdefs.h"
2909 /* Override any gcc2 internal prototype to avoid an error. */
2910 #ifdef __cplusplus
2911 extern "C"
2912 #endif
2913 /* We use char because int might match the return type of a gcc2
2914 builtin and then its argument prototype would still apply. */
2915 char dnet_ntoa ();
2917 main ()
2919 dnet_ntoa ();
2921 return 0;
2923 _ACEOF
2924 rm -f conftest.$ac_objext conftest$ac_exeext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2926 (eval $ac_link) 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } &&
2930 { ac_try='test -s conftest$ac_exeext'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 (eval $ac_try) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; }; then
2936 ac_cv_lib_dnet_stub_dnet_ntoa=yes
2937 else
2938 echo "$as_me: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2940 ac_cv_lib_dnet_stub_dnet_ntoa=no
2942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2943 LIBS=$ac_check_lib_save_LIBS
2945 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2946 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2947 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2948 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2954 LIBS="$ac_xsave_LIBS"
2956 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2957 # to get the SysV transport functions.
2958 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2959 # needs -lnsl.
2960 # The nsl library prevents programs from opening the X display
2961 # on Irix 5.2, according to T.E. Dickey.
2962 # The functions gethostbyname, getservbyname, and inet_addr are
2963 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2964 echo "$as_me:$LINENO: checking for gethostbyname" >&5
2965 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2966 if test "${ac_cv_func_gethostbyname+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969 cat >conftest.$ac_ext <<_ACEOF
2970 #line $LINENO "configure"
2971 #include "confdefs.h"
2972 /* System header to define __stub macros and hopefully few prototypes,
2973 which can conflict with char gethostbyname (); below. */
2974 #include <assert.h>
2975 /* Override any gcc2 internal prototype to avoid an error. */
2976 #ifdef __cplusplus
2977 extern "C"
2978 #endif
2979 /* We use char because int might match the return type of a gcc2
2980 builtin and then its argument prototype would still apply. */
2981 char gethostbyname ();
2982 char (*f) ();
2985 main ()
2987 /* The GNU C library defines this for functions which it implements
2988 to always fail with ENOSYS. Some functions are actually named
2989 something starting with __ and the normal name is an alias. */
2990 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2991 choke me
2992 #else
2993 f = gethostbyname;
2994 #endif
2997 return 0;
2999 _ACEOF
3000 rm -f conftest.$ac_objext conftest$ac_exeext
3001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3002 (eval $ac_link) 2>&5
3003 ac_status=$?
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 { ac_try='test -s conftest$ac_exeext'
3007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 (eval $ac_try) 2>&5
3009 ac_status=$?
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3012 ac_cv_func_gethostbyname=yes
3013 else
3014 echo "$as_me: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3016 ac_cv_func_gethostbyname=no
3018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3020 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3021 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3023 if test $ac_cv_func_gethostbyname = no; then
3024 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3025 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3026 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029 ac_check_lib_save_LIBS=$LIBS
3030 LIBS="-lnsl $LIBS"
3031 cat >conftest.$ac_ext <<_ACEOF
3032 #line $LINENO "configure"
3033 #include "confdefs.h"
3035 /* Override any gcc2 internal prototype to avoid an error. */
3036 #ifdef __cplusplus
3037 extern "C"
3038 #endif
3039 /* We use char because int might match the return type of a gcc2
3040 builtin and then its argument prototype would still apply. */
3041 char gethostbyname ();
3043 main ()
3045 gethostbyname ();
3047 return 0;
3049 _ACEOF
3050 rm -f conftest.$ac_objext conftest$ac_exeext
3051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3052 (eval $ac_link) 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } &&
3056 { ac_try='test -s conftest$ac_exeext'
3057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058 (eval $ac_try) 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; }; then
3062 ac_cv_lib_nsl_gethostbyname=yes
3063 else
3064 echo "$as_me: failed program was:" >&5
3065 cat conftest.$ac_ext >&5
3066 ac_cv_lib_nsl_gethostbyname=no
3068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3069 LIBS=$ac_check_lib_save_LIBS
3071 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3072 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3073 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3074 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3077 if test $ac_cv_lib_nsl_gethostbyname = no; then
3078 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3079 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3080 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083 ac_check_lib_save_LIBS=$LIBS
3084 LIBS="-lbsd $LIBS"
3085 cat >conftest.$ac_ext <<_ACEOF
3086 #line $LINENO "configure"
3087 #include "confdefs.h"
3089 /* Override any gcc2 internal prototype to avoid an error. */
3090 #ifdef __cplusplus
3091 extern "C"
3092 #endif
3093 /* We use char because int might match the return type of a gcc2
3094 builtin and then its argument prototype would still apply. */
3095 char gethostbyname ();
3097 main ()
3099 gethostbyname ();
3101 return 0;
3103 _ACEOF
3104 rm -f conftest.$ac_objext conftest$ac_exeext
3105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3106 (eval $ac_link) 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } &&
3110 { ac_try='test -s conftest$ac_exeext'
3111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3112 (eval $ac_try) 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; }; then
3116 ac_cv_lib_bsd_gethostbyname=yes
3117 else
3118 echo "$as_me: failed program was:" >&5
3119 cat conftest.$ac_ext >&5
3120 ac_cv_lib_bsd_gethostbyname=no
3122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3123 LIBS=$ac_check_lib_save_LIBS
3125 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3126 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3127 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3128 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3134 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3135 # socket/setsockopt and other routines are undefined under SCO ODT
3136 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3137 # on later versions), says Simon Leinen: it contains gethostby*
3138 # variants that don't use the name server (or something). -lsocket
3139 # must be given before -lnsl if both are needed. We assume that
3140 # if connect needs -lnsl, so does gethostbyname.
3141 echo "$as_me:$LINENO: checking for connect" >&5
3142 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3143 if test "${ac_cv_func_connect+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146 cat >conftest.$ac_ext <<_ACEOF
3147 #line $LINENO "configure"
3148 #include "confdefs.h"
3149 /* System header to define __stub macros and hopefully few prototypes,
3150 which can conflict with char connect (); below. */
3151 #include <assert.h>
3152 /* Override any gcc2 internal prototype to avoid an error. */
3153 #ifdef __cplusplus
3154 extern "C"
3155 #endif
3156 /* We use char because int might match the return type of a gcc2
3157 builtin and then its argument prototype would still apply. */
3158 char connect ();
3159 char (*f) ();
3162 main ()
3164 /* The GNU C library defines this for functions which it implements
3165 to always fail with ENOSYS. Some functions are actually named
3166 something starting with __ and the normal name is an alias. */
3167 #if defined (__stub_connect) || defined (__stub___connect)
3168 choke me
3169 #else
3170 f = connect;
3171 #endif
3174 return 0;
3176 _ACEOF
3177 rm -f conftest.$ac_objext conftest$ac_exeext
3178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3179 (eval $ac_link) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } &&
3183 { ac_try='test -s conftest$ac_exeext'
3184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185 (eval $ac_try) 2>&5
3186 ac_status=$?
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; }; then
3189 ac_cv_func_connect=yes
3190 else
3191 echo "$as_me: failed program was:" >&5
3192 cat conftest.$ac_ext >&5
3193 ac_cv_func_connect=no
3195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3197 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3198 echo "${ECHO_T}$ac_cv_func_connect" >&6
3200 if test $ac_cv_func_connect = no; then
3201 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3202 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3203 if test "${ac_cv_lib_socket_connect+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 ac_check_lib_save_LIBS=$LIBS
3207 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3208 cat >conftest.$ac_ext <<_ACEOF
3209 #line $LINENO "configure"
3210 #include "confdefs.h"
3212 /* Override any gcc2 internal prototype to avoid an error. */
3213 #ifdef __cplusplus
3214 extern "C"
3215 #endif
3216 /* We use char because int might match the return type of a gcc2
3217 builtin and then its argument prototype would still apply. */
3218 char connect ();
3220 main ()
3222 connect ();
3224 return 0;
3226 _ACEOF
3227 rm -f conftest.$ac_objext conftest$ac_exeext
3228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3229 (eval $ac_link) 2>&5
3230 ac_status=$?
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } &&
3233 { ac_try='test -s conftest$ac_exeext'
3234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235 (eval $ac_try) 2>&5
3236 ac_status=$?
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; }; then
3239 ac_cv_lib_socket_connect=yes
3240 else
3241 echo "$as_me: failed program was:" >&5
3242 cat conftest.$ac_ext >&5
3243 ac_cv_lib_socket_connect=no
3245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3246 LIBS=$ac_check_lib_save_LIBS
3248 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3249 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3250 if test $ac_cv_lib_socket_connect = yes; then
3251 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3256 # Guillermo Gomez says -lposix is necessary on A/UX.
3257 echo "$as_me:$LINENO: checking for remove" >&5
3258 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3259 if test "${ac_cv_func_remove+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262 cat >conftest.$ac_ext <<_ACEOF
3263 #line $LINENO "configure"
3264 #include "confdefs.h"
3265 /* System header to define __stub macros and hopefully few prototypes,
3266 which can conflict with char remove (); below. */
3267 #include <assert.h>
3268 /* Override any gcc2 internal prototype to avoid an error. */
3269 #ifdef __cplusplus
3270 extern "C"
3271 #endif
3272 /* We use char because int might match the return type of a gcc2
3273 builtin and then its argument prototype would still apply. */
3274 char remove ();
3275 char (*f) ();
3278 main ()
3280 /* The GNU C library defines this for functions which it implements
3281 to always fail with ENOSYS. Some functions are actually named
3282 something starting with __ and the normal name is an alias. */
3283 #if defined (__stub_remove) || defined (__stub___remove)
3284 choke me
3285 #else
3286 f = remove;
3287 #endif
3290 return 0;
3292 _ACEOF
3293 rm -f conftest.$ac_objext conftest$ac_exeext
3294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3295 (eval $ac_link) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } &&
3299 { ac_try='test -s conftest$ac_exeext'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 (eval $ac_try) 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3305 ac_cv_func_remove=yes
3306 else
3307 echo "$as_me: failed program was:" >&5
3308 cat conftest.$ac_ext >&5
3309 ac_cv_func_remove=no
3311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3313 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3314 echo "${ECHO_T}$ac_cv_func_remove" >&6
3316 if test $ac_cv_func_remove = no; then
3317 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3318 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3319 if test "${ac_cv_lib_posix_remove+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322 ac_check_lib_save_LIBS=$LIBS
3323 LIBS="-lposix $LIBS"
3324 cat >conftest.$ac_ext <<_ACEOF
3325 #line $LINENO "configure"
3326 #include "confdefs.h"
3328 /* Override any gcc2 internal prototype to avoid an error. */
3329 #ifdef __cplusplus
3330 extern "C"
3331 #endif
3332 /* We use char because int might match the return type of a gcc2
3333 builtin and then its argument prototype would still apply. */
3334 char remove ();
3336 main ()
3338 remove ();
3340 return 0;
3342 _ACEOF
3343 rm -f conftest.$ac_objext conftest$ac_exeext
3344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3345 (eval $ac_link) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } &&
3349 { ac_try='test -s conftest$ac_exeext'
3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 (eval $ac_try) 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3355 ac_cv_lib_posix_remove=yes
3356 else
3357 echo "$as_me: failed program was:" >&5
3358 cat conftest.$ac_ext >&5
3359 ac_cv_lib_posix_remove=no
3361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3362 LIBS=$ac_check_lib_save_LIBS
3364 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3365 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3366 if test $ac_cv_lib_posix_remove = yes; then
3367 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3372 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3373 echo "$as_me:$LINENO: checking for shmat" >&5
3374 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3375 if test "${ac_cv_func_shmat+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378 cat >conftest.$ac_ext <<_ACEOF
3379 #line $LINENO "configure"
3380 #include "confdefs.h"
3381 /* System header to define __stub macros and hopefully few prototypes,
3382 which can conflict with char shmat (); below. */
3383 #include <assert.h>
3384 /* Override any gcc2 internal prototype to avoid an error. */
3385 #ifdef __cplusplus
3386 extern "C"
3387 #endif
3388 /* We use char because int might match the return type of a gcc2
3389 builtin and then its argument prototype would still apply. */
3390 char shmat ();
3391 char (*f) ();
3394 main ()
3396 /* The GNU C library defines this for functions which it implements
3397 to always fail with ENOSYS. Some functions are actually named
3398 something starting with __ and the normal name is an alias. */
3399 #if defined (__stub_shmat) || defined (__stub___shmat)
3400 choke me
3401 #else
3402 f = shmat;
3403 #endif
3406 return 0;
3408 _ACEOF
3409 rm -f conftest.$ac_objext conftest$ac_exeext
3410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3411 (eval $ac_link) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } &&
3415 { ac_try='test -s conftest$ac_exeext'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 (eval $ac_try) 2>&5
3418 ac_status=$?
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
3421 ac_cv_func_shmat=yes
3422 else
3423 echo "$as_me: failed program was:" >&5
3424 cat conftest.$ac_ext >&5
3425 ac_cv_func_shmat=no
3427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3429 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3430 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3432 if test $ac_cv_func_shmat = no; then
3433 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3434 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3435 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438 ac_check_lib_save_LIBS=$LIBS
3439 LIBS="-lipc $LIBS"
3440 cat >conftest.$ac_ext <<_ACEOF
3441 #line $LINENO "configure"
3442 #include "confdefs.h"
3444 /* Override any gcc2 internal prototype to avoid an error. */
3445 #ifdef __cplusplus
3446 extern "C"
3447 #endif
3448 /* We use char because int might match the return type of a gcc2
3449 builtin and then its argument prototype would still apply. */
3450 char shmat ();
3452 main ()
3454 shmat ();
3456 return 0;
3458 _ACEOF
3459 rm -f conftest.$ac_objext conftest$ac_exeext
3460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3461 (eval $ac_link) 2>&5
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } &&
3465 { ac_try='test -s conftest$ac_exeext'
3466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467 (eval $ac_try) 2>&5
3468 ac_status=$?
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; }; then
3471 ac_cv_lib_ipc_shmat=yes
3472 else
3473 echo "$as_me: failed program was:" >&5
3474 cat conftest.$ac_ext >&5
3475 ac_cv_lib_ipc_shmat=no
3477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3478 LIBS=$ac_check_lib_save_LIBS
3480 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3481 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3482 if test $ac_cv_lib_ipc_shmat = yes; then
3483 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3489 # Check for libraries that X11R6 Xt/Xaw programs need.
3490 ac_save_LDFLAGS=$LDFLAGS
3491 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3492 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3493 # check for ICE first), but we must link in the order -lSM -lICE or
3494 # we get undefined symbols. So assume we have SM if we have ICE.
3495 # These have to be linked with before -lX11, unlike the other
3496 # libraries we check for below, so use a different variable.
3497 # John Interrante, Karl Berry
3498 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3499 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3500 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 ac_check_lib_save_LIBS=$LIBS
3504 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3505 cat >conftest.$ac_ext <<_ACEOF
3506 #line $LINENO "configure"
3507 #include "confdefs.h"
3509 /* Override any gcc2 internal prototype to avoid an error. */
3510 #ifdef __cplusplus
3511 extern "C"
3512 #endif
3513 /* We use char because int might match the return type of a gcc2
3514 builtin and then its argument prototype would still apply. */
3515 char IceConnectionNumber ();
3517 main ()
3519 IceConnectionNumber ();
3521 return 0;
3523 _ACEOF
3524 rm -f conftest.$ac_objext conftest$ac_exeext
3525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3526 (eval $ac_link) 2>&5
3527 ac_status=$?
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } &&
3530 { ac_try='test -s conftest$ac_exeext'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 (eval $ac_try) 2>&5
3533 ac_status=$?
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; }; then
3536 ac_cv_lib_ICE_IceConnectionNumber=yes
3537 else
3538 echo "$as_me: failed program was:" >&5
3539 cat conftest.$ac_ext >&5
3540 ac_cv_lib_ICE_IceConnectionNumber=no
3542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3543 LIBS=$ac_check_lib_save_LIBS
3545 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3546 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3547 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3548 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3551 LDFLAGS=$ac_save_LDFLAGS
3555 for ac_prog in 'bison -y' byacc
3557 # Extract the first word of "$ac_prog", so it can be a program name with args.
3558 set dummy $ac_prog; ac_word=$2
3559 echo "$as_me:$LINENO: checking for $ac_word" >&5
3560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3561 if test "${ac_cv_prog_YACC+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564 if test -n "$YACC"; then
3565 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3566 else
3567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 for as_dir in $PATH
3570 IFS=$as_save_IFS
3571 test -z "$as_dir" && as_dir=.
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3574 ac_cv_prog_YACC="$ac_prog"
3575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 break 2
3578 done
3579 done
3583 YACC=$ac_cv_prog_YACC
3584 if test -n "$YACC"; then
3585 echo "$as_me:$LINENO: result: $YACC" >&5
3586 echo "${ECHO_T}$YACC" >&6
3587 else
3588 echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6
3592 test -n "$YACC" && break
3593 done
3594 test -n "$YACC" || YACC="yacc"
3596 for ac_prog in flex lex
3598 # Extract the first word of "$ac_prog", so it can be a program name with args.
3599 set dummy $ac_prog; ac_word=$2
3600 echo "$as_me:$LINENO: checking for $ac_word" >&5
3601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3602 if test "${ac_cv_prog_LEX+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 else
3605 if test -n "$LEX"; then
3606 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3607 else
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3615 ac_cv_prog_LEX="$ac_prog"
3616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 break 2
3619 done
3620 done
3624 LEX=$ac_cv_prog_LEX
3625 if test -n "$LEX"; then
3626 echo "$as_me:$LINENO: result: $LEX" >&5
3627 echo "${ECHO_T}$LEX" >&6
3628 else
3629 echo "$as_me:$LINENO: result: no" >&5
3630 echo "${ECHO_T}no" >&6
3633 test -n "$LEX" && break
3634 done
3635 test -n "$LEX" || LEX=":"
3637 if test -z "$LEXLIB"
3638 then
3639 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3640 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3641 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644 ac_check_lib_save_LIBS=$LIBS
3645 LIBS="-lfl $LIBS"
3646 cat >conftest.$ac_ext <<_ACEOF
3647 #line $LINENO "configure"
3648 #include "confdefs.h"
3650 /* Override any gcc2 internal prototype to avoid an error. */
3651 #ifdef __cplusplus
3652 extern "C"
3653 #endif
3654 /* We use char because int might match the return type of a gcc2
3655 builtin and then its argument prototype would still apply. */
3656 char yywrap ();
3658 main ()
3660 yywrap ();
3662 return 0;
3664 _ACEOF
3665 rm -f conftest.$ac_objext conftest$ac_exeext
3666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3667 (eval $ac_link) 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } &&
3671 { ac_try='test -s conftest$ac_exeext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 ac_cv_lib_fl_yywrap=yes
3678 else
3679 echo "$as_me: failed program was:" >&5
3680 cat conftest.$ac_ext >&5
3681 ac_cv_lib_fl_yywrap=no
3683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3684 LIBS=$ac_check_lib_save_LIBS
3686 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3687 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3688 if test $ac_cv_lib_fl_yywrap = yes; then
3689 LEXLIB="-lfl"
3690 else
3691 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3692 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3693 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696 ac_check_lib_save_LIBS=$LIBS
3697 LIBS="-ll $LIBS"
3698 cat >conftest.$ac_ext <<_ACEOF
3699 #line $LINENO "configure"
3700 #include "confdefs.h"
3702 /* Override any gcc2 internal prototype to avoid an error. */
3703 #ifdef __cplusplus
3704 extern "C"
3705 #endif
3706 /* We use char because int might match the return type of a gcc2
3707 builtin and then its argument prototype would still apply. */
3708 char yywrap ();
3710 main ()
3712 yywrap ();
3714 return 0;
3716 _ACEOF
3717 rm -f conftest.$ac_objext conftest$ac_exeext
3718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3719 (eval $ac_link) 2>&5
3720 ac_status=$?
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } &&
3723 { ac_try='test -s conftest$ac_exeext'
3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725 (eval $ac_try) 2>&5
3726 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; }; then
3729 ac_cv_lib_l_yywrap=yes
3730 else
3731 echo "$as_me: failed program was:" >&5
3732 cat conftest.$ac_ext >&5
3733 ac_cv_lib_l_yywrap=no
3735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3736 LIBS=$ac_check_lib_save_LIBS
3738 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3739 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3740 if test $ac_cv_lib_l_yywrap = yes; then
3741 LEXLIB="-ll"
3748 if test "x$LEX" != "x:"; then
3749 echo "$as_me:$LINENO: checking lex output file root" >&5
3750 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3751 if test "${ac_cv_prog_lex_root+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754 # The minimal lex program is just a single line: %%. But some broken lexes
3755 # (Solaris, I think it was) want two %% lines, so accommodate them.
3756 cat >conftest.l <<_ACEOF
3759 _ACEOF
3760 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3761 (eval $LEX conftest.l) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }
3765 if test -f lex.yy.c; then
3766 ac_cv_prog_lex_root=lex.yy
3767 elif test -f lexyy.c; then
3768 ac_cv_prog_lex_root=lexyy
3769 else
3770 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3771 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3772 { (exit 1); exit 1; }; }
3775 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3776 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3777 rm -f conftest.l
3778 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3780 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3781 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3782 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785 # POSIX says lex can declare yytext either as a pointer or an array; the
3786 # default is implementation-dependent. Figure out which it is, since
3787 # not all implementations provide the %pointer and %array declarations.
3788 ac_cv_prog_lex_yytext_pointer=no
3789 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3790 ac_save_LIBS=$LIBS
3791 LIBS="$LIBS $LEXLIB"
3792 cat >conftest.$ac_ext <<_ACEOF
3793 `cat $LEX_OUTPUT_ROOT.c`
3794 _ACEOF
3795 rm -f conftest.$ac_objext conftest$ac_exeext
3796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3797 (eval $ac_link) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } &&
3801 { ac_try='test -s conftest$ac_exeext'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 (eval $ac_try) 2>&5
3804 ac_status=$?
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3807 ac_cv_prog_lex_yytext_pointer=yes
3808 else
3809 echo "$as_me: failed program was:" >&5
3810 cat conftest.$ac_ext >&5
3812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3813 LIBS=$ac_save_LIBS
3814 rm -f "${LEX_OUTPUT_ROOT}.c"
3817 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3818 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3819 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3821 cat >>confdefs.h <<\_ACEOF
3822 #define YYTEXT_POINTER 1
3823 _ACEOF
3829 for ac_prog in $YACC bison yacc
3831 # Extract the first word of "$ac_prog", so it can be a program name with args.
3832 set dummy $ac_prog; ac_word=$2
3833 echo "$as_me:$LINENO: checking for $ac_word" >&5
3834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3835 if test "${ac_cv_prog_XYACC+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838 if test -n "$XYACC"; then
3839 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3840 else
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3844 IFS=$as_save_IFS
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848 ac_cv_prog_XYACC="$ac_prog"
3849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3850 break 2
3852 done
3853 done
3857 XYACC=$ac_cv_prog_XYACC
3858 if test -n "$XYACC"; then
3859 echo "$as_me:$LINENO: result: $XYACC" >&5
3860 echo "${ECHO_T}$XYACC" >&6
3861 else
3862 echo "$as_me:$LINENO: result: no" >&5
3863 echo "${ECHO_T}no" >&6
3866 test -n "$XYACC" && break
3867 done
3868 test -n "$XYACC" || XYACC="none"
3870 if test "$XYACC" = "none"
3871 then
3872 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
3873 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3874 { (exit 1); exit 1; }; }
3876 for ac_prog in $LEX flex lex
3878 # Extract the first word of "$ac_prog", so it can be a program name with args.
3879 set dummy $ac_prog; ac_word=$2
3880 echo "$as_me:$LINENO: checking for $ac_word" >&5
3881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3882 if test "${ac_cv_prog_XLEX+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 else
3885 if test -n "$XLEX"; then
3886 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3887 else
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3895 ac_cv_prog_XLEX="$ac_prog"
3896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 break 2
3899 done
3900 done
3904 XLEX=$ac_cv_prog_XLEX
3905 if test -n "$XLEX"; then
3906 echo "$as_me:$LINENO: result: $XLEX" >&5
3907 echo "${ECHO_T}$XLEX" >&6
3908 else
3909 echo "$as_me:$LINENO: result: no" >&5
3910 echo "${ECHO_T}no" >&6
3913 test -n "$XLEX" && break
3914 done
3915 test -n "$XLEX" || XLEX="none"
3917 if test "$XLEX" = "none"
3918 then
3919 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
3920 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3921 { (exit 1); exit 1; }; }
3924 if test -n "$ac_tool_prefix"; then
3925 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3926 set dummy ${ac_tool_prefix}ld; ac_word=$2
3927 echo "$as_me:$LINENO: checking for $ac_word" >&5
3928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3929 if test "${ac_cv_prog_LD+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3931 else
3932 if test -n "$LD"; then
3933 ac_cv_prog_LD="$LD" # Let the user override the test.
3934 else
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3942 ac_cv_prog_LD="${ac_tool_prefix}ld"
3943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 break 2
3946 done
3947 done
3951 LD=$ac_cv_prog_LD
3952 if test -n "$LD"; then
3953 echo "$as_me:$LINENO: result: $LD" >&5
3954 echo "${ECHO_T}$LD" >&6
3955 else
3956 echo "$as_me:$LINENO: result: no" >&5
3957 echo "${ECHO_T}no" >&6
3961 if test -z "$ac_cv_prog_LD"; then
3962 ac_ct_LD=$LD
3963 # Extract the first word of "ld", so it can be a program name with args.
3964 set dummy ld; ac_word=$2
3965 echo "$as_me:$LINENO: checking for $ac_word" >&5
3966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3967 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970 if test -n "$ac_ct_LD"; then
3971 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3972 else
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_prog_ac_ct_LD="ld"
3981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 break 2
3984 done
3985 done
3987 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3990 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3991 if test -n "$ac_ct_LD"; then
3992 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3993 echo "${ECHO_T}$ac_ct_LD" >&6
3994 else
3995 echo "$as_me:$LINENO: result: no" >&5
3996 echo "${ECHO_T}no" >&6
3999 LD=$ac_ct_LD
4000 else
4001 LD="$ac_cv_prog_LD"
4004 if test -n "$ac_tool_prefix"; then
4005 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4006 set dummy ${ac_tool_prefix}ar; ac_word=$2
4007 echo "$as_me:$LINENO: checking for $ac_word" >&5
4008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4009 if test "${ac_cv_prog_AR+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012 if test -n "$AR"; then
4013 ac_cv_prog_AR="$AR" # Let the user override the test.
4014 else
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH
4018 IFS=$as_save_IFS
4019 test -z "$as_dir" && as_dir=.
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4022 ac_cv_prog_AR="${ac_tool_prefix}ar"
4023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 break 2
4026 done
4027 done
4031 AR=$ac_cv_prog_AR
4032 if test -n "$AR"; then
4033 echo "$as_me:$LINENO: result: $AR" >&5
4034 echo "${ECHO_T}$AR" >&6
4035 else
4036 echo "$as_me:$LINENO: result: no" >&5
4037 echo "${ECHO_T}no" >&6
4041 if test -z "$ac_cv_prog_AR"; then
4042 ac_ct_AR=$AR
4043 # Extract the first word of "ar", so it can be a program name with args.
4044 set dummy ar; ac_word=$2
4045 echo "$as_me:$LINENO: checking for $ac_word" >&5
4046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4047 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050 if test -n "$ac_ct_AR"; then
4051 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4052 else
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_prog_ac_ct_AR="ar"
4061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 break 2
4064 done
4065 done
4067 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4070 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4071 if test -n "$ac_ct_AR"; then
4072 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4073 echo "${ECHO_T}$ac_ct_AR" >&6
4074 else
4075 echo "$as_me:$LINENO: result: no" >&5
4076 echo "${ECHO_T}no" >&6
4079 AR=$ac_ct_AR
4080 else
4081 AR="$ac_cv_prog_AR"
4084 if test -n "$ac_tool_prefix"; then
4085 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4086 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4087 echo "$as_me:$LINENO: checking for $ac_word" >&5
4088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4089 if test "${ac_cv_prog_RANLIB+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092 if test -n "$RANLIB"; then
4093 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4094 else
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH
4098 IFS=$as_save_IFS
4099 test -z "$as_dir" && as_dir=.
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4102 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4104 break 2
4106 done
4107 done
4111 RANLIB=$ac_cv_prog_RANLIB
4112 if test -n "$RANLIB"; then
4113 echo "$as_me:$LINENO: result: $RANLIB" >&5
4114 echo "${ECHO_T}$RANLIB" >&6
4115 else
4116 echo "$as_me:$LINENO: result: no" >&5
4117 echo "${ECHO_T}no" >&6
4121 if test -z "$ac_cv_prog_RANLIB"; then
4122 ac_ct_RANLIB=$RANLIB
4123 # Extract the first word of "ranlib", so it can be a program name with args.
4124 set dummy ranlib; ac_word=$2
4125 echo "$as_me:$LINENO: checking for $ac_word" >&5
4126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4127 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130 if test -n "$ac_ct_RANLIB"; then
4131 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4132 else
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4140 ac_cv_prog_ac_ct_RANLIB="ranlib"
4141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 break 2
4144 done
4145 done
4147 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4150 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4151 if test -n "$ac_ct_RANLIB"; then
4152 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4153 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4154 else
4155 echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6
4159 RANLIB=$ac_ct_RANLIB
4160 else
4161 RANLIB="$ac_cv_prog_RANLIB"
4164 if test -n "$ac_tool_prefix"; then
4165 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4166 set dummy ${ac_tool_prefix}strip; ac_word=$2
4167 echo "$as_me:$LINENO: checking for $ac_word" >&5
4168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4169 if test "${ac_cv_prog_STRIP+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172 if test -n "$STRIP"; then
4173 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4174 else
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 break 2
4186 done
4187 done
4191 STRIP=$ac_cv_prog_STRIP
4192 if test -n "$STRIP"; then
4193 echo "$as_me:$LINENO: result: $STRIP" >&5
4194 echo "${ECHO_T}$STRIP" >&6
4195 else
4196 echo "$as_me:$LINENO: result: no" >&5
4197 echo "${ECHO_T}no" >&6
4201 if test -z "$ac_cv_prog_STRIP"; then
4202 ac_ct_STRIP=$STRIP
4203 # Extract the first word of "strip", so it can be a program name with args.
4204 set dummy strip; ac_word=$2
4205 echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4207 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210 if test -n "$ac_ct_STRIP"; then
4211 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4212 else
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220 ac_cv_prog_ac_ct_STRIP="strip"
4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 break 2
4224 done
4225 done
4227 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4230 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4231 if test -n "$ac_ct_STRIP"; then
4232 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4233 echo "${ECHO_T}$ac_ct_STRIP" >&6
4234 else
4235 echo "$as_me:$LINENO: result: no" >&5
4236 echo "${ECHO_T}no" >&6
4239 STRIP=$ac_ct_STRIP
4240 else
4241 STRIP="$ac_cv_prog_STRIP"
4244 if test -n "$ac_tool_prefix"; then
4245 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4246 set dummy ${ac_tool_prefix}windres; ac_word=$2
4247 echo "$as_me:$LINENO: checking for $ac_word" >&5
4248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4249 if test "${ac_cv_prog_WINDRES+set}" = set; then
4250 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 else
4252 if test -n "$WINDRES"; then
4253 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4254 else
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4262 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 break 2
4266 done
4267 done
4271 WINDRES=$ac_cv_prog_WINDRES
4272 if test -n "$WINDRES"; then
4273 echo "$as_me:$LINENO: result: $WINDRES" >&5
4274 echo "${ECHO_T}$WINDRES" >&6
4275 else
4276 echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6
4281 if test -z "$ac_cv_prog_WINDRES"; then
4282 ac_ct_WINDRES=$WINDRES
4283 # Extract the first word of "windres", so it can be a program name with args.
4284 set dummy windres; ac_word=$2
4285 echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290 if test -n "$ac_ct_WINDRES"; then
4291 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_prog_ac_ct_WINDRES="windres"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 break 2
4304 done
4305 done
4307 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4310 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4311 if test -n "$ac_ct_WINDRES"; then
4312 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4313 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4314 else
4315 echo "$as_me:$LINENO: result: no" >&5
4316 echo "${ECHO_T}no" >&6
4319 WINDRES=$ac_ct_WINDRES
4320 else
4321 WINDRES="$ac_cv_prog_WINDRES"
4324 # Find a good install program. We prefer a C program (faster),
4325 # so one script is as good as another. But avoid the broken or
4326 # incompatible versions:
4327 # SysV /etc/install, /usr/sbin/install
4328 # SunOS /usr/etc/install
4329 # IRIX /sbin/install
4330 # AIX /bin/install
4331 # AmigaOS /C/install, which installs bootblocks on floppy discs
4332 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4333 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4334 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4335 # ./install, which can be erroneously created by make from ./install.sh.
4336 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4337 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4338 if test -z "$INSTALL"; then
4339 if test "${ac_cv_path_install+set}" = set; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 else
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 # Account for people who put trailing slashes in PATH elements.
4348 case $as_dir/ in
4349 ./ | .// | /cC/* | \
4350 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4351 /usr/ucb/* ) ;;
4353 # OSF1 and SCO ODT 3.0 have their own names for install.
4354 # Don't use installbsd from OSF since it installs stuff as root
4355 # by default.
4356 for ac_prog in ginstall scoinst install; do
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4359 if test $ac_prog = install &&
4360 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4361 # AIX install. It has an incompatible calling convention.
4363 elif test $ac_prog = install &&
4364 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4365 # program-specific install script used by HP pwplus--don't use.
4367 else
4368 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4369 break 3
4372 done
4373 done
4375 esac
4376 done
4380 if test "${ac_cv_path_install+set}" = set; then
4381 INSTALL=$ac_cv_path_install
4382 else
4383 # As a last resort, use the slow shell script. We don't cache a
4384 # path for INSTALL within a source directory, because that will
4385 # break other packages using the cache if that directory is
4386 # removed, or if the path is relative.
4387 INSTALL=$ac_install_sh
4390 echo "$as_me:$LINENO: result: $INSTALL" >&5
4391 echo "${ECHO_T}$INSTALL" >&6
4393 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4394 # It thinks the first close brace ends the variable substitution.
4395 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4397 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4399 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4401 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4402 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4403 LN_S=$as_ln_s
4404 if test "$LN_S" = "ln -s"; then
4405 echo "$as_me:$LINENO: result: yes" >&5
4406 echo "${ECHO_T}yes" >&6
4407 else
4408 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4409 echo "${ECHO_T}no, using $LN_S" >&6
4412 echo "$as_me:$LINENO: checking whether ln works" >&5
4413 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4414 rm -f conf$$ conf$$.file
4415 echo >conf$$.file
4416 if ln conf$$.file conf$$ 2>/dev/null; then
4417 LN=ln
4419 echo "$as_me:$LINENO: result: yes" >&5
4420 echo "${ECHO_T}yes" >&6
4421 else
4422 LN="cp -p"
4424 echo "$as_me:$LINENO: result: no, using $LN" >&5
4425 echo "${ECHO_T}no, using $LN" >&6
4427 rm -f conf$$ conf$$.file
4428 # Extract the first word of "c2man", so it can be a program name with args.
4429 set dummy c2man; ac_word=$2
4430 echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4432 if test "${ac_cv_prog_C2MAN+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435 if test -n "$C2MAN"; then
4436 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4445 ac_cv_prog_C2MAN="c2man"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4449 done
4450 done
4452 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4455 C2MAN=$ac_cv_prog_C2MAN
4456 if test -n "$C2MAN"; then
4457 echo "$as_me:$LINENO: result: $C2MAN" >&5
4458 echo "${ECHO_T}$C2MAN" >&6
4459 else
4460 echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6
4464 # Extract the first word of "ldconfig", so it can be a program name with args.
4465 set dummy ldconfig; ac_word=$2
4466 echo "$as_me:$LINENO: checking for $ac_word" >&5
4467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4468 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471 case $LDCONFIG in
4472 [\\/]* | ?:[\\/]*)
4473 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in /sbin /usr/sbin $PATH
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4483 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 break 2
4487 done
4488 done
4490 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4492 esac
4494 LDCONFIG=$ac_cv_path_LDCONFIG
4496 if test -n "$LDCONFIG"; then
4497 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4498 echo "${ECHO_T}$LDCONFIG" >&6
4499 else
4500 echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6
4505 for ac_prog in lclint lint
4507 # Extract the first word of "$ac_prog", so it can be a program name with args.
4508 set dummy $ac_prog; ac_word=$2
4509 echo "$as_me:$LINENO: checking for $ac_word" >&5
4510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4511 if test "${ac_cv_prog_LINT+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514 if test -n "$LINT"; then
4515 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524 ac_cv_prog_LINT="$ac_prog"
4525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4528 done
4529 done
4533 LINT=$ac_cv_prog_LINT
4534 if test -n "$LINT"; then
4535 echo "$as_me:$LINENO: result: $LINT" >&5
4536 echo "${ECHO_T}$LINT" >&6
4537 else
4538 echo "$as_me:$LINENO: result: no" >&5
4539 echo "${ECHO_T}no" >&6
4542 test -n "$LINT" && break
4543 done
4545 if test "$LINT" = "lint"
4546 then
4547 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4552 for ac_prog in docbook2html db2html
4554 # Extract the first word of "$ac_prog", so it can be a program name with args.
4555 set dummy $ac_prog; ac_word=$2
4556 echo "$as_me:$LINENO: checking for $ac_word" >&5
4557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4558 if test "${ac_cv_prog_DB2HTML+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561 if test -n "$DB2HTML"; then
4562 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571 ac_cv_prog_DB2HTML="$ac_prog"
4572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4575 done
4576 done
4580 DB2HTML=$ac_cv_prog_DB2HTML
4581 if test -n "$DB2HTML"; then
4582 echo "$as_me:$LINENO: result: $DB2HTML" >&5
4583 echo "${ECHO_T}$DB2HTML" >&6
4584 else
4585 echo "$as_me:$LINENO: result: no" >&5
4586 echo "${ECHO_T}no" >&6
4589 test -n "$DB2HTML" && break
4590 done
4591 test -n "$DB2HTML" || DB2HTML="false"
4595 for ac_prog in docbook2pdf db2pdf
4597 # Extract the first word of "$ac_prog", so it can be a program name with args.
4598 set dummy $ac_prog; ac_word=$2
4599 echo "$as_me:$LINENO: checking for $ac_word" >&5
4600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4601 if test "${ac_cv_prog_DB2PDF+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604 if test -n "$DB2PDF"; then
4605 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614 ac_cv_prog_DB2PDF="$ac_prog"
4615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4618 done
4619 done
4623 DB2PDF=$ac_cv_prog_DB2PDF
4624 if test -n "$DB2PDF"; then
4625 echo "$as_me:$LINENO: result: $DB2PDF" >&5
4626 echo "${ECHO_T}$DB2PDF" >&6
4627 else
4628 echo "$as_me:$LINENO: result: no" >&5
4629 echo "${ECHO_T}no" >&6
4632 test -n "$DB2PDF" && break
4633 done
4634 test -n "$DB2PDF" || DB2PDF="false"
4638 for ac_prog in docbook2ps db2ps
4640 # Extract the first word of "$ac_prog", so it can be a program name with args.
4641 set dummy $ac_prog; ac_word=$2
4642 echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4644 if test "${ac_cv_prog_DB2PS+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647 if test -n "$DB2PS"; then
4648 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_prog_DB2PS="$ac_prog"
4658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4661 done
4662 done
4666 DB2PS=$ac_cv_prog_DB2PS
4667 if test -n "$DB2PS"; then
4668 echo "$as_me:$LINENO: result: $DB2PS" >&5
4669 echo "${ECHO_T}$DB2PS" >&6
4670 else
4671 echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6
4675 test -n "$DB2PS" && break
4676 done
4677 test -n "$DB2PS" || DB2PS="false"
4683 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4684 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4685 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688 ac_check_lib_save_LIBS=$LIBS
4689 LIBS="-lm $LIBS"
4690 cat >conftest.$ac_ext <<_ACEOF
4691 #line $LINENO "configure"
4692 #include "confdefs.h"
4694 /* Override any gcc2 internal prototype to avoid an error. */
4695 #ifdef __cplusplus
4696 extern "C"
4697 #endif
4698 /* We use char because int might match the return type of a gcc2
4699 builtin and then its argument prototype would still apply. */
4700 char sqrt ();
4702 main ()
4704 sqrt ();
4706 return 0;
4708 _ACEOF
4709 rm -f conftest.$ac_objext conftest$ac_exeext
4710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4711 (eval $ac_link) 2>&5
4712 ac_status=$?
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try='test -s conftest$ac_exeext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 ac_cv_lib_m_sqrt=yes
4722 else
4723 echo "$as_me: failed program was:" >&5
4724 cat conftest.$ac_ext >&5
4725 ac_cv_lib_m_sqrt=no
4727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4728 LIBS=$ac_check_lib_save_LIBS
4730 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4731 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4732 if test $ac_cv_lib_m_sqrt = yes; then
4733 cat >>confdefs.h <<_ACEOF
4734 #define HAVE_LIBM 1
4735 _ACEOF
4737 LIBS="-lm $LIBS"
4742 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
4743 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4744 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747 ac_check_lib_save_LIBS=$LIBS
4748 LIBS="-li386 $LIBS"
4749 cat >conftest.$ac_ext <<_ACEOF
4750 #line $LINENO "configure"
4751 #include "confdefs.h"
4753 /* Override any gcc2 internal prototype to avoid an error. */
4754 #ifdef __cplusplus
4755 extern "C"
4756 #endif
4757 /* We use char because int might match the return type of a gcc2
4758 builtin and then its argument prototype would still apply. */
4759 char i386_set_ldt ();
4761 main ()
4763 i386_set_ldt ();
4765 return 0;
4767 _ACEOF
4768 rm -f conftest.$ac_objext conftest$ac_exeext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4770 (eval $ac_link) 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -s conftest$ac_exeext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 ac_cv_lib_i386_i386_set_ldt=yes
4781 else
4782 echo "$as_me: failed program was:" >&5
4783 cat conftest.$ac_ext >&5
4784 ac_cv_lib_i386_i386_set_ldt=no
4786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4787 LIBS=$ac_check_lib_save_LIBS
4789 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
4790 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4791 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
4792 cat >>confdefs.h <<_ACEOF
4793 #define HAVE_LIBI386 1
4794 _ACEOF
4796 LIBS="-li386 $LIBS"
4801 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4802 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4803 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806 ac_check_lib_save_LIBS=$LIBS
4807 LIBS="-lossaudio $LIBS"
4808 cat >conftest.$ac_ext <<_ACEOF
4809 #line $LINENO "configure"
4810 #include "confdefs.h"
4812 /* Override any gcc2 internal prototype to avoid an error. */
4813 #ifdef __cplusplus
4814 extern "C"
4815 #endif
4816 /* We use char because int might match the return type of a gcc2
4817 builtin and then its argument prototype would still apply. */
4818 char _oss_ioctl ();
4820 main ()
4822 _oss_ioctl ();
4824 return 0;
4826 _ACEOF
4827 rm -f conftest.$ac_objext conftest$ac_exeext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4829 (eval $ac_link) 2>&5
4830 ac_status=$?
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } &&
4833 { ac_try='test -s conftest$ac_exeext'
4834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 (eval $ac_try) 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; }; then
4839 ac_cv_lib_ossaudio__oss_ioctl=yes
4840 else
4841 echo "$as_me: failed program was:" >&5
4842 cat conftest.$ac_ext >&5
4843 ac_cv_lib_ossaudio__oss_ioctl=no
4845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4846 LIBS=$ac_check_lib_save_LIBS
4848 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4849 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4850 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4851 cat >>confdefs.h <<_ACEOF
4852 #define HAVE_LIBOSSAUDIO 1
4853 _ACEOF
4855 LIBS="-lossaudio $LIBS"
4860 for ac_func in iswalnum
4862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4863 echo "$as_me:$LINENO: checking for $ac_func" >&5
4864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4865 if eval "test \"\${$as_ac_var+set}\" = set"; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868 cat >conftest.$ac_ext <<_ACEOF
4869 #line $LINENO "configure"
4870 #include "confdefs.h"
4871 /* System header to define __stub macros and hopefully few prototypes,
4872 which can conflict with char $ac_func (); below. */
4873 #include <assert.h>
4874 /* Override any gcc2 internal prototype to avoid an error. */
4875 #ifdef __cplusplus
4876 extern "C"
4877 #endif
4878 /* We use char because int might match the return type of a gcc2
4879 builtin and then its argument prototype would still apply. */
4880 char $ac_func ();
4881 char (*f) ();
4884 main ()
4886 /* The GNU C library defines this for functions which it implements
4887 to always fail with ENOSYS. Some functions are actually named
4888 something starting with __ and the normal name is an alias. */
4889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4890 choke me
4891 #else
4892 f = $ac_func;
4893 #endif
4896 return 0;
4898 _ACEOF
4899 rm -f conftest.$ac_objext conftest$ac_exeext
4900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4901 (eval $ac_link) 2>&5
4902 ac_status=$?
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } &&
4905 { ac_try='test -s conftest$ac_exeext'
4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 (eval $ac_try) 2>&5
4908 ac_status=$?
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; }; then
4911 eval "$as_ac_var=yes"
4912 else
4913 echo "$as_me: failed program was:" >&5
4914 cat conftest.$ac_ext >&5
4915 eval "$as_ac_var=no"
4917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4921 if test `eval echo '${'$as_ac_var'}'` = yes; then
4922 cat >>confdefs.h <<_ACEOF
4923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4924 _ACEOF
4926 else
4928 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
4929 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4930 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4932 else
4933 ac_check_lib_save_LIBS=$LIBS
4934 LIBS="-lw $LIBS"
4935 cat >conftest.$ac_ext <<_ACEOF
4936 #line $LINENO "configure"
4937 #include "confdefs.h"
4939 /* Override any gcc2 internal prototype to avoid an error. */
4940 #ifdef __cplusplus
4941 extern "C"
4942 #endif
4943 /* We use char because int might match the return type of a gcc2
4944 builtin and then its argument prototype would still apply. */
4945 char iswalnum ();
4947 main ()
4949 iswalnum ();
4951 return 0;
4953 _ACEOF
4954 rm -f conftest.$ac_objext conftest$ac_exeext
4955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4956 (eval $ac_link) 2>&5
4957 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } &&
4960 { ac_try='test -s conftest$ac_exeext'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962 (eval $ac_try) 2>&5
4963 ac_status=$?
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; }; then
4966 ac_cv_lib_w_iswalnum=yes
4967 else
4968 echo "$as_me: failed program was:" >&5
4969 cat conftest.$ac_ext >&5
4970 ac_cv_lib_w_iswalnum=no
4972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4973 LIBS=$ac_check_lib_save_LIBS
4975 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
4976 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4977 if test $ac_cv_lib_w_iswalnum = yes; then
4978 cat >>confdefs.h <<_ACEOF
4979 #define HAVE_LIBW 1
4980 _ACEOF
4982 LIBS="-lw $LIBS"
4987 done
4990 for ac_func in gethostbyname
4992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4993 echo "$as_me:$LINENO: checking for $ac_func" >&5
4994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4995 if eval "test \"\${$as_ac_var+set}\" = set"; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998 cat >conftest.$ac_ext <<_ACEOF
4999 #line $LINENO "configure"
5000 #include "confdefs.h"
5001 /* System header to define __stub macros and hopefully few prototypes,
5002 which can conflict with char $ac_func (); below. */
5003 #include <assert.h>
5004 /* Override any gcc2 internal prototype to avoid an error. */
5005 #ifdef __cplusplus
5006 extern "C"
5007 #endif
5008 /* We use char because int might match the return type of a gcc2
5009 builtin and then its argument prototype would still apply. */
5010 char $ac_func ();
5011 char (*f) ();
5014 main ()
5016 /* The GNU C library defines this for functions which it implements
5017 to always fail with ENOSYS. Some functions are actually named
5018 something starting with __ and the normal name is an alias. */
5019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5020 choke me
5021 #else
5022 f = $ac_func;
5023 #endif
5026 return 0;
5028 _ACEOF
5029 rm -f conftest.$ac_objext conftest$ac_exeext
5030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5031 (eval $ac_link) 2>&5
5032 ac_status=$?
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } &&
5035 { ac_try='test -s conftest$ac_exeext'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 (eval $ac_try) 2>&5
5038 ac_status=$?
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; }; then
5041 eval "$as_ac_var=yes"
5042 else
5043 echo "$as_me: failed program was:" >&5
5044 cat conftest.$ac_ext >&5
5045 eval "$as_ac_var=no"
5047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5051 if test `eval echo '${'$as_ac_var'}'` = yes; then
5052 cat >>confdefs.h <<_ACEOF
5053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5054 _ACEOF
5056 else
5058 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5059 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5060 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 else
5063 ac_check_lib_save_LIBS=$LIBS
5064 LIBS="-lnsl $LIBS"
5065 cat >conftest.$ac_ext <<_ACEOF
5066 #line $LINENO "configure"
5067 #include "confdefs.h"
5069 /* Override any gcc2 internal prototype to avoid an error. */
5070 #ifdef __cplusplus
5071 extern "C"
5072 #endif
5073 /* We use char because int might match the return type of a gcc2
5074 builtin and then its argument prototype would still apply. */
5075 char gethostbyname ();
5077 main ()
5079 gethostbyname ();
5081 return 0;
5083 _ACEOF
5084 rm -f conftest.$ac_objext conftest$ac_exeext
5085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5086 (eval $ac_link) 2>&5
5087 ac_status=$?
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } &&
5090 { ac_try='test -s conftest$ac_exeext'
5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 (eval $ac_try) 2>&5
5093 ac_status=$?
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; }; then
5096 ac_cv_lib_nsl_gethostbyname=yes
5097 else
5098 echo "$as_me: failed program was:" >&5
5099 cat conftest.$ac_ext >&5
5100 ac_cv_lib_nsl_gethostbyname=no
5102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5103 LIBS=$ac_check_lib_save_LIBS
5105 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5106 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5107 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5108 cat >>confdefs.h <<_ACEOF
5109 #define HAVE_LIBNSL 1
5110 _ACEOF
5112 LIBS="-lnsl $LIBS"
5117 done
5120 for ac_func in connect
5122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5123 echo "$as_me:$LINENO: checking for $ac_func" >&5
5124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5125 if eval "test \"\${$as_ac_var+set}\" = set"; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 else
5128 cat >conftest.$ac_ext <<_ACEOF
5129 #line $LINENO "configure"
5130 #include "confdefs.h"
5131 /* System header to define __stub macros and hopefully few prototypes,
5132 which can conflict with char $ac_func (); below. */
5133 #include <assert.h>
5134 /* Override any gcc2 internal prototype to avoid an error. */
5135 #ifdef __cplusplus
5136 extern "C"
5137 #endif
5138 /* We use char because int might match the return type of a gcc2
5139 builtin and then its argument prototype would still apply. */
5140 char $ac_func ();
5141 char (*f) ();
5144 main ()
5146 /* The GNU C library defines this for functions which it implements
5147 to always fail with ENOSYS. Some functions are actually named
5148 something starting with __ and the normal name is an alias. */
5149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5150 choke me
5151 #else
5152 f = $ac_func;
5153 #endif
5156 return 0;
5158 _ACEOF
5159 rm -f conftest.$ac_objext conftest$ac_exeext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5161 (eval $ac_link) 2>&5
5162 ac_status=$?
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } &&
5165 { ac_try='test -s conftest$ac_exeext'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 (eval $ac_try) 2>&5
5168 ac_status=$?
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; }; then
5171 eval "$as_ac_var=yes"
5172 else
5173 echo "$as_me: failed program was:" >&5
5174 cat conftest.$ac_ext >&5
5175 eval "$as_ac_var=no"
5177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5181 if test `eval echo '${'$as_ac_var'}'` = yes; then
5182 cat >>confdefs.h <<_ACEOF
5183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5184 _ACEOF
5186 else
5188 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5189 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5190 if test "${ac_cv_lib_socket_connect+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193 ac_check_lib_save_LIBS=$LIBS
5194 LIBS="-lsocket $LIBS"
5195 cat >conftest.$ac_ext <<_ACEOF
5196 #line $LINENO "configure"
5197 #include "confdefs.h"
5199 /* Override any gcc2 internal prototype to avoid an error. */
5200 #ifdef __cplusplus
5201 extern "C"
5202 #endif
5203 /* We use char because int might match the return type of a gcc2
5204 builtin and then its argument prototype would still apply. */
5205 char connect ();
5207 main ()
5209 connect ();
5211 return 0;
5213 _ACEOF
5214 rm -f conftest.$ac_objext conftest$ac_exeext
5215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5216 (eval $ac_link) 2>&5
5217 ac_status=$?
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } &&
5220 { ac_try='test -s conftest$ac_exeext'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 (eval $ac_try) 2>&5
5223 ac_status=$?
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 ac_cv_lib_socket_connect=yes
5227 else
5228 echo "$as_me: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5230 ac_cv_lib_socket_connect=no
5232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5233 LIBS=$ac_check_lib_save_LIBS
5235 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5236 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5237 if test $ac_cv_lib_socket_connect = yes; then
5238 cat >>confdefs.h <<_ACEOF
5239 #define HAVE_LIBSOCKET 1
5240 _ACEOF
5242 LIBS="-lsocket $LIBS"
5247 done
5250 for ac_func in inet_aton
5252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5253 echo "$as_me:$LINENO: checking for $ac_func" >&5
5254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5255 if eval "test \"\${$as_ac_var+set}\" = set"; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258 cat >conftest.$ac_ext <<_ACEOF
5259 #line $LINENO "configure"
5260 #include "confdefs.h"
5261 /* System header to define __stub macros and hopefully few prototypes,
5262 which can conflict with char $ac_func (); below. */
5263 #include <assert.h>
5264 /* Override any gcc2 internal prototype to avoid an error. */
5265 #ifdef __cplusplus
5266 extern "C"
5267 #endif
5268 /* We use char because int might match the return type of a gcc2
5269 builtin and then its argument prototype would still apply. */
5270 char $ac_func ();
5271 char (*f) ();
5274 main ()
5276 /* The GNU C library defines this for functions which it implements
5277 to always fail with ENOSYS. Some functions are actually named
5278 something starting with __ and the normal name is an alias. */
5279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5280 choke me
5281 #else
5282 f = $ac_func;
5283 #endif
5286 return 0;
5288 _ACEOF
5289 rm -f conftest.$ac_objext conftest$ac_exeext
5290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5291 (eval $ac_link) 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } &&
5295 { ac_try='test -s conftest$ac_exeext'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 (eval $ac_try) 2>&5
5298 ac_status=$?
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5301 eval "$as_ac_var=yes"
5302 else
5303 echo "$as_me: failed program was:" >&5
5304 cat conftest.$ac_ext >&5
5305 eval "$as_ac_var=no"
5307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5311 if test `eval echo '${'$as_ac_var'}'` = yes; then
5312 cat >>confdefs.h <<_ACEOF
5313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5314 _ACEOF
5316 else
5318 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5319 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5320 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323 ac_check_lib_save_LIBS=$LIBS
5324 LIBS="-lresolv $LIBS"
5325 cat >conftest.$ac_ext <<_ACEOF
5326 #line $LINENO "configure"
5327 #include "confdefs.h"
5329 /* Override any gcc2 internal prototype to avoid an error. */
5330 #ifdef __cplusplus
5331 extern "C"
5332 #endif
5333 /* We use char because int might match the return type of a gcc2
5334 builtin and then its argument prototype would still apply. */
5335 char inet_aton ();
5337 main ()
5339 inet_aton ();
5341 return 0;
5343 _ACEOF
5344 rm -f conftest.$ac_objext conftest$ac_exeext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5346 (eval $ac_link) 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } &&
5350 { ac_try='test -s conftest$ac_exeext'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 (eval $ac_try) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 ac_cv_lib_resolv_inet_aton=yes
5357 else
5358 echo "$as_me: failed program was:" >&5
5359 cat conftest.$ac_ext >&5
5360 ac_cv_lib_resolv_inet_aton=no
5362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5363 LIBS=$ac_check_lib_save_LIBS
5365 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5366 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5367 if test $ac_cv_lib_resolv_inet_aton = yes; then
5368 cat >>confdefs.h <<_ACEOF
5369 #define HAVE_LIBRESOLV 1
5370 _ACEOF
5372 LIBS="-lresolv $LIBS"
5377 done
5380 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5381 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5382 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5384 else
5385 ac_check_lib_save_LIBS=$LIBS
5386 LIBS="-lxpg4 $LIBS"
5387 cat >conftest.$ac_ext <<_ACEOF
5388 #line $LINENO "configure"
5389 #include "confdefs.h"
5391 /* Override any gcc2 internal prototype to avoid an error. */
5392 #ifdef __cplusplus
5393 extern "C"
5394 #endif
5395 /* We use char because int might match the return type of a gcc2
5396 builtin and then its argument prototype would still apply. */
5397 char _xpg4_setrunelocale ();
5399 main ()
5401 _xpg4_setrunelocale ();
5403 return 0;
5405 _ACEOF
5406 rm -f conftest.$ac_objext conftest$ac_exeext
5407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5408 (eval $ac_link) 2>&5
5409 ac_status=$?
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } &&
5412 { ac_try='test -s conftest$ac_exeext'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 (eval $ac_try) 2>&5
5415 ac_status=$?
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; }; then
5418 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5419 else
5420 echo "$as_me: failed program was:" >&5
5421 cat conftest.$ac_ext >&5
5422 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5425 LIBS=$ac_check_lib_save_LIBS
5427 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5428 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5429 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5430 cat >>confdefs.h <<_ACEOF
5431 #define HAVE_LIBXPG4 1
5432 _ACEOF
5434 LIBS="-lxpg4 $LIBS"
5439 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5440 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5441 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444 ac_check_lib_save_LIBS=$LIBS
5445 LIBS="-lmmap $LIBS"
5446 cat >conftest.$ac_ext <<_ACEOF
5447 #line $LINENO "configure"
5448 #include "confdefs.h"
5450 /* Override any gcc2 internal prototype to avoid an error. */
5451 #ifdef __cplusplus
5452 extern "C"
5453 #endif
5454 /* We use char because int might match the return type of a gcc2
5455 builtin and then its argument prototype would still apply. */
5456 char mmap ();
5458 main ()
5460 mmap ();
5462 return 0;
5464 _ACEOF
5465 rm -f conftest.$ac_objext conftest$ac_exeext
5466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5467 (eval $ac_link) 2>&5
5468 ac_status=$?
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } &&
5471 { ac_try='test -s conftest$ac_exeext'
5472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 (eval $ac_try) 2>&5
5474 ac_status=$?
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; }; then
5477 ac_cv_lib_mmap_mmap=yes
5478 else
5479 echo "$as_me: failed program was:" >&5
5480 cat conftest.$ac_ext >&5
5481 ac_cv_lib_mmap_mmap=no
5483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5484 LIBS=$ac_check_lib_save_LIBS
5486 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5487 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5488 if test $ac_cv_lib_mmap_mmap = yes; then
5489 cat >>confdefs.h <<_ACEOF
5490 #define HAVE_LIBMMAP 1
5491 _ACEOF
5493 LIBS="-lmmap $LIBS"
5498 JPEGLIB=""
5500 echo "$as_me:$LINENO: checking for egrep" >&5
5501 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5502 if test "${ac_cv_prog_egrep+set}" = set; then
5503 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 else
5505 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5506 then ac_cv_prog_egrep='grep -E'
5507 else ac_cv_prog_egrep='egrep'
5510 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5511 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5512 EGREP=$ac_cv_prog_egrep
5515 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5516 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5517 if test "${ac_cv_header_stdc+set}" = set; then
5518 echo $ECHO_N "(cached) $ECHO_C" >&6
5519 else
5520 cat >conftest.$ac_ext <<_ACEOF
5521 #line $LINENO "configure"
5522 #include "confdefs.h"
5523 #include <stdlib.h>
5524 #include <stdarg.h>
5525 #include <string.h>
5526 #include <float.h>
5528 _ACEOF
5529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5531 ac_status=$?
5532 grep -v '^ *+' conftest.er1 >conftest.err
5533 rm -f conftest.er1
5534 cat conftest.err >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } >/dev/null; then
5537 if test -s conftest.err; then
5538 ac_cpp_err=$ac_c_preproc_warn_flag
5539 else
5540 ac_cpp_err=
5542 else
5543 ac_cpp_err=yes
5545 if test -z "$ac_cpp_err"; then
5546 ac_cv_header_stdc=yes
5547 else
5548 echo "$as_me: failed program was:" >&5
5549 cat conftest.$ac_ext >&5
5550 ac_cv_header_stdc=no
5552 rm -f conftest.err conftest.$ac_ext
5554 if test $ac_cv_header_stdc = yes; then
5555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5556 cat >conftest.$ac_ext <<_ACEOF
5557 #line $LINENO "configure"
5558 #include "confdefs.h"
5559 #include <string.h>
5561 _ACEOF
5562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5563 $EGREP "memchr" >/dev/null 2>&1; then
5565 else
5566 ac_cv_header_stdc=no
5568 rm -f conftest*
5572 if test $ac_cv_header_stdc = yes; then
5573 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5574 cat >conftest.$ac_ext <<_ACEOF
5575 #line $LINENO "configure"
5576 #include "confdefs.h"
5577 #include <stdlib.h>
5579 _ACEOF
5580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5581 $EGREP "free" >/dev/null 2>&1; then
5583 else
5584 ac_cv_header_stdc=no
5586 rm -f conftest*
5590 if test $ac_cv_header_stdc = yes; then
5591 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5592 if test "$cross_compiling" = yes; then
5594 else
5595 cat >conftest.$ac_ext <<_ACEOF
5596 #line $LINENO "configure"
5597 #include "confdefs.h"
5598 #include <ctype.h>
5599 #if ((' ' & 0x0FF) == 0x020)
5600 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5601 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5602 #else
5603 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5604 || ('j' <= (c) && (c) <= 'r') \
5605 || ('s' <= (c) && (c) <= 'z'))
5606 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5607 #endif
5609 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5611 main ()
5613 int i;
5614 for (i = 0; i < 256; i++)
5615 if (XOR (islower (i), ISLOWER (i))
5616 || toupper (i) != TOUPPER (i))
5617 exit(2);
5618 exit (0);
5620 _ACEOF
5621 rm -f conftest$ac_exeext
5622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5623 (eval $ac_link) 2>&5
5624 ac_status=$?
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628 (eval $ac_try) 2>&5
5629 ac_status=$?
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; }; then
5633 else
5634 echo "$as_me: program exited with status $ac_status" >&5
5635 echo "$as_me: failed program was:" >&5
5636 cat conftest.$ac_ext >&5
5637 ( exit $ac_status )
5638 ac_cv_header_stdc=no
5640 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5644 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5645 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5646 if test $ac_cv_header_stdc = yes; then
5648 cat >>confdefs.h <<\_ACEOF
5649 #define STDC_HEADERS 1
5650 _ACEOF
5654 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5664 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5665 inttypes.h stdint.h unistd.h
5667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5668 echo "$as_me:$LINENO: checking for $ac_header" >&5
5669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673 cat >conftest.$ac_ext <<_ACEOF
5674 #line $LINENO "configure"
5675 #include "confdefs.h"
5676 $ac_includes_default
5678 #include <$ac_header>
5679 _ACEOF
5680 rm -f conftest.$ac_objext
5681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5682 (eval $ac_compile) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } &&
5686 { ac_try='test -s conftest.$ac_objext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 (eval $ac_try) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 eval "$as_ac_Header=yes"
5693 else
5694 echo "$as_me: failed program was:" >&5
5695 cat conftest.$ac_ext >&5
5696 eval "$as_ac_Header=no"
5698 rm -f conftest.$ac_objext conftest.$ac_ext
5700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5703 cat >>confdefs.h <<_ACEOF
5704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5705 _ACEOF
5709 done
5713 for ac_header in jpeglib.h
5715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5717 echo "$as_me:$LINENO: checking for $ac_header" >&5
5718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5724 else
5725 # Is the header compilable?
5726 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5728 cat >conftest.$ac_ext <<_ACEOF
5729 #line $LINENO "configure"
5730 #include "confdefs.h"
5731 $ac_includes_default
5732 #include <$ac_header>
5733 _ACEOF
5734 rm -f conftest.$ac_objext
5735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5736 (eval $ac_compile) 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try='test -s conftest.$ac_objext'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
5746 ac_header_compiler=yes
5747 else
5748 echo "$as_me: failed program was:" >&5
5749 cat conftest.$ac_ext >&5
5750 ac_header_compiler=no
5752 rm -f conftest.$ac_objext conftest.$ac_ext
5753 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5754 echo "${ECHO_T}$ac_header_compiler" >&6
5756 # Is the header present?
5757 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5759 cat >conftest.$ac_ext <<_ACEOF
5760 #line $LINENO "configure"
5761 #include "confdefs.h"
5762 #include <$ac_header>
5763 _ACEOF
5764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5766 ac_status=$?
5767 grep -v '^ *+' conftest.er1 >conftest.err
5768 rm -f conftest.er1
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } >/dev/null; then
5772 if test -s conftest.err; then
5773 ac_cpp_err=$ac_c_preproc_warn_flag
5774 else
5775 ac_cpp_err=
5777 else
5778 ac_cpp_err=yes
5780 if test -z "$ac_cpp_err"; then
5781 ac_header_preproc=yes
5782 else
5783 echo "$as_me: failed program was:" >&5
5784 cat conftest.$ac_ext >&5
5785 ac_header_preproc=no
5787 rm -f conftest.err conftest.$ac_ext
5788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5789 echo "${ECHO_T}$ac_header_preproc" >&6
5791 # So? What about this header?
5792 case $ac_header_compiler:$ac_header_preproc in
5793 yes:no )
5794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5798 no:yes )
5799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5802 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5805 esac
5806 echo "$as_me:$LINENO: checking for $ac_header" >&5
5807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811 eval "$as_ac_Header=$ac_header_preproc"
5813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5818 cat >>confdefs.h <<_ACEOF
5819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5820 _ACEOF
5821 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
5822 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5823 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 else
5826 ac_check_lib_save_LIBS=$LIBS
5827 LIBS="-ljpeg $LIBS"
5828 cat >conftest.$ac_ext <<_ACEOF
5829 #line $LINENO "configure"
5830 #include "confdefs.h"
5832 /* Override any gcc2 internal prototype to avoid an error. */
5833 #ifdef __cplusplus
5834 extern "C"
5835 #endif
5836 /* We use char because int might match the return type of a gcc2
5837 builtin and then its argument prototype would still apply. */
5838 char jpeg_start_decompress ();
5840 main ()
5842 jpeg_start_decompress ();
5844 return 0;
5846 _ACEOF
5847 rm -f conftest.$ac_objext conftest$ac_exeext
5848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5849 (eval $ac_link) 2>&5
5850 ac_status=$?
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } &&
5853 { ac_try='test -s conftest$ac_exeext'
5854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855 (eval $ac_try) 2>&5
5856 ac_status=$?
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; }; then
5859 ac_cv_lib_jpeg_jpeg_start_decompress=yes
5860 else
5861 echo "$as_me: failed program was:" >&5
5862 cat conftest.$ac_ext >&5
5863 ac_cv_lib_jpeg_jpeg_start_decompress=no
5865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5866 LIBS=$ac_check_lib_save_LIBS
5868 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
5869 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5870 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
5872 cat >>confdefs.h <<\_ACEOF
5873 #define HAVE_LIBJPEG 1
5874 _ACEOF
5876 JPEGLIB="-ljpeg"
5883 done
5889 XFILES=""
5891 OPENGLFILES=""
5893 GLU32FILES=""
5895 OPENGL_LIBS=""
5896 if test "$have_x" = "yes"
5897 then
5898 XLIB="-lXext -lX11"
5899 ac_save_CPPFLAGS="$CPPFLAGS"
5900 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5903 for ac_header in X11/Xlib.h
5905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5907 echo "$as_me:$LINENO: checking for $ac_header" >&5
5908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5914 else
5915 # Is the header compilable?
5916 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5918 cat >conftest.$ac_ext <<_ACEOF
5919 #line $LINENO "configure"
5920 #include "confdefs.h"
5921 $ac_includes_default
5922 #include <$ac_header>
5923 _ACEOF
5924 rm -f conftest.$ac_objext
5925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5926 (eval $ac_compile) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
5930 { ac_try='test -s conftest.$ac_objext'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 (eval $ac_try) 2>&5
5933 ac_status=$?
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; }; then
5936 ac_header_compiler=yes
5937 else
5938 echo "$as_me: failed program was:" >&5
5939 cat conftest.$ac_ext >&5
5940 ac_header_compiler=no
5942 rm -f conftest.$ac_objext conftest.$ac_ext
5943 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5944 echo "${ECHO_T}$ac_header_compiler" >&6
5946 # Is the header present?
5947 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5948 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5949 cat >conftest.$ac_ext <<_ACEOF
5950 #line $LINENO "configure"
5951 #include "confdefs.h"
5952 #include <$ac_header>
5953 _ACEOF
5954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5956 ac_status=$?
5957 grep -v '^ *+' conftest.er1 >conftest.err
5958 rm -f conftest.er1
5959 cat conftest.err >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } >/dev/null; then
5962 if test -s conftest.err; then
5963 ac_cpp_err=$ac_c_preproc_warn_flag
5964 else
5965 ac_cpp_err=
5967 else
5968 ac_cpp_err=yes
5970 if test -z "$ac_cpp_err"; then
5971 ac_header_preproc=yes
5972 else
5973 echo "$as_me: failed program was:" >&5
5974 cat conftest.$ac_ext >&5
5975 ac_header_preproc=no
5977 rm -f conftest.err conftest.$ac_ext
5978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5979 echo "${ECHO_T}$ac_header_preproc" >&6
5981 # So? What about this header?
5982 case $ac_header_compiler:$ac_header_preproc in
5983 yes:no )
5984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5988 no:yes )
5989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5995 esac
5996 echo "$as_me:$LINENO: checking for $ac_header" >&5
5997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 else
6001 eval "$as_ac_Header=$ac_header_preproc"
6003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6008 cat >>confdefs.h <<_ACEOF
6009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6010 _ACEOF
6013 for ac_header in X11/XKBlib.h
6015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6016 echo "$as_me:$LINENO: checking for $ac_header" >&5
6017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021 cat >conftest.$ac_ext <<_ACEOF
6022 #line $LINENO "configure"
6023 #include "confdefs.h"
6024 #include <X11/Xlib.h>
6026 #include <$ac_header>
6027 _ACEOF
6028 rm -f conftest.$ac_objext
6029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6030 (eval $ac_compile) 2>&5
6031 ac_status=$?
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } &&
6034 { ac_try='test -s conftest.$ac_objext'
6035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 (eval $ac_try) 2>&5
6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; }; then
6040 eval "$as_ac_Header=yes"
6041 else
6042 echo "$as_me: failed program was:" >&5
6043 cat conftest.$ac_ext >&5
6044 eval "$as_ac_Header=no"
6046 rm -f conftest.$ac_objext conftest.$ac_ext
6048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6051 cat >>confdefs.h <<_ACEOF
6052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6053 _ACEOF
6054 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6055 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6056 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059 ac_check_lib_save_LIBS=$LIBS
6060 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6061 cat >conftest.$ac_ext <<_ACEOF
6062 #line $LINENO "configure"
6063 #include "confdefs.h"
6065 /* Override any gcc2 internal prototype to avoid an error. */
6066 #ifdef __cplusplus
6067 extern "C"
6068 #endif
6069 /* We use char because int might match the return type of a gcc2
6070 builtin and then its argument prototype would still apply. */
6071 char XkbQueryExtension ();
6073 main ()
6075 XkbQueryExtension ();
6077 return 0;
6079 _ACEOF
6080 rm -f conftest.$ac_objext conftest$ac_exeext
6081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6082 (eval $ac_link) 2>&5
6083 ac_status=$?
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } &&
6086 { ac_try='test -s conftest$ac_exeext'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 (eval $ac_try) 2>&5
6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; }; then
6092 ac_cv_lib_X11_XkbQueryExtension=yes
6093 else
6094 echo "$as_me: failed program was:" >&5
6095 cat conftest.$ac_ext >&5
6096 ac_cv_lib_X11_XkbQueryExtension=no
6098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6099 LIBS=$ac_check_lib_save_LIBS
6101 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6102 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6103 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6105 cat >>confdefs.h <<\_ACEOF
6106 #define HAVE_XKB 1
6107 _ACEOF
6112 else
6113 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6114 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6117 done
6121 for ac_header in X11/extensions/XShm.h
6123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6124 echo "$as_me:$LINENO: checking for $ac_header" >&5
6125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 else
6129 cat >conftest.$ac_ext <<_ACEOF
6130 #line $LINENO "configure"
6131 #include "confdefs.h"
6132 #include <X11/Xlib.h>
6134 #include <$ac_header>
6135 _ACEOF
6136 rm -f conftest.$ac_objext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6138 (eval $ac_compile) 2>&5
6139 ac_status=$?
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } &&
6142 { ac_try='test -s conftest.$ac_objext'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 (eval $ac_try) 2>&5
6145 ac_status=$?
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; }; then
6148 eval "$as_ac_Header=yes"
6149 else
6150 echo "$as_me: failed program was:" >&5
6151 cat conftest.$ac_ext >&5
6152 eval "$as_ac_Header=no"
6154 rm -f conftest.$ac_objext conftest.$ac_ext
6156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6159 cat >>confdefs.h <<_ACEOF
6160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6161 _ACEOF
6162 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6163 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6164 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6166 else
6167 ac_check_lib_save_LIBS=$LIBS
6168 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6169 cat >conftest.$ac_ext <<_ACEOF
6170 #line $LINENO "configure"
6171 #include "confdefs.h"
6173 /* Override any gcc2 internal prototype to avoid an error. */
6174 #ifdef __cplusplus
6175 extern "C"
6176 #endif
6177 /* We use char because int might match the return type of a gcc2
6178 builtin and then its argument prototype would still apply. */
6179 char XShmQueryExtension ();
6181 main ()
6183 XShmQueryExtension ();
6185 return 0;
6187 _ACEOF
6188 rm -f conftest.$ac_objext conftest$ac_exeext
6189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6190 (eval $ac_link) 2>&5
6191 ac_status=$?
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } &&
6194 { ac_try='test -s conftest$ac_exeext'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 (eval $ac_try) 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 ac_cv_lib_Xext_XShmQueryExtension=yes
6201 else
6202 echo "$as_me: failed program was:" >&5
6203 cat conftest.$ac_ext >&5
6204 ac_cv_lib_Xext_XShmQueryExtension=no
6206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6207 LIBS=$ac_check_lib_save_LIBS
6209 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
6210 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6211 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
6213 cat >>confdefs.h <<\_ACEOF
6214 #define HAVE_LIBXXSHM 1
6215 _ACEOF
6220 else
6221 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
6222 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
6225 done
6229 for ac_header in X11/Xutil.h
6231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6232 echo "$as_me:$LINENO: checking for $ac_header" >&5
6233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237 cat >conftest.$ac_ext <<_ACEOF
6238 #line $LINENO "configure"
6239 #include "confdefs.h"
6240 #include <X11/Xlib.h>
6242 #include <$ac_header>
6243 _ACEOF
6244 rm -f conftest.$ac_objext
6245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6246 (eval $ac_compile) 2>&5
6247 ac_status=$?
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } &&
6250 { ac_try='test -s conftest.$ac_objext'
6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252 (eval $ac_try) 2>&5
6253 ac_status=$?
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; }; then
6256 eval "$as_ac_Header=yes"
6257 else
6258 echo "$as_me: failed program was:" >&5
6259 cat conftest.$ac_ext >&5
6260 eval "$as_ac_Header=no"
6262 rm -f conftest.$ac_objext conftest.$ac_ext
6264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6267 cat >>confdefs.h <<_ACEOF
6268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6269 _ACEOF
6273 done
6277 for ac_header in X11/extensions/shape.h
6279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6280 echo "$as_me:$LINENO: checking for $ac_header" >&5
6281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285 cat >conftest.$ac_ext <<_ACEOF
6286 #line $LINENO "configure"
6287 #include "confdefs.h"
6288 #include <X11/Xlib.h>
6289 #ifdef HAVE_X11_XUTIL_H
6290 # include <X11/Xutil.h>
6291 #endif
6293 #include <$ac_header>
6294 _ACEOF
6295 rm -f conftest.$ac_objext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297 (eval $ac_compile) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
6301 { ac_try='test -s conftest.$ac_objext'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303 (eval $ac_try) 2>&5
6304 ac_status=$?
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; }; then
6307 eval "$as_ac_Header=yes"
6308 else
6309 echo "$as_me: failed program was:" >&5
6310 cat conftest.$ac_ext >&5
6311 eval "$as_ac_Header=no"
6313 rm -f conftest.$ac_objext conftest.$ac_ext
6315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6318 cat >>confdefs.h <<_ACEOF
6319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6320 _ACEOF
6321 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
6322 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6323 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326 ac_check_lib_save_LIBS=$LIBS
6327 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6328 cat >conftest.$ac_ext <<_ACEOF
6329 #line $LINENO "configure"
6330 #include "confdefs.h"
6332 /* Override any gcc2 internal prototype to avoid an error. */
6333 #ifdef __cplusplus
6334 extern "C"
6335 #endif
6336 /* We use char because int might match the return type of a gcc2
6337 builtin and then its argument prototype would still apply. */
6338 char XShapeQueryExtension ();
6340 main ()
6342 XShapeQueryExtension ();
6344 return 0;
6346 _ACEOF
6347 rm -f conftest.$ac_objext conftest$ac_exeext
6348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6349 (eval $ac_link) 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } &&
6353 { ac_try='test -s conftest$ac_exeext'
6354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 (eval $ac_try) 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; }; then
6359 ac_cv_lib_Xext_XShapeQueryExtension=yes
6360 else
6361 echo "$as_me: failed program was:" >&5
6362 cat conftest.$ac_ext >&5
6363 ac_cv_lib_Xext_XShapeQueryExtension=no
6365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6366 LIBS=$ac_check_lib_save_LIBS
6368 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6369 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6370 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6372 cat >>confdefs.h <<\_ACEOF
6373 #define HAVE_LIBXSHAPE 1
6374 _ACEOF
6379 else
6380 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
6381 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
6384 done
6388 for ac_header in X11/extensions/xf86dga.h
6390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6391 echo "$as_me:$LINENO: checking for $ac_header" >&5
6392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6396 cat >conftest.$ac_ext <<_ACEOF
6397 #line $LINENO "configure"
6398 #include "confdefs.h"
6399 #include <X11/Xlib.h>
6401 #include <$ac_header>
6402 _ACEOF
6403 rm -f conftest.$ac_objext
6404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405 (eval $ac_compile) 2>&5
6406 ac_status=$?
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } &&
6409 { ac_try='test -s conftest.$ac_objext'
6410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411 (eval $ac_try) 2>&5
6412 ac_status=$?
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); }; }; then
6415 eval "$as_ac_Header=yes"
6416 else
6417 echo "$as_me: failed program was:" >&5
6418 cat conftest.$ac_ext >&5
6419 eval "$as_ac_Header=no"
6421 rm -f conftest.$ac_objext conftest.$ac_ext
6423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6426 cat >>confdefs.h <<_ACEOF
6427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6428 _ACEOF
6429 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
6430 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6431 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434 ac_check_lib_save_LIBS=$LIBS
6435 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6436 $LIBS"
6437 cat >conftest.$ac_ext <<_ACEOF
6438 #line $LINENO "configure"
6439 #include "confdefs.h"
6441 /* Override any gcc2 internal prototype to avoid an error. */
6442 #ifdef __cplusplus
6443 extern "C"
6444 #endif
6445 /* We use char because int might match the return type of a gcc2
6446 builtin and then its argument prototype would still apply. */
6447 char XDGAQueryExtension ();
6449 main ()
6451 XDGAQueryExtension ();
6453 return 0;
6455 _ACEOF
6456 rm -f conftest.$ac_objext conftest$ac_exeext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6458 (eval $ac_link) 2>&5
6459 ac_status=$?
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } &&
6462 { ac_try='test -s conftest$ac_exeext'
6463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 (eval $ac_try) 2>&5
6465 ac_status=$?
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
6468 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
6469 else
6470 echo "$as_me: failed program was:" >&5
6471 cat conftest.$ac_ext >&5
6472 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
6474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6475 LIBS=$ac_check_lib_save_LIBS
6477 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
6478 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6479 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
6481 cat >>confdefs.h <<\_ACEOF
6482 #define HAVE_LIBXXF86DGA2 1
6483 _ACEOF
6485 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6487 else
6488 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
6489 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6490 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6492 else
6493 ac_check_lib_save_LIBS=$LIBS
6494 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6495 $LIBS"
6496 cat >conftest.$ac_ext <<_ACEOF
6497 #line $LINENO "configure"
6498 #include "confdefs.h"
6500 /* Override any gcc2 internal prototype to avoid an error. */
6501 #ifdef __cplusplus
6502 extern "C"
6503 #endif
6504 /* We use char because int might match the return type of a gcc2
6505 builtin and then its argument prototype would still apply. */
6506 char XF86DGAQueryExtension ();
6508 main ()
6510 XF86DGAQueryExtension ();
6512 return 0;
6514 _ACEOF
6515 rm -f conftest.$ac_objext conftest$ac_exeext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6517 (eval $ac_link) 2>&5
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } &&
6521 { ac_try='test -s conftest$ac_exeext'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 (eval $ac_try) 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; }; then
6527 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
6528 else
6529 echo "$as_me: failed program was:" >&5
6530 cat conftest.$ac_ext >&5
6531 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
6533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6534 LIBS=$ac_check_lib_save_LIBS
6536 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
6537 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6538 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
6540 cat >>confdefs.h <<\_ACEOF
6541 #define HAVE_LIBXXF86DGA 1
6542 _ACEOF
6544 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6552 else
6553 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
6554 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
6557 done
6561 for ac_header in X11/extensions/xf86vmode.h
6563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6564 echo "$as_me:$LINENO: checking for $ac_header" >&5
6565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569 cat >conftest.$ac_ext <<_ACEOF
6570 #line $LINENO "configure"
6571 #include "confdefs.h"
6572 #include <X11/Xlib.h>
6574 #include <$ac_header>
6575 _ACEOF
6576 rm -f conftest.$ac_objext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6578 (eval $ac_compile) 2>&5
6579 ac_status=$?
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } &&
6582 { ac_try='test -s conftest.$ac_objext'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 (eval $ac_try) 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; }; then
6588 eval "$as_ac_Header=yes"
6589 else
6590 echo "$as_me: failed program was:" >&5
6591 cat conftest.$ac_ext >&5
6592 eval "$as_ac_Header=no"
6594 rm -f conftest.$ac_objext conftest.$ac_ext
6596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6599 cat >>confdefs.h <<_ACEOF
6600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6601 _ACEOF
6602 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
6603 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6604 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607 ac_check_lib_save_LIBS=$LIBS
6608 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6609 $LIBS"
6610 cat >conftest.$ac_ext <<_ACEOF
6611 #line $LINENO "configure"
6612 #include "confdefs.h"
6614 /* Override any gcc2 internal prototype to avoid an error. */
6615 #ifdef __cplusplus
6616 extern "C"
6617 #endif
6618 /* We use char because int might match the return type of a gcc2
6619 builtin and then its argument prototype would still apply. */
6620 char XF86VidModeQueryExtension ();
6622 main ()
6624 XF86VidModeQueryExtension ();
6626 return 0;
6628 _ACEOF
6629 rm -f conftest.$ac_objext conftest$ac_exeext
6630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6631 (eval $ac_link) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } &&
6635 { ac_try='test -s conftest$ac_exeext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
6642 else
6643 echo "$as_me: failed program was:" >&5
6644 cat conftest.$ac_ext >&5
6645 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
6647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6648 LIBS=$ac_check_lib_save_LIBS
6650 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
6651 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6652 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
6654 cat >>confdefs.h <<\_ACEOF
6655 #define HAVE_LIBXXF86VM 1
6656 _ACEOF
6658 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
6663 else
6664 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
6665 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
6668 done
6672 for ac_header in X11/extensions/Xvlib.h
6674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6675 echo "$as_me:$LINENO: checking for $ac_header" >&5
6676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680 cat >conftest.$ac_ext <<_ACEOF
6681 #line $LINENO "configure"
6682 #include "confdefs.h"
6683 #include <X11/Xlib.h>
6685 #include <$ac_header>
6686 _ACEOF
6687 rm -f conftest.$ac_objext
6688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6689 (eval $ac_compile) 2>&5
6690 ac_status=$?
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } &&
6693 { ac_try='test -s conftest.$ac_objext'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695 (eval $ac_try) 2>&5
6696 ac_status=$?
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6699 eval "$as_ac_Header=yes"
6700 else
6701 echo "$as_me: failed program was:" >&5
6702 cat conftest.$ac_ext >&5
6703 eval "$as_ac_Header=no"
6705 rm -f conftest.$ac_objext conftest.$ac_ext
6707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6710 cat >>confdefs.h <<_ACEOF
6711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6712 _ACEOF
6713 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
6714 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6715 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718 ac_check_lib_save_LIBS=$LIBS
6719 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6720 $LIBS"
6721 cat >conftest.$ac_ext <<_ACEOF
6722 #line $LINENO "configure"
6723 #include "confdefs.h"
6725 /* Override any gcc2 internal prototype to avoid an error. */
6726 #ifdef __cplusplus
6727 extern "C"
6728 #endif
6729 /* We use char because int might match the return type of a gcc2
6730 builtin and then its argument prototype would still apply. */
6731 char XvShmCreateImage ();
6733 main ()
6735 XvShmCreateImage ();
6737 return 0;
6739 _ACEOF
6740 rm -f conftest.$ac_objext conftest$ac_exeext
6741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6742 (eval $ac_link) 2>&5
6743 ac_status=$?
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } &&
6746 { ac_try='test -s conftest$ac_exeext'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then
6752 ac_cv_lib_Xv_XvShmCreateImage=yes
6753 else
6754 echo "$as_me: failed program was:" >&5
6755 cat conftest.$ac_ext >&5
6756 ac_cv_lib_Xv_XvShmCreateImage=no
6758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6759 LIBS=$ac_check_lib_save_LIBS
6761 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
6762 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6763 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
6765 cat >>confdefs.h <<\_ACEOF
6766 #define HAVE_XVIDEO 1
6767 _ACEOF
6769 X_PRE_LIBS="$X_PRE_LIBS -lXv"
6774 else
6775 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
6776 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
6779 done
6783 for ac_header in X11/extensions/Xrender.h
6785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6786 echo "$as_me:$LINENO: checking for $ac_header" >&5
6787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791 cat >conftest.$ac_ext <<_ACEOF
6792 #line $LINENO "configure"
6793 #include "confdefs.h"
6794 #include <X11/Xlib.h>
6796 #include <$ac_header>
6797 _ACEOF
6798 rm -f conftest.$ac_objext
6799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6800 (eval $ac_compile) 2>&5
6801 ac_status=$?
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); } &&
6804 { ac_try='test -s conftest.$ac_objext'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 (eval $ac_try) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
6810 eval "$as_ac_Header=yes"
6811 else
6812 echo "$as_me: failed program was:" >&5
6813 cat conftest.$ac_ext >&5
6814 eval "$as_ac_Header=no"
6816 rm -f conftest.$ac_objext conftest.$ac_ext
6818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6821 cat >>confdefs.h <<_ACEOF
6822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6823 _ACEOF
6827 done
6833 done
6835 if test "x$with_opengl" != "xno"
6836 then
6837 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
6838 then
6839 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
6840 This prevents linking to OpenGL. Delete the file and restart configure." >&5
6841 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6842 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6843 { (exit 1); exit 1; }; }
6848 for ac_header in GL/gl.h GL/glx.h
6850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6852 echo "$as_me:$LINENO: checking for $ac_header" >&5
6853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6859 else
6860 # Is the header compilable?
6861 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6863 cat >conftest.$ac_ext <<_ACEOF
6864 #line $LINENO "configure"
6865 #include "confdefs.h"
6866 $ac_includes_default
6867 #include <$ac_header>
6868 _ACEOF
6869 rm -f conftest.$ac_objext
6870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6871 (eval $ac_compile) 2>&5
6872 ac_status=$?
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } &&
6875 { ac_try='test -s conftest.$ac_objext'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 (eval $ac_try) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; }; then
6881 ac_header_compiler=yes
6882 else
6883 echo "$as_me: failed program was:" >&5
6884 cat conftest.$ac_ext >&5
6885 ac_header_compiler=no
6887 rm -f conftest.$ac_objext conftest.$ac_ext
6888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6889 echo "${ECHO_T}$ac_header_compiler" >&6
6891 # Is the header present?
6892 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6894 cat >conftest.$ac_ext <<_ACEOF
6895 #line $LINENO "configure"
6896 #include "confdefs.h"
6897 #include <$ac_header>
6898 _ACEOF
6899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6901 ac_status=$?
6902 grep -v '^ *+' conftest.er1 >conftest.err
6903 rm -f conftest.er1
6904 cat conftest.err >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } >/dev/null; then
6907 if test -s conftest.err; then
6908 ac_cpp_err=$ac_c_preproc_warn_flag
6909 else
6910 ac_cpp_err=
6912 else
6913 ac_cpp_err=yes
6915 if test -z "$ac_cpp_err"; then
6916 ac_header_preproc=yes
6917 else
6918 echo "$as_me: failed program was:" >&5
6919 cat conftest.$ac_ext >&5
6920 ac_header_preproc=no
6922 rm -f conftest.err conftest.$ac_ext
6923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6924 echo "${ECHO_T}$ac_header_preproc" >&6
6926 # So? What about this header?
6927 case $ac_header_compiler:$ac_header_preproc in
6928 yes:no )
6929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6933 no:yes )
6934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6940 esac
6941 echo "$as_me:$LINENO: checking for $ac_header" >&5
6942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 else
6946 eval "$as_ac_Header=$ac_header_preproc"
6948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6953 cat >>confdefs.h <<_ACEOF
6954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6955 _ACEOF
6959 done
6961 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
6962 then
6964 for ac_header in GL/glext.h
6966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6967 echo "$as_me:$LINENO: checking for $ac_header" >&5
6968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 else
6972 cat >conftest.$ac_ext <<_ACEOF
6973 #line $LINENO "configure"
6974 #include "confdefs.h"
6975 #include <GL/glx.h>
6977 #include <$ac_header>
6978 _ACEOF
6979 rm -f conftest.$ac_objext
6980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6981 (eval $ac_compile) 2>&5
6982 ac_status=$?
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } &&
6985 { ac_try='test -s conftest.$ac_objext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 (eval $ac_try) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6991 eval "$as_ac_Header=yes"
6992 else
6993 echo "$as_me: failed program was:" >&5
6994 cat conftest.$ac_ext >&5
6995 eval "$as_ac_Header=no"
6997 rm -f conftest.$ac_objext conftest.$ac_ext
6999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7002 cat >>confdefs.h <<_ACEOF
7003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7004 _ACEOF
7008 done
7010 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7011 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7012 if test "${wine_cv_opengl_version_OK+set}" = set; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 else
7015 cat >conftest.$ac_ext <<_ACEOF
7016 #line $LINENO "configure"
7017 #include "confdefs.h"
7018 #include <GL/gl.h>
7020 main ()
7022 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7024 return 0;
7026 _ACEOF
7027 rm -f conftest.$ac_objext
7028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7029 (eval $ac_compile) 2>&5
7030 ac_status=$?
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } &&
7033 { ac_try='test -s conftest.$ac_objext'
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 (eval $ac_try) 2>&5
7036 ac_status=$?
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; }; then
7039 wine_cv_opengl_version_OK="yes"
7040 else
7041 echo "$as_me: failed program was:" >&5
7042 cat conftest.$ac_ext >&5
7043 wine_cv_opengl_version_OK="no"
7046 rm -f conftest.$ac_objext conftest.$ac_ext
7049 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7050 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7052 if test "$wine_cv_opengl_version_OK" = "yes"
7053 then
7054 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7055 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7056 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059 ac_check_lib_save_LIBS=$LIBS
7060 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7061 cat >conftest.$ac_ext <<_ACEOF
7062 #line $LINENO "configure"
7063 #include "confdefs.h"
7065 /* Override any gcc2 internal prototype to avoid an error. */
7066 #ifdef __cplusplus
7067 extern "C"
7068 #endif
7069 /* We use char because int might match the return type of a gcc2
7070 builtin and then its argument prototype would still apply. */
7071 char glXCreateContext ();
7073 main ()
7075 glXCreateContext ();
7077 return 0;
7079 _ACEOF
7080 rm -f conftest.$ac_objext conftest$ac_exeext
7081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7082 (eval $ac_link) 2>&5
7083 ac_status=$?
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } &&
7086 { ac_try='test -s conftest$ac_exeext'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 (eval $ac_try) 2>&5
7089 ac_status=$?
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; }; then
7092 ac_cv_lib_GL_glXCreateContext=yes
7093 else
7094 echo "$as_me: failed program was:" >&5
7095 cat conftest.$ac_ext >&5
7096 ac_cv_lib_GL_glXCreateContext=no
7098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7099 LIBS=$ac_check_lib_save_LIBS
7101 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7102 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7103 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7104 OPENGL_LIBS="-lGL"
7109 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7110 then
7111 OPENGLFILES='$(OPENGLFILES)'
7113 cat >>confdefs.h <<\_ACEOF
7114 #define HAVE_OPENGL 1
7115 _ACEOF
7118 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7119 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7120 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123 ac_check_lib_save_LIBS=$LIBS
7124 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7125 cat >conftest.$ac_ext <<_ACEOF
7126 #line $LINENO "configure"
7127 #include "confdefs.h"
7129 /* Override any gcc2 internal prototype to avoid an error. */
7130 #ifdef __cplusplus
7131 extern "C"
7132 #endif
7133 /* We use char because int might match the return type of a gcc2
7134 builtin and then its argument prototype would still apply. */
7135 char glXGetProcAddressARB ();
7137 main ()
7139 glXGetProcAddressARB ();
7141 return 0;
7143 _ACEOF
7144 rm -f conftest.$ac_objext conftest$ac_exeext
7145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7146 (eval $ac_link) 2>&5
7147 ac_status=$?
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } &&
7150 { ac_try='test -s conftest$ac_exeext'
7151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 (eval $ac_try) 2>&5
7153 ac_status=$?
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }; }; then
7156 ac_cv_lib_GL_glXGetProcAddressARB=yes
7157 else
7158 echo "$as_me: failed program was:" >&5
7159 cat conftest.$ac_ext >&5
7160 ac_cv_lib_GL_glXGetProcAddressARB=no
7162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7163 LIBS=$ac_check_lib_save_LIBS
7165 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7166 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7167 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7169 cat >>confdefs.h <<\_ACEOF
7170 #define HAVE_GLX_GETPROCADDRESS 1
7171 _ACEOF
7176 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7177 then
7178 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7179 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7180 if test "${wine_cv_extension_prototypes+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 else
7183 cat >conftest.$ac_ext <<_ACEOF
7184 #line $LINENO "configure"
7185 #include "confdefs.h"
7186 #include <GL/gl.h>
7187 #ifdef HAVE_GL_GLEXT_H
7188 # include <GL/glext.h>
7189 #endif
7192 main ()
7194 PFNGLCOLORTABLEEXTPROC test_proc;
7196 return 0;
7198 _ACEOF
7199 rm -f conftest.$ac_objext
7200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7201 (eval $ac_compile) 2>&5
7202 ac_status=$?
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } &&
7205 { ac_try='test -s conftest.$ac_objext'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207 (eval $ac_try) 2>&5
7208 ac_status=$?
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; }; then
7211 wine_cv_extension_prototypes="yes"
7212 else
7213 echo "$as_me: failed program was:" >&5
7214 cat conftest.$ac_ext >&5
7215 wine_cv_extension_prototypes="no"
7218 rm -f conftest.$ac_objext conftest.$ac_ext
7221 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7222 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7223 if test "$wine_cv_extension_prototypes" = "yes"
7224 then
7226 cat >>confdefs.h <<\_ACEOF
7227 #define HAVE_GLEXT_PROTOTYPES 1
7228 _ACEOF
7234 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7235 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7236 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239 ac_check_lib_save_LIBS=$LIBS
7240 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7241 $LIBS"
7242 cat >conftest.$ac_ext <<_ACEOF
7243 #line $LINENO "configure"
7244 #include "confdefs.h"
7246 /* Override any gcc2 internal prototype to avoid an error. */
7247 #ifdef __cplusplus
7248 extern "C"
7249 #endif
7250 /* We use char because int might match the return type of a gcc2
7251 builtin and then its argument prototype would still apply. */
7252 char gluLookAt ();
7254 main ()
7256 gluLookAt ();
7258 return 0;
7260 _ACEOF
7261 rm -f conftest.$ac_objext conftest$ac_exeext
7262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7263 (eval $ac_link) 2>&5
7264 ac_status=$?
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); } &&
7267 { ac_try='test -s conftest$ac_exeext'
7268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269 (eval $ac_try) 2>&5
7270 ac_status=$?
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); }; }; then
7273 ac_cv_lib_GLU_gluLookAt=yes
7274 else
7275 echo "$as_me: failed program was:" >&5
7276 cat conftest.$ac_ext >&5
7277 ac_cv_lib_GLU_gluLookAt=no
7279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7280 LIBS=$ac_check_lib_save_LIBS
7282 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7283 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7284 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7285 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
7286 GLU32FILES='$(GLU32FILES)'
7294 NASLIBS=""
7297 for ac_header in audio/audiolib.h
7299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7301 echo "$as_me:$LINENO: checking for $ac_header" >&5
7302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7308 else
7309 # Is the header compilable?
7310 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7312 cat >conftest.$ac_ext <<_ACEOF
7313 #line $LINENO "configure"
7314 #include "confdefs.h"
7315 $ac_includes_default
7316 #include <$ac_header>
7317 _ACEOF
7318 rm -f conftest.$ac_objext
7319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7320 (eval $ac_compile) 2>&5
7321 ac_status=$?
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } &&
7324 { ac_try='test -s conftest.$ac_objext'
7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326 (eval $ac_try) 2>&5
7327 ac_status=$?
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); }; }; then
7330 ac_header_compiler=yes
7331 else
7332 echo "$as_me: failed program was:" >&5
7333 cat conftest.$ac_ext >&5
7334 ac_header_compiler=no
7336 rm -f conftest.$ac_objext conftest.$ac_ext
7337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7338 echo "${ECHO_T}$ac_header_compiler" >&6
7340 # Is the header present?
7341 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7343 cat >conftest.$ac_ext <<_ACEOF
7344 #line $LINENO "configure"
7345 #include "confdefs.h"
7346 #include <$ac_header>
7347 _ACEOF
7348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7350 ac_status=$?
7351 grep -v '^ *+' conftest.er1 >conftest.err
7352 rm -f conftest.er1
7353 cat conftest.err >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } >/dev/null; then
7356 if test -s conftest.err; then
7357 ac_cpp_err=$ac_c_preproc_warn_flag
7358 else
7359 ac_cpp_err=
7361 else
7362 ac_cpp_err=yes
7364 if test -z "$ac_cpp_err"; then
7365 ac_header_preproc=yes
7366 else
7367 echo "$as_me: failed program was:" >&5
7368 cat conftest.$ac_ext >&5
7369 ac_header_preproc=no
7371 rm -f conftest.err conftest.$ac_ext
7372 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7373 echo "${ECHO_T}$ac_header_preproc" >&6
7375 # So? What about this header?
7376 case $ac_header_compiler:$ac_header_preproc in
7377 yes:no )
7378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7379 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7382 no:yes )
7383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7386 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7389 esac
7390 echo "$as_me:$LINENO: checking for $ac_header" >&5
7391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395 eval "$as_ac_Header=$ac_header_preproc"
7397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7402 cat >>confdefs.h <<_ACEOF
7403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7404 _ACEOF
7406 for ac_header in audio/soundlib.h
7408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7409 echo "$as_me:$LINENO: checking for $ac_header" >&5
7410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414 cat >conftest.$ac_ext <<_ACEOF
7415 #line $LINENO "configure"
7416 #include "confdefs.h"
7417 #include <audio/audiolib.h>
7419 #include <$ac_header>
7420 _ACEOF
7421 rm -f conftest.$ac_objext
7422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7423 (eval $ac_compile) 2>&5
7424 ac_status=$?
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } &&
7427 { ac_try='test -s conftest.$ac_objext'
7428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429 (eval $ac_try) 2>&5
7430 ac_status=$?
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); }; }; then
7433 eval "$as_ac_Header=yes"
7434 else
7435 echo "$as_me: failed program was:" >&5
7436 cat conftest.$ac_ext >&5
7437 eval "$as_ac_Header=no"
7439 rm -f conftest.$ac_objext conftest.$ac_ext
7441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7444 cat >>confdefs.h <<_ACEOF
7445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7446 _ACEOF
7450 done
7452 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
7453 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
7454 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457 ac_check_lib_save_LIBS=$LIBS
7458 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7459 cat >conftest.$ac_ext <<_ACEOF
7460 #line $LINENO "configure"
7461 #include "confdefs.h"
7463 /* Override any gcc2 internal prototype to avoid an error. */
7464 #ifdef __cplusplus
7465 extern "C"
7466 #endif
7467 /* We use char because int might match the return type of a gcc2
7468 builtin and then its argument prototype would still apply. */
7469 char AuCreateFlow ();
7471 main ()
7473 AuCreateFlow ();
7475 return 0;
7477 _ACEOF
7478 rm -f conftest.$ac_objext conftest$ac_exeext
7479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7480 (eval $ac_link) 2>&5
7481 ac_status=$?
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } &&
7484 { ac_try='test -s conftest$ac_exeext'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 (eval $ac_try) 2>&5
7487 ac_status=$?
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_cv_lib_audio_AuCreateFlow=yes
7491 else
7492 echo "$as_me: failed program was:" >&5
7493 cat conftest.$ac_ext >&5
7494 ac_cv_lib_audio_AuCreateFlow=no
7496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7497 LIBS=$ac_check_lib_save_LIBS
7499 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
7500 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
7501 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
7503 cat >>confdefs.h <<\_ACEOF
7504 #define HAVE_NAS 1
7505 _ACEOF
7507 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
7512 done
7515 CPPFLAGS="$ac_save_CPPFLAGS"
7516 XFILES='$(XFILES)'
7517 else
7518 XLIB=""
7519 X_CFLAGS=""
7520 X_LIBS=""
7523 CURSESLIBS=""
7524 if test "x$with_curses" != "xno"
7525 then
7527 for ac_header in ncurses.h
7529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7531 echo "$as_me:$LINENO: checking for $ac_header" >&5
7532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7538 else
7539 # Is the header compilable?
7540 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7542 cat >conftest.$ac_ext <<_ACEOF
7543 #line $LINENO "configure"
7544 #include "confdefs.h"
7545 $ac_includes_default
7546 #include <$ac_header>
7547 _ACEOF
7548 rm -f conftest.$ac_objext
7549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7550 (eval $ac_compile) 2>&5
7551 ac_status=$?
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); } &&
7554 { ac_try='test -s conftest.$ac_objext'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 (eval $ac_try) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; }; then
7560 ac_header_compiler=yes
7561 else
7562 echo "$as_me: failed program was:" >&5
7563 cat conftest.$ac_ext >&5
7564 ac_header_compiler=no
7566 rm -f conftest.$ac_objext conftest.$ac_ext
7567 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7568 echo "${ECHO_T}$ac_header_compiler" >&6
7570 # Is the header present?
7571 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7573 cat >conftest.$ac_ext <<_ACEOF
7574 #line $LINENO "configure"
7575 #include "confdefs.h"
7576 #include <$ac_header>
7577 _ACEOF
7578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7580 ac_status=$?
7581 grep -v '^ *+' conftest.er1 >conftest.err
7582 rm -f conftest.er1
7583 cat conftest.err >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } >/dev/null; then
7586 if test -s conftest.err; then
7587 ac_cpp_err=$ac_c_preproc_warn_flag
7588 else
7589 ac_cpp_err=
7591 else
7592 ac_cpp_err=yes
7594 if test -z "$ac_cpp_err"; then
7595 ac_header_preproc=yes
7596 else
7597 echo "$as_me: failed program was:" >&5
7598 cat conftest.$ac_ext >&5
7599 ac_header_preproc=no
7601 rm -f conftest.err conftest.$ac_ext
7602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7603 echo "${ECHO_T}$ac_header_preproc" >&6
7605 # So? What about this header?
7606 case $ac_header_compiler:$ac_header_preproc in
7607 yes:no )
7608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7612 no:yes )
7613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7619 esac
7620 echo "$as_me:$LINENO: checking for $ac_header" >&5
7621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7624 else
7625 eval "$as_ac_Header=$ac_header_preproc"
7627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7632 cat >>confdefs.h <<_ACEOF
7633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7634 _ACEOF
7635 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
7636 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7637 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640 ac_check_lib_save_LIBS=$LIBS
7641 LIBS="-lncurses $LIBS"
7642 cat >conftest.$ac_ext <<_ACEOF
7643 #line $LINENO "configure"
7644 #include "confdefs.h"
7646 /* Override any gcc2 internal prototype to avoid an error. */
7647 #ifdef __cplusplus
7648 extern "C"
7649 #endif
7650 /* We use char because int might match the return type of a gcc2
7651 builtin and then its argument prototype would still apply. */
7652 char waddch ();
7654 main ()
7656 waddch ();
7658 return 0;
7660 _ACEOF
7661 rm -f conftest.$ac_objext conftest$ac_exeext
7662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7663 (eval $ac_link) 2>&5
7664 ac_status=$?
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } &&
7667 { ac_try='test -s conftest$ac_exeext'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 (eval $ac_try) 2>&5
7670 ac_status=$?
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; }; then
7673 ac_cv_lib_ncurses_waddch=yes
7674 else
7675 echo "$as_me: failed program was:" >&5
7676 cat conftest.$ac_ext >&5
7677 ac_cv_lib_ncurses_waddch=no
7679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7680 LIBS=$ac_check_lib_save_LIBS
7682 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
7683 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7684 if test $ac_cv_lib_ncurses_waddch = yes; then
7686 cat >>confdefs.h <<\_ACEOF
7687 #define HAVE_LIBNCURSES 1
7688 _ACEOF
7690 CURSESLIBS="-lncurses"
7691 else
7693 for ac_header in curses.h
7695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7697 echo "$as_me:$LINENO: checking for $ac_header" >&5
7698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7704 else
7705 # Is the header compilable?
7706 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7708 cat >conftest.$ac_ext <<_ACEOF
7709 #line $LINENO "configure"
7710 #include "confdefs.h"
7711 $ac_includes_default
7712 #include <$ac_header>
7713 _ACEOF
7714 rm -f conftest.$ac_objext
7715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7716 (eval $ac_compile) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } &&
7720 { ac_try='test -s conftest.$ac_objext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 ac_header_compiler=yes
7727 else
7728 echo "$as_me: failed program was:" >&5
7729 cat conftest.$ac_ext >&5
7730 ac_header_compiler=no
7732 rm -f conftest.$ac_objext conftest.$ac_ext
7733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7734 echo "${ECHO_T}$ac_header_compiler" >&6
7736 # Is the header present?
7737 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7739 cat >conftest.$ac_ext <<_ACEOF
7740 #line $LINENO "configure"
7741 #include "confdefs.h"
7742 #include <$ac_header>
7743 _ACEOF
7744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7746 ac_status=$?
7747 grep -v '^ *+' conftest.er1 >conftest.err
7748 rm -f conftest.er1
7749 cat conftest.err >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } >/dev/null; then
7752 if test -s conftest.err; then
7753 ac_cpp_err=$ac_c_preproc_warn_flag
7754 else
7755 ac_cpp_err=
7757 else
7758 ac_cpp_err=yes
7760 if test -z "$ac_cpp_err"; then
7761 ac_header_preproc=yes
7762 else
7763 echo "$as_me: failed program was:" >&5
7764 cat conftest.$ac_ext >&5
7765 ac_header_preproc=no
7767 rm -f conftest.err conftest.$ac_ext
7768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7769 echo "${ECHO_T}$ac_header_preproc" >&6
7771 # So? What about this header?
7772 case $ac_header_compiler:$ac_header_preproc in
7773 yes:no )
7774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7778 no:yes )
7779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7782 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7785 esac
7786 echo "$as_me:$LINENO: checking for $ac_header" >&5
7787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791 eval "$as_ac_Header=$ac_header_preproc"
7793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7798 cat >>confdefs.h <<_ACEOF
7799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7800 _ACEOF
7801 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
7802 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7803 if test "${ac_cv_lib_curses_waddch+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806 ac_check_lib_save_LIBS=$LIBS
7807 LIBS="-lcurses $LIBS"
7808 cat >conftest.$ac_ext <<_ACEOF
7809 #line $LINENO "configure"
7810 #include "confdefs.h"
7812 /* Override any gcc2 internal prototype to avoid an error. */
7813 #ifdef __cplusplus
7814 extern "C"
7815 #endif
7816 /* We use char because int might match the return type of a gcc2
7817 builtin and then its argument prototype would still apply. */
7818 char waddch ();
7820 main ()
7822 waddch ();
7824 return 0;
7826 _ACEOF
7827 rm -f conftest.$ac_objext conftest$ac_exeext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7829 (eval $ac_link) 2>&5
7830 ac_status=$?
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try='test -s conftest$ac_exeext'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835 (eval $ac_try) 2>&5
7836 ac_status=$?
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; }; then
7839 ac_cv_lib_curses_waddch=yes
7840 else
7841 echo "$as_me: failed program was:" >&5
7842 cat conftest.$ac_ext >&5
7843 ac_cv_lib_curses_waddch=no
7845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7846 LIBS=$ac_check_lib_save_LIBS
7848 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
7849 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7850 if test $ac_cv_lib_curses_waddch = yes; then
7852 cat >>confdefs.h <<\_ACEOF
7853 #define HAVE_LIBCURSES 1
7854 _ACEOF
7856 CURSESLIBS="-lcurses"
7861 done
7867 done
7869 saved_libs="$LIBS"
7870 LIBS="$CURSESLIBS $LIBS"
7873 for ac_func in getbkgd resizeterm
7875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7876 echo "$as_me:$LINENO: checking for $ac_func" >&5
7877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7878 if eval "test \"\${$as_ac_var+set}\" = set"; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 else
7881 cat >conftest.$ac_ext <<_ACEOF
7882 #line $LINENO "configure"
7883 #include "confdefs.h"
7884 /* System header to define __stub macros and hopefully few prototypes,
7885 which can conflict with char $ac_func (); below. */
7886 #include <assert.h>
7887 /* Override any gcc2 internal prototype to avoid an error. */
7888 #ifdef __cplusplus
7889 extern "C"
7890 #endif
7891 /* We use char because int might match the return type of a gcc2
7892 builtin and then its argument prototype would still apply. */
7893 char $ac_func ();
7894 char (*f) ();
7897 main ()
7899 /* The GNU C library defines this for functions which it implements
7900 to always fail with ENOSYS. Some functions are actually named
7901 something starting with __ and the normal name is an alias. */
7902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7903 choke me
7904 #else
7905 f = $ac_func;
7906 #endif
7909 return 0;
7911 _ACEOF
7912 rm -f conftest.$ac_objext conftest$ac_exeext
7913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7914 (eval $ac_link) 2>&5
7915 ac_status=$?
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); } &&
7918 { ac_try='test -s conftest$ac_exeext'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920 (eval $ac_try) 2>&5
7921 ac_status=$?
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; }; then
7924 eval "$as_ac_var=yes"
7925 else
7926 echo "$as_me: failed program was:" >&5
7927 cat conftest.$ac_ext >&5
7928 eval "$as_ac_var=no"
7930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7934 if test `eval echo '${'$as_ac_var'}'` = yes; then
7935 cat >>confdefs.h <<_ACEOF
7936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7937 _ACEOF
7940 done
7942 LIBS="$saved_libs"
7946 # Extract the first word of "sane-config", so it can be a program name with args.
7947 set dummy sane-config; ac_word=$2
7948 echo "$as_me:$LINENO: checking for $ac_word" >&5
7949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7950 if test "${ac_cv_prog_sane_devel+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 else
7953 if test -n "$sane_devel"; then
7954 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
7955 else
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $PATH
7959 IFS=$as_save_IFS
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7963 ac_cv_prog_sane_devel="sane-config"
7964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 break 2
7967 done
7968 done
7970 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
7973 sane_devel=$ac_cv_prog_sane_devel
7974 if test -n "$sane_devel"; then
7975 echo "$as_me:$LINENO: result: $sane_devel" >&5
7976 echo "${ECHO_T}$sane_devel" >&6
7977 else
7978 echo "$as_me:$LINENO: result: no" >&5
7979 echo "${ECHO_T}no" >&6
7982 if test "$sane_devel" = "no"
7983 then
7984 SANELIBS=""
7985 SANEINCL=""
7986 else
7987 SANELIBS="`$sane_devel --libs`"
7988 SANEINCL="`$sane_devel --cflags`"
7989 ac_save_CPPFLAGS="$CPPFLAGS"
7990 ac_save_LIBS="$LIBS"
7991 CPPFLAGS="$CPPFLAGS $SANEINCL"
7992 LIBS="$LIBS $SANELIBS"
7993 if test "${ac_cv_header_sane_sane_h+set}" = set; then
7994 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
7995 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
7996 if test "${ac_cv_header_sane_sane_h+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8000 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8001 else
8002 # Is the header compilable?
8003 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8004 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8005 cat >conftest.$ac_ext <<_ACEOF
8006 #line $LINENO "configure"
8007 #include "confdefs.h"
8008 $ac_includes_default
8009 #include <sane/sane.h>
8010 _ACEOF
8011 rm -f conftest.$ac_objext
8012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8013 (eval $ac_compile) 2>&5
8014 ac_status=$?
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } &&
8017 { ac_try='test -s conftest.$ac_objext'
8018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019 (eval $ac_try) 2>&5
8020 ac_status=$?
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); }; }; then
8023 ac_header_compiler=yes
8024 else
8025 echo "$as_me: failed program was:" >&5
8026 cat conftest.$ac_ext >&5
8027 ac_header_compiler=no
8029 rm -f conftest.$ac_objext conftest.$ac_ext
8030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8031 echo "${ECHO_T}$ac_header_compiler" >&6
8033 # Is the header present?
8034 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8035 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8036 cat >conftest.$ac_ext <<_ACEOF
8037 #line $LINENO "configure"
8038 #include "confdefs.h"
8039 #include <sane/sane.h>
8040 _ACEOF
8041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8043 ac_status=$?
8044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } >/dev/null; then
8049 if test -s conftest.err; then
8050 ac_cpp_err=$ac_c_preproc_warn_flag
8051 else
8052 ac_cpp_err=
8054 else
8055 ac_cpp_err=yes
8057 if test -z "$ac_cpp_err"; then
8058 ac_header_preproc=yes
8059 else
8060 echo "$as_me: failed program was:" >&5
8061 cat conftest.$ac_ext >&5
8062 ac_header_preproc=no
8064 rm -f conftest.err conftest.$ac_ext
8065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8066 echo "${ECHO_T}$ac_header_preproc" >&6
8068 # So? What about this header?
8069 case $ac_header_compiler:$ac_header_preproc in
8070 yes:no )
8071 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8072 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8073 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8074 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8075 no:yes )
8076 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8077 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8078 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8079 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8080 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8081 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8082 esac
8083 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8084 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8085 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 else
8088 ac_cv_header_sane_sane_h=$ac_header_preproc
8090 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8091 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8094 if test $ac_cv_header_sane_sane_h = yes; then
8095 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8096 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8097 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100 ac_check_lib_save_LIBS=$LIBS
8101 LIBS="-lsane $LIBS"
8102 cat >conftest.$ac_ext <<_ACEOF
8103 #line $LINENO "configure"
8104 #include "confdefs.h"
8106 /* Override any gcc2 internal prototype to avoid an error. */
8107 #ifdef __cplusplus
8108 extern "C"
8109 #endif
8110 /* We use char because int might match the return type of a gcc2
8111 builtin and then its argument prototype would still apply. */
8112 char sane_open ();
8114 main ()
8116 sane_open ();
8118 return 0;
8120 _ACEOF
8121 rm -f conftest.$ac_objext conftest$ac_exeext
8122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8123 (eval $ac_link) 2>&5
8124 ac_status=$?
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } &&
8127 { ac_try='test -s conftest$ac_exeext'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 (eval $ac_try) 2>&5
8130 ac_status=$?
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; }; then
8133 ac_cv_lib_sane_sane_open=yes
8134 else
8135 echo "$as_me: failed program was:" >&5
8136 cat conftest.$ac_ext >&5
8137 ac_cv_lib_sane_sane_open=no
8139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8140 LIBS=$ac_check_lib_save_LIBS
8142 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8143 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8144 if test $ac_cv_lib_sane_sane_open = yes; then
8146 cat >>confdefs.h <<\_ACEOF
8147 #define HAVE_SANE 1
8148 _ACEOF
8150 else
8151 SANELIBS=""
8152 SANEINCL=""
8155 else
8156 SANELIBS=""
8157 SANEINCL=""
8161 LIBS="$ac_save_LIBS"
8162 CPPFLAGS="$ac_save_CPPFLAGS"
8167 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8168 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8169 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8170 echo $ECHO_N "(cached) $ECHO_C" >&6
8171 else
8172 ac_check_lib_save_LIBS=$LIBS
8173 LIBS="-lfreetype $X_LIBS $LIBS"
8174 cat >conftest.$ac_ext <<_ACEOF
8175 #line $LINENO "configure"
8176 #include "confdefs.h"
8178 /* Override any gcc2 internal prototype to avoid an error. */
8179 #ifdef __cplusplus
8180 extern "C"
8181 #endif
8182 /* We use char because int might match the return type of a gcc2
8183 builtin and then its argument prototype would still apply. */
8184 char FT_Init_FreeType ();
8186 main ()
8188 FT_Init_FreeType ();
8190 return 0;
8192 _ACEOF
8193 rm -f conftest.$ac_objext conftest$ac_exeext
8194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8195 (eval $ac_link) 2>&5
8196 ac_status=$?
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } &&
8199 { ac_try='test -s conftest$ac_exeext'
8200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201 (eval $ac_try) 2>&5
8202 ac_status=$?
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; }; then
8205 ac_cv_lib_freetype_FT_Init_FreeType=yes
8206 else
8207 echo "$as_me: failed program was:" >&5
8208 cat conftest.$ac_ext >&5
8209 ac_cv_lib_freetype_FT_Init_FreeType=no
8211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8212 LIBS=$ac_check_lib_save_LIBS
8214 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8215 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8216 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8217 ft_lib=yes
8218 else
8219 ft_lib=no
8222 if test "$ft_lib" = "no"
8223 then
8224 FREETYPEINCL=""
8225 wine_cv_msg_freetype=no
8226 else
8227 # Extract the first word of "freetype-config", so it can be a program name with args.
8228 set dummy freetype-config; ac_word=$2
8229 echo "$as_me:$LINENO: checking for $ac_word" >&5
8230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8231 if test "${ac_cv_prog_ft_devel+set}" = set; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234 if test -n "$ft_devel"; then
8235 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8236 else
8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 for as_dir in $PATH
8240 IFS=$as_save_IFS
8241 test -z "$as_dir" && as_dir=.
8242 for ac_exec_ext in '' $ac_executable_extensions; do
8243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8244 ac_cv_prog_ft_devel="freetype-config"
8245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8246 break 2
8248 done
8249 done
8251 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8254 ft_devel=$ac_cv_prog_ft_devel
8255 if test -n "$ft_devel"; then
8256 echo "$as_me:$LINENO: result: $ft_devel" >&5
8257 echo "${ECHO_T}$ft_devel" >&6
8258 else
8259 echo "$as_me:$LINENO: result: no" >&5
8260 echo "${ECHO_T}no" >&6
8263 if test "$ft_devel" = "no"
8264 then
8265 # Extract the first word of "freetype2-config", so it can be a program name with args.
8266 set dummy freetype2-config; ac_word=$2
8267 echo "$as_me:$LINENO: checking for $ac_word" >&5
8268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8269 if test "${ac_cv_prog_ft_devel2+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 else
8272 if test -n "$ft_devel2"; then
8273 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
8274 else
8275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276 for as_dir in $PATH
8278 IFS=$as_save_IFS
8279 test -z "$as_dir" && as_dir=.
8280 for ac_exec_ext in '' $ac_executable_extensions; do
8281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8282 ac_cv_prog_ft_devel2="freetype2-config"
8283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8284 break 2
8286 done
8287 done
8289 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8292 ft_devel2=$ac_cv_prog_ft_devel2
8293 if test -n "$ft_devel2"; then
8294 echo "$as_me:$LINENO: result: $ft_devel2" >&5
8295 echo "${ECHO_T}$ft_devel2" >&6
8296 else
8297 echo "$as_me:$LINENO: result: no" >&5
8298 echo "${ECHO_T}no" >&6
8301 if test "$ft_devel2" = "freetype2-config"
8302 then
8303 ft_devel=$ft_devel2
8306 if test "$ft_devel" = "no"
8307 then
8308 FREETYPEINCL=""
8309 wine_cv_msg_freetype=yes
8310 else
8311 FREETYPEINCL=`$ft_devel --cflags`
8312 ac_save_CPPFLAGS="$CPPFLAGS"
8313 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
8322 for ac_header in freetype/freetype.h \
8323 freetype/ftglyph.h \
8324 freetype/tttables.h \
8325 freetype/ftnames.h \
8326 freetype/ftsnames.h \
8327 freetype/ttnameid.h \
8328 freetype/ftoutln.h \
8329 freetype/internal/sfnt.h
8331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8333 echo "$as_me:$LINENO: checking for $ac_header" >&5
8334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
8338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8340 else
8341 # Is the header compilable?
8342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8344 cat >conftest.$ac_ext <<_ACEOF
8345 #line $LINENO "configure"
8346 #include "confdefs.h"
8347 $ac_includes_default
8348 #include <$ac_header>
8349 _ACEOF
8350 rm -f conftest.$ac_objext
8351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8352 (eval $ac_compile) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } &&
8356 { ac_try='test -s conftest.$ac_objext'
8357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358 (eval $ac_try) 2>&5
8359 ac_status=$?
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; }; then
8362 ac_header_compiler=yes
8363 else
8364 echo "$as_me: failed program was:" >&5
8365 cat conftest.$ac_ext >&5
8366 ac_header_compiler=no
8368 rm -f conftest.$ac_objext conftest.$ac_ext
8369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8370 echo "${ECHO_T}$ac_header_compiler" >&6
8372 # Is the header present?
8373 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8375 cat >conftest.$ac_ext <<_ACEOF
8376 #line $LINENO "configure"
8377 #include "confdefs.h"
8378 #include <$ac_header>
8379 _ACEOF
8380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8382 ac_status=$?
8383 grep -v '^ *+' conftest.er1 >conftest.err
8384 rm -f conftest.er1
8385 cat conftest.err >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } >/dev/null; then
8388 if test -s conftest.err; then
8389 ac_cpp_err=$ac_c_preproc_warn_flag
8390 else
8391 ac_cpp_err=
8393 else
8394 ac_cpp_err=yes
8396 if test -z "$ac_cpp_err"; then
8397 ac_header_preproc=yes
8398 else
8399 echo "$as_me: failed program was:" >&5
8400 cat conftest.$ac_ext >&5
8401 ac_header_preproc=no
8403 rm -f conftest.err conftest.$ac_ext
8404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8405 echo "${ECHO_T}$ac_header_preproc" >&6
8407 # So? What about this header?
8408 case $ac_header_compiler:$ac_header_preproc in
8409 yes:no )
8410 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8414 no:yes )
8415 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8416 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8417 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8418 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8421 esac
8422 echo "$as_me:$LINENO: checking for $ac_header" >&5
8423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8426 else
8427 eval "$as_ac_Header=$ac_header_preproc"
8429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8434 cat >>confdefs.h <<_ACEOF
8435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8436 _ACEOF
8440 done
8442 cat >conftest.$ac_ext <<_ACEOF
8443 #line $LINENO "configure"
8444 #include "confdefs.h"
8445 #include <ft2build.h>
8446 #include <freetype/fttrigon.h>
8447 _ACEOF
8448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8450 ac_status=$?
8451 grep -v '^ *+' conftest.er1 >conftest.err
8452 rm -f conftest.er1
8453 cat conftest.err >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } >/dev/null; then
8456 if test -s conftest.err; then
8457 ac_cpp_err=$ac_c_preproc_warn_flag
8458 else
8459 ac_cpp_err=
8461 else
8462 ac_cpp_err=yes
8464 if test -z "$ac_cpp_err"; then
8466 cat >>confdefs.h <<\_ACEOF
8467 #define HAVE_FREETYPE_FTTRIGON_H 1
8468 _ACEOF
8470 wine_cv_fttrigon=yes
8471 else
8472 echo "$as_me: failed program was:" >&5
8473 cat conftest.$ac_ext >&5
8474 wine_cv_fttrigon=no
8476 rm -f conftest.err conftest.$ac_ext
8477 CPPFLAGS="$ac_save_CPPFLAGS"
8478 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
8479 then
8481 cat >>confdefs.h <<\_ACEOF
8482 #define HAVE_FREETYPE 1
8483 _ACEOF
8485 wine_cv_msg_freetype=no
8486 else
8487 FREETYPEINCL=""
8488 wine_cv_msg_freetype=yes
8494 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
8495 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8496 if test "${ac_cv_c_ppdev+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8498 else
8499 cat >conftest.$ac_ext <<_ACEOF
8500 #line $LINENO "configure"
8501 #include "confdefs.h"
8502 #include <linux/ppdev.h>
8504 main ()
8506 ioctl (1,PPCLAIM,0)
8508 return 0;
8510 _ACEOF
8511 rm -f conftest.$ac_objext
8512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8513 (eval $ac_compile) 2>&5
8514 ac_status=$?
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } &&
8517 { ac_try='test -s conftest.$ac_objext'
8518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519 (eval $ac_try) 2>&5
8520 ac_status=$?
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); }; }; then
8523 ac_cv_c_ppdev="yes"
8524 else
8525 echo "$as_me: failed program was:" >&5
8526 cat conftest.$ac_ext >&5
8527 ac_cv_c_ppdev="no"
8529 rm -f conftest.$ac_objext conftest.$ac_ext
8532 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
8533 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
8534 if test "$ac_cv_c_ppdev" = "yes"
8535 then
8537 cat >>confdefs.h <<\_ACEOF
8538 #define HAVE_PPDEV 1
8539 _ACEOF
8543 echo "$as_me:$LINENO: checking for va_copy" >&5
8544 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
8545 if test "${ac_cv_c_va_copy+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 else
8548 cat >conftest.$ac_ext <<_ACEOF
8549 #line $LINENO "configure"
8550 #include "confdefs.h"
8551 #include <stdarg.h>
8553 main ()
8555 va_list ap1, ap2;
8556 va_copy(ap1,ap2);
8559 return 0;
8561 _ACEOF
8562 rm -f conftest.$ac_objext conftest$ac_exeext
8563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8564 (eval $ac_link) 2>&5
8565 ac_status=$?
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } &&
8568 { ac_try='test -s conftest$ac_exeext'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 (eval $ac_try) 2>&5
8571 ac_status=$?
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; }; then
8574 ac_cv_c_va_copy="yes"
8575 else
8576 echo "$as_me: failed program was:" >&5
8577 cat conftest.$ac_ext >&5
8578 ac_cv_c_va_copy="no"
8580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8583 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
8584 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
8585 if test "$ac_cv_c_va_copy" = "yes"
8586 then
8588 cat >>confdefs.h <<\_ACEOF
8589 #define HAVE_VA_COPY 1
8590 _ACEOF
8593 echo "$as_me:$LINENO: checking for __va_copy" >&5
8594 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
8595 if test "${ac_cv_c___va_copy+set}" = set; then
8596 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 else
8598 cat >conftest.$ac_ext <<_ACEOF
8599 #line $LINENO "configure"
8600 #include "confdefs.h"
8601 #include <stdarg.h>
8603 main ()
8605 va_list ap1, ap2;
8606 __va_copy(ap1,ap2);
8609 return 0;
8611 _ACEOF
8612 rm -f conftest.$ac_objext conftest$ac_exeext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8614 (eval $ac_link) 2>&5
8615 ac_status=$?
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } &&
8618 { ac_try='test -s conftest$ac_exeext'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 (eval $ac_try) 2>&5
8621 ac_status=$?
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; }; then
8624 ac_cv_c___va_copy="yes"
8625 else
8626 echo "$as_me: failed program was:" >&5
8627 cat conftest.$ac_ext >&5
8628 ac_cv_c___va_copy="no"
8630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8633 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
8634 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
8635 if test "$ac_cv_c___va_copy" = "yes"
8636 then
8638 cat >>confdefs.h <<\_ACEOF
8639 #define HAVE___VA_COPY 1
8640 _ACEOF
8644 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
8645 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8646 if test "${ac_cv_c_ipx_gnu+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 else
8649 cat >conftest.$ac_ext <<_ACEOF
8650 #line $LINENO "configure"
8651 #include "confdefs.h"
8652 #include <sys/types.h>
8653 #ifdef HAVE_SYS_SOCKET_H
8654 # include <sys/socket.h>
8655 #endif
8656 #include <netipx/ipx.h>
8658 main ()
8660 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8662 return 0;
8664 _ACEOF
8665 rm -f conftest.$ac_objext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8667 (eval $ac_compile) 2>&5
8668 ac_status=$?
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
8671 { ac_try='test -s conftest.$ac_objext'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 (eval $ac_try) 2>&5
8674 ac_status=$?
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; }; then
8677 ac_cv_c_ipx_gnu="yes"
8678 else
8679 echo "$as_me: failed program was:" >&5
8680 cat conftest.$ac_ext >&5
8681 ac_cv_c_ipx_gnu="no"
8683 rm -f conftest.$ac_objext conftest.$ac_ext
8686 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
8687 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
8688 if test "$ac_cv_c_ipx_gnu" = "yes"
8689 then
8691 cat >>confdefs.h <<\_ACEOF
8692 #define HAVE_IPX_GNU 1
8693 _ACEOF
8697 if test "$ac_cv_c_ipx_gnu" = "no"
8698 then
8699 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
8700 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8701 if test "${ac_cv_c_ipx_linux+set}" = set; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
8703 else
8704 cat >conftest.$ac_ext <<_ACEOF
8705 #line $LINENO "configure"
8706 #include "confdefs.h"
8707 #include <sys/types.h>
8708 #ifdef HAVE_SYS_SOCKET_H
8709 # include <sys/socket.h>
8710 #endif
8711 #include <asm/types.h>
8712 #include <linux/ipx.h>
8714 main ()
8716 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8718 return 0;
8720 _ACEOF
8721 rm -f conftest.$ac_objext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8723 (eval $ac_compile) 2>&5
8724 ac_status=$?
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } &&
8727 { ac_try='test -s conftest.$ac_objext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 (eval $ac_try) 2>&5
8730 ac_status=$?
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 ac_cv_c_ipx_linux="yes"
8734 else
8735 echo "$as_me: failed program was:" >&5
8736 cat conftest.$ac_ext >&5
8737 ac_cv_c_ipx_linux="no"
8739 rm -f conftest.$ac_objext conftest.$ac_ext
8742 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
8743 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
8744 if test "$ac_cv_c_ipx_linux" = "yes"
8745 then
8747 cat >>confdefs.h <<\_ACEOF
8748 #define HAVE_IPX_LINUX 1
8749 _ACEOF
8757 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
8759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8761 echo "$as_me:$LINENO: checking for $ac_header" >&5
8762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8768 else
8769 # Is the header compilable?
8770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8772 cat >conftest.$ac_ext <<_ACEOF
8773 #line $LINENO "configure"
8774 #include "confdefs.h"
8775 $ac_includes_default
8776 #include <$ac_header>
8777 _ACEOF
8778 rm -f conftest.$ac_objext
8779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8780 (eval $ac_compile) 2>&5
8781 ac_status=$?
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); } &&
8784 { ac_try='test -s conftest.$ac_objext'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786 (eval $ac_try) 2>&5
8787 ac_status=$?
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; }; then
8790 ac_header_compiler=yes
8791 else
8792 echo "$as_me: failed program was:" >&5
8793 cat conftest.$ac_ext >&5
8794 ac_header_compiler=no
8796 rm -f conftest.$ac_objext conftest.$ac_ext
8797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8798 echo "${ECHO_T}$ac_header_compiler" >&6
8800 # Is the header present?
8801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8803 cat >conftest.$ac_ext <<_ACEOF
8804 #line $LINENO "configure"
8805 #include "confdefs.h"
8806 #include <$ac_header>
8807 _ACEOF
8808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8810 ac_status=$?
8811 grep -v '^ *+' conftest.er1 >conftest.err
8812 rm -f conftest.er1
8813 cat conftest.err >&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } >/dev/null; then
8816 if test -s conftest.err; then
8817 ac_cpp_err=$ac_c_preproc_warn_flag
8818 else
8819 ac_cpp_err=
8821 else
8822 ac_cpp_err=yes
8824 if test -z "$ac_cpp_err"; then
8825 ac_header_preproc=yes
8826 else
8827 echo "$as_me: failed program was:" >&5
8828 cat conftest.$ac_ext >&5
8829 ac_header_preproc=no
8831 rm -f conftest.err conftest.$ac_ext
8832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8833 echo "${ECHO_T}$ac_header_preproc" >&6
8835 # So? What about this header?
8836 case $ac_header_compiler:$ac_header_preproc in
8837 yes:no )
8838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8842 no:yes )
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8849 esac
8850 echo "$as_me:$LINENO: checking for $ac_header" >&5
8851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8854 else
8855 eval "$as_ac_Header=$ac_header_preproc"
8857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8862 cat >>confdefs.h <<_ACEOF
8863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8864 _ACEOF
8865 break
8868 done
8871 echo "$as_me:$LINENO: checking for Open Sound System" >&5
8872 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8873 if test "${ac_cv_c_opensoundsystem+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8875 else
8876 cat >conftest.$ac_ext <<_ACEOF
8877 #line $LINENO "configure"
8878 #include "confdefs.h"
8880 #if defined(HAVE_SYS_SOUNDCARD_H)
8881 #include <sys/soundcard.h>
8882 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8883 #include <machine/soundcard.h>
8884 #elif defined(HAVE_SOUNDCARD_H)
8885 #include <soundcard.h>
8886 #endif
8889 main ()
8893 /* check for one of the Open Sound System specific SNDCTL_ defines */
8894 #if !defined(SNDCTL_DSP_STEREO)
8895 #error No open sound system
8896 #endif
8899 return 0;
8901 _ACEOF
8902 rm -f conftest.$ac_objext
8903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8904 (eval $ac_compile) 2>&5
8905 ac_status=$?
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } &&
8908 { ac_try='test -s conftest.$ac_objext'
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 (eval $ac_try) 2>&5
8911 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; }; then
8914 ac_cv_c_opensoundsystem="yes"
8915 else
8916 echo "$as_me: failed program was:" >&5
8917 cat conftest.$ac_ext >&5
8918 ac_cv_c_opensoundsystem="no"
8920 rm -f conftest.$ac_objext conftest.$ac_ext
8922 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
8923 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
8925 if test "$ac_cv_c_opensoundsystem" = "yes"
8926 then
8928 cat >>confdefs.h <<\_ACEOF
8929 #define HAVE_OSS 1
8930 _ACEOF
8934 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
8935 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
8936 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 else
8939 cat >conftest.$ac_ext <<_ACEOF
8940 #line $LINENO "configure"
8941 #include "confdefs.h"
8943 #if defined(HAVE_SYS_SOUNDCARD_H)
8944 #include <sys/soundcard.h>
8945 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8946 #include <machine/soundcard.h>
8947 #elif defined(HAVE_SOUNDCARD_H)
8948 #include <soundcard.h>
8949 #endif
8952 main ()
8956 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
8957 #if !defined(SNDCTL_SEQ_SYNC)
8958 #error No open sound system MIDI interface
8959 #endif
8962 return 0;
8964 _ACEOF
8965 rm -f conftest.$ac_objext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8967 (eval $ac_compile) 2>&5
8968 ac_status=$?
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } &&
8971 { ac_try='test -s conftest.$ac_objext'
8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 (eval $ac_try) 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; }; then
8977 ac_cv_c_opensoundsystem_midi="yes"
8978 else
8979 echo "$as_me: failed program was:" >&5
8980 cat conftest.$ac_ext >&5
8981 ac_cv_c_opensoundsystem_midi="no"
8983 rm -f conftest.$ac_objext conftest.$ac_ext
8985 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
8986 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
8988 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
8989 then
8991 cat >>confdefs.h <<\_ACEOF
8992 #define HAVE_OSS_MIDI 1
8993 _ACEOF
8997 # Extract the first word of "artsc-config", so it can be a program name with args.
8998 set dummy artsc-config; ac_word=$2
8999 echo "$as_me:$LINENO: checking for $ac_word" >&5
9000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9001 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9003 else
9004 case $ARTSCCONFIG in
9005 [\\/]* | ?:[\\/]*)
9006 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
9009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9010 for as_dir in $PATH
9012 IFS=$as_save_IFS
9013 test -z "$as_dir" && as_dir=.
9014 for ac_exec_ext in '' $ac_executable_extensions; do
9015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9016 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
9017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9018 break 2
9020 done
9021 done
9024 esac
9026 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9028 if test -n "$ARTSCCONFIG"; then
9029 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
9030 echo "${ECHO_T}$ARTSCCONFIG" >&6
9031 else
9032 echo "$as_me:$LINENO: result: no" >&5
9033 echo "${ECHO_T}no" >&6
9036 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
9037 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9038 if test "${ac_cv_c_artsserver+set}" = set; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9040 else
9041 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9042 then
9043 ac_cv_c_artsserver=no
9044 else
9045 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9046 ARTSC_LIBS=`$ARTSCCONFIG --libs`
9047 ac_cv_c_artsserver=no
9048 save_CFLAGS="$CFLAGS"
9049 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9050 cat >conftest.$ac_ext <<_ACEOF
9051 #line $LINENO "configure"
9052 #include "confdefs.h"
9054 #include <artsc.h>
9057 main ()
9060 arts_stream_t stream;
9063 return 0;
9065 _ACEOF
9066 rm -f conftest.$ac_objext
9067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9068 (eval $ac_compile) 2>&5
9069 ac_status=$?
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } &&
9072 { ac_try='test -s conftest.$ac_objext'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074 (eval $ac_try) 2>&5
9075 ac_status=$?
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; }; then
9079 ac_cv_c_artsserver=yes
9081 else
9082 echo "$as_me: failed program was:" >&5
9083 cat conftest.$ac_ext >&5
9085 rm -f conftest.$ac_objext conftest.$ac_ext
9086 CFLAGS="$save_CFLAGS"
9089 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
9090 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9092 if test "$ac_cv_c_artsserver" = "yes"
9093 then
9094 ARTSLIBS=$ARTSC_LIBS
9096 ARTSINCL=$ARTSC_CFLAGS
9100 cat >>confdefs.h <<\_ACEOF
9101 #define HAVE_ARTS 1
9102 _ACEOF
9106 ALSALIBS=""
9110 for ac_header in alsa/asoundlib.h sys/asoundlib.h
9112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9114 echo "$as_me:$LINENO: checking for $ac_header" >&5
9115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9121 else
9122 # Is the header compilable?
9123 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9125 cat >conftest.$ac_ext <<_ACEOF
9126 #line $LINENO "configure"
9127 #include "confdefs.h"
9128 $ac_includes_default
9129 #include <$ac_header>
9130 _ACEOF
9131 rm -f conftest.$ac_objext
9132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9133 (eval $ac_compile) 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); } &&
9137 { ac_try='test -s conftest.$ac_objext'
9138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 (eval $ac_try) 2>&5
9140 ac_status=$?
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; }; then
9143 ac_header_compiler=yes
9144 else
9145 echo "$as_me: failed program was:" >&5
9146 cat conftest.$ac_ext >&5
9147 ac_header_compiler=no
9149 rm -f conftest.$ac_objext conftest.$ac_ext
9150 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9151 echo "${ECHO_T}$ac_header_compiler" >&6
9153 # Is the header present?
9154 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9156 cat >conftest.$ac_ext <<_ACEOF
9157 #line $LINENO "configure"
9158 #include "confdefs.h"
9159 #include <$ac_header>
9160 _ACEOF
9161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9163 ac_status=$?
9164 grep -v '^ *+' conftest.er1 >conftest.err
9165 rm -f conftest.er1
9166 cat conftest.err >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } >/dev/null; then
9169 if test -s conftest.err; then
9170 ac_cpp_err=$ac_c_preproc_warn_flag
9171 else
9172 ac_cpp_err=
9174 else
9175 ac_cpp_err=yes
9177 if test -z "$ac_cpp_err"; then
9178 ac_header_preproc=yes
9179 else
9180 echo "$as_me: failed program was:" >&5
9181 cat conftest.$ac_ext >&5
9182 ac_header_preproc=no
9184 rm -f conftest.err conftest.$ac_ext
9185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9186 echo "${ECHO_T}$ac_header_preproc" >&6
9188 # So? What about this header?
9189 case $ac_header_compiler:$ac_header_preproc in
9190 yes:no )
9191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9195 no:yes )
9196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9202 esac
9203 echo "$as_me:$LINENO: checking for $ac_header" >&5
9204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 else
9208 eval "$as_ac_Header=$ac_header_preproc"
9210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9215 cat >>confdefs.h <<_ACEOF
9216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9217 _ACEOF
9218 break
9221 done
9223 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
9224 then
9225 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
9226 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
9227 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
9228 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 else
9230 ac_check_lib_save_LIBS=$LIBS
9231 LIBS="-lasound $LIBS"
9232 cat >conftest.$ac_ext <<_ACEOF
9233 #line $LINENO "configure"
9234 #include "confdefs.h"
9236 /* Override any gcc2 internal prototype to avoid an error. */
9237 #ifdef __cplusplus
9238 extern "C"
9239 #endif
9240 /* We use char because int might match the return type of a gcc2
9241 builtin and then its argument prototype would still apply. */
9242 char snd_pcm_open ();
9244 main ()
9246 snd_pcm_open ();
9248 return 0;
9250 _ACEOF
9251 rm -f conftest.$ac_objext conftest$ac_exeext
9252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253 (eval $ac_link) 2>&5
9254 ac_status=$?
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } &&
9257 { ac_try='test -s conftest$ac_exeext'
9258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259 (eval $ac_try) 2>&5
9260 ac_status=$?
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); }; }; then
9263 ac_cv_lib_asound_snd_pcm_open=yes
9264 else
9265 echo "$as_me: failed program was:" >&5
9266 cat conftest.$ac_ext >&5
9267 ac_cv_lib_asound_snd_pcm_open=no
9269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9270 LIBS=$ac_check_lib_save_LIBS
9272 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
9273 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
9274 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
9276 cat >>confdefs.h <<\_ACEOF
9277 #define HAVE_ALSA 1
9278 _ACEOF
9280 ALSALIBS="-lasound"
9286 AUDIOIOLIBS=""
9289 for ac_header in libaudioio.h
9291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9293 echo "$as_me:$LINENO: checking for $ac_header" >&5
9294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9300 else
9301 # Is the header compilable?
9302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9304 cat >conftest.$ac_ext <<_ACEOF
9305 #line $LINENO "configure"
9306 #include "confdefs.h"
9307 $ac_includes_default
9308 #include <$ac_header>
9309 _ACEOF
9310 rm -f conftest.$ac_objext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9312 (eval $ac_compile) 2>&5
9313 ac_status=$?
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } &&
9316 { ac_try='test -s conftest.$ac_objext'
9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318 (eval $ac_try) 2>&5
9319 ac_status=$?
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
9322 ac_header_compiler=yes
9323 else
9324 echo "$as_me: failed program was:" >&5
9325 cat conftest.$ac_ext >&5
9326 ac_header_compiler=no
9328 rm -f conftest.$ac_objext conftest.$ac_ext
9329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9330 echo "${ECHO_T}$ac_header_compiler" >&6
9332 # Is the header present?
9333 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9335 cat >conftest.$ac_ext <<_ACEOF
9336 #line $LINENO "configure"
9337 #include "confdefs.h"
9338 #include <$ac_header>
9339 _ACEOF
9340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9342 ac_status=$?
9343 grep -v '^ *+' conftest.er1 >conftest.err
9344 rm -f conftest.er1
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } >/dev/null; then
9348 if test -s conftest.err; then
9349 ac_cpp_err=$ac_c_preproc_warn_flag
9350 else
9351 ac_cpp_err=
9353 else
9354 ac_cpp_err=yes
9356 if test -z "$ac_cpp_err"; then
9357 ac_header_preproc=yes
9358 else
9359 echo "$as_me: failed program was:" >&5
9360 cat conftest.$ac_ext >&5
9361 ac_header_preproc=no
9363 rm -f conftest.err conftest.$ac_ext
9364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9365 echo "${ECHO_T}$ac_header_preproc" >&6
9367 # So? What about this header?
9368 case $ac_header_compiler:$ac_header_preproc in
9369 yes:no )
9370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9374 no:yes )
9375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9381 esac
9382 echo "$as_me:$LINENO: checking for $ac_header" >&5
9383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 else
9387 eval "$as_ac_Header=$ac_header_preproc"
9389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9394 cat >>confdefs.h <<_ACEOF
9395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9396 _ACEOF
9397 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
9398 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
9399 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 else
9402 ac_check_lib_save_LIBS=$LIBS
9403 LIBS="-laudioio $LIBS"
9404 cat >conftest.$ac_ext <<_ACEOF
9405 #line $LINENO "configure"
9406 #include "confdefs.h"
9408 /* Override any gcc2 internal prototype to avoid an error. */
9409 #ifdef __cplusplus
9410 extern "C"
9411 #endif
9412 /* We use char because int might match the return type of a gcc2
9413 builtin and then its argument prototype would still apply. */
9414 char AudioIOGetVersion ();
9416 main ()
9418 AudioIOGetVersion ();
9420 return 0;
9422 _ACEOF
9423 rm -f conftest.$ac_objext conftest$ac_exeext
9424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9425 (eval $ac_link) 2>&5
9426 ac_status=$?
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); } &&
9429 { ac_try='test -s conftest$ac_exeext'
9430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9431 (eval $ac_try) 2>&5
9432 ac_status=$?
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; }; then
9435 ac_cv_lib_audioio_AudioIOGetVersion=yes
9436 else
9437 echo "$as_me: failed program was:" >&5
9438 cat conftest.$ac_ext >&5
9439 ac_cv_lib_audioio_AudioIOGetVersion=no
9441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9442 LIBS=$ac_check_lib_save_LIBS
9444 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
9445 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
9446 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
9447 AUDIOIOLIBS="-laudioio"
9449 cat >>confdefs.h <<\_ACEOF
9450 #define HAVE_LIBAUDIOIO 1
9451 _ACEOF
9457 done
9461 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
9462 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9463 if test "${ac_cv_mmap64_works+set}" = set; then
9464 echo $ECHO_N "(cached) $ECHO_C" >&6
9465 else
9466 if test "$cross_compiling" = yes; then
9467 ac_cv_mmap64_works="no"
9468 else
9469 cat >conftest.$ac_ext <<_ACEOF
9470 #line $LINENO "configure"
9471 #include "confdefs.h"
9473 #define _FILE_OFFSET_BITS 64
9474 #include <stdio.h>
9475 #include <unistd.h>
9476 #include <fcntl.h>
9477 #include <sys/mman.h>
9478 #include <errno.h>
9480 int main(int argc,char **argv) {
9481 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9482 if (fd == -1) exit(1);
9484 unlink("conftest.map");
9486 write(fd,"test",4);
9488 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9489 (errno == EINVAL)
9491 exit(1);
9493 close(fd);
9494 fprintf(stderr,"success!\n");
9495 exit(0);
9499 _ACEOF
9500 rm -f conftest$ac_exeext
9501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9502 (eval $ac_link) 2>&5
9503 ac_status=$?
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 (eval $ac_try) 2>&5
9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; }; then
9511 ac_cv_mmap64_works="yes"
9512 else
9513 echo "$as_me: program exited with status $ac_status" >&5
9514 echo "$as_me: failed program was:" >&5
9515 cat conftest.$ac_ext >&5
9516 ( exit $ac_status )
9517 ac_cv_mmap64_works="no"
9519 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9522 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
9523 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
9525 if test "$ac_cv_mmap64_works" = "yes"
9526 then
9528 cat >>confdefs.h <<\_ACEOF
9529 #define _FILE_OFFSET_BITS 64
9530 _ACEOF
9535 if test "x${GCC}" = "xyes"
9536 then
9537 CFLAGS="$CFLAGS -Wall"
9538 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
9539 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9540 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543 if test "$cross_compiling" = yes; then
9544 ac_cv_c_gcc_strength_bug="yes"
9545 else
9546 cat >conftest.$ac_ext <<_ACEOF
9547 #line $LINENO "configure"
9548 #include "confdefs.h"
9550 int L[4] = {0,1,2,3};
9551 int main(void) {
9552 static int Array[3];
9553 unsigned int B = 3;
9554 int i;
9555 for(i=0; i<B; i++) Array[i] = i - 3;
9556 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9557 L[i] = 4;
9559 exit( Array[1] != -2 || L[2] != 3);
9561 _ACEOF
9562 rm -f conftest$ac_exeext
9563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9564 (eval $ac_link) 2>&5
9565 ac_status=$?
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569 (eval $ac_try) 2>&5
9570 ac_status=$?
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; }; then
9573 ac_cv_c_gcc_strength_bug="no"
9574 else
9575 echo "$as_me: program exited with status $ac_status" >&5
9576 echo "$as_me: failed program was:" >&5
9577 cat conftest.$ac_ext >&5
9578 ( exit $ac_status )
9579 ac_cv_c_gcc_strength_bug="yes"
9581 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9584 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
9585 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
9586 if test "$ac_cv_c_gcc_strength_bug" = "yes"
9587 then
9588 CFLAGS="$CFLAGS -fno-strength-reduce"
9591 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
9592 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9593 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596 ac_wine_try_cflags_saved=$CFLAGS
9597 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9598 cat >conftest.$ac_ext <<_ACEOF
9599 #line $LINENO "configure"
9600 #include "confdefs.h"
9603 main ()
9607 return 0;
9609 _ACEOF
9610 rm -f conftest.$ac_objext conftest$ac_exeext
9611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9612 (eval $ac_link) 2>&5
9613 ac_status=$?
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); } &&
9616 { ac_try='test -s conftest$ac_exeext'
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618 (eval $ac_try) 2>&5
9619 ac_status=$?
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; }; then
9622 ac_cv_c_gcc_stack_boundary="yes"
9623 else
9624 echo "$as_me: failed program was:" >&5
9625 cat conftest.$ac_ext >&5
9626 ac_cv_c_gcc_stack_boundary="no"
9628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9629 CFLAGS=$ac_wine_try_cflags_saved
9631 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
9632 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
9633 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9634 then
9635 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9640 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
9641 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
9642 if test "${ac_cv_asm_func_def+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645 cat >conftest.$ac_ext <<_ACEOF
9646 #line $LINENO "configure"
9647 #include "confdefs.h"
9648 void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); }
9651 main ()
9655 return 0;
9657 _ACEOF
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9660 (eval $ac_link) 2>&5
9661 ac_status=$?
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } &&
9664 { ac_try='test -s conftest$ac_exeext'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 (eval $ac_try) 2>&5
9667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9670 ac_cv_asm_func_def=".def"
9671 else
9672 echo "$as_me: failed program was:" >&5
9673 cat conftest.$ac_ext >&5
9674 cat >conftest.$ac_ext <<_ACEOF
9675 #line $LINENO "configure"
9676 #include "confdefs.h"
9677 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
9680 main ()
9684 return 0;
9686 _ACEOF
9687 rm -f conftest.$ac_objext conftest$ac_exeext
9688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9689 (eval $ac_link) 2>&5
9690 ac_status=$?
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } &&
9693 { ac_try='test -s conftest$ac_exeext'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 (eval $ac_try) 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_cv_asm_func_def=".type @function"
9700 else
9701 echo "$as_me: failed program was:" >&5
9702 cat conftest.$ac_ext >&5
9703 cat >conftest.$ac_ext <<_ACEOF
9704 #line $LINENO "configure"
9705 #include "confdefs.h"
9706 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
9709 main ()
9713 return 0;
9715 _ACEOF
9716 rm -f conftest.$ac_objext conftest$ac_exeext
9717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9718 (eval $ac_link) 2>&5
9719 ac_status=$?
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
9722 { ac_try='test -s conftest$ac_exeext'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 (eval $ac_try) 2>&5
9725 ac_status=$?
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; }; then
9728 ac_cv_asm_func_def=".type 2"
9729 else
9730 echo "$as_me: failed program was:" >&5
9731 cat conftest.$ac_ext >&5
9732 ac_cv_asm_func_def="unknown"
9734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9740 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
9741 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
9745 case "$ac_cv_asm_func_def" in
9746 ".def")
9747 cat >>confdefs.h <<\_ACEOF
9748 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
9749 _ACEOF
9751 ".type @function")
9752 cat >>confdefs.h <<\_ACEOF
9753 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
9754 _ACEOF
9756 ".type 2")
9757 cat >>confdefs.h <<\_ACEOF
9758 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
9759 _ACEOF
9762 cat >>confdefs.h <<\_ACEOF
9763 #define __ASM_FUNC(name) ""
9764 _ACEOF
9766 esac
9769 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
9770 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
9771 if test "${ac_cv_c_extern_prefix+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774 cat >conftest.$ac_ext <<_ACEOF
9775 #line $LINENO "configure"
9776 #include "confdefs.h"
9777 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
9778 extern int ac_test;
9780 main ()
9782 if (ac_test) return 1
9784 return 0;
9786 _ACEOF
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789 (eval $ac_link) 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } &&
9793 { ac_try='test -s conftest$ac_exeext'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 (eval $ac_try) 2>&5
9796 ac_status=$?
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; }; then
9799 ac_cv_c_extern_prefix="yes"
9800 else
9801 echo "$as_me: failed program was:" >&5
9802 cat conftest.$ac_ext >&5
9803 ac_cv_c_extern_prefix="no"
9805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9807 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
9808 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
9812 if test "$ac_cv_c_extern_prefix" = "yes"
9813 then
9814 cat >>confdefs.h <<\_ACEOF
9815 #define __ASM_NAME(name) "_" name
9816 _ACEOF
9818 else
9819 cat >>confdefs.h <<\_ACEOF
9820 #define __ASM_NAME(name) name
9821 _ACEOF
9826 echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5
9827 echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
9828 if test "${ac_cv_c_stdcall_decoration+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9830 else
9831 cat >conftest.$ac_ext <<_ACEOF
9832 #line $LINENO "configure"
9833 #include "confdefs.h"
9834 void ac_asm(void) { asm("\t.globl _ac_test@0\n_ac_test@0:\n\t.globl ac_test@0\nac_test@0:"); }
9835 extern void __attribute__((__stdcall__)) ac_test(void);
9837 main ()
9839 ac_test()
9841 return 0;
9843 _ACEOF
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9846 (eval $ac_link) 2>&5
9847 ac_status=$?
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } &&
9850 { ac_try='test -s conftest$ac_exeext'
9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852 (eval $ac_try) 2>&5
9853 ac_status=$?
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; }; then
9856 ac_cv_c_stdcall_decoration="yes"
9857 else
9858 echo "$as_me: failed program was:" >&5
9859 cat conftest.$ac_ext >&5
9860 ac_cv_c_stdcall_decoration="no"
9862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9864 echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5
9865 echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
9866 if test "$ac_cv_c_stdcall_decoration" = "yes"
9867 then
9869 cat >>confdefs.h <<\_ACEOF
9870 #define NEED_STDCALL_DECORATION 1
9871 _ACEOF
9876 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
9877 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
9878 if test "${ac_cv_c_asm_string+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9880 else
9881 cat >conftest.$ac_ext <<_ACEOF
9882 #line $LINENO "configure"
9883 #include "confdefs.h"
9884 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
9887 main ()
9891 return 0;
9893 _ACEOF
9894 rm -f conftest.$ac_objext conftest$ac_exeext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9896 (eval $ac_link) 2>&5
9897 ac_status=$?
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try='test -s conftest$ac_exeext'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 (eval $ac_try) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; }; then
9906 ac_cv_c_asm_string="yes"
9907 else
9908 echo "$as_me: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9910 ac_cv_c_asm_string="no"
9912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9914 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
9915 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
9916 if test "$ac_cv_c_asm_string" = "yes"
9917 then
9919 cat >>confdefs.h <<\_ACEOF
9920 #define HAVE_ASM_STRING 1
9921 _ACEOF
9926 DLLEXT=""
9928 DLLFLAGS=""
9930 DLLIBS=""
9932 LDDLLFLAGS=""
9934 LDSHARED=""
9937 case $host_os in
9938 cygwin*|mingw32*)
9939 if test -n "$ac_tool_prefix"; then
9940 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
9941 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
9942 echo "$as_me:$LINENO: checking for $ac_word" >&5
9943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9944 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 else
9947 if test -n "$DLLWRAP"; then
9948 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
9949 else
9950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951 for as_dir in $PATH
9953 IFS=$as_save_IFS
9954 test -z "$as_dir" && as_dir=.
9955 for ac_exec_ext in '' $ac_executable_extensions; do
9956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9957 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
9958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9959 break 2
9961 done
9962 done
9966 DLLWRAP=$ac_cv_prog_DLLWRAP
9967 if test -n "$DLLWRAP"; then
9968 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
9969 echo "${ECHO_T}$DLLWRAP" >&6
9970 else
9971 echo "$as_me:$LINENO: result: no" >&5
9972 echo "${ECHO_T}no" >&6
9976 if test -z "$ac_cv_prog_DLLWRAP"; then
9977 ac_ct_DLLWRAP=$DLLWRAP
9978 # Extract the first word of "dllwrap", so it can be a program name with args.
9979 set dummy dllwrap; ac_word=$2
9980 echo "$as_me:$LINENO: checking for $ac_word" >&5
9981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9982 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9984 else
9985 if test -n "$ac_ct_DLLWRAP"; then
9986 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
9987 else
9988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9989 for as_dir in $PATH
9991 IFS=$as_save_IFS
9992 test -z "$as_dir" && as_dir=.
9993 for ac_exec_ext in '' $ac_executable_extensions; do
9994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9995 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
9996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9997 break 2
9999 done
10000 done
10002 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
10005 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
10006 if test -n "$ac_ct_DLLWRAP"; then
10007 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
10008 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
10009 else
10010 echo "$as_me:$LINENO: result: no" >&5
10011 echo "${ECHO_T}no" >&6
10014 DLLWRAP=$ac_ct_DLLWRAP
10015 else
10016 DLLWRAP="$ac_cv_prog_DLLWRAP"
10019 if test "$DLLWRAP" = "false"; then
10020 LIBEXT="a"
10021 else
10022 LIBEXT="dll"
10027 for ac_header in dlfcn.h
10029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10031 echo "$as_me:$LINENO: checking for $ac_header" >&5
10032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10034 echo $ECHO_N "(cached) $ECHO_C" >&6
10036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10038 else
10039 # Is the header compilable?
10040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10042 cat >conftest.$ac_ext <<_ACEOF
10043 #line $LINENO "configure"
10044 #include "confdefs.h"
10045 $ac_includes_default
10046 #include <$ac_header>
10047 _ACEOF
10048 rm -f conftest.$ac_objext
10049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10050 (eval $ac_compile) 2>&5
10051 ac_status=$?
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } &&
10054 { ac_try='test -s conftest.$ac_objext'
10055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056 (eval $ac_try) 2>&5
10057 ac_status=$?
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; }; then
10060 ac_header_compiler=yes
10061 else
10062 echo "$as_me: failed program was:" >&5
10063 cat conftest.$ac_ext >&5
10064 ac_header_compiler=no
10066 rm -f conftest.$ac_objext conftest.$ac_ext
10067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10068 echo "${ECHO_T}$ac_header_compiler" >&6
10070 # Is the header present?
10071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10073 cat >conftest.$ac_ext <<_ACEOF
10074 #line $LINENO "configure"
10075 #include "confdefs.h"
10076 #include <$ac_header>
10077 _ACEOF
10078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10080 ac_status=$?
10081 grep -v '^ *+' conftest.er1 >conftest.err
10082 rm -f conftest.er1
10083 cat conftest.err >&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } >/dev/null; then
10086 if test -s conftest.err; then
10087 ac_cpp_err=$ac_c_preproc_warn_flag
10088 else
10089 ac_cpp_err=
10091 else
10092 ac_cpp_err=yes
10094 if test -z "$ac_cpp_err"; then
10095 ac_header_preproc=yes
10096 else
10097 echo "$as_me: failed program was:" >&5
10098 cat conftest.$ac_ext >&5
10099 ac_header_preproc=no
10101 rm -f conftest.err conftest.$ac_ext
10102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10103 echo "${ECHO_T}$ac_header_preproc" >&6
10105 # So? What about this header?
10106 case $ac_header_compiler:$ac_header_preproc in
10107 yes:no )
10108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10112 no:yes )
10113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10119 esac
10120 echo "$as_me:$LINENO: checking for $ac_header" >&5
10121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10123 echo $ECHO_N "(cached) $ECHO_C" >&6
10124 else
10125 eval "$as_ac_Header=$ac_header_preproc"
10127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10132 cat >>confdefs.h <<_ACEOF
10133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10134 _ACEOF
10136 for ac_func in dlopen
10138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10139 echo "$as_me:$LINENO: checking for $ac_func" >&5
10140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10141 if eval "test \"\${$as_ac_var+set}\" = set"; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10143 else
10144 cat >conftest.$ac_ext <<_ACEOF
10145 #line $LINENO "configure"
10146 #include "confdefs.h"
10147 /* System header to define __stub macros and hopefully few prototypes,
10148 which can conflict with char $ac_func (); below. */
10149 #include <assert.h>
10150 /* Override any gcc2 internal prototype to avoid an error. */
10151 #ifdef __cplusplus
10152 extern "C"
10153 #endif
10154 /* We use char because int might match the return type of a gcc2
10155 builtin and then its argument prototype would still apply. */
10156 char $ac_func ();
10157 char (*f) ();
10160 main ()
10162 /* The GNU C library defines this for functions which it implements
10163 to always fail with ENOSYS. Some functions are actually named
10164 something starting with __ and the normal name is an alias. */
10165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10166 choke me
10167 #else
10168 f = $ac_func;
10169 #endif
10172 return 0;
10174 _ACEOF
10175 rm -f conftest.$ac_objext conftest$ac_exeext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10177 (eval $ac_link) 2>&5
10178 ac_status=$?
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } &&
10181 { ac_try='test -s conftest$ac_exeext'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10184 ac_status=$?
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; }; then
10187 eval "$as_ac_var=yes"
10188 else
10189 echo "$as_me: failed program was:" >&5
10190 cat conftest.$ac_ext >&5
10191 eval "$as_ac_var=no"
10193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10197 if test `eval echo '${'$as_ac_var'}'` = yes; then
10198 cat >>confdefs.h <<_ACEOF
10199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10200 _ACEOF
10202 else
10203 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10204 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10205 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10206 echo $ECHO_N "(cached) $ECHO_C" >&6
10207 else
10208 ac_check_lib_save_LIBS=$LIBS
10209 LIBS="-ldl $LIBS"
10210 cat >conftest.$ac_ext <<_ACEOF
10211 #line $LINENO "configure"
10212 #include "confdefs.h"
10214 /* Override any gcc2 internal prototype to avoid an error. */
10215 #ifdef __cplusplus
10216 extern "C"
10217 #endif
10218 /* We use char because int might match the return type of a gcc2
10219 builtin and then its argument prototype would still apply. */
10220 char dlopen ();
10222 main ()
10224 dlopen ();
10226 return 0;
10228 _ACEOF
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231 (eval $ac_link) 2>&5
10232 ac_status=$?
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
10235 { ac_try='test -s conftest$ac_exeext'
10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10238 ac_status=$?
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; }; then
10241 ac_cv_lib_dl_dlopen=yes
10242 else
10243 echo "$as_me: failed program was:" >&5
10244 cat conftest.$ac_ext >&5
10245 ac_cv_lib_dl_dlopen=no
10247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10248 LIBS=$ac_check_lib_save_LIBS
10250 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10251 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10252 if test $ac_cv_lib_dl_dlopen = yes; then
10254 cat >>confdefs.h <<\_ACEOF
10255 #define HAVE_DLOPEN 1
10256 _ACEOF
10258 DLLIBS="-ldl"
10259 else
10260 LIBEXT="a"
10264 done
10266 else
10267 LIBEXT="a"
10270 done
10273 if test "$LIBEXT" = "so"
10274 then
10275 DLLFLAGS="-fPIC"
10276 DLLEXT=".so"
10277 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
10278 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
10279 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282 ac_wine_try_cflags_saved=$CFLAGS
10283 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
10284 cat >conftest.$ac_ext <<_ACEOF
10285 #line $LINENO "configure"
10286 #include "confdefs.h"
10289 main ()
10293 return 0;
10295 _ACEOF
10296 rm -f conftest.$ac_objext conftest$ac_exeext
10297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10298 (eval $ac_link) 2>&5
10299 ac_status=$?
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } &&
10302 { ac_try='test -s conftest$ac_exeext'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; }; then
10308 ac_cv_c_dll_gnuelf="yes"
10309 else
10310 echo "$as_me: failed program was:" >&5
10311 cat conftest.$ac_ext >&5
10312 ac_cv_c_dll_gnuelf="no"
10314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10315 CFLAGS=$ac_wine_try_cflags_saved
10317 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
10318 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
10319 if test "$ac_cv_c_dll_gnuelf" = "yes"
10320 then
10321 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
10322 LDDLLFLAGS="-Wl,-Bsymbolic"
10323 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
10324 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
10325 if test "${ac_cv_c_dll_zdefs+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 else
10328 ac_wine_try_cflags_saved=$CFLAGS
10329 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
10330 cat >conftest.$ac_ext <<_ACEOF
10331 #line $LINENO "configure"
10332 #include "confdefs.h"
10335 main ()
10339 return 0;
10341 _ACEOF
10342 rm -f conftest.$ac_objext conftest$ac_exeext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344 (eval $ac_link) 2>&5
10345 ac_status=$?
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } &&
10348 { ac_try='test -s conftest$ac_exeext'
10349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350 (eval $ac_try) 2>&5
10351 ac_status=$?
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }; }; then
10354 ac_cv_c_dll_zdefs="yes"
10355 else
10356 echo "$as_me: failed program was:" >&5
10357 cat conftest.$ac_ext >&5
10358 ac_cv_c_dll_zdefs="no"
10360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10361 CFLAGS=$ac_wine_try_cflags_saved
10363 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
10364 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
10365 if test "$ac_cv_c_dll_zdefs" = "yes"
10366 then
10367 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
10369 else
10370 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
10371 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
10372 if test "${ac_cv_c_dll_unixware+set}" = set; then
10373 echo $ECHO_N "(cached) $ECHO_C" >&6
10374 else
10375 ac_wine_try_cflags_saved=$CFLAGS
10376 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
10377 cat >conftest.$ac_ext <<_ACEOF
10378 #line $LINENO "configure"
10379 #include "confdefs.h"
10382 main ()
10386 return 0;
10388 _ACEOF
10389 rm -f conftest.$ac_objext conftest$ac_exeext
10390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10391 (eval $ac_link) 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } &&
10395 { ac_try='test -s conftest$ac_exeext'
10396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10397 (eval $ac_try) 2>&5
10398 ac_status=$?
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); }; }; then
10401 ac_cv_c_dll_unixware="yes"
10402 else
10403 echo "$as_me: failed program was:" >&5
10404 cat conftest.$ac_ext >&5
10405 ac_cv_c_dll_unixware="no"
10407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10408 CFLAGS=$ac_wine_try_cflags_saved
10410 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
10411 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
10412 if test "$ac_cv_c_dll_unixware" = "yes"
10413 then
10414 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
10415 LDDLLFLAGS="-Wl,-B,symbolic"
10420 CROSSTEST=""
10422 if test "$cross_compiling" = "no"
10423 then
10424 for ac_prog in i586-mingw32msvc-gcc
10426 # Extract the first word of "$ac_prog", so it can be a program name with args.
10427 set dummy $ac_prog; ac_word=$2
10428 echo "$as_me:$LINENO: checking for $ac_word" >&5
10429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10430 if test "${ac_cv_prog_CROSSCC+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 else
10433 if test -n "$CROSSCC"; then
10434 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
10435 else
10436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437 for as_dir in $PATH
10439 IFS=$as_save_IFS
10440 test -z "$as_dir" && as_dir=.
10441 for ac_exec_ext in '' $ac_executable_extensions; do
10442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10443 ac_cv_prog_CROSSCC="$ac_prog"
10444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10445 break 2
10447 done
10448 done
10452 CROSSCC=$ac_cv_prog_CROSSCC
10453 if test -n "$CROSSCC"; then
10454 echo "$as_me:$LINENO: result: $CROSSCC" >&5
10455 echo "${ECHO_T}$CROSSCC" >&6
10456 else
10457 echo "$as_me:$LINENO: result: no" >&5
10458 echo "${ECHO_T}no" >&6
10461 test -n "$CROSSCC" && break
10462 done
10463 test -n "$CROSSCC" || CROSSCC="false"
10465 for ac_prog in i586-mingw32msvc-dlltool
10467 # Extract the first word of "$ac_prog", so it can be a program name with args.
10468 set dummy $ac_prog; ac_word=$2
10469 echo "$as_me:$LINENO: checking for $ac_word" >&5
10470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10471 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10473 else
10474 if test -n "$DLLTOOL"; then
10475 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10476 else
10477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478 for as_dir in $PATH
10480 IFS=$as_save_IFS
10481 test -z "$as_dir" && as_dir=.
10482 for ac_exec_ext in '' $ac_executable_extensions; do
10483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10484 ac_cv_prog_DLLTOOL="$ac_prog"
10485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10486 break 2
10488 done
10489 done
10493 DLLTOOL=$ac_cv_prog_DLLTOOL
10494 if test -n "$DLLTOOL"; then
10495 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
10496 echo "${ECHO_T}$DLLTOOL" >&6
10497 else
10498 echo "$as_me:$LINENO: result: no" >&5
10499 echo "${ECHO_T}no" >&6
10502 test -n "$DLLTOOL" && break
10503 done
10504 test -n "$DLLTOOL" || DLLTOOL="false"
10506 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
10509 esac
10511 if test "$LIBEXT" = "a"; then
10512 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
10513 It is currently not possible to build Wine without shared library
10514 (.so) support to allow transparent switch between .so and .dll files.
10515 If you are using Linux, you will need a newer binutils.
10516 " >&5
10517 echo "$as_me: error: could not find a way to build shared libraries.
10518 It is currently not possible to build Wine without shared library
10519 (.so) support to allow transparent switch between .so and .dll files.
10520 If you are using Linux, you will need a newer binutils.
10521 " >&2;}
10522 { (exit 1); exit 1; }; }
10525 case $build_os in
10526 cygwin*|mingw32*)
10527 LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\""
10530 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\""
10532 esac
10534 CRTLIBS=""
10536 case $host_os in
10537 mingw32*)
10538 CRTLIBS="-lmsvcrt" ;;
10539 esac
10542 if test "$LIBEXT" = "so"
10543 then
10544 # Extract the first word of "ldd", so it can be a program name with args.
10545 set dummy ldd; ac_word=$2
10546 echo "$as_me:$LINENO: checking for $ac_word" >&5
10547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10548 if test "${ac_cv_path_LDD+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10550 else
10551 case $LDD in
10552 [\\/]* | ?:[\\/]*)
10553 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10557 as_dummy="/sbin:/usr/sbin:$PATH"
10558 for as_dir in $as_dummy
10560 IFS=$as_save_IFS
10561 test -z "$as_dir" && as_dir=.
10562 for ac_exec_ext in '' $ac_executable_extensions; do
10563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10564 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10566 break 2
10568 done
10569 done
10571 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
10573 esac
10575 LDD=$ac_cv_path_LDD
10577 if test -n "$LDD"; then
10578 echo "$as_me:$LINENO: result: $LDD" >&5
10579 echo "${ECHO_T}$LDD" >&6
10580 else
10581 echo "$as_me:$LINENO: result: no" >&5
10582 echo "${ECHO_T}no" >&6
10586 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
10587 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
10588 if test "${ac_cv_lib_soname_X11+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10590 else
10591 ac_get_soname_save_LIBS=$LIBS
10592 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
10593 cat >conftest.$ac_ext <<_ACEOF
10594 #line $LINENO "configure"
10595 #include "confdefs.h"
10597 /* Override any gcc2 internal prototype to avoid an error. */
10598 #ifdef __cplusplus
10599 extern "C"
10600 #endif
10601 /* We use char because int might match the return type of a gcc2
10602 builtin and then its argument prototype would still apply. */
10603 char XCreateWindow ();
10605 main ()
10607 XCreateWindow ();
10609 return 0;
10611 _ACEOF
10612 rm -f conftest.$ac_objext conftest$ac_exeext
10613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10614 (eval $ac_link) 2>&5
10615 ac_status=$?
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } &&
10618 { ac_try='test -s conftest$ac_exeext'
10619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620 (eval $ac_try) 2>&5
10621 ac_status=$?
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; }; then
10624 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10625 if test "x$ac_cv_lib_soname_X11" = "x"
10626 then
10627 ac_cv_lib_soname_X11="libX11.so"
10629 else
10630 echo "$as_me: failed program was:" >&5
10631 cat conftest.$ac_ext >&5
10632 ac_cv_lib_soname_X11="libX11.so"
10634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10635 LIBS=$ac_get_soname_save_LIBS
10637 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
10638 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
10639 if test "x$ac_cv_lib_soname_X11" != xNONE
10640 then
10641 cat >>confdefs.h <<_ACEOF
10642 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
10643 _ACEOF
10646 echo "$as_me:$LINENO: checking for -lXext soname" >&5
10647 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
10648 if test "${ac_cv_lib_soname_Xext+set}" = set; then
10649 echo $ECHO_N "(cached) $ECHO_C" >&6
10650 else
10651 ac_get_soname_save_LIBS=$LIBS
10652 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10653 cat >conftest.$ac_ext <<_ACEOF
10654 #line $LINENO "configure"
10655 #include "confdefs.h"
10657 /* Override any gcc2 internal prototype to avoid an error. */
10658 #ifdef __cplusplus
10659 extern "C"
10660 #endif
10661 /* We use char because int might match the return type of a gcc2
10662 builtin and then its argument prototype would still apply. */
10663 char XextCreateExtension ();
10665 main ()
10667 XextCreateExtension ();
10669 return 0;
10671 _ACEOF
10672 rm -f conftest.$ac_objext conftest$ac_exeext
10673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10674 (eval $ac_link) 2>&5
10675 ac_status=$?
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } &&
10678 { ac_try='test -s conftest$ac_exeext'
10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680 (eval $ac_try) 2>&5
10681 ac_status=$?
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; }; then
10684 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10685 if test "x$ac_cv_lib_soname_Xext" = "x"
10686 then
10687 ac_cv_lib_soname_Xext="libXext.so"
10689 else
10690 echo "$as_me: failed program was:" >&5
10691 cat conftest.$ac_ext >&5
10692 ac_cv_lib_soname_Xext="libXext.so"
10694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10695 LIBS=$ac_get_soname_save_LIBS
10697 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
10698 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
10699 if test "x$ac_cv_lib_soname_Xext" != xNONE
10700 then
10701 cat >>confdefs.h <<_ACEOF
10702 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
10703 _ACEOF
10706 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
10707 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
10708 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 else
10711 ac_get_soname_save_LIBS=$LIBS
10712 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10713 cat >conftest.$ac_ext <<_ACEOF
10714 #line $LINENO "configure"
10715 #include "confdefs.h"
10717 /* Override any gcc2 internal prototype to avoid an error. */
10718 #ifdef __cplusplus
10719 extern "C"
10720 #endif
10721 /* We use char because int might match the return type of a gcc2
10722 builtin and then its argument prototype would still apply. */
10723 char XRenderQueryExtension ();
10725 main ()
10727 XRenderQueryExtension ();
10729 return 0;
10731 _ACEOF
10732 rm -f conftest.$ac_objext conftest$ac_exeext
10733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10734 (eval $ac_link) 2>&5
10735 ac_status=$?
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); } &&
10738 { ac_try='test -s conftest$ac_exeext'
10739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740 (eval $ac_try) 2>&5
10741 ac_status=$?
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; }; then
10744 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10745 if test "x$ac_cv_lib_soname_Xrender" = "x"
10746 then
10747 ac_cv_lib_soname_Xrender="libXrender.so"
10749 else
10750 echo "$as_me: failed program was:" >&5
10751 cat conftest.$ac_ext >&5
10752 ac_cv_lib_soname_Xrender="libXrender.so"
10754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10755 LIBS=$ac_get_soname_save_LIBS
10757 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
10758 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
10759 if test "x$ac_cv_lib_soname_Xrender" != xNONE
10760 then
10761 cat >>confdefs.h <<_ACEOF
10762 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
10763 _ACEOF
10766 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
10767 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
10768 if test "${ac_cv_lib_soname_freetype+set}" = set; then
10769 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 else
10771 ac_get_soname_save_LIBS=$LIBS
10772 LIBS="-lfreetype $X_LIBS $LIBS"
10773 cat >conftest.$ac_ext <<_ACEOF
10774 #line $LINENO "configure"
10775 #include "confdefs.h"
10777 /* Override any gcc2 internal prototype to avoid an error. */
10778 #ifdef __cplusplus
10779 extern "C"
10780 #endif
10781 /* We use char because int might match the return type of a gcc2
10782 builtin and then its argument prototype would still apply. */
10783 char FT_Init_FreeType ();
10785 main ()
10787 FT_Init_FreeType ();
10789 return 0;
10791 _ACEOF
10792 rm -f conftest.$ac_objext conftest$ac_exeext
10793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10794 (eval $ac_link) 2>&5
10795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); } &&
10798 { ac_try='test -s conftest$ac_exeext'
10799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800 (eval $ac_try) 2>&5
10801 ac_status=$?
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; }; then
10804 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10805 if test "x$ac_cv_lib_soname_freetype" = "x"
10806 then
10807 ac_cv_lib_soname_freetype="libfreetype.so"
10809 else
10810 echo "$as_me: failed program was:" >&5
10811 cat conftest.$ac_ext >&5
10812 ac_cv_lib_soname_freetype="libfreetype.so"
10814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10815 LIBS=$ac_get_soname_save_LIBS
10817 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
10818 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
10819 if test "x$ac_cv_lib_soname_freetype" != xNONE
10820 then
10821 cat >>confdefs.h <<_ACEOF
10822 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10823 _ACEOF
10826 echo "$as_me:$LINENO: checking for -lGL soname" >&5
10827 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
10828 if test "${ac_cv_lib_soname_GL+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831 ac_get_soname_save_LIBS=$LIBS
10832 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
10833 cat >conftest.$ac_ext <<_ACEOF
10834 #line $LINENO "configure"
10835 #include "confdefs.h"
10837 /* Override any gcc2 internal prototype to avoid an error. */
10838 #ifdef __cplusplus
10839 extern "C"
10840 #endif
10841 /* We use char because int might match the return type of a gcc2
10842 builtin and then its argument prototype would still apply. */
10843 char glXQueryExtension ();
10845 main ()
10847 glXQueryExtension ();
10849 return 0;
10851 _ACEOF
10852 rm -f conftest.$ac_objext conftest$ac_exeext
10853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10854 (eval $ac_link) 2>&5
10855 ac_status=$?
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
10858 { ac_try='test -s conftest$ac_exeext'
10859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10861 ac_status=$?
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; }; then
10864 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10865 if test "x$ac_cv_lib_soname_GL" = "x"
10866 then
10867 ac_cv_lib_soname_GL="libGL.so"
10869 else
10870 echo "$as_me: failed program was:" >&5
10871 cat conftest.$ac_ext >&5
10872 ac_cv_lib_soname_GL="libGL.so"
10874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10875 LIBS=$ac_get_soname_save_LIBS
10877 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
10878 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
10879 if test "x$ac_cv_lib_soname_GL" != xNONE
10880 then
10881 cat >>confdefs.h <<_ACEOF
10882 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10883 _ACEOF
10886 echo "$as_me:$LINENO: checking for -lcups soname" >&5
10887 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
10888 if test "${ac_cv_lib_soname_cups+set}" = set; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10890 else
10891 ac_get_soname_save_LIBS=$LIBS
10892 LIBS="-lcups $LIBS"
10893 cat >conftest.$ac_ext <<_ACEOF
10894 #line $LINENO "configure"
10895 #include "confdefs.h"
10897 /* Override any gcc2 internal prototype to avoid an error. */
10898 #ifdef __cplusplus
10899 extern "C"
10900 #endif
10901 /* We use char because int might match the return type of a gcc2
10902 builtin and then its argument prototype would still apply. */
10903 char cupsGetDefault ();
10905 main ()
10907 cupsGetDefault ();
10909 return 0;
10911 _ACEOF
10912 rm -f conftest.$ac_objext conftest$ac_exeext
10913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10914 (eval $ac_link) 2>&5
10915 ac_status=$?
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } &&
10918 { ac_try='test -s conftest$ac_exeext'
10919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920 (eval $ac_try) 2>&5
10921 ac_status=$?
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
10924 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10925 if test "x$ac_cv_lib_soname_cups" = "x"
10926 then
10927 ac_cv_lib_soname_cups="libcups.so"
10929 else
10930 echo "$as_me: failed program was:" >&5
10931 cat conftest.$ac_ext >&5
10932 ac_cv_lib_soname_cups="libcups.so"
10934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10935 LIBS=$ac_get_soname_save_LIBS
10937 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
10938 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
10939 if test "x$ac_cv_lib_soname_cups" != xNONE
10940 then
10941 cat >>confdefs.h <<_ACEOF
10942 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10943 _ACEOF
10949 wine_cv_libc_reentrant=no
10950 echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
10951 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
10952 if test "${wine_cv_libc_r___errno_location+set}" = set; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
10954 else
10955 if test "$cross_compiling" = yes; then
10956 wine_cv_libc_r___errno_location=yes
10957 else
10958 cat >conftest.$ac_ext <<_ACEOF
10959 #line $LINENO "configure"
10960 #include "confdefs.h"
10961 int myerrno = 0;
10962 int *__errno_location(){return &myerrno;}
10963 main(){close(333); close(333); exit(!myerrno);}
10964 _ACEOF
10965 rm -f conftest$ac_exeext
10966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10967 (eval $ac_link) 2>&5
10968 ac_status=$?
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972 (eval $ac_try) 2>&5
10973 ac_status=$?
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; }; then
10976 wine_cv_libc_r___errno_location=yes
10977 else
10978 echo "$as_me: program exited with status $ac_status" >&5
10979 echo "$as_me: failed program was:" >&5
10980 cat conftest.$ac_ext >&5
10981 ( exit $ac_status )
10982 wine_cv_libc_r___errno_location=no
10984 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10987 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
10988 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
10989 if test "$wine_cv_libc_r___errno_location" = "yes"; then
10990 wine_cv_libc_reentrant=__errno_location
10991 else
10992 echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
10993 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
10994 if test "${wine_cv_libc_r___error+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10996 else
10997 if test "$cross_compiling" = yes; then
10998 wine_cv_libc_r___error=yes
10999 else
11000 cat >conftest.$ac_ext <<_ACEOF
11001 #line $LINENO "configure"
11002 #include "confdefs.h"
11003 int myerrno = 0;
11004 int *__error(){return &myerrno;}
11005 main(){close(333); close(333); exit(!myerrno);}
11006 _ACEOF
11007 rm -f conftest$ac_exeext
11008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11009 (eval $ac_link) 2>&5
11010 ac_status=$?
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11014 (eval $ac_try) 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; }; then
11018 wine_cv_libc_r___error=yes
11019 else
11020 echo "$as_me: program exited with status $ac_status" >&5
11021 echo "$as_me: failed program was:" >&5
11022 cat conftest.$ac_ext >&5
11023 ( exit $ac_status )
11024 wine_cv_libc_r___error=no
11026 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11029 echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
11030 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
11031 if test "$wine_cv_libc_r___error" = "yes"; then
11032 wine_cv_libc_reentrant=__error
11033 else
11034 echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
11035 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
11036 if test "${wine_cv_libc_r____errno+set}" = set; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11038 else
11039 if test "$cross_compiling" = yes; then
11040 wine_cv_libc_r____errno=yes
11041 else
11042 cat >conftest.$ac_ext <<_ACEOF
11043 #line $LINENO "configure"
11044 #include "confdefs.h"
11045 int myerrno = 0;
11046 int *___errno(){return &myerrno;}
11047 main(){close(333); close(333); exit(!myerrno);}
11048 _ACEOF
11049 rm -f conftest$ac_exeext
11050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11051 (eval $ac_link) 2>&5
11052 ac_status=$?
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056 (eval $ac_try) 2>&5
11057 ac_status=$?
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; }; then
11060 wine_cv_libc_r____errno=yes
11061 else
11062 echo "$as_me: program exited with status $ac_status" >&5
11063 echo "$as_me: failed program was:" >&5
11064 cat conftest.$ac_ext >&5
11065 ( exit $ac_status )
11066 wine_cv_libc_r____errno=no
11068 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11071 echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
11072 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
11073 if test "$wine_cv_libc_r____errno" = "yes"; then
11074 wine_cv_libc_reentrant=___errno
11075 else
11076 echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
11077 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
11078 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11080 else
11081 if test "$cross_compiling" = yes; then
11082 wine_cv_libc_r___thr_errno=yes
11083 else
11084 cat >conftest.$ac_ext <<_ACEOF
11085 #line $LINENO "configure"
11086 #include "confdefs.h"
11087 int myerrno = 0;
11088 int *__thr_errno(){return &myerrno;}
11089 main(){close(333); close(333); exit(!myerrno);}
11090 _ACEOF
11091 rm -f conftest$ac_exeext
11092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11093 (eval $ac_link) 2>&5
11094 ac_status=$?
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098 (eval $ac_try) 2>&5
11099 ac_status=$?
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; }; then
11102 wine_cv_libc_r___thr_errno=yes
11103 else
11104 echo "$as_me: program exited with status $ac_status" >&5
11105 echo "$as_me: failed program was:" >&5
11106 cat conftest.$ac_ext >&5
11107 ( exit $ac_status )
11108 wine_cv_libc_r___thr_errno=no
11110 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11113 echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
11114 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
11115 if test "$wine_cv_libc_r___thr_errno" = "yes"; then
11116 wine_cv_libc_reentrant=__thr_errno
11117 else
11118 echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
11119 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
11120 if test "${wine_cv_libc_r___errno+set}" = set; then
11121 echo $ECHO_N "(cached) $ECHO_C" >&6
11122 else
11123 if test "$cross_compiling" = yes; then
11124 wine_cv_libc_r___errno=yes
11125 else
11126 cat >conftest.$ac_ext <<_ACEOF
11127 #line $LINENO "configure"
11128 #include "confdefs.h"
11129 int myerrno = 0;
11130 int *__errno(){return &myerrno;}
11131 main(){close(333); close(333); exit(!myerrno);}
11132 _ACEOF
11133 rm -f conftest$ac_exeext
11134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11135 (eval $ac_link) 2>&5
11136 ac_status=$?
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }; then
11144 wine_cv_libc_r___errno=yes
11145 else
11146 echo "$as_me: program exited with status $ac_status" >&5
11147 echo "$as_me: failed program was:" >&5
11148 cat conftest.$ac_ext >&5
11149 ( exit $ac_status )
11150 wine_cv_libc_r___errno=no
11152 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11155 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
11156 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
11157 if test "$wine_cv_libc_r___errno" = "yes"; then
11158 wine_cv_libc_reentrant=__errno
11171 if test "$wine_cv_libc_reentrant" != "no"
11172 then
11174 cat >>confdefs.h <<_ACEOF
11175 #define ERRNO_LOCATION $wine_cv_libc_reentrant
11176 _ACEOF
11181 if test "$have_x" = "yes"
11182 then
11183 echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
11184 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
11185 if test "${wine_cv_x_reentrant+set}" = set; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11187 else
11188 libX11_check=none
11189 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
11190 if test -r $dir/libX11.so; then
11191 libX11_check="-D $dir/libX11.so"
11192 break
11194 if test -r $dir/libX11.a; then
11195 libX11_check="$dir/libX11.a"
11196 break
11198 done
11199 if test "$libX11_check" != "none"; then
11200 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
11201 then
11202 wine_cv_x_reentrant=yes
11203 else
11204 wine_cv_x_reentrant=no
11206 else
11207 wine_cv_x_reentrant=unknown
11210 echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
11211 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
11215 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11216 # for constant arguments. Useless!
11217 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11218 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11219 if test "${ac_cv_working_alloca_h+set}" = set; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11221 else
11222 cat >conftest.$ac_ext <<_ACEOF
11223 #line $LINENO "configure"
11224 #include "confdefs.h"
11225 #include <alloca.h>
11227 main ()
11229 char *p = (char *) alloca (2 * sizeof (int));
11231 return 0;
11233 _ACEOF
11234 rm -f conftest.$ac_objext conftest$ac_exeext
11235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11236 (eval $ac_link) 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } &&
11240 { ac_try='test -s conftest$ac_exeext'
11241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242 (eval $ac_try) 2>&5
11243 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; }; then
11246 ac_cv_working_alloca_h=yes
11247 else
11248 echo "$as_me: failed program was:" >&5
11249 cat conftest.$ac_ext >&5
11250 ac_cv_working_alloca_h=no
11252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11254 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11255 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11256 if test $ac_cv_working_alloca_h = yes; then
11258 cat >>confdefs.h <<\_ACEOF
11259 #define HAVE_ALLOCA_H 1
11260 _ACEOF
11264 echo "$as_me:$LINENO: checking for alloca" >&5
11265 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11266 if test "${ac_cv_func_alloca_works+set}" = set; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11268 else
11269 cat >conftest.$ac_ext <<_ACEOF
11270 #line $LINENO "configure"
11271 #include "confdefs.h"
11272 #ifdef __GNUC__
11273 # define alloca __builtin_alloca
11274 #else
11275 # ifdef _MSC_VER
11276 # include <malloc.h>
11277 # define alloca _alloca
11278 # else
11279 # if HAVE_ALLOCA_H
11280 # include <alloca.h>
11281 # else
11282 # ifdef _AIX
11283 #pragma alloca
11284 # else
11285 # ifndef alloca /* predefined by HP cc +Olibcalls */
11286 char *alloca ();
11287 # endif
11288 # endif
11289 # endif
11290 # endif
11291 #endif
11294 main ()
11296 char *p = (char *) alloca (1);
11298 return 0;
11300 _ACEOF
11301 rm -f conftest.$ac_objext conftest$ac_exeext
11302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11303 (eval $ac_link) 2>&5
11304 ac_status=$?
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } &&
11307 { ac_try='test -s conftest$ac_exeext'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; }; then
11313 ac_cv_func_alloca_works=yes
11314 else
11315 echo "$as_me: failed program was:" >&5
11316 cat conftest.$ac_ext >&5
11317 ac_cv_func_alloca_works=no
11319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11321 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11322 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11324 if test $ac_cv_func_alloca_works = yes; then
11326 cat >>confdefs.h <<\_ACEOF
11327 #define HAVE_ALLOCA 1
11328 _ACEOF
11330 else
11331 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11332 # that cause trouble. Some versions do not even contain alloca or
11333 # contain a buggy version. If you still want to use their alloca,
11334 # use ar to extract alloca.o from them instead of compiling alloca.c.
11336 ALLOCA=alloca.$ac_objext
11338 cat >>confdefs.h <<\_ACEOF
11339 #define C_ALLOCA 1
11340 _ACEOF
11343 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11344 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11345 if test "${ac_cv_os_cray+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11347 else
11348 cat >conftest.$ac_ext <<_ACEOF
11349 #line $LINENO "configure"
11350 #include "confdefs.h"
11351 #if defined(CRAY) && ! defined(CRAY2)
11352 webecray
11353 #else
11354 wenotbecray
11355 #endif
11357 _ACEOF
11358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11359 $EGREP "webecray" >/dev/null 2>&1; then
11360 ac_cv_os_cray=yes
11361 else
11362 ac_cv_os_cray=no
11364 rm -f conftest*
11367 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11368 echo "${ECHO_T}$ac_cv_os_cray" >&6
11369 if test $ac_cv_os_cray = yes; then
11370 for ac_func in _getb67 GETB67 getb67; do
11371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11372 echo "$as_me:$LINENO: checking for $ac_func" >&5
11373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11374 if eval "test \"\${$as_ac_var+set}\" = set"; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 else
11377 cat >conftest.$ac_ext <<_ACEOF
11378 #line $LINENO "configure"
11379 #include "confdefs.h"
11380 /* System header to define __stub macros and hopefully few prototypes,
11381 which can conflict with char $ac_func (); below. */
11382 #include <assert.h>
11383 /* Override any gcc2 internal prototype to avoid an error. */
11384 #ifdef __cplusplus
11385 extern "C"
11386 #endif
11387 /* We use char because int might match the return type of a gcc2
11388 builtin and then its argument prototype would still apply. */
11389 char $ac_func ();
11390 char (*f) ();
11393 main ()
11395 /* The GNU C library defines this for functions which it implements
11396 to always fail with ENOSYS. Some functions are actually named
11397 something starting with __ and the normal name is an alias. */
11398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11399 choke me
11400 #else
11401 f = $ac_func;
11402 #endif
11405 return 0;
11407 _ACEOF
11408 rm -f conftest.$ac_objext conftest$ac_exeext
11409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11410 (eval $ac_link) 2>&5
11411 ac_status=$?
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } &&
11414 { ac_try='test -s conftest$ac_exeext'
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; }; then
11420 eval "$as_ac_var=yes"
11421 else
11422 echo "$as_me: failed program was:" >&5
11423 cat conftest.$ac_ext >&5
11424 eval "$as_ac_var=no"
11426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11430 if test `eval echo '${'$as_ac_var'}'` = yes; then
11432 cat >>confdefs.h <<_ACEOF
11433 #define CRAY_STACKSEG_END $ac_func
11434 _ACEOF
11436 break
11439 done
11442 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11443 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11444 if test "${ac_cv_c_stack_direction+set}" = set; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11446 else
11447 if test "$cross_compiling" = yes; then
11448 ac_cv_c_stack_direction=0
11449 else
11450 cat >conftest.$ac_ext <<_ACEOF
11451 #line $LINENO "configure"
11452 #include "confdefs.h"
11454 find_stack_direction ()
11456 static char *addr = 0;
11457 auto char dummy;
11458 if (addr == 0)
11460 addr = &dummy;
11461 return find_stack_direction ();
11463 else
11464 return (&dummy > addr) ? 1 : -1;
11468 main ()
11470 exit (find_stack_direction () < 0);
11472 _ACEOF
11473 rm -f conftest$ac_exeext
11474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11475 (eval $ac_link) 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480 (eval $ac_try) 2>&5
11481 ac_status=$?
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; }; then
11484 ac_cv_c_stack_direction=1
11485 else
11486 echo "$as_me: program exited with status $ac_status" >&5
11487 echo "$as_me: failed program was:" >&5
11488 cat conftest.$ac_ext >&5
11489 ( exit $ac_status )
11490 ac_cv_c_stack_direction=-1
11492 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11495 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11496 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11498 cat >>confdefs.h <<_ACEOF
11499 #define STACK_DIRECTION $ac_cv_c_stack_direction
11500 _ACEOF
11552 for ac_func in \
11553 _lwp_create \
11554 _pclose \
11555 _popen \
11556 _snprintf \
11557 _stricmp \
11558 _strnicmp \
11559 chsize \
11560 clone \
11561 ecvt \
11562 finite \
11563 fpclass \
11564 ftruncate \
11565 ftruncate64 \
11566 getnetbyaddr \
11567 getnetbyname \
11568 getpagesize \
11569 getprotobyname \
11570 getprotobynumber \
11571 getpwuid \
11572 getservbyport \
11573 getsockopt \
11574 inet_network \
11575 lseek64 \
11576 lstat \
11577 memmove \
11578 mkstemp \
11579 mmap \
11580 pclose \
11581 popen \
11582 pread \
11583 pwrite \
11584 rfork \
11585 select \
11586 sendmsg \
11587 settimeofday \
11588 sigaltstack \
11589 snprintf \
11590 statfs \
11591 strcasecmp \
11592 strerror \
11593 strncasecmp \
11594 tcgetattr \
11595 timegm \
11596 usleep \
11597 vfscanf \
11598 wait4 \
11599 waitpid \
11602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11603 echo "$as_me:$LINENO: checking for $ac_func" >&5
11604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11605 if eval "test \"\${$as_ac_var+set}\" = set"; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
11607 else
11608 cat >conftest.$ac_ext <<_ACEOF
11609 #line $LINENO "configure"
11610 #include "confdefs.h"
11611 /* System header to define __stub macros and hopefully few prototypes,
11612 which can conflict with char $ac_func (); below. */
11613 #include <assert.h>
11614 /* Override any gcc2 internal prototype to avoid an error. */
11615 #ifdef __cplusplus
11616 extern "C"
11617 #endif
11618 /* We use char because int might match the return type of a gcc2
11619 builtin and then its argument prototype would still apply. */
11620 char $ac_func ();
11621 char (*f) ();
11624 main ()
11626 /* The GNU C library defines this for functions which it implements
11627 to always fail with ENOSYS. Some functions are actually named
11628 something starting with __ and the normal name is an alias. */
11629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11630 choke me
11631 #else
11632 f = $ac_func;
11633 #endif
11636 return 0;
11638 _ACEOF
11639 rm -f conftest.$ac_objext conftest$ac_exeext
11640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11641 (eval $ac_link) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } &&
11645 { ac_try='test -s conftest$ac_exeext'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11651 eval "$as_ac_var=yes"
11652 else
11653 echo "$as_me: failed program was:" >&5
11654 cat conftest.$ac_ext >&5
11655 eval "$as_ac_var=no"
11657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11660 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11661 if test `eval echo '${'$as_ac_var'}'` = yes; then
11662 cat >>confdefs.h <<_ACEOF
11663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11664 _ACEOF
11667 done
11738 for ac_header in \
11739 arpa/inet.h \
11740 arpa/nameser.h \
11741 cups/cups.h \
11742 direct.h \
11743 elf.h \
11744 float.h \
11745 ieeefp.h \
11746 io.h \
11747 libio.h \
11748 libutil.h \
11749 link.h \
11750 linux/cdrom.h \
11751 linux/hdreg.h \
11752 linux/input.h \
11753 linux/joystick.h \
11754 linux/major.h \
11755 linux/param.h \
11756 linux/serial.h \
11757 linux/ucdrom.h \
11758 netdb.h \
11759 netinet/in.h \
11760 netinet/in_systm.h \
11761 netinet/tcp.h \
11762 pty.h \
11763 pwd.h \
11764 sched.h \
11765 scsi/sg.h \
11766 socket.h \
11767 stdint.h \
11768 strings.h \
11769 sys/cdio.h \
11770 sys/errno.h \
11771 sys/file.h \
11772 sys/filio.h \
11773 sys/inttypes.h \
11774 sys/ioctl.h \
11775 sys/ipc.h \
11776 sys/link.h \
11777 sys/lwp.h \
11778 sys/mman.h \
11779 sys/modem.h \
11780 sys/msg.h \
11781 sys/param.h \
11782 sys/poll.h \
11783 sys/ptrace.h \
11784 sys/reg.h \
11785 sys/shm.h \
11786 sys/signal.h \
11787 sys/socket.h \
11788 sys/sockio.h \
11789 sys/statfs.h \
11790 sys/strtio.h \
11791 sys/syscall.h \
11792 sys/sysctl.h \
11793 sys/time.h \
11794 sys/times.h \
11795 sys/uio.h \
11796 sys/un.h \
11797 sys/v86.h \
11798 sys/v86intr.h \
11799 sys/vfs.h \
11800 sys/vm86.h \
11801 sys/wait.h \
11802 syscall.h \
11803 termios.h \
11804 unistd.h \
11805 utime.h \
11808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11810 echo "$as_me:$LINENO: checking for $ac_header" >&5
11811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11817 else
11818 # Is the header compilable?
11819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11821 cat >conftest.$ac_ext <<_ACEOF
11822 #line $LINENO "configure"
11823 #include "confdefs.h"
11824 $ac_includes_default
11825 #include <$ac_header>
11826 _ACEOF
11827 rm -f conftest.$ac_objext
11828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11829 (eval $ac_compile) 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } &&
11833 { ac_try='test -s conftest.$ac_objext'
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; }; then
11839 ac_header_compiler=yes
11840 else
11841 echo "$as_me: failed program was:" >&5
11842 cat conftest.$ac_ext >&5
11843 ac_header_compiler=no
11845 rm -f conftest.$ac_objext conftest.$ac_ext
11846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11847 echo "${ECHO_T}$ac_header_compiler" >&6
11849 # Is the header present?
11850 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11852 cat >conftest.$ac_ext <<_ACEOF
11853 #line $LINENO "configure"
11854 #include "confdefs.h"
11855 #include <$ac_header>
11856 _ACEOF
11857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11859 ac_status=$?
11860 grep -v '^ *+' conftest.er1 >conftest.err
11861 rm -f conftest.er1
11862 cat conftest.err >&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); } >/dev/null; then
11865 if test -s conftest.err; then
11866 ac_cpp_err=$ac_c_preproc_warn_flag
11867 else
11868 ac_cpp_err=
11870 else
11871 ac_cpp_err=yes
11873 if test -z "$ac_cpp_err"; then
11874 ac_header_preproc=yes
11875 else
11876 echo "$as_me: failed program was:" >&5
11877 cat conftest.$ac_ext >&5
11878 ac_header_preproc=no
11880 rm -f conftest.err conftest.$ac_ext
11881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11882 echo "${ECHO_T}$ac_header_preproc" >&6
11884 # So? What about this header?
11885 case $ac_header_compiler:$ac_header_preproc in
11886 yes:no )
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11891 no:yes )
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11895 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11898 esac
11899 echo "$as_me:$LINENO: checking for $ac_header" >&5
11900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11903 else
11904 eval "$as_ac_Header=$ac_header_preproc"
11906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11911 cat >>confdefs.h <<_ACEOF
11912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11913 _ACEOF
11917 done
11919 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11920 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11921 if test "${ac_cv_header_stat_broken+set}" = set; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11923 else
11924 cat >conftest.$ac_ext <<_ACEOF
11925 #line $LINENO "configure"
11926 #include "confdefs.h"
11927 #include <sys/types.h>
11928 #include <sys/stat.h>
11930 #if defined(S_ISBLK) && defined(S_IFDIR)
11931 # if S_ISBLK (S_IFDIR)
11932 You lose.
11933 # endif
11934 #endif
11936 #if defined(S_ISBLK) && defined(S_IFCHR)
11937 # if S_ISBLK (S_IFCHR)
11938 You lose.
11939 # endif
11940 #endif
11942 #if defined(S_ISLNK) && defined(S_IFREG)
11943 # if S_ISLNK (S_IFREG)
11944 You lose.
11945 # endif
11946 #endif
11948 #if defined(S_ISSOCK) && defined(S_IFREG)
11949 # if S_ISSOCK (S_IFREG)
11950 You lose.
11951 # endif
11952 #endif
11954 _ACEOF
11955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11956 $EGREP "You lose" >/dev/null 2>&1; then
11957 ac_cv_header_stat_broken=yes
11958 else
11959 ac_cv_header_stat_broken=no
11961 rm -f conftest*
11964 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11965 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11966 if test $ac_cv_header_stat_broken = yes; then
11968 cat >>confdefs.h <<\_ACEOF
11969 #define STAT_MACROS_BROKEN 1
11970 _ACEOF
11978 for ac_header in sys/mount.h sys/user.h
11980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11981 echo "$as_me:$LINENO: checking for $ac_header" >&5
11982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 else
11986 cat >conftest.$ac_ext <<_ACEOF
11987 #line $LINENO "configure"
11988 #include "confdefs.h"
11989 #include <sys/types.h>
11990 #if HAVE_SYS_PARAM_H
11991 # include <sys/param.h>
11992 #endif
11994 #include <$ac_header>
11995 _ACEOF
11996 rm -f conftest.$ac_objext
11997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11998 (eval $ac_compile) 2>&5
11999 ac_status=$?
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } &&
12002 { ac_try='test -s conftest.$ac_objext'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; }; then
12008 eval "$as_ac_Header=yes"
12009 else
12010 echo "$as_me: failed program was:" >&5
12011 cat conftest.$ac_ext >&5
12012 eval "$as_ac_Header=no"
12014 rm -f conftest.$ac_objext conftest.$ac_ext
12016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12019 cat >>confdefs.h <<_ACEOF
12020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12021 _ACEOF
12025 done
12029 for ac_header in net/if.h
12031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12032 echo "$as_me:$LINENO: checking for $ac_header" >&5
12033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12036 else
12037 cat >conftest.$ac_ext <<_ACEOF
12038 #line $LINENO "configure"
12039 #include "confdefs.h"
12040 #include <sys/types.h>
12041 #if HAVE_SYS_SOCKET_H
12042 # include <sys/socket.h>
12043 #endif
12045 #include <$ac_header>
12046 _ACEOF
12047 rm -f conftest.$ac_objext
12048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12049 (eval $ac_compile) 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); } &&
12053 { ac_try='test -s conftest.$ac_objext'
12054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5
12056 ac_status=$?
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 eval "$as_ac_Header=yes"
12060 else
12061 echo "$as_me: failed program was:" >&5
12062 cat conftest.$ac_ext >&5
12063 eval "$as_ac_Header=no"
12065 rm -f conftest.$ac_objext conftest.$ac_ext
12067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12070 cat >>confdefs.h <<_ACEOF
12071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12072 _ACEOF
12076 done
12080 for ac_header in netinet/ip.h
12082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12083 echo "$as_me:$LINENO: checking for $ac_header" >&5
12084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 else
12088 cat >conftest.$ac_ext <<_ACEOF
12089 #line $LINENO "configure"
12090 #include "confdefs.h"
12091 #include <sys/types.h>
12092 #if HAVE_SYS_SOCKET_H
12093 # include <sys/socket.h>
12094 #endif
12095 #if HAVE_NETINET_IN_SYSTM_H
12096 # include <netinet/in_systm.h>
12097 #endif
12099 #include <$ac_header>
12100 _ACEOF
12101 rm -f conftest.$ac_objext
12102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12103 (eval $ac_compile) 2>&5
12104 ac_status=$?
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } &&
12107 { ac_try='test -s conftest.$ac_objext'
12108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109 (eval $ac_try) 2>&5
12110 ac_status=$?
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; }; then
12113 eval "$as_ac_Header=yes"
12114 else
12115 echo "$as_me: failed program was:" >&5
12116 cat conftest.$ac_ext >&5
12117 eval "$as_ac_Header=no"
12119 rm -f conftest.$ac_objext conftest.$ac_ext
12121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12124 cat >>confdefs.h <<_ACEOF
12125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12126 _ACEOF
12130 done
12134 for ac_header in resolv.h
12136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12137 echo "$as_me:$LINENO: checking for $ac_header" >&5
12138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12140 echo $ECHO_N "(cached) $ECHO_C" >&6
12141 else
12142 cat >conftest.$ac_ext <<_ACEOF
12143 #line $LINENO "configure"
12144 #include "confdefs.h"
12145 #include <sys/types.h>
12146 #if HAVE_SYS_SOCKET_H
12147 # include <sys/socket.h>
12148 #endif
12150 #include <$ac_header>
12151 _ACEOF
12152 rm -f conftest.$ac_objext
12153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12154 (eval $ac_compile) 2>&5
12155 ac_status=$?
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } &&
12158 { ac_try='test -s conftest.$ac_objext'
12159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12160 (eval $ac_try) 2>&5
12161 ac_status=$?
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); }; }; then
12164 eval "$as_ac_Header=yes"
12165 else
12166 echo "$as_me: failed program was:" >&5
12167 cat conftest.$ac_ext >&5
12168 eval "$as_ac_Header=no"
12170 rm -f conftest.$ac_objext conftest.$ac_ext
12172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12175 cat >>confdefs.h <<_ACEOF
12176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12177 _ACEOF
12181 done
12185 for ac_header in ucontext.h
12187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12188 echo "$as_me:$LINENO: checking for $ac_header" >&5
12189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 else
12193 cat >conftest.$ac_ext <<_ACEOF
12194 #line $LINENO "configure"
12195 #include "confdefs.h"
12196 #include <signal.h>
12198 #include <$ac_header>
12199 _ACEOF
12200 rm -f conftest.$ac_objext
12201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12202 (eval $ac_compile) 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } &&
12206 { ac_try='test -s conftest.$ac_objext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12209 ac_status=$?
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 eval "$as_ac_Header=yes"
12213 else
12214 echo "$as_me: failed program was:" >&5
12215 cat conftest.$ac_ext >&5
12216 eval "$as_ac_Header=no"
12218 rm -f conftest.$ac_objext conftest.$ac_ext
12220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12223 cat >>confdefs.h <<_ACEOF
12224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12225 _ACEOF
12229 done
12233 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12234 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12235 if test "${ac_cv_c_const+set}" = set; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 else
12238 cat >conftest.$ac_ext <<_ACEOF
12239 #line $LINENO "configure"
12240 #include "confdefs.h"
12243 main ()
12245 /* FIXME: Include the comments suggested by Paul. */
12246 #ifndef __cplusplus
12247 /* Ultrix mips cc rejects this. */
12248 typedef int charset[2];
12249 const charset x;
12250 /* SunOS 4.1.1 cc rejects this. */
12251 char const *const *ccp;
12252 char **p;
12253 /* NEC SVR4.0.2 mips cc rejects this. */
12254 struct point {int x, y;};
12255 static struct point const zero = {0,0};
12256 /* AIX XL C 1.02.0.0 rejects this.
12257 It does not let you subtract one const X* pointer from another in
12258 an arm of an if-expression whose if-part is not a constant
12259 expression */
12260 const char *g = "string";
12261 ccp = &g + (g ? g-g : 0);
12262 /* HPUX 7.0 cc rejects these. */
12263 ++ccp;
12264 p = (char**) ccp;
12265 ccp = (char const *const *) p;
12266 { /* SCO 3.2v4 cc rejects this. */
12267 char *t;
12268 char const *s = 0 ? (char *) 0 : (char const *) 0;
12270 *t++ = 0;
12272 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12273 int x[] = {25, 17};
12274 const int *foo = &x[0];
12275 ++foo;
12277 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12278 typedef const int *iptr;
12279 iptr p = 0;
12280 ++p;
12282 { /* AIX XL C 1.02.0.0 rejects this saying
12283 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12284 struct s { int j; const int *ap[3]; };
12285 struct s *b; b->j = 5;
12287 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12288 const int foo = 10;
12290 #endif
12293 return 0;
12295 _ACEOF
12296 rm -f conftest.$ac_objext
12297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12298 (eval $ac_compile) 2>&5
12299 ac_status=$?
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); } &&
12302 { ac_try='test -s conftest.$ac_objext'
12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12305 ac_status=$?
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
12308 ac_cv_c_const=yes
12309 else
12310 echo "$as_me: failed program was:" >&5
12311 cat conftest.$ac_ext >&5
12312 ac_cv_c_const=no
12314 rm -f conftest.$ac_objext conftest.$ac_ext
12316 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12317 echo "${ECHO_T}$ac_cv_c_const" >&6
12318 if test $ac_cv_c_const = no; then
12320 cat >>confdefs.h <<\_ACEOF
12321 #define const
12322 _ACEOF
12326 echo "$as_me:$LINENO: checking for inline" >&5
12327 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12328 if test "${ac_cv_c_inline+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12330 else
12331 ac_cv_c_inline=no
12332 for ac_kw in inline __inline__ __inline; do
12333 cat >conftest.$ac_ext <<_ACEOF
12334 #line $LINENO "configure"
12335 #include "confdefs.h"
12336 #ifndef __cplusplus
12337 typedef int foo_t;
12338 static $ac_kw foo_t static_foo () {return 0; }
12339 $ac_kw foo_t foo () {return 0; }
12340 #endif
12342 _ACEOF
12343 rm -f conftest.$ac_objext
12344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12345 (eval $ac_compile) 2>&5
12346 ac_status=$?
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } &&
12349 { ac_try='test -s conftest.$ac_objext'
12350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351 (eval $ac_try) 2>&5
12352 ac_status=$?
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); }; }; then
12355 ac_cv_c_inline=$ac_kw; break
12356 else
12357 echo "$as_me: failed program was:" >&5
12358 cat conftest.$ac_ext >&5
12360 rm -f conftest.$ac_objext conftest.$ac_ext
12361 done
12364 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12365 echo "${ECHO_T}$ac_cv_c_inline" >&6
12366 case $ac_cv_c_inline in
12367 inline | yes) ;;
12369 cat >>confdefs.h <<\_ACEOF
12370 #define inline
12371 _ACEOF
12373 *) cat >>confdefs.h <<_ACEOF
12374 #define inline $ac_cv_c_inline
12375 _ACEOF
12377 esac
12379 echo "$as_me:$LINENO: checking for mode_t" >&5
12380 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12381 if test "${ac_cv_type_mode_t+set}" = set; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 else
12384 cat >conftest.$ac_ext <<_ACEOF
12385 #line $LINENO "configure"
12386 #include "confdefs.h"
12387 $ac_includes_default
12389 main ()
12391 if ((mode_t *) 0)
12392 return 0;
12393 if (sizeof (mode_t))
12394 return 0;
12396 return 0;
12398 _ACEOF
12399 rm -f conftest.$ac_objext
12400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12401 (eval $ac_compile) 2>&5
12402 ac_status=$?
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } &&
12405 { ac_try='test -s conftest.$ac_objext'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
12411 ac_cv_type_mode_t=yes
12412 else
12413 echo "$as_me: failed program was:" >&5
12414 cat conftest.$ac_ext >&5
12415 ac_cv_type_mode_t=no
12417 rm -f conftest.$ac_objext conftest.$ac_ext
12419 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12420 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12421 if test $ac_cv_type_mode_t = yes; then
12423 cat >>confdefs.h <<_ACEOF
12424 #define HAVE_MODE_T 1
12425 _ACEOF
12429 echo "$as_me:$LINENO: checking for off_t" >&5
12430 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12431 if test "${ac_cv_type_off_t+set}" = set; then
12432 echo $ECHO_N "(cached) $ECHO_C" >&6
12433 else
12434 cat >conftest.$ac_ext <<_ACEOF
12435 #line $LINENO "configure"
12436 #include "confdefs.h"
12437 $ac_includes_default
12439 main ()
12441 if ((off_t *) 0)
12442 return 0;
12443 if (sizeof (off_t))
12444 return 0;
12446 return 0;
12448 _ACEOF
12449 rm -f conftest.$ac_objext
12450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12451 (eval $ac_compile) 2>&5
12452 ac_status=$?
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } &&
12455 { ac_try='test -s conftest.$ac_objext'
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; }; then
12461 ac_cv_type_off_t=yes
12462 else
12463 echo "$as_me: failed program was:" >&5
12464 cat conftest.$ac_ext >&5
12465 ac_cv_type_off_t=no
12467 rm -f conftest.$ac_objext conftest.$ac_ext
12469 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12470 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12471 if test $ac_cv_type_off_t = yes; then
12473 cat >>confdefs.h <<_ACEOF
12474 #define HAVE_OFF_T 1
12475 _ACEOF
12479 echo "$as_me:$LINENO: checking for pid_t" >&5
12480 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12481 if test "${ac_cv_type_pid_t+set}" = set; then
12482 echo $ECHO_N "(cached) $ECHO_C" >&6
12483 else
12484 cat >conftest.$ac_ext <<_ACEOF
12485 #line $LINENO "configure"
12486 #include "confdefs.h"
12487 $ac_includes_default
12489 main ()
12491 if ((pid_t *) 0)
12492 return 0;
12493 if (sizeof (pid_t))
12494 return 0;
12496 return 0;
12498 _ACEOF
12499 rm -f conftest.$ac_objext
12500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12501 (eval $ac_compile) 2>&5
12502 ac_status=$?
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } &&
12505 { ac_try='test -s conftest.$ac_objext'
12506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12507 (eval $ac_try) 2>&5
12508 ac_status=$?
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; }; then
12511 ac_cv_type_pid_t=yes
12512 else
12513 echo "$as_me: failed program was:" >&5
12514 cat conftest.$ac_ext >&5
12515 ac_cv_type_pid_t=no
12517 rm -f conftest.$ac_objext conftest.$ac_ext
12519 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12520 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12521 if test $ac_cv_type_pid_t = yes; then
12523 cat >>confdefs.h <<_ACEOF
12524 #define HAVE_PID_T 1
12525 _ACEOF
12529 echo "$as_me:$LINENO: checking for size_t" >&5
12530 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12531 if test "${ac_cv_type_size_t+set}" = set; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12533 else
12534 cat >conftest.$ac_ext <<_ACEOF
12535 #line $LINENO "configure"
12536 #include "confdefs.h"
12537 $ac_includes_default
12539 main ()
12541 if ((size_t *) 0)
12542 return 0;
12543 if (sizeof (size_t))
12544 return 0;
12546 return 0;
12548 _ACEOF
12549 rm -f conftest.$ac_objext
12550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12551 (eval $ac_compile) 2>&5
12552 ac_status=$?
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } &&
12555 { ac_try='test -s conftest.$ac_objext'
12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5
12558 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
12561 ac_cv_type_size_t=yes
12562 else
12563 echo "$as_me: failed program was:" >&5
12564 cat conftest.$ac_ext >&5
12565 ac_cv_type_size_t=no
12567 rm -f conftest.$ac_objext conftest.$ac_ext
12569 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12570 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12571 if test $ac_cv_type_size_t = yes; then
12573 cat >>confdefs.h <<_ACEOF
12574 #define HAVE_SIZE_T 1
12575 _ACEOF
12579 echo "$as_me:$LINENO: checking for ssize_t" >&5
12580 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12581 if test "${ac_cv_type_ssize_t+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12583 else
12584 cat >conftest.$ac_ext <<_ACEOF
12585 #line $LINENO "configure"
12586 #include "confdefs.h"
12587 $ac_includes_default
12589 main ()
12591 if ((ssize_t *) 0)
12592 return 0;
12593 if (sizeof (ssize_t))
12594 return 0;
12596 return 0;
12598 _ACEOF
12599 rm -f conftest.$ac_objext
12600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12601 (eval $ac_compile) 2>&5
12602 ac_status=$?
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); } &&
12605 { ac_try='test -s conftest.$ac_objext'
12606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12607 (eval $ac_try) 2>&5
12608 ac_status=$?
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; }; then
12611 ac_cv_type_ssize_t=yes
12612 else
12613 echo "$as_me: failed program was:" >&5
12614 cat conftest.$ac_ext >&5
12615 ac_cv_type_ssize_t=no
12617 rm -f conftest.$ac_objext conftest.$ac_ext
12619 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12620 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12621 if test $ac_cv_type_ssize_t = yes; then
12623 cat >>confdefs.h <<_ACEOF
12624 #define HAVE_SSIZE_T 1
12625 _ACEOF
12630 echo "$as_me:$LINENO: checking for long long" >&5
12631 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12632 if test "${ac_cv_type_long_long+set}" = set; then
12633 echo $ECHO_N "(cached) $ECHO_C" >&6
12634 else
12635 cat >conftest.$ac_ext <<_ACEOF
12636 #line $LINENO "configure"
12637 #include "confdefs.h"
12638 $ac_includes_default
12640 main ()
12642 if ((long long *) 0)
12643 return 0;
12644 if (sizeof (long long))
12645 return 0;
12647 return 0;
12649 _ACEOF
12650 rm -f conftest.$ac_objext
12651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12652 (eval $ac_compile) 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } &&
12656 { ac_try='test -s conftest.$ac_objext'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12659 ac_status=$?
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 ac_cv_type_long_long=yes
12663 else
12664 echo "$as_me: failed program was:" >&5
12665 cat conftest.$ac_ext >&5
12666 ac_cv_type_long_long=no
12668 rm -f conftest.$ac_objext conftest.$ac_ext
12670 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12671 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12673 echo "$as_me:$LINENO: checking size of long long" >&5
12674 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12675 if test "${ac_cv_sizeof_long_long+set}" = set; then
12676 echo $ECHO_N "(cached) $ECHO_C" >&6
12677 else
12678 if test "$ac_cv_type_long_long" = yes; then
12679 # The cast to unsigned long works around a bug in the HP C Compiler
12680 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12681 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12682 # This bug is HP SR number 8606223364.
12683 if test "$cross_compiling" = yes; then
12684 # Depending upon the size, compute the lo and hi bounds.
12685 cat >conftest.$ac_ext <<_ACEOF
12686 #line $LINENO "configure"
12687 #include "confdefs.h"
12688 $ac_includes_default
12690 main ()
12692 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12693 test_array [0] = 0
12696 return 0;
12698 _ACEOF
12699 rm -f conftest.$ac_objext
12700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12701 (eval $ac_compile) 2>&5
12702 ac_status=$?
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } &&
12705 { ac_try='test -s conftest.$ac_objext'
12706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707 (eval $ac_try) 2>&5
12708 ac_status=$?
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; }; then
12711 ac_lo=0 ac_mid=0
12712 while :; do
12713 cat >conftest.$ac_ext <<_ACEOF
12714 #line $LINENO "configure"
12715 #include "confdefs.h"
12716 $ac_includes_default
12718 main ()
12720 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12721 test_array [0] = 0
12724 return 0;
12726 _ACEOF
12727 rm -f conftest.$ac_objext
12728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12729 (eval $ac_compile) 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } &&
12733 { ac_try='test -s conftest.$ac_objext'
12734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735 (eval $ac_try) 2>&5
12736 ac_status=$?
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); }; }; then
12739 ac_hi=$ac_mid; break
12740 else
12741 echo "$as_me: failed program was:" >&5
12742 cat conftest.$ac_ext >&5
12743 ac_lo=`expr $ac_mid + 1`
12744 if test $ac_lo -le $ac_mid; then
12745 ac_lo= ac_hi=
12746 break
12748 ac_mid=`expr 2 '*' $ac_mid + 1`
12750 rm -f conftest.$ac_objext conftest.$ac_ext
12751 done
12752 else
12753 echo "$as_me: failed program was:" >&5
12754 cat conftest.$ac_ext >&5
12755 cat >conftest.$ac_ext <<_ACEOF
12756 #line $LINENO "configure"
12757 #include "confdefs.h"
12758 $ac_includes_default
12760 main ()
12762 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12763 test_array [0] = 0
12766 return 0;
12768 _ACEOF
12769 rm -f conftest.$ac_objext
12770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12771 (eval $ac_compile) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
12775 { ac_try='test -s conftest.$ac_objext'
12776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12778 ac_status=$?
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; }; then
12781 ac_hi=-1 ac_mid=-1
12782 while :; do
12783 cat >conftest.$ac_ext <<_ACEOF
12784 #line $LINENO "configure"
12785 #include "confdefs.h"
12786 $ac_includes_default
12788 main ()
12790 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12791 test_array [0] = 0
12794 return 0;
12796 _ACEOF
12797 rm -f conftest.$ac_objext
12798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12799 (eval $ac_compile) 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); } &&
12803 { ac_try='test -s conftest.$ac_objext'
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; }; then
12809 ac_lo=$ac_mid; break
12810 else
12811 echo "$as_me: failed program was:" >&5
12812 cat conftest.$ac_ext >&5
12813 ac_hi=`expr '(' $ac_mid ')' - 1`
12814 if test $ac_mid -le $ac_hi; then
12815 ac_lo= ac_hi=
12816 break
12818 ac_mid=`expr 2 '*' $ac_mid`
12820 rm -f conftest.$ac_objext conftest.$ac_ext
12821 done
12822 else
12823 echo "$as_me: failed program was:" >&5
12824 cat conftest.$ac_ext >&5
12825 ac_lo= ac_hi=
12827 rm -f conftest.$ac_objext conftest.$ac_ext
12829 rm -f conftest.$ac_objext conftest.$ac_ext
12830 # Binary search between lo and hi bounds.
12831 while test "x$ac_lo" != "x$ac_hi"; do
12832 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12833 cat >conftest.$ac_ext <<_ACEOF
12834 #line $LINENO "configure"
12835 #include "confdefs.h"
12836 $ac_includes_default
12838 main ()
12840 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12841 test_array [0] = 0
12844 return 0;
12846 _ACEOF
12847 rm -f conftest.$ac_objext
12848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12849 (eval $ac_compile) 2>&5
12850 ac_status=$?
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); } &&
12853 { ac_try='test -s conftest.$ac_objext'
12854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855 (eval $ac_try) 2>&5
12856 ac_status=$?
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; }; then
12859 ac_hi=$ac_mid
12860 else
12861 echo "$as_me: failed program was:" >&5
12862 cat conftest.$ac_ext >&5
12863 ac_lo=`expr '(' $ac_mid ')' + 1`
12865 rm -f conftest.$ac_objext conftest.$ac_ext
12866 done
12867 case $ac_lo in
12868 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12869 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12870 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12871 { (exit 1); exit 1; }; } ;;
12872 esac
12873 else
12874 if test "$cross_compiling" = yes; then
12875 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12876 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12877 { (exit 1); exit 1; }; }
12878 else
12879 cat >conftest.$ac_ext <<_ACEOF
12880 #line $LINENO "configure"
12881 #include "confdefs.h"
12882 $ac_includes_default
12883 long longval () { return (long) (sizeof (long long)); }
12884 unsigned long ulongval () { return (long) (sizeof (long long)); }
12885 #include <stdio.h>
12886 #include <stdlib.h>
12888 main ()
12891 FILE *f = fopen ("conftest.val", "w");
12892 if (! f)
12893 exit (1);
12894 if (((long) (sizeof (long long))) < 0)
12896 long i = longval ();
12897 if (i != ((long) (sizeof (long long))))
12898 exit (1);
12899 fprintf (f, "%ld\n", i);
12901 else
12903 unsigned long i = ulongval ();
12904 if (i != ((long) (sizeof (long long))))
12905 exit (1);
12906 fprintf (f, "%lu\n", i);
12908 exit (ferror (f) || fclose (f) != 0);
12911 return 0;
12913 _ACEOF
12914 rm -f conftest$ac_exeext
12915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12916 (eval $ac_link) 2>&5
12917 ac_status=$?
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12925 ac_cv_sizeof_long_long=`cat conftest.val`
12926 else
12927 echo "$as_me: program exited with status $ac_status" >&5
12928 echo "$as_me: failed program was:" >&5
12929 cat conftest.$ac_ext >&5
12930 ( exit $ac_status )
12931 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12932 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12933 { (exit 1); exit 1; }; }
12935 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12938 rm -f conftest.val
12939 else
12940 ac_cv_sizeof_long_long=0
12943 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12944 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12945 cat >>confdefs.h <<_ACEOF
12946 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12947 _ACEOF
12951 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
12952 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
12953 if test "${wine_cv_linux_input_h+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 else
12956 cat >conftest.$ac_ext <<_ACEOF
12957 #line $LINENO "configure"
12958 #include "confdefs.h"
12960 #include <linux/input.h>
12963 main ()
12966 int foo = EVIOCGBIT(EV_ABS,42);
12967 int bar = BTN_PINKIE;
12968 int fortytwo = 42;
12971 return 0;
12973 _ACEOF
12974 rm -f conftest.$ac_objext
12975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12976 (eval $ac_compile) 2>&5
12977 ac_status=$?
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } &&
12980 { ac_try='test -s conftest.$ac_objext'
12981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982 (eval $ac_try) 2>&5
12983 ac_status=$?
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; }; then
12986 wine_cv_linux_input_h=yes
12987 else
12988 echo "$as_me: failed program was:" >&5
12989 cat conftest.$ac_ext >&5
12990 wine_cv_linux_input_h=no
12992 rm -f conftest.$ac_objext conftest.$ac_ext
12995 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
12996 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
12997 if test "$wine_cv_linux_input_h" = "yes"
12998 then
13000 cat >>confdefs.h <<\_ACEOF
13001 #define HAVE_CORRECT_LINUXINPUT_H 1
13002 _ACEOF
13007 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13008 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
13009 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13011 else
13012 cat >conftest.$ac_ext <<_ACEOF
13013 #line $LINENO "configure"
13014 #include "confdefs.h"
13016 #include <netdb.h>
13019 main ()
13022 char *name=NULL;
13023 struct hostent he;
13024 struct hostent *result;
13025 char *buf=NULL;
13026 int bufsize=0;
13027 int res,errnr;
13028 char *addr=NULL;
13029 int addrlen=0;
13030 int addrtype=0;
13031 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13032 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13035 return 0;
13037 _ACEOF
13038 rm -f conftest.$ac_objext
13039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13040 (eval $ac_compile) 2>&5
13041 ac_status=$?
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); } &&
13044 { ac_try='test -s conftest.$ac_objext'
13045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13046 (eval $ac_try) 2>&5
13047 ac_status=$?
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); }; }; then
13050 wine_cv_linux_gethostbyname_r_6=yes
13051 else
13052 echo "$as_me: failed program was:" >&5
13053 cat conftest.$ac_ext >&5
13054 wine_cv_linux_gethostbyname_r_6=no
13057 rm -f conftest.$ac_objext conftest.$ac_ext
13060 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
13061 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
13062 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13063 then
13065 cat >>confdefs.h <<\_ACEOF
13066 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
13067 _ACEOF
13071 if test "$ac_cv_header_linux_joystick_h" = "yes"
13072 then
13073 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13074 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
13075 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
13076 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 else
13078 cat >conftest.$ac_ext <<_ACEOF
13079 #line $LINENO "configure"
13080 #include "confdefs.h"
13082 #include <sys/ioctl.h>
13083 #include <linux/joystick.h>
13085 struct js_event blub;
13086 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13087 #error "no 2.2 header"
13088 #endif
13091 main ()
13093 /*empty*/
13095 return 0;
13097 _ACEOF
13098 rm -f conftest.$ac_objext
13099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13100 (eval $ac_compile) 2>&5
13101 ac_status=$?
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } &&
13104 { ac_try='test -s conftest.$ac_objext'
13105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106 (eval $ac_try) 2>&5
13107 ac_status=$?
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; }; then
13110 wine_cv_linux_joystick_22_api=yes
13111 else
13112 echo "$as_me: failed program was:" >&5
13113 cat conftest.$ac_ext >&5
13114 wine_cv_linux_joystick_22_api=no
13116 rm -f conftest.$ac_objext conftest.$ac_ext
13119 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
13120 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
13121 if test "$wine_cv_linux_joystick_22_api" = "yes"
13122 then
13124 cat >>confdefs.h <<\_ACEOF
13125 #define HAVE_LINUX_22_JOYSTICK_API 1
13126 _ACEOF
13132 if test "$ac_cv_header_sys_vfs_h" = "yes"
13133 then
13134 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
13135 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
13136 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
13137 echo $ECHO_N "(cached) $ECHO_C" >&6
13138 else
13139 cat >conftest.$ac_ext <<_ACEOF
13140 #line $LINENO "configure"
13141 #include "confdefs.h"
13143 #include <sys/types.h>
13144 #ifdef HAVE_SYS_PARAM_H
13145 # include <sys/param.h>
13146 #endif
13147 #include <sys/vfs.h>
13150 main ()
13153 struct statfs stfs;
13155 memset(&stfs,0,sizeof(stfs));
13158 return 0;
13160 _ACEOF
13161 rm -f conftest.$ac_objext
13162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13163 (eval $ac_compile) 2>&5
13164 ac_status=$?
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); } &&
13167 { ac_try='test -s conftest.$ac_objext'
13168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169 (eval $ac_try) 2>&5
13170 ac_status=$?
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; }; then
13173 wine_cv_sys_vfs_has_statfs=yes
13174 else
13175 echo "$as_me: failed program was:" >&5
13176 cat conftest.$ac_ext >&5
13177 wine_cv_sys_vfs_has_statfs=no
13180 rm -f conftest.$ac_objext conftest.$ac_ext
13183 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
13184 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
13185 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
13186 then
13188 cat >>confdefs.h <<\_ACEOF
13189 #define STATFS_DEFINED_BY_SYS_VFS 1
13190 _ACEOF
13195 if test "$ac_cv_header_sys_statfs_h" = "yes"
13196 then
13197 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
13198 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
13199 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13201 else
13202 cat >conftest.$ac_ext <<_ACEOF
13203 #line $LINENO "configure"
13204 #include "confdefs.h"
13206 #include <sys/types.h>
13207 #ifdef HAVE_SYS_PARAM_H
13208 # include <sys/param.h>
13209 #endif
13210 #include <sys/statfs.h>
13213 main ()
13216 struct statfs stfs;
13219 return 0;
13221 _ACEOF
13222 rm -f conftest.$ac_objext
13223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13224 (eval $ac_compile) 2>&5
13225 ac_status=$?
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); } &&
13228 { ac_try='test -s conftest.$ac_objext'
13229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13230 (eval $ac_try) 2>&5
13231 ac_status=$?
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); }; }; then
13234 wine_cv_sys_statfs_has_statfs=yes
13235 else
13236 echo "$as_me: failed program was:" >&5
13237 cat conftest.$ac_ext >&5
13238 wine_cv_sys_statfs_has_statfs=no
13241 rm -f conftest.$ac_objext conftest.$ac_ext
13244 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
13245 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
13246 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
13247 then
13249 cat >>confdefs.h <<\_ACEOF
13250 #define STATFS_DEFINED_BY_SYS_STATFS 1
13251 _ACEOF
13256 if test "$ac_cv_header_sys_mount_h" = "yes"
13257 then
13258 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
13259 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
13260 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13262 else
13263 cat >conftest.$ac_ext <<_ACEOF
13264 #line $LINENO "configure"
13265 #include "confdefs.h"
13267 #include <sys/types.h>
13268 #ifdef HAVE_SYS_PARAM_H
13269 # include <sys/param.h>
13270 #endif
13271 #include <sys/mount.h>
13274 main ()
13277 struct statfs stfs;
13280 return 0;
13282 _ACEOF
13283 rm -f conftest.$ac_objext
13284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13285 (eval $ac_compile) 2>&5
13286 ac_status=$?
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); } &&
13289 { ac_try='test -s conftest.$ac_objext'
13290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291 (eval $ac_try) 2>&5
13292 ac_status=$?
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); }; }; then
13295 wine_cv_sys_mount_has_statfs=yes
13296 else
13297 echo "$as_me: failed program was:" >&5
13298 cat conftest.$ac_ext >&5
13299 wine_cv_sys_mount_has_statfs=no
13302 rm -f conftest.$ac_objext conftest.$ac_ext
13305 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
13306 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
13307 if test "$wine_cv_sys_mount_has_statfs" = "yes"
13308 then
13310 cat >>confdefs.h <<\_ACEOF
13311 #define STATFS_DEFINED_BY_SYS_MOUNT 1
13312 _ACEOF
13318 echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
13319 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
13320 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
13321 echo $ECHO_N "(cached) $ECHO_C" >&6
13322 else
13323 cat >conftest.$ac_ext <<_ACEOF
13324 #line $LINENO "configure"
13325 #include "confdefs.h"
13326 #include <sys/types.h>
13327 #ifdef HAVE_SYS_PARAM_H
13328 # include <sys/param.h>
13329 #endif
13330 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
13331 # include <sys/mount.h>
13332 #else
13333 # ifdef STATFS_DEFINED_BY_SYS_VFS
13334 # include <sys/vfs.h>
13335 # else
13336 # ifdef STATFS_DEFINED_BY_SYS_STATFS
13337 # include <sys/statfs.h>
13338 # endif
13339 # endif
13340 #endif
13342 main ()
13344 struct statfs s; s.f_bfree = 0
13346 return 0;
13348 _ACEOF
13349 rm -f conftest.$ac_objext
13350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13351 (eval $ac_compile) 2>&5
13352 ac_status=$?
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); } &&
13355 { ac_try='test -s conftest.$ac_objext'
13356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357 (eval $ac_try) 2>&5
13358 ac_status=$?
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; }; then
13361 ac_cv_c_statfs_f_bfree="yes"
13362 else
13363 echo "$as_me: failed program was:" >&5
13364 cat conftest.$ac_ext >&5
13365 ac_cv_c_statfs_f_bfree="no"
13367 rm -f conftest.$ac_objext conftest.$ac_ext
13369 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
13370 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
13371 if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
13373 cat >>confdefs.h <<\_ACEOF
13374 #define STATFS_HAS_BFREE 1
13375 _ACEOF
13381 echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
13382 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
13383 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
13384 echo $ECHO_N "(cached) $ECHO_C" >&6
13385 else
13386 cat >conftest.$ac_ext <<_ACEOF
13387 #line $LINENO "configure"
13388 #include "confdefs.h"
13389 #include <sys/types.h>
13390 #ifdef HAVE_SYS_PARAM_H
13391 # include <sys/param.h>
13392 #endif
13393 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
13394 # include <sys/mount.h>
13395 #else
13396 # ifdef STATFS_DEFINED_BY_SYS_VFS
13397 # include <sys/vfs.h>
13398 # else
13399 # ifdef STATFS_DEFINED_BY_SYS_STATFS
13400 # include <sys/statfs.h>
13401 # endif
13402 # endif
13403 #endif
13405 main ()
13407 struct statfs s; s.f_bavail = 0
13409 return 0;
13411 _ACEOF
13412 rm -f conftest.$ac_objext
13413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13414 (eval $ac_compile) 2>&5
13415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } &&
13418 { ac_try='test -s conftest.$ac_objext'
13419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420 (eval $ac_try) 2>&5
13421 ac_status=$?
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }; }; then
13424 ac_cv_c_statfs_f_bavail="yes"
13425 else
13426 echo "$as_me: failed program was:" >&5
13427 cat conftest.$ac_ext >&5
13428 ac_cv_c_statfs_f_bavail="no"
13430 rm -f conftest.$ac_objext conftest.$ac_ext
13432 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
13433 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
13434 if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
13436 cat >>confdefs.h <<\_ACEOF
13437 #define STATFS_HAS_BAVAIL 1
13438 _ACEOF
13444 echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
13445 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
13446 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
13447 echo $ECHO_N "(cached) $ECHO_C" >&6
13448 else
13449 cat >conftest.$ac_ext <<_ACEOF
13450 #line $LINENO "configure"
13451 #include "confdefs.h"
13452 #include <sys/types.h>
13453 #ifdef HAVE_SYS_SOCKET_H
13454 # include <sys/socket.h>
13455 #endif
13457 main ()
13459 struct msghdr s; s.msg_accrights = 0
13461 return 0;
13463 _ACEOF
13464 rm -f conftest.$ac_objext
13465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13466 (eval $ac_compile) 2>&5
13467 ac_status=$?
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } &&
13470 { ac_try='test -s conftest.$ac_objext'
13471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13472 (eval $ac_try) 2>&5
13473 ac_status=$?
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; }; then
13476 ac_cv_c_msghdr_msg_accrights="yes"
13477 else
13478 echo "$as_me: failed program was:" >&5
13479 cat conftest.$ac_ext >&5
13480 ac_cv_c_msghdr_msg_accrights="no"
13482 rm -f conftest.$ac_objext conftest.$ac_ext
13484 echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
13485 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
13486 if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
13488 cat >>confdefs.h <<\_ACEOF
13489 #define HAVE_MSGHDR_ACCRIGHTS 1
13490 _ACEOF
13496 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
13497 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
13498 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
13499 echo $ECHO_N "(cached) $ECHO_C" >&6
13500 else
13501 cat >conftest.$ac_ext <<_ACEOF
13502 #line $LINENO "configure"
13503 #include "confdefs.h"
13504 #include <sys/types.h>
13505 #ifdef HAVE_SYS_SOCKET_H
13506 # include <sys/socket.h>
13507 #endif
13509 main ()
13511 struct sockaddr s; s.sa_len = 0
13513 return 0;
13515 _ACEOF
13516 rm -f conftest.$ac_objext
13517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13518 (eval $ac_compile) 2>&5
13519 ac_status=$?
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); } &&
13522 { ac_try='test -s conftest.$ac_objext'
13523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524 (eval $ac_try) 2>&5
13525 ac_status=$?
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; }; then
13528 ac_cv_c_sockaddr_sa_len="yes"
13529 else
13530 echo "$as_me: failed program was:" >&5
13531 cat conftest.$ac_ext >&5
13532 ac_cv_c_sockaddr_sa_len="no"
13534 rm -f conftest.$ac_objext conftest.$ac_ext
13536 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
13537 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
13538 if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
13540 cat >>confdefs.h <<\_ACEOF
13541 #define HAVE_SOCKADDR_SA_LEN 1
13542 _ACEOF
13548 echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
13549 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
13550 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
13551 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 else
13553 cat >conftest.$ac_ext <<_ACEOF
13554 #line $LINENO "configure"
13555 #include "confdefs.h"
13556 #include <sys/types.h>
13557 #ifdef HAVE_SYS_SOCKET_H
13558 # include <sys/socket.h>
13559 #endif
13560 #ifdef HAVE_SYS_UN_H
13561 # include <sys/un.h>
13562 #endif
13564 main ()
13566 struct sockaddr_un s; s.sun_len = 0
13568 return 0;
13570 _ACEOF
13571 rm -f conftest.$ac_objext
13572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13573 (eval $ac_compile) 2>&5
13574 ac_status=$?
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
13577 { ac_try='test -s conftest.$ac_objext'
13578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13580 ac_status=$?
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; }; then
13583 ac_cv_c_sockaddr_un_sun_len="yes"
13584 else
13585 echo "$as_me: failed program was:" >&5
13586 cat conftest.$ac_ext >&5
13587 ac_cv_c_sockaddr_un_sun_len="no"
13589 rm -f conftest.$ac_objext conftest.$ac_ext
13591 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
13592 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
13593 if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
13595 cat >>confdefs.h <<\_ACEOF
13596 #define HAVE_SOCKADDR_SUN_LEN 1
13597 _ACEOF
13604 case $host_cpu in
13605 *i345678986* )
13606 echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
13607 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
13608 if test "${ac_cv_cpp_def_i386+set}" = set; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13610 else
13611 cat >conftest.$ac_ext <<_ACEOF
13612 #line $LINENO "configure"
13613 #include "confdefs.h"
13614 #ifndef __i386__
13616 #endif
13617 _ACEOF
13618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13619 $EGREP "yes" >/dev/null 2>&1; then
13620 ac_cv_cpp_def_i386="yes"
13621 else
13622 ac_cv_cpp_def_i386="no"
13624 rm -f conftest*
13627 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5
13628 echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
13630 esac
13631 if test "$ac_cv_cpp_def_i386" = "yes"
13632 then
13633 CFLAGS="$CFLAGS -D__i386__"
13634 LINTFLAGS="$LINTFLAGS -D__i386__"
13638 case $host_cpu in
13639 *sparc* )
13640 echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
13641 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
13642 if test "${ac_cv_cpp_def_sparc+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13644 else
13645 cat >conftest.$ac_ext <<_ACEOF
13646 #line $LINENO "configure"
13647 #include "confdefs.h"
13648 #ifndef __sparc__
13650 #endif
13651 _ACEOF
13652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13653 $EGREP "yes" >/dev/null 2>&1; then
13654 ac_cv_cpp_def_sparc="yes"
13655 else
13656 ac_cv_cpp_def_sparc="no"
13658 rm -f conftest*
13661 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sparc" >&5
13662 echo "${ECHO_T}$ac_cv_cpp_def_sparc" >&6
13664 esac
13665 if test "$ac_cv_cpp_def_sparc" = "yes"
13666 then
13667 CFLAGS="$CFLAGS -D__sparc__"
13668 LINTFLAGS="$LINTFLAGS -D__sparc__"
13672 case $host_vendor in
13673 *sun* )
13674 echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
13675 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
13676 if test "${ac_cv_cpp_def_sun+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13678 else
13679 cat >conftest.$ac_ext <<_ACEOF
13680 #line $LINENO "configure"
13681 #include "confdefs.h"
13682 #ifndef __sun__
13684 #endif
13685 _ACEOF
13686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13687 $EGREP "yes" >/dev/null 2>&1; then
13688 ac_cv_cpp_def_sun="yes"
13689 else
13690 ac_cv_cpp_def_sun="no"
13692 rm -f conftest*
13695 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sun" >&5
13696 echo "${ECHO_T}$ac_cv_cpp_def_sun" >&6
13698 esac
13699 if test "$ac_cv_cpp_def_sun" = "yes"
13700 then
13701 CFLAGS="$CFLAGS -D__sun__"
13702 LINTFLAGS="$LINTFLAGS -D__sun__"
13709 ac_config_commands="$ac_config_commands controls"
13711 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
13713 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
13715 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
13717 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
13719 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
13721 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
13723 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
13725 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
13727 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
13729 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
13731 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
13733 ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
13735 ac_config_commands="$ac_config_commands dlls/kernel/messages"
13737 ac_config_commands="$ac_config_commands dlls/user/dde"
13739 ac_config_commands="$ac_config_commands dlls/user/resources"
13741 ac_config_commands="$ac_config_commands dlls/wineps/data"
13743 ac_config_commands="$ac_config_commands files"
13745 ac_config_commands="$ac_config_commands graphics"
13747 ac_config_commands="$ac_config_commands graphics/x11drv"
13749 ac_config_commands="$ac_config_commands if1632"
13751 ac_config_commands="$ac_config_commands include/wine"
13753 ac_config_commands="$ac_config_commands loader"
13755 ac_config_commands="$ac_config_commands loader/ne"
13757 ac_config_commands="$ac_config_commands memory"
13759 ac_config_commands="$ac_config_commands misc"
13761 ac_config_commands="$ac_config_commands msdos"
13763 ac_config_commands="$ac_config_commands objects"
13765 ac_config_commands="$ac_config_commands programs/regapi/tests"
13767 ac_config_commands="$ac_config_commands programs/regedit/tests"
13769 ac_config_commands="$ac_config_commands relay32"
13771 ac_config_commands="$ac_config_commands scheduler"
13773 ac_config_commands="$ac_config_commands win32"
13775 ac_config_commands="$ac_config_commands windows"
13778 MAKE_RULES=Make.rules
13781 MAKE_DLL_RULES=dlls/Makedll.rules
13784 MAKE_TEST_RULES=dlls/Maketest.rules
13787 MAKE_PROG_RULES=programs/Makeprog.rules
13790 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/d3d8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile library/Makefile miscemu/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/rundll32/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wpp/Makefile tools/wrc/Makefile unicode/Makefile"
13793 cat >confcache <<\_ACEOF
13794 # This file is a shell script that caches the results of configure
13795 # tests run on this system so they can be shared between configure
13796 # scripts and configure runs, see configure's option --config-cache.
13797 # It is not useful on other systems. If it contains results you don't
13798 # want to keep, you may remove or edit it.
13800 # config.status only pays attention to the cache file if you give it
13801 # the --recheck option to rerun configure.
13803 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13804 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13805 # following values.
13807 _ACEOF
13809 # The following way of writing the cache mishandles newlines in values,
13810 # but we know of no workaround that is simple, portable, and efficient.
13811 # So, don't put newlines in cache variables' values.
13812 # Ultrix sh set writes to stderr and can't be redirected directly,
13813 # and sets the high bit in the cache file unless we assign to the vars.
13815 (set) 2>&1 |
13816 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13817 *ac_space=\ *)
13818 # `set' does not quote correctly, so add quotes (double-quote
13819 # substitution turns \\\\ into \\, and sed turns \\ into \).
13820 sed -n \
13821 "s/'/'\\\\''/g;
13822 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13825 # `set' quotes correctly as required by POSIX, so do not add quotes.
13826 sed -n \
13827 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13829 esac;
13831 sed '
13832 t clear
13833 : clear
13834 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13835 t end
13836 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13837 : end' >>confcache
13838 if cmp -s $cache_file confcache; then :; else
13839 if test -w $cache_file; then
13840 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13841 cat confcache >$cache_file
13842 else
13843 echo "not updating unwritable cache $cache_file"
13846 rm -f confcache
13848 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13849 # Let make expand exec_prefix.
13850 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13852 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13853 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13854 # trailing colons and then remove the whole line if VPATH becomes empty
13855 # (actually we leave an empty line to preserve line numbers).
13856 if test "x$srcdir" = x.; then
13857 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13858 s/:*\$(srcdir):*/:/;
13859 s/:*\${srcdir}:*/:/;
13860 s/:*@srcdir@:*/:/;
13861 s/^\([^=]*=[ ]*\):*/\1/;
13862 s/:*$//;
13863 s/^[^=]*=[ ]*$//;
13867 DEFS=-DHAVE_CONFIG_H
13869 ac_libobjs=
13870 ac_ltlibobjs=
13871 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13872 # 1. Remove the extension, and $U if already installed.
13873 ac_i=`echo "$ac_i" |
13874 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13875 # 2. Add them.
13876 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13877 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13878 done
13879 LIBOBJS=$ac_libobjs
13881 LTLIBOBJS=$ac_ltlibobjs
13885 : ${CONFIG_STATUS=./config.status}
13886 ac_clean_files_save=$ac_clean_files
13887 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13888 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13889 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13890 cat >$CONFIG_STATUS <<_ACEOF
13891 #! $SHELL
13892 # Generated by $as_me.
13893 # Run this file to recreate the current configuration.
13894 # Compiler output produced by configure, useful for debugging
13895 # configure, is in config.log if it exists.
13897 debug=false
13898 SHELL=\${CONFIG_SHELL-$SHELL}
13899 _ACEOF
13901 cat >>$CONFIG_STATUS <<\_ACEOF
13902 ## --------------------- ##
13903 ## M4sh Initialization. ##
13904 ## --------------------- ##
13906 # Be Bourne compatible
13907 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13908 emulate sh
13909 NULLCMD=:
13910 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13911 # is contrary to our usage. Disable this feature.
13912 alias -g '${1+"$@"}'='"$@"'
13913 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13914 set -o posix
13917 # Support unset when possible.
13918 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
13919 as_unset=unset
13920 else
13921 as_unset=false
13925 # Work around bugs in pre-3.0 UWIN ksh.
13926 $as_unset ENV MAIL MAILPATH
13927 PS1='$ '
13928 PS2='> '
13929 PS4='+ '
13931 # NLS nuisances.
13932 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
13934 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
13935 eval $as_var=C; export $as_var
13936 else
13937 $as_unset $as_var
13939 done
13941 # Required to use basename.
13942 if expr a : '\(a\)' >/dev/null 2>&1; then
13943 as_expr=expr
13944 else
13945 as_expr=false
13948 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13949 as_basename=basename
13950 else
13951 as_basename=false
13955 # Name of the executable.
13956 as_me=`$as_basename "$0" ||
13957 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13958 X"$0" : 'X\(//\)$' \| \
13959 X"$0" : 'X\(/\)$' \| \
13960 . : '\(.\)' 2>/dev/null ||
13961 echo X/"$0" |
13962 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13963 /^X\/\(\/\/\)$/{ s//\1/; q; }
13964 /^X\/\(\/\).*/{ s//\1/; q; }
13965 s/.*/./; q'`
13968 # PATH needs CR, and LINENO needs CR and PATH.
13969 # Avoid depending upon Character Ranges.
13970 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13971 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13972 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13973 as_cr_digits='0123456789'
13974 as_cr_alnum=$as_cr_Letters$as_cr_digits
13976 # The user is always right.
13977 if test "${PATH_SEPARATOR+set}" != set; then
13978 echo "#! /bin/sh" >conftest.sh
13979 echo "exit 0" >>conftest.sh
13980 chmod +x conftest.sh
13981 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
13982 PATH_SEPARATOR=';'
13983 else
13984 PATH_SEPARATOR=:
13986 rm -f conftest.sh
13990 as_lineno_1=$LINENO
13991 as_lineno_2=$LINENO
13992 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13993 test "x$as_lineno_1" != "x$as_lineno_2" &&
13994 test "x$as_lineno_3" = "x$as_lineno_2" || {
13995 # Find who we are. Look in the path if we contain no path at all
13996 # relative or not.
13997 case $0 in
13998 *[\\/]* ) as_myself=$0 ;;
13999 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14000 for as_dir in $PATH
14002 IFS=$as_save_IFS
14003 test -z "$as_dir" && as_dir=.
14004 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14005 done
14008 esac
14009 # We did not find ourselves, most probably we were run as `sh COMMAND'
14010 # in which case we are not to be found in the path.
14011 if test "x$as_myself" = x; then
14012 as_myself=$0
14014 if test ! -f "$as_myself"; then
14015 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14016 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14017 { (exit 1); exit 1; }; }
14019 case $CONFIG_SHELL in
14021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14022 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14024 IFS=$as_save_IFS
14025 test -z "$as_dir" && as_dir=.
14026 for as_base in sh bash ksh sh5; do
14027 case $as_dir in
14029 if ("$as_dir/$as_base" -c '
14030 as_lineno_1=$LINENO
14031 as_lineno_2=$LINENO
14032 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14033 test "x$as_lineno_1" != "x$as_lineno_2" &&
14034 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14035 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14036 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14037 CONFIG_SHELL=$as_dir/$as_base
14038 export CONFIG_SHELL
14039 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14040 fi;;
14041 esac
14042 done
14043 done
14045 esac
14047 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14048 # uniformly replaced by the line number. The first 'sed' inserts a
14049 # line-number line before each line; the second 'sed' does the real
14050 # work. The second script uses 'N' to pair each line-number line
14051 # with the numbered line, and appends trailing '-' during
14052 # substitution so that $LINENO is not a special case at line end.
14053 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14054 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14055 sed '=' <$as_myself |
14056 sed '
14058 s,$,-,
14059 : loop
14060 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14061 t loop
14062 s,-$,,
14063 s,^['$as_cr_digits']*\n,,
14064 ' >$as_me.lineno &&
14065 chmod +x $as_me.lineno ||
14066 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14067 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14068 { (exit 1); exit 1; }; }
14070 # Don't try to exec as it changes $[0], causing all sort of problems
14071 # (the dirname of $[0] is not the place where we might find the
14072 # original and so on. Autoconf is especially sensible to this).
14073 . ./$as_me.lineno
14074 # Exit status is that of the last command.
14075 exit
14079 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14080 *c*,-n*) ECHO_N= ECHO_C='
14081 ' ECHO_T=' ' ;;
14082 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14083 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14084 esac
14086 if expr a : '\(a\)' >/dev/null 2>&1; then
14087 as_expr=expr
14088 else
14089 as_expr=false
14092 rm -f conf$$ conf$$.exe conf$$.file
14093 echo >conf$$.file
14094 if ln -s conf$$.file conf$$ 2>/dev/null; then
14095 # We could just check for DJGPP; but this test a) works b) is more generic
14096 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14097 if test -f conf$$.exe; then
14098 # Don't use ln at all; we don't have any links
14099 as_ln_s='cp -p'
14100 else
14101 as_ln_s='ln -s'
14103 elif ln conf$$.file conf$$ 2>/dev/null; then
14104 as_ln_s=ln
14105 else
14106 as_ln_s='cp -p'
14108 rm -f conf$$ conf$$.exe conf$$.file
14110 if mkdir -p . 2>/dev/null; then
14111 as_mkdir_p=:
14112 else
14113 as_mkdir_p=false
14116 as_executable_p="test -f"
14118 # Sed expression to map a string onto a valid CPP name.
14119 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14121 # Sed expression to map a string onto a valid variable name.
14122 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14125 # IFS
14126 # We need space, tab and new line, in precisely that order.
14127 as_nl='
14129 IFS=" $as_nl"
14131 # CDPATH.
14132 $as_unset CDPATH
14134 exec 6>&1
14136 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14137 # report actual input values of CONFIG_FILES etc. instead of their
14138 # values after options handling. Logging --version etc. is OK.
14139 exec 5>>config.log
14141 echo
14142 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14143 ## Running $as_me. ##
14144 _ASBOX
14145 } >&5
14146 cat >&5 <<_CSEOF
14148 This file was extended by Wine $as_me 20021031, which was
14149 generated by GNU Autoconf 2.54. Invocation command line was
14151 CONFIG_FILES = $CONFIG_FILES
14152 CONFIG_HEADERS = $CONFIG_HEADERS
14153 CONFIG_LINKS = $CONFIG_LINKS
14154 CONFIG_COMMANDS = $CONFIG_COMMANDS
14155 $ $0 $@
14157 _CSEOF
14158 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14159 echo >&5
14160 _ACEOF
14162 # Files that config.status was made for.
14163 if test -n "$ac_config_files"; then
14164 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14167 if test -n "$ac_config_headers"; then
14168 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14171 if test -n "$ac_config_links"; then
14172 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14175 if test -n "$ac_config_commands"; then
14176 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14179 cat >>$CONFIG_STATUS <<\_ACEOF
14181 ac_cs_usage="\
14182 \`$as_me' instantiates files from templates according to the
14183 current configuration.
14185 Usage: $0 [OPTIONS] [FILE]...
14187 -h, --help print this help, then exit
14188 -V, --version print version number, then exit
14189 -d, --debug don't remove temporary files
14190 --recheck update $as_me by reconfiguring in the same conditions
14191 --file=FILE[:TEMPLATE]
14192 instantiate the configuration file FILE
14193 --header=FILE[:TEMPLATE]
14194 instantiate the configuration header FILE
14196 Configuration files:
14197 $config_files
14199 Configuration headers:
14200 $config_headers
14202 Configuration commands:
14203 $config_commands
14205 Report bugs to <bug-autoconf@gnu.org>."
14206 _ACEOF
14208 cat >>$CONFIG_STATUS <<_ACEOF
14209 ac_cs_version="\\
14210 Wine config.status 20021031
14211 configured by $0, generated by GNU Autoconf 2.54,
14212 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14214 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14215 Free Software Foundation, Inc.
14216 This config.status script is free software; the Free Software Foundation
14217 gives unlimited permission to copy, distribute and modify it."
14218 srcdir=$srcdir
14219 INSTALL="$INSTALL"
14220 _ACEOF
14222 cat >>$CONFIG_STATUS <<\_ACEOF
14223 # If no file are specified by the user, then we need to provide default
14224 # value. By we need to know if files were specified by the user.
14225 ac_need_defaults=:
14226 while test $# != 0
14228 case $1 in
14229 --*=*)
14230 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14231 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14232 ac_shift=:
14235 ac_option=$1
14236 ac_optarg=$2
14237 ac_shift=shift
14239 *) # This is not an option, so the user has probably given explicit
14240 # arguments.
14241 ac_option=$1
14242 ac_need_defaults=false;;
14243 esac
14245 case $ac_option in
14246 # Handling of the options.
14247 _ACEOF
14248 cat >>$CONFIG_STATUS <<_ACEOF
14249 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14250 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14251 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
14252 _ACEOF
14253 cat >>$CONFIG_STATUS <<\_ACEOF
14254 --version | --vers* | -V )
14255 echo "$ac_cs_version"; exit 0 ;;
14256 --he | --h)
14257 # Conflict between --help and --header
14258 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14259 Try \`$0 --help' for more information." >&5
14260 echo "$as_me: error: ambiguous option: $1
14261 Try \`$0 --help' for more information." >&2;}
14262 { (exit 1); exit 1; }; };;
14263 --help | --hel | -h )
14264 echo "$ac_cs_usage"; exit 0 ;;
14265 --debug | --d* | -d )
14266 debug=: ;;
14267 --file | --fil | --fi | --f )
14268 $ac_shift
14269 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14270 ac_need_defaults=false;;
14271 --header | --heade | --head | --hea )
14272 $ac_shift
14273 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14274 ac_need_defaults=false;;
14276 # This is an error.
14277 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14278 Try \`$0 --help' for more information." >&5
14279 echo "$as_me: error: unrecognized option: $1
14280 Try \`$0 --help' for more information." >&2;}
14281 { (exit 1); exit 1; }; } ;;
14283 *) ac_config_targets="$ac_config_targets $1" ;;
14285 esac
14286 shift
14287 done
14289 _ACEOF
14295 cat >>$CONFIG_STATUS <<\_ACEOF
14296 for ac_config_target in $ac_config_targets
14298 case "$ac_config_target" in
14299 # Handling of arguments.
14300 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
14301 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
14302 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
14303 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
14304 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14305 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
14306 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
14307 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
14308 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
14309 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
14310 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
14311 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
14312 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
14313 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
14314 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
14315 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
14316 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
14317 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
14318 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
14319 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
14320 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
14321 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
14322 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
14323 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
14324 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
14325 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
14326 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
14327 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
14328 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
14329 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
14330 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
14331 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
14332 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
14333 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
14334 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
14335 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
14336 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
14337 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
14338 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
14339 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
14340 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
14341 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
14342 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
14343 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
14344 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
14345 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
14346 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
14347 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
14348 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
14349 "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
14350 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
14351 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
14352 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
14353 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
14354 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
14355 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
14356 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
14357 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
14358 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
14359 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
14360 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
14361 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
14362 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
14363 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
14364 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
14365 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
14366 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
14367 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
14368 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
14369 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
14370 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
14371 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
14372 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
14373 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
14374 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
14375 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
14376 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
14377 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
14378 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
14379 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
14380 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
14381 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
14382 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
14383 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
14384 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
14385 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
14386 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
14387 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
14388 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
14389 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
14390 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
14391 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
14392 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
14393 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
14394 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
14395 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
14396 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
14397 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
14398 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
14399 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
14400 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
14401 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
14402 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
14403 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
14404 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
14405 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
14406 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
14407 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
14408 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
14409 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
14410 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
14411 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
14412 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
14413 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
14414 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
14415 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
14416 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
14417 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
14418 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
14419 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14420 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
14421 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
14422 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
14423 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
14424 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
14425 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
14426 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
14427 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
14428 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
14429 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
14430 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
14431 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
14432 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
14433 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
14434 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
14435 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
14436 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
14437 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
14438 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
14439 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
14440 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
14441 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
14442 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
14443 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
14444 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
14445 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
14446 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
14447 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
14448 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14449 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
14450 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
14451 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
14452 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
14453 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
14454 "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
14455 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
14456 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
14457 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
14458 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
14459 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
14460 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
14461 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
14462 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
14463 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
14464 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
14465 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
14466 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
14467 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
14468 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
14469 "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
14470 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
14471 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
14472 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
14473 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
14474 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
14475 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
14476 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
14477 "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
14478 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
14479 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
14480 "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
14481 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
14482 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
14483 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
14484 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
14485 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
14486 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
14487 "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
14488 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
14489 "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
14490 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
14491 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
14492 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14493 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14494 { (exit 1); exit 1; }; };;
14495 esac
14496 done
14498 # If the user did not use the arguments to specify the items to instantiate,
14499 # then the envvar interface is used. Set only those that are not.
14500 # We use the long form for the default assignment because of an extremely
14501 # bizarre bug on SunOS 4.1.3.
14502 if $ac_need_defaults; then
14503 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14504 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14505 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14508 # Create a temporary directory, and hook for its removal unless debugging.
14509 $debug ||
14511 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14512 trap '{ (exit 1); exit 1; }' 1 2 13 15
14515 # Create a (secure) tmp directory for tmp files.
14516 : ${TMPDIR=/tmp}
14518 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14519 test -n "$tmp" && test -d "$tmp"
14520 } ||
14522 tmp=$TMPDIR/cs$$-$RANDOM
14523 (umask 077 && mkdir $tmp)
14524 } ||
14526 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14527 { (exit 1); exit 1; }
14530 _ACEOF
14532 cat >>$CONFIG_STATUS <<_ACEOF
14535 # CONFIG_FILES section.
14538 # No need to generate the scripts if there are no CONFIG_FILES.
14539 # This happens for instance when ./config.status config.h
14540 if test -n "\$CONFIG_FILES"; then
14541 # Protect against being on the right side of a sed subst in config.status.
14542 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14543 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14544 s,@SHELL@,$SHELL,;t t
14545 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14546 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14547 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14548 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14549 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14550 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14551 s,@exec_prefix@,$exec_prefix,;t t
14552 s,@prefix@,$prefix,;t t
14553 s,@program_transform_name@,$program_transform_name,;t t
14554 s,@bindir@,$bindir,;t t
14555 s,@sbindir@,$sbindir,;t t
14556 s,@libexecdir@,$libexecdir,;t t
14557 s,@datadir@,$datadir,;t t
14558 s,@sysconfdir@,$sysconfdir,;t t
14559 s,@sharedstatedir@,$sharedstatedir,;t t
14560 s,@localstatedir@,$localstatedir,;t t
14561 s,@libdir@,$libdir,;t t
14562 s,@includedir@,$includedir,;t t
14563 s,@oldincludedir@,$oldincludedir,;t t
14564 s,@infodir@,$infodir,;t t
14565 s,@mandir@,$mandir,;t t
14566 s,@build_alias@,$build_alias,;t t
14567 s,@host_alias@,$host_alias,;t t
14568 s,@target_alias@,$target_alias,;t t
14569 s,@DEFS@,$DEFS,;t t
14570 s,@ECHO_C@,$ECHO_C,;t t
14571 s,@ECHO_N@,$ECHO_N,;t t
14572 s,@ECHO_T@,$ECHO_T,;t t
14573 s,@LIBS@,$LIBS,;t t
14574 s,@LIBEXT@,$LIBEXT,;t t
14575 s,@OPTIONS@,$OPTIONS,;t t
14576 s,@WIN16_FILES@,$WIN16_FILES,;t t
14577 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
14578 s,@build@,$build,;t t
14579 s,@build_cpu@,$build_cpu,;t t
14580 s,@build_vendor@,$build_vendor,;t t
14581 s,@build_os@,$build_os,;t t
14582 s,@host@,$host,;t t
14583 s,@host_cpu@,$host_cpu,;t t
14584 s,@host_vendor@,$host_vendor,;t t
14585 s,@host_os@,$host_os,;t t
14586 s,@SET_MAKE@,$SET_MAKE,;t t
14587 s,@CC@,$CC,;t t
14588 s,@CFLAGS@,$CFLAGS,;t t
14589 s,@LDFLAGS@,$LDFLAGS,;t t
14590 s,@CPPFLAGS@,$CPPFLAGS,;t t
14591 s,@ac_ct_CC@,$ac_ct_CC,;t t
14592 s,@EXEEXT@,$EXEEXT,;t t
14593 s,@OBJEXT@,$OBJEXT,;t t
14594 s,@CPP@,$CPP,;t t
14595 s,@TOOLSDIR@,$TOOLSDIR,;t t
14596 s,@X_CFLAGS@,$X_CFLAGS,;t t
14597 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
14598 s,@X_LIBS@,$X_LIBS,;t t
14599 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
14600 s,@YACC@,$YACC,;t t
14601 s,@LEX@,$LEX,;t t
14602 s,@LEXLIB@,$LEXLIB,;t t
14603 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14604 s,@XYACC@,$XYACC,;t t
14605 s,@XLEX@,$XLEX,;t t
14606 s,@LD@,$LD,;t t
14607 s,@ac_ct_LD@,$ac_ct_LD,;t t
14608 s,@AR@,$AR,;t t
14609 s,@ac_ct_AR@,$ac_ct_AR,;t t
14610 s,@RANLIB@,$RANLIB,;t t
14611 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14612 s,@STRIP@,$STRIP,;t t
14613 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14614 s,@WINDRES@,$WINDRES,;t t
14615 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
14616 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14617 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14618 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14619 s,@LN_S@,$LN_S,;t t
14620 s,@LN@,$LN,;t t
14621 s,@C2MAN@,$C2MAN,;t t
14622 s,@LDCONFIG@,$LDCONFIG,;t t
14623 s,@LINT@,$LINT,;t t
14624 s,@LINTFLAGS@,$LINTFLAGS,;t t
14625 s,@DB2HTML@,$DB2HTML,;t t
14626 s,@DB2PDF@,$DB2PDF,;t t
14627 s,@DB2PS@,$DB2PS,;t t
14628 s,@JPEGLIB@,$JPEGLIB,;t t
14629 s,@EGREP@,$EGREP,;t t
14630 s,@XLIB@,$XLIB,;t t
14631 s,@XFILES@,$XFILES,;t t
14632 s,@OPENGLFILES@,$OPENGLFILES,;t t
14633 s,@GLU32FILES@,$GLU32FILES,;t t
14634 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
14635 s,@NASLIBS@,$NASLIBS,;t t
14636 s,@CURSESLIBS@,$CURSESLIBS,;t t
14637 s,@sane_devel@,$sane_devel,;t t
14638 s,@SANELIBS@,$SANELIBS,;t t
14639 s,@SANEINCL@,$SANEINCL,;t t
14640 s,@ft_devel@,$ft_devel,;t t
14641 s,@ft_devel2@,$ft_devel2,;t t
14642 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
14643 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
14644 s,@ARTSLIBS@,$ARTSLIBS,;t t
14645 s,@ARTSINCL@,$ARTSINCL,;t t
14646 s,@ALSALIBS@,$ALSALIBS,;t t
14647 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
14648 s,@DLLEXT@,$DLLEXT,;t t
14649 s,@DLLFLAGS@,$DLLFLAGS,;t t
14650 s,@DLLIBS@,$DLLIBS,;t t
14651 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
14652 s,@LDSHARED@,$LDSHARED,;t t
14653 s,@DLLWRAP@,$DLLWRAP,;t t
14654 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
14655 s,@CROSSTEST@,$CROSSTEST,;t t
14656 s,@CROSSCC@,$CROSSCC,;t t
14657 s,@DLLTOOL@,$DLLTOOL,;t t
14658 s,@LDPATH@,$LDPATH,;t t
14659 s,@CRTLIBS@,$CRTLIBS,;t t
14660 s,@LDD@,$LDD,;t t
14661 s,@ALLOCA@,$ALLOCA,;t t
14662 s,@LIBOBJS@,$LIBOBJS,;t t
14663 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14664 /@MAKE_RULES@/r $MAKE_RULES
14665 s,@MAKE_RULES@,,;t t
14666 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
14667 s,@MAKE_DLL_RULES@,,;t t
14668 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
14669 s,@MAKE_TEST_RULES@,,;t t
14670 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
14671 s,@MAKE_PROG_RULES@,,;t t
14672 CEOF
14674 _ACEOF
14676 cat >>$CONFIG_STATUS <<\_ACEOF
14677 # Split the substitutions into bite-sized pieces for seds with
14678 # small command number limits, like on Digital OSF/1 and HP-UX.
14679 ac_max_sed_lines=48
14680 ac_sed_frag=1 # Number of current file.
14681 ac_beg=1 # First line for current file.
14682 ac_end=$ac_max_sed_lines # Line after last line for current file.
14683 ac_more_lines=:
14684 ac_sed_cmds=
14685 while $ac_more_lines; do
14686 if test $ac_beg -gt 1; then
14687 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14688 else
14689 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14691 if test ! -s $tmp/subs.frag; then
14692 ac_more_lines=false
14693 else
14694 # The purpose of the label and of the branching condition is to
14695 # speed up the sed processing (if there are no `@' at all, there
14696 # is no need to browse any of the substitutions).
14697 # These are the two extra sed commands mentioned above.
14698 (echo ':t
14699 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14700 if test -z "$ac_sed_cmds"; then
14701 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14702 else
14703 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14705 ac_sed_frag=`expr $ac_sed_frag + 1`
14706 ac_beg=$ac_end
14707 ac_end=`expr $ac_end + $ac_max_sed_lines`
14709 done
14710 if test -z "$ac_sed_cmds"; then
14711 ac_sed_cmds=cat
14713 fi # test -n "$CONFIG_FILES"
14715 _ACEOF
14716 cat >>$CONFIG_STATUS <<\_ACEOF
14717 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14718 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14719 case $ac_file in
14720 - | *:- | *:-:* ) # input from stdin
14721 cat >$tmp/stdin
14722 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14723 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14724 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14725 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14726 * ) ac_file_in=$ac_file.in ;;
14727 esac
14729 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14730 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14731 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14732 X"$ac_file" : 'X\(//\)[^/]' \| \
14733 X"$ac_file" : 'X\(//\)$' \| \
14734 X"$ac_file" : 'X\(/\)' \| \
14735 . : '\(.\)' 2>/dev/null ||
14736 echo X"$ac_file" |
14737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14738 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14739 /^X\(\/\/\)$/{ s//\1/; q; }
14740 /^X\(\/\).*/{ s//\1/; q; }
14741 s/.*/./; q'`
14742 { if $as_mkdir_p; then
14743 mkdir -p "$ac_dir"
14744 else
14745 as_dir="$ac_dir"
14746 as_dirs=
14747 while test ! -d "$as_dir"; do
14748 as_dirs="$as_dir $as_dirs"
14749 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14750 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14751 X"$as_dir" : 'X\(//\)[^/]' \| \
14752 X"$as_dir" : 'X\(//\)$' \| \
14753 X"$as_dir" : 'X\(/\)' \| \
14754 . : '\(.\)' 2>/dev/null ||
14755 echo X"$as_dir" |
14756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14757 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14758 /^X\(\/\/\)$/{ s//\1/; q; }
14759 /^X\(\/\).*/{ s//\1/; q; }
14760 s/.*/./; q'`
14761 done
14762 test ! -n "$as_dirs" || mkdir $as_dirs
14763 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14764 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14765 { (exit 1); exit 1; }; }; }
14767 ac_builddir=.
14769 if test "$ac_dir" != .; then
14770 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14771 # A "../" for each directory in $ac_dir_suffix.
14772 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14773 else
14774 ac_dir_suffix= ac_top_builddir=
14777 case $srcdir in
14778 .) # No --srcdir option. We are building in place.
14779 ac_srcdir=.
14780 if test -z "$ac_top_builddir"; then
14781 ac_top_srcdir=.
14782 else
14783 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14784 fi ;;
14785 [\\/]* | ?:[\\/]* ) # Absolute path.
14786 ac_srcdir=$srcdir$ac_dir_suffix;
14787 ac_top_srcdir=$srcdir ;;
14788 *) # Relative path.
14789 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14790 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14791 esac
14792 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14793 # absolute.
14794 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14795 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
14796 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14797 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14800 case $INSTALL in
14801 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14802 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14803 esac
14805 if test x"$ac_file" != x-; then
14806 { echo "$as_me:$LINENO: creating $ac_file" >&5
14807 echo "$as_me: creating $ac_file" >&6;}
14808 rm -f "$ac_file"
14810 # Let's still pretend it is `configure' which instantiates (i.e., don't
14811 # use $as_me), people would be surprised to read:
14812 # /* config.h. Generated by config.status. */
14813 if test x"$ac_file" = x-; then
14814 configure_input=
14815 else
14816 configure_input="$ac_file. "
14818 configure_input=$configure_input"Generated from `echo $ac_file_in |
14819 sed 's,.*/,,'` by configure."
14821 # First look for the input files in the build tree, otherwise in the
14822 # src tree.
14823 ac_file_inputs=`IFS=:
14824 for f in $ac_file_in; do
14825 case $f in
14826 -) echo $tmp/stdin ;;
14827 [\\/$]*)
14828 # Absolute (can't be DOS-style, as IFS=:)
14829 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14830 echo "$as_me: error: cannot find input file: $f" >&2;}
14831 { (exit 1); exit 1; }; }
14832 echo $f;;
14833 *) # Relative
14834 if test -f "$f"; then
14835 # Build tree
14836 echo $f
14837 elif test -f "$srcdir/$f"; then
14838 # Source tree
14839 echo $srcdir/$f
14840 else
14841 # /dev/null tree
14842 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14843 echo "$as_me: error: cannot find input file: $f" >&2;}
14844 { (exit 1); exit 1; }; }
14845 fi;;
14846 esac
14847 done` || { (exit 1); exit 1; }
14848 _ACEOF
14849 cat >>$CONFIG_STATUS <<_ACEOF
14850 sed "$ac_vpsub
14851 $extrasub
14852 _ACEOF
14853 cat >>$CONFIG_STATUS <<\_ACEOF
14855 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14856 s,@configure_input@,$configure_input,;t t
14857 s,@srcdir@,$ac_srcdir,;t t
14858 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14859 s,@top_srcdir@,$ac_top_srcdir,;t t
14860 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14861 s,@builddir@,$ac_builddir,;t t
14862 s,@abs_builddir@,$ac_abs_builddir,;t t
14863 s,@top_builddir@,$ac_top_builddir,;t t
14864 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14865 s,@INSTALL@,$ac_INSTALL,;t t
14866 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14867 rm -f $tmp/stdin
14868 if test x"$ac_file" != x-; then
14869 mv $tmp/out $ac_file
14870 else
14871 cat $tmp/out
14872 rm -f $tmp/out
14875 done
14876 _ACEOF
14877 cat >>$CONFIG_STATUS <<\_ACEOF
14880 # CONFIG_HEADER section.
14883 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14884 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14886 # ac_d sets the value in "#define NAME VALUE" lines.
14887 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14888 ac_dB='[ ].*$,\1#\2'
14889 ac_dC=' '
14890 ac_dD=',;t'
14891 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14892 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14893 ac_uB='$,\1#\2define\3'
14894 ac_uC=' '
14895 ac_uD=',;t'
14897 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14898 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14899 case $ac_file in
14900 - | *:- | *:-:* ) # input from stdin
14901 cat >$tmp/stdin
14902 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14903 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14904 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14905 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14906 * ) ac_file_in=$ac_file.in ;;
14907 esac
14909 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14910 echo "$as_me: creating $ac_file" >&6;}
14912 # First look for the input files in the build tree, otherwise in the
14913 # src tree.
14914 ac_file_inputs=`IFS=:
14915 for f in $ac_file_in; do
14916 case $f in
14917 -) echo $tmp/stdin ;;
14918 [\\/$]*)
14919 # Absolute (can't be DOS-style, as IFS=:)
14920 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14921 echo "$as_me: error: cannot find input file: $f" >&2;}
14922 { (exit 1); exit 1; }; }
14923 echo $f;;
14924 *) # Relative
14925 if test -f "$f"; then
14926 # Build tree
14927 echo $f
14928 elif test -f "$srcdir/$f"; then
14929 # Source tree
14930 echo $srcdir/$f
14931 else
14932 # /dev/null tree
14933 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14934 echo "$as_me: error: cannot find input file: $f" >&2;}
14935 { (exit 1); exit 1; }; }
14936 fi;;
14937 esac
14938 done` || { (exit 1); exit 1; }
14939 # Remove the trailing spaces.
14940 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14942 _ACEOF
14944 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14945 # `conftest.undefs', that substitutes the proper values into
14946 # config.h.in to produce config.h. The first handles `#define'
14947 # templates, and the second `#undef' templates.
14948 # And first: Protect against being on the right side of a sed subst in
14949 # config.status. Protect against being in an unquoted here document
14950 # in config.status.
14951 rm -f conftest.defines conftest.undefs
14952 # Using a here document instead of a string reduces the quoting nightmare.
14953 # Putting comments in sed scripts is not portable.
14955 # `end' is used to avoid that the second main sed command (meant for
14956 # 0-ary CPP macros) applies to n-ary macro definitions.
14957 # See the Autoconf documentation for `clear'.
14958 cat >confdef2sed.sed <<\_ACEOF
14959 s/[\\&,]/\\&/g
14960 s,[\\$`],\\&,g
14961 t clear
14962 : clear
14963 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14964 t end
14965 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14966 : end
14967 _ACEOF
14968 # If some macros were called several times there might be several times
14969 # the same #defines, which is useless. Nevertheless, we may not want to
14970 # sort them, since we want the *last* AC-DEFINE to be honored.
14971 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14972 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14973 rm -f confdef2sed.sed
14975 # This sed command replaces #undef with comments. This is necessary, for
14976 # example, in the case of _POSIX_SOURCE, which is predefined and required
14977 # on some systems where configure will not decide to define it.
14978 cat >>conftest.undefs <<\_ACEOF
14979 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14980 _ACEOF
14982 # Break up conftest.defines because some shells have a limit on the size
14983 # of here documents, and old seds have small limits too (100 cmds).
14984 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14985 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14986 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14987 echo ' :' >>$CONFIG_STATUS
14988 rm -f conftest.tail
14989 while grep . conftest.defines >/dev/null
14991 # Write a limited-size here document to $tmp/defines.sed.
14992 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14993 # Speed up: don't consider the non `#define' lines.
14994 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14995 # Work around the forget-to-reset-the-flag bug.
14996 echo 't clr' >>$CONFIG_STATUS
14997 echo ': clr' >>$CONFIG_STATUS
14998 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14999 echo 'CEOF
15000 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15001 rm -f $tmp/in
15002 mv $tmp/out $tmp/in
15003 ' >>$CONFIG_STATUS
15004 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15005 rm -f conftest.defines
15006 mv conftest.tail conftest.defines
15007 done
15008 rm -f conftest.defines
15009 echo ' fi # grep' >>$CONFIG_STATUS
15010 echo >>$CONFIG_STATUS
15012 # Break up conftest.undefs because some shells have a limit on the size
15013 # of here documents, and old seds have small limits too (100 cmds).
15014 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15015 rm -f conftest.tail
15016 while grep . conftest.undefs >/dev/null
15018 # Write a limited-size here document to $tmp/undefs.sed.
15019 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15020 # Speed up: don't consider the non `#undef'
15021 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15022 # Work around the forget-to-reset-the-flag bug.
15023 echo 't clr' >>$CONFIG_STATUS
15024 echo ': clr' >>$CONFIG_STATUS
15025 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15026 echo 'CEOF
15027 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15028 rm -f $tmp/in
15029 mv $tmp/out $tmp/in
15030 ' >>$CONFIG_STATUS
15031 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15032 rm -f conftest.undefs
15033 mv conftest.tail conftest.undefs
15034 done
15035 rm -f conftest.undefs
15037 cat >>$CONFIG_STATUS <<\_ACEOF
15038 # Let's still pretend it is `configure' which instantiates (i.e., don't
15039 # use $as_me), people would be surprised to read:
15040 # /* config.h. Generated by config.status. */
15041 if test x"$ac_file" = x-; then
15042 echo "/* Generated by configure. */" >$tmp/config.h
15043 else
15044 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15046 cat $tmp/in >>$tmp/config.h
15047 rm -f $tmp/in
15048 if test x"$ac_file" != x-; then
15049 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
15050 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15051 echo "$as_me: $ac_file is unchanged" >&6;}
15052 else
15053 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15054 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15055 X"$ac_file" : 'X\(//\)[^/]' \| \
15056 X"$ac_file" : 'X\(//\)$' \| \
15057 X"$ac_file" : 'X\(/\)' \| \
15058 . : '\(.\)' 2>/dev/null ||
15059 echo X"$ac_file" |
15060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15062 /^X\(\/\/\)$/{ s//\1/; q; }
15063 /^X\(\/\).*/{ s//\1/; q; }
15064 s/.*/./; q'`
15065 { if $as_mkdir_p; then
15066 mkdir -p "$ac_dir"
15067 else
15068 as_dir="$ac_dir"
15069 as_dirs=
15070 while test ! -d "$as_dir"; do
15071 as_dirs="$as_dir $as_dirs"
15072 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15074 X"$as_dir" : 'X\(//\)[^/]' \| \
15075 X"$as_dir" : 'X\(//\)$' \| \
15076 X"$as_dir" : 'X\(/\)' \| \
15077 . : '\(.\)' 2>/dev/null ||
15078 echo X"$as_dir" |
15079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15081 /^X\(\/\/\)$/{ s//\1/; q; }
15082 /^X\(\/\).*/{ s//\1/; q; }
15083 s/.*/./; q'`
15084 done
15085 test ! -n "$as_dirs" || mkdir $as_dirs
15086 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15087 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15088 { (exit 1); exit 1; }; }; }
15090 rm -f $ac_file
15091 mv $tmp/config.h $ac_file
15093 else
15094 cat $tmp/config.h
15095 rm -f $tmp/config.h
15097 done
15098 _ACEOF
15099 cat >>$CONFIG_STATUS <<\_ACEOF
15102 # CONFIG_COMMANDS section.
15104 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15105 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15106 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15107 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15108 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15109 X"$ac_dest" : 'X\(//\)[^/]' \| \
15110 X"$ac_dest" : 'X\(//\)$' \| \
15111 X"$ac_dest" : 'X\(/\)' \| \
15112 . : '\(.\)' 2>/dev/null ||
15113 echo X"$ac_dest" |
15114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15115 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15116 /^X\(\/\/\)$/{ s//\1/; q; }
15117 /^X\(\/\).*/{ s//\1/; q; }
15118 s/.*/./; q'`
15119 ac_builddir=.
15121 if test "$ac_dir" != .; then
15122 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15123 # A "../" for each directory in $ac_dir_suffix.
15124 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15125 else
15126 ac_dir_suffix= ac_top_builddir=
15129 case $srcdir in
15130 .) # No --srcdir option. We are building in place.
15131 ac_srcdir=.
15132 if test -z "$ac_top_builddir"; then
15133 ac_top_srcdir=.
15134 else
15135 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15136 fi ;;
15137 [\\/]* | ?:[\\/]* ) # Absolute path.
15138 ac_srcdir=$srcdir$ac_dir_suffix;
15139 ac_top_srcdir=$srcdir ;;
15140 *) # Relative path.
15141 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15142 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15143 esac
15144 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15145 # absolute.
15146 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15147 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
15148 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15149 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15152 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15153 echo "$as_me: executing $ac_dest commands" >&6;}
15154 case $ac_dest in
15155 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
15156 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
15157 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
15158 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
15159 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
15160 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
15161 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
15162 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
15163 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
15164 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
15165 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
15166 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
15167 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
15168 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
15169 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
15170 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
15171 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
15172 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
15173 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
15174 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
15175 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
15176 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
15177 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
15178 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
15179 dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
15180 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
15181 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
15182 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
15183 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
15184 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
15185 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
15186 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
15187 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
15188 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
15189 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
15190 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
15191 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
15192 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
15193 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
15194 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
15195 if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
15196 echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
15197 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
15198 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
15199 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
15200 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
15201 loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
15202 echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
15203 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
15204 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
15205 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
15206 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
15207 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
15208 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
15209 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
15210 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
15211 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
15212 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
15213 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
15214 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
15215 relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
15216 echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
15217 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
15218 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
15219 win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
15220 echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
15221 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
15222 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
15223 esac
15224 done
15225 _ACEOF
15227 cat >>$CONFIG_STATUS <<\_ACEOF
15229 { (exit 0); exit 0; }
15230 _ACEOF
15231 chmod +x $CONFIG_STATUS
15232 ac_clean_files=$ac_clean_files_save
15235 # configure is writing to config.log, and then calls config.status.
15236 # config.status does its own redirection, appending to config.log.
15237 # Unfortunately, on DOS this fails, as config.log is still kept open
15238 # by configure, so config.status won't be able to write to it; its
15239 # output is simply discarded. So we exec the FD to /dev/null,
15240 # effectively closing config.log, so it can be properly (re)opened and
15241 # appended to by config.status. When coming back to configure, we
15242 # need to make the FD available again.
15243 if test "$no_create" != yes; then
15244 ac_cs_success=:
15245 exec 5>/dev/null
15246 $SHELL $CONFIG_STATUS || ac_cs_success=false
15247 exec 5>>config.log
15248 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15249 # would make configure fail if this is the last instruction.
15250 $ac_cs_success || { (exit 1); exit 1; }
15254 if test "$have_x" = "no"
15255 then
15256 echo
15257 echo "*** Warning: X development files not found. Wine will be built without"
15258 echo "*** X support, which currently does not work, and would probably not be"
15259 echo "*** what you want anyway. You will need to install devel packages of"
15260 echo "*** Xlib/Xfree86 at the very least."
15263 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
15264 then
15265 echo
15266 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
15267 echo "*** terminal resize support. Consider upgrading ncurses."
15270 if test "$wine_cv_libc_reentrant" = "no"
15271 then
15272 echo
15273 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
15274 echo "*** threading support. Consider upgrading libc to a more recent"
15275 echo "*** reentrant version of libc."
15278 if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
15279 then
15280 echo
15281 echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
15282 echo "*** applications won't work properly. You should upgrade your X11 library."
15285 if test "$wine_cv_opengl_version_OK" = "no"
15286 then
15287 echo
15288 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
15289 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
15292 if test "$wine_cv_msg_freetype" = "yes"
15293 then
15294 echo
15295 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
15296 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
15297 echo "*** freetype-devel package (or its equivalent on your distribution) to"
15298 echo "*** enable Wine to use TrueType fonts."
15301 echo
15302 echo "Configure finished. Do 'make depend && make' to compile Wine."
15303 echo