Release 20021219.
[wine.git] / configure
blobbe35b904a00d57738def967674f99e4ddedfba96
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54 for Wine 20021219.
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='20021219'
267 PACKAGE_STRING='Wine 20021219'
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 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 LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP CROSSTEST CROSSCC 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 20021219 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 20021219:";;
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 20021219
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 20021219, 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 # Check whether --enable-win16 or --disable-win16 was given.
1287 if test "${enable_win16+set}" = set; then
1288 enableval="$enable_win16"
1291 # Check whether --enable-debug or --disable-debug was given.
1292 if test "${enable_debug+set}" = set; then
1293 enableval="$enable_debug"
1296 # Check whether --enable-trace or --disable-trace was given.
1297 if test "${enable_trace+set}" = set; then
1298 enableval="$enable_trace"
1303 # Check whether --with-opengl or --without-opengl was given.
1304 if test "${with_opengl+set}" = set; then
1305 withval="$with_opengl"
1309 # Check whether --with-curses or --without-curses was given.
1310 if test "${with_curses+set}" = set; then
1311 withval="$with_curses"
1315 # Check whether --with-wine-tools or --without-wine-tools was given.
1316 if test "${with_wine_tools+set}" = set; then
1317 withval="$with_wine_tools"
1322 WIN16_FILES="\$(WIN16_FILES)"
1324 WIN16_INSTALL="\$(WIN16_INSTALL)"
1326 if test "x$enable_win16" = "xno"
1327 then
1328 WIN16_FILES=""
1329 WIN16_INSTALL=""
1331 if test "x$enable_debug" = "xno"
1332 then
1334 cat >>confdefs.h <<\_ACEOF
1335 #define NO_DEBUG_MSGS 1
1336 _ACEOF
1339 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1340 then
1342 cat >>confdefs.h <<\_ACEOF
1343 #define NO_TRACE_MSGS 1
1344 _ACEOF
1349 # Make sure we can run config.sub.
1350 $ac_config_sub sun4 >/dev/null 2>&1 ||
1351 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1352 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1353 { (exit 1); exit 1; }; }
1355 echo "$as_me:$LINENO: checking build system type" >&5
1356 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1357 if test "${ac_cv_build+set}" = set; then
1358 echo $ECHO_N "(cached) $ECHO_C" >&6
1359 else
1360 ac_cv_build_alias=$build_alias
1361 test -z "$ac_cv_build_alias" &&
1362 ac_cv_build_alias=`$ac_config_guess`
1363 test -z "$ac_cv_build_alias" &&
1364 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1365 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1366 { (exit 1); exit 1; }; }
1367 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1368 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1369 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1370 { (exit 1); exit 1; }; }
1373 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1374 echo "${ECHO_T}$ac_cv_build" >&6
1375 build=$ac_cv_build
1376 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1377 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1378 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1381 echo "$as_me:$LINENO: checking host system type" >&5
1382 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1383 if test "${ac_cv_host+set}" = set; then
1384 echo $ECHO_N "(cached) $ECHO_C" >&6
1385 else
1386 ac_cv_host_alias=$host_alias
1387 test -z "$ac_cv_host_alias" &&
1388 ac_cv_host_alias=$ac_cv_build_alias
1389 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1390 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1391 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1392 { (exit 1); exit 1; }; }
1395 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1396 echo "${ECHO_T}$ac_cv_host" >&6
1397 host=$ac_cv_host
1398 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1399 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1400 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1403 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1404 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1405 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1406 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408 else
1409 cat >conftest.make <<\_ACEOF
1410 all:
1411 @echo 'ac_maketemp="${MAKE}"'
1412 _ACEOF
1413 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1414 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1415 if test -n "$ac_maketemp"; then
1416 eval ac_cv_prog_make_${ac_make}_set=yes
1417 else
1418 eval ac_cv_prog_make_${ac_make}_set=no
1420 rm -f conftest.make
1422 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1423 echo "$as_me:$LINENO: result: yes" >&5
1424 echo "${ECHO_T}yes" >&6
1425 SET_MAKE=
1426 else
1427 echo "$as_me:$LINENO: result: no" >&5
1428 echo "${ECHO_T}no" >&6
1429 SET_MAKE="MAKE=${MAKE-make}"
1432 ac_ext=c
1433 ac_cpp='$CPP $CPPFLAGS'
1434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1437 if test -n "$ac_tool_prefix"; then
1438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1439 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1440 echo "$as_me:$LINENO: checking for $ac_word" >&5
1441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442 if test "${ac_cv_prog_CC+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 else
1445 if test -n "$CC"; then
1446 ac_cv_prog_CC="$CC" # Let the user override the test.
1447 else
1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 for as_dir in $PATH
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457 break 2
1459 done
1460 done
1464 CC=$ac_cv_prog_CC
1465 if test -n "$CC"; then
1466 echo "$as_me:$LINENO: result: $CC" >&5
1467 echo "${ECHO_T}$CC" >&6
1468 else
1469 echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1474 if test -z "$ac_cv_prog_CC"; then
1475 ac_ct_CC=$CC
1476 # Extract the first word of "gcc", so it can be a program name with args.
1477 set dummy gcc; ac_word=$2
1478 echo "$as_me:$LINENO: checking for $ac_word" >&5
1479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1481 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 else
1483 if test -n "$ac_ct_CC"; then
1484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1485 else
1486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 for as_dir in $PATH
1489 IFS=$as_save_IFS
1490 test -z "$as_dir" && as_dir=.
1491 for ac_exec_ext in '' $ac_executable_extensions; do
1492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493 ac_cv_prog_ac_ct_CC="gcc"
1494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 break 2
1497 done
1498 done
1502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1503 if test -n "$ac_ct_CC"; then
1504 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1505 echo "${ECHO_T}$ac_ct_CC" >&6
1506 else
1507 echo "$as_me:$LINENO: result: no" >&5
1508 echo "${ECHO_T}no" >&6
1511 CC=$ac_ct_CC
1512 else
1513 CC="$ac_cv_prog_CC"
1516 if test -z "$CC"; then
1517 if test -n "$ac_tool_prefix"; then
1518 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1519 set dummy ${ac_tool_prefix}cc; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525 if test -n "$CC"; then
1526 ac_cv_prog_CC="$CC" # Let the user override the test.
1527 else
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 for as_dir in $PATH
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_CC="${ac_tool_prefix}cc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 break 2
1539 done
1540 done
1544 CC=$ac_cv_prog_CC
1545 if test -n "$CC"; then
1546 echo "$as_me:$LINENO: result: $CC" >&5
1547 echo "${ECHO_T}$CC" >&6
1548 else
1549 echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1554 if test -z "$ac_cv_prog_CC"; then
1555 ac_ct_CC=$CC
1556 # Extract the first word of "cc", so it can be a program name with args.
1557 set dummy cc; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563 if test -n "$ac_ct_CC"; then
1564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565 else
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 for as_dir in $PATH
1569 IFS=$as_save_IFS
1570 test -z "$as_dir" && as_dir=.
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573 ac_cv_prog_ac_ct_CC="cc"
1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 break 2
1577 done
1578 done
1582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583 if test -n "$ac_ct_CC"; then
1584 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1585 echo "${ECHO_T}$ac_ct_CC" >&6
1586 else
1587 echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1591 CC=$ac_ct_CC
1592 else
1593 CC="$ac_cv_prog_CC"
1597 if test -z "$CC"; then
1598 # Extract the first word of "cc", so it can be a program name with args.
1599 set dummy cc; ac_word=$2
1600 echo "$as_me:$LINENO: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1607 else
1608 ac_prog_rejected=no
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 for as_dir in $PATH
1612 IFS=$as_save_IFS
1613 test -z "$as_dir" && as_dir=.
1614 for ac_exec_ext in '' $ac_executable_extensions; do
1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1617 ac_prog_rejected=yes
1618 continue
1620 ac_cv_prog_CC="cc"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 break 2
1624 done
1625 done
1627 if test $ac_prog_rejected = yes; then
1628 # We found a bogon in the path, so make sure we never use it.
1629 set dummy $ac_cv_prog_CC
1630 shift
1631 if test $# != 0; then
1632 # We chose a different compiler from the bogus one.
1633 # However, it has the same basename, so the bogon will be chosen
1634 # first if we set CC to just the basename; use the full file name.
1635 shift
1636 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1641 CC=$ac_cv_prog_CC
1642 if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644 echo "${ECHO_T}$CC" >&6
1645 else
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1651 if test -z "$CC"; then
1652 if test -n "$ac_tool_prefix"; then
1653 for ac_prog in cl
1655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1657 echo "$as_me:$LINENO: checking for $ac_word" >&5
1658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659 if test "${ac_cv_prog_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 else
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1664 else
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 for as_dir in $PATH
1668 IFS=$as_save_IFS
1669 test -z "$as_dir" && as_dir=.
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 break 2
1676 done
1677 done
1681 CC=$ac_cv_prog_CC
1682 if test -n "$CC"; then
1683 echo "$as_me:$LINENO: result: $CC" >&5
1684 echo "${ECHO_T}$CC" >&6
1685 else
1686 echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1690 test -n "$CC" && break
1691 done
1693 if test -z "$CC"; then
1694 ac_ct_CC=$CC
1695 for ac_prog in cl
1697 # Extract the first word of "$ac_prog", so it can be a program name with args.
1698 set dummy $ac_prog; ac_word=$2
1699 echo "$as_me:$LINENO: checking for $ac_word" >&5
1700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 else
1704 if test -n "$ac_ct_CC"; then
1705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1706 else
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 for as_dir in $PATH
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714 ac_cv_prog_ac_ct_CC="$ac_prog"
1715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 break 2
1718 done
1719 done
1723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1724 if test -n "$ac_ct_CC"; then
1725 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1726 echo "${ECHO_T}$ac_ct_CC" >&6
1727 else
1728 echo "$as_me:$LINENO: result: no" >&5
1729 echo "${ECHO_T}no" >&6
1732 test -n "$ac_ct_CC" && break
1733 done
1735 CC=$ac_ct_CC
1741 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1742 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1743 { (exit 1); exit 1; }; }
1745 # Provide some information about the compiler.
1746 echo "$as_me:$LINENO:" \
1747 "checking for C compiler version" >&5
1748 ac_compiler=`set X $ac_compile; echo $2`
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1750 (eval $ac_compiler --version </dev/null >&5) 2>&5
1751 ac_status=$?
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1755 (eval $ac_compiler -v </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1760 (eval $ac_compiler -V </dev/null >&5) 2>&5
1761 ac_status=$?
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }
1765 cat >conftest.$ac_ext <<_ACEOF
1766 #line $LINENO "configure"
1767 #include "confdefs.h"
1770 main ()
1774 return 0;
1776 _ACEOF
1777 ac_clean_files_save=$ac_clean_files
1778 ac_clean_files="$ac_clean_files a.out a.exe"
1779 # Try to create an executable without -o first, disregard a.out.
1780 # It will help us diagnose broken compilers, and finding out an intuition
1781 # of exeext.
1782 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1783 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1784 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1785 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1786 (eval $ac_link_default) 2>&5
1787 ac_status=$?
1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789 (exit $ac_status); }; then
1790 # Find the output, starting from the most likely. This scheme is
1791 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1792 # resort.
1794 # Be careful to initialize this variable, since it used to be cached.
1795 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1796 ac_cv_exeext=
1797 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1798 test -f "$ac_file" || continue
1799 case $ac_file in
1800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1801 a.out ) # We found the default executable, but exeext='' is most
1802 # certainly right.
1803 break;;
1804 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1805 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1806 export ac_cv_exeext
1807 break;;
1808 * ) break;;
1809 esac
1810 done
1811 else
1812 echo "$as_me: failed program was:" >&5
1813 cat conftest.$ac_ext >&5
1814 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1815 check \`config.log' for details." >&5
1816 echo "$as_me: error: C compiler cannot create executables
1817 check \`config.log' for details." >&2;}
1818 { (exit 77); exit 77; }; }
1821 ac_exeext=$ac_cv_exeext
1822 echo "$as_me:$LINENO: result: $ac_file" >&5
1823 echo "${ECHO_T}$ac_file" >&6
1825 # Check the compiler produces executables we can run. If not, either
1826 # the compiler is broken, or we cross compile.
1827 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1828 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1829 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1830 # If not cross compiling, check that we can run a simple program.
1831 if test "$cross_compiling" != yes; then
1832 if { ac_try='./$ac_file'
1833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1834 (eval $ac_try) 2>&5
1835 ac_status=$?
1836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837 (exit $ac_status); }; }; then
1838 cross_compiling=no
1839 else
1840 if test "$cross_compiling" = maybe; then
1841 cross_compiling=yes
1842 else
1843 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1844 If you meant to cross compile, use \`--host'." >&5
1845 echo "$as_me: error: cannot run C compiled programs.
1846 If you meant to cross compile, use \`--host'." >&2;}
1847 { (exit 1); exit 1; }; }
1851 echo "$as_me:$LINENO: result: yes" >&5
1852 echo "${ECHO_T}yes" >&6
1854 rm -f a.out a.exe conftest$ac_cv_exeext
1855 ac_clean_files=$ac_clean_files_save
1856 # Check the compiler produces executables we can run. If not, either
1857 # the compiler is broken, or we cross compile.
1858 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1859 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1860 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1861 echo "${ECHO_T}$cross_compiling" >&6
1863 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1864 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1866 (eval $ac_link) 2>&5
1867 ac_status=$?
1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869 (exit $ac_status); }; then
1870 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1871 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1872 # work properly (i.e., refer to `conftest.exe'), while it won't with
1873 # `rm'.
1874 for ac_file in conftest.exe conftest conftest.*; do
1875 test -f "$ac_file" || continue
1876 case $ac_file in
1877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1878 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1879 export ac_cv_exeext
1880 break;;
1881 * ) break;;
1882 esac
1883 done
1884 else
1885 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1886 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1887 { (exit 1); exit 1; }; }
1890 rm -f conftest$ac_cv_exeext
1891 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1892 echo "${ECHO_T}$ac_cv_exeext" >&6
1894 rm -f conftest.$ac_ext
1895 EXEEXT=$ac_cv_exeext
1896 ac_exeext=$EXEEXT
1897 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1898 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1899 if test "${ac_cv_objext+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902 cat >conftest.$ac_ext <<_ACEOF
1903 #line $LINENO "configure"
1904 #include "confdefs.h"
1907 main ()
1911 return 0;
1913 _ACEOF
1914 rm -f conftest.o conftest.obj
1915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1916 (eval $ac_compile) 2>&5
1917 ac_status=$?
1918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919 (exit $ac_status); }; then
1920 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1921 case $ac_file in
1922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1923 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1924 break;;
1925 esac
1926 done
1927 else
1928 echo "$as_me: failed program was:" >&5
1929 cat conftest.$ac_ext >&5
1930 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1931 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1932 { (exit 1); exit 1; }; }
1935 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1937 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1938 echo "${ECHO_T}$ac_cv_objext" >&6
1939 OBJEXT=$ac_cv_objext
1940 ac_objext=$OBJEXT
1941 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1942 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1943 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 else
1946 cat >conftest.$ac_ext <<_ACEOF
1947 #line $LINENO "configure"
1948 #include "confdefs.h"
1951 main ()
1953 #ifndef __GNUC__
1954 choke me
1955 #endif
1958 return 0;
1960 _ACEOF
1961 rm -f conftest.$ac_objext
1962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1963 (eval $ac_compile) 2>&5
1964 ac_status=$?
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); } &&
1967 { ac_try='test -s conftest.$ac_objext'
1968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1969 (eval $ac_try) 2>&5
1970 ac_status=$?
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }; }; then
1973 ac_compiler_gnu=yes
1974 else
1975 echo "$as_me: failed program was:" >&5
1976 cat conftest.$ac_ext >&5
1977 ac_compiler_gnu=no
1979 rm -f conftest.$ac_objext conftest.$ac_ext
1980 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1983 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1984 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1985 GCC=`test $ac_compiler_gnu = yes && echo yes`
1986 ac_test_CFLAGS=${CFLAGS+set}
1987 ac_save_CFLAGS=$CFLAGS
1988 CFLAGS="-g"
1989 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1990 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1991 if test "${ac_cv_prog_cc_g+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994 cat >conftest.$ac_ext <<_ACEOF
1995 #line $LINENO "configure"
1996 #include "confdefs.h"
1999 main ()
2003 return 0;
2005 _ACEOF
2006 rm -f conftest.$ac_objext
2007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2008 (eval $ac_compile) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); } &&
2012 { ac_try='test -s conftest.$ac_objext'
2013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2014 (eval $ac_try) 2>&5
2015 ac_status=$?
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); }; }; then
2018 ac_cv_prog_cc_g=yes
2019 else
2020 echo "$as_me: failed program was:" >&5
2021 cat conftest.$ac_ext >&5
2022 ac_cv_prog_cc_g=no
2024 rm -f conftest.$ac_objext conftest.$ac_ext
2026 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2027 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2028 if test "$ac_test_CFLAGS" = set; then
2029 CFLAGS=$ac_save_CFLAGS
2030 elif test $ac_cv_prog_cc_g = yes; then
2031 if test "$GCC" = yes; then
2032 CFLAGS="-g -O2"
2033 else
2034 CFLAGS="-g"
2036 else
2037 if test "$GCC" = yes; then
2038 CFLAGS="-O2"
2039 else
2040 CFLAGS=
2043 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2044 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2045 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048 ac_cv_prog_cc_stdc=no
2049 ac_save_CC=$CC
2050 cat >conftest.$ac_ext <<_ACEOF
2051 #line $LINENO "configure"
2052 #include "confdefs.h"
2053 #include <stdarg.h>
2054 #include <stdio.h>
2055 #include <sys/types.h>
2056 #include <sys/stat.h>
2057 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2058 struct buf { int x; };
2059 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2060 static char *e (p, i)
2061 char **p;
2062 int i;
2064 return p[i];
2066 static char *f (char * (*g) (char **, int), char **p, ...)
2068 char *s;
2069 va_list v;
2070 va_start (v,p);
2071 s = g (p, va_arg (v,int));
2072 va_end (v);
2073 return s;
2075 int test (int i, double x);
2076 struct s1 {int (*f) (int a);};
2077 struct s2 {int (*f) (double a);};
2078 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2079 int argc;
2080 char **argv;
2082 main ()
2084 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2086 return 0;
2088 _ACEOF
2089 # Don't try gcc -ansi; that turns off useful extensions and
2090 # breaks some systems' header files.
2091 # AIX -qlanglvl=ansi
2092 # Ultrix and OSF/1 -std1
2093 # HP-UX 10.20 and later -Ae
2094 # HP-UX older versions -Aa -D_HPUX_SOURCE
2095 # SVR4 -Xc -D__EXTENSIONS__
2096 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2098 CC="$ac_save_CC $ac_arg"
2099 rm -f conftest.$ac_objext
2100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101 (eval $ac_compile) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); } &&
2105 { ac_try='test -s conftest.$ac_objext'
2106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107 (eval $ac_try) 2>&5
2108 ac_status=$?
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }; }; then
2111 ac_cv_prog_cc_stdc=$ac_arg
2112 break
2113 else
2114 echo "$as_me: failed program was:" >&5
2115 cat conftest.$ac_ext >&5
2117 rm -f conftest.$ac_objext
2118 done
2119 rm -f conftest.$ac_ext conftest.$ac_objext
2120 CC=$ac_save_CC
2124 case "x$ac_cv_prog_cc_stdc" in
2125 x|xno)
2126 echo "$as_me:$LINENO: result: none needed" >&5
2127 echo "${ECHO_T}none needed" >&6 ;;
2129 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2130 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2131 CC="$CC $ac_cv_prog_cc_stdc" ;;
2132 esac
2134 # Some people use a C++ compiler to compile C. Since we use `exit',
2135 # in C++ we need to declare it. In case someone uses the same compiler
2136 # for both compiling C and C++ we need to have the C++ compiler decide
2137 # the declaration of exit, since it's the most demanding environment.
2138 cat >conftest.$ac_ext <<_ACEOF
2139 #ifndef __cplusplus
2140 choke me
2141 #endif
2142 _ACEOF
2143 rm -f conftest.$ac_objext
2144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145 (eval $ac_compile) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); } &&
2149 { ac_try='test -s conftest.$ac_objext'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; }; then
2155 for ac_declaration in \
2157 '#include <stdlib.h>' \
2158 'extern "C" void std::exit (int) throw (); using std::exit;' \
2159 'extern "C" void std::exit (int); using std::exit;' \
2160 'extern "C" void exit (int) throw ();' \
2161 'extern "C" void exit (int);' \
2162 'void exit (int);'
2164 cat >conftest.$ac_ext <<_ACEOF
2165 #line $LINENO "configure"
2166 #include "confdefs.h"
2167 #include <stdlib.h>
2168 $ac_declaration
2170 main ()
2172 exit (42);
2174 return 0;
2176 _ACEOF
2177 rm -f conftest.$ac_objext
2178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179 (eval $ac_compile) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); } &&
2183 { ac_try='test -s conftest.$ac_objext'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 (eval $ac_try) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2190 else
2191 echo "$as_me: failed program was:" >&5
2192 cat conftest.$ac_ext >&5
2193 continue
2195 rm -f conftest.$ac_objext conftest.$ac_ext
2196 cat >conftest.$ac_ext <<_ACEOF
2197 #line $LINENO "configure"
2198 #include "confdefs.h"
2199 $ac_declaration
2201 main ()
2203 exit (42);
2205 return 0;
2207 _ACEOF
2208 rm -f conftest.$ac_objext
2209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210 (eval $ac_compile) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); } &&
2214 { ac_try='test -s conftest.$ac_objext'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2220 break
2221 else
2222 echo "$as_me: failed program was:" >&5
2223 cat conftest.$ac_ext >&5
2225 rm -f conftest.$ac_objext conftest.$ac_ext
2226 done
2227 rm -f conftest*
2228 if test -n "$ac_declaration"; then
2229 echo '#ifdef __cplusplus' >>confdefs.h
2230 echo $ac_declaration >>confdefs.h
2231 echo '#endif' >>confdefs.h
2234 else
2235 echo "$as_me: failed program was:" >&5
2236 cat conftest.$ac_ext >&5
2238 rm -f conftest.$ac_objext conftest.$ac_ext
2239 ac_ext=c
2240 ac_cpp='$CPP $CPPFLAGS'
2241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2245 ac_ext=c
2246 ac_cpp='$CPP $CPPFLAGS'
2247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2250 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2251 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2252 # On Suns, sometimes $CPP names a directory.
2253 if test -n "$CPP" && test -d "$CPP"; then
2254 CPP=
2256 if test -z "$CPP"; then
2257 if test "${ac_cv_prog_CPP+set}" = set; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 else
2260 # Double quotes because CPP needs to be expanded
2261 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2263 ac_preproc_ok=false
2264 for ac_c_preproc_warn_flag in '' yes
2266 # Use a header file that comes with gcc, so configuring glibc
2267 # with a fresh cross-compiler works.
2268 # On the NeXT, cc -E runs the code through the compiler's parser,
2269 # not just through cpp. "Syntax error" is here to catch this case.
2270 cat >conftest.$ac_ext <<_ACEOF
2271 #line $LINENO "configure"
2272 #include "confdefs.h"
2273 #include <assert.h>
2274 Syntax error
2275 _ACEOF
2276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2278 ac_status=$?
2279 grep -v '^ *+' conftest.er1 >conftest.err
2280 rm -f conftest.er1
2281 cat conftest.err >&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); } >/dev/null; then
2284 if test -s conftest.err; then
2285 ac_cpp_err=$ac_c_preproc_warn_flag
2286 else
2287 ac_cpp_err=
2289 else
2290 ac_cpp_err=yes
2292 if test -z "$ac_cpp_err"; then
2294 else
2295 echo "$as_me: failed program was:" >&5
2296 cat conftest.$ac_ext >&5
2297 # Broken: fails on valid input.
2298 continue
2300 rm -f conftest.err conftest.$ac_ext
2302 # OK, works on sane cases. Now check whether non-existent headers
2303 # can be detected and how.
2304 cat >conftest.$ac_ext <<_ACEOF
2305 #line $LINENO "configure"
2306 #include "confdefs.h"
2307 #include <ac_nonexistent.h>
2308 _ACEOF
2309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2311 ac_status=$?
2312 grep -v '^ *+' conftest.er1 >conftest.err
2313 rm -f conftest.er1
2314 cat conftest.err >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); } >/dev/null; then
2317 if test -s conftest.err; then
2318 ac_cpp_err=$ac_c_preproc_warn_flag
2319 else
2320 ac_cpp_err=
2322 else
2323 ac_cpp_err=yes
2325 if test -z "$ac_cpp_err"; then
2326 # Broken: success on invalid input.
2327 continue
2328 else
2329 echo "$as_me: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2331 # Passes both tests.
2332 ac_preproc_ok=:
2333 break
2335 rm -f conftest.err conftest.$ac_ext
2337 done
2338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2339 rm -f conftest.err conftest.$ac_ext
2340 if $ac_preproc_ok; then
2341 break
2344 done
2345 ac_cv_prog_CPP=$CPP
2348 CPP=$ac_cv_prog_CPP
2349 else
2350 ac_cv_prog_CPP=$CPP
2352 echo "$as_me:$LINENO: result: $CPP" >&5
2353 echo "${ECHO_T}$CPP" >&6
2354 ac_preproc_ok=false
2355 for ac_c_preproc_warn_flag in '' yes
2357 # Use a header file that comes with gcc, so configuring glibc
2358 # with a fresh cross-compiler works.
2359 # On the NeXT, cc -E runs the code through the compiler's parser,
2360 # not just through cpp. "Syntax error" is here to catch this case.
2361 cat >conftest.$ac_ext <<_ACEOF
2362 #line $LINENO "configure"
2363 #include "confdefs.h"
2364 #include <assert.h>
2365 Syntax error
2366 _ACEOF
2367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2369 ac_status=$?
2370 grep -v '^ *+' conftest.er1 >conftest.err
2371 rm -f conftest.er1
2372 cat conftest.err >&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); } >/dev/null; then
2375 if test -s conftest.err; then
2376 ac_cpp_err=$ac_c_preproc_warn_flag
2377 else
2378 ac_cpp_err=
2380 else
2381 ac_cpp_err=yes
2383 if test -z "$ac_cpp_err"; then
2385 else
2386 echo "$as_me: failed program was:" >&5
2387 cat conftest.$ac_ext >&5
2388 # Broken: fails on valid input.
2389 continue
2391 rm -f conftest.err conftest.$ac_ext
2393 # OK, works on sane cases. Now check whether non-existent headers
2394 # can be detected and how.
2395 cat >conftest.$ac_ext <<_ACEOF
2396 #line $LINENO "configure"
2397 #include "confdefs.h"
2398 #include <ac_nonexistent.h>
2399 _ACEOF
2400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2402 ac_status=$?
2403 grep -v '^ *+' conftest.er1 >conftest.err
2404 rm -f conftest.er1
2405 cat conftest.err >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); } >/dev/null; then
2408 if test -s conftest.err; then
2409 ac_cpp_err=$ac_c_preproc_warn_flag
2410 else
2411 ac_cpp_err=
2413 else
2414 ac_cpp_err=yes
2416 if test -z "$ac_cpp_err"; then
2417 # Broken: success on invalid input.
2418 continue
2419 else
2420 echo "$as_me: failed program was:" >&5
2421 cat conftest.$ac_ext >&5
2422 # Passes both tests.
2423 ac_preproc_ok=:
2424 break
2426 rm -f conftest.err conftest.$ac_ext
2428 done
2429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2430 rm -f conftest.err conftest.$ac_ext
2431 if $ac_preproc_ok; then
2433 else
2434 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2435 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2436 { (exit 1); exit 1; }; }
2439 ac_ext=c
2440 ac_cpp='$CPP $CPPFLAGS'
2441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2446 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2447 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2448 if test "${wine_cv_toolsdir+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 else
2451 if test -z "$with_wine_tools"; then
2452 if test "$cross_compiling" = "yes"; then
2453 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2454 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2455 { (exit 1); exit 1; }; }
2456 else
2457 wine_cv_toolsdir="\$(TOPOBJDIR)"
2459 elif test -d "$with_wine_tools/tools/winebuild"; then
2460 case $with_wine_tools in
2461 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2462 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2463 esac
2464 else
2465 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2466 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2467 { (exit 1); exit 1; }; }
2470 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2471 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2472 TOOLSDIR=$wine_cv_toolsdir
2477 echo "$as_me:$LINENO: checking for X" >&5
2478 echo $ECHO_N "checking for X... $ECHO_C" >&6
2481 # Check whether --with-x or --without-x was given.
2482 if test "${with_x+set}" = set; then
2483 withval="$with_x"
2486 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2487 if test "x$with_x" = xno; then
2488 # The user explicitly disabled X.
2489 have_x=disabled
2490 else
2491 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2492 # Both variables are already set.
2493 have_x=yes
2494 else
2495 if test "${ac_cv_have_x+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498 # One or both of the vars are not set, and there is no cached value.
2499 ac_x_includes=no ac_x_libraries=no
2500 rm -fr conftest.dir
2501 if mkdir conftest.dir; then
2502 cd conftest.dir
2503 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2504 cat >Imakefile <<'_ACEOF'
2505 acfindx:
2506 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2507 _ACEOF
2508 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2509 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2510 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2511 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2512 for ac_extension in a so sl; do
2513 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2514 test -f $ac_im_libdir/libX11.$ac_extension; then
2515 ac_im_usrlibdir=$ac_im_libdir; break
2517 done
2518 # Screen out bogus values from the imake configuration. They are
2519 # bogus both because they are the default anyway, and because
2520 # using them would break gcc on systems where it needs fixed includes.
2521 case $ac_im_incroot in
2522 /usr/include) ;;
2523 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2524 esac
2525 case $ac_im_usrlibdir in
2526 /usr/lib | /lib) ;;
2527 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2528 esac
2530 cd ..
2531 rm -fr conftest.dir
2534 # Standard set of common directories for X headers.
2535 # Check X11 before X11Rn because it is often a symlink to the current release.
2536 ac_x_header_dirs='
2537 /usr/X11/include
2538 /usr/X11R6/include
2539 /usr/X11R5/include
2540 /usr/X11R4/include
2542 /usr/include/X11
2543 /usr/include/X11R6
2544 /usr/include/X11R5
2545 /usr/include/X11R4
2547 /usr/local/X11/include
2548 /usr/local/X11R6/include
2549 /usr/local/X11R5/include
2550 /usr/local/X11R4/include
2552 /usr/local/include/X11
2553 /usr/local/include/X11R6
2554 /usr/local/include/X11R5
2555 /usr/local/include/X11R4
2557 /usr/X386/include
2558 /usr/x386/include
2559 /usr/XFree86/include/X11
2561 /usr/include
2562 /usr/local/include
2563 /usr/unsupported/include
2564 /usr/athena/include
2565 /usr/local/x11r5/include
2566 /usr/lpp/Xamples/include
2568 /usr/openwin/include
2569 /usr/openwin/share/include'
2571 if test "$ac_x_includes" = no; then
2572 # Guess where to find include files, by looking for Intrinsic.h.
2573 # First, try using that file with no special directory specified.
2574 cat >conftest.$ac_ext <<_ACEOF
2575 #line $LINENO "configure"
2576 #include "confdefs.h"
2577 #include <X11/Intrinsic.h>
2578 _ACEOF
2579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2581 ac_status=$?
2582 grep -v '^ *+' conftest.er1 >conftest.err
2583 rm -f conftest.er1
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } >/dev/null; then
2587 if test -s conftest.err; then
2588 ac_cpp_err=$ac_c_preproc_warn_flag
2589 else
2590 ac_cpp_err=
2592 else
2593 ac_cpp_err=yes
2595 if test -z "$ac_cpp_err"; then
2596 # We can compile using X headers with no special include directory.
2597 ac_x_includes=
2598 else
2599 echo "$as_me: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2601 for ac_dir in $ac_x_header_dirs; do
2602 if test -r "$ac_dir/X11/Intrinsic.h"; then
2603 ac_x_includes=$ac_dir
2604 break
2606 done
2608 rm -f conftest.err conftest.$ac_ext
2609 fi # $ac_x_includes = no
2611 if test "$ac_x_libraries" = no; then
2612 # Check for the libraries.
2613 # See if we find them without any special options.
2614 # Don't add to $LIBS permanently.
2615 ac_save_LIBS=$LIBS
2616 LIBS="-lXt $LIBS"
2617 cat >conftest.$ac_ext <<_ACEOF
2618 #line $LINENO "configure"
2619 #include "confdefs.h"
2620 #include <X11/Intrinsic.h>
2622 main ()
2624 XtMalloc (0)
2626 return 0;
2628 _ACEOF
2629 rm -f conftest.$ac_objext conftest$ac_exeext
2630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2631 (eval $ac_link) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
2635 { ac_try='test -s conftest$ac_exeext'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
2641 LIBS=$ac_save_LIBS
2642 # We can link X programs with no special library path.
2643 ac_x_libraries=
2644 else
2645 echo "$as_me: failed program was:" >&5
2646 cat conftest.$ac_ext >&5
2647 LIBS=$ac_save_LIBS
2648 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2650 # Don't even attempt the hair of trying to link an X program!
2651 for ac_extension in a so sl; do
2652 if test -r $ac_dir/libXt.$ac_extension; then
2653 ac_x_libraries=$ac_dir
2654 break 2
2656 done
2657 done
2659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2660 fi # $ac_x_libraries = no
2662 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2663 # Didn't find X anywhere. Cache the known absence of X.
2664 ac_cv_have_x="have_x=no"
2665 else
2666 # Record where we found X for the cache.
2667 ac_cv_have_x="have_x=yes \
2668 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2673 eval "$ac_cv_have_x"
2674 fi # $with_x != no
2676 if test "$have_x" != yes; then
2677 echo "$as_me:$LINENO: result: $have_x" >&5
2678 echo "${ECHO_T}$have_x" >&6
2679 no_x=yes
2680 else
2681 # If each of the values was on the command line, it overrides each guess.
2682 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2683 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2684 # Update the cache value to reflect the command line values.
2685 ac_cv_have_x="have_x=yes \
2686 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2687 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2688 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2691 if test "$no_x" = yes; then
2692 # Not all programs may use this symbol, but it does not hurt to define it.
2694 cat >>confdefs.h <<\_ACEOF
2695 #define X_DISPLAY_MISSING 1
2696 _ACEOF
2698 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2699 else
2700 if test -n "$x_includes"; then
2701 X_CFLAGS="$X_CFLAGS -I$x_includes"
2704 # It would also be nice to do this for all -L options, not just this one.
2705 if test -n "$x_libraries"; then
2706 X_LIBS="$X_LIBS -L$x_libraries"
2707 # For Solaris; some versions of Sun CC require a space after -R and
2708 # others require no space. Words are not sufficient . . . .
2709 case `(uname -sr) 2>/dev/null` in
2710 "SunOS 5"*)
2711 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2712 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2713 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2714 cat >conftest.$ac_ext <<_ACEOF
2715 #line $LINENO "configure"
2716 #include "confdefs.h"
2719 main ()
2723 return 0;
2725 _ACEOF
2726 rm -f conftest.$ac_objext conftest$ac_exeext
2727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2728 (eval $ac_link) 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } &&
2732 { ac_try='test -s conftest$ac_exeext'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 (eval $ac_try) 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 ac_R_nospace=yes
2739 else
2740 echo "$as_me: failed program was:" >&5
2741 cat conftest.$ac_ext >&5
2742 ac_R_nospace=no
2744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2745 if test $ac_R_nospace = yes; then
2746 echo "$as_me:$LINENO: result: no" >&5
2747 echo "${ECHO_T}no" >&6
2748 X_LIBS="$X_LIBS -R$x_libraries"
2749 else
2750 LIBS="$ac_xsave_LIBS -R $x_libraries"
2751 cat >conftest.$ac_ext <<_ACEOF
2752 #line $LINENO "configure"
2753 #include "confdefs.h"
2756 main ()
2760 return 0;
2762 _ACEOF
2763 rm -f conftest.$ac_objext conftest$ac_exeext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2765 (eval $ac_link) 2>&5
2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } &&
2769 { ac_try='test -s conftest$ac_exeext'
2770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 (eval $ac_try) 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; }; then
2775 ac_R_space=yes
2776 else
2777 echo "$as_me: failed program was:" >&5
2778 cat conftest.$ac_ext >&5
2779 ac_R_space=no
2781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2782 if test $ac_R_space = yes; then
2783 echo "$as_me:$LINENO: result: yes" >&5
2784 echo "${ECHO_T}yes" >&6
2785 X_LIBS="$X_LIBS -R $x_libraries"
2786 else
2787 echo "$as_me:$LINENO: result: neither works" >&5
2788 echo "${ECHO_T}neither works" >&6
2791 LIBS=$ac_xsave_LIBS
2792 esac
2795 # Check for system-dependent libraries X programs must link with.
2796 # Do this before checking for the system-independent R6 libraries
2797 # (-lICE), since we may need -lsocket or whatever for X linking.
2799 if test "$ISC" = yes; then
2800 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2801 else
2802 # Martyn Johnson says this is needed for Ultrix, if the X
2803 # libraries were built with DECnet support. And Karl Berry says
2804 # the Alpha needs dnet_stub (dnet does not exist).
2805 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2806 cat >conftest.$ac_ext <<_ACEOF
2807 #line $LINENO "configure"
2808 #include "confdefs.h"
2810 /* Override any gcc2 internal prototype to avoid an error. */
2811 #ifdef __cplusplus
2812 extern "C"
2813 #endif
2814 /* We use char because int might match the return type of a gcc2
2815 builtin and then its argument prototype would still apply. */
2816 char XOpenDisplay ();
2818 main ()
2820 XOpenDisplay ();
2822 return 0;
2824 _ACEOF
2825 rm -f conftest.$ac_objext conftest$ac_exeext
2826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2827 (eval $ac_link) 2>&5
2828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
2831 { ac_try='test -s conftest$ac_exeext'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; }; then
2838 else
2839 echo "$as_me: failed program was:" >&5
2840 cat conftest.$ac_ext >&5
2841 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2842 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2843 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846 ac_check_lib_save_LIBS=$LIBS
2847 LIBS="-ldnet $LIBS"
2848 cat >conftest.$ac_ext <<_ACEOF
2849 #line $LINENO "configure"
2850 #include "confdefs.h"
2852 /* Override any gcc2 internal prototype to avoid an error. */
2853 #ifdef __cplusplus
2854 extern "C"
2855 #endif
2856 /* We use char because int might match the return type of a gcc2
2857 builtin and then its argument prototype would still apply. */
2858 char dnet_ntoa ();
2860 main ()
2862 dnet_ntoa ();
2864 return 0;
2866 _ACEOF
2867 rm -f conftest.$ac_objext conftest$ac_exeext
2868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2869 (eval $ac_link) 2>&5
2870 ac_status=$?
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); } &&
2873 { ac_try='test -s conftest$ac_exeext'
2874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 (eval $ac_try) 2>&5
2876 ac_status=$?
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }; }; then
2879 ac_cv_lib_dnet_dnet_ntoa=yes
2880 else
2881 echo "$as_me: failed program was:" >&5
2882 cat conftest.$ac_ext >&5
2883 ac_cv_lib_dnet_dnet_ntoa=no
2885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2886 LIBS=$ac_check_lib_save_LIBS
2888 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2889 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2890 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2891 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2894 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2895 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2896 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2897 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900 ac_check_lib_save_LIBS=$LIBS
2901 LIBS="-ldnet_stub $LIBS"
2902 cat >conftest.$ac_ext <<_ACEOF
2903 #line $LINENO "configure"
2904 #include "confdefs.h"
2906 /* Override any gcc2 internal prototype to avoid an error. */
2907 #ifdef __cplusplus
2908 extern "C"
2909 #endif
2910 /* We use char because int might match the return type of a gcc2
2911 builtin and then its argument prototype would still apply. */
2912 char dnet_ntoa ();
2914 main ()
2916 dnet_ntoa ();
2918 return 0;
2920 _ACEOF
2921 rm -f conftest.$ac_objext conftest$ac_exeext
2922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2923 (eval $ac_link) 2>&5
2924 ac_status=$?
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } &&
2927 { ac_try='test -s conftest$ac_exeext'
2928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 (eval $ac_try) 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; }; then
2933 ac_cv_lib_dnet_stub_dnet_ntoa=yes
2934 else
2935 echo "$as_me: failed program was:" >&5
2936 cat conftest.$ac_ext >&5
2937 ac_cv_lib_dnet_stub_dnet_ntoa=no
2939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2940 LIBS=$ac_check_lib_save_LIBS
2942 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2943 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2944 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2945 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2951 LIBS="$ac_xsave_LIBS"
2953 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2954 # to get the SysV transport functions.
2955 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2956 # needs -lnsl.
2957 # The nsl library prevents programs from opening the X display
2958 # on Irix 5.2, according to T.E. Dickey.
2959 # The functions gethostbyname, getservbyname, and inet_addr are
2960 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2961 echo "$as_me:$LINENO: checking for gethostbyname" >&5
2962 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2963 if test "${ac_cv_func_gethostbyname+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966 cat >conftest.$ac_ext <<_ACEOF
2967 #line $LINENO "configure"
2968 #include "confdefs.h"
2969 /* System header to define __stub macros and hopefully few prototypes,
2970 which can conflict with char gethostbyname (); below. */
2971 #include <assert.h>
2972 /* Override any gcc2 internal prototype to avoid an error. */
2973 #ifdef __cplusplus
2974 extern "C"
2975 #endif
2976 /* We use char because int might match the return type of a gcc2
2977 builtin and then its argument prototype would still apply. */
2978 char gethostbyname ();
2979 char (*f) ();
2982 main ()
2984 /* The GNU C library defines this for functions which it implements
2985 to always fail with ENOSYS. Some functions are actually named
2986 something starting with __ and the normal name is an alias. */
2987 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2988 choke me
2989 #else
2990 f = gethostbyname;
2991 #endif
2994 return 0;
2996 _ACEOF
2997 rm -f conftest.$ac_objext conftest$ac_exeext
2998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2999 (eval $ac_link) 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); } &&
3003 { ac_try='test -s conftest$ac_exeext'
3004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005 (eval $ac_try) 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; }; then
3009 ac_cv_func_gethostbyname=yes
3010 else
3011 echo "$as_me: failed program was:" >&5
3012 cat conftest.$ac_ext >&5
3013 ac_cv_func_gethostbyname=no
3015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3017 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3018 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3020 if test $ac_cv_func_gethostbyname = no; then
3021 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3022 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3023 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026 ac_check_lib_save_LIBS=$LIBS
3027 LIBS="-lnsl $LIBS"
3028 cat >conftest.$ac_ext <<_ACEOF
3029 #line $LINENO "configure"
3030 #include "confdefs.h"
3032 /* Override any gcc2 internal prototype to avoid an error. */
3033 #ifdef __cplusplus
3034 extern "C"
3035 #endif
3036 /* We use char because int might match the return type of a gcc2
3037 builtin and then its argument prototype would still apply. */
3038 char gethostbyname ();
3040 main ()
3042 gethostbyname ();
3044 return 0;
3046 _ACEOF
3047 rm -f conftest.$ac_objext conftest$ac_exeext
3048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3049 (eval $ac_link) 2>&5
3050 ac_status=$?
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } &&
3053 { ac_try='test -s conftest$ac_exeext'
3054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 (eval $ac_try) 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3059 ac_cv_lib_nsl_gethostbyname=yes
3060 else
3061 echo "$as_me: failed program was:" >&5
3062 cat conftest.$ac_ext >&5
3063 ac_cv_lib_nsl_gethostbyname=no
3065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3066 LIBS=$ac_check_lib_save_LIBS
3068 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3069 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3070 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3071 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3074 if test $ac_cv_lib_nsl_gethostbyname = no; then
3075 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3076 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3077 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080 ac_check_lib_save_LIBS=$LIBS
3081 LIBS="-lbsd $LIBS"
3082 cat >conftest.$ac_ext <<_ACEOF
3083 #line $LINENO "configure"
3084 #include "confdefs.h"
3086 /* Override any gcc2 internal prototype to avoid an error. */
3087 #ifdef __cplusplus
3088 extern "C"
3089 #endif
3090 /* We use char because int might match the return type of a gcc2
3091 builtin and then its argument prototype would still apply. */
3092 char gethostbyname ();
3094 main ()
3096 gethostbyname ();
3098 return 0;
3100 _ACEOF
3101 rm -f conftest.$ac_objext conftest$ac_exeext
3102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3103 (eval $ac_link) 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } &&
3107 { ac_try='test -s conftest$ac_exeext'
3108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 (eval $ac_try) 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3113 ac_cv_lib_bsd_gethostbyname=yes
3114 else
3115 echo "$as_me: failed program was:" >&5
3116 cat conftest.$ac_ext >&5
3117 ac_cv_lib_bsd_gethostbyname=no
3119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3120 LIBS=$ac_check_lib_save_LIBS
3122 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3123 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3124 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3125 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3131 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3132 # socket/setsockopt and other routines are undefined under SCO ODT
3133 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3134 # on later versions), says Simon Leinen: it contains gethostby*
3135 # variants that don't use the name server (or something). -lsocket
3136 # must be given before -lnsl if both are needed. We assume that
3137 # if connect needs -lnsl, so does gethostbyname.
3138 echo "$as_me:$LINENO: checking for connect" >&5
3139 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3140 if test "${ac_cv_func_connect+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143 cat >conftest.$ac_ext <<_ACEOF
3144 #line $LINENO "configure"
3145 #include "confdefs.h"
3146 /* System header to define __stub macros and hopefully few prototypes,
3147 which can conflict with char connect (); below. */
3148 #include <assert.h>
3149 /* Override any gcc2 internal prototype to avoid an error. */
3150 #ifdef __cplusplus
3151 extern "C"
3152 #endif
3153 /* We use char because int might match the return type of a gcc2
3154 builtin and then its argument prototype would still apply. */
3155 char connect ();
3156 char (*f) ();
3159 main ()
3161 /* The GNU C library defines this for functions which it implements
3162 to always fail with ENOSYS. Some functions are actually named
3163 something starting with __ and the normal name is an alias. */
3164 #if defined (__stub_connect) || defined (__stub___connect)
3165 choke me
3166 #else
3167 f = connect;
3168 #endif
3171 return 0;
3173 _ACEOF
3174 rm -f conftest.$ac_objext conftest$ac_exeext
3175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3176 (eval $ac_link) 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } &&
3180 { ac_try='test -s conftest$ac_exeext'
3181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182 (eval $ac_try) 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; }; then
3186 ac_cv_func_connect=yes
3187 else
3188 echo "$as_me: failed program was:" >&5
3189 cat conftest.$ac_ext >&5
3190 ac_cv_func_connect=no
3192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3194 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3195 echo "${ECHO_T}$ac_cv_func_connect" >&6
3197 if test $ac_cv_func_connect = no; then
3198 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3199 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3200 if test "${ac_cv_lib_socket_connect+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203 ac_check_lib_save_LIBS=$LIBS
3204 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3205 cat >conftest.$ac_ext <<_ACEOF
3206 #line $LINENO "configure"
3207 #include "confdefs.h"
3209 /* Override any gcc2 internal prototype to avoid an error. */
3210 #ifdef __cplusplus
3211 extern "C"
3212 #endif
3213 /* We use char because int might match the return type of a gcc2
3214 builtin and then its argument prototype would still apply. */
3215 char connect ();
3217 main ()
3219 connect ();
3221 return 0;
3223 _ACEOF
3224 rm -f conftest.$ac_objext conftest$ac_exeext
3225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3226 (eval $ac_link) 2>&5
3227 ac_status=$?
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } &&
3230 { ac_try='test -s conftest$ac_exeext'
3231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232 (eval $ac_try) 2>&5
3233 ac_status=$?
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; }; then
3236 ac_cv_lib_socket_connect=yes
3237 else
3238 echo "$as_me: failed program was:" >&5
3239 cat conftest.$ac_ext >&5
3240 ac_cv_lib_socket_connect=no
3242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3243 LIBS=$ac_check_lib_save_LIBS
3245 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3246 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3247 if test $ac_cv_lib_socket_connect = yes; then
3248 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3253 # Guillermo Gomez says -lposix is necessary on A/UX.
3254 echo "$as_me:$LINENO: checking for remove" >&5
3255 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3256 if test "${ac_cv_func_remove+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259 cat >conftest.$ac_ext <<_ACEOF
3260 #line $LINENO "configure"
3261 #include "confdefs.h"
3262 /* System header to define __stub macros and hopefully few prototypes,
3263 which can conflict with char remove (); below. */
3264 #include <assert.h>
3265 /* Override any gcc2 internal prototype to avoid an error. */
3266 #ifdef __cplusplus
3267 extern "C"
3268 #endif
3269 /* We use char because int might match the return type of a gcc2
3270 builtin and then its argument prototype would still apply. */
3271 char remove ();
3272 char (*f) ();
3275 main ()
3277 /* The GNU C library defines this for functions which it implements
3278 to always fail with ENOSYS. Some functions are actually named
3279 something starting with __ and the normal name is an alias. */
3280 #if defined (__stub_remove) || defined (__stub___remove)
3281 choke me
3282 #else
3283 f = remove;
3284 #endif
3287 return 0;
3289 _ACEOF
3290 rm -f conftest.$ac_objext conftest$ac_exeext
3291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3292 (eval $ac_link) 2>&5
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } &&
3296 { ac_try='test -s conftest$ac_exeext'
3297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298 (eval $ac_try) 2>&5
3299 ac_status=$?
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; }; then
3302 ac_cv_func_remove=yes
3303 else
3304 echo "$as_me: failed program was:" >&5
3305 cat conftest.$ac_ext >&5
3306 ac_cv_func_remove=no
3308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3310 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3311 echo "${ECHO_T}$ac_cv_func_remove" >&6
3313 if test $ac_cv_func_remove = no; then
3314 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3315 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3316 if test "${ac_cv_lib_posix_remove+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 ac_check_lib_save_LIBS=$LIBS
3320 LIBS="-lposix $LIBS"
3321 cat >conftest.$ac_ext <<_ACEOF
3322 #line $LINENO "configure"
3323 #include "confdefs.h"
3325 /* Override any gcc2 internal prototype to avoid an error. */
3326 #ifdef __cplusplus
3327 extern "C"
3328 #endif
3329 /* We use char because int might match the return type of a gcc2
3330 builtin and then its argument prototype would still apply. */
3331 char remove ();
3333 main ()
3335 remove ();
3337 return 0;
3339 _ACEOF
3340 rm -f conftest.$ac_objext conftest$ac_exeext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3342 (eval $ac_link) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } &&
3346 { ac_try='test -s conftest$ac_exeext'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3352 ac_cv_lib_posix_remove=yes
3353 else
3354 echo "$as_me: failed program was:" >&5
3355 cat conftest.$ac_ext >&5
3356 ac_cv_lib_posix_remove=no
3358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3359 LIBS=$ac_check_lib_save_LIBS
3361 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3362 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3363 if test $ac_cv_lib_posix_remove = yes; then
3364 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3369 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3370 echo "$as_me:$LINENO: checking for shmat" >&5
3371 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3372 if test "${ac_cv_func_shmat+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375 cat >conftest.$ac_ext <<_ACEOF
3376 #line $LINENO "configure"
3377 #include "confdefs.h"
3378 /* System header to define __stub macros and hopefully few prototypes,
3379 which can conflict with char shmat (); below. */
3380 #include <assert.h>
3381 /* Override any gcc2 internal prototype to avoid an error. */
3382 #ifdef __cplusplus
3383 extern "C"
3384 #endif
3385 /* We use char because int might match the return type of a gcc2
3386 builtin and then its argument prototype would still apply. */
3387 char shmat ();
3388 char (*f) ();
3391 main ()
3393 /* The GNU C library defines this for functions which it implements
3394 to always fail with ENOSYS. Some functions are actually named
3395 something starting with __ and the normal name is an alias. */
3396 #if defined (__stub_shmat) || defined (__stub___shmat)
3397 choke me
3398 #else
3399 f = shmat;
3400 #endif
3403 return 0;
3405 _ACEOF
3406 rm -f conftest.$ac_objext conftest$ac_exeext
3407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3408 (eval $ac_link) 2>&5
3409 ac_status=$?
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } &&
3412 { ac_try='test -s conftest$ac_exeext'
3413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414 (eval $ac_try) 2>&5
3415 ac_status=$?
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }; }; then
3418 ac_cv_func_shmat=yes
3419 else
3420 echo "$as_me: failed program was:" >&5
3421 cat conftest.$ac_ext >&5
3422 ac_cv_func_shmat=no
3424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3426 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3427 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3429 if test $ac_cv_func_shmat = no; then
3430 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3431 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3432 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435 ac_check_lib_save_LIBS=$LIBS
3436 LIBS="-lipc $LIBS"
3437 cat >conftest.$ac_ext <<_ACEOF
3438 #line $LINENO "configure"
3439 #include "confdefs.h"
3441 /* Override any gcc2 internal prototype to avoid an error. */
3442 #ifdef __cplusplus
3443 extern "C"
3444 #endif
3445 /* We use char because int might match the return type of a gcc2
3446 builtin and then its argument prototype would still apply. */
3447 char shmat ();
3449 main ()
3451 shmat ();
3453 return 0;
3455 _ACEOF
3456 rm -f conftest.$ac_objext conftest$ac_exeext
3457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3458 (eval $ac_link) 2>&5
3459 ac_status=$?
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try='test -s conftest$ac_exeext'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 (eval $ac_try) 2>&5
3465 ac_status=$?
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; }; then
3468 ac_cv_lib_ipc_shmat=yes
3469 else
3470 echo "$as_me: failed program was:" >&5
3471 cat conftest.$ac_ext >&5
3472 ac_cv_lib_ipc_shmat=no
3474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3475 LIBS=$ac_check_lib_save_LIBS
3477 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3478 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3479 if test $ac_cv_lib_ipc_shmat = yes; then
3480 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3486 # Check for libraries that X11R6 Xt/Xaw programs need.
3487 ac_save_LDFLAGS=$LDFLAGS
3488 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3489 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3490 # check for ICE first), but we must link in the order -lSM -lICE or
3491 # we get undefined symbols. So assume we have SM if we have ICE.
3492 # These have to be linked with before -lX11, unlike the other
3493 # libraries we check for below, so use a different variable.
3494 # John Interrante, Karl Berry
3495 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3496 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3497 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500 ac_check_lib_save_LIBS=$LIBS
3501 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3502 cat >conftest.$ac_ext <<_ACEOF
3503 #line $LINENO "configure"
3504 #include "confdefs.h"
3506 /* Override any gcc2 internal prototype to avoid an error. */
3507 #ifdef __cplusplus
3508 extern "C"
3509 #endif
3510 /* We use char because int might match the return type of a gcc2
3511 builtin and then its argument prototype would still apply. */
3512 char IceConnectionNumber ();
3514 main ()
3516 IceConnectionNumber ();
3518 return 0;
3520 _ACEOF
3521 rm -f conftest.$ac_objext conftest$ac_exeext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3523 (eval $ac_link) 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } &&
3527 { ac_try='test -s conftest$ac_exeext'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529 (eval $ac_try) 2>&5
3530 ac_status=$?
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; }; then
3533 ac_cv_lib_ICE_IceConnectionNumber=yes
3534 else
3535 echo "$as_me: failed program was:" >&5
3536 cat conftest.$ac_ext >&5
3537 ac_cv_lib_ICE_IceConnectionNumber=no
3539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3540 LIBS=$ac_check_lib_save_LIBS
3542 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3543 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3544 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3545 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3548 LDFLAGS=$ac_save_LDFLAGS
3552 for ac_prog in 'bison -y' byacc
3554 # Extract the first word of "$ac_prog", so it can be a program name with args.
3555 set dummy $ac_prog; ac_word=$2
3556 echo "$as_me:$LINENO: checking for $ac_word" >&5
3557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3558 if test "${ac_cv_prog_YACC+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561 if test -n "$YACC"; then
3562 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 ac_cv_prog_YACC="$ac_prog"
3572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3575 done
3576 done
3580 YACC=$ac_cv_prog_YACC
3581 if test -n "$YACC"; then
3582 echo "$as_me:$LINENO: result: $YACC" >&5
3583 echo "${ECHO_T}$YACC" >&6
3584 else
3585 echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3589 test -n "$YACC" && break
3590 done
3591 test -n "$YACC" || YACC="yacc"
3593 for ac_prog in flex lex
3595 # Extract the first word of "$ac_prog", so it can be a program name with args.
3596 set dummy $ac_prog; ac_word=$2
3597 echo "$as_me:$LINENO: checking for $ac_word" >&5
3598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3599 if test "${ac_cv_prog_LEX+set}" = set; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 else
3602 if test -n "$LEX"; then
3603 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3604 else
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 for as_dir in $PATH
3608 IFS=$as_save_IFS
3609 test -z "$as_dir" && as_dir=.
3610 for ac_exec_ext in '' $ac_executable_extensions; do
3611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3612 ac_cv_prog_LEX="$ac_prog"
3613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 break 2
3616 done
3617 done
3621 LEX=$ac_cv_prog_LEX
3622 if test -n "$LEX"; then
3623 echo "$as_me:$LINENO: result: $LEX" >&5
3624 echo "${ECHO_T}$LEX" >&6
3625 else
3626 echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6
3630 test -n "$LEX" && break
3631 done
3632 test -n "$LEX" || LEX=":"
3634 if test -z "$LEXLIB"
3635 then
3636 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3637 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3638 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641 ac_check_lib_save_LIBS=$LIBS
3642 LIBS="-lfl $LIBS"
3643 cat >conftest.$ac_ext <<_ACEOF
3644 #line $LINENO "configure"
3645 #include "confdefs.h"
3647 /* Override any gcc2 internal prototype to avoid an error. */
3648 #ifdef __cplusplus
3649 extern "C"
3650 #endif
3651 /* We use char because int might match the return type of a gcc2
3652 builtin and then its argument prototype would still apply. */
3653 char yywrap ();
3655 main ()
3657 yywrap ();
3659 return 0;
3661 _ACEOF
3662 rm -f conftest.$ac_objext conftest$ac_exeext
3663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3664 (eval $ac_link) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } &&
3668 { ac_try='test -s conftest$ac_exeext'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 (eval $ac_try) 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; }; then
3674 ac_cv_lib_fl_yywrap=yes
3675 else
3676 echo "$as_me: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3678 ac_cv_lib_fl_yywrap=no
3680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3681 LIBS=$ac_check_lib_save_LIBS
3683 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3684 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3685 if test $ac_cv_lib_fl_yywrap = yes; then
3686 LEXLIB="-lfl"
3687 else
3688 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3689 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3690 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 else
3693 ac_check_lib_save_LIBS=$LIBS
3694 LIBS="-ll $LIBS"
3695 cat >conftest.$ac_ext <<_ACEOF
3696 #line $LINENO "configure"
3697 #include "confdefs.h"
3699 /* Override any gcc2 internal prototype to avoid an error. */
3700 #ifdef __cplusplus
3701 extern "C"
3702 #endif
3703 /* We use char because int might match the return type of a gcc2
3704 builtin and then its argument prototype would still apply. */
3705 char yywrap ();
3707 main ()
3709 yywrap ();
3711 return 0;
3713 _ACEOF
3714 rm -f conftest.$ac_objext conftest$ac_exeext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3716 (eval $ac_link) 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } &&
3720 { ac_try='test -s conftest$ac_exeext'
3721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 (eval $ac_try) 2>&5
3723 ac_status=$?
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; }; then
3726 ac_cv_lib_l_yywrap=yes
3727 else
3728 echo "$as_me: failed program was:" >&5
3729 cat conftest.$ac_ext >&5
3730 ac_cv_lib_l_yywrap=no
3732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3733 LIBS=$ac_check_lib_save_LIBS
3735 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3736 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3737 if test $ac_cv_lib_l_yywrap = yes; then
3738 LEXLIB="-ll"
3745 if test "x$LEX" != "x:"; then
3746 echo "$as_me:$LINENO: checking lex output file root" >&5
3747 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3748 if test "${ac_cv_prog_lex_root+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751 # The minimal lex program is just a single line: %%. But some broken lexes
3752 # (Solaris, I think it was) want two %% lines, so accommodate them.
3753 cat >conftest.l <<_ACEOF
3756 _ACEOF
3757 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3758 (eval $LEX conftest.l) 2>&5
3759 ac_status=$?
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); }
3762 if test -f lex.yy.c; then
3763 ac_cv_prog_lex_root=lex.yy
3764 elif test -f lexyy.c; then
3765 ac_cv_prog_lex_root=lexyy
3766 else
3767 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3768 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3769 { (exit 1); exit 1; }; }
3772 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3773 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3774 rm -f conftest.l
3775 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3777 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3778 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3779 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782 # POSIX says lex can declare yytext either as a pointer or an array; the
3783 # default is implementation-dependent. Figure out which it is, since
3784 # not all implementations provide the %pointer and %array declarations.
3785 ac_cv_prog_lex_yytext_pointer=no
3786 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3787 ac_save_LIBS=$LIBS
3788 LIBS="$LIBS $LEXLIB"
3789 cat >conftest.$ac_ext <<_ACEOF
3790 `cat $LEX_OUTPUT_ROOT.c`
3791 _ACEOF
3792 rm -f conftest.$ac_objext conftest$ac_exeext
3793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3794 (eval $ac_link) 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } &&
3798 { ac_try='test -s conftest$ac_exeext'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 (eval $ac_try) 2>&5
3801 ac_status=$?
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; }; then
3804 ac_cv_prog_lex_yytext_pointer=yes
3805 else
3806 echo "$as_me: failed program was:" >&5
3807 cat conftest.$ac_ext >&5
3809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3810 LIBS=$ac_save_LIBS
3811 rm -f "${LEX_OUTPUT_ROOT}.c"
3814 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3815 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3816 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3818 cat >>confdefs.h <<\_ACEOF
3819 #define YYTEXT_POINTER 1
3820 _ACEOF
3826 for ac_prog in $YACC bison yacc
3828 # Extract the first word of "$ac_prog", so it can be a program name with args.
3829 set dummy $ac_prog; ac_word=$2
3830 echo "$as_me:$LINENO: checking for $ac_word" >&5
3831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3832 if test "${ac_cv_prog_XYACC+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835 if test -n "$XYACC"; then
3836 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3837 else
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH
3841 IFS=$as_save_IFS
3842 test -z "$as_dir" && as_dir=.
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3845 ac_cv_prog_XYACC="$ac_prog"
3846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 break 2
3849 done
3850 done
3854 XYACC=$ac_cv_prog_XYACC
3855 if test -n "$XYACC"; then
3856 echo "$as_me:$LINENO: result: $XYACC" >&5
3857 echo "${ECHO_T}$XYACC" >&6
3858 else
3859 echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3863 test -n "$XYACC" && break
3864 done
3865 test -n "$XYACC" || XYACC="none"
3867 if test "$XYACC" = "none"
3868 then
3869 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
3870 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3871 { (exit 1); exit 1; }; }
3873 for ac_prog in $LEX flex lex
3875 # Extract the first word of "$ac_prog", so it can be a program name with args.
3876 set dummy $ac_prog; ac_word=$2
3877 echo "$as_me:$LINENO: checking for $ac_word" >&5
3878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3879 if test "${ac_cv_prog_XLEX+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882 if test -n "$XLEX"; then
3883 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3884 else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3892 ac_cv_prog_XLEX="$ac_prog"
3893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 break 2
3896 done
3897 done
3901 XLEX=$ac_cv_prog_XLEX
3902 if test -n "$XLEX"; then
3903 echo "$as_me:$LINENO: result: $XLEX" >&5
3904 echo "${ECHO_T}$XLEX" >&6
3905 else
3906 echo "$as_me:$LINENO: result: no" >&5
3907 echo "${ECHO_T}no" >&6
3910 test -n "$XLEX" && break
3911 done
3912 test -n "$XLEX" || XLEX="none"
3914 if test "$XLEX" = "none"
3915 then
3916 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
3917 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3918 { (exit 1); exit 1; }; }
3921 if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3923 set dummy ${ac_tool_prefix}ld; ac_word=$2
3924 echo "$as_me:$LINENO: checking for $ac_word" >&5
3925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926 if test "${ac_cv_prog_LD+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929 if test -n "$LD"; then
3930 ac_cv_prog_LD="$LD" # Let the user override the test.
3931 else
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_LD="${ac_tool_prefix}ld"
3940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3943 done
3944 done
3948 LD=$ac_cv_prog_LD
3949 if test -n "$LD"; then
3950 echo "$as_me:$LINENO: result: $LD" >&5
3951 echo "${ECHO_T}$LD" >&6
3952 else
3953 echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3958 if test -z "$ac_cv_prog_LD"; then
3959 ac_ct_LD=$LD
3960 # Extract the first word of "ld", so it can be a program name with args.
3961 set dummy ld; ac_word=$2
3962 echo "$as_me:$LINENO: checking for $ac_word" >&5
3963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3964 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967 if test -n "$ac_ct_LD"; then
3968 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3969 else
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_LD="ld"
3978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 break 2
3981 done
3982 done
3984 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3987 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3988 if test -n "$ac_ct_LD"; then
3989 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3990 echo "${ECHO_T}$ac_ct_LD" >&6
3991 else
3992 echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3996 LD=$ac_ct_LD
3997 else
3998 LD="$ac_cv_prog_LD"
4001 if test -n "$ac_tool_prefix"; then
4002 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4003 set dummy ${ac_tool_prefix}ar; ac_word=$2
4004 echo "$as_me:$LINENO: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006 if test "${ac_cv_prog_AR+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009 if test -n "$AR"; then
4010 ac_cv_prog_AR="$AR" # Let the user override the test.
4011 else
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_prog_AR="${ac_tool_prefix}ar"
4020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4021 break 2
4023 done
4024 done
4028 AR=$ac_cv_prog_AR
4029 if test -n "$AR"; then
4030 echo "$as_me:$LINENO: result: $AR" >&5
4031 echo "${ECHO_T}$AR" >&6
4032 else
4033 echo "$as_me:$LINENO: result: no" >&5
4034 echo "${ECHO_T}no" >&6
4038 if test -z "$ac_cv_prog_AR"; then
4039 ac_ct_AR=$AR
4040 # Extract the first word of "ar", so it can be a program name with args.
4041 set dummy ar; ac_word=$2
4042 echo "$as_me:$LINENO: checking for $ac_word" >&5
4043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4044 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047 if test -n "$ac_ct_AR"; then
4048 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4049 else
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4057 ac_cv_prog_ac_ct_AR="ar"
4058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 break 2
4061 done
4062 done
4064 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4067 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4068 if test -n "$ac_ct_AR"; then
4069 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4070 echo "${ECHO_T}$ac_ct_AR" >&6
4071 else
4072 echo "$as_me:$LINENO: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4076 AR=$ac_ct_AR
4077 else
4078 AR="$ac_cv_prog_AR"
4081 if test -n "$ac_tool_prefix"; then
4082 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4083 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_RANLIB+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089 if test -n "$RANLIB"; then
4090 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4091 else
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4095 IFS=$as_save_IFS
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101 break 2
4103 done
4104 done
4108 RANLIB=$ac_cv_prog_RANLIB
4109 if test -n "$RANLIB"; then
4110 echo "$as_me:$LINENO: result: $RANLIB" >&5
4111 echo "${ECHO_T}$RANLIB" >&6
4112 else
4113 echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4118 if test -z "$ac_cv_prog_RANLIB"; then
4119 ac_ct_RANLIB=$RANLIB
4120 # Extract the first word of "ranlib", so it can be a program name with args.
4121 set dummy ranlib; ac_word=$2
4122 echo "$as_me:$LINENO: checking for $ac_word" >&5
4123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4124 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127 if test -n "$ac_ct_RANLIB"; then
4128 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4129 else
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4137 ac_cv_prog_ac_ct_RANLIB="ranlib"
4138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 break 2
4141 done
4142 done
4144 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4147 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4148 if test -n "$ac_ct_RANLIB"; then
4149 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4150 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4151 else
4152 echo "$as_me:$LINENO: result: no" >&5
4153 echo "${ECHO_T}no" >&6
4156 RANLIB=$ac_ct_RANLIB
4157 else
4158 RANLIB="$ac_cv_prog_RANLIB"
4161 if test -n "$ac_tool_prefix"; then
4162 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4163 set dummy ${ac_tool_prefix}strip; ac_word=$2
4164 echo "$as_me:$LINENO: checking for $ac_word" >&5
4165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4166 if test "${ac_cv_prog_STRIP+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169 if test -n "$STRIP"; then
4170 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4171 else
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH
4175 IFS=$as_save_IFS
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 break 2
4183 done
4184 done
4188 STRIP=$ac_cv_prog_STRIP
4189 if test -n "$STRIP"; then
4190 echo "$as_me:$LINENO: result: $STRIP" >&5
4191 echo "${ECHO_T}$STRIP" >&6
4192 else
4193 echo "$as_me:$LINENO: result: no" >&5
4194 echo "${ECHO_T}no" >&6
4198 if test -z "$ac_cv_prog_STRIP"; then
4199 ac_ct_STRIP=$STRIP
4200 # Extract the first word of "strip", so it can be a program name with args.
4201 set dummy strip; ac_word=$2
4202 echo "$as_me:$LINENO: checking for $ac_word" >&5
4203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4204 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207 if test -n "$ac_ct_STRIP"; then
4208 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4209 else
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217 ac_cv_prog_ac_ct_STRIP="strip"
4218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 break 2
4221 done
4222 done
4224 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4227 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4228 if test -n "$ac_ct_STRIP"; then
4229 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4230 echo "${ECHO_T}$ac_ct_STRIP" >&6
4231 else
4232 echo "$as_me:$LINENO: result: no" >&5
4233 echo "${ECHO_T}no" >&6
4236 STRIP=$ac_ct_STRIP
4237 else
4238 STRIP="$ac_cv_prog_STRIP"
4241 if test -n "$ac_tool_prefix"; then
4242 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4243 set dummy ${ac_tool_prefix}windres; ac_word=$2
4244 echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4246 if test "${ac_cv_prog_WINDRES+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 if test -n "$WINDRES"; then
4250 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4263 done
4264 done
4268 WINDRES=$ac_cv_prog_WINDRES
4269 if test -n "$WINDRES"; then
4270 echo "$as_me:$LINENO: result: $WINDRES" >&5
4271 echo "${ECHO_T}$WINDRES" >&6
4272 else
4273 echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6
4278 if test -z "$ac_cv_prog_WINDRES"; then
4279 ac_ct_WINDRES=$WINDRES
4280 # Extract the first word of "windres", so it can be a program name with args.
4281 set dummy windres; ac_word=$2
4282 echo "$as_me:$LINENO: checking for $ac_word" >&5
4283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4284 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287 if test -n "$ac_ct_WINDRES"; then
4288 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4289 else
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4297 ac_cv_prog_ac_ct_WINDRES="windres"
4298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 break 2
4301 done
4302 done
4304 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4307 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4308 if test -n "$ac_ct_WINDRES"; then
4309 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4310 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4311 else
4312 echo "$as_me:$LINENO: result: no" >&5
4313 echo "${ECHO_T}no" >&6
4316 WINDRES=$ac_ct_WINDRES
4317 else
4318 WINDRES="$ac_cv_prog_WINDRES"
4321 # Find a good install program. We prefer a C program (faster),
4322 # so one script is as good as another. But avoid the broken or
4323 # incompatible versions:
4324 # SysV /etc/install, /usr/sbin/install
4325 # SunOS /usr/etc/install
4326 # IRIX /sbin/install
4327 # AIX /bin/install
4328 # AmigaOS /C/install, which installs bootblocks on floppy discs
4329 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4330 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4331 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4332 # ./install, which can be erroneously created by make from ./install.sh.
4333 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4334 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4335 if test -z "$INSTALL"; then
4336 if test "${ac_cv_path_install+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4338 else
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 # Account for people who put trailing slashes in PATH elements.
4345 case $as_dir/ in
4346 ./ | .// | /cC/* | \
4347 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4348 /usr/ucb/* ) ;;
4350 # OSF1 and SCO ODT 3.0 have their own names for install.
4351 # Don't use installbsd from OSF since it installs stuff as root
4352 # by default.
4353 for ac_prog in ginstall scoinst install; do
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4356 if test $ac_prog = install &&
4357 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4358 # AIX install. It has an incompatible calling convention.
4360 elif test $ac_prog = install &&
4361 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4362 # program-specific install script used by HP pwplus--don't use.
4364 else
4365 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4366 break 3
4369 done
4370 done
4372 esac
4373 done
4377 if test "${ac_cv_path_install+set}" = set; then
4378 INSTALL=$ac_cv_path_install
4379 else
4380 # As a last resort, use the slow shell script. We don't cache a
4381 # path for INSTALL within a source directory, because that will
4382 # break other packages using the cache if that directory is
4383 # removed, or if the path is relative.
4384 INSTALL=$ac_install_sh
4387 echo "$as_me:$LINENO: result: $INSTALL" >&5
4388 echo "${ECHO_T}$INSTALL" >&6
4390 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4391 # It thinks the first close brace ends the variable substitution.
4392 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4394 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4396 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4398 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4399 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4400 LN_S=$as_ln_s
4401 if test "$LN_S" = "ln -s"; then
4402 echo "$as_me:$LINENO: result: yes" >&5
4403 echo "${ECHO_T}yes" >&6
4404 else
4405 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4406 echo "${ECHO_T}no, using $LN_S" >&6
4409 echo "$as_me:$LINENO: checking whether ln works" >&5
4410 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4411 rm -f conf$$ conf$$.file
4412 echo >conf$$.file
4413 if ln conf$$.file conf$$ 2>/dev/null; then
4414 LN=ln
4416 echo "$as_me:$LINENO: result: yes" >&5
4417 echo "${ECHO_T}yes" >&6
4418 else
4419 LN="cp -p"
4421 echo "$as_me:$LINENO: result: no, using $LN" >&5
4422 echo "${ECHO_T}no, using $LN" >&6
4424 rm -f conf$$ conf$$.file
4425 # Extract the first word of "c2man", so it can be a program name with args.
4426 set dummy c2man; ac_word=$2
4427 echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4429 if test "${ac_cv_prog_C2MAN+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432 if test -n "$C2MAN"; then
4433 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4438 IFS=$as_save_IFS
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4442 ac_cv_prog_C2MAN="c2man"
4443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 break 2
4446 done
4447 done
4449 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4452 C2MAN=$ac_cv_prog_C2MAN
4453 if test -n "$C2MAN"; then
4454 echo "$as_me:$LINENO: result: $C2MAN" >&5
4455 echo "${ECHO_T}$C2MAN" >&6
4456 else
4457 echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6
4461 # Extract the first word of "ldconfig", so it can be a program name with args.
4462 set dummy ldconfig; ac_word=$2
4463 echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4465 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468 case $LDCONFIG in
4469 [\\/]* | ?:[\\/]*)
4470 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in /sbin /usr/sbin $PATH
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482 break 2
4484 done
4485 done
4487 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4489 esac
4491 LDCONFIG=$ac_cv_path_LDCONFIG
4493 if test -n "$LDCONFIG"; then
4494 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4495 echo "${ECHO_T}$LDCONFIG" >&6
4496 else
4497 echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6
4502 for ac_prog in lclint lint
4504 # Extract the first word of "$ac_prog", so it can be a program name with args.
4505 set dummy $ac_prog; ac_word=$2
4506 echo "$as_me:$LINENO: checking for $ac_word" >&5
4507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4508 if test "${ac_cv_prog_LINT+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511 if test -n "$LINT"; then
4512 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4513 else
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521 ac_cv_prog_LINT="$ac_prog"
4522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 break 2
4525 done
4526 done
4530 LINT=$ac_cv_prog_LINT
4531 if test -n "$LINT"; then
4532 echo "$as_me:$LINENO: result: $LINT" >&5
4533 echo "${ECHO_T}$LINT" >&6
4534 else
4535 echo "$as_me:$LINENO: result: no" >&5
4536 echo "${ECHO_T}no" >&6
4539 test -n "$LINT" && break
4540 done
4542 if test "$LINT" = "lint"
4543 then
4544 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4549 for ac_prog in docbook2html db2html
4551 # Extract the first word of "$ac_prog", so it can be a program name with args.
4552 set dummy $ac_prog; ac_word=$2
4553 echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4555 if test "${ac_cv_prog_DB2HTML+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558 if test -n "$DB2HTML"; then
4559 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568 ac_cv_prog_DB2HTML="$ac_prog"
4569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4572 done
4573 done
4577 DB2HTML=$ac_cv_prog_DB2HTML
4578 if test -n "$DB2HTML"; then
4579 echo "$as_me:$LINENO: result: $DB2HTML" >&5
4580 echo "${ECHO_T}$DB2HTML" >&6
4581 else
4582 echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6
4586 test -n "$DB2HTML" && break
4587 done
4588 test -n "$DB2HTML" || DB2HTML="false"
4592 for ac_prog in docbook2pdf db2pdf
4594 # Extract the first word of "$ac_prog", so it can be a program name with args.
4595 set dummy $ac_prog; ac_word=$2
4596 echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4598 if test "${ac_cv_prog_DB2PDF+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601 if test -n "$DB2PDF"; then
4602 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611 ac_cv_prog_DB2PDF="$ac_prog"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4615 done
4616 done
4620 DB2PDF=$ac_cv_prog_DB2PDF
4621 if test -n "$DB2PDF"; then
4622 echo "$as_me:$LINENO: result: $DB2PDF" >&5
4623 echo "${ECHO_T}$DB2PDF" >&6
4624 else
4625 echo "$as_me:$LINENO: result: no" >&5
4626 echo "${ECHO_T}no" >&6
4629 test -n "$DB2PDF" && break
4630 done
4631 test -n "$DB2PDF" || DB2PDF="false"
4635 for ac_prog in docbook2ps db2ps
4637 # Extract the first word of "$ac_prog", so it can be a program name with args.
4638 set dummy $ac_prog; ac_word=$2
4639 echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4641 if test "${ac_cv_prog_DB2PS+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644 if test -n "$DB2PS"; then
4645 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_DB2PS="$ac_prog"
4655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4658 done
4659 done
4663 DB2PS=$ac_cv_prog_DB2PS
4664 if test -n "$DB2PS"; then
4665 echo "$as_me:$LINENO: result: $DB2PS" >&5
4666 echo "${ECHO_T}$DB2PS" >&6
4667 else
4668 echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6
4672 test -n "$DB2PS" && break
4673 done
4674 test -n "$DB2PS" || DB2PS="false"
4680 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4681 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4682 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 else
4685 ac_check_lib_save_LIBS=$LIBS
4686 LIBS="-lm $LIBS"
4687 cat >conftest.$ac_ext <<_ACEOF
4688 #line $LINENO "configure"
4689 #include "confdefs.h"
4691 /* Override any gcc2 internal prototype to avoid an error. */
4692 #ifdef __cplusplus
4693 extern "C"
4694 #endif
4695 /* We use char because int might match the return type of a gcc2
4696 builtin and then its argument prototype would still apply. */
4697 char sqrt ();
4699 main ()
4701 sqrt ();
4703 return 0;
4705 _ACEOF
4706 rm -f conftest.$ac_objext conftest$ac_exeext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4708 (eval $ac_link) 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try='test -s conftest$ac_exeext'
4713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714 (eval $ac_try) 2>&5
4715 ac_status=$?
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; }; then
4718 ac_cv_lib_m_sqrt=yes
4719 else
4720 echo "$as_me: failed program was:" >&5
4721 cat conftest.$ac_ext >&5
4722 ac_cv_lib_m_sqrt=no
4724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4725 LIBS=$ac_check_lib_save_LIBS
4727 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4728 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4729 if test $ac_cv_lib_m_sqrt = yes; then
4730 cat >>confdefs.h <<_ACEOF
4731 #define HAVE_LIBM 1
4732 _ACEOF
4734 LIBS="-lm $LIBS"
4739 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
4740 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4741 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744 ac_check_lib_save_LIBS=$LIBS
4745 LIBS="-li386 $LIBS"
4746 cat >conftest.$ac_ext <<_ACEOF
4747 #line $LINENO "configure"
4748 #include "confdefs.h"
4750 /* Override any gcc2 internal prototype to avoid an error. */
4751 #ifdef __cplusplus
4752 extern "C"
4753 #endif
4754 /* We use char because int might match the return type of a gcc2
4755 builtin and then its argument prototype would still apply. */
4756 char i386_set_ldt ();
4758 main ()
4760 i386_set_ldt ();
4762 return 0;
4764 _ACEOF
4765 rm -f conftest.$ac_objext conftest$ac_exeext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4767 (eval $ac_link) 2>&5
4768 ac_status=$?
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } &&
4771 { ac_try='test -s conftest$ac_exeext'
4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773 (eval $ac_try) 2>&5
4774 ac_status=$?
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; }; then
4777 ac_cv_lib_i386_i386_set_ldt=yes
4778 else
4779 echo "$as_me: failed program was:" >&5
4780 cat conftest.$ac_ext >&5
4781 ac_cv_lib_i386_i386_set_ldt=no
4783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4784 LIBS=$ac_check_lib_save_LIBS
4786 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
4787 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4788 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
4789 cat >>confdefs.h <<_ACEOF
4790 #define HAVE_LIBI386 1
4791 _ACEOF
4793 LIBS="-li386 $LIBS"
4798 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4799 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4800 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4802 else
4803 ac_check_lib_save_LIBS=$LIBS
4804 LIBS="-lossaudio $LIBS"
4805 cat >conftest.$ac_ext <<_ACEOF
4806 #line $LINENO "configure"
4807 #include "confdefs.h"
4809 /* Override any gcc2 internal prototype to avoid an error. */
4810 #ifdef __cplusplus
4811 extern "C"
4812 #endif
4813 /* We use char because int might match the return type of a gcc2
4814 builtin and then its argument prototype would still apply. */
4815 char _oss_ioctl ();
4817 main ()
4819 _oss_ioctl ();
4821 return 0;
4823 _ACEOF
4824 rm -f conftest.$ac_objext conftest$ac_exeext
4825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4826 (eval $ac_link) 2>&5
4827 ac_status=$?
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } &&
4830 { ac_try='test -s conftest$ac_exeext'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832 (eval $ac_try) 2>&5
4833 ac_status=$?
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; }; then
4836 ac_cv_lib_ossaudio__oss_ioctl=yes
4837 else
4838 echo "$as_me: failed program was:" >&5
4839 cat conftest.$ac_ext >&5
4840 ac_cv_lib_ossaudio__oss_ioctl=no
4842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4843 LIBS=$ac_check_lib_save_LIBS
4845 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4846 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4847 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4848 cat >>confdefs.h <<_ACEOF
4849 #define HAVE_LIBOSSAUDIO 1
4850 _ACEOF
4852 LIBS="-lossaudio $LIBS"
4857 for ac_func in iswalnum
4859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4860 echo "$as_me:$LINENO: checking for $ac_func" >&5
4861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4862 if eval "test \"\${$as_ac_var+set}\" = set"; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865 cat >conftest.$ac_ext <<_ACEOF
4866 #line $LINENO "configure"
4867 #include "confdefs.h"
4868 /* System header to define __stub macros and hopefully few prototypes,
4869 which can conflict with char $ac_func (); below. */
4870 #include <assert.h>
4871 /* Override any gcc2 internal prototype to avoid an error. */
4872 #ifdef __cplusplus
4873 extern "C"
4874 #endif
4875 /* We use char because int might match the return type of a gcc2
4876 builtin and then its argument prototype would still apply. */
4877 char $ac_func ();
4878 char (*f) ();
4881 main ()
4883 /* The GNU C library defines this for functions which it implements
4884 to always fail with ENOSYS. Some functions are actually named
4885 something starting with __ and the normal name is an alias. */
4886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4887 choke me
4888 #else
4889 f = $ac_func;
4890 #endif
4893 return 0;
4895 _ACEOF
4896 rm -f conftest.$ac_objext conftest$ac_exeext
4897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4898 (eval $ac_link) 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } &&
4902 { ac_try='test -s conftest$ac_exeext'
4903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904 (eval $ac_try) 2>&5
4905 ac_status=$?
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); }; }; then
4908 eval "$as_ac_var=yes"
4909 else
4910 echo "$as_me: failed program was:" >&5
4911 cat conftest.$ac_ext >&5
4912 eval "$as_ac_var=no"
4914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4918 if test `eval echo '${'$as_ac_var'}'` = yes; then
4919 cat >>confdefs.h <<_ACEOF
4920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4921 _ACEOF
4923 else
4925 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
4926 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4927 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4930 ac_check_lib_save_LIBS=$LIBS
4931 LIBS="-lw $LIBS"
4932 cat >conftest.$ac_ext <<_ACEOF
4933 #line $LINENO "configure"
4934 #include "confdefs.h"
4936 /* Override any gcc2 internal prototype to avoid an error. */
4937 #ifdef __cplusplus
4938 extern "C"
4939 #endif
4940 /* We use char because int might match the return type of a gcc2
4941 builtin and then its argument prototype would still apply. */
4942 char iswalnum ();
4944 main ()
4946 iswalnum ();
4948 return 0;
4950 _ACEOF
4951 rm -f conftest.$ac_objext conftest$ac_exeext
4952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4953 (eval $ac_link) 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } &&
4957 { ac_try='test -s conftest$ac_exeext'
4958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 (eval $ac_try) 2>&5
4960 ac_status=$?
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; }; then
4963 ac_cv_lib_w_iswalnum=yes
4964 else
4965 echo "$as_me: failed program was:" >&5
4966 cat conftest.$ac_ext >&5
4967 ac_cv_lib_w_iswalnum=no
4969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4970 LIBS=$ac_check_lib_save_LIBS
4972 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
4973 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4974 if test $ac_cv_lib_w_iswalnum = yes; then
4975 cat >>confdefs.h <<_ACEOF
4976 #define HAVE_LIBW 1
4977 _ACEOF
4979 LIBS="-lw $LIBS"
4984 done
4987 for ac_func in gethostbyname
4989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4990 echo "$as_me:$LINENO: checking for $ac_func" >&5
4991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4992 if eval "test \"\${$as_ac_var+set}\" = set"; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 else
4995 cat >conftest.$ac_ext <<_ACEOF
4996 #line $LINENO "configure"
4997 #include "confdefs.h"
4998 /* System header to define __stub macros and hopefully few prototypes,
4999 which can conflict with char $ac_func (); below. */
5000 #include <assert.h>
5001 /* Override any gcc2 internal prototype to avoid an error. */
5002 #ifdef __cplusplus
5003 extern "C"
5004 #endif
5005 /* We use char because int might match the return type of a gcc2
5006 builtin and then its argument prototype would still apply. */
5007 char $ac_func ();
5008 char (*f) ();
5011 main ()
5013 /* The GNU C library defines this for functions which it implements
5014 to always fail with ENOSYS. Some functions are actually named
5015 something starting with __ and the normal name is an alias. */
5016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5017 choke me
5018 #else
5019 f = $ac_func;
5020 #endif
5023 return 0;
5025 _ACEOF
5026 rm -f conftest.$ac_objext conftest$ac_exeext
5027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5028 (eval $ac_link) 2>&5
5029 ac_status=$?
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } &&
5032 { ac_try='test -s conftest$ac_exeext'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 (eval $ac_try) 2>&5
5035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; }; then
5038 eval "$as_ac_var=yes"
5039 else
5040 echo "$as_me: failed program was:" >&5
5041 cat conftest.$ac_ext >&5
5042 eval "$as_ac_var=no"
5044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5047 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5048 if test `eval echo '${'$as_ac_var'}'` = yes; then
5049 cat >>confdefs.h <<_ACEOF
5050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5051 _ACEOF
5053 else
5055 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5056 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5057 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
5059 else
5060 ac_check_lib_save_LIBS=$LIBS
5061 LIBS="-lnsl $LIBS"
5062 cat >conftest.$ac_ext <<_ACEOF
5063 #line $LINENO "configure"
5064 #include "confdefs.h"
5066 /* Override any gcc2 internal prototype to avoid an error. */
5067 #ifdef __cplusplus
5068 extern "C"
5069 #endif
5070 /* We use char because int might match the return type of a gcc2
5071 builtin and then its argument prototype would still apply. */
5072 char gethostbyname ();
5074 main ()
5076 gethostbyname ();
5078 return 0;
5080 _ACEOF
5081 rm -f conftest.$ac_objext conftest$ac_exeext
5082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5083 (eval $ac_link) 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } &&
5087 { ac_try='test -s conftest$ac_exeext'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 (eval $ac_try) 2>&5
5090 ac_status=$?
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; }; then
5093 ac_cv_lib_nsl_gethostbyname=yes
5094 else
5095 echo "$as_me: failed program was:" >&5
5096 cat conftest.$ac_ext >&5
5097 ac_cv_lib_nsl_gethostbyname=no
5099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5100 LIBS=$ac_check_lib_save_LIBS
5102 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5103 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5104 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5105 cat >>confdefs.h <<_ACEOF
5106 #define HAVE_LIBNSL 1
5107 _ACEOF
5109 LIBS="-lnsl $LIBS"
5114 done
5117 for ac_func in connect
5119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5120 echo "$as_me:$LINENO: checking for $ac_func" >&5
5121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5122 if eval "test \"\${$as_ac_var+set}\" = set"; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5124 else
5125 cat >conftest.$ac_ext <<_ACEOF
5126 #line $LINENO "configure"
5127 #include "confdefs.h"
5128 /* System header to define __stub macros and hopefully few prototypes,
5129 which can conflict with char $ac_func (); below. */
5130 #include <assert.h>
5131 /* Override any gcc2 internal prototype to avoid an error. */
5132 #ifdef __cplusplus
5133 extern "C"
5134 #endif
5135 /* We use char because int might match the return type of a gcc2
5136 builtin and then its argument prototype would still apply. */
5137 char $ac_func ();
5138 char (*f) ();
5141 main ()
5143 /* The GNU C library defines this for functions which it implements
5144 to always fail with ENOSYS. Some functions are actually named
5145 something starting with __ and the normal name is an alias. */
5146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5147 choke me
5148 #else
5149 f = $ac_func;
5150 #endif
5153 return 0;
5155 _ACEOF
5156 rm -f conftest.$ac_objext conftest$ac_exeext
5157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5158 (eval $ac_link) 2>&5
5159 ac_status=$?
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } &&
5162 { ac_try='test -s conftest$ac_exeext'
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164 (eval $ac_try) 2>&5
5165 ac_status=$?
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; }; then
5168 eval "$as_ac_var=yes"
5169 else
5170 echo "$as_me: failed program was:" >&5
5171 cat conftest.$ac_ext >&5
5172 eval "$as_ac_var=no"
5174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5178 if test `eval echo '${'$as_ac_var'}'` = yes; then
5179 cat >>confdefs.h <<_ACEOF
5180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5181 _ACEOF
5183 else
5185 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5186 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5187 if test "${ac_cv_lib_socket_connect+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 else
5190 ac_check_lib_save_LIBS=$LIBS
5191 LIBS="-lsocket $LIBS"
5192 cat >conftest.$ac_ext <<_ACEOF
5193 #line $LINENO "configure"
5194 #include "confdefs.h"
5196 /* Override any gcc2 internal prototype to avoid an error. */
5197 #ifdef __cplusplus
5198 extern "C"
5199 #endif
5200 /* We use char because int might match the return type of a gcc2
5201 builtin and then its argument prototype would still apply. */
5202 char connect ();
5204 main ()
5206 connect ();
5208 return 0;
5210 _ACEOF
5211 rm -f conftest.$ac_objext conftest$ac_exeext
5212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5213 (eval $ac_link) 2>&5
5214 ac_status=$?
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } &&
5217 { ac_try='test -s conftest$ac_exeext'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 (eval $ac_try) 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5223 ac_cv_lib_socket_connect=yes
5224 else
5225 echo "$as_me: failed program was:" >&5
5226 cat conftest.$ac_ext >&5
5227 ac_cv_lib_socket_connect=no
5229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5230 LIBS=$ac_check_lib_save_LIBS
5232 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5233 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5234 if test $ac_cv_lib_socket_connect = yes; then
5235 cat >>confdefs.h <<_ACEOF
5236 #define HAVE_LIBSOCKET 1
5237 _ACEOF
5239 LIBS="-lsocket $LIBS"
5244 done
5247 for ac_func in inet_aton
5249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5250 echo "$as_me:$LINENO: checking for $ac_func" >&5
5251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5252 if eval "test \"\${$as_ac_var+set}\" = set"; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255 cat >conftest.$ac_ext <<_ACEOF
5256 #line $LINENO "configure"
5257 #include "confdefs.h"
5258 /* System header to define __stub macros and hopefully few prototypes,
5259 which can conflict with char $ac_func (); below. */
5260 #include <assert.h>
5261 /* Override any gcc2 internal prototype to avoid an error. */
5262 #ifdef __cplusplus
5263 extern "C"
5264 #endif
5265 /* We use char because int might match the return type of a gcc2
5266 builtin and then its argument prototype would still apply. */
5267 char $ac_func ();
5268 char (*f) ();
5271 main ()
5273 /* The GNU C library defines this for functions which it implements
5274 to always fail with ENOSYS. Some functions are actually named
5275 something starting with __ and the normal name is an alias. */
5276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5277 choke me
5278 #else
5279 f = $ac_func;
5280 #endif
5283 return 0;
5285 _ACEOF
5286 rm -f conftest.$ac_objext conftest$ac_exeext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5288 (eval $ac_link) 2>&5
5289 ac_status=$?
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } &&
5292 { ac_try='test -s conftest$ac_exeext'
5293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294 (eval $ac_try) 2>&5
5295 ac_status=$?
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; }; then
5298 eval "$as_ac_var=yes"
5299 else
5300 echo "$as_me: failed program was:" >&5
5301 cat conftest.$ac_ext >&5
5302 eval "$as_ac_var=no"
5304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5308 if test `eval echo '${'$as_ac_var'}'` = yes; then
5309 cat >>confdefs.h <<_ACEOF
5310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5311 _ACEOF
5313 else
5315 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5316 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5317 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 else
5320 ac_check_lib_save_LIBS=$LIBS
5321 LIBS="-lresolv $LIBS"
5322 cat >conftest.$ac_ext <<_ACEOF
5323 #line $LINENO "configure"
5324 #include "confdefs.h"
5326 /* Override any gcc2 internal prototype to avoid an error. */
5327 #ifdef __cplusplus
5328 extern "C"
5329 #endif
5330 /* We use char because int might match the return type of a gcc2
5331 builtin and then its argument prototype would still apply. */
5332 char inet_aton ();
5334 main ()
5336 inet_aton ();
5338 return 0;
5340 _ACEOF
5341 rm -f conftest.$ac_objext conftest$ac_exeext
5342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5343 (eval $ac_link) 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try='test -s conftest$ac_exeext'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349 (eval $ac_try) 2>&5
5350 ac_status=$?
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; }; then
5353 ac_cv_lib_resolv_inet_aton=yes
5354 else
5355 echo "$as_me: failed program was:" >&5
5356 cat conftest.$ac_ext >&5
5357 ac_cv_lib_resolv_inet_aton=no
5359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5360 LIBS=$ac_check_lib_save_LIBS
5362 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5363 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5364 if test $ac_cv_lib_resolv_inet_aton = yes; then
5365 cat >>confdefs.h <<_ACEOF
5366 #define HAVE_LIBRESOLV 1
5367 _ACEOF
5369 LIBS="-lresolv $LIBS"
5374 done
5377 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5378 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5379 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 else
5382 ac_check_lib_save_LIBS=$LIBS
5383 LIBS="-lxpg4 $LIBS"
5384 cat >conftest.$ac_ext <<_ACEOF
5385 #line $LINENO "configure"
5386 #include "confdefs.h"
5388 /* Override any gcc2 internal prototype to avoid an error. */
5389 #ifdef __cplusplus
5390 extern "C"
5391 #endif
5392 /* We use char because int might match the return type of a gcc2
5393 builtin and then its argument prototype would still apply. */
5394 char _xpg4_setrunelocale ();
5396 main ()
5398 _xpg4_setrunelocale ();
5400 return 0;
5402 _ACEOF
5403 rm -f conftest.$ac_objext conftest$ac_exeext
5404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5405 (eval $ac_link) 2>&5
5406 ac_status=$?
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } &&
5409 { ac_try='test -s conftest$ac_exeext'
5410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 (eval $ac_try) 2>&5
5412 ac_status=$?
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; }; then
5415 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5416 else
5417 echo "$as_me: failed program was:" >&5
5418 cat conftest.$ac_ext >&5
5419 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5422 LIBS=$ac_check_lib_save_LIBS
5424 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5425 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5426 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5427 cat >>confdefs.h <<_ACEOF
5428 #define HAVE_LIBXPG4 1
5429 _ACEOF
5431 LIBS="-lxpg4 $LIBS"
5436 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5437 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5438 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 else
5441 ac_check_lib_save_LIBS=$LIBS
5442 LIBS="-lmmap $LIBS"
5443 cat >conftest.$ac_ext <<_ACEOF
5444 #line $LINENO "configure"
5445 #include "confdefs.h"
5447 /* Override any gcc2 internal prototype to avoid an error. */
5448 #ifdef __cplusplus
5449 extern "C"
5450 #endif
5451 /* We use char because int might match the return type of a gcc2
5452 builtin and then its argument prototype would still apply. */
5453 char mmap ();
5455 main ()
5457 mmap ();
5459 return 0;
5461 _ACEOF
5462 rm -f conftest.$ac_objext conftest$ac_exeext
5463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5464 (eval $ac_link) 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } &&
5468 { ac_try='test -s conftest$ac_exeext'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470 (eval $ac_try) 2>&5
5471 ac_status=$?
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; }; then
5474 ac_cv_lib_mmap_mmap=yes
5475 else
5476 echo "$as_me: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5478 ac_cv_lib_mmap_mmap=no
5480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5481 LIBS=$ac_check_lib_save_LIBS
5483 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5484 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5485 if test $ac_cv_lib_mmap_mmap = yes; then
5486 cat >>confdefs.h <<_ACEOF
5487 #define HAVE_LIBMMAP 1
5488 _ACEOF
5490 LIBS="-lmmap $LIBS"
5495 JPEGLIB=""
5497 echo "$as_me:$LINENO: checking for egrep" >&5
5498 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5499 if test "${ac_cv_prog_egrep+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5503 then ac_cv_prog_egrep='grep -E'
5504 else ac_cv_prog_egrep='egrep'
5507 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5508 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5509 EGREP=$ac_cv_prog_egrep
5512 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5513 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5514 if test "${ac_cv_header_stdc+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517 cat >conftest.$ac_ext <<_ACEOF
5518 #line $LINENO "configure"
5519 #include "confdefs.h"
5520 #include <stdlib.h>
5521 #include <stdarg.h>
5522 #include <string.h>
5523 #include <float.h>
5525 _ACEOF
5526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5528 ac_status=$?
5529 grep -v '^ *+' conftest.er1 >conftest.err
5530 rm -f conftest.er1
5531 cat conftest.err >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); } >/dev/null; then
5534 if test -s conftest.err; then
5535 ac_cpp_err=$ac_c_preproc_warn_flag
5536 else
5537 ac_cpp_err=
5539 else
5540 ac_cpp_err=yes
5542 if test -z "$ac_cpp_err"; then
5543 ac_cv_header_stdc=yes
5544 else
5545 echo "$as_me: failed program was:" >&5
5546 cat conftest.$ac_ext >&5
5547 ac_cv_header_stdc=no
5549 rm -f conftest.err conftest.$ac_ext
5551 if test $ac_cv_header_stdc = yes; then
5552 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5553 cat >conftest.$ac_ext <<_ACEOF
5554 #line $LINENO "configure"
5555 #include "confdefs.h"
5556 #include <string.h>
5558 _ACEOF
5559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5560 $EGREP "memchr" >/dev/null 2>&1; then
5562 else
5563 ac_cv_header_stdc=no
5565 rm -f conftest*
5569 if test $ac_cv_header_stdc = yes; then
5570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5571 cat >conftest.$ac_ext <<_ACEOF
5572 #line $LINENO "configure"
5573 #include "confdefs.h"
5574 #include <stdlib.h>
5576 _ACEOF
5577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5578 $EGREP "free" >/dev/null 2>&1; then
5580 else
5581 ac_cv_header_stdc=no
5583 rm -f conftest*
5587 if test $ac_cv_header_stdc = yes; then
5588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5589 if test "$cross_compiling" = yes; then
5591 else
5592 cat >conftest.$ac_ext <<_ACEOF
5593 #line $LINENO "configure"
5594 #include "confdefs.h"
5595 #include <ctype.h>
5596 #if ((' ' & 0x0FF) == 0x020)
5597 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5598 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5599 #else
5600 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5601 || ('j' <= (c) && (c) <= 'r') \
5602 || ('s' <= (c) && (c) <= 'z'))
5603 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5604 #endif
5606 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5608 main ()
5610 int i;
5611 for (i = 0; i < 256; i++)
5612 if (XOR (islower (i), ISLOWER (i))
5613 || toupper (i) != TOUPPER (i))
5614 exit(2);
5615 exit (0);
5617 _ACEOF
5618 rm -f conftest$ac_exeext
5619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5620 (eval $ac_link) 2>&5
5621 ac_status=$?
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 (eval $ac_try) 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then
5630 else
5631 echo "$as_me: program exited with status $ac_status" >&5
5632 echo "$as_me: failed program was:" >&5
5633 cat conftest.$ac_ext >&5
5634 ( exit $ac_status )
5635 ac_cv_header_stdc=no
5637 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5641 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5642 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5643 if test $ac_cv_header_stdc = yes; then
5645 cat >>confdefs.h <<\_ACEOF
5646 #define STDC_HEADERS 1
5647 _ACEOF
5651 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5661 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5662 inttypes.h stdint.h unistd.h
5664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5665 echo "$as_me:$LINENO: checking for $ac_header" >&5
5666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670 cat >conftest.$ac_ext <<_ACEOF
5671 #line $LINENO "configure"
5672 #include "confdefs.h"
5673 $ac_includes_default
5675 #include <$ac_header>
5676 _ACEOF
5677 rm -f conftest.$ac_objext
5678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5679 (eval $ac_compile) 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } &&
5683 { ac_try='test -s conftest.$ac_objext'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685 (eval $ac_try) 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
5689 eval "$as_ac_Header=yes"
5690 else
5691 echo "$as_me: failed program was:" >&5
5692 cat conftest.$ac_ext >&5
5693 eval "$as_ac_Header=no"
5695 rm -f conftest.$ac_objext conftest.$ac_ext
5697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5700 cat >>confdefs.h <<_ACEOF
5701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5702 _ACEOF
5706 done
5710 for ac_header in jpeglib.h
5712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5714 echo "$as_me:$LINENO: checking for $ac_header" >&5
5715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5721 else
5722 # Is the header compilable?
5723 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5725 cat >conftest.$ac_ext <<_ACEOF
5726 #line $LINENO "configure"
5727 #include "confdefs.h"
5728 $ac_includes_default
5729 #include <$ac_header>
5730 _ACEOF
5731 rm -f conftest.$ac_objext
5732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5733 (eval $ac_compile) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } &&
5737 { ac_try='test -s conftest.$ac_objext'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; }; then
5743 ac_header_compiler=yes
5744 else
5745 echo "$as_me: failed program was:" >&5
5746 cat conftest.$ac_ext >&5
5747 ac_header_compiler=no
5749 rm -f conftest.$ac_objext conftest.$ac_ext
5750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5751 echo "${ECHO_T}$ac_header_compiler" >&6
5753 # Is the header present?
5754 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5756 cat >conftest.$ac_ext <<_ACEOF
5757 #line $LINENO "configure"
5758 #include "confdefs.h"
5759 #include <$ac_header>
5760 _ACEOF
5761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5763 ac_status=$?
5764 grep -v '^ *+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } >/dev/null; then
5769 if test -s conftest.err; then
5770 ac_cpp_err=$ac_c_preproc_warn_flag
5771 else
5772 ac_cpp_err=
5774 else
5775 ac_cpp_err=yes
5777 if test -z "$ac_cpp_err"; then
5778 ac_header_preproc=yes
5779 else
5780 echo "$as_me: failed program was:" >&5
5781 cat conftest.$ac_ext >&5
5782 ac_header_preproc=no
5784 rm -f conftest.err conftest.$ac_ext
5785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5786 echo "${ECHO_T}$ac_header_preproc" >&6
5788 # So? What about this header?
5789 case $ac_header_compiler:$ac_header_preproc in
5790 yes:no )
5791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5795 no:yes )
5796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5802 esac
5803 echo "$as_me:$LINENO: checking for $ac_header" >&5
5804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808 eval "$as_ac_Header=$ac_header_preproc"
5810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5815 cat >>confdefs.h <<_ACEOF
5816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5817 _ACEOF
5818 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
5819 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5820 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823 ac_check_lib_save_LIBS=$LIBS
5824 LIBS="-ljpeg $LIBS"
5825 cat >conftest.$ac_ext <<_ACEOF
5826 #line $LINENO "configure"
5827 #include "confdefs.h"
5829 /* Override any gcc2 internal prototype to avoid an error. */
5830 #ifdef __cplusplus
5831 extern "C"
5832 #endif
5833 /* We use char because int might match the return type of a gcc2
5834 builtin and then its argument prototype would still apply. */
5835 char jpeg_start_decompress ();
5837 main ()
5839 jpeg_start_decompress ();
5841 return 0;
5843 _ACEOF
5844 rm -f conftest.$ac_objext conftest$ac_exeext
5845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5846 (eval $ac_link) 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } &&
5850 { ac_try='test -s conftest$ac_exeext'
5851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852 (eval $ac_try) 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; }; then
5856 ac_cv_lib_jpeg_jpeg_start_decompress=yes
5857 else
5858 echo "$as_me: failed program was:" >&5
5859 cat conftest.$ac_ext >&5
5860 ac_cv_lib_jpeg_jpeg_start_decompress=no
5862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5863 LIBS=$ac_check_lib_save_LIBS
5865 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
5866 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5867 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
5869 cat >>confdefs.h <<\_ACEOF
5870 #define HAVE_LIBJPEG 1
5871 _ACEOF
5873 JPEGLIB="-ljpeg"
5880 done
5886 XFILES=""
5888 OPENGLFILES=""
5890 GLU32FILES=""
5892 OPENGL_LIBS=""
5893 if test "$have_x" = "yes"
5894 then
5895 XLIB="-lXext -lX11"
5896 ac_save_CPPFLAGS="$CPPFLAGS"
5897 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5900 for ac_header in X11/Xlib.h
5902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5904 echo "$as_me:$LINENO: checking for $ac_header" >&5
5905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5911 else
5912 # Is the header compilable?
5913 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5915 cat >conftest.$ac_ext <<_ACEOF
5916 #line $LINENO "configure"
5917 #include "confdefs.h"
5918 $ac_includes_default
5919 #include <$ac_header>
5920 _ACEOF
5921 rm -f conftest.$ac_objext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5923 (eval $ac_compile) 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try='test -s conftest.$ac_objext'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 (eval $ac_try) 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5933 ac_header_compiler=yes
5934 else
5935 echo "$as_me: failed program was:" >&5
5936 cat conftest.$ac_ext >&5
5937 ac_header_compiler=no
5939 rm -f conftest.$ac_objext conftest.$ac_ext
5940 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5941 echo "${ECHO_T}$ac_header_compiler" >&6
5943 # Is the header present?
5944 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5946 cat >conftest.$ac_ext <<_ACEOF
5947 #line $LINENO "configure"
5948 #include "confdefs.h"
5949 #include <$ac_header>
5950 _ACEOF
5951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5953 ac_status=$?
5954 grep -v '^ *+' conftest.er1 >conftest.err
5955 rm -f conftest.er1
5956 cat conftest.err >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } >/dev/null; then
5959 if test -s conftest.err; then
5960 ac_cpp_err=$ac_c_preproc_warn_flag
5961 else
5962 ac_cpp_err=
5964 else
5965 ac_cpp_err=yes
5967 if test -z "$ac_cpp_err"; then
5968 ac_header_preproc=yes
5969 else
5970 echo "$as_me: failed program was:" >&5
5971 cat conftest.$ac_ext >&5
5972 ac_header_preproc=no
5974 rm -f conftest.err conftest.$ac_ext
5975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5976 echo "${ECHO_T}$ac_header_preproc" >&6
5978 # So? What about this header?
5979 case $ac_header_compiler:$ac_header_preproc in
5980 yes:no )
5981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5985 no:yes )
5986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5989 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5992 esac
5993 echo "$as_me:$LINENO: checking for $ac_header" >&5
5994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998 eval "$as_ac_Header=$ac_header_preproc"
6000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6005 cat >>confdefs.h <<_ACEOF
6006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6007 _ACEOF
6010 for ac_header in X11/XKBlib.h
6012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6013 echo "$as_me:$LINENO: checking for $ac_header" >&5
6014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018 cat >conftest.$ac_ext <<_ACEOF
6019 #line $LINENO "configure"
6020 #include "confdefs.h"
6021 #include <X11/Xlib.h>
6023 #include <$ac_header>
6024 _ACEOF
6025 rm -f conftest.$ac_objext
6026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6027 (eval $ac_compile) 2>&5
6028 ac_status=$?
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); } &&
6031 { ac_try='test -s conftest.$ac_objext'
6032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 (eval $ac_try) 2>&5
6034 ac_status=$?
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }; }; then
6037 eval "$as_ac_Header=yes"
6038 else
6039 echo "$as_me: failed program was:" >&5
6040 cat conftest.$ac_ext >&5
6041 eval "$as_ac_Header=no"
6043 rm -f conftest.$ac_objext conftest.$ac_ext
6045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6048 cat >>confdefs.h <<_ACEOF
6049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6050 _ACEOF
6051 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6052 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6053 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056 ac_check_lib_save_LIBS=$LIBS
6057 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6058 cat >conftest.$ac_ext <<_ACEOF
6059 #line $LINENO "configure"
6060 #include "confdefs.h"
6062 /* Override any gcc2 internal prototype to avoid an error. */
6063 #ifdef __cplusplus
6064 extern "C"
6065 #endif
6066 /* We use char because int might match the return type of a gcc2
6067 builtin and then its argument prototype would still apply. */
6068 char XkbQueryExtension ();
6070 main ()
6072 XkbQueryExtension ();
6074 return 0;
6076 _ACEOF
6077 rm -f conftest.$ac_objext conftest$ac_exeext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6079 (eval $ac_link) 2>&5
6080 ac_status=$?
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } &&
6083 { ac_try='test -s conftest$ac_exeext'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 (eval $ac_try) 2>&5
6086 ac_status=$?
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; }; then
6089 ac_cv_lib_X11_XkbQueryExtension=yes
6090 else
6091 echo "$as_me: failed program was:" >&5
6092 cat conftest.$ac_ext >&5
6093 ac_cv_lib_X11_XkbQueryExtension=no
6095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6096 LIBS=$ac_check_lib_save_LIBS
6098 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6099 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6100 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6102 cat >>confdefs.h <<\_ACEOF
6103 #define HAVE_XKB 1
6104 _ACEOF
6109 else
6110 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6111 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6114 done
6118 for ac_header in X11/extensions/XShm.h
6120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6121 echo "$as_me:$LINENO: checking for $ac_header" >&5
6122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126 cat >conftest.$ac_ext <<_ACEOF
6127 #line $LINENO "configure"
6128 #include "confdefs.h"
6129 #include <X11/Xlib.h>
6131 #include <$ac_header>
6132 _ACEOF
6133 rm -f conftest.$ac_objext
6134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6135 (eval $ac_compile) 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } &&
6139 { ac_try='test -s conftest.$ac_objext'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 (eval $ac_try) 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; }; then
6145 eval "$as_ac_Header=yes"
6146 else
6147 echo "$as_me: failed program was:" >&5
6148 cat conftest.$ac_ext >&5
6149 eval "$as_ac_Header=no"
6151 rm -f conftest.$ac_objext conftest.$ac_ext
6153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6156 cat >>confdefs.h <<_ACEOF
6157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6158 _ACEOF
6159 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6160 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6161 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164 ac_check_lib_save_LIBS=$LIBS
6165 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6166 cat >conftest.$ac_ext <<_ACEOF
6167 #line $LINENO "configure"
6168 #include "confdefs.h"
6170 /* Override any gcc2 internal prototype to avoid an error. */
6171 #ifdef __cplusplus
6172 extern "C"
6173 #endif
6174 /* We use char because int might match the return type of a gcc2
6175 builtin and then its argument prototype would still apply. */
6176 char XShmQueryExtension ();
6178 main ()
6180 XShmQueryExtension ();
6182 return 0;
6184 _ACEOF
6185 rm -f conftest.$ac_objext conftest$ac_exeext
6186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6187 (eval $ac_link) 2>&5
6188 ac_status=$?
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } &&
6191 { ac_try='test -s conftest$ac_exeext'
6192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193 (eval $ac_try) 2>&5
6194 ac_status=$?
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); }; }; then
6197 ac_cv_lib_Xext_XShmQueryExtension=yes
6198 else
6199 echo "$as_me: failed program was:" >&5
6200 cat conftest.$ac_ext >&5
6201 ac_cv_lib_Xext_XShmQueryExtension=no
6203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6204 LIBS=$ac_check_lib_save_LIBS
6206 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
6207 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6208 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
6210 cat >>confdefs.h <<\_ACEOF
6211 #define HAVE_LIBXXSHM 1
6212 _ACEOF
6217 else
6218 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
6219 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
6222 done
6226 for ac_header in X11/Xutil.h
6228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6229 echo "$as_me:$LINENO: checking for $ac_header" >&5
6230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 cat >conftest.$ac_ext <<_ACEOF
6235 #line $LINENO "configure"
6236 #include "confdefs.h"
6237 #include <X11/Xlib.h>
6239 #include <$ac_header>
6240 _ACEOF
6241 rm -f conftest.$ac_objext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6243 (eval $ac_compile) 2>&5
6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } &&
6247 { ac_try='test -s conftest.$ac_objext'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 (eval $ac_try) 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
6253 eval "$as_ac_Header=yes"
6254 else
6255 echo "$as_me: failed program was:" >&5
6256 cat conftest.$ac_ext >&5
6257 eval "$as_ac_Header=no"
6259 rm -f conftest.$ac_objext conftest.$ac_ext
6261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6264 cat >>confdefs.h <<_ACEOF
6265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6266 _ACEOF
6270 done
6274 for ac_header in X11/extensions/shape.h
6276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6277 echo "$as_me:$LINENO: checking for $ac_header" >&5
6278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282 cat >conftest.$ac_ext <<_ACEOF
6283 #line $LINENO "configure"
6284 #include "confdefs.h"
6285 #include <X11/Xlib.h>
6286 #ifdef HAVE_X11_XUTIL_H
6287 # include <X11/Xutil.h>
6288 #endif
6290 #include <$ac_header>
6291 _ACEOF
6292 rm -f conftest.$ac_objext
6293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6294 (eval $ac_compile) 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } &&
6298 { ac_try='test -s conftest.$ac_objext'
6299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 (eval $ac_try) 2>&5
6301 ac_status=$?
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; }; then
6304 eval "$as_ac_Header=yes"
6305 else
6306 echo "$as_me: failed program was:" >&5
6307 cat conftest.$ac_ext >&5
6308 eval "$as_ac_Header=no"
6310 rm -f conftest.$ac_objext conftest.$ac_ext
6312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6315 cat >>confdefs.h <<_ACEOF
6316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6317 _ACEOF
6318 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
6319 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6320 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323 ac_check_lib_save_LIBS=$LIBS
6324 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6325 cat >conftest.$ac_ext <<_ACEOF
6326 #line $LINENO "configure"
6327 #include "confdefs.h"
6329 /* Override any gcc2 internal prototype to avoid an error. */
6330 #ifdef __cplusplus
6331 extern "C"
6332 #endif
6333 /* We use char because int might match the return type of a gcc2
6334 builtin and then its argument prototype would still apply. */
6335 char XShapeQueryExtension ();
6337 main ()
6339 XShapeQueryExtension ();
6341 return 0;
6343 _ACEOF
6344 rm -f conftest.$ac_objext conftest$ac_exeext
6345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6346 (eval $ac_link) 2>&5
6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try='test -s conftest$ac_exeext'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 (eval $ac_try) 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 ac_cv_lib_Xext_XShapeQueryExtension=yes
6357 else
6358 echo "$as_me: failed program was:" >&5
6359 cat conftest.$ac_ext >&5
6360 ac_cv_lib_Xext_XShapeQueryExtension=no
6362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6363 LIBS=$ac_check_lib_save_LIBS
6365 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6366 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6367 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6369 cat >>confdefs.h <<\_ACEOF
6370 #define HAVE_LIBXSHAPE 1
6371 _ACEOF
6376 else
6377 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
6378 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
6381 done
6385 for ac_header in X11/extensions/xf86dga.h
6387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6388 echo "$as_me:$LINENO: checking for $ac_header" >&5
6389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 else
6393 cat >conftest.$ac_ext <<_ACEOF
6394 #line $LINENO "configure"
6395 #include "confdefs.h"
6396 #include <X11/Xlib.h>
6398 #include <$ac_header>
6399 _ACEOF
6400 rm -f conftest.$ac_objext
6401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402 (eval $ac_compile) 2>&5
6403 ac_status=$?
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } &&
6406 { ac_try='test -s conftest.$ac_objext'
6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 (eval $ac_try) 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; }; then
6412 eval "$as_ac_Header=yes"
6413 else
6414 echo "$as_me: failed program was:" >&5
6415 cat conftest.$ac_ext >&5
6416 eval "$as_ac_Header=no"
6418 rm -f conftest.$ac_objext conftest.$ac_ext
6420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6423 cat >>confdefs.h <<_ACEOF
6424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6425 _ACEOF
6426 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
6427 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6428 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431 ac_check_lib_save_LIBS=$LIBS
6432 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6433 $LIBS"
6434 cat >conftest.$ac_ext <<_ACEOF
6435 #line $LINENO "configure"
6436 #include "confdefs.h"
6438 /* Override any gcc2 internal prototype to avoid an error. */
6439 #ifdef __cplusplus
6440 extern "C"
6441 #endif
6442 /* We use char because int might match the return type of a gcc2
6443 builtin and then its argument prototype would still apply. */
6444 char XDGAQueryExtension ();
6446 main ()
6448 XDGAQueryExtension ();
6450 return 0;
6452 _ACEOF
6453 rm -f conftest.$ac_objext conftest$ac_exeext
6454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6455 (eval $ac_link) 2>&5
6456 ac_status=$?
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } &&
6459 { ac_try='test -s conftest$ac_exeext'
6460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 (eval $ac_try) 2>&5
6462 ac_status=$?
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; }; then
6465 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
6466 else
6467 echo "$as_me: failed program was:" >&5
6468 cat conftest.$ac_ext >&5
6469 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
6471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6472 LIBS=$ac_check_lib_save_LIBS
6474 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
6475 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6476 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
6478 cat >>confdefs.h <<\_ACEOF
6479 #define HAVE_LIBXXF86DGA2 1
6480 _ACEOF
6482 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6484 else
6485 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
6486 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6487 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490 ac_check_lib_save_LIBS=$LIBS
6491 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6492 $LIBS"
6493 cat >conftest.$ac_ext <<_ACEOF
6494 #line $LINENO "configure"
6495 #include "confdefs.h"
6497 /* Override any gcc2 internal prototype to avoid an error. */
6498 #ifdef __cplusplus
6499 extern "C"
6500 #endif
6501 /* We use char because int might match the return type of a gcc2
6502 builtin and then its argument prototype would still apply. */
6503 char XF86DGAQueryExtension ();
6505 main ()
6507 XF86DGAQueryExtension ();
6509 return 0;
6511 _ACEOF
6512 rm -f conftest.$ac_objext conftest$ac_exeext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6514 (eval $ac_link) 2>&5
6515 ac_status=$?
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try='test -s conftest$ac_exeext'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 (eval $ac_try) 2>&5
6521 ac_status=$?
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; }; then
6524 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
6525 else
6526 echo "$as_me: failed program was:" >&5
6527 cat conftest.$ac_ext >&5
6528 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
6530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6531 LIBS=$ac_check_lib_save_LIBS
6533 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
6534 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6535 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
6537 cat >>confdefs.h <<\_ACEOF
6538 #define HAVE_LIBXXF86DGA 1
6539 _ACEOF
6541 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6549 else
6550 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
6551 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
6554 done
6558 for ac_header in X11/extensions/xf86vmode.h
6560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6561 echo "$as_me:$LINENO: checking for $ac_header" >&5
6562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566 cat >conftest.$ac_ext <<_ACEOF
6567 #line $LINENO "configure"
6568 #include "confdefs.h"
6569 #include <X11/Xlib.h>
6571 #include <$ac_header>
6572 _ACEOF
6573 rm -f conftest.$ac_objext
6574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6575 (eval $ac_compile) 2>&5
6576 ac_status=$?
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try='test -s conftest.$ac_objext'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 (eval $ac_try) 2>&5
6582 ac_status=$?
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; }; then
6585 eval "$as_ac_Header=yes"
6586 else
6587 echo "$as_me: failed program was:" >&5
6588 cat conftest.$ac_ext >&5
6589 eval "$as_ac_Header=no"
6591 rm -f conftest.$ac_objext conftest.$ac_ext
6593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6596 cat >>confdefs.h <<_ACEOF
6597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6598 _ACEOF
6599 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
6600 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6601 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604 ac_check_lib_save_LIBS=$LIBS
6605 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6606 $LIBS"
6607 cat >conftest.$ac_ext <<_ACEOF
6608 #line $LINENO "configure"
6609 #include "confdefs.h"
6611 /* Override any gcc2 internal prototype to avoid an error. */
6612 #ifdef __cplusplus
6613 extern "C"
6614 #endif
6615 /* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6617 char XF86VidModeQueryExtension ();
6619 main ()
6621 XF86VidModeQueryExtension ();
6623 return 0;
6625 _ACEOF
6626 rm -f conftest.$ac_objext conftest$ac_exeext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6628 (eval $ac_link) 2>&5
6629 ac_status=$?
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } &&
6632 { ac_try='test -s conftest$ac_exeext'
6633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634 (eval $ac_try) 2>&5
6635 ac_status=$?
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; }; then
6638 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
6639 else
6640 echo "$as_me: failed program was:" >&5
6641 cat conftest.$ac_ext >&5
6642 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
6644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6645 LIBS=$ac_check_lib_save_LIBS
6647 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
6648 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6649 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
6651 cat >>confdefs.h <<\_ACEOF
6652 #define HAVE_LIBXXF86VM 1
6653 _ACEOF
6655 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
6660 else
6661 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
6662 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
6665 done
6669 for ac_header in X11/extensions/Xvlib.h
6671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6672 echo "$as_me:$LINENO: checking for $ac_header" >&5
6673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 else
6677 cat >conftest.$ac_ext <<_ACEOF
6678 #line $LINENO "configure"
6679 #include "confdefs.h"
6680 #include <X11/Xlib.h>
6682 #include <$ac_header>
6683 _ACEOF
6684 rm -f conftest.$ac_objext
6685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6686 (eval $ac_compile) 2>&5
6687 ac_status=$?
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } &&
6690 { ac_try='test -s conftest.$ac_objext'
6691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692 (eval $ac_try) 2>&5
6693 ac_status=$?
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); }; }; then
6696 eval "$as_ac_Header=yes"
6697 else
6698 echo "$as_me: failed program was:" >&5
6699 cat conftest.$ac_ext >&5
6700 eval "$as_ac_Header=no"
6702 rm -f conftest.$ac_objext conftest.$ac_ext
6704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6707 cat >>confdefs.h <<_ACEOF
6708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6709 _ACEOF
6710 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
6711 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6712 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715 ac_check_lib_save_LIBS=$LIBS
6716 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6717 $LIBS"
6718 cat >conftest.$ac_ext <<_ACEOF
6719 #line $LINENO "configure"
6720 #include "confdefs.h"
6722 /* Override any gcc2 internal prototype to avoid an error. */
6723 #ifdef __cplusplus
6724 extern "C"
6725 #endif
6726 /* We use char because int might match the return type of a gcc2
6727 builtin and then its argument prototype would still apply. */
6728 char XvShmCreateImage ();
6730 main ()
6732 XvShmCreateImage ();
6734 return 0;
6736 _ACEOF
6737 rm -f conftest.$ac_objext conftest$ac_exeext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6739 (eval $ac_link) 2>&5
6740 ac_status=$?
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } &&
6743 { ac_try='test -s conftest$ac_exeext'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 (eval $ac_try) 2>&5
6746 ac_status=$?
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; }; then
6749 ac_cv_lib_Xv_XvShmCreateImage=yes
6750 else
6751 echo "$as_me: failed program was:" >&5
6752 cat conftest.$ac_ext >&5
6753 ac_cv_lib_Xv_XvShmCreateImage=no
6755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6756 LIBS=$ac_check_lib_save_LIBS
6758 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
6759 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6760 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
6762 cat >>confdefs.h <<\_ACEOF
6763 #define HAVE_XVIDEO 1
6764 _ACEOF
6766 X_PRE_LIBS="$X_PRE_LIBS -lXv"
6771 else
6772 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
6773 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
6776 done
6780 for ac_header in X11/extensions/Xrender.h
6782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6783 echo "$as_me:$LINENO: checking for $ac_header" >&5
6784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788 cat >conftest.$ac_ext <<_ACEOF
6789 #line $LINENO "configure"
6790 #include "confdefs.h"
6791 #include <X11/Xlib.h>
6793 #include <$ac_header>
6794 _ACEOF
6795 rm -f conftest.$ac_objext
6796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6797 (eval $ac_compile) 2>&5
6798 ac_status=$?
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } &&
6801 { ac_try='test -s conftest.$ac_objext'
6802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 (eval $ac_try) 2>&5
6804 ac_status=$?
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); }; }; then
6807 eval "$as_ac_Header=yes"
6808 else
6809 echo "$as_me: failed program was:" >&5
6810 cat conftest.$ac_ext >&5
6811 eval "$as_ac_Header=no"
6813 rm -f conftest.$ac_objext conftest.$ac_ext
6815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6818 cat >>confdefs.h <<_ACEOF
6819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6820 _ACEOF
6824 done
6830 done
6832 if test "x$with_opengl" != "xno"
6833 then
6834 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
6835 then
6836 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
6837 This prevents linking to OpenGL. Delete the file and restart configure." >&5
6838 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6839 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6840 { (exit 1); exit 1; }; }
6845 for ac_header in GL/gl.h GL/glx.h
6847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6849 echo "$as_me:$LINENO: checking for $ac_header" >&5
6850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6856 else
6857 # Is the header compilable?
6858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6860 cat >conftest.$ac_ext <<_ACEOF
6861 #line $LINENO "configure"
6862 #include "confdefs.h"
6863 $ac_includes_default
6864 #include <$ac_header>
6865 _ACEOF
6866 rm -f conftest.$ac_objext
6867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6868 (eval $ac_compile) 2>&5
6869 ac_status=$?
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); } &&
6872 { ac_try='test -s conftest.$ac_objext'
6873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 (eval $ac_try) 2>&5
6875 ac_status=$?
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); }; }; then
6878 ac_header_compiler=yes
6879 else
6880 echo "$as_me: failed program was:" >&5
6881 cat conftest.$ac_ext >&5
6882 ac_header_compiler=no
6884 rm -f conftest.$ac_objext conftest.$ac_ext
6885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6886 echo "${ECHO_T}$ac_header_compiler" >&6
6888 # Is the header present?
6889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6891 cat >conftest.$ac_ext <<_ACEOF
6892 #line $LINENO "configure"
6893 #include "confdefs.h"
6894 #include <$ac_header>
6895 _ACEOF
6896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6898 ac_status=$?
6899 grep -v '^ *+' conftest.er1 >conftest.err
6900 rm -f conftest.er1
6901 cat conftest.err >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } >/dev/null; then
6904 if test -s conftest.err; then
6905 ac_cpp_err=$ac_c_preproc_warn_flag
6906 else
6907 ac_cpp_err=
6909 else
6910 ac_cpp_err=yes
6912 if test -z "$ac_cpp_err"; then
6913 ac_header_preproc=yes
6914 else
6915 echo "$as_me: failed program was:" >&5
6916 cat conftest.$ac_ext >&5
6917 ac_header_preproc=no
6919 rm -f conftest.err conftest.$ac_ext
6920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6921 echo "${ECHO_T}$ac_header_preproc" >&6
6923 # So? What about this header?
6924 case $ac_header_compiler:$ac_header_preproc in
6925 yes:no )
6926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6930 no:yes )
6931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6937 esac
6938 echo "$as_me:$LINENO: checking for $ac_header" >&5
6939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943 eval "$as_ac_Header=$ac_header_preproc"
6945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6950 cat >>confdefs.h <<_ACEOF
6951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6952 _ACEOF
6956 done
6958 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
6959 then
6961 for ac_header in GL/glext.h
6963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6964 echo "$as_me:$LINENO: checking for $ac_header" >&5
6965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 else
6969 cat >conftest.$ac_ext <<_ACEOF
6970 #line $LINENO "configure"
6971 #include "confdefs.h"
6972 #include <GL/glx.h>
6974 #include <$ac_header>
6975 _ACEOF
6976 rm -f conftest.$ac_objext
6977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978 (eval $ac_compile) 2>&5
6979 ac_status=$?
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } &&
6982 { ac_try='test -s conftest.$ac_objext'
6983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984 (eval $ac_try) 2>&5
6985 ac_status=$?
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); }; }; then
6988 eval "$as_ac_Header=yes"
6989 else
6990 echo "$as_me: failed program was:" >&5
6991 cat conftest.$ac_ext >&5
6992 eval "$as_ac_Header=no"
6994 rm -f conftest.$ac_objext conftest.$ac_ext
6996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6999 cat >>confdefs.h <<_ACEOF
7000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7001 _ACEOF
7005 done
7007 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7008 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7009 if test "${wine_cv_opengl_version_OK+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012 cat >conftest.$ac_ext <<_ACEOF
7013 #line $LINENO "configure"
7014 #include "confdefs.h"
7015 #include <GL/gl.h>
7017 main ()
7019 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7021 return 0;
7023 _ACEOF
7024 rm -f conftest.$ac_objext
7025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7026 (eval $ac_compile) 2>&5
7027 ac_status=$?
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } &&
7030 { ac_try='test -s conftest.$ac_objext'
7031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032 (eval $ac_try) 2>&5
7033 ac_status=$?
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }; }; then
7036 wine_cv_opengl_version_OK="yes"
7037 else
7038 echo "$as_me: failed program was:" >&5
7039 cat conftest.$ac_ext >&5
7040 wine_cv_opengl_version_OK="no"
7043 rm -f conftest.$ac_objext conftest.$ac_ext
7046 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7047 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7049 if test "$wine_cv_opengl_version_OK" = "yes"
7050 then
7051 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7052 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7053 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056 ac_check_lib_save_LIBS=$LIBS
7057 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7058 cat >conftest.$ac_ext <<_ACEOF
7059 #line $LINENO "configure"
7060 #include "confdefs.h"
7062 /* Override any gcc2 internal prototype to avoid an error. */
7063 #ifdef __cplusplus
7064 extern "C"
7065 #endif
7066 /* We use char because int might match the return type of a gcc2
7067 builtin and then its argument prototype would still apply. */
7068 char glXCreateContext ();
7070 main ()
7072 glXCreateContext ();
7074 return 0;
7076 _ACEOF
7077 rm -f conftest.$ac_objext conftest$ac_exeext
7078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7079 (eval $ac_link) 2>&5
7080 ac_status=$?
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); } &&
7083 { ac_try='test -s conftest$ac_exeext'
7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 (eval $ac_try) 2>&5
7086 ac_status=$?
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; }; then
7089 ac_cv_lib_GL_glXCreateContext=yes
7090 else
7091 echo "$as_me: failed program was:" >&5
7092 cat conftest.$ac_ext >&5
7093 ac_cv_lib_GL_glXCreateContext=no
7095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7096 LIBS=$ac_check_lib_save_LIBS
7098 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7099 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7100 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7101 OPENGL_LIBS="-lGL"
7106 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7107 then
7108 OPENGLFILES='$(OPENGLFILES)'
7110 cat >>confdefs.h <<\_ACEOF
7111 #define HAVE_OPENGL 1
7112 _ACEOF
7115 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7116 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7117 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 else
7120 ac_check_lib_save_LIBS=$LIBS
7121 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7122 cat >conftest.$ac_ext <<_ACEOF
7123 #line $LINENO "configure"
7124 #include "confdefs.h"
7126 /* Override any gcc2 internal prototype to avoid an error. */
7127 #ifdef __cplusplus
7128 extern "C"
7129 #endif
7130 /* We use char because int might match the return type of a gcc2
7131 builtin and then its argument prototype would still apply. */
7132 char glXGetProcAddressARB ();
7134 main ()
7136 glXGetProcAddressARB ();
7138 return 0;
7140 _ACEOF
7141 rm -f conftest.$ac_objext conftest$ac_exeext
7142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7143 (eval $ac_link) 2>&5
7144 ac_status=$?
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } &&
7147 { ac_try='test -s conftest$ac_exeext'
7148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149 (eval $ac_try) 2>&5
7150 ac_status=$?
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); }; }; then
7153 ac_cv_lib_GL_glXGetProcAddressARB=yes
7154 else
7155 echo "$as_me: failed program was:" >&5
7156 cat conftest.$ac_ext >&5
7157 ac_cv_lib_GL_glXGetProcAddressARB=no
7159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7160 LIBS=$ac_check_lib_save_LIBS
7162 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7163 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7164 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7166 cat >>confdefs.h <<\_ACEOF
7167 #define HAVE_GLX_GETPROCADDRESS 1
7168 _ACEOF
7173 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7174 then
7175 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7176 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7177 if test "${wine_cv_extension_prototypes+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 else
7180 cat >conftest.$ac_ext <<_ACEOF
7181 #line $LINENO "configure"
7182 #include "confdefs.h"
7183 #include <GL/gl.h>
7184 #ifdef HAVE_GL_GLEXT_H
7185 # include <GL/glext.h>
7186 #endif
7189 main ()
7191 PFNGLCOLORTABLEEXTPROC test_proc;
7193 return 0;
7195 _ACEOF
7196 rm -f conftest.$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198 (eval $ac_compile) 2>&5
7199 ac_status=$?
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } &&
7202 { ac_try='test -s conftest.$ac_objext'
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204 (eval $ac_try) 2>&5
7205 ac_status=$?
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; }; then
7208 wine_cv_extension_prototypes="yes"
7209 else
7210 echo "$as_me: failed program was:" >&5
7211 cat conftest.$ac_ext >&5
7212 wine_cv_extension_prototypes="no"
7215 rm -f conftest.$ac_objext conftest.$ac_ext
7218 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7219 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7220 if test "$wine_cv_extension_prototypes" = "yes"
7221 then
7223 cat >>confdefs.h <<\_ACEOF
7224 #define HAVE_GLEXT_PROTOTYPES 1
7225 _ACEOF
7231 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7232 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7233 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236 ac_check_lib_save_LIBS=$LIBS
7237 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7238 $LIBS"
7239 cat >conftest.$ac_ext <<_ACEOF
7240 #line $LINENO "configure"
7241 #include "confdefs.h"
7243 /* Override any gcc2 internal prototype to avoid an error. */
7244 #ifdef __cplusplus
7245 extern "C"
7246 #endif
7247 /* We use char because int might match the return type of a gcc2
7248 builtin and then its argument prototype would still apply. */
7249 char gluLookAt ();
7251 main ()
7253 gluLookAt ();
7255 return 0;
7257 _ACEOF
7258 rm -f conftest.$ac_objext conftest$ac_exeext
7259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7260 (eval $ac_link) 2>&5
7261 ac_status=$?
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } &&
7264 { ac_try='test -s conftest$ac_exeext'
7265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266 (eval $ac_try) 2>&5
7267 ac_status=$?
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; }; then
7270 ac_cv_lib_GLU_gluLookAt=yes
7271 else
7272 echo "$as_me: failed program was:" >&5
7273 cat conftest.$ac_ext >&5
7274 ac_cv_lib_GLU_gluLookAt=no
7276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7277 LIBS=$ac_check_lib_save_LIBS
7279 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7280 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7281 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7282 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
7283 GLU32FILES='$(GLU32FILES)'
7291 NASLIBS=""
7294 for ac_header in audio/audiolib.h
7296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7298 echo "$as_me:$LINENO: checking for $ac_header" >&5
7299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7305 else
7306 # Is the header compilable?
7307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7309 cat >conftest.$ac_ext <<_ACEOF
7310 #line $LINENO "configure"
7311 #include "confdefs.h"
7312 $ac_includes_default
7313 #include <$ac_header>
7314 _ACEOF
7315 rm -f conftest.$ac_objext
7316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7317 (eval $ac_compile) 2>&5
7318 ac_status=$?
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); } &&
7321 { ac_try='test -s conftest.$ac_objext'
7322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323 (eval $ac_try) 2>&5
7324 ac_status=$?
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); }; }; then
7327 ac_header_compiler=yes
7328 else
7329 echo "$as_me: failed program was:" >&5
7330 cat conftest.$ac_ext >&5
7331 ac_header_compiler=no
7333 rm -f conftest.$ac_objext conftest.$ac_ext
7334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7335 echo "${ECHO_T}$ac_header_compiler" >&6
7337 # Is the header present?
7338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7340 cat >conftest.$ac_ext <<_ACEOF
7341 #line $LINENO "configure"
7342 #include "confdefs.h"
7343 #include <$ac_header>
7344 _ACEOF
7345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7347 ac_status=$?
7348 grep -v '^ *+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } >/dev/null; then
7353 if test -s conftest.err; then
7354 ac_cpp_err=$ac_c_preproc_warn_flag
7355 else
7356 ac_cpp_err=
7358 else
7359 ac_cpp_err=yes
7361 if test -z "$ac_cpp_err"; then
7362 ac_header_preproc=yes
7363 else
7364 echo "$as_me: failed program was:" >&5
7365 cat conftest.$ac_ext >&5
7366 ac_header_preproc=no
7368 rm -f conftest.err conftest.$ac_ext
7369 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7370 echo "${ECHO_T}$ac_header_preproc" >&6
7372 # So? What about this header?
7373 case $ac_header_compiler:$ac_header_preproc in
7374 yes:no )
7375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7379 no:yes )
7380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7386 esac
7387 echo "$as_me:$LINENO: checking for $ac_header" >&5
7388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392 eval "$as_ac_Header=$ac_header_preproc"
7394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7399 cat >>confdefs.h <<_ACEOF
7400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7401 _ACEOF
7403 for ac_header in audio/soundlib.h
7405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7406 echo "$as_me:$LINENO: checking for $ac_header" >&5
7407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 else
7411 cat >conftest.$ac_ext <<_ACEOF
7412 #line $LINENO "configure"
7413 #include "confdefs.h"
7414 #include <audio/audiolib.h>
7416 #include <$ac_header>
7417 _ACEOF
7418 rm -f conftest.$ac_objext
7419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7420 (eval $ac_compile) 2>&5
7421 ac_status=$?
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } &&
7424 { ac_try='test -s conftest.$ac_objext'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426 (eval $ac_try) 2>&5
7427 ac_status=$?
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; }; then
7430 eval "$as_ac_Header=yes"
7431 else
7432 echo "$as_me: failed program was:" >&5
7433 cat conftest.$ac_ext >&5
7434 eval "$as_ac_Header=no"
7436 rm -f conftest.$ac_objext conftest.$ac_ext
7438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7441 cat >>confdefs.h <<_ACEOF
7442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7443 _ACEOF
7447 done
7449 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
7450 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
7451 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454 ac_check_lib_save_LIBS=$LIBS
7455 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7456 cat >conftest.$ac_ext <<_ACEOF
7457 #line $LINENO "configure"
7458 #include "confdefs.h"
7460 /* Override any gcc2 internal prototype to avoid an error. */
7461 #ifdef __cplusplus
7462 extern "C"
7463 #endif
7464 /* We use char because int might match the return type of a gcc2
7465 builtin and then its argument prototype would still apply. */
7466 char AuCreateFlow ();
7468 main ()
7470 AuCreateFlow ();
7472 return 0;
7474 _ACEOF
7475 rm -f conftest.$ac_objext conftest$ac_exeext
7476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7477 (eval $ac_link) 2>&5
7478 ac_status=$?
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } &&
7481 { ac_try='test -s conftest$ac_exeext'
7482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483 (eval $ac_try) 2>&5
7484 ac_status=$?
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); }; }; then
7487 ac_cv_lib_audio_AuCreateFlow=yes
7488 else
7489 echo "$as_me: failed program was:" >&5
7490 cat conftest.$ac_ext >&5
7491 ac_cv_lib_audio_AuCreateFlow=no
7493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7494 LIBS=$ac_check_lib_save_LIBS
7496 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
7497 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
7498 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
7500 cat >>confdefs.h <<\_ACEOF
7501 #define HAVE_NAS 1
7502 _ACEOF
7504 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
7509 done
7512 CPPFLAGS="$ac_save_CPPFLAGS"
7513 XFILES='$(XFILES)'
7514 else
7515 XLIB=""
7516 X_CFLAGS=""
7517 X_LIBS=""
7520 CURSESLIBS=""
7521 if test "x$with_curses" != "xno"
7522 then
7524 for ac_header in ncurses.h
7526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7528 echo "$as_me:$LINENO: checking for $ac_header" >&5
7529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7535 else
7536 # Is the header compilable?
7537 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7539 cat >conftest.$ac_ext <<_ACEOF
7540 #line $LINENO "configure"
7541 #include "confdefs.h"
7542 $ac_includes_default
7543 #include <$ac_header>
7544 _ACEOF
7545 rm -f conftest.$ac_objext
7546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7547 (eval $ac_compile) 2>&5
7548 ac_status=$?
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } &&
7551 { ac_try='test -s conftest.$ac_objext'
7552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7553 (eval $ac_try) 2>&5
7554 ac_status=$?
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); }; }; then
7557 ac_header_compiler=yes
7558 else
7559 echo "$as_me: failed program was:" >&5
7560 cat conftest.$ac_ext >&5
7561 ac_header_compiler=no
7563 rm -f conftest.$ac_objext conftest.$ac_ext
7564 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7565 echo "${ECHO_T}$ac_header_compiler" >&6
7567 # Is the header present?
7568 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7570 cat >conftest.$ac_ext <<_ACEOF
7571 #line $LINENO "configure"
7572 #include "confdefs.h"
7573 #include <$ac_header>
7574 _ACEOF
7575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7577 ac_status=$?
7578 grep -v '^ *+' conftest.er1 >conftest.err
7579 rm -f conftest.er1
7580 cat conftest.err >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } >/dev/null; then
7583 if test -s conftest.err; then
7584 ac_cpp_err=$ac_c_preproc_warn_flag
7585 else
7586 ac_cpp_err=
7588 else
7589 ac_cpp_err=yes
7591 if test -z "$ac_cpp_err"; then
7592 ac_header_preproc=yes
7593 else
7594 echo "$as_me: failed program was:" >&5
7595 cat conftest.$ac_ext >&5
7596 ac_header_preproc=no
7598 rm -f conftest.err conftest.$ac_ext
7599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7600 echo "${ECHO_T}$ac_header_preproc" >&6
7602 # So? What about this header?
7603 case $ac_header_compiler:$ac_header_preproc in
7604 yes:no )
7605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7609 no:yes )
7610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7616 esac
7617 echo "$as_me:$LINENO: checking for $ac_header" >&5
7618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7621 else
7622 eval "$as_ac_Header=$ac_header_preproc"
7624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7629 cat >>confdefs.h <<_ACEOF
7630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7631 _ACEOF
7632 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
7633 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7634 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637 ac_check_lib_save_LIBS=$LIBS
7638 LIBS="-lncurses $LIBS"
7639 cat >conftest.$ac_ext <<_ACEOF
7640 #line $LINENO "configure"
7641 #include "confdefs.h"
7643 /* Override any gcc2 internal prototype to avoid an error. */
7644 #ifdef __cplusplus
7645 extern "C"
7646 #endif
7647 /* We use char because int might match the return type of a gcc2
7648 builtin and then its argument prototype would still apply. */
7649 char waddch ();
7651 main ()
7653 waddch ();
7655 return 0;
7657 _ACEOF
7658 rm -f conftest.$ac_objext conftest$ac_exeext
7659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7660 (eval $ac_link) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); } &&
7664 { ac_try='test -s conftest$ac_exeext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 ac_cv_lib_ncurses_waddch=yes
7671 else
7672 echo "$as_me: failed program was:" >&5
7673 cat conftest.$ac_ext >&5
7674 ac_cv_lib_ncurses_waddch=no
7676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7677 LIBS=$ac_check_lib_save_LIBS
7679 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
7680 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7681 if test $ac_cv_lib_ncurses_waddch = yes; then
7683 cat >>confdefs.h <<\_ACEOF
7684 #define HAVE_LIBNCURSES 1
7685 _ACEOF
7687 CURSESLIBS="-lncurses"
7688 else
7690 for ac_header in curses.h
7692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7694 echo "$as_me:$LINENO: checking for $ac_header" >&5
7695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7701 else
7702 # Is the header compilable?
7703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7705 cat >conftest.$ac_ext <<_ACEOF
7706 #line $LINENO "configure"
7707 #include "confdefs.h"
7708 $ac_includes_default
7709 #include <$ac_header>
7710 _ACEOF
7711 rm -f conftest.$ac_objext
7712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7713 (eval $ac_compile) 2>&5
7714 ac_status=$?
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } &&
7717 { ac_try='test -s conftest.$ac_objext'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 (eval $ac_try) 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; }; then
7723 ac_header_compiler=yes
7724 else
7725 echo "$as_me: failed program was:" >&5
7726 cat conftest.$ac_ext >&5
7727 ac_header_compiler=no
7729 rm -f conftest.$ac_objext conftest.$ac_ext
7730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7731 echo "${ECHO_T}$ac_header_compiler" >&6
7733 # Is the header present?
7734 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7736 cat >conftest.$ac_ext <<_ACEOF
7737 #line $LINENO "configure"
7738 #include "confdefs.h"
7739 #include <$ac_header>
7740 _ACEOF
7741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7743 ac_status=$?
7744 grep -v '^ *+' conftest.er1 >conftest.err
7745 rm -f conftest.er1
7746 cat conftest.err >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } >/dev/null; then
7749 if test -s conftest.err; then
7750 ac_cpp_err=$ac_c_preproc_warn_flag
7751 else
7752 ac_cpp_err=
7754 else
7755 ac_cpp_err=yes
7757 if test -z "$ac_cpp_err"; then
7758 ac_header_preproc=yes
7759 else
7760 echo "$as_me: failed program was:" >&5
7761 cat conftest.$ac_ext >&5
7762 ac_header_preproc=no
7764 rm -f conftest.err conftest.$ac_ext
7765 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7766 echo "${ECHO_T}$ac_header_preproc" >&6
7768 # So? What about this header?
7769 case $ac_header_compiler:$ac_header_preproc in
7770 yes:no )
7771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7775 no:yes )
7776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7782 esac
7783 echo "$as_me:$LINENO: checking for $ac_header" >&5
7784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788 eval "$as_ac_Header=$ac_header_preproc"
7790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7795 cat >>confdefs.h <<_ACEOF
7796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7797 _ACEOF
7798 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
7799 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7800 if test "${ac_cv_lib_curses_waddch+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803 ac_check_lib_save_LIBS=$LIBS
7804 LIBS="-lcurses $LIBS"
7805 cat >conftest.$ac_ext <<_ACEOF
7806 #line $LINENO "configure"
7807 #include "confdefs.h"
7809 /* Override any gcc2 internal prototype to avoid an error. */
7810 #ifdef __cplusplus
7811 extern "C"
7812 #endif
7813 /* We use char because int might match the return type of a gcc2
7814 builtin and then its argument prototype would still apply. */
7815 char waddch ();
7817 main ()
7819 waddch ();
7821 return 0;
7823 _ACEOF
7824 rm -f conftest.$ac_objext conftest$ac_exeext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7826 (eval $ac_link) 2>&5
7827 ac_status=$?
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } &&
7830 { ac_try='test -s conftest$ac_exeext'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 (eval $ac_try) 2>&5
7833 ac_status=$?
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
7836 ac_cv_lib_curses_waddch=yes
7837 else
7838 echo "$as_me: failed program was:" >&5
7839 cat conftest.$ac_ext >&5
7840 ac_cv_lib_curses_waddch=no
7842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7843 LIBS=$ac_check_lib_save_LIBS
7845 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
7846 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7847 if test $ac_cv_lib_curses_waddch = yes; then
7849 cat >>confdefs.h <<\_ACEOF
7850 #define HAVE_LIBCURSES 1
7851 _ACEOF
7853 CURSESLIBS="-lcurses"
7858 done
7864 done
7866 saved_libs="$LIBS"
7867 LIBS="$CURSESLIBS $LIBS"
7870 for ac_func in getbkgd resizeterm
7872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7873 echo "$as_me:$LINENO: checking for $ac_func" >&5
7874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7875 if eval "test \"\${$as_ac_var+set}\" = set"; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 else
7878 cat >conftest.$ac_ext <<_ACEOF
7879 #line $LINENO "configure"
7880 #include "confdefs.h"
7881 /* System header to define __stub macros and hopefully few prototypes,
7882 which can conflict with char $ac_func (); below. */
7883 #include <assert.h>
7884 /* Override any gcc2 internal prototype to avoid an error. */
7885 #ifdef __cplusplus
7886 extern "C"
7887 #endif
7888 /* We use char because int might match the return type of a gcc2
7889 builtin and then its argument prototype would still apply. */
7890 char $ac_func ();
7891 char (*f) ();
7894 main ()
7896 /* The GNU C library defines this for functions which it implements
7897 to always fail with ENOSYS. Some functions are actually named
7898 something starting with __ and the normal name is an alias. */
7899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7900 choke me
7901 #else
7902 f = $ac_func;
7903 #endif
7906 return 0;
7908 _ACEOF
7909 rm -f conftest.$ac_objext conftest$ac_exeext
7910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7911 (eval $ac_link) 2>&5
7912 ac_status=$?
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } &&
7915 { ac_try='test -s conftest$ac_exeext'
7916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917 (eval $ac_try) 2>&5
7918 ac_status=$?
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; }; then
7921 eval "$as_ac_var=yes"
7922 else
7923 echo "$as_me: failed program was:" >&5
7924 cat conftest.$ac_ext >&5
7925 eval "$as_ac_var=no"
7927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7931 if test `eval echo '${'$as_ac_var'}'` = yes; then
7932 cat >>confdefs.h <<_ACEOF
7933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7934 _ACEOF
7937 done
7939 LIBS="$saved_libs"
7943 # Extract the first word of "sane-config", so it can be a program name with args.
7944 set dummy sane-config; ac_word=$2
7945 echo "$as_me:$LINENO: checking for $ac_word" >&5
7946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7947 if test "${ac_cv_prog_sane_devel+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950 if test -n "$sane_devel"; then
7951 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
7952 else
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $PATH
7956 IFS=$as_save_IFS
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7960 ac_cv_prog_sane_devel="sane-config"
7961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 break 2
7964 done
7965 done
7967 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
7970 sane_devel=$ac_cv_prog_sane_devel
7971 if test -n "$sane_devel"; then
7972 echo "$as_me:$LINENO: result: $sane_devel" >&5
7973 echo "${ECHO_T}$sane_devel" >&6
7974 else
7975 echo "$as_me:$LINENO: result: no" >&5
7976 echo "${ECHO_T}no" >&6
7979 if test "$sane_devel" = "no"
7980 then
7981 SANELIBS=""
7982 SANEINCL=""
7983 else
7984 SANELIBS="`$sane_devel --libs`"
7985 SANEINCL="`$sane_devel --cflags`"
7986 ac_save_CPPFLAGS="$CPPFLAGS"
7987 ac_save_LIBS="$LIBS"
7988 CPPFLAGS="$CPPFLAGS $SANEINCL"
7989 LIBS="$LIBS $SANELIBS"
7990 if test "${ac_cv_header_sane_sane_h+set}" = set; then
7991 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
7992 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
7993 if test "${ac_cv_header_sane_sane_h+set}" = set; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7996 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
7997 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
7998 else
7999 # Is the header compilable?
8000 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8001 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8002 cat >conftest.$ac_ext <<_ACEOF
8003 #line $LINENO "configure"
8004 #include "confdefs.h"
8005 $ac_includes_default
8006 #include <sane/sane.h>
8007 _ACEOF
8008 rm -f conftest.$ac_objext
8009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8010 (eval $ac_compile) 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } &&
8014 { ac_try='test -s conftest.$ac_objext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 (eval $ac_try) 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 ac_header_compiler=yes
8021 else
8022 echo "$as_me: failed program was:" >&5
8023 cat conftest.$ac_ext >&5
8024 ac_header_compiler=no
8026 rm -f conftest.$ac_objext conftest.$ac_ext
8027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8028 echo "${ECHO_T}$ac_header_compiler" >&6
8030 # Is the header present?
8031 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8032 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8033 cat >conftest.$ac_ext <<_ACEOF
8034 #line $LINENO "configure"
8035 #include "confdefs.h"
8036 #include <sane/sane.h>
8037 _ACEOF
8038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8040 ac_status=$?
8041 grep -v '^ *+' conftest.er1 >conftest.err
8042 rm -f conftest.er1
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } >/dev/null; then
8046 if test -s conftest.err; then
8047 ac_cpp_err=$ac_c_preproc_warn_flag
8048 else
8049 ac_cpp_err=
8051 else
8052 ac_cpp_err=yes
8054 if test -z "$ac_cpp_err"; then
8055 ac_header_preproc=yes
8056 else
8057 echo "$as_me: failed program was:" >&5
8058 cat conftest.$ac_ext >&5
8059 ac_header_preproc=no
8061 rm -f conftest.err conftest.$ac_ext
8062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8063 echo "${ECHO_T}$ac_header_preproc" >&6
8065 # So? What about this header?
8066 case $ac_header_compiler:$ac_header_preproc in
8067 yes:no )
8068 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8069 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8070 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8071 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8072 no:yes )
8073 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8074 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8075 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8076 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8077 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8078 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8079 esac
8080 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8081 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8082 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8084 else
8085 ac_cv_header_sane_sane_h=$ac_header_preproc
8087 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8088 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8091 if test $ac_cv_header_sane_sane_h = yes; then
8092 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8093 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8094 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097 ac_check_lib_save_LIBS=$LIBS
8098 LIBS="-lsane $LIBS"
8099 cat >conftest.$ac_ext <<_ACEOF
8100 #line $LINENO "configure"
8101 #include "confdefs.h"
8103 /* Override any gcc2 internal prototype to avoid an error. */
8104 #ifdef __cplusplus
8105 extern "C"
8106 #endif
8107 /* We use char because int might match the return type of a gcc2
8108 builtin and then its argument prototype would still apply. */
8109 char sane_open ();
8111 main ()
8113 sane_open ();
8115 return 0;
8117 _ACEOF
8118 rm -f conftest.$ac_objext conftest$ac_exeext
8119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8120 (eval $ac_link) 2>&5
8121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); } &&
8124 { ac_try='test -s conftest$ac_exeext'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 (eval $ac_try) 2>&5
8127 ac_status=$?
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; }; then
8130 ac_cv_lib_sane_sane_open=yes
8131 else
8132 echo "$as_me: failed program was:" >&5
8133 cat conftest.$ac_ext >&5
8134 ac_cv_lib_sane_sane_open=no
8136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8137 LIBS=$ac_check_lib_save_LIBS
8139 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8140 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8141 if test $ac_cv_lib_sane_sane_open = yes; then
8143 cat >>confdefs.h <<\_ACEOF
8144 #define HAVE_SANE 1
8145 _ACEOF
8147 else
8148 SANELIBS=""
8149 SANEINCL=""
8152 else
8153 SANELIBS=""
8154 SANEINCL=""
8158 LIBS="$ac_save_LIBS"
8159 CPPFLAGS="$ac_save_CPPFLAGS"
8164 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8165 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8166 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
8168 else
8169 ac_check_lib_save_LIBS=$LIBS
8170 LIBS="-lfreetype $X_LIBS $LIBS"
8171 cat >conftest.$ac_ext <<_ACEOF
8172 #line $LINENO "configure"
8173 #include "confdefs.h"
8175 /* Override any gcc2 internal prototype to avoid an error. */
8176 #ifdef __cplusplus
8177 extern "C"
8178 #endif
8179 /* We use char because int might match the return type of a gcc2
8180 builtin and then its argument prototype would still apply. */
8181 char FT_Init_FreeType ();
8183 main ()
8185 FT_Init_FreeType ();
8187 return 0;
8189 _ACEOF
8190 rm -f conftest.$ac_objext conftest$ac_exeext
8191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8192 (eval $ac_link) 2>&5
8193 ac_status=$?
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); } &&
8196 { ac_try='test -s conftest$ac_exeext'
8197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 (eval $ac_try) 2>&5
8199 ac_status=$?
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }; }; then
8202 ac_cv_lib_freetype_FT_Init_FreeType=yes
8203 else
8204 echo "$as_me: failed program was:" >&5
8205 cat conftest.$ac_ext >&5
8206 ac_cv_lib_freetype_FT_Init_FreeType=no
8208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8209 LIBS=$ac_check_lib_save_LIBS
8211 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8212 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8213 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8214 ft_lib=yes
8215 else
8216 ft_lib=no
8219 if test "$ft_lib" = "no"
8220 then
8221 FREETYPEINCL=""
8222 wine_cv_msg_freetype=no
8223 else
8224 # Extract the first word of "freetype-config", so it can be a program name with args.
8225 set dummy freetype-config; ac_word=$2
8226 echo "$as_me:$LINENO: checking for $ac_word" >&5
8227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8228 if test "${ac_cv_prog_ft_devel+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 else
8231 if test -n "$ft_devel"; then
8232 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8233 else
8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235 for as_dir in $PATH
8237 IFS=$as_save_IFS
8238 test -z "$as_dir" && as_dir=.
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241 ac_cv_prog_ft_devel="freetype-config"
8242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 break 2
8245 done
8246 done
8248 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8251 ft_devel=$ac_cv_prog_ft_devel
8252 if test -n "$ft_devel"; then
8253 echo "$as_me:$LINENO: result: $ft_devel" >&5
8254 echo "${ECHO_T}$ft_devel" >&6
8255 else
8256 echo "$as_me:$LINENO: result: no" >&5
8257 echo "${ECHO_T}no" >&6
8260 if test "$ft_devel" = "no"
8261 then
8262 # Extract the first word of "freetype2-config", so it can be a program name with args.
8263 set dummy freetype2-config; ac_word=$2
8264 echo "$as_me:$LINENO: checking for $ac_word" >&5
8265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8266 if test "${ac_cv_prog_ft_devel2+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269 if test -n "$ft_devel2"; then
8270 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
8271 else
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 for as_dir in $PATH
8275 IFS=$as_save_IFS
8276 test -z "$as_dir" && as_dir=.
8277 for ac_exec_ext in '' $ac_executable_extensions; do
8278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8279 ac_cv_prog_ft_devel2="freetype2-config"
8280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8281 break 2
8283 done
8284 done
8286 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8289 ft_devel2=$ac_cv_prog_ft_devel2
8290 if test -n "$ft_devel2"; then
8291 echo "$as_me:$LINENO: result: $ft_devel2" >&5
8292 echo "${ECHO_T}$ft_devel2" >&6
8293 else
8294 echo "$as_me:$LINENO: result: no" >&5
8295 echo "${ECHO_T}no" >&6
8298 if test "$ft_devel2" = "freetype2-config"
8299 then
8300 ft_devel=$ft_devel2
8303 if test "$ft_devel" = "no"
8304 then
8305 FREETYPEINCL=""
8306 wine_cv_msg_freetype=yes
8307 else
8308 FREETYPEINCL=`$ft_devel --cflags`
8309 ac_save_CPPFLAGS="$CPPFLAGS"
8310 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
8319 for ac_header in freetype/freetype.h \
8320 freetype/ftglyph.h \
8321 freetype/tttables.h \
8322 freetype/ftnames.h \
8323 freetype/ftsnames.h \
8324 freetype/ttnameid.h \
8325 freetype/ftoutln.h \
8326 freetype/internal/sfnt.h
8328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8330 echo "$as_me:$LINENO: checking for $ac_header" >&5
8331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8337 else
8338 # Is the header compilable?
8339 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8341 cat >conftest.$ac_ext <<_ACEOF
8342 #line $LINENO "configure"
8343 #include "confdefs.h"
8344 $ac_includes_default
8345 #include <$ac_header>
8346 _ACEOF
8347 rm -f conftest.$ac_objext
8348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8349 (eval $ac_compile) 2>&5
8350 ac_status=$?
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); } &&
8353 { ac_try='test -s conftest.$ac_objext'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355 (eval $ac_try) 2>&5
8356 ac_status=$?
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; }; then
8359 ac_header_compiler=yes
8360 else
8361 echo "$as_me: failed program was:" >&5
8362 cat conftest.$ac_ext >&5
8363 ac_header_compiler=no
8365 rm -f conftest.$ac_objext conftest.$ac_ext
8366 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8367 echo "${ECHO_T}$ac_header_compiler" >&6
8369 # Is the header present?
8370 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8372 cat >conftest.$ac_ext <<_ACEOF
8373 #line $LINENO "configure"
8374 #include "confdefs.h"
8375 #include <$ac_header>
8376 _ACEOF
8377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8379 ac_status=$?
8380 grep -v '^ *+' conftest.er1 >conftest.err
8381 rm -f conftest.er1
8382 cat conftest.err >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } >/dev/null; then
8385 if test -s conftest.err; then
8386 ac_cpp_err=$ac_c_preproc_warn_flag
8387 else
8388 ac_cpp_err=
8390 else
8391 ac_cpp_err=yes
8393 if test -z "$ac_cpp_err"; then
8394 ac_header_preproc=yes
8395 else
8396 echo "$as_me: failed program was:" >&5
8397 cat conftest.$ac_ext >&5
8398 ac_header_preproc=no
8400 rm -f conftest.err conftest.$ac_ext
8401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8402 echo "${ECHO_T}$ac_header_preproc" >&6
8404 # So? What about this header?
8405 case $ac_header_compiler:$ac_header_preproc in
8406 yes:no )
8407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8411 no:yes )
8412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8418 esac
8419 echo "$as_me:$LINENO: checking for $ac_header" >&5
8420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 else
8424 eval "$as_ac_Header=$ac_header_preproc"
8426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8431 cat >>confdefs.h <<_ACEOF
8432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8433 _ACEOF
8437 done
8439 cat >conftest.$ac_ext <<_ACEOF
8440 #line $LINENO "configure"
8441 #include "confdefs.h"
8442 #include <ft2build.h>
8443 #include <freetype/fttrigon.h>
8444 _ACEOF
8445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8447 ac_status=$?
8448 grep -v '^ *+' conftest.er1 >conftest.err
8449 rm -f conftest.er1
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } >/dev/null; then
8453 if test -s conftest.err; then
8454 ac_cpp_err=$ac_c_preproc_warn_flag
8455 else
8456 ac_cpp_err=
8458 else
8459 ac_cpp_err=yes
8461 if test -z "$ac_cpp_err"; then
8463 cat >>confdefs.h <<\_ACEOF
8464 #define HAVE_FREETYPE_FTTRIGON_H 1
8465 _ACEOF
8467 wine_cv_fttrigon=yes
8468 else
8469 echo "$as_me: failed program was:" >&5
8470 cat conftest.$ac_ext >&5
8471 wine_cv_fttrigon=no
8473 rm -f conftest.err conftest.$ac_ext
8474 CPPFLAGS="$ac_save_CPPFLAGS"
8475 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
8476 then
8478 cat >>confdefs.h <<\_ACEOF
8479 #define HAVE_FREETYPE 1
8480 _ACEOF
8482 wine_cv_msg_freetype=no
8483 else
8484 FREETYPEINCL=""
8485 wine_cv_msg_freetype=yes
8491 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
8492 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8493 if test "${ac_cv_c_ppdev+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496 cat >conftest.$ac_ext <<_ACEOF
8497 #line $LINENO "configure"
8498 #include "confdefs.h"
8499 #include <linux/ppdev.h>
8501 main ()
8503 ioctl (1,PPCLAIM,0)
8505 return 0;
8507 _ACEOF
8508 rm -f conftest.$ac_objext
8509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8510 (eval $ac_compile) 2>&5
8511 ac_status=$?
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); } &&
8514 { ac_try='test -s conftest.$ac_objext'
8515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516 (eval $ac_try) 2>&5
8517 ac_status=$?
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; }; then
8520 ac_cv_c_ppdev="yes"
8521 else
8522 echo "$as_me: failed program was:" >&5
8523 cat conftest.$ac_ext >&5
8524 ac_cv_c_ppdev="no"
8526 rm -f conftest.$ac_objext conftest.$ac_ext
8529 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
8530 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
8531 if test "$ac_cv_c_ppdev" = "yes"
8532 then
8534 cat >>confdefs.h <<\_ACEOF
8535 #define HAVE_PPDEV 1
8536 _ACEOF
8540 echo "$as_me:$LINENO: checking for va_copy" >&5
8541 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
8542 if test "${ac_cv_c_va_copy+set}" = set; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545 cat >conftest.$ac_ext <<_ACEOF
8546 #line $LINENO "configure"
8547 #include "confdefs.h"
8548 #include <stdarg.h>
8550 main ()
8552 va_list ap1, ap2;
8553 va_copy(ap1,ap2);
8556 return 0;
8558 _ACEOF
8559 rm -f conftest.$ac_objext conftest$ac_exeext
8560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8561 (eval $ac_link) 2>&5
8562 ac_status=$?
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } &&
8565 { ac_try='test -s conftest$ac_exeext'
8566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 (eval $ac_try) 2>&5
8568 ac_status=$?
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); }; }; then
8571 ac_cv_c_va_copy="yes"
8572 else
8573 echo "$as_me: failed program was:" >&5
8574 cat conftest.$ac_ext >&5
8575 ac_cv_c_va_copy="no"
8577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8580 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
8581 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
8582 if test "$ac_cv_c_va_copy" = "yes"
8583 then
8585 cat >>confdefs.h <<\_ACEOF
8586 #define HAVE_VA_COPY 1
8587 _ACEOF
8590 echo "$as_me:$LINENO: checking for __va_copy" >&5
8591 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
8592 if test "${ac_cv_c___va_copy+set}" = set; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 else
8595 cat >conftest.$ac_ext <<_ACEOF
8596 #line $LINENO "configure"
8597 #include "confdefs.h"
8598 #include <stdarg.h>
8600 main ()
8602 va_list ap1, ap2;
8603 __va_copy(ap1,ap2);
8606 return 0;
8608 _ACEOF
8609 rm -f conftest.$ac_objext conftest$ac_exeext
8610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8611 (eval $ac_link) 2>&5
8612 ac_status=$?
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try='test -s conftest$ac_exeext'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 (eval $ac_try) 2>&5
8618 ac_status=$?
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8621 ac_cv_c___va_copy="yes"
8622 else
8623 echo "$as_me: failed program was:" >&5
8624 cat conftest.$ac_ext >&5
8625 ac_cv_c___va_copy="no"
8627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8630 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
8631 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
8632 if test "$ac_cv_c___va_copy" = "yes"
8633 then
8635 cat >>confdefs.h <<\_ACEOF
8636 #define HAVE___VA_COPY 1
8637 _ACEOF
8641 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
8642 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8643 if test "${ac_cv_c_ipx_gnu+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646 cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8648 #include "confdefs.h"
8649 #include <sys/types.h>
8650 #ifdef HAVE_SYS_SOCKET_H
8651 # include <sys/socket.h>
8652 #endif
8653 #include <netipx/ipx.h>
8655 main ()
8657 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8659 return 0;
8661 _ACEOF
8662 rm -f conftest.$ac_objext
8663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8664 (eval $ac_compile) 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } &&
8668 { ac_try='test -s conftest.$ac_objext'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 (eval $ac_try) 2>&5
8671 ac_status=$?
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; }; then
8674 ac_cv_c_ipx_gnu="yes"
8675 else
8676 echo "$as_me: failed program was:" >&5
8677 cat conftest.$ac_ext >&5
8678 ac_cv_c_ipx_gnu="no"
8680 rm -f conftest.$ac_objext conftest.$ac_ext
8683 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
8684 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
8685 if test "$ac_cv_c_ipx_gnu" = "yes"
8686 then
8688 cat >>confdefs.h <<\_ACEOF
8689 #define HAVE_IPX_GNU 1
8690 _ACEOF
8694 if test "$ac_cv_c_ipx_gnu" = "no"
8695 then
8696 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
8697 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8698 if test "${ac_cv_c_ipx_linux+set}" = set; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8700 else
8701 cat >conftest.$ac_ext <<_ACEOF
8702 #line $LINENO "configure"
8703 #include "confdefs.h"
8704 #include <sys/types.h>
8705 #ifdef HAVE_SYS_SOCKET_H
8706 # include <sys/socket.h>
8707 #endif
8708 #include <asm/types.h>
8709 #include <linux/ipx.h>
8711 main ()
8713 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8715 return 0;
8717 _ACEOF
8718 rm -f conftest.$ac_objext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8720 (eval $ac_compile) 2>&5
8721 ac_status=$?
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } &&
8724 { ac_try='test -s conftest.$ac_objext'
8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 (eval $ac_try) 2>&5
8727 ac_status=$?
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; }; then
8730 ac_cv_c_ipx_linux="yes"
8731 else
8732 echo "$as_me: failed program was:" >&5
8733 cat conftest.$ac_ext >&5
8734 ac_cv_c_ipx_linux="no"
8736 rm -f conftest.$ac_objext conftest.$ac_ext
8739 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
8740 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
8741 if test "$ac_cv_c_ipx_linux" = "yes"
8742 then
8744 cat >>confdefs.h <<\_ACEOF
8745 #define HAVE_IPX_LINUX 1
8746 _ACEOF
8754 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
8756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8758 echo "$as_me:$LINENO: checking for $ac_header" >&5
8759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8765 else
8766 # Is the header compilable?
8767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8769 cat >conftest.$ac_ext <<_ACEOF
8770 #line $LINENO "configure"
8771 #include "confdefs.h"
8772 $ac_includes_default
8773 #include <$ac_header>
8774 _ACEOF
8775 rm -f conftest.$ac_objext
8776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8777 (eval $ac_compile) 2>&5
8778 ac_status=$?
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } &&
8781 { ac_try='test -s conftest.$ac_objext'
8782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783 (eval $ac_try) 2>&5
8784 ac_status=$?
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); }; }; then
8787 ac_header_compiler=yes
8788 else
8789 echo "$as_me: failed program was:" >&5
8790 cat conftest.$ac_ext >&5
8791 ac_header_compiler=no
8793 rm -f conftest.$ac_objext conftest.$ac_ext
8794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8795 echo "${ECHO_T}$ac_header_compiler" >&6
8797 # Is the header present?
8798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8800 cat >conftest.$ac_ext <<_ACEOF
8801 #line $LINENO "configure"
8802 #include "confdefs.h"
8803 #include <$ac_header>
8804 _ACEOF
8805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8807 ac_status=$?
8808 grep -v '^ *+' conftest.er1 >conftest.err
8809 rm -f conftest.er1
8810 cat conftest.err >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } >/dev/null; then
8813 if test -s conftest.err; then
8814 ac_cpp_err=$ac_c_preproc_warn_flag
8815 else
8816 ac_cpp_err=
8818 else
8819 ac_cpp_err=yes
8821 if test -z "$ac_cpp_err"; then
8822 ac_header_preproc=yes
8823 else
8824 echo "$as_me: failed program was:" >&5
8825 cat conftest.$ac_ext >&5
8826 ac_header_preproc=no
8828 rm -f conftest.err conftest.$ac_ext
8829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8830 echo "${ECHO_T}$ac_header_preproc" >&6
8832 # So? What about this header?
8833 case $ac_header_compiler:$ac_header_preproc in
8834 yes:no )
8835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8839 no:yes )
8840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8846 esac
8847 echo "$as_me:$LINENO: checking for $ac_header" >&5
8848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852 eval "$as_ac_Header=$ac_header_preproc"
8854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8859 cat >>confdefs.h <<_ACEOF
8860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8861 _ACEOF
8862 break
8865 done
8868 echo "$as_me:$LINENO: checking for Open Sound System" >&5
8869 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8870 if test "${ac_cv_c_opensoundsystem+set}" = set; then
8871 echo $ECHO_N "(cached) $ECHO_C" >&6
8872 else
8873 cat >conftest.$ac_ext <<_ACEOF
8874 #line $LINENO "configure"
8875 #include "confdefs.h"
8877 #if defined(HAVE_SYS_SOUNDCARD_H)
8878 #include <sys/soundcard.h>
8879 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8880 #include <machine/soundcard.h>
8881 #elif defined(HAVE_SOUNDCARD_H)
8882 #include <soundcard.h>
8883 #endif
8886 main ()
8890 /* check for one of the Open Sound System specific SNDCTL_ defines */
8891 #if !defined(SNDCTL_DSP_STEREO)
8892 #error No open sound system
8893 #endif
8896 return 0;
8898 _ACEOF
8899 rm -f conftest.$ac_objext
8900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8901 (eval $ac_compile) 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } &&
8905 { ac_try='test -s conftest.$ac_objext'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 (eval $ac_try) 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
8911 ac_cv_c_opensoundsystem="yes"
8912 else
8913 echo "$as_me: failed program was:" >&5
8914 cat conftest.$ac_ext >&5
8915 ac_cv_c_opensoundsystem="no"
8917 rm -f conftest.$ac_objext conftest.$ac_ext
8919 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
8920 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
8922 if test "$ac_cv_c_opensoundsystem" = "yes"
8923 then
8925 cat >>confdefs.h <<\_ACEOF
8926 #define HAVE_OSS 1
8927 _ACEOF
8931 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
8932 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
8933 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8935 else
8936 cat >conftest.$ac_ext <<_ACEOF
8937 #line $LINENO "configure"
8938 #include "confdefs.h"
8940 #if defined(HAVE_SYS_SOUNDCARD_H)
8941 #include <sys/soundcard.h>
8942 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8943 #include <machine/soundcard.h>
8944 #elif defined(HAVE_SOUNDCARD_H)
8945 #include <soundcard.h>
8946 #endif
8949 main ()
8953 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
8954 #if !defined(SNDCTL_SEQ_SYNC)
8955 #error No open sound system MIDI interface
8956 #endif
8959 return 0;
8961 _ACEOF
8962 rm -f conftest.$ac_objext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8964 (eval $ac_compile) 2>&5
8965 ac_status=$?
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } &&
8968 { ac_try='test -s conftest.$ac_objext'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 (eval $ac_try) 2>&5
8971 ac_status=$?
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
8974 ac_cv_c_opensoundsystem_midi="yes"
8975 else
8976 echo "$as_me: failed program was:" >&5
8977 cat conftest.$ac_ext >&5
8978 ac_cv_c_opensoundsystem_midi="no"
8980 rm -f conftest.$ac_objext conftest.$ac_ext
8982 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
8983 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
8985 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
8986 then
8988 cat >>confdefs.h <<\_ACEOF
8989 #define HAVE_OSS_MIDI 1
8990 _ACEOF
8994 # Extract the first word of "artsc-config", so it can be a program name with args.
8995 set dummy artsc-config; ac_word=$2
8996 echo "$as_me:$LINENO: checking for $ac_word" >&5
8997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8998 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
9000 else
9001 case $ARTSCCONFIG in
9002 [\\/]* | ?:[\\/]*)
9003 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
9006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9007 for as_dir in $PATH
9009 IFS=$as_save_IFS
9010 test -z "$as_dir" && as_dir=.
9011 for ac_exec_ext in '' $ac_executable_extensions; do
9012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9013 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
9014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9015 break 2
9017 done
9018 done
9021 esac
9023 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9025 if test -n "$ARTSCCONFIG"; then
9026 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
9027 echo "${ECHO_T}$ARTSCCONFIG" >&6
9028 else
9029 echo "$as_me:$LINENO: result: no" >&5
9030 echo "${ECHO_T}no" >&6
9033 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
9034 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9035 if test "${ac_cv_c_artsserver+set}" = set; then
9036 echo $ECHO_N "(cached) $ECHO_C" >&6
9037 else
9038 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9039 then
9040 ac_cv_c_artsserver=no
9041 else
9042 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9043 ARTSC_LIBS=`$ARTSCCONFIG --libs`
9044 ac_cv_c_artsserver=no
9045 save_CFLAGS="$CFLAGS"
9046 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9047 cat >conftest.$ac_ext <<_ACEOF
9048 #line $LINENO "configure"
9049 #include "confdefs.h"
9051 #include <artsc.h>
9054 main ()
9057 arts_stream_t stream;
9060 return 0;
9062 _ACEOF
9063 rm -f conftest.$ac_objext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9065 (eval $ac_compile) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } &&
9069 { ac_try='test -s conftest.$ac_objext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 (eval $ac_try) 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9076 ac_cv_c_artsserver=yes
9078 else
9079 echo "$as_me: failed program was:" >&5
9080 cat conftest.$ac_ext >&5
9082 rm -f conftest.$ac_objext conftest.$ac_ext
9083 CFLAGS="$save_CFLAGS"
9086 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
9087 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9089 if test "$ac_cv_c_artsserver" = "yes"
9090 then
9091 ARTSLIBS=$ARTSC_LIBS
9093 ARTSINCL=$ARTSC_CFLAGS
9097 cat >>confdefs.h <<\_ACEOF
9098 #define HAVE_ARTS 1
9099 _ACEOF
9103 ALSALIBS=""
9107 for ac_header in alsa/asoundlib.h sys/asoundlib.h
9109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9111 echo "$as_me:$LINENO: checking for $ac_header" >&5
9112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9118 else
9119 # Is the header compilable?
9120 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9122 cat >conftest.$ac_ext <<_ACEOF
9123 #line $LINENO "configure"
9124 #include "confdefs.h"
9125 $ac_includes_default
9126 #include <$ac_header>
9127 _ACEOF
9128 rm -f conftest.$ac_objext
9129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9130 (eval $ac_compile) 2>&5
9131 ac_status=$?
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } &&
9134 { ac_try='test -s conftest.$ac_objext'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 (eval $ac_try) 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; }; then
9140 ac_header_compiler=yes
9141 else
9142 echo "$as_me: failed program was:" >&5
9143 cat conftest.$ac_ext >&5
9144 ac_header_compiler=no
9146 rm -f conftest.$ac_objext conftest.$ac_ext
9147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9148 echo "${ECHO_T}$ac_header_compiler" >&6
9150 # Is the header present?
9151 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9153 cat >conftest.$ac_ext <<_ACEOF
9154 #line $LINENO "configure"
9155 #include "confdefs.h"
9156 #include <$ac_header>
9157 _ACEOF
9158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9160 ac_status=$?
9161 grep -v '^ *+' conftest.er1 >conftest.err
9162 rm -f conftest.er1
9163 cat conftest.err >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } >/dev/null; then
9166 if test -s conftest.err; then
9167 ac_cpp_err=$ac_c_preproc_warn_flag
9168 else
9169 ac_cpp_err=
9171 else
9172 ac_cpp_err=yes
9174 if test -z "$ac_cpp_err"; then
9175 ac_header_preproc=yes
9176 else
9177 echo "$as_me: failed program was:" >&5
9178 cat conftest.$ac_ext >&5
9179 ac_header_preproc=no
9181 rm -f conftest.err conftest.$ac_ext
9182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9183 echo "${ECHO_T}$ac_header_preproc" >&6
9185 # So? What about this header?
9186 case $ac_header_compiler:$ac_header_preproc in
9187 yes:no )
9188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9192 no:yes )
9193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9196 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9199 esac
9200 echo "$as_me:$LINENO: checking for $ac_header" >&5
9201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 else
9205 eval "$as_ac_Header=$ac_header_preproc"
9207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9212 cat >>confdefs.h <<_ACEOF
9213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9214 _ACEOF
9215 break
9218 done
9220 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
9221 then
9222 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
9223 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
9224 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9226 else
9227 ac_check_lib_save_LIBS=$LIBS
9228 LIBS="-lasound $LIBS"
9229 cat >conftest.$ac_ext <<_ACEOF
9230 #line $LINENO "configure"
9231 #include "confdefs.h"
9233 /* Override any gcc2 internal prototype to avoid an error. */
9234 #ifdef __cplusplus
9235 extern "C"
9236 #endif
9237 /* We use char because int might match the return type of a gcc2
9238 builtin and then its argument prototype would still apply. */
9239 char snd_pcm_open ();
9241 main ()
9243 snd_pcm_open ();
9245 return 0;
9247 _ACEOF
9248 rm -f conftest.$ac_objext conftest$ac_exeext
9249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9250 (eval $ac_link) 2>&5
9251 ac_status=$?
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } &&
9254 { ac_try='test -s conftest$ac_exeext'
9255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256 (eval $ac_try) 2>&5
9257 ac_status=$?
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; }; then
9260 ac_cv_lib_asound_snd_pcm_open=yes
9261 else
9262 echo "$as_me: failed program was:" >&5
9263 cat conftest.$ac_ext >&5
9264 ac_cv_lib_asound_snd_pcm_open=no
9266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9267 LIBS=$ac_check_lib_save_LIBS
9269 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
9270 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
9271 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
9273 cat >>confdefs.h <<\_ACEOF
9274 #define HAVE_ALSA 1
9275 _ACEOF
9277 ALSALIBS="-lasound"
9283 AUDIOIOLIBS=""
9286 for ac_header in libaudioio.h
9288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9290 echo "$as_me:$LINENO: checking for $ac_header" >&5
9291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9297 else
9298 # Is the header compilable?
9299 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9301 cat >conftest.$ac_ext <<_ACEOF
9302 #line $LINENO "configure"
9303 #include "confdefs.h"
9304 $ac_includes_default
9305 #include <$ac_header>
9306 _ACEOF
9307 rm -f conftest.$ac_objext
9308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9309 (eval $ac_compile) 2>&5
9310 ac_status=$?
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); } &&
9313 { ac_try='test -s conftest.$ac_objext'
9314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315 (eval $ac_try) 2>&5
9316 ac_status=$?
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; }; then
9319 ac_header_compiler=yes
9320 else
9321 echo "$as_me: failed program was:" >&5
9322 cat conftest.$ac_ext >&5
9323 ac_header_compiler=no
9325 rm -f conftest.$ac_objext conftest.$ac_ext
9326 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9327 echo "${ECHO_T}$ac_header_compiler" >&6
9329 # Is the header present?
9330 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9332 cat >conftest.$ac_ext <<_ACEOF
9333 #line $LINENO "configure"
9334 #include "confdefs.h"
9335 #include <$ac_header>
9336 _ACEOF
9337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9339 ac_status=$?
9340 grep -v '^ *+' conftest.er1 >conftest.err
9341 rm -f conftest.er1
9342 cat conftest.err >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } >/dev/null; then
9345 if test -s conftest.err; then
9346 ac_cpp_err=$ac_c_preproc_warn_flag
9347 else
9348 ac_cpp_err=
9350 else
9351 ac_cpp_err=yes
9353 if test -z "$ac_cpp_err"; then
9354 ac_header_preproc=yes
9355 else
9356 echo "$as_me: failed program was:" >&5
9357 cat conftest.$ac_ext >&5
9358 ac_header_preproc=no
9360 rm -f conftest.err conftest.$ac_ext
9361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9362 echo "${ECHO_T}$ac_header_preproc" >&6
9364 # So? What about this header?
9365 case $ac_header_compiler:$ac_header_preproc in
9366 yes:no )
9367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9371 no:yes )
9372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9378 esac
9379 echo "$as_me:$LINENO: checking for $ac_header" >&5
9380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9383 else
9384 eval "$as_ac_Header=$ac_header_preproc"
9386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9391 cat >>confdefs.h <<_ACEOF
9392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9393 _ACEOF
9394 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
9395 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
9396 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
9397 echo $ECHO_N "(cached) $ECHO_C" >&6
9398 else
9399 ac_check_lib_save_LIBS=$LIBS
9400 LIBS="-laudioio $LIBS"
9401 cat >conftest.$ac_ext <<_ACEOF
9402 #line $LINENO "configure"
9403 #include "confdefs.h"
9405 /* Override any gcc2 internal prototype to avoid an error. */
9406 #ifdef __cplusplus
9407 extern "C"
9408 #endif
9409 /* We use char because int might match the return type of a gcc2
9410 builtin and then its argument prototype would still apply. */
9411 char AudioIOGetVersion ();
9413 main ()
9415 AudioIOGetVersion ();
9417 return 0;
9419 _ACEOF
9420 rm -f conftest.$ac_objext conftest$ac_exeext
9421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9422 (eval $ac_link) 2>&5
9423 ac_status=$?
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); } &&
9426 { ac_try='test -s conftest$ac_exeext'
9427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428 (eval $ac_try) 2>&5
9429 ac_status=$?
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; }; then
9432 ac_cv_lib_audioio_AudioIOGetVersion=yes
9433 else
9434 echo "$as_me: failed program was:" >&5
9435 cat conftest.$ac_ext >&5
9436 ac_cv_lib_audioio_AudioIOGetVersion=no
9438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9439 LIBS=$ac_check_lib_save_LIBS
9441 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
9442 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
9443 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
9444 AUDIOIOLIBS="-laudioio"
9446 cat >>confdefs.h <<\_ACEOF
9447 #define HAVE_LIBAUDIOIO 1
9448 _ACEOF
9454 done
9458 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
9459 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9460 if test "${ac_cv_mmap64_works+set}" = set; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9462 else
9463 if test "$cross_compiling" = yes; then
9464 ac_cv_mmap64_works="no"
9465 else
9466 cat >conftest.$ac_ext <<_ACEOF
9467 #line $LINENO "configure"
9468 #include "confdefs.h"
9470 #define _FILE_OFFSET_BITS 64
9471 #include <stdio.h>
9472 #include <unistd.h>
9473 #include <fcntl.h>
9474 #include <sys/mman.h>
9475 #include <errno.h>
9477 int main(int argc,char **argv) {
9478 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9479 if (fd == -1) exit(1);
9481 unlink("conftest.map");
9483 write(fd,"test",4);
9485 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9486 (errno == EINVAL)
9488 exit(1);
9490 close(fd);
9491 fprintf(stderr,"success!\n");
9492 exit(0);
9496 _ACEOF
9497 rm -f conftest$ac_exeext
9498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9499 (eval $ac_link) 2>&5
9500 ac_status=$?
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 (eval $ac_try) 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9508 ac_cv_mmap64_works="yes"
9509 else
9510 echo "$as_me: program exited with status $ac_status" >&5
9511 echo "$as_me: failed program was:" >&5
9512 cat conftest.$ac_ext >&5
9513 ( exit $ac_status )
9514 ac_cv_mmap64_works="no"
9516 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9519 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
9520 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
9522 if test "$ac_cv_mmap64_works" = "yes"
9523 then
9525 cat >>confdefs.h <<\_ACEOF
9526 #define _FILE_OFFSET_BITS 64
9527 _ACEOF
9532 if test "x${GCC}" = "xyes"
9533 then
9534 CFLAGS="$CFLAGS -Wall"
9535 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
9536 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9537 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 else
9540 if test "$cross_compiling" = yes; then
9541 ac_cv_c_gcc_strength_bug="yes"
9542 else
9543 cat >conftest.$ac_ext <<_ACEOF
9544 #line $LINENO "configure"
9545 #include "confdefs.h"
9547 int L[4] = {0,1,2,3};
9548 int main(void) {
9549 static int Array[3];
9550 unsigned int B = 3;
9551 int i;
9552 for(i=0; i<B; i++) Array[i] = i - 3;
9553 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9554 L[i] = 4;
9556 exit( Array[1] != -2 || L[2] != 3);
9558 _ACEOF
9559 rm -f conftest$ac_exeext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561 (eval $ac_link) 2>&5
9562 ac_status=$?
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 (eval $ac_try) 2>&5
9567 ac_status=$?
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; }; then
9570 ac_cv_c_gcc_strength_bug="no"
9571 else
9572 echo "$as_me: program exited with status $ac_status" >&5
9573 echo "$as_me: failed program was:" >&5
9574 cat conftest.$ac_ext >&5
9575 ( exit $ac_status )
9576 ac_cv_c_gcc_strength_bug="yes"
9578 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9581 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
9582 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
9583 if test "$ac_cv_c_gcc_strength_bug" = "yes"
9584 then
9585 CFLAGS="$CFLAGS -fno-strength-reduce"
9588 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
9589 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9590 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 else
9593 ac_wine_try_cflags_saved=$CFLAGS
9594 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9595 cat >conftest.$ac_ext <<_ACEOF
9596 #line $LINENO "configure"
9597 #include "confdefs.h"
9600 main ()
9604 return 0;
9606 _ACEOF
9607 rm -f conftest.$ac_objext conftest$ac_exeext
9608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9609 (eval $ac_link) 2>&5
9610 ac_status=$?
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } &&
9613 { ac_try='test -s conftest$ac_exeext'
9614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615 (eval $ac_try) 2>&5
9616 ac_status=$?
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; }; then
9619 ac_cv_c_gcc_stack_boundary="yes"
9620 else
9621 echo "$as_me: failed program was:" >&5
9622 cat conftest.$ac_ext >&5
9623 ac_cv_c_gcc_stack_boundary="no"
9625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9626 CFLAGS=$ac_wine_try_cflags_saved
9628 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
9629 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
9630 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9631 then
9632 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9637 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
9638 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
9639 if test "${ac_cv_asm_func_def+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 else
9642 cat >conftest.$ac_ext <<_ACEOF
9643 #line $LINENO "configure"
9644 #include "confdefs.h"
9645 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"); }
9648 main ()
9652 return 0;
9654 _ACEOF
9655 rm -f conftest.$ac_objext conftest$ac_exeext
9656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9657 (eval $ac_link) 2>&5
9658 ac_status=$?
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } &&
9661 { ac_try='test -s conftest$ac_exeext'
9662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663 (eval $ac_try) 2>&5
9664 ac_status=$?
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; }; then
9667 ac_cv_asm_func_def=".def"
9668 else
9669 echo "$as_me: failed program was:" >&5
9670 cat conftest.$ac_ext >&5
9671 cat >conftest.$ac_ext <<_ACEOF
9672 #line $LINENO "configure"
9673 #include "confdefs.h"
9674 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
9677 main ()
9681 return 0;
9683 _ACEOF
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686 (eval $ac_link) 2>&5
9687 ac_status=$?
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } &&
9690 { ac_try='test -s conftest$ac_exeext'
9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692 (eval $ac_try) 2>&5
9693 ac_status=$?
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; }; then
9696 ac_cv_asm_func_def=".type @function"
9697 else
9698 echo "$as_me: failed program was:" >&5
9699 cat conftest.$ac_ext >&5
9700 cat >conftest.$ac_ext <<_ACEOF
9701 #line $LINENO "configure"
9702 #include "confdefs.h"
9703 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
9706 main ()
9710 return 0;
9712 _ACEOF
9713 rm -f conftest.$ac_objext conftest$ac_exeext
9714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9715 (eval $ac_link) 2>&5
9716 ac_status=$?
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } &&
9719 { ac_try='test -s conftest$ac_exeext'
9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721 (eval $ac_try) 2>&5
9722 ac_status=$?
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; }; then
9725 ac_cv_asm_func_def=".type 2"
9726 else
9727 echo "$as_me: failed program was:" >&5
9728 cat conftest.$ac_ext >&5
9729 ac_cv_asm_func_def="unknown"
9731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9737 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
9738 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
9742 case "$ac_cv_asm_func_def" in
9743 ".def")
9744 cat >>confdefs.h <<\_ACEOF
9745 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
9746 _ACEOF
9748 ".type @function")
9749 cat >>confdefs.h <<\_ACEOF
9750 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
9751 _ACEOF
9753 ".type 2")
9754 cat >>confdefs.h <<\_ACEOF
9755 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
9756 _ACEOF
9759 cat >>confdefs.h <<\_ACEOF
9760 #define __ASM_FUNC(name) ""
9761 _ACEOF
9763 esac
9766 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
9767 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
9768 if test "${ac_cv_c_extern_prefix+set}" = set; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 else
9771 cat >conftest.$ac_ext <<_ACEOF
9772 #line $LINENO "configure"
9773 #include "confdefs.h"
9774 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
9775 extern int ac_test;
9777 main ()
9779 if (ac_test) return 1
9781 return 0;
9783 _ACEOF
9784 rm -f conftest.$ac_objext conftest$ac_exeext
9785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9786 (eval $ac_link) 2>&5
9787 ac_status=$?
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } &&
9790 { ac_try='test -s conftest$ac_exeext'
9791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792 (eval $ac_try) 2>&5
9793 ac_status=$?
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; }; then
9796 ac_cv_c_extern_prefix="yes"
9797 else
9798 echo "$as_me: failed program was:" >&5
9799 cat conftest.$ac_ext >&5
9800 ac_cv_c_extern_prefix="no"
9802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9804 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
9805 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
9809 if test "$ac_cv_c_extern_prefix" = "yes"
9810 then
9811 cat >>confdefs.h <<\_ACEOF
9812 #define __ASM_NAME(name) "_" name
9813 _ACEOF
9815 else
9816 cat >>confdefs.h <<\_ACEOF
9817 #define __ASM_NAME(name) name
9818 _ACEOF
9823 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
9824 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
9825 if test "${ac_cv_c_asm_string+set}" = set; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
9827 else
9828 cat >conftest.$ac_ext <<_ACEOF
9829 #line $LINENO "configure"
9830 #include "confdefs.h"
9831 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
9834 main ()
9838 return 0;
9840 _ACEOF
9841 rm -f conftest.$ac_objext conftest$ac_exeext
9842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9843 (eval $ac_link) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } &&
9847 { ac_try='test -s conftest$ac_exeext'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9853 ac_cv_c_asm_string="yes"
9854 else
9855 echo "$as_me: failed program was:" >&5
9856 cat conftest.$ac_ext >&5
9857 ac_cv_c_asm_string="no"
9859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9861 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
9862 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
9863 if test "$ac_cv_c_asm_string" = "yes"
9864 then
9866 cat >>confdefs.h <<\_ACEOF
9867 #define HAVE_ASM_STRING 1
9868 _ACEOF
9873 DLLEXT=""
9875 DLLFLAGS=""
9877 DLLIBS=""
9879 LDDLLFLAGS=""
9881 LDSHARED=""
9883 LIBEXT="so"
9885 IMPLIBEXT="def"
9888 case $host_os in
9889 cygwin*|mingw32*)
9890 if test -n "$ac_tool_prefix"; then
9891 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9892 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9893 echo "$as_me:$LINENO: checking for $ac_word" >&5
9894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9895 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 else
9898 if test -n "$DLLTOOL"; then
9899 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9900 else
9901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9902 for as_dir in $PATH
9904 IFS=$as_save_IFS
9905 test -z "$as_dir" && as_dir=.
9906 for ac_exec_ext in '' $ac_executable_extensions; do
9907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9908 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9910 break 2
9912 done
9913 done
9917 DLLTOOL=$ac_cv_prog_DLLTOOL
9918 if test -n "$DLLTOOL"; then
9919 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
9920 echo "${ECHO_T}$DLLTOOL" >&6
9921 else
9922 echo "$as_me:$LINENO: result: no" >&5
9923 echo "${ECHO_T}no" >&6
9927 if test -z "$ac_cv_prog_DLLTOOL"; then
9928 ac_ct_DLLTOOL=$DLLTOOL
9929 # Extract the first word of "dlltool", so it can be a program name with args.
9930 set dummy dlltool; ac_word=$2
9931 echo "$as_me:$LINENO: checking for $ac_word" >&5
9932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9933 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936 if test -n "$ac_ct_DLLTOOL"; then
9937 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9938 else
9939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940 for as_dir in $PATH
9942 IFS=$as_save_IFS
9943 test -z "$as_dir" && as_dir=.
9944 for ac_exec_ext in '' $ac_executable_extensions; do
9945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9946 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9948 break 2
9950 done
9951 done
9953 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
9956 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9957 if test -n "$ac_ct_DLLTOOL"; then
9958 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9959 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
9960 else
9961 echo "$as_me:$LINENO: result: no" >&5
9962 echo "${ECHO_T}no" >&6
9965 DLLTOOL=$ac_ct_DLLTOOL
9966 else
9967 DLLTOOL="$ac_cv_prog_DLLTOOL"
9970 if test -n "$ac_tool_prefix"; then
9971 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
9972 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
9973 echo "$as_me:$LINENO: checking for $ac_word" >&5
9974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9975 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978 if test -n "$DLLWRAP"; then
9979 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
9980 else
9981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982 for as_dir in $PATH
9984 IFS=$as_save_IFS
9985 test -z "$as_dir" && as_dir=.
9986 for ac_exec_ext in '' $ac_executable_extensions; do
9987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9988 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
9989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9990 break 2
9992 done
9993 done
9997 DLLWRAP=$ac_cv_prog_DLLWRAP
9998 if test -n "$DLLWRAP"; then
9999 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
10000 echo "${ECHO_T}$DLLWRAP" >&6
10001 else
10002 echo "$as_me:$LINENO: result: no" >&5
10003 echo "${ECHO_T}no" >&6
10007 if test -z "$ac_cv_prog_DLLWRAP"; then
10008 ac_ct_DLLWRAP=$DLLWRAP
10009 # Extract the first word of "dllwrap", so it can be a program name with args.
10010 set dummy dllwrap; ac_word=$2
10011 echo "$as_me:$LINENO: checking for $ac_word" >&5
10012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10013 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 else
10016 if test -n "$ac_ct_DLLWRAP"; then
10017 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
10018 else
10019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10020 for as_dir in $PATH
10022 IFS=$as_save_IFS
10023 test -z "$as_dir" && as_dir=.
10024 for ac_exec_ext in '' $ac_executable_extensions; do
10025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10026 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
10027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10028 break 2
10030 done
10031 done
10033 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
10036 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
10037 if test -n "$ac_ct_DLLWRAP"; then
10038 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
10039 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
10040 else
10041 echo "$as_me:$LINENO: result: no" >&5
10042 echo "${ECHO_T}no" >&6
10045 DLLWRAP=$ac_ct_DLLWRAP
10046 else
10047 DLLWRAP="$ac_cv_prog_DLLWRAP"
10050 if test "$DLLWRAP" = "false"; then
10051 LIBEXT="a"
10052 else
10053 LIBEXT="dll"
10055 IMPLIBEXT="a"
10059 for ac_header in dlfcn.h
10061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10063 echo "$as_me:$LINENO: checking for $ac_header" >&5
10064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
10068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10070 else
10071 # Is the header compilable?
10072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10074 cat >conftest.$ac_ext <<_ACEOF
10075 #line $LINENO "configure"
10076 #include "confdefs.h"
10077 $ac_includes_default
10078 #include <$ac_header>
10079 _ACEOF
10080 rm -f conftest.$ac_objext
10081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10082 (eval $ac_compile) 2>&5
10083 ac_status=$?
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } &&
10086 { ac_try='test -s conftest.$ac_objext'
10087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10088 (eval $ac_try) 2>&5
10089 ac_status=$?
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); }; }; then
10092 ac_header_compiler=yes
10093 else
10094 echo "$as_me: failed program was:" >&5
10095 cat conftest.$ac_ext >&5
10096 ac_header_compiler=no
10098 rm -f conftest.$ac_objext conftest.$ac_ext
10099 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10100 echo "${ECHO_T}$ac_header_compiler" >&6
10102 # Is the header present?
10103 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10105 cat >conftest.$ac_ext <<_ACEOF
10106 #line $LINENO "configure"
10107 #include "confdefs.h"
10108 #include <$ac_header>
10109 _ACEOF
10110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10112 ac_status=$?
10113 grep -v '^ *+' conftest.er1 >conftest.err
10114 rm -f conftest.er1
10115 cat conftest.err >&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } >/dev/null; then
10118 if test -s conftest.err; then
10119 ac_cpp_err=$ac_c_preproc_warn_flag
10120 else
10121 ac_cpp_err=
10123 else
10124 ac_cpp_err=yes
10126 if test -z "$ac_cpp_err"; then
10127 ac_header_preproc=yes
10128 else
10129 echo "$as_me: failed program was:" >&5
10130 cat conftest.$ac_ext >&5
10131 ac_header_preproc=no
10133 rm -f conftest.err conftest.$ac_ext
10134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10135 echo "${ECHO_T}$ac_header_preproc" >&6
10137 # So? What about this header?
10138 case $ac_header_compiler:$ac_header_preproc in
10139 yes:no )
10140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10144 no:yes )
10145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10151 esac
10152 echo "$as_me:$LINENO: checking for $ac_header" >&5
10153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 else
10157 eval "$as_ac_Header=$ac_header_preproc"
10159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10164 cat >>confdefs.h <<_ACEOF
10165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10166 _ACEOF
10168 for ac_func in dlopen
10170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10171 echo "$as_me:$LINENO: checking for $ac_func" >&5
10172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10173 if eval "test \"\${$as_ac_var+set}\" = set"; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 else
10176 cat >conftest.$ac_ext <<_ACEOF
10177 #line $LINENO "configure"
10178 #include "confdefs.h"
10179 /* System header to define __stub macros and hopefully few prototypes,
10180 which can conflict with char $ac_func (); below. */
10181 #include <assert.h>
10182 /* Override any gcc2 internal prototype to avoid an error. */
10183 #ifdef __cplusplus
10184 extern "C"
10185 #endif
10186 /* We use char because int might match the return type of a gcc2
10187 builtin and then its argument prototype would still apply. */
10188 char $ac_func ();
10189 char (*f) ();
10192 main ()
10194 /* The GNU C library defines this for functions which it implements
10195 to always fail with ENOSYS. Some functions are actually named
10196 something starting with __ and the normal name is an alias. */
10197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10198 choke me
10199 #else
10200 f = $ac_func;
10201 #endif
10204 return 0;
10206 _ACEOF
10207 rm -f conftest.$ac_objext conftest$ac_exeext
10208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10209 (eval $ac_link) 2>&5
10210 ac_status=$?
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } &&
10213 { ac_try='test -s conftest$ac_exeext'
10214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215 (eval $ac_try) 2>&5
10216 ac_status=$?
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; }; then
10219 eval "$as_ac_var=yes"
10220 else
10221 echo "$as_me: failed program was:" >&5
10222 cat conftest.$ac_ext >&5
10223 eval "$as_ac_var=no"
10225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10228 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10229 if test `eval echo '${'$as_ac_var'}'` = yes; then
10230 cat >>confdefs.h <<_ACEOF
10231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10232 _ACEOF
10234 else
10235 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10236 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10237 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240 ac_check_lib_save_LIBS=$LIBS
10241 LIBS="-ldl $LIBS"
10242 cat >conftest.$ac_ext <<_ACEOF
10243 #line $LINENO "configure"
10244 #include "confdefs.h"
10246 /* Override any gcc2 internal prototype to avoid an error. */
10247 #ifdef __cplusplus
10248 extern "C"
10249 #endif
10250 /* We use char because int might match the return type of a gcc2
10251 builtin and then its argument prototype would still apply. */
10252 char dlopen ();
10254 main ()
10256 dlopen ();
10258 return 0;
10260 _ACEOF
10261 rm -f conftest.$ac_objext conftest$ac_exeext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10263 (eval $ac_link) 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } &&
10267 { ac_try='test -s conftest$ac_exeext'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 ac_cv_lib_dl_dlopen=yes
10274 else
10275 echo "$as_me: failed program was:" >&5
10276 cat conftest.$ac_ext >&5
10277 ac_cv_lib_dl_dlopen=no
10279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10280 LIBS=$ac_check_lib_save_LIBS
10282 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10283 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10284 if test $ac_cv_lib_dl_dlopen = yes; then
10286 cat >>confdefs.h <<\_ACEOF
10287 #define HAVE_DLOPEN 1
10288 _ACEOF
10290 DLLIBS="-ldl"
10291 else
10292 LIBEXT="a"
10296 done
10298 else
10299 LIBEXT="a"
10302 done
10305 if test "$LIBEXT" = "so"
10306 then
10307 DLLFLAGS="-fPIC"
10308 DLLEXT=".so"
10309 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
10310 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
10311 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10313 else
10314 ac_wine_try_cflags_saved=$CFLAGS
10315 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
10316 cat >conftest.$ac_ext <<_ACEOF
10317 #line $LINENO "configure"
10318 #include "confdefs.h"
10321 main ()
10325 return 0;
10327 _ACEOF
10328 rm -f conftest.$ac_objext conftest$ac_exeext
10329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10330 (eval $ac_link) 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } &&
10334 { ac_try='test -s conftest$ac_exeext'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_cv_c_dll_gnuelf="yes"
10341 else
10342 echo "$as_me: failed program was:" >&5
10343 cat conftest.$ac_ext >&5
10344 ac_cv_c_dll_gnuelf="no"
10346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10347 CFLAGS=$ac_wine_try_cflags_saved
10349 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
10350 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
10351 if test "$ac_cv_c_dll_gnuelf" = "yes"
10352 then
10353 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
10354 LDDLLFLAGS="-Wl,-Bsymbolic"
10355 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
10356 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
10357 if test "${ac_cv_c_dll_zdefs+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10359 else
10360 ac_wine_try_cflags_saved=$CFLAGS
10361 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
10362 cat >conftest.$ac_ext <<_ACEOF
10363 #line $LINENO "configure"
10364 #include "confdefs.h"
10367 main ()
10371 return 0;
10373 _ACEOF
10374 rm -f conftest.$ac_objext conftest$ac_exeext
10375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376 (eval $ac_link) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } &&
10380 { ac_try='test -s conftest$ac_exeext'
10381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10383 ac_status=$?
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; }; then
10386 ac_cv_c_dll_zdefs="yes"
10387 else
10388 echo "$as_me: failed program was:" >&5
10389 cat conftest.$ac_ext >&5
10390 ac_cv_c_dll_zdefs="no"
10392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10393 CFLAGS=$ac_wine_try_cflags_saved
10395 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
10396 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
10397 if test "$ac_cv_c_dll_zdefs" = "yes"
10398 then
10399 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
10401 else
10402 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
10403 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
10404 if test "${ac_cv_c_dll_unixware+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10406 else
10407 ac_wine_try_cflags_saved=$CFLAGS
10408 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
10409 cat >conftest.$ac_ext <<_ACEOF
10410 #line $LINENO "configure"
10411 #include "confdefs.h"
10414 main ()
10418 return 0;
10420 _ACEOF
10421 rm -f conftest.$ac_objext conftest$ac_exeext
10422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10423 (eval $ac_link) 2>&5
10424 ac_status=$?
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } &&
10427 { ac_try='test -s conftest$ac_exeext'
10428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429 (eval $ac_try) 2>&5
10430 ac_status=$?
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; }; then
10433 ac_cv_c_dll_unixware="yes"
10434 else
10435 echo "$as_me: failed program was:" >&5
10436 cat conftest.$ac_ext >&5
10437 ac_cv_c_dll_unixware="no"
10439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10440 CFLAGS=$ac_wine_try_cflags_saved
10442 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
10443 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
10444 if test "$ac_cv_c_dll_unixware" = "yes"
10445 then
10446 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
10447 LDDLLFLAGS="-Wl,-B,symbolic"
10452 CROSSTEST=""
10454 if test "$cross_compiling" = "no"
10455 then
10456 for ac_prog in i586-mingw32msvc-gcc
10458 # Extract the first word of "$ac_prog", so it can be a program name with args.
10459 set dummy $ac_prog; ac_word=$2
10460 echo "$as_me:$LINENO: checking for $ac_word" >&5
10461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10462 if test "${ac_cv_prog_CROSSCC+set}" = set; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465 if test -n "$CROSSCC"; then
10466 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
10467 else
10468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10469 for as_dir in $PATH
10471 IFS=$as_save_IFS
10472 test -z "$as_dir" && as_dir=.
10473 for ac_exec_ext in '' $ac_executable_extensions; do
10474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10475 ac_cv_prog_CROSSCC="$ac_prog"
10476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10477 break 2
10479 done
10480 done
10484 CROSSCC=$ac_cv_prog_CROSSCC
10485 if test -n "$CROSSCC"; then
10486 echo "$as_me:$LINENO: result: $CROSSCC" >&5
10487 echo "${ECHO_T}$CROSSCC" >&6
10488 else
10489 echo "$as_me:$LINENO: result: no" >&5
10490 echo "${ECHO_T}no" >&6
10493 test -n "$CROSSCC" && break
10494 done
10495 test -n "$CROSSCC" || CROSSCC="false"
10497 for ac_prog in i586-mingw32msvc-dlltool
10499 # Extract the first word of "$ac_prog", so it can be a program name with args.
10500 set dummy $ac_prog; ac_word=$2
10501 echo "$as_me:$LINENO: checking for $ac_word" >&5
10502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10503 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
10504 echo $ECHO_N "(cached) $ECHO_C" >&6
10505 else
10506 if test -n "$DLLTOOL"; then
10507 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10508 else
10509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10510 for as_dir in $PATH
10512 IFS=$as_save_IFS
10513 test -z "$as_dir" && as_dir=.
10514 for ac_exec_ext in '' $ac_executable_extensions; do
10515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10516 ac_cv_prog_DLLTOOL="$ac_prog"
10517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10518 break 2
10520 done
10521 done
10525 DLLTOOL=$ac_cv_prog_DLLTOOL
10526 if test -n "$DLLTOOL"; then
10527 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
10528 echo "${ECHO_T}$DLLTOOL" >&6
10529 else
10530 echo "$as_me:$LINENO: result: no" >&5
10531 echo "${ECHO_T}no" >&6
10534 test -n "$DLLTOOL" && break
10535 done
10536 test -n "$DLLTOOL" || DLLTOOL="false"
10538 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
10541 esac
10543 if test "$LIBEXT" = "a"; then
10544 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
10545 It is currently not possible to build Wine without shared library
10546 (.so) support to allow transparent switch between .so and .dll files.
10547 If you are using Linux, you will need a newer binutils.
10548 " >&5
10549 echo "$as_me: error: could not find a way to build shared libraries.
10550 It is currently not possible to build Wine without shared library
10551 (.so) support to allow transparent switch between .so and .dll files.
10552 If you are using Linux, you will need a newer binutils.
10553 " >&2;}
10554 { (exit 1); exit 1; }; }
10557 case $build_os in
10558 cygwin*|mingw32*)
10559 LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\""
10562 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\""
10564 esac
10566 CRTLIBS=""
10568 case $host_os in
10569 mingw32*)
10570 CRTLIBS="-lmsvcrt" ;;
10571 esac
10574 if test "$LIBEXT" = "so"
10575 then
10576 # Extract the first word of "ldd", so it can be a program name with args.
10577 set dummy ldd; ac_word=$2
10578 echo "$as_me:$LINENO: checking for $ac_word" >&5
10579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10580 if test "${ac_cv_path_LDD+set}" = set; then
10581 echo $ECHO_N "(cached) $ECHO_C" >&6
10582 else
10583 case $LDD in
10584 [\\/]* | ?:[\\/]*)
10585 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10589 as_dummy="/sbin:/usr/sbin:$PATH"
10590 for as_dir in $as_dummy
10592 IFS=$as_save_IFS
10593 test -z "$as_dir" && as_dir=.
10594 for ac_exec_ext in '' $ac_executable_extensions; do
10595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10596 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10598 break 2
10600 done
10601 done
10603 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
10605 esac
10607 LDD=$ac_cv_path_LDD
10609 if test -n "$LDD"; then
10610 echo "$as_me:$LINENO: result: $LDD" >&5
10611 echo "${ECHO_T}$LDD" >&6
10612 else
10613 echo "$as_me:$LINENO: result: no" >&5
10614 echo "${ECHO_T}no" >&6
10618 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
10619 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
10620 if test "${ac_cv_lib_soname_X11+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10622 else
10623 ac_get_soname_save_LIBS=$LIBS
10624 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
10625 cat >conftest.$ac_ext <<_ACEOF
10626 #line $LINENO "configure"
10627 #include "confdefs.h"
10629 /* Override any gcc2 internal prototype to avoid an error. */
10630 #ifdef __cplusplus
10631 extern "C"
10632 #endif
10633 /* We use char because int might match the return type of a gcc2
10634 builtin and then its argument prototype would still apply. */
10635 char XCreateWindow ();
10637 main ()
10639 XCreateWindow ();
10641 return 0;
10643 _ACEOF
10644 rm -f conftest.$ac_objext conftest$ac_exeext
10645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10646 (eval $ac_link) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); } &&
10650 { ac_try='test -s conftest$ac_exeext'
10651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; }; then
10656 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10657 if test "x$ac_cv_lib_soname_X11" = "x"
10658 then
10659 ac_cv_lib_soname_X11="libX11.so"
10661 else
10662 echo "$as_me: failed program was:" >&5
10663 cat conftest.$ac_ext >&5
10664 ac_cv_lib_soname_X11="libX11.so"
10666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10667 LIBS=$ac_get_soname_save_LIBS
10669 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
10670 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
10671 if test "x$ac_cv_lib_soname_X11" != xNONE
10672 then
10673 cat >>confdefs.h <<_ACEOF
10674 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
10675 _ACEOF
10678 echo "$as_me:$LINENO: checking for -lXext soname" >&5
10679 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
10680 if test "${ac_cv_lib_soname_Xext+set}" = set; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 else
10683 ac_get_soname_save_LIBS=$LIBS
10684 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10685 cat >conftest.$ac_ext <<_ACEOF
10686 #line $LINENO "configure"
10687 #include "confdefs.h"
10689 /* Override any gcc2 internal prototype to avoid an error. */
10690 #ifdef __cplusplus
10691 extern "C"
10692 #endif
10693 /* We use char because int might match the return type of a gcc2
10694 builtin and then its argument prototype would still apply. */
10695 char XextCreateExtension ();
10697 main ()
10699 XextCreateExtension ();
10701 return 0;
10703 _ACEOF
10704 rm -f conftest.$ac_objext conftest$ac_exeext
10705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10706 (eval $ac_link) 2>&5
10707 ac_status=$?
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } &&
10710 { ac_try='test -s conftest$ac_exeext'
10711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712 (eval $ac_try) 2>&5
10713 ac_status=$?
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; }; then
10716 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10717 if test "x$ac_cv_lib_soname_Xext" = "x"
10718 then
10719 ac_cv_lib_soname_Xext="libXext.so"
10721 else
10722 echo "$as_me: failed program was:" >&5
10723 cat conftest.$ac_ext >&5
10724 ac_cv_lib_soname_Xext="libXext.so"
10726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10727 LIBS=$ac_get_soname_save_LIBS
10729 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
10730 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
10731 if test "x$ac_cv_lib_soname_Xext" != xNONE
10732 then
10733 cat >>confdefs.h <<_ACEOF
10734 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
10735 _ACEOF
10738 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
10739 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
10740 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 else
10743 ac_get_soname_save_LIBS=$LIBS
10744 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10745 cat >conftest.$ac_ext <<_ACEOF
10746 #line $LINENO "configure"
10747 #include "confdefs.h"
10749 /* Override any gcc2 internal prototype to avoid an error. */
10750 #ifdef __cplusplus
10751 extern "C"
10752 #endif
10753 /* We use char because int might match the return type of a gcc2
10754 builtin and then its argument prototype would still apply. */
10755 char XRenderQueryExtension ();
10757 main ()
10759 XRenderQueryExtension ();
10761 return 0;
10763 _ACEOF
10764 rm -f conftest.$ac_objext conftest$ac_exeext
10765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10766 (eval $ac_link) 2>&5
10767 ac_status=$?
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } &&
10770 { ac_try='test -s conftest$ac_exeext'
10771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772 (eval $ac_try) 2>&5
10773 ac_status=$?
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; }; then
10776 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10777 if test "x$ac_cv_lib_soname_Xrender" = "x"
10778 then
10779 ac_cv_lib_soname_Xrender="libXrender.so"
10781 else
10782 echo "$as_me: failed program was:" >&5
10783 cat conftest.$ac_ext >&5
10784 ac_cv_lib_soname_Xrender="libXrender.so"
10786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10787 LIBS=$ac_get_soname_save_LIBS
10789 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
10790 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
10791 if test "x$ac_cv_lib_soname_Xrender" != xNONE
10792 then
10793 cat >>confdefs.h <<_ACEOF
10794 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
10795 _ACEOF
10798 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
10799 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
10800 if test "${ac_cv_lib_soname_freetype+set}" = set; then
10801 echo $ECHO_N "(cached) $ECHO_C" >&6
10802 else
10803 ac_get_soname_save_LIBS=$LIBS
10804 LIBS="-lfreetype $X_LIBS $LIBS"
10805 cat >conftest.$ac_ext <<_ACEOF
10806 #line $LINENO "configure"
10807 #include "confdefs.h"
10809 /* Override any gcc2 internal prototype to avoid an error. */
10810 #ifdef __cplusplus
10811 extern "C"
10812 #endif
10813 /* We use char because int might match the return type of a gcc2
10814 builtin and then its argument prototype would still apply. */
10815 char FT_Init_FreeType ();
10817 main ()
10819 FT_Init_FreeType ();
10821 return 0;
10823 _ACEOF
10824 rm -f conftest.$ac_objext conftest$ac_exeext
10825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10826 (eval $ac_link) 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } &&
10830 { ac_try='test -s conftest$ac_exeext'
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10833 ac_status=$?
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; }; then
10836 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10837 if test "x$ac_cv_lib_soname_freetype" = "x"
10838 then
10839 ac_cv_lib_soname_freetype="libfreetype.so"
10841 else
10842 echo "$as_me: failed program was:" >&5
10843 cat conftest.$ac_ext >&5
10844 ac_cv_lib_soname_freetype="libfreetype.so"
10846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10847 LIBS=$ac_get_soname_save_LIBS
10849 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
10850 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
10851 if test "x$ac_cv_lib_soname_freetype" != xNONE
10852 then
10853 cat >>confdefs.h <<_ACEOF
10854 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10855 _ACEOF
10858 echo "$as_me:$LINENO: checking for -lGL soname" >&5
10859 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
10860 if test "${ac_cv_lib_soname_GL+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 else
10863 ac_get_soname_save_LIBS=$LIBS
10864 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
10865 cat >conftest.$ac_ext <<_ACEOF
10866 #line $LINENO "configure"
10867 #include "confdefs.h"
10869 /* Override any gcc2 internal prototype to avoid an error. */
10870 #ifdef __cplusplus
10871 extern "C"
10872 #endif
10873 /* We use char because int might match the return type of a gcc2
10874 builtin and then its argument prototype would still apply. */
10875 char glXQueryExtension ();
10877 main ()
10879 glXQueryExtension ();
10881 return 0;
10883 _ACEOF
10884 rm -f conftest.$ac_objext conftest$ac_exeext
10885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10886 (eval $ac_link) 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } &&
10890 { ac_try='test -s conftest$ac_exeext'
10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892 (eval $ac_try) 2>&5
10893 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; }; then
10896 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10897 if test "x$ac_cv_lib_soname_GL" = "x"
10898 then
10899 ac_cv_lib_soname_GL="libGL.so"
10901 else
10902 echo "$as_me: failed program was:" >&5
10903 cat conftest.$ac_ext >&5
10904 ac_cv_lib_soname_GL="libGL.so"
10906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10907 LIBS=$ac_get_soname_save_LIBS
10909 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
10910 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
10911 if test "x$ac_cv_lib_soname_GL" != xNONE
10912 then
10913 cat >>confdefs.h <<_ACEOF
10914 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10915 _ACEOF
10918 echo "$as_me:$LINENO: checking for -lcups soname" >&5
10919 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
10920 if test "${ac_cv_lib_soname_cups+set}" = set; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6
10922 else
10923 ac_get_soname_save_LIBS=$LIBS
10924 LIBS="-lcups $LIBS"
10925 cat >conftest.$ac_ext <<_ACEOF
10926 #line $LINENO "configure"
10927 #include "confdefs.h"
10929 /* Override any gcc2 internal prototype to avoid an error. */
10930 #ifdef __cplusplus
10931 extern "C"
10932 #endif
10933 /* We use char because int might match the return type of a gcc2
10934 builtin and then its argument prototype would still apply. */
10935 char cupsGetDefault ();
10937 main ()
10939 cupsGetDefault ();
10941 return 0;
10943 _ACEOF
10944 rm -f conftest.$ac_objext conftest$ac_exeext
10945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10946 (eval $ac_link) 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } &&
10950 { ac_try='test -s conftest$ac_exeext'
10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; }; then
10956 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10957 if test "x$ac_cv_lib_soname_cups" = "x"
10958 then
10959 ac_cv_lib_soname_cups="libcups.so"
10961 else
10962 echo "$as_me: failed program was:" >&5
10963 cat conftest.$ac_ext >&5
10964 ac_cv_lib_soname_cups="libcups.so"
10966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10967 LIBS=$ac_get_soname_save_LIBS
10969 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
10970 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
10971 if test "x$ac_cv_lib_soname_cups" != xNONE
10972 then
10973 cat >>confdefs.h <<_ACEOF
10974 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10975 _ACEOF
10978 echo "$as_me:$LINENO: checking for -ljack soname" >&5
10979 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
10980 if test "${ac_cv_lib_soname_jack+set}" = set; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10982 else
10983 ac_get_soname_save_LIBS=$LIBS
10984 LIBS="-ljack $LIBS"
10985 cat >conftest.$ac_ext <<_ACEOF
10986 #line $LINENO "configure"
10987 #include "confdefs.h"
10989 /* Override any gcc2 internal prototype to avoid an error. */
10990 #ifdef __cplusplus
10991 extern "C"
10992 #endif
10993 /* We use char because int might match the return type of a gcc2
10994 builtin and then its argument prototype would still apply. */
10995 char jack_client_new ();
10997 main ()
10999 jack_client_new ();
11001 return 0;
11003 _ACEOF
11004 rm -f conftest.$ac_objext conftest$ac_exeext
11005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11006 (eval $ac_link) 2>&5
11007 ac_status=$?
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } &&
11010 { ac_try='test -s conftest$ac_exeext'
11011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012 (eval $ac_try) 2>&5
11013 ac_status=$?
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); }; }; then
11016 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
11017 if test "x$ac_cv_lib_soname_jack" = "x"
11018 then
11019 ac_cv_lib_soname_jack="libjack.so"
11021 else
11022 echo "$as_me: failed program was:" >&5
11023 cat conftest.$ac_ext >&5
11024 ac_cv_lib_soname_jack="libjack.so"
11026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11027 LIBS=$ac_get_soname_save_LIBS
11029 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
11030 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
11031 if test "x$ac_cv_lib_soname_jack" != xNONE
11032 then
11033 cat >>confdefs.h <<_ACEOF
11034 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
11035 _ACEOF
11041 wine_cv_libc_reentrant=no
11042 echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
11043 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
11044 if test "${wine_cv_libc_r___errno_location+set}" = set; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
11046 else
11047 if test "$cross_compiling" = yes; then
11048 wine_cv_libc_r___errno_location=yes
11049 else
11050 cat >conftest.$ac_ext <<_ACEOF
11051 #line $LINENO "configure"
11052 #include "confdefs.h"
11053 int myerrno = 0;
11054 int *__errno_location(){return &myerrno;}
11055 main(){close(333); close(333); exit(!myerrno);}
11056 _ACEOF
11057 rm -f conftest$ac_exeext
11058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11059 (eval $ac_link) 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11064 (eval $ac_try) 2>&5
11065 ac_status=$?
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }; }; then
11068 wine_cv_libc_r___errno_location=yes
11069 else
11070 echo "$as_me: program exited with status $ac_status" >&5
11071 echo "$as_me: failed program was:" >&5
11072 cat conftest.$ac_ext >&5
11073 ( exit $ac_status )
11074 wine_cv_libc_r___errno_location=no
11076 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11079 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
11080 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
11081 if test "$wine_cv_libc_r___errno_location" = "yes"; then
11082 wine_cv_libc_reentrant=__errno_location
11083 else
11084 echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
11085 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
11086 if test "${wine_cv_libc_r___error+set}" = set; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 else
11089 if test "$cross_compiling" = yes; then
11090 wine_cv_libc_r___error=yes
11091 else
11092 cat >conftest.$ac_ext <<_ACEOF
11093 #line $LINENO "configure"
11094 #include "confdefs.h"
11095 int myerrno = 0;
11096 int *__error(){return &myerrno;}
11097 main(){close(333); close(333); exit(!myerrno);}
11098 _ACEOF
11099 rm -f conftest$ac_exeext
11100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11101 (eval $ac_link) 2>&5
11102 ac_status=$?
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11107 ac_status=$?
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; }; then
11110 wine_cv_libc_r___error=yes
11111 else
11112 echo "$as_me: program exited with status $ac_status" >&5
11113 echo "$as_me: failed program was:" >&5
11114 cat conftest.$ac_ext >&5
11115 ( exit $ac_status )
11116 wine_cv_libc_r___error=no
11118 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11121 echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
11122 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
11123 if test "$wine_cv_libc_r___error" = "yes"; then
11124 wine_cv_libc_reentrant=__error
11125 else
11126 echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
11127 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
11128 if test "${wine_cv_libc_r____errno+set}" = set; then
11129 echo $ECHO_N "(cached) $ECHO_C" >&6
11130 else
11131 if test "$cross_compiling" = yes; then
11132 wine_cv_libc_r____errno=yes
11133 else
11134 cat >conftest.$ac_ext <<_ACEOF
11135 #line $LINENO "configure"
11136 #include "confdefs.h"
11137 int myerrno = 0;
11138 int *___errno(){return &myerrno;}
11139 main(){close(333); close(333); exit(!myerrno);}
11140 _ACEOF
11141 rm -f conftest$ac_exeext
11142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11143 (eval $ac_link) 2>&5
11144 ac_status=$?
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11149 ac_status=$?
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 wine_cv_libc_r____errno=yes
11153 else
11154 echo "$as_me: program exited with status $ac_status" >&5
11155 echo "$as_me: failed program was:" >&5
11156 cat conftest.$ac_ext >&5
11157 ( exit $ac_status )
11158 wine_cv_libc_r____errno=no
11160 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11163 echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
11164 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
11165 if test "$wine_cv_libc_r____errno" = "yes"; then
11166 wine_cv_libc_reentrant=___errno
11167 else
11168 echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
11169 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
11170 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11172 else
11173 if test "$cross_compiling" = yes; then
11174 wine_cv_libc_r___thr_errno=yes
11175 else
11176 cat >conftest.$ac_ext <<_ACEOF
11177 #line $LINENO "configure"
11178 #include "confdefs.h"
11179 int myerrno = 0;
11180 int *__thr_errno(){return &myerrno;}
11181 main(){close(333); close(333); exit(!myerrno);}
11182 _ACEOF
11183 rm -f conftest$ac_exeext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11185 (eval $ac_link) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190 (eval $ac_try) 2>&5
11191 ac_status=$?
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; }; then
11194 wine_cv_libc_r___thr_errno=yes
11195 else
11196 echo "$as_me: program exited with status $ac_status" >&5
11197 echo "$as_me: failed program was:" >&5
11198 cat conftest.$ac_ext >&5
11199 ( exit $ac_status )
11200 wine_cv_libc_r___thr_errno=no
11202 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11205 echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
11206 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
11207 if test "$wine_cv_libc_r___thr_errno" = "yes"; then
11208 wine_cv_libc_reentrant=__thr_errno
11209 else
11210 echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
11211 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
11212 if test "${wine_cv_libc_r___errno+set}" = set; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11214 else
11215 if test "$cross_compiling" = yes; then
11216 wine_cv_libc_r___errno=yes
11217 else
11218 cat >conftest.$ac_ext <<_ACEOF
11219 #line $LINENO "configure"
11220 #include "confdefs.h"
11221 int myerrno = 0;
11222 int *__errno(){return &myerrno;}
11223 main(){close(333); close(333); exit(!myerrno);}
11224 _ACEOF
11225 rm -f conftest$ac_exeext
11226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11227 (eval $ac_link) 2>&5
11228 ac_status=$?
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11233 ac_status=$?
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; }; then
11236 wine_cv_libc_r___errno=yes
11237 else
11238 echo "$as_me: program exited with status $ac_status" >&5
11239 echo "$as_me: failed program was:" >&5
11240 cat conftest.$ac_ext >&5
11241 ( exit $ac_status )
11242 wine_cv_libc_r___errno=no
11244 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11247 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
11248 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
11249 if test "$wine_cv_libc_r___errno" = "yes"; then
11250 wine_cv_libc_reentrant=__errno
11263 if test "$wine_cv_libc_reentrant" != "no"
11264 then
11266 cat >>confdefs.h <<_ACEOF
11267 #define ERRNO_LOCATION $wine_cv_libc_reentrant
11268 _ACEOF
11273 if test "$have_x" = "yes"
11274 then
11275 echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
11276 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
11277 if test "${wine_cv_x_reentrant+set}" = set; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 else
11280 libX11_check=none
11281 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
11282 if test -r $dir/libX11.so; then
11283 libX11_check="-D $dir/libX11.so"
11284 break
11286 if test -r $dir/libX11.a; then
11287 libX11_check="$dir/libX11.a"
11288 break
11290 done
11291 if test "$libX11_check" != "none"; then
11292 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
11293 then
11294 wine_cv_x_reentrant=yes
11295 else
11296 wine_cv_x_reentrant=no
11298 else
11299 wine_cv_x_reentrant=unknown
11302 echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
11303 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
11307 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11308 # for constant arguments. Useless!
11309 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11310 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11311 if test "${ac_cv_working_alloca_h+set}" = set; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6
11313 else
11314 cat >conftest.$ac_ext <<_ACEOF
11315 #line $LINENO "configure"
11316 #include "confdefs.h"
11317 #include <alloca.h>
11319 main ()
11321 char *p = (char *) alloca (2 * sizeof (int));
11323 return 0;
11325 _ACEOF
11326 rm -f conftest.$ac_objext conftest$ac_exeext
11327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11328 (eval $ac_link) 2>&5
11329 ac_status=$?
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } &&
11332 { ac_try='test -s conftest$ac_exeext'
11333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11334 (eval $ac_try) 2>&5
11335 ac_status=$?
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; }; then
11338 ac_cv_working_alloca_h=yes
11339 else
11340 echo "$as_me: failed program was:" >&5
11341 cat conftest.$ac_ext >&5
11342 ac_cv_working_alloca_h=no
11344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11346 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11347 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11348 if test $ac_cv_working_alloca_h = yes; then
11350 cat >>confdefs.h <<\_ACEOF
11351 #define HAVE_ALLOCA_H 1
11352 _ACEOF
11356 echo "$as_me:$LINENO: checking for alloca" >&5
11357 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11358 if test "${ac_cv_func_alloca_works+set}" = set; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 else
11361 cat >conftest.$ac_ext <<_ACEOF
11362 #line $LINENO "configure"
11363 #include "confdefs.h"
11364 #ifdef __GNUC__
11365 # define alloca __builtin_alloca
11366 #else
11367 # ifdef _MSC_VER
11368 # include <malloc.h>
11369 # define alloca _alloca
11370 # else
11371 # if HAVE_ALLOCA_H
11372 # include <alloca.h>
11373 # else
11374 # ifdef _AIX
11375 #pragma alloca
11376 # else
11377 # ifndef alloca /* predefined by HP cc +Olibcalls */
11378 char *alloca ();
11379 # endif
11380 # endif
11381 # endif
11382 # endif
11383 #endif
11386 main ()
11388 char *p = (char *) alloca (1);
11390 return 0;
11392 _ACEOF
11393 rm -f conftest.$ac_objext conftest$ac_exeext
11394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11395 (eval $ac_link) 2>&5
11396 ac_status=$?
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } &&
11399 { ac_try='test -s conftest$ac_exeext'
11400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5
11402 ac_status=$?
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; }; then
11405 ac_cv_func_alloca_works=yes
11406 else
11407 echo "$as_me: failed program was:" >&5
11408 cat conftest.$ac_ext >&5
11409 ac_cv_func_alloca_works=no
11411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11413 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11414 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11416 if test $ac_cv_func_alloca_works = yes; then
11418 cat >>confdefs.h <<\_ACEOF
11419 #define HAVE_ALLOCA 1
11420 _ACEOF
11422 else
11423 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11424 # that cause trouble. Some versions do not even contain alloca or
11425 # contain a buggy version. If you still want to use their alloca,
11426 # use ar to extract alloca.o from them instead of compiling alloca.c.
11428 ALLOCA=alloca.$ac_objext
11430 cat >>confdefs.h <<\_ACEOF
11431 #define C_ALLOCA 1
11432 _ACEOF
11435 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11436 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11437 if test "${ac_cv_os_cray+set}" = set; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11439 else
11440 cat >conftest.$ac_ext <<_ACEOF
11441 #line $LINENO "configure"
11442 #include "confdefs.h"
11443 #if defined(CRAY) && ! defined(CRAY2)
11444 webecray
11445 #else
11446 wenotbecray
11447 #endif
11449 _ACEOF
11450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11451 $EGREP "webecray" >/dev/null 2>&1; then
11452 ac_cv_os_cray=yes
11453 else
11454 ac_cv_os_cray=no
11456 rm -f conftest*
11459 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11460 echo "${ECHO_T}$ac_cv_os_cray" >&6
11461 if test $ac_cv_os_cray = yes; then
11462 for ac_func in _getb67 GETB67 getb67; do
11463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11464 echo "$as_me:$LINENO: checking for $ac_func" >&5
11465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11466 if eval "test \"\${$as_ac_var+set}\" = set"; then
11467 echo $ECHO_N "(cached) $ECHO_C" >&6
11468 else
11469 cat >conftest.$ac_ext <<_ACEOF
11470 #line $LINENO "configure"
11471 #include "confdefs.h"
11472 /* System header to define __stub macros and hopefully few prototypes,
11473 which can conflict with char $ac_func (); below. */
11474 #include <assert.h>
11475 /* Override any gcc2 internal prototype to avoid an error. */
11476 #ifdef __cplusplus
11477 extern "C"
11478 #endif
11479 /* We use char because int might match the return type of a gcc2
11480 builtin and then its argument prototype would still apply. */
11481 char $ac_func ();
11482 char (*f) ();
11485 main ()
11487 /* The GNU C library defines this for functions which it implements
11488 to always fail with ENOSYS. Some functions are actually named
11489 something starting with __ and the normal name is an alias. */
11490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11491 choke me
11492 #else
11493 f = $ac_func;
11494 #endif
11497 return 0;
11499 _ACEOF
11500 rm -f conftest.$ac_objext conftest$ac_exeext
11501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11502 (eval $ac_link) 2>&5
11503 ac_status=$?
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } &&
11506 { ac_try='test -s conftest$ac_exeext'
11507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11509 ac_status=$?
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; }; then
11512 eval "$as_ac_var=yes"
11513 else
11514 echo "$as_me: failed program was:" >&5
11515 cat conftest.$ac_ext >&5
11516 eval "$as_ac_var=no"
11518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11522 if test `eval echo '${'$as_ac_var'}'` = yes; then
11524 cat >>confdefs.h <<_ACEOF
11525 #define CRAY_STACKSEG_END $ac_func
11526 _ACEOF
11528 break
11531 done
11534 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11535 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11536 if test "${ac_cv_c_stack_direction+set}" = set; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11538 else
11539 if test "$cross_compiling" = yes; then
11540 ac_cv_c_stack_direction=0
11541 else
11542 cat >conftest.$ac_ext <<_ACEOF
11543 #line $LINENO "configure"
11544 #include "confdefs.h"
11546 find_stack_direction ()
11548 static char *addr = 0;
11549 auto char dummy;
11550 if (addr == 0)
11552 addr = &dummy;
11553 return find_stack_direction ();
11555 else
11556 return (&dummy > addr) ? 1 : -1;
11560 main ()
11562 exit (find_stack_direction () < 0);
11564 _ACEOF
11565 rm -f conftest$ac_exeext
11566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11567 (eval $ac_link) 2>&5
11568 ac_status=$?
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 ac_cv_c_stack_direction=1
11577 else
11578 echo "$as_me: program exited with status $ac_status" >&5
11579 echo "$as_me: failed program was:" >&5
11580 cat conftest.$ac_ext >&5
11581 ( exit $ac_status )
11582 ac_cv_c_stack_direction=-1
11584 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11587 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11588 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11590 cat >>confdefs.h <<_ACEOF
11591 #define STACK_DIRECTION $ac_cv_c_stack_direction
11592 _ACEOF
11652 for ac_func in \
11653 _lwp_create \
11654 _pclose \
11655 _popen \
11656 _snprintf \
11657 _stricmp \
11658 _strnicmp \
11659 chsize \
11660 clone \
11661 ecvt \
11662 fcvt \
11663 finite \
11664 fpclass \
11665 ftruncate \
11666 ftruncate64 \
11667 gcvt \
11668 getnetbyaddr \
11669 getnetbyname \
11670 getopt_long \
11671 getpagesize \
11672 getprotobyname \
11673 getprotobynumber \
11674 getpwuid \
11675 getservbyport \
11676 getsockopt \
11677 inet_network \
11678 lseek64 \
11679 lstat \
11680 memmove \
11681 mkstemp \
11682 mmap \
11683 pclose \
11684 popen \
11685 pread \
11686 pthread_getspecific \
11687 pthread_key_create \
11688 pthread_mutex_lock \
11689 pthread_mutex_unlock \
11690 pthread_setspecific \
11691 pwrite \
11692 rfork \
11693 select \
11694 sendmsg \
11695 settimeofday \
11696 sigaltstack \
11697 snprintf \
11698 statfs \
11699 strcasecmp \
11700 strerror \
11701 strncasecmp \
11702 tcgetattr \
11703 timegm \
11704 usleep \
11705 vfscanf \
11706 wait4 \
11707 waitpid \
11710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11711 echo "$as_me:$LINENO: checking for $ac_func" >&5
11712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11713 if eval "test \"\${$as_ac_var+set}\" = set"; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 else
11716 cat >conftest.$ac_ext <<_ACEOF
11717 #line $LINENO "configure"
11718 #include "confdefs.h"
11719 /* System header to define __stub macros and hopefully few prototypes,
11720 which can conflict with char $ac_func (); below. */
11721 #include <assert.h>
11722 /* Override any gcc2 internal prototype to avoid an error. */
11723 #ifdef __cplusplus
11724 extern "C"
11725 #endif
11726 /* We use char because int might match the return type of a gcc2
11727 builtin and then its argument prototype would still apply. */
11728 char $ac_func ();
11729 char (*f) ();
11732 main ()
11734 /* The GNU C library defines this for functions which it implements
11735 to always fail with ENOSYS. Some functions are actually named
11736 something starting with __ and the normal name is an alias. */
11737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11738 choke me
11739 #else
11740 f = $ac_func;
11741 #endif
11744 return 0;
11746 _ACEOF
11747 rm -f conftest.$ac_objext conftest$ac_exeext
11748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11749 (eval $ac_link) 2>&5
11750 ac_status=$?
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } &&
11753 { ac_try='test -s conftest$ac_exeext'
11754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11755 (eval $ac_try) 2>&5
11756 ac_status=$?
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; }; then
11759 eval "$as_ac_var=yes"
11760 else
11761 echo "$as_me: failed program was:" >&5
11762 cat conftest.$ac_ext >&5
11763 eval "$as_ac_var=no"
11765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11769 if test `eval echo '${'$as_ac_var'}'` = yes; then
11770 cat >>confdefs.h <<_ACEOF
11771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11772 _ACEOF
11775 done
11848 for ac_header in \
11849 arpa/inet.h \
11850 arpa/nameser.h \
11851 cups/cups.h \
11852 direct.h \
11853 elf.h \
11854 float.h \
11855 getopt.h \
11856 ieeefp.h \
11857 io.h \
11858 jack/jack.h \
11859 libio.h \
11860 libutil.h \
11861 link.h \
11862 linux/cdrom.h \
11863 linux/hdreg.h \
11864 linux/input.h \
11865 linux/joystick.h \
11866 linux/major.h \
11867 linux/param.h \
11868 linux/serial.h \
11869 linux/ucdrom.h \
11870 netdb.h \
11871 netinet/in.h \
11872 netinet/in_systm.h \
11873 netinet/tcp.h \
11874 pty.h \
11875 pwd.h \
11876 sched.h \
11877 scsi/sg.h \
11878 socket.h \
11879 stdint.h \
11880 strings.h \
11881 sys/cdio.h \
11882 sys/errno.h \
11883 sys/file.h \
11884 sys/filio.h \
11885 sys/inttypes.h \
11886 sys/ioctl.h \
11887 sys/ipc.h \
11888 sys/link.h \
11889 sys/lwp.h \
11890 sys/mman.h \
11891 sys/modem.h \
11892 sys/msg.h \
11893 sys/param.h \
11894 sys/poll.h \
11895 sys/ptrace.h \
11896 sys/reg.h \
11897 sys/shm.h \
11898 sys/signal.h \
11899 sys/socket.h \
11900 sys/sockio.h \
11901 sys/statfs.h \
11902 sys/strtio.h \
11903 sys/syscall.h \
11904 sys/sysctl.h \
11905 sys/time.h \
11906 sys/times.h \
11907 sys/uio.h \
11908 sys/un.h \
11909 sys/v86.h \
11910 sys/v86intr.h \
11911 sys/vfs.h \
11912 sys/vm86.h \
11913 sys/wait.h \
11914 syscall.h \
11915 termios.h \
11916 unistd.h \
11917 utime.h \
11920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11922 echo "$as_me:$LINENO: checking for $ac_header" >&5
11923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11925 echo $ECHO_N "(cached) $ECHO_C" >&6
11927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11929 else
11930 # Is the header compilable?
11931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11933 cat >conftest.$ac_ext <<_ACEOF
11934 #line $LINENO "configure"
11935 #include "confdefs.h"
11936 $ac_includes_default
11937 #include <$ac_header>
11938 _ACEOF
11939 rm -f conftest.$ac_objext
11940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11941 (eval $ac_compile) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); } &&
11945 { ac_try='test -s conftest.$ac_objext'
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
11951 ac_header_compiler=yes
11952 else
11953 echo "$as_me: failed program was:" >&5
11954 cat conftest.$ac_ext >&5
11955 ac_header_compiler=no
11957 rm -f conftest.$ac_objext conftest.$ac_ext
11958 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11959 echo "${ECHO_T}$ac_header_compiler" >&6
11961 # Is the header present?
11962 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11964 cat >conftest.$ac_ext <<_ACEOF
11965 #line $LINENO "configure"
11966 #include "confdefs.h"
11967 #include <$ac_header>
11968 _ACEOF
11969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11971 ac_status=$?
11972 grep -v '^ *+' conftest.er1 >conftest.err
11973 rm -f conftest.er1
11974 cat conftest.err >&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } >/dev/null; then
11977 if test -s conftest.err; then
11978 ac_cpp_err=$ac_c_preproc_warn_flag
11979 else
11980 ac_cpp_err=
11982 else
11983 ac_cpp_err=yes
11985 if test -z "$ac_cpp_err"; then
11986 ac_header_preproc=yes
11987 else
11988 echo "$as_me: failed program was:" >&5
11989 cat conftest.$ac_ext >&5
11990 ac_header_preproc=no
11992 rm -f conftest.err conftest.$ac_ext
11993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11994 echo "${ECHO_T}$ac_header_preproc" >&6
11996 # So? What about this header?
11997 case $ac_header_compiler:$ac_header_preproc in
11998 yes:no )
11999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12003 no:yes )
12004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12007 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12010 esac
12011 echo "$as_me:$LINENO: checking for $ac_header" >&5
12012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12015 else
12016 eval "$as_ac_Header=$ac_header_preproc"
12018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12023 cat >>confdefs.h <<_ACEOF
12024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12025 _ACEOF
12029 done
12031 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12032 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12033 if test "${ac_cv_header_stat_broken+set}" = set; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 else
12036 cat >conftest.$ac_ext <<_ACEOF
12037 #line $LINENO "configure"
12038 #include "confdefs.h"
12039 #include <sys/types.h>
12040 #include <sys/stat.h>
12042 #if defined(S_ISBLK) && defined(S_IFDIR)
12043 # if S_ISBLK (S_IFDIR)
12044 You lose.
12045 # endif
12046 #endif
12048 #if defined(S_ISBLK) && defined(S_IFCHR)
12049 # if S_ISBLK (S_IFCHR)
12050 You lose.
12051 # endif
12052 #endif
12054 #if defined(S_ISLNK) && defined(S_IFREG)
12055 # if S_ISLNK (S_IFREG)
12056 You lose.
12057 # endif
12058 #endif
12060 #if defined(S_ISSOCK) && defined(S_IFREG)
12061 # if S_ISSOCK (S_IFREG)
12062 You lose.
12063 # endif
12064 #endif
12066 _ACEOF
12067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12068 $EGREP "You lose" >/dev/null 2>&1; then
12069 ac_cv_header_stat_broken=yes
12070 else
12071 ac_cv_header_stat_broken=no
12073 rm -f conftest*
12076 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12077 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12078 if test $ac_cv_header_stat_broken = yes; then
12080 cat >>confdefs.h <<\_ACEOF
12081 #define STAT_MACROS_BROKEN 1
12082 _ACEOF
12090 for ac_header in sys/mount.h sys/user.h
12092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12093 echo "$as_me:$LINENO: checking for $ac_header" >&5
12094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6
12097 else
12098 cat >conftest.$ac_ext <<_ACEOF
12099 #line $LINENO "configure"
12100 #include "confdefs.h"
12101 #include <sys/types.h>
12102 #if HAVE_SYS_PARAM_H
12103 # include <sys/param.h>
12104 #endif
12106 #include <$ac_header>
12107 _ACEOF
12108 rm -f conftest.$ac_objext
12109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12110 (eval $ac_compile) 2>&5
12111 ac_status=$?
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } &&
12114 { ac_try='test -s conftest.$ac_objext'
12115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116 (eval $ac_try) 2>&5
12117 ac_status=$?
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); }; }; then
12120 eval "$as_ac_Header=yes"
12121 else
12122 echo "$as_me: failed program was:" >&5
12123 cat conftest.$ac_ext >&5
12124 eval "$as_ac_Header=no"
12126 rm -f conftest.$ac_objext conftest.$ac_ext
12128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12131 cat >>confdefs.h <<_ACEOF
12132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12133 _ACEOF
12137 done
12141 for ac_header in net/if.h
12143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12144 echo "$as_me:$LINENO: checking for $ac_header" >&5
12145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149 cat >conftest.$ac_ext <<_ACEOF
12150 #line $LINENO "configure"
12151 #include "confdefs.h"
12152 #include <sys/types.h>
12153 #if HAVE_SYS_SOCKET_H
12154 # include <sys/socket.h>
12155 #endif
12157 #include <$ac_header>
12158 _ACEOF
12159 rm -f conftest.$ac_objext
12160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12161 (eval $ac_compile) 2>&5
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
12165 { ac_try='test -s conftest.$ac_objext'
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12168 ac_status=$?
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; }; then
12171 eval "$as_ac_Header=yes"
12172 else
12173 echo "$as_me: failed program was:" >&5
12174 cat conftest.$ac_ext >&5
12175 eval "$as_ac_Header=no"
12177 rm -f conftest.$ac_objext conftest.$ac_ext
12179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12182 cat >>confdefs.h <<_ACEOF
12183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12184 _ACEOF
12188 done
12192 for ac_header in netinet/ip.h
12194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12195 echo "$as_me:$LINENO: checking for $ac_header" >&5
12196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12198 echo $ECHO_N "(cached) $ECHO_C" >&6
12199 else
12200 cat >conftest.$ac_ext <<_ACEOF
12201 #line $LINENO "configure"
12202 #include "confdefs.h"
12203 #include <sys/types.h>
12204 #if HAVE_SYS_SOCKET_H
12205 # include <sys/socket.h>
12206 #endif
12207 #if HAVE_NETINET_IN_SYSTM_H
12208 # include <netinet/in_systm.h>
12209 #endif
12211 #include <$ac_header>
12212 _ACEOF
12213 rm -f conftest.$ac_objext
12214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12215 (eval $ac_compile) 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } &&
12219 { ac_try='test -s conftest.$ac_objext'
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; }; then
12225 eval "$as_ac_Header=yes"
12226 else
12227 echo "$as_me: failed program was:" >&5
12228 cat conftest.$ac_ext >&5
12229 eval "$as_ac_Header=no"
12231 rm -f conftest.$ac_objext conftest.$ac_ext
12233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12236 cat >>confdefs.h <<_ACEOF
12237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12238 _ACEOF
12242 done
12246 for ac_header in resolv.h
12248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12249 echo "$as_me:$LINENO: checking for $ac_header" >&5
12250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 else
12254 cat >conftest.$ac_ext <<_ACEOF
12255 #line $LINENO "configure"
12256 #include "confdefs.h"
12257 #include <sys/types.h>
12258 #if HAVE_SYS_SOCKET_H
12259 # include <sys/socket.h>
12260 #endif
12262 #include <$ac_header>
12263 _ACEOF
12264 rm -f conftest.$ac_objext
12265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12266 (eval $ac_compile) 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } &&
12270 { ac_try='test -s conftest.$ac_objext'
12271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272 (eval $ac_try) 2>&5
12273 ac_status=$?
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; }; then
12276 eval "$as_ac_Header=yes"
12277 else
12278 echo "$as_me: failed program was:" >&5
12279 cat conftest.$ac_ext >&5
12280 eval "$as_ac_Header=no"
12282 rm -f conftest.$ac_objext conftest.$ac_ext
12284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12287 cat >>confdefs.h <<_ACEOF
12288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12289 _ACEOF
12293 done
12297 for ac_header in ucontext.h
12299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12300 echo "$as_me:$LINENO: checking for $ac_header" >&5
12301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12304 else
12305 cat >conftest.$ac_ext <<_ACEOF
12306 #line $LINENO "configure"
12307 #include "confdefs.h"
12308 #include <signal.h>
12310 #include <$ac_header>
12311 _ACEOF
12312 rm -f conftest.$ac_objext
12313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12314 (eval $ac_compile) 2>&5
12315 ac_status=$?
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } &&
12318 { ac_try='test -s conftest.$ac_objext'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12321 ac_status=$?
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; }; then
12324 eval "$as_ac_Header=yes"
12325 else
12326 echo "$as_me: failed program was:" >&5
12327 cat conftest.$ac_ext >&5
12328 eval "$as_ac_Header=no"
12330 rm -f conftest.$ac_objext conftest.$ac_ext
12332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12335 cat >>confdefs.h <<_ACEOF
12336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12337 _ACEOF
12341 done
12345 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12346 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12347 if test "${ac_cv_c_const+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12349 else
12350 cat >conftest.$ac_ext <<_ACEOF
12351 #line $LINENO "configure"
12352 #include "confdefs.h"
12355 main ()
12357 /* FIXME: Include the comments suggested by Paul. */
12358 #ifndef __cplusplus
12359 /* Ultrix mips cc rejects this. */
12360 typedef int charset[2];
12361 const charset x;
12362 /* SunOS 4.1.1 cc rejects this. */
12363 char const *const *ccp;
12364 char **p;
12365 /* NEC SVR4.0.2 mips cc rejects this. */
12366 struct point {int x, y;};
12367 static struct point const zero = {0,0};
12368 /* AIX XL C 1.02.0.0 rejects this.
12369 It does not let you subtract one const X* pointer from another in
12370 an arm of an if-expression whose if-part is not a constant
12371 expression */
12372 const char *g = "string";
12373 ccp = &g + (g ? g-g : 0);
12374 /* HPUX 7.0 cc rejects these. */
12375 ++ccp;
12376 p = (char**) ccp;
12377 ccp = (char const *const *) p;
12378 { /* SCO 3.2v4 cc rejects this. */
12379 char *t;
12380 char const *s = 0 ? (char *) 0 : (char const *) 0;
12382 *t++ = 0;
12384 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12385 int x[] = {25, 17};
12386 const int *foo = &x[0];
12387 ++foo;
12389 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12390 typedef const int *iptr;
12391 iptr p = 0;
12392 ++p;
12394 { /* AIX XL C 1.02.0.0 rejects this saying
12395 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12396 struct s { int j; const int *ap[3]; };
12397 struct s *b; b->j = 5;
12399 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12400 const int foo = 10;
12402 #endif
12405 return 0;
12407 _ACEOF
12408 rm -f conftest.$ac_objext
12409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12410 (eval $ac_compile) 2>&5
12411 ac_status=$?
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } &&
12414 { ac_try='test -s conftest.$ac_objext'
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12417 ac_status=$?
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; }; then
12420 ac_cv_c_const=yes
12421 else
12422 echo "$as_me: failed program was:" >&5
12423 cat conftest.$ac_ext >&5
12424 ac_cv_c_const=no
12426 rm -f conftest.$ac_objext conftest.$ac_ext
12428 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12429 echo "${ECHO_T}$ac_cv_c_const" >&6
12430 if test $ac_cv_c_const = no; then
12432 cat >>confdefs.h <<\_ACEOF
12433 #define const
12434 _ACEOF
12438 echo "$as_me:$LINENO: checking for inline" >&5
12439 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12440 if test "${ac_cv_c_inline+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12442 else
12443 ac_cv_c_inline=no
12444 for ac_kw in inline __inline__ __inline; do
12445 cat >conftest.$ac_ext <<_ACEOF
12446 #line $LINENO "configure"
12447 #include "confdefs.h"
12448 #ifndef __cplusplus
12449 typedef int foo_t;
12450 static $ac_kw foo_t static_foo () {return 0; }
12451 $ac_kw foo_t foo () {return 0; }
12452 #endif
12454 _ACEOF
12455 rm -f conftest.$ac_objext
12456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12457 (eval $ac_compile) 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } &&
12461 { ac_try='test -s conftest.$ac_objext'
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12464 ac_status=$?
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
12467 ac_cv_c_inline=$ac_kw; break
12468 else
12469 echo "$as_me: failed program was:" >&5
12470 cat conftest.$ac_ext >&5
12472 rm -f conftest.$ac_objext conftest.$ac_ext
12473 done
12476 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12477 echo "${ECHO_T}$ac_cv_c_inline" >&6
12478 case $ac_cv_c_inline in
12479 inline | yes) ;;
12481 cat >>confdefs.h <<\_ACEOF
12482 #define inline
12483 _ACEOF
12485 *) cat >>confdefs.h <<_ACEOF
12486 #define inline $ac_cv_c_inline
12487 _ACEOF
12489 esac
12491 echo "$as_me:$LINENO: checking for mode_t" >&5
12492 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12493 if test "${ac_cv_type_mode_t+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12495 else
12496 cat >conftest.$ac_ext <<_ACEOF
12497 #line $LINENO "configure"
12498 #include "confdefs.h"
12499 $ac_includes_default
12501 main ()
12503 if ((mode_t *) 0)
12504 return 0;
12505 if (sizeof (mode_t))
12506 return 0;
12508 return 0;
12510 _ACEOF
12511 rm -f conftest.$ac_objext
12512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12513 (eval $ac_compile) 2>&5
12514 ac_status=$?
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
12517 { ac_try='test -s conftest.$ac_objext'
12518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12520 ac_status=$?
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
12523 ac_cv_type_mode_t=yes
12524 else
12525 echo "$as_me: failed program was:" >&5
12526 cat conftest.$ac_ext >&5
12527 ac_cv_type_mode_t=no
12529 rm -f conftest.$ac_objext conftest.$ac_ext
12531 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12532 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12533 if test $ac_cv_type_mode_t = yes; then
12535 cat >>confdefs.h <<_ACEOF
12536 #define HAVE_MODE_T 1
12537 _ACEOF
12541 echo "$as_me:$LINENO: checking for off_t" >&5
12542 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12543 if test "${ac_cv_type_off_t+set}" = set; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
12545 else
12546 cat >conftest.$ac_ext <<_ACEOF
12547 #line $LINENO "configure"
12548 #include "confdefs.h"
12549 $ac_includes_default
12551 main ()
12553 if ((off_t *) 0)
12554 return 0;
12555 if (sizeof (off_t))
12556 return 0;
12558 return 0;
12560 _ACEOF
12561 rm -f conftest.$ac_objext
12562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12563 (eval $ac_compile) 2>&5
12564 ac_status=$?
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } &&
12567 { ac_try='test -s conftest.$ac_objext'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12570 ac_status=$?
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; }; then
12573 ac_cv_type_off_t=yes
12574 else
12575 echo "$as_me: failed program was:" >&5
12576 cat conftest.$ac_ext >&5
12577 ac_cv_type_off_t=no
12579 rm -f conftest.$ac_objext conftest.$ac_ext
12581 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12582 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12583 if test $ac_cv_type_off_t = yes; then
12585 cat >>confdefs.h <<_ACEOF
12586 #define HAVE_OFF_T 1
12587 _ACEOF
12591 echo "$as_me:$LINENO: checking for pid_t" >&5
12592 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12593 if test "${ac_cv_type_pid_t+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 else
12596 cat >conftest.$ac_ext <<_ACEOF
12597 #line $LINENO "configure"
12598 #include "confdefs.h"
12599 $ac_includes_default
12601 main ()
12603 if ((pid_t *) 0)
12604 return 0;
12605 if (sizeof (pid_t))
12606 return 0;
12608 return 0;
12610 _ACEOF
12611 rm -f conftest.$ac_objext
12612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12613 (eval $ac_compile) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } &&
12617 { ac_try='test -s conftest.$ac_objext'
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12623 ac_cv_type_pid_t=yes
12624 else
12625 echo "$as_me: failed program was:" >&5
12626 cat conftest.$ac_ext >&5
12627 ac_cv_type_pid_t=no
12629 rm -f conftest.$ac_objext conftest.$ac_ext
12631 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12632 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12633 if test $ac_cv_type_pid_t = yes; then
12635 cat >>confdefs.h <<_ACEOF
12636 #define HAVE_PID_T 1
12637 _ACEOF
12641 echo "$as_me:$LINENO: checking for size_t" >&5
12642 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12643 if test "${ac_cv_type_size_t+set}" = set; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12645 else
12646 cat >conftest.$ac_ext <<_ACEOF
12647 #line $LINENO "configure"
12648 #include "confdefs.h"
12649 $ac_includes_default
12651 main ()
12653 if ((size_t *) 0)
12654 return 0;
12655 if (sizeof (size_t))
12656 return 0;
12658 return 0;
12660 _ACEOF
12661 rm -f conftest.$ac_objext
12662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12663 (eval $ac_compile) 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); } &&
12667 { ac_try='test -s conftest.$ac_objext'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12670 ac_status=$?
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; }; then
12673 ac_cv_type_size_t=yes
12674 else
12675 echo "$as_me: failed program was:" >&5
12676 cat conftest.$ac_ext >&5
12677 ac_cv_type_size_t=no
12679 rm -f conftest.$ac_objext conftest.$ac_ext
12681 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12682 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12683 if test $ac_cv_type_size_t = yes; then
12685 cat >>confdefs.h <<_ACEOF
12686 #define HAVE_SIZE_T 1
12687 _ACEOF
12691 echo "$as_me:$LINENO: checking for ssize_t" >&5
12692 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12693 if test "${ac_cv_type_ssize_t+set}" = set; then
12694 echo $ECHO_N "(cached) $ECHO_C" >&6
12695 else
12696 cat >conftest.$ac_ext <<_ACEOF
12697 #line $LINENO "configure"
12698 #include "confdefs.h"
12699 $ac_includes_default
12701 main ()
12703 if ((ssize_t *) 0)
12704 return 0;
12705 if (sizeof (ssize_t))
12706 return 0;
12708 return 0;
12710 _ACEOF
12711 rm -f conftest.$ac_objext
12712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12713 (eval $ac_compile) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } &&
12717 { ac_try='test -s conftest.$ac_objext'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12720 ac_status=$?
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; }; then
12723 ac_cv_type_ssize_t=yes
12724 else
12725 echo "$as_me: failed program was:" >&5
12726 cat conftest.$ac_ext >&5
12727 ac_cv_type_ssize_t=no
12729 rm -f conftest.$ac_objext conftest.$ac_ext
12731 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12732 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12733 if test $ac_cv_type_ssize_t = yes; then
12735 cat >>confdefs.h <<_ACEOF
12736 #define HAVE_SSIZE_T 1
12737 _ACEOF
12742 echo "$as_me:$LINENO: checking for long long" >&5
12743 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12744 if test "${ac_cv_type_long_long+set}" = set; then
12745 echo $ECHO_N "(cached) $ECHO_C" >&6
12746 else
12747 cat >conftest.$ac_ext <<_ACEOF
12748 #line $LINENO "configure"
12749 #include "confdefs.h"
12750 $ac_includes_default
12752 main ()
12754 if ((long long *) 0)
12755 return 0;
12756 if (sizeof (long long))
12757 return 0;
12759 return 0;
12761 _ACEOF
12762 rm -f conftest.$ac_objext
12763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12764 (eval $ac_compile) 2>&5
12765 ac_status=$?
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); } &&
12768 { ac_try='test -s conftest.$ac_objext'
12769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770 (eval $ac_try) 2>&5
12771 ac_status=$?
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; }; then
12774 ac_cv_type_long_long=yes
12775 else
12776 echo "$as_me: failed program was:" >&5
12777 cat conftest.$ac_ext >&5
12778 ac_cv_type_long_long=no
12780 rm -f conftest.$ac_objext conftest.$ac_ext
12782 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12783 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12785 echo "$as_me:$LINENO: checking size of long long" >&5
12786 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12787 if test "${ac_cv_sizeof_long_long+set}" = set; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12789 else
12790 if test "$ac_cv_type_long_long" = yes; then
12791 # The cast to unsigned long works around a bug in the HP C Compiler
12792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12794 # This bug is HP SR number 8606223364.
12795 if test "$cross_compiling" = yes; then
12796 # Depending upon the size, compute the lo and hi bounds.
12797 cat >conftest.$ac_ext <<_ACEOF
12798 #line $LINENO "configure"
12799 #include "confdefs.h"
12800 $ac_includes_default
12802 main ()
12804 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12805 test_array [0] = 0
12808 return 0;
12810 _ACEOF
12811 rm -f conftest.$ac_objext
12812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12813 (eval $ac_compile) 2>&5
12814 ac_status=$?
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } &&
12817 { ac_try='test -s conftest.$ac_objext'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
12823 ac_lo=0 ac_mid=0
12824 while :; do
12825 cat >conftest.$ac_ext <<_ACEOF
12826 #line $LINENO "configure"
12827 #include "confdefs.h"
12828 $ac_includes_default
12830 main ()
12832 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12833 test_array [0] = 0
12836 return 0;
12838 _ACEOF
12839 rm -f conftest.$ac_objext
12840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12841 (eval $ac_compile) 2>&5
12842 ac_status=$?
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
12845 { ac_try='test -s conftest.$ac_objext'
12846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; }; then
12851 ac_hi=$ac_mid; break
12852 else
12853 echo "$as_me: failed program was:" >&5
12854 cat conftest.$ac_ext >&5
12855 ac_lo=`expr $ac_mid + 1`
12856 if test $ac_lo -le $ac_mid; then
12857 ac_lo= ac_hi=
12858 break
12860 ac_mid=`expr 2 '*' $ac_mid + 1`
12862 rm -f conftest.$ac_objext conftest.$ac_ext
12863 done
12864 else
12865 echo "$as_me: failed program was:" >&5
12866 cat conftest.$ac_ext >&5
12867 cat >conftest.$ac_ext <<_ACEOF
12868 #line $LINENO "configure"
12869 #include "confdefs.h"
12870 $ac_includes_default
12872 main ()
12874 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12875 test_array [0] = 0
12878 return 0;
12880 _ACEOF
12881 rm -f conftest.$ac_objext
12882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12883 (eval $ac_compile) 2>&5
12884 ac_status=$?
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); } &&
12887 { ac_try='test -s conftest.$ac_objext'
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
12893 ac_hi=-1 ac_mid=-1
12894 while :; do
12895 cat >conftest.$ac_ext <<_ACEOF
12896 #line $LINENO "configure"
12897 #include "confdefs.h"
12898 $ac_includes_default
12900 main ()
12902 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12903 test_array [0] = 0
12906 return 0;
12908 _ACEOF
12909 rm -f conftest.$ac_objext
12910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12911 (eval $ac_compile) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); } &&
12915 { ac_try='test -s conftest.$ac_objext'
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 ac_lo=$ac_mid; break
12922 else
12923 echo "$as_me: failed program was:" >&5
12924 cat conftest.$ac_ext >&5
12925 ac_hi=`expr '(' $ac_mid ')' - 1`
12926 if test $ac_mid -le $ac_hi; then
12927 ac_lo= ac_hi=
12928 break
12930 ac_mid=`expr 2 '*' $ac_mid`
12932 rm -f conftest.$ac_objext conftest.$ac_ext
12933 done
12934 else
12935 echo "$as_me: failed program was:" >&5
12936 cat conftest.$ac_ext >&5
12937 ac_lo= ac_hi=
12939 rm -f conftest.$ac_objext conftest.$ac_ext
12941 rm -f conftest.$ac_objext conftest.$ac_ext
12942 # Binary search between lo and hi bounds.
12943 while test "x$ac_lo" != "x$ac_hi"; do
12944 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12945 cat >conftest.$ac_ext <<_ACEOF
12946 #line $LINENO "configure"
12947 #include "confdefs.h"
12948 $ac_includes_default
12950 main ()
12952 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12953 test_array [0] = 0
12956 return 0;
12958 _ACEOF
12959 rm -f conftest.$ac_objext
12960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12961 (eval $ac_compile) 2>&5
12962 ac_status=$?
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); } &&
12965 { ac_try='test -s conftest.$ac_objext'
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12968 ac_status=$?
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; }; then
12971 ac_hi=$ac_mid
12972 else
12973 echo "$as_me: failed program was:" >&5
12974 cat conftest.$ac_ext >&5
12975 ac_lo=`expr '(' $ac_mid ')' + 1`
12977 rm -f conftest.$ac_objext conftest.$ac_ext
12978 done
12979 case $ac_lo in
12980 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12981 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12982 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12983 { (exit 1); exit 1; }; } ;;
12984 esac
12985 else
12986 if test "$cross_compiling" = yes; then
12987 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12988 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12989 { (exit 1); exit 1; }; }
12990 else
12991 cat >conftest.$ac_ext <<_ACEOF
12992 #line $LINENO "configure"
12993 #include "confdefs.h"
12994 $ac_includes_default
12995 long longval () { return (long) (sizeof (long long)); }
12996 unsigned long ulongval () { return (long) (sizeof (long long)); }
12997 #include <stdio.h>
12998 #include <stdlib.h>
13000 main ()
13003 FILE *f = fopen ("conftest.val", "w");
13004 if (! f)
13005 exit (1);
13006 if (((long) (sizeof (long long))) < 0)
13008 long i = longval ();
13009 if (i != ((long) (sizeof (long long))))
13010 exit (1);
13011 fprintf (f, "%ld\n", i);
13013 else
13015 unsigned long i = ulongval ();
13016 if (i != ((long) (sizeof (long long))))
13017 exit (1);
13018 fprintf (f, "%lu\n", i);
13020 exit (ferror (f) || fclose (f) != 0);
13023 return 0;
13025 _ACEOF
13026 rm -f conftest$ac_exeext
13027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13028 (eval $ac_link) 2>&5
13029 ac_status=$?
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; }; then
13037 ac_cv_sizeof_long_long=`cat conftest.val`
13038 else
13039 echo "$as_me: program exited with status $ac_status" >&5
13040 echo "$as_me: failed program was:" >&5
13041 cat conftest.$ac_ext >&5
13042 ( exit $ac_status )
13043 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
13044 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
13045 { (exit 1); exit 1; }; }
13047 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13050 rm -f conftest.val
13051 else
13052 ac_cv_sizeof_long_long=0
13055 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13056 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13057 cat >>confdefs.h <<_ACEOF
13058 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13059 _ACEOF
13063 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
13064 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
13065 if test "${wine_cv_linux_input_h+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13067 else
13068 cat >conftest.$ac_ext <<_ACEOF
13069 #line $LINENO "configure"
13070 #include "confdefs.h"
13072 #include <linux/input.h>
13075 main ()
13078 int foo = EVIOCGBIT(EV_ABS,42);
13079 int bar = BTN_PINKIE;
13080 int fortytwo = 42;
13083 return 0;
13085 _ACEOF
13086 rm -f conftest.$ac_objext
13087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13088 (eval $ac_compile) 2>&5
13089 ac_status=$?
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } &&
13092 { ac_try='test -s conftest.$ac_objext'
13093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094 (eval $ac_try) 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
13098 wine_cv_linux_input_h=yes
13099 else
13100 echo "$as_me: failed program was:" >&5
13101 cat conftest.$ac_ext >&5
13102 wine_cv_linux_input_h=no
13104 rm -f conftest.$ac_objext conftest.$ac_ext
13107 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
13108 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
13109 if test "$wine_cv_linux_input_h" = "yes"
13110 then
13112 cat >>confdefs.h <<\_ACEOF
13113 #define HAVE_CORRECT_LINUXINPUT_H 1
13114 _ACEOF
13119 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13120 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
13121 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
13122 echo $ECHO_N "(cached) $ECHO_C" >&6
13123 else
13124 cat >conftest.$ac_ext <<_ACEOF
13125 #line $LINENO "configure"
13126 #include "confdefs.h"
13128 #include <netdb.h>
13131 main ()
13134 char *name=NULL;
13135 struct hostent he;
13136 struct hostent *result;
13137 char *buf=NULL;
13138 int bufsize=0;
13139 int res,errnr;
13140 char *addr=NULL;
13141 int addrlen=0;
13142 int addrtype=0;
13143 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13144 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13147 return 0;
13149 _ACEOF
13150 rm -f conftest.$ac_objext
13151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13152 (eval $ac_compile) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } &&
13156 { ac_try='test -s conftest.$ac_objext'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 wine_cv_linux_gethostbyname_r_6=yes
13163 else
13164 echo "$as_me: failed program was:" >&5
13165 cat conftest.$ac_ext >&5
13166 wine_cv_linux_gethostbyname_r_6=no
13169 rm -f conftest.$ac_objext conftest.$ac_ext
13172 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
13173 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
13174 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13175 then
13177 cat >>confdefs.h <<\_ACEOF
13178 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
13179 _ACEOF
13183 if test "$ac_cv_header_linux_joystick_h" = "yes"
13184 then
13185 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13186 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
13187 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 else
13190 cat >conftest.$ac_ext <<_ACEOF
13191 #line $LINENO "configure"
13192 #include "confdefs.h"
13194 #include <sys/ioctl.h>
13195 #include <linux/joystick.h>
13197 struct js_event blub;
13198 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13199 #error "no 2.2 header"
13200 #endif
13203 main ()
13205 /*empty*/
13207 return 0;
13209 _ACEOF
13210 rm -f conftest.$ac_objext
13211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13212 (eval $ac_compile) 2>&5
13213 ac_status=$?
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
13216 { ac_try='test -s conftest.$ac_objext'
13217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13219 ac_status=$?
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; }; then
13222 wine_cv_linux_joystick_22_api=yes
13223 else
13224 echo "$as_me: failed program was:" >&5
13225 cat conftest.$ac_ext >&5
13226 wine_cv_linux_joystick_22_api=no
13228 rm -f conftest.$ac_objext conftest.$ac_ext
13231 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
13232 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
13233 if test "$wine_cv_linux_joystick_22_api" = "yes"
13234 then
13236 cat >>confdefs.h <<\_ACEOF
13237 #define HAVE_LINUX_22_JOYSTICK_API 1
13238 _ACEOF
13244 if test "$ac_cv_header_sys_vfs_h" = "yes"
13245 then
13246 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
13247 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
13248 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13250 else
13251 cat >conftest.$ac_ext <<_ACEOF
13252 #line $LINENO "configure"
13253 #include "confdefs.h"
13255 #include <sys/types.h>
13256 #ifdef HAVE_SYS_PARAM_H
13257 # include <sys/param.h>
13258 #endif
13259 #include <sys/vfs.h>
13262 main ()
13265 struct statfs stfs;
13267 memset(&stfs,0,sizeof(stfs));
13270 return 0;
13272 _ACEOF
13273 rm -f conftest.$ac_objext
13274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13275 (eval $ac_compile) 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); } &&
13279 { ac_try='test -s conftest.$ac_objext'
13280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281 (eval $ac_try) 2>&5
13282 ac_status=$?
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; }; then
13285 wine_cv_sys_vfs_has_statfs=yes
13286 else
13287 echo "$as_me: failed program was:" >&5
13288 cat conftest.$ac_ext >&5
13289 wine_cv_sys_vfs_has_statfs=no
13292 rm -f conftest.$ac_objext conftest.$ac_ext
13295 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
13296 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
13297 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
13298 then
13300 cat >>confdefs.h <<\_ACEOF
13301 #define STATFS_DEFINED_BY_SYS_VFS 1
13302 _ACEOF
13307 if test "$ac_cv_header_sys_statfs_h" = "yes"
13308 then
13309 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
13310 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
13311 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13313 else
13314 cat >conftest.$ac_ext <<_ACEOF
13315 #line $LINENO "configure"
13316 #include "confdefs.h"
13318 #include <sys/types.h>
13319 #ifdef HAVE_SYS_PARAM_H
13320 # include <sys/param.h>
13321 #endif
13322 #include <sys/statfs.h>
13325 main ()
13328 struct statfs stfs;
13331 return 0;
13333 _ACEOF
13334 rm -f conftest.$ac_objext
13335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13336 (eval $ac_compile) 2>&5
13337 ac_status=$?
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); } &&
13340 { ac_try='test -s conftest.$ac_objext'
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13343 ac_status=$?
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
13346 wine_cv_sys_statfs_has_statfs=yes
13347 else
13348 echo "$as_me: failed program was:" >&5
13349 cat conftest.$ac_ext >&5
13350 wine_cv_sys_statfs_has_statfs=no
13353 rm -f conftest.$ac_objext conftest.$ac_ext
13356 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
13357 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
13358 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
13359 then
13361 cat >>confdefs.h <<\_ACEOF
13362 #define STATFS_DEFINED_BY_SYS_STATFS 1
13363 _ACEOF
13368 if test "$ac_cv_header_sys_mount_h" = "yes"
13369 then
13370 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
13371 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
13372 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13374 else
13375 cat >conftest.$ac_ext <<_ACEOF
13376 #line $LINENO "configure"
13377 #include "confdefs.h"
13379 #include <sys/types.h>
13380 #ifdef HAVE_SYS_PARAM_H
13381 # include <sys/param.h>
13382 #endif
13383 #include <sys/mount.h>
13386 main ()
13389 struct statfs stfs;
13392 return 0;
13394 _ACEOF
13395 rm -f conftest.$ac_objext
13396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13397 (eval $ac_compile) 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } &&
13401 { ac_try='test -s conftest.$ac_objext'
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 wine_cv_sys_mount_has_statfs=yes
13408 else
13409 echo "$as_me: failed program was:" >&5
13410 cat conftest.$ac_ext >&5
13411 wine_cv_sys_mount_has_statfs=no
13414 rm -f conftest.$ac_objext conftest.$ac_ext
13417 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
13418 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
13419 if test "$wine_cv_sys_mount_has_statfs" = "yes"
13420 then
13422 cat >>confdefs.h <<\_ACEOF
13423 #define STATFS_DEFINED_BY_SYS_MOUNT 1
13424 _ACEOF
13430 echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
13431 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
13432 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
13433 echo $ECHO_N "(cached) $ECHO_C" >&6
13434 else
13435 cat >conftest.$ac_ext <<_ACEOF
13436 #line $LINENO "configure"
13437 #include "confdefs.h"
13438 #include <sys/types.h>
13439 #ifdef HAVE_SYS_PARAM_H
13440 # include <sys/param.h>
13441 #endif
13442 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
13443 # include <sys/mount.h>
13444 #else
13445 # ifdef STATFS_DEFINED_BY_SYS_VFS
13446 # include <sys/vfs.h>
13447 # else
13448 # ifdef STATFS_DEFINED_BY_SYS_STATFS
13449 # include <sys/statfs.h>
13450 # endif
13451 # endif
13452 #endif
13454 main ()
13456 struct statfs s; s.f_bfree = 0
13458 return 0;
13460 _ACEOF
13461 rm -f conftest.$ac_objext
13462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13463 (eval $ac_compile) 2>&5
13464 ac_status=$?
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } &&
13467 { ac_try='test -s conftest.$ac_objext'
13468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13470 ac_status=$?
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; }; then
13473 ac_cv_c_statfs_f_bfree="yes"
13474 else
13475 echo "$as_me: failed program was:" >&5
13476 cat conftest.$ac_ext >&5
13477 ac_cv_c_statfs_f_bfree="no"
13479 rm -f conftest.$ac_objext conftest.$ac_ext
13481 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
13482 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
13483 if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
13485 cat >>confdefs.h <<\_ACEOF
13486 #define STATFS_HAS_BFREE 1
13487 _ACEOF
13493 echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
13494 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
13495 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 else
13498 cat >conftest.$ac_ext <<_ACEOF
13499 #line $LINENO "configure"
13500 #include "confdefs.h"
13501 #include <sys/types.h>
13502 #ifdef HAVE_SYS_PARAM_H
13503 # include <sys/param.h>
13504 #endif
13505 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
13506 # include <sys/mount.h>
13507 #else
13508 # ifdef STATFS_DEFINED_BY_SYS_VFS
13509 # include <sys/vfs.h>
13510 # else
13511 # ifdef STATFS_DEFINED_BY_SYS_STATFS
13512 # include <sys/statfs.h>
13513 # endif
13514 # endif
13515 #endif
13517 main ()
13519 struct statfs s; s.f_bavail = 0
13521 return 0;
13523 _ACEOF
13524 rm -f conftest.$ac_objext
13525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13526 (eval $ac_compile) 2>&5
13527 ac_status=$?
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } &&
13530 { ac_try='test -s conftest.$ac_objext'
13531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13533 ac_status=$?
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }; then
13536 ac_cv_c_statfs_f_bavail="yes"
13537 else
13538 echo "$as_me: failed program was:" >&5
13539 cat conftest.$ac_ext >&5
13540 ac_cv_c_statfs_f_bavail="no"
13542 rm -f conftest.$ac_objext conftest.$ac_ext
13544 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
13545 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
13546 if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
13548 cat >>confdefs.h <<\_ACEOF
13549 #define STATFS_HAS_BAVAIL 1
13550 _ACEOF
13556 echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
13557 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
13558 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13560 else
13561 cat >conftest.$ac_ext <<_ACEOF
13562 #line $LINENO "configure"
13563 #include "confdefs.h"
13564 #include <sys/types.h>
13565 #ifdef HAVE_SYS_SOCKET_H
13566 # include <sys/socket.h>
13567 #endif
13569 main ()
13571 struct msghdr s; s.msg_accrights = 0
13573 return 0;
13575 _ACEOF
13576 rm -f conftest.$ac_objext
13577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13578 (eval $ac_compile) 2>&5
13579 ac_status=$?
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } &&
13582 { ac_try='test -s conftest.$ac_objext'
13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 (eval $ac_try) 2>&5
13585 ac_status=$?
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; }; then
13588 ac_cv_c_msghdr_msg_accrights="yes"
13589 else
13590 echo "$as_me: failed program was:" >&5
13591 cat conftest.$ac_ext >&5
13592 ac_cv_c_msghdr_msg_accrights="no"
13594 rm -f conftest.$ac_objext conftest.$ac_ext
13596 echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
13597 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
13598 if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
13600 cat >>confdefs.h <<\_ACEOF
13601 #define HAVE_MSGHDR_ACCRIGHTS 1
13602 _ACEOF
13608 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
13609 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
13610 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13612 else
13613 cat >conftest.$ac_ext <<_ACEOF
13614 #line $LINENO "configure"
13615 #include "confdefs.h"
13616 #include <sys/types.h>
13617 #ifdef HAVE_SYS_SOCKET_H
13618 # include <sys/socket.h>
13619 #endif
13621 main ()
13623 struct sockaddr s; s.sa_len = 0
13625 return 0;
13627 _ACEOF
13628 rm -f conftest.$ac_objext
13629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13630 (eval $ac_compile) 2>&5
13631 ac_status=$?
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } &&
13634 { ac_try='test -s conftest.$ac_objext'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; }; then
13640 ac_cv_c_sockaddr_sa_len="yes"
13641 else
13642 echo "$as_me: failed program was:" >&5
13643 cat conftest.$ac_ext >&5
13644 ac_cv_c_sockaddr_sa_len="no"
13646 rm -f conftest.$ac_objext conftest.$ac_ext
13648 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
13649 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
13650 if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
13652 cat >>confdefs.h <<\_ACEOF
13653 #define HAVE_SOCKADDR_SA_LEN 1
13654 _ACEOF
13660 echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
13661 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
13662 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 else
13665 cat >conftest.$ac_ext <<_ACEOF
13666 #line $LINENO "configure"
13667 #include "confdefs.h"
13668 #include <sys/types.h>
13669 #ifdef HAVE_SYS_SOCKET_H
13670 # include <sys/socket.h>
13671 #endif
13672 #ifdef HAVE_SYS_UN_H
13673 # include <sys/un.h>
13674 #endif
13676 main ()
13678 struct sockaddr_un s; s.sun_len = 0
13680 return 0;
13682 _ACEOF
13683 rm -f conftest.$ac_objext
13684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13685 (eval $ac_compile) 2>&5
13686 ac_status=$?
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); } &&
13689 { ac_try='test -s conftest.$ac_objext'
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13692 ac_status=$?
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; }; then
13695 ac_cv_c_sockaddr_un_sun_len="yes"
13696 else
13697 echo "$as_me: failed program was:" >&5
13698 cat conftest.$ac_ext >&5
13699 ac_cv_c_sockaddr_un_sun_len="no"
13701 rm -f conftest.$ac_objext conftest.$ac_ext
13703 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
13704 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
13705 if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
13707 cat >>confdefs.h <<\_ACEOF
13708 #define HAVE_SOCKADDR_SUN_LEN 1
13709 _ACEOF
13716 case $host_cpu in
13717 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
13718 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
13719 if test "${ac_cv_cpp_def___i386__+set}" = set; then
13720 echo $ECHO_N "(cached) $ECHO_C" >&6
13721 else
13722 cat >conftest.$ac_ext <<_ACEOF
13723 #line $LINENO "configure"
13724 #include "confdefs.h"
13725 #ifndef __i386__
13727 #endif
13728 _ACEOF
13729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13730 $EGREP "yes" >/dev/null 2>&1; then
13731 ac_cv_cpp_def___i386__=yes
13732 else
13733 ac_cv_cpp_def___i386__=no
13735 rm -f conftest*
13738 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
13739 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
13740 if test $ac_cv_cpp_def___i386__ = yes; then
13741 CFLAGS="$CFLAGS -D__i386__"
13742 LINTFLAGS="$LINTFLAGS -D__i386__"
13745 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
13746 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
13747 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
13748 echo $ECHO_N "(cached) $ECHO_C" >&6
13749 else
13750 cat >conftest.$ac_ext <<_ACEOF
13751 #line $LINENO "configure"
13752 #include "confdefs.h"
13753 #ifndef __ALPHA__
13755 #endif
13756 _ACEOF
13757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13758 $EGREP "yes" >/dev/null 2>&1; then
13759 ac_cv_cpp_def___ALPHA__=yes
13760 else
13761 ac_cv_cpp_def___ALPHA__=no
13763 rm -f conftest*
13766 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
13767 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
13768 if test $ac_cv_cpp_def___ALPHA__ = yes; then
13769 CFLAGS="$CFLAGS -D__ALPHA__"
13770 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
13773 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
13774 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
13775 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
13776 echo $ECHO_N "(cached) $ECHO_C" >&6
13777 else
13778 cat >conftest.$ac_ext <<_ACEOF
13779 #line $LINENO "configure"
13780 #include "confdefs.h"
13781 #ifndef __sparc__
13783 #endif
13784 _ACEOF
13785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13786 $EGREP "yes" >/dev/null 2>&1; then
13787 ac_cv_cpp_def___sparc__=yes
13788 else
13789 ac_cv_cpp_def___sparc__=no
13791 rm -f conftest*
13794 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
13795 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
13796 if test $ac_cv_cpp_def___sparc__ = yes; then
13797 CFLAGS="$CFLAGS -D__sparc__"
13798 LINTFLAGS="$LINTFLAGS -D__sparc__"
13801 esac
13803 case $host_vendor in
13804 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
13805 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
13806 if test "${ac_cv_cpp_def___sun__+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809 cat >conftest.$ac_ext <<_ACEOF
13810 #line $LINENO "configure"
13811 #include "confdefs.h"
13812 #ifndef __sun__
13814 #endif
13815 _ACEOF
13816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13817 $EGREP "yes" >/dev/null 2>&1; then
13818 ac_cv_cpp_def___sun__=yes
13819 else
13820 ac_cv_cpp_def___sun__=no
13822 rm -f conftest*
13825 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
13826 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
13827 if test $ac_cv_cpp_def___sun__ = yes; then
13828 CFLAGS="$CFLAGS -D__sun__"
13829 LINTFLAGS="$LINTFLAGS -D__sun__"
13832 esac
13838 ac_config_commands="$ac_config_commands controls"
13840 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
13842 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
13844 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
13846 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
13848 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
13850 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
13852 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
13854 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
13856 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
13858 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
13860 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
13862 ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
13864 ac_config_commands="$ac_config_commands dlls/kernel/messages"
13866 ac_config_commands="$ac_config_commands dlls/user/dde"
13868 ac_config_commands="$ac_config_commands dlls/user/resources"
13870 ac_config_commands="$ac_config_commands dlls/wineps/data"
13872 ac_config_commands="$ac_config_commands files"
13874 ac_config_commands="$ac_config_commands graphics"
13876 ac_config_commands="$ac_config_commands graphics/x11drv"
13878 ac_config_commands="$ac_config_commands if1632"
13880 ac_config_commands="$ac_config_commands include/wine"
13882 ac_config_commands="$ac_config_commands loader"
13884 ac_config_commands="$ac_config_commands loader/ne"
13886 ac_config_commands="$ac_config_commands memory"
13888 ac_config_commands="$ac_config_commands misc"
13890 ac_config_commands="$ac_config_commands msdos"
13892 ac_config_commands="$ac_config_commands objects"
13894 ac_config_commands="$ac_config_commands programs/regapi/tests"
13896 ac_config_commands="$ac_config_commands programs/regedit/tests"
13898 ac_config_commands="$ac_config_commands relay32"
13900 ac_config_commands="$ac_config_commands scheduler"
13902 ac_config_commands="$ac_config_commands win32"
13904 ac_config_commands="$ac_config_commands windows"
13907 MAKE_RULES=Make.rules
13910 MAKE_DLL_RULES=dlls/Makedll.rules
13913 MAKE_TEST_RULES=dlls/Maketest.rules
13916 MAKE_PROG_RULES=programs/Makeprog.rules
13919 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/d3dx8/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/dsound/tests/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/winejack/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/wintab32/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/rpcss/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"
13922 cat >confcache <<\_ACEOF
13923 # This file is a shell script that caches the results of configure
13924 # tests run on this system so they can be shared between configure
13925 # scripts and configure runs, see configure's option --config-cache.
13926 # It is not useful on other systems. If it contains results you don't
13927 # want to keep, you may remove or edit it.
13929 # config.status only pays attention to the cache file if you give it
13930 # the --recheck option to rerun configure.
13932 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13933 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13934 # following values.
13936 _ACEOF
13938 # The following way of writing the cache mishandles newlines in values,
13939 # but we know of no workaround that is simple, portable, and efficient.
13940 # So, don't put newlines in cache variables' values.
13941 # Ultrix sh set writes to stderr and can't be redirected directly,
13942 # and sets the high bit in the cache file unless we assign to the vars.
13944 (set) 2>&1 |
13945 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13946 *ac_space=\ *)
13947 # `set' does not quote correctly, so add quotes (double-quote
13948 # substitution turns \\\\ into \\, and sed turns \\ into \).
13949 sed -n \
13950 "s/'/'\\\\''/g;
13951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13954 # `set' quotes correctly as required by POSIX, so do not add quotes.
13955 sed -n \
13956 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13958 esac;
13960 sed '
13961 t clear
13962 : clear
13963 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13964 t end
13965 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13966 : end' >>confcache
13967 if cmp -s $cache_file confcache; then :; else
13968 if test -w $cache_file; then
13969 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13970 cat confcache >$cache_file
13971 else
13972 echo "not updating unwritable cache $cache_file"
13975 rm -f confcache
13977 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13978 # Let make expand exec_prefix.
13979 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13981 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13982 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13983 # trailing colons and then remove the whole line if VPATH becomes empty
13984 # (actually we leave an empty line to preserve line numbers).
13985 if test "x$srcdir" = x.; then
13986 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13987 s/:*\$(srcdir):*/:/;
13988 s/:*\${srcdir}:*/:/;
13989 s/:*@srcdir@:*/:/;
13990 s/^\([^=]*=[ ]*\):*/\1/;
13991 s/:*$//;
13992 s/^[^=]*=[ ]*$//;
13996 DEFS=-DHAVE_CONFIG_H
13998 ac_libobjs=
13999 ac_ltlibobjs=
14000 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14001 # 1. Remove the extension, and $U if already installed.
14002 ac_i=`echo "$ac_i" |
14003 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14004 # 2. Add them.
14005 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14006 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14007 done
14008 LIBOBJS=$ac_libobjs
14010 LTLIBOBJS=$ac_ltlibobjs
14014 : ${CONFIG_STATUS=./config.status}
14015 ac_clean_files_save=$ac_clean_files
14016 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14017 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14018 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14019 cat >$CONFIG_STATUS <<_ACEOF
14020 #! $SHELL
14021 # Generated by $as_me.
14022 # Run this file to recreate the current configuration.
14023 # Compiler output produced by configure, useful for debugging
14024 # configure, is in config.log if it exists.
14026 debug=false
14027 SHELL=\${CONFIG_SHELL-$SHELL}
14028 _ACEOF
14030 cat >>$CONFIG_STATUS <<\_ACEOF
14031 ## --------------------- ##
14032 ## M4sh Initialization. ##
14033 ## --------------------- ##
14035 # Be Bourne compatible
14036 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14037 emulate sh
14038 NULLCMD=:
14039 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14040 # is contrary to our usage. Disable this feature.
14041 alias -g '${1+"$@"}'='"$@"'
14042 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14043 set -o posix
14046 # Support unset when possible.
14047 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
14048 as_unset=unset
14049 else
14050 as_unset=false
14054 # Work around bugs in pre-3.0 UWIN ksh.
14055 $as_unset ENV MAIL MAILPATH
14056 PS1='$ '
14057 PS2='> '
14058 PS4='+ '
14060 # NLS nuisances.
14061 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
14063 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
14064 eval $as_var=C; export $as_var
14065 else
14066 $as_unset $as_var
14068 done
14070 # Required to use basename.
14071 if expr a : '\(a\)' >/dev/null 2>&1; then
14072 as_expr=expr
14073 else
14074 as_expr=false
14077 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14078 as_basename=basename
14079 else
14080 as_basename=false
14084 # Name of the executable.
14085 as_me=`$as_basename "$0" ||
14086 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14087 X"$0" : 'X\(//\)$' \| \
14088 X"$0" : 'X\(/\)$' \| \
14089 . : '\(.\)' 2>/dev/null ||
14090 echo X/"$0" |
14091 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14092 /^X\/\(\/\/\)$/{ s//\1/; q; }
14093 /^X\/\(\/\).*/{ s//\1/; q; }
14094 s/.*/./; q'`
14097 # PATH needs CR, and LINENO needs CR and PATH.
14098 # Avoid depending upon Character Ranges.
14099 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14100 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14101 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14102 as_cr_digits='0123456789'
14103 as_cr_alnum=$as_cr_Letters$as_cr_digits
14105 # The user is always right.
14106 if test "${PATH_SEPARATOR+set}" != set; then
14107 echo "#! /bin/sh" >conftest.sh
14108 echo "exit 0" >>conftest.sh
14109 chmod +x conftest.sh
14110 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
14111 PATH_SEPARATOR=';'
14112 else
14113 PATH_SEPARATOR=:
14115 rm -f conftest.sh
14119 as_lineno_1=$LINENO
14120 as_lineno_2=$LINENO
14121 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14122 test "x$as_lineno_1" != "x$as_lineno_2" &&
14123 test "x$as_lineno_3" = "x$as_lineno_2" || {
14124 # Find who we are. Look in the path if we contain no path at all
14125 # relative or not.
14126 case $0 in
14127 *[\\/]* ) as_myself=$0 ;;
14128 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14129 for as_dir in $PATH
14131 IFS=$as_save_IFS
14132 test -z "$as_dir" && as_dir=.
14133 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14134 done
14137 esac
14138 # We did not find ourselves, most probably we were run as `sh COMMAND'
14139 # in which case we are not to be found in the path.
14140 if test "x$as_myself" = x; then
14141 as_myself=$0
14143 if test ! -f "$as_myself"; then
14144 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14145 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14146 { (exit 1); exit 1; }; }
14148 case $CONFIG_SHELL in
14150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14151 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14153 IFS=$as_save_IFS
14154 test -z "$as_dir" && as_dir=.
14155 for as_base in sh bash ksh sh5; do
14156 case $as_dir in
14158 if ("$as_dir/$as_base" -c '
14159 as_lineno_1=$LINENO
14160 as_lineno_2=$LINENO
14161 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14162 test "x$as_lineno_1" != "x$as_lineno_2" &&
14163 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14164 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14165 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14166 CONFIG_SHELL=$as_dir/$as_base
14167 export CONFIG_SHELL
14168 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14169 fi;;
14170 esac
14171 done
14172 done
14174 esac
14176 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14177 # uniformly replaced by the line number. The first 'sed' inserts a
14178 # line-number line before each line; the second 'sed' does the real
14179 # work. The second script uses 'N' to pair each line-number line
14180 # with the numbered line, and appends trailing '-' during
14181 # substitution so that $LINENO is not a special case at line end.
14182 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14183 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14184 sed '=' <$as_myself |
14185 sed '
14187 s,$,-,
14188 : loop
14189 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14190 t loop
14191 s,-$,,
14192 s,^['$as_cr_digits']*\n,,
14193 ' >$as_me.lineno &&
14194 chmod +x $as_me.lineno ||
14195 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14196 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14197 { (exit 1); exit 1; }; }
14199 # Don't try to exec as it changes $[0], causing all sort of problems
14200 # (the dirname of $[0] is not the place where we might find the
14201 # original and so on. Autoconf is especially sensible to this).
14202 . ./$as_me.lineno
14203 # Exit status is that of the last command.
14204 exit
14208 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14209 *c*,-n*) ECHO_N= ECHO_C='
14210 ' ECHO_T=' ' ;;
14211 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14212 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14213 esac
14215 if expr a : '\(a\)' >/dev/null 2>&1; then
14216 as_expr=expr
14217 else
14218 as_expr=false
14221 rm -f conf$$ conf$$.exe conf$$.file
14222 echo >conf$$.file
14223 if ln -s conf$$.file conf$$ 2>/dev/null; then
14224 # We could just check for DJGPP; but this test a) works b) is more generic
14225 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14226 if test -f conf$$.exe; then
14227 # Don't use ln at all; we don't have any links
14228 as_ln_s='cp -p'
14229 else
14230 as_ln_s='ln -s'
14232 elif ln conf$$.file conf$$ 2>/dev/null; then
14233 as_ln_s=ln
14234 else
14235 as_ln_s='cp -p'
14237 rm -f conf$$ conf$$.exe conf$$.file
14239 if mkdir -p . 2>/dev/null; then
14240 as_mkdir_p=:
14241 else
14242 as_mkdir_p=false
14245 as_executable_p="test -f"
14247 # Sed expression to map a string onto a valid CPP name.
14248 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14250 # Sed expression to map a string onto a valid variable name.
14251 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14254 # IFS
14255 # We need space, tab and new line, in precisely that order.
14256 as_nl='
14258 IFS=" $as_nl"
14260 # CDPATH.
14261 $as_unset CDPATH
14263 exec 6>&1
14265 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14266 # report actual input values of CONFIG_FILES etc. instead of their
14267 # values after options handling. Logging --version etc. is OK.
14268 exec 5>>config.log
14270 echo
14271 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14272 ## Running $as_me. ##
14273 _ASBOX
14274 } >&5
14275 cat >&5 <<_CSEOF
14277 This file was extended by Wine $as_me 20021219, which was
14278 generated by GNU Autoconf 2.54. Invocation command line was
14280 CONFIG_FILES = $CONFIG_FILES
14281 CONFIG_HEADERS = $CONFIG_HEADERS
14282 CONFIG_LINKS = $CONFIG_LINKS
14283 CONFIG_COMMANDS = $CONFIG_COMMANDS
14284 $ $0 $@
14286 _CSEOF
14287 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14288 echo >&5
14289 _ACEOF
14291 # Files that config.status was made for.
14292 if test -n "$ac_config_files"; then
14293 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14296 if test -n "$ac_config_headers"; then
14297 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14300 if test -n "$ac_config_links"; then
14301 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14304 if test -n "$ac_config_commands"; then
14305 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14308 cat >>$CONFIG_STATUS <<\_ACEOF
14310 ac_cs_usage="\
14311 \`$as_me' instantiates files from templates according to the
14312 current configuration.
14314 Usage: $0 [OPTIONS] [FILE]...
14316 -h, --help print this help, then exit
14317 -V, --version print version number, then exit
14318 -d, --debug don't remove temporary files
14319 --recheck update $as_me by reconfiguring in the same conditions
14320 --file=FILE[:TEMPLATE]
14321 instantiate the configuration file FILE
14322 --header=FILE[:TEMPLATE]
14323 instantiate the configuration header FILE
14325 Configuration files:
14326 $config_files
14328 Configuration headers:
14329 $config_headers
14331 Configuration commands:
14332 $config_commands
14334 Report bugs to <bug-autoconf@gnu.org>."
14335 _ACEOF
14337 cat >>$CONFIG_STATUS <<_ACEOF
14338 ac_cs_version="\\
14339 Wine config.status 20021219
14340 configured by $0, generated by GNU Autoconf 2.54,
14341 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14343 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14344 Free Software Foundation, Inc.
14345 This config.status script is free software; the Free Software Foundation
14346 gives unlimited permission to copy, distribute and modify it."
14347 srcdir=$srcdir
14348 INSTALL="$INSTALL"
14349 _ACEOF
14351 cat >>$CONFIG_STATUS <<\_ACEOF
14352 # If no file are specified by the user, then we need to provide default
14353 # value. By we need to know if files were specified by the user.
14354 ac_need_defaults=:
14355 while test $# != 0
14357 case $1 in
14358 --*=*)
14359 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14360 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14361 ac_shift=:
14364 ac_option=$1
14365 ac_optarg=$2
14366 ac_shift=shift
14368 *) # This is not an option, so the user has probably given explicit
14369 # arguments.
14370 ac_option=$1
14371 ac_need_defaults=false;;
14372 esac
14374 case $ac_option in
14375 # Handling of the options.
14376 _ACEOF
14377 cat >>$CONFIG_STATUS <<_ACEOF
14378 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14379 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14380 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
14381 _ACEOF
14382 cat >>$CONFIG_STATUS <<\_ACEOF
14383 --version | --vers* | -V )
14384 echo "$ac_cs_version"; exit 0 ;;
14385 --he | --h)
14386 # Conflict between --help and --header
14387 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14388 Try \`$0 --help' for more information." >&5
14389 echo "$as_me: error: ambiguous option: $1
14390 Try \`$0 --help' for more information." >&2;}
14391 { (exit 1); exit 1; }; };;
14392 --help | --hel | -h )
14393 echo "$ac_cs_usage"; exit 0 ;;
14394 --debug | --d* | -d )
14395 debug=: ;;
14396 --file | --fil | --fi | --f )
14397 $ac_shift
14398 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14399 ac_need_defaults=false;;
14400 --header | --heade | --head | --hea )
14401 $ac_shift
14402 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14403 ac_need_defaults=false;;
14405 # This is an error.
14406 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14407 Try \`$0 --help' for more information." >&5
14408 echo "$as_me: error: unrecognized option: $1
14409 Try \`$0 --help' for more information." >&2;}
14410 { (exit 1); exit 1; }; } ;;
14412 *) ac_config_targets="$ac_config_targets $1" ;;
14414 esac
14415 shift
14416 done
14418 _ACEOF
14424 cat >>$CONFIG_STATUS <<\_ACEOF
14425 for ac_config_target in $ac_config_targets
14427 case "$ac_config_target" in
14428 # Handling of arguments.
14429 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
14430 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
14431 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
14432 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
14433 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14434 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
14435 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
14436 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
14437 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
14438 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
14439 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
14440 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
14441 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
14442 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
14443 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
14444 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
14445 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
14446 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
14447 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
14448 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
14449 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
14450 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
14451 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
14452 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
14453 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
14454 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
14455 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
14456 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
14457 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
14458 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
14459 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
14460 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
14461 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
14462 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
14463 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
14464 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
14465 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
14466 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
14467 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
14468 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
14469 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
14470 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
14471 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
14472 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
14473 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
14474 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
14475 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
14476 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
14477 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
14478 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
14479 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
14480 "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
14481 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
14482 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
14483 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
14484 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
14485 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
14486 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
14487 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
14488 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
14489 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
14490 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
14491 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
14492 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
14493 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
14494 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
14495 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
14496 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
14497 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
14498 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
14499 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
14500 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
14501 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
14502 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
14503 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
14504 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
14505 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
14506 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
14507 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
14508 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
14509 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
14510 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
14511 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
14512 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
14513 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
14514 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
14515 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
14516 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
14517 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
14518 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
14519 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
14520 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
14521 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
14522 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
14523 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
14524 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
14525 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
14526 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
14527 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
14528 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
14529 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
14530 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
14531 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
14532 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
14533 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
14534 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
14535 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
14536 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
14537 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
14538 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
14539 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
14540 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
14541 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
14542 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
14543 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
14544 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
14545 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
14546 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
14547 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
14548 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
14549 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
14550 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
14551 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
14552 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14553 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
14554 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
14555 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
14556 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
14557 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
14558 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
14559 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
14560 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
14561 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
14562 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
14563 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
14564 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
14565 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
14566 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
14567 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
14568 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
14569 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
14570 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
14571 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
14572 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
14573 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
14574 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
14575 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
14576 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
14577 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
14578 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
14579 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
14580 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
14581 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
14582 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14583 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
14584 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
14585 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
14586 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
14587 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
14588 "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
14589 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
14590 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
14591 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
14592 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
14593 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
14594 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
14595 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
14596 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
14597 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
14598 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
14599 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
14600 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
14601 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
14602 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
14603 "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
14604 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
14605 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
14606 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
14607 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
14608 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
14609 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
14610 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
14611 "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
14612 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
14613 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
14614 "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
14615 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
14616 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
14617 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
14618 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
14619 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
14620 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
14621 "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
14622 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
14623 "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
14624 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
14625 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
14626 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14627 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14628 { (exit 1); exit 1; }; };;
14629 esac
14630 done
14632 # If the user did not use the arguments to specify the items to instantiate,
14633 # then the envvar interface is used. Set only those that are not.
14634 # We use the long form for the default assignment because of an extremely
14635 # bizarre bug on SunOS 4.1.3.
14636 if $ac_need_defaults; then
14637 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14638 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14639 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14642 # Create a temporary directory, and hook for its removal unless debugging.
14643 $debug ||
14645 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14646 trap '{ (exit 1); exit 1; }' 1 2 13 15
14649 # Create a (secure) tmp directory for tmp files.
14650 : ${TMPDIR=/tmp}
14652 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14653 test -n "$tmp" && test -d "$tmp"
14654 } ||
14656 tmp=$TMPDIR/cs$$-$RANDOM
14657 (umask 077 && mkdir $tmp)
14658 } ||
14660 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14661 { (exit 1); exit 1; }
14664 _ACEOF
14666 cat >>$CONFIG_STATUS <<_ACEOF
14669 # CONFIG_FILES section.
14672 # No need to generate the scripts if there are no CONFIG_FILES.
14673 # This happens for instance when ./config.status config.h
14674 if test -n "\$CONFIG_FILES"; then
14675 # Protect against being on the right side of a sed subst in config.status.
14676 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14677 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14678 s,@SHELL@,$SHELL,;t t
14679 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14680 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14681 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14682 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14683 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14684 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14685 s,@exec_prefix@,$exec_prefix,;t t
14686 s,@prefix@,$prefix,;t t
14687 s,@program_transform_name@,$program_transform_name,;t t
14688 s,@bindir@,$bindir,;t t
14689 s,@sbindir@,$sbindir,;t t
14690 s,@libexecdir@,$libexecdir,;t t
14691 s,@datadir@,$datadir,;t t
14692 s,@sysconfdir@,$sysconfdir,;t t
14693 s,@sharedstatedir@,$sharedstatedir,;t t
14694 s,@localstatedir@,$localstatedir,;t t
14695 s,@libdir@,$libdir,;t t
14696 s,@includedir@,$includedir,;t t
14697 s,@oldincludedir@,$oldincludedir,;t t
14698 s,@infodir@,$infodir,;t t
14699 s,@mandir@,$mandir,;t t
14700 s,@build_alias@,$build_alias,;t t
14701 s,@host_alias@,$host_alias,;t t
14702 s,@target_alias@,$target_alias,;t t
14703 s,@DEFS@,$DEFS,;t t
14704 s,@ECHO_C@,$ECHO_C,;t t
14705 s,@ECHO_N@,$ECHO_N,;t t
14706 s,@ECHO_T@,$ECHO_T,;t t
14707 s,@LIBS@,$LIBS,;t t
14708 s,@OPTIONS@,$OPTIONS,;t t
14709 s,@WIN16_FILES@,$WIN16_FILES,;t t
14710 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
14711 s,@build@,$build,;t t
14712 s,@build_cpu@,$build_cpu,;t t
14713 s,@build_vendor@,$build_vendor,;t t
14714 s,@build_os@,$build_os,;t t
14715 s,@host@,$host,;t t
14716 s,@host_cpu@,$host_cpu,;t t
14717 s,@host_vendor@,$host_vendor,;t t
14718 s,@host_os@,$host_os,;t t
14719 s,@SET_MAKE@,$SET_MAKE,;t t
14720 s,@CC@,$CC,;t t
14721 s,@CFLAGS@,$CFLAGS,;t t
14722 s,@LDFLAGS@,$LDFLAGS,;t t
14723 s,@CPPFLAGS@,$CPPFLAGS,;t t
14724 s,@ac_ct_CC@,$ac_ct_CC,;t t
14725 s,@EXEEXT@,$EXEEXT,;t t
14726 s,@OBJEXT@,$OBJEXT,;t t
14727 s,@CPP@,$CPP,;t t
14728 s,@TOOLSDIR@,$TOOLSDIR,;t t
14729 s,@X_CFLAGS@,$X_CFLAGS,;t t
14730 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
14731 s,@X_LIBS@,$X_LIBS,;t t
14732 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
14733 s,@YACC@,$YACC,;t t
14734 s,@LEX@,$LEX,;t t
14735 s,@LEXLIB@,$LEXLIB,;t t
14736 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14737 s,@XYACC@,$XYACC,;t t
14738 s,@XLEX@,$XLEX,;t t
14739 s,@LD@,$LD,;t t
14740 s,@ac_ct_LD@,$ac_ct_LD,;t t
14741 s,@AR@,$AR,;t t
14742 s,@ac_ct_AR@,$ac_ct_AR,;t t
14743 s,@RANLIB@,$RANLIB,;t t
14744 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14745 s,@STRIP@,$STRIP,;t t
14746 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14747 s,@WINDRES@,$WINDRES,;t t
14748 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
14749 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14750 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14751 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14752 s,@LN_S@,$LN_S,;t t
14753 s,@LN@,$LN,;t t
14754 s,@C2MAN@,$C2MAN,;t t
14755 s,@LDCONFIG@,$LDCONFIG,;t t
14756 s,@LINT@,$LINT,;t t
14757 s,@LINTFLAGS@,$LINTFLAGS,;t t
14758 s,@DB2HTML@,$DB2HTML,;t t
14759 s,@DB2PDF@,$DB2PDF,;t t
14760 s,@DB2PS@,$DB2PS,;t t
14761 s,@JPEGLIB@,$JPEGLIB,;t t
14762 s,@EGREP@,$EGREP,;t t
14763 s,@XLIB@,$XLIB,;t t
14764 s,@XFILES@,$XFILES,;t t
14765 s,@OPENGLFILES@,$OPENGLFILES,;t t
14766 s,@GLU32FILES@,$GLU32FILES,;t t
14767 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
14768 s,@NASLIBS@,$NASLIBS,;t t
14769 s,@CURSESLIBS@,$CURSESLIBS,;t t
14770 s,@sane_devel@,$sane_devel,;t t
14771 s,@SANELIBS@,$SANELIBS,;t t
14772 s,@SANEINCL@,$SANEINCL,;t t
14773 s,@ft_devel@,$ft_devel,;t t
14774 s,@ft_devel2@,$ft_devel2,;t t
14775 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
14776 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
14777 s,@ARTSLIBS@,$ARTSLIBS,;t t
14778 s,@ARTSINCL@,$ARTSINCL,;t t
14779 s,@ALSALIBS@,$ALSALIBS,;t t
14780 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
14781 s,@DLLEXT@,$DLLEXT,;t t
14782 s,@DLLFLAGS@,$DLLFLAGS,;t t
14783 s,@DLLIBS@,$DLLIBS,;t t
14784 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
14785 s,@LDSHARED@,$LDSHARED,;t t
14786 s,@LIBEXT@,$LIBEXT,;t t
14787 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
14788 s,@DLLTOOL@,$DLLTOOL,;t t
14789 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
14790 s,@DLLWRAP@,$DLLWRAP,;t t
14791 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
14792 s,@CROSSTEST@,$CROSSTEST,;t t
14793 s,@CROSSCC@,$CROSSCC,;t t
14794 s,@LDPATH@,$LDPATH,;t t
14795 s,@CRTLIBS@,$CRTLIBS,;t t
14796 s,@LDD@,$LDD,;t t
14797 s,@ALLOCA@,$ALLOCA,;t t
14798 s,@LIBOBJS@,$LIBOBJS,;t t
14799 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14800 /@MAKE_RULES@/r $MAKE_RULES
14801 s,@MAKE_RULES@,,;t t
14802 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
14803 s,@MAKE_DLL_RULES@,,;t t
14804 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
14805 s,@MAKE_TEST_RULES@,,;t t
14806 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
14807 s,@MAKE_PROG_RULES@,,;t t
14808 CEOF
14810 _ACEOF
14812 cat >>$CONFIG_STATUS <<\_ACEOF
14813 # Split the substitutions into bite-sized pieces for seds with
14814 # small command number limits, like on Digital OSF/1 and HP-UX.
14815 ac_max_sed_lines=48
14816 ac_sed_frag=1 # Number of current file.
14817 ac_beg=1 # First line for current file.
14818 ac_end=$ac_max_sed_lines # Line after last line for current file.
14819 ac_more_lines=:
14820 ac_sed_cmds=
14821 while $ac_more_lines; do
14822 if test $ac_beg -gt 1; then
14823 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14824 else
14825 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14827 if test ! -s $tmp/subs.frag; then
14828 ac_more_lines=false
14829 else
14830 # The purpose of the label and of the branching condition is to
14831 # speed up the sed processing (if there are no `@' at all, there
14832 # is no need to browse any of the substitutions).
14833 # These are the two extra sed commands mentioned above.
14834 (echo ':t
14835 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14836 if test -z "$ac_sed_cmds"; then
14837 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14838 else
14839 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14841 ac_sed_frag=`expr $ac_sed_frag + 1`
14842 ac_beg=$ac_end
14843 ac_end=`expr $ac_end + $ac_max_sed_lines`
14845 done
14846 if test -z "$ac_sed_cmds"; then
14847 ac_sed_cmds=cat
14849 fi # test -n "$CONFIG_FILES"
14851 _ACEOF
14852 cat >>$CONFIG_STATUS <<\_ACEOF
14853 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14854 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14855 case $ac_file in
14856 - | *:- | *:-:* ) # input from stdin
14857 cat >$tmp/stdin
14858 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14859 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14860 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14861 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14862 * ) ac_file_in=$ac_file.in ;;
14863 esac
14865 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14866 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14867 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14868 X"$ac_file" : 'X\(//\)[^/]' \| \
14869 X"$ac_file" : 'X\(//\)$' \| \
14870 X"$ac_file" : 'X\(/\)' \| \
14871 . : '\(.\)' 2>/dev/null ||
14872 echo X"$ac_file" |
14873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14875 /^X\(\/\/\)$/{ s//\1/; q; }
14876 /^X\(\/\).*/{ s//\1/; q; }
14877 s/.*/./; q'`
14878 { if $as_mkdir_p; then
14879 mkdir -p "$ac_dir"
14880 else
14881 as_dir="$ac_dir"
14882 as_dirs=
14883 while test ! -d "$as_dir"; do
14884 as_dirs="$as_dir $as_dirs"
14885 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14886 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14887 X"$as_dir" : 'X\(//\)[^/]' \| \
14888 X"$as_dir" : 'X\(//\)$' \| \
14889 X"$as_dir" : 'X\(/\)' \| \
14890 . : '\(.\)' 2>/dev/null ||
14891 echo X"$as_dir" |
14892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14893 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14894 /^X\(\/\/\)$/{ s//\1/; q; }
14895 /^X\(\/\).*/{ s//\1/; q; }
14896 s/.*/./; q'`
14897 done
14898 test ! -n "$as_dirs" || mkdir $as_dirs
14899 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14900 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14901 { (exit 1); exit 1; }; }; }
14903 ac_builddir=.
14905 if test "$ac_dir" != .; then
14906 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14907 # A "../" for each directory in $ac_dir_suffix.
14908 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14909 else
14910 ac_dir_suffix= ac_top_builddir=
14913 case $srcdir in
14914 .) # No --srcdir option. We are building in place.
14915 ac_srcdir=.
14916 if test -z "$ac_top_builddir"; then
14917 ac_top_srcdir=.
14918 else
14919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14920 fi ;;
14921 [\\/]* | ?:[\\/]* ) # Absolute path.
14922 ac_srcdir=$srcdir$ac_dir_suffix;
14923 ac_top_srcdir=$srcdir ;;
14924 *) # Relative path.
14925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14927 esac
14928 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14929 # absolute.
14930 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14931 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
14932 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14933 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14936 case $INSTALL in
14937 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14938 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14939 esac
14941 if test x"$ac_file" != x-; then
14942 { echo "$as_me:$LINENO: creating $ac_file" >&5
14943 echo "$as_me: creating $ac_file" >&6;}
14944 rm -f "$ac_file"
14946 # Let's still pretend it is `configure' which instantiates (i.e., don't
14947 # use $as_me), people would be surprised to read:
14948 # /* config.h. Generated by config.status. */
14949 if test x"$ac_file" = x-; then
14950 configure_input=
14951 else
14952 configure_input="$ac_file. "
14954 configure_input=$configure_input"Generated from `echo $ac_file_in |
14955 sed 's,.*/,,'` by configure."
14957 # First look for the input files in the build tree, otherwise in the
14958 # src tree.
14959 ac_file_inputs=`IFS=:
14960 for f in $ac_file_in; do
14961 case $f in
14962 -) echo $tmp/stdin ;;
14963 [\\/$]*)
14964 # Absolute (can't be DOS-style, as IFS=:)
14965 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14966 echo "$as_me: error: cannot find input file: $f" >&2;}
14967 { (exit 1); exit 1; }; }
14968 echo $f;;
14969 *) # Relative
14970 if test -f "$f"; then
14971 # Build tree
14972 echo $f
14973 elif test -f "$srcdir/$f"; then
14974 # Source tree
14975 echo $srcdir/$f
14976 else
14977 # /dev/null tree
14978 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14979 echo "$as_me: error: cannot find input file: $f" >&2;}
14980 { (exit 1); exit 1; }; }
14981 fi;;
14982 esac
14983 done` || { (exit 1); exit 1; }
14984 _ACEOF
14985 cat >>$CONFIG_STATUS <<_ACEOF
14986 sed "$ac_vpsub
14987 $extrasub
14988 _ACEOF
14989 cat >>$CONFIG_STATUS <<\_ACEOF
14991 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14992 s,@configure_input@,$configure_input,;t t
14993 s,@srcdir@,$ac_srcdir,;t t
14994 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14995 s,@top_srcdir@,$ac_top_srcdir,;t t
14996 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14997 s,@builddir@,$ac_builddir,;t t
14998 s,@abs_builddir@,$ac_abs_builddir,;t t
14999 s,@top_builddir@,$ac_top_builddir,;t t
15000 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15001 s,@INSTALL@,$ac_INSTALL,;t t
15002 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15003 rm -f $tmp/stdin
15004 if test x"$ac_file" != x-; then
15005 mv $tmp/out $ac_file
15006 else
15007 cat $tmp/out
15008 rm -f $tmp/out
15011 done
15012 _ACEOF
15013 cat >>$CONFIG_STATUS <<\_ACEOF
15016 # CONFIG_HEADER section.
15019 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15020 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15022 # ac_d sets the value in "#define NAME VALUE" lines.
15023 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15024 ac_dB='[ ].*$,\1#\2'
15025 ac_dC=' '
15026 ac_dD=',;t'
15027 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15028 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15029 ac_uB='$,\1#\2define\3'
15030 ac_uC=' '
15031 ac_uD=',;t'
15033 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15034 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15035 case $ac_file in
15036 - | *:- | *:-:* ) # input from stdin
15037 cat >$tmp/stdin
15038 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15039 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15040 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15041 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15042 * ) ac_file_in=$ac_file.in ;;
15043 esac
15045 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15046 echo "$as_me: creating $ac_file" >&6;}
15048 # First look for the input files in the build tree, otherwise in the
15049 # src tree.
15050 ac_file_inputs=`IFS=:
15051 for f in $ac_file_in; do
15052 case $f in
15053 -) echo $tmp/stdin ;;
15054 [\\/$]*)
15055 # Absolute (can't be DOS-style, as IFS=:)
15056 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15057 echo "$as_me: error: cannot find input file: $f" >&2;}
15058 { (exit 1); exit 1; }; }
15059 echo $f;;
15060 *) # Relative
15061 if test -f "$f"; then
15062 # Build tree
15063 echo $f
15064 elif test -f "$srcdir/$f"; then
15065 # Source tree
15066 echo $srcdir/$f
15067 else
15068 # /dev/null tree
15069 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15070 echo "$as_me: error: cannot find input file: $f" >&2;}
15071 { (exit 1); exit 1; }; }
15072 fi;;
15073 esac
15074 done` || { (exit 1); exit 1; }
15075 # Remove the trailing spaces.
15076 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15078 _ACEOF
15080 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15081 # `conftest.undefs', that substitutes the proper values into
15082 # config.h.in to produce config.h. The first handles `#define'
15083 # templates, and the second `#undef' templates.
15084 # And first: Protect against being on the right side of a sed subst in
15085 # config.status. Protect against being in an unquoted here document
15086 # in config.status.
15087 rm -f conftest.defines conftest.undefs
15088 # Using a here document instead of a string reduces the quoting nightmare.
15089 # Putting comments in sed scripts is not portable.
15091 # `end' is used to avoid that the second main sed command (meant for
15092 # 0-ary CPP macros) applies to n-ary macro definitions.
15093 # See the Autoconf documentation for `clear'.
15094 cat >confdef2sed.sed <<\_ACEOF
15095 s/[\\&,]/\\&/g
15096 s,[\\$`],\\&,g
15097 t clear
15098 : clear
15099 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15100 t end
15101 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15102 : end
15103 _ACEOF
15104 # If some macros were called several times there might be several times
15105 # the same #defines, which is useless. Nevertheless, we may not want to
15106 # sort them, since we want the *last* AC-DEFINE to be honored.
15107 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15108 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15109 rm -f confdef2sed.sed
15111 # This sed command replaces #undef with comments. This is necessary, for
15112 # example, in the case of _POSIX_SOURCE, which is predefined and required
15113 # on some systems where configure will not decide to define it.
15114 cat >>conftest.undefs <<\_ACEOF
15115 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15116 _ACEOF
15118 # Break up conftest.defines because some shells have a limit on the size
15119 # of here documents, and old seds have small limits too (100 cmds).
15120 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15121 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15122 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15123 echo ' :' >>$CONFIG_STATUS
15124 rm -f conftest.tail
15125 while grep . conftest.defines >/dev/null
15127 # Write a limited-size here document to $tmp/defines.sed.
15128 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15129 # Speed up: don't consider the non `#define' lines.
15130 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15131 # Work around the forget-to-reset-the-flag bug.
15132 echo 't clr' >>$CONFIG_STATUS
15133 echo ': clr' >>$CONFIG_STATUS
15134 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15135 echo 'CEOF
15136 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15137 rm -f $tmp/in
15138 mv $tmp/out $tmp/in
15139 ' >>$CONFIG_STATUS
15140 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15141 rm -f conftest.defines
15142 mv conftest.tail conftest.defines
15143 done
15144 rm -f conftest.defines
15145 echo ' fi # grep' >>$CONFIG_STATUS
15146 echo >>$CONFIG_STATUS
15148 # Break up conftest.undefs because some shells have a limit on the size
15149 # of here documents, and old seds have small limits too (100 cmds).
15150 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15151 rm -f conftest.tail
15152 while grep . conftest.undefs >/dev/null
15154 # Write a limited-size here document to $tmp/undefs.sed.
15155 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15156 # Speed up: don't consider the non `#undef'
15157 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15158 # Work around the forget-to-reset-the-flag bug.
15159 echo 't clr' >>$CONFIG_STATUS
15160 echo ': clr' >>$CONFIG_STATUS
15161 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15162 echo 'CEOF
15163 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15164 rm -f $tmp/in
15165 mv $tmp/out $tmp/in
15166 ' >>$CONFIG_STATUS
15167 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15168 rm -f conftest.undefs
15169 mv conftest.tail conftest.undefs
15170 done
15171 rm -f conftest.undefs
15173 cat >>$CONFIG_STATUS <<\_ACEOF
15174 # Let's still pretend it is `configure' which instantiates (i.e., don't
15175 # use $as_me), people would be surprised to read:
15176 # /* config.h. Generated by config.status. */
15177 if test x"$ac_file" = x-; then
15178 echo "/* Generated by configure. */" >$tmp/config.h
15179 else
15180 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15182 cat $tmp/in >>$tmp/config.h
15183 rm -f $tmp/in
15184 if test x"$ac_file" != x-; then
15185 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
15186 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15187 echo "$as_me: $ac_file is unchanged" >&6;}
15188 else
15189 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15190 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15191 X"$ac_file" : 'X\(//\)[^/]' \| \
15192 X"$ac_file" : 'X\(//\)$' \| \
15193 X"$ac_file" : 'X\(/\)' \| \
15194 . : '\(.\)' 2>/dev/null ||
15195 echo X"$ac_file" |
15196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15198 /^X\(\/\/\)$/{ s//\1/; q; }
15199 /^X\(\/\).*/{ s//\1/; q; }
15200 s/.*/./; q'`
15201 { if $as_mkdir_p; then
15202 mkdir -p "$ac_dir"
15203 else
15204 as_dir="$ac_dir"
15205 as_dirs=
15206 while test ! -d "$as_dir"; do
15207 as_dirs="$as_dir $as_dirs"
15208 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15209 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15210 X"$as_dir" : 'X\(//\)[^/]' \| \
15211 X"$as_dir" : 'X\(//\)$' \| \
15212 X"$as_dir" : 'X\(/\)' \| \
15213 . : '\(.\)' 2>/dev/null ||
15214 echo X"$as_dir" |
15215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15217 /^X\(\/\/\)$/{ s//\1/; q; }
15218 /^X\(\/\).*/{ s//\1/; q; }
15219 s/.*/./; q'`
15220 done
15221 test ! -n "$as_dirs" || mkdir $as_dirs
15222 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15223 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15224 { (exit 1); exit 1; }; }; }
15226 rm -f $ac_file
15227 mv $tmp/config.h $ac_file
15229 else
15230 cat $tmp/config.h
15231 rm -f $tmp/config.h
15233 done
15234 _ACEOF
15235 cat >>$CONFIG_STATUS <<\_ACEOF
15238 # CONFIG_COMMANDS section.
15240 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15241 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15242 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15243 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15244 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15245 X"$ac_dest" : 'X\(//\)[^/]' \| \
15246 X"$ac_dest" : 'X\(//\)$' \| \
15247 X"$ac_dest" : 'X\(/\)' \| \
15248 . : '\(.\)' 2>/dev/null ||
15249 echo X"$ac_dest" |
15250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15251 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15252 /^X\(\/\/\)$/{ s//\1/; q; }
15253 /^X\(\/\).*/{ s//\1/; q; }
15254 s/.*/./; q'`
15255 ac_builddir=.
15257 if test "$ac_dir" != .; then
15258 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15259 # A "../" for each directory in $ac_dir_suffix.
15260 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15261 else
15262 ac_dir_suffix= ac_top_builddir=
15265 case $srcdir in
15266 .) # No --srcdir option. We are building in place.
15267 ac_srcdir=.
15268 if test -z "$ac_top_builddir"; then
15269 ac_top_srcdir=.
15270 else
15271 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15272 fi ;;
15273 [\\/]* | ?:[\\/]* ) # Absolute path.
15274 ac_srcdir=$srcdir$ac_dir_suffix;
15275 ac_top_srcdir=$srcdir ;;
15276 *) # Relative path.
15277 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15278 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15279 esac
15280 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15281 # absolute.
15282 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15283 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
15284 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15285 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15288 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15289 echo "$as_me: executing $ac_dest commands" >&6;}
15290 case $ac_dest in
15291 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
15292 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
15293 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
15294 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
15295 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
15296 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
15297 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
15298 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
15299 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
15300 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
15301 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
15302 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
15303 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
15304 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
15305 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
15306 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
15307 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
15308 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
15309 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
15310 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
15311 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
15312 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
15313 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
15314 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
15315 dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
15316 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
15317 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
15318 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
15319 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
15320 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
15321 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
15322 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
15323 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
15324 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
15325 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
15326 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
15327 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
15328 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
15329 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
15330 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
15331 if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
15332 echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
15333 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
15334 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
15335 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
15336 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
15337 loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
15338 echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
15339 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
15340 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
15341 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
15342 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
15343 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
15344 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
15345 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
15346 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
15347 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
15348 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
15349 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
15350 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
15351 relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
15352 echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
15353 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
15354 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
15355 win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
15356 echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
15357 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
15358 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
15359 esac
15360 done
15361 _ACEOF
15363 cat >>$CONFIG_STATUS <<\_ACEOF
15365 { (exit 0); exit 0; }
15366 _ACEOF
15367 chmod +x $CONFIG_STATUS
15368 ac_clean_files=$ac_clean_files_save
15371 # configure is writing to config.log, and then calls config.status.
15372 # config.status does its own redirection, appending to config.log.
15373 # Unfortunately, on DOS this fails, as config.log is still kept open
15374 # by configure, so config.status won't be able to write to it; its
15375 # output is simply discarded. So we exec the FD to /dev/null,
15376 # effectively closing config.log, so it can be properly (re)opened and
15377 # appended to by config.status. When coming back to configure, we
15378 # need to make the FD available again.
15379 if test "$no_create" != yes; then
15380 ac_cs_success=:
15381 exec 5>/dev/null
15382 $SHELL $CONFIG_STATUS || ac_cs_success=false
15383 exec 5>>config.log
15384 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15385 # would make configure fail if this is the last instruction.
15386 $ac_cs_success || { (exit 1); exit 1; }
15390 if test "$have_x" = "no"
15391 then
15392 echo
15393 echo "*** Warning: X development files not found. Wine will be built without"
15394 echo "*** X support, which currently does not work, and would probably not be"
15395 echo "*** what you want anyway. You will need to install devel packages of"
15396 echo "*** Xlib/Xfree86 at the very least."
15399 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
15400 then
15401 echo
15402 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
15403 echo "*** terminal resize support. Consider upgrading ncurses."
15406 if test "$wine_cv_libc_reentrant" = "no"
15407 then
15408 echo
15409 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
15410 echo "*** threading support. Consider upgrading libc to a more recent"
15411 echo "*** reentrant version of libc."
15414 if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
15415 then
15416 echo
15417 echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
15418 echo "*** applications won't work properly. You should upgrade your X11 library."
15421 if test "$wine_cv_opengl_version_OK" = "no"
15422 then
15423 echo
15424 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
15425 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
15428 if test "$wine_cv_msg_freetype" = "yes"
15429 then
15430 echo
15431 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
15432 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
15433 echo "*** freetype-devel package (or its equivalent on your distribution) to"
15434 echo "*** enable Wine to use TrueType fonts."
15437 echo
15438 echo "Configure finished. Do 'make depend && make' to compile Wine."
15439 echo