Fixed buffer overflow.
[wine/gsoc_dplay.git] / configure
bloba3409bab6327d2c19a713918903534d80cbb9621
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for Wine 20031016.
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 \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME='Wine'
268 PACKAGE_TARNAME='wine'
269 PACKAGE_VERSION='20031016'
270 PACKAGE_STRING='Wine 20031016'
271 PACKAGE_BUGREPORT=''
273 ac_unique_file="server/atom.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS WIN16_FILES WIN16_INSTALL MAIN_BINARY build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT LIBPTHREAD JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLL LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS'
312 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 ac_prev=
353 for ac_option
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 esac
649 done
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
724 else
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780 \`configure' configures Wine 20031016 to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
789 Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800 _ACEOF
802 cat <<_ACEOF
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829 _ACEOF
831 cat <<\_ACEOF
833 X features:
834 --x-includes=DIR X include files are in DIR
835 --x-libraries=DIR X library files are in DIR
837 System types:
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
840 _ACEOF
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of Wine 20031016:";;
846 esac
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-win16 do not include Win16 support
853 --disable-debug compile out all debugging messages
854 --disable-trace compile out TRACE messages
856 Optional Packages:
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
859 --without-opengl do not use OpenGL
860 --without-curses do not use curses
861 --with-nptl use glibc NPTL threading support
862 --with-wine-tools=<dir> use Wine tools from directory <dir>
863 --with-x use the X Window System
865 Some influential environment variables:
866 CC C compiler command
867 CFLAGS C compiler flags
868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
869 nonstandard directory <lib dir>
870 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
871 headers in a nonstandard directory <include dir>
872 CPP C preprocessor
874 Use these variables to override the choices made by `configure' or to help
875 it to find libraries and programs with nonstandard names/locations.
877 _ACEOF
880 if test "$ac_init_help" = "recursive"; then
881 # If there are subdirs, report their specific --help.
882 ac_popdir=`pwd`
883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884 test -d $ac_dir || continue
885 ac_builddir=.
887 if test "$ac_dir" != .; then
888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889 # A "../" for each directory in $ac_dir_suffix.
890 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
891 else
892 ac_dir_suffix= ac_top_builddir=
895 case $srcdir in
896 .) # No --srcdir option. We are building in place.
897 ac_srcdir=.
898 if test -z "$ac_top_builddir"; then
899 ac_top_srcdir=.
900 else
901 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
902 fi ;;
903 [\\/]* | ?:[\\/]* ) # Absolute path.
904 ac_srcdir=$srcdir$ac_dir_suffix;
905 ac_top_srcdir=$srcdir ;;
906 *) # Relative path.
907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908 ac_top_srcdir=$ac_top_builddir$srcdir ;;
909 esac
910 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
911 # absolute.
912 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
913 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
914 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
915 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
917 cd $ac_dir
918 # Check for guested configure; otherwise get Cygnus style configure.
919 if test -f $ac_srcdir/configure.gnu; then
920 echo
921 $SHELL $ac_srcdir/configure.gnu --help=recursive
922 elif test -f $ac_srcdir/configure; then
923 echo
924 $SHELL $ac_srcdir/configure --help=recursive
925 elif test -f $ac_srcdir/configure.ac ||
926 test -f $ac_srcdir/configure.in; then
927 echo
928 $ac_configure --help
929 else
930 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
932 cd "$ac_popdir"
933 done
936 test -n "$ac_init_help" && exit 0
937 if $ac_init_version; then
938 cat <<\_ACEOF
939 Wine configure 20031016
940 generated by GNU Autoconf 2.57
942 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
943 Free Software Foundation, Inc.
944 This configure script is free software; the Free Software Foundation
945 gives unlimited permission to copy, distribute and modify it.
946 _ACEOF
947 exit 0
949 exec 5>config.log
950 cat >&5 <<_ACEOF
951 This file contains any messages produced by compilers while
952 running configure, to aid debugging if configure makes a mistake.
954 It was created by Wine $as_me 20031016, which was
955 generated by GNU Autoconf 2.57. Invocation command line was
957 $ $0 $@
959 _ACEOF
961 cat <<_ASUNAME
962 ## --------- ##
963 ## Platform. ##
964 ## --------- ##
966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
973 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
975 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
976 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
978 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
979 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
980 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
981 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
983 _ASUNAME
985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
986 for as_dir in $PATH
988 IFS=$as_save_IFS
989 test -z "$as_dir" && as_dir=.
990 echo "PATH: $as_dir"
991 done
993 } >&5
995 cat >&5 <<_ACEOF
998 ## ----------- ##
999 ## Core tests. ##
1000 ## ----------- ##
1002 _ACEOF
1005 # Keep a trace of the command line.
1006 # Strip out --no-create and --no-recursion so they do not pile up.
1007 # Strip out --silent because we don't want to record it for future runs.
1008 # Also quote any args containing shell meta-characters.
1009 # Make two passes to allow for proper duplicate-argument suppression.
1010 ac_configure_args=
1011 ac_configure_args0=
1012 ac_configure_args1=
1013 ac_sep=
1014 ac_must_keep_next=false
1015 for ac_pass in 1 2
1017 for ac_arg
1019 case $ac_arg in
1020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022 | -silent | --silent | --silen | --sile | --sil)
1023 continue ;;
1024 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1025 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1026 esac
1027 case $ac_pass in
1028 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1030 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1031 if test $ac_must_keep_next = true; then
1032 ac_must_keep_next=false # Got value, back to normal.
1033 else
1034 case $ac_arg in
1035 *=* | --config-cache | -C | -disable-* | --disable-* \
1036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1038 | -with-* | --with-* | -without-* | --without-* | --x)
1039 case "$ac_configure_args0 " in
1040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1041 esac
1043 -* ) ac_must_keep_next=true ;;
1044 esac
1046 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1047 # Get rid of the leading space.
1048 ac_sep=" "
1050 esac
1051 done
1052 done
1053 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1054 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1056 # When interrupted or exit'd, cleanup temporary files, and complete
1057 # config.log. We remove comments because anyway the quotes in there
1058 # would cause problems or look ugly.
1059 # WARNING: Be sure not to use single quotes in there, as some shells,
1060 # such as our DU 5.0 friend, will then `close' the trap.
1061 trap 'exit_status=$?
1062 # Save into config.log some information that might help in debugging.
1064 echo
1066 cat <<\_ASBOX
1067 ## ---------------- ##
1068 ## Cache variables. ##
1069 ## ---------------- ##
1070 _ASBOX
1071 echo
1072 # The following way of writing the cache mishandles newlines in values,
1074 (set) 2>&1 |
1075 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1076 *ac_space=\ *)
1077 sed -n \
1078 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1082 sed -n \
1083 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1085 esac;
1087 echo
1089 cat <<\_ASBOX
1090 ## ----------------- ##
1091 ## Output variables. ##
1092 ## ----------------- ##
1093 _ASBOX
1094 echo
1095 for ac_var in $ac_subst_vars
1097 eval ac_val=$`echo $ac_var`
1098 echo "$ac_var='"'"'$ac_val'"'"'"
1099 done | sort
1100 echo
1102 if test -n "$ac_subst_files"; then
1103 cat <<\_ASBOX
1104 ## ------------- ##
1105 ## Output files. ##
1106 ## ------------- ##
1107 _ASBOX
1108 echo
1109 for ac_var in $ac_subst_files
1111 eval ac_val=$`echo $ac_var`
1112 echo "$ac_var='"'"'$ac_val'"'"'"
1113 done | sort
1114 echo
1117 if test -s confdefs.h; then
1118 cat <<\_ASBOX
1119 ## ----------- ##
1120 ## confdefs.h. ##
1121 ## ----------- ##
1122 _ASBOX
1123 echo
1124 sed "/^$/d" confdefs.h | sort
1125 echo
1127 test "$ac_signal" != 0 &&
1128 echo "$as_me: caught signal $ac_signal"
1129 echo "$as_me: exit $exit_status"
1130 } >&5
1131 rm -f core *.core &&
1132 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1133 exit $exit_status
1135 for ac_signal in 1 2 13 15; do
1136 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1137 done
1138 ac_signal=0
1140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1141 rm -rf conftest* confdefs.h
1142 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1143 echo >confdefs.h
1145 # Predefined preprocessor variables.
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_NAME "$PACKAGE_NAME"
1149 _ACEOF
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1154 _ACEOF
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1159 _ACEOF
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_STRING "$PACKAGE_STRING"
1164 _ACEOF
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1169 _ACEOF
1172 # Let the site file select an alternate cache file if it wants to.
1173 # Prefer explicitly selected file to automatically selected ones.
1174 if test -z "$CONFIG_SITE"; then
1175 if test "x$prefix" != xNONE; then
1176 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1177 else
1178 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1181 for ac_site_file in $CONFIG_SITE; do
1182 if test -r "$ac_site_file"; then
1183 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1184 echo "$as_me: loading site script $ac_site_file" >&6;}
1185 sed 's/^/| /' "$ac_site_file" >&5
1186 . "$ac_site_file"
1188 done
1190 if test -r "$cache_file"; then
1191 # Some versions of bash will fail to source /dev/null (special
1192 # files actually), so we avoid doing that.
1193 if test -f "$cache_file"; then
1194 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1195 echo "$as_me: loading cache $cache_file" >&6;}
1196 case $cache_file in
1197 [\\/]* | ?:[\\/]* ) . $cache_file;;
1198 *) . ./$cache_file;;
1199 esac
1201 else
1202 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1203 echo "$as_me: creating cache $cache_file" >&6;}
1204 >$cache_file
1207 # Check that the precious variables saved in the cache have kept the same
1208 # value.
1209 ac_cache_corrupted=false
1210 for ac_var in `(set) 2>&1 |
1211 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1213 eval ac_new_set=\$ac_env_${ac_var}_set
1214 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1215 eval ac_new_val="\$ac_env_${ac_var}_value"
1216 case $ac_old_set,$ac_new_set in
1217 set,)
1218 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1219 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1220 ac_cache_corrupted=: ;;
1221 ,set)
1222 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1223 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1224 ac_cache_corrupted=: ;;
1225 ,);;
1227 if test "x$ac_old_val" != "x$ac_new_val"; then
1228 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1229 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1230 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1231 echo "$as_me: former value: $ac_old_val" >&2;}
1232 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1233 echo "$as_me: current value: $ac_new_val" >&2;}
1234 ac_cache_corrupted=:
1235 fi;;
1236 esac
1237 # Pass precious variables to config.status.
1238 if test "$ac_new_set" = set; then
1239 case $ac_new_val in
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1242 *) ac_arg=$ac_var=$ac_new_val ;;
1243 esac
1244 case " $ac_configure_args " in
1245 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1246 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1247 esac
1249 done
1250 if $ac_cache_corrupted; then
1251 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1252 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1253 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1254 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1255 { (exit 1); exit 1; }; }
1258 ac_ext=c
1259 ac_cpp='$CPP $CPPFLAGS'
1260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1291 ac_config_headers="$ac_config_headers include/config.h"
1293 ac_aux_dir=
1294 for ac_dir in tools $srcdir/tools; do
1295 if test -f $ac_dir/install-sh; then
1296 ac_aux_dir=$ac_dir
1297 ac_install_sh="$ac_aux_dir/install-sh -c"
1298 break
1299 elif test -f $ac_dir/install.sh; then
1300 ac_aux_dir=$ac_dir
1301 ac_install_sh="$ac_aux_dir/install.sh -c"
1302 break
1303 elif test -f $ac_dir/shtool; then
1304 ac_aux_dir=$ac_dir
1305 ac_install_sh="$ac_aux_dir/shtool install -c"
1306 break
1308 done
1309 if test -z "$ac_aux_dir"; then
1310 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1311 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1312 { (exit 1); exit 1; }; }
1314 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1315 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1316 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1320 # Check whether --enable-win16 or --disable-win16 was given.
1321 if test "${enable_win16+set}" = set; then
1322 enableval="$enable_win16"
1325 # Check whether --enable-debug or --disable-debug was given.
1326 if test "${enable_debug+set}" = set; then
1327 enableval="$enable_debug"
1330 # Check whether --enable-trace or --disable-trace was given.
1331 if test "${enable_trace+set}" = set; then
1332 enableval="$enable_trace"
1337 # Check whether --with-opengl or --without-opengl was given.
1338 if test "${with_opengl+set}" = set; then
1339 withval="$with_opengl"
1343 # Check whether --with-curses or --without-curses was given.
1344 if test "${with_curses+set}" = set; then
1345 withval="$with_curses"
1349 # Check whether --with-nptl or --without-nptl was given.
1350 if test "${with_nptl+set}" = set; then
1351 withval="$with_nptl"
1355 # Check whether --with-wine-tools or --without-wine-tools was given.
1356 if test "${with_wine_tools+set}" = set; then
1357 withval="$with_wine_tools"
1361 WIN16_FILES="\$(WIN16_FILES)"
1363 WIN16_INSTALL="\$(WIN16_INSTALL)"
1365 if test "x$enable_win16" = "xno"
1366 then
1367 WIN16_FILES=""
1368 WIN16_INSTALL=""
1370 if test "x$enable_debug" = "xno"
1371 then
1373 cat >>confdefs.h <<\_ACEOF
1374 #define NO_DEBUG_MSGS 1
1375 _ACEOF
1378 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1379 then
1381 cat >>confdefs.h <<\_ACEOF
1382 #define NO_TRACE_MSGS 1
1383 _ACEOF
1386 if test "x$with_nptl" = "xyes"
1387 then
1388 MAIN_BINARY="wine-pthread"
1390 else
1391 MAIN_BINARY="wine-kthread"
1396 # Make sure we can run config.sub.
1397 $ac_config_sub sun4 >/dev/null 2>&1 ||
1398 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1399 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1400 { (exit 1); exit 1; }; }
1402 echo "$as_me:$LINENO: checking build system type" >&5
1403 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1404 if test "${ac_cv_build+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407 ac_cv_build_alias=$build_alias
1408 test -z "$ac_cv_build_alias" &&
1409 ac_cv_build_alias=`$ac_config_guess`
1410 test -z "$ac_cv_build_alias" &&
1411 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1412 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1413 { (exit 1); exit 1; }; }
1414 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1415 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1420 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1421 echo "${ECHO_T}$ac_cv_build" >&6
1422 build=$ac_cv_build
1423 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428 echo "$as_me:$LINENO: checking host system type" >&5
1429 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1430 if test "${ac_cv_host+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1432 else
1433 ac_cv_host_alias=$host_alias
1434 test -z "$ac_cv_host_alias" &&
1435 ac_cv_host_alias=$ac_cv_build_alias
1436 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1437 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1439 { (exit 1); exit 1; }; }
1442 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1443 echo "${ECHO_T}$ac_cv_host" >&6
1444 host=$ac_cv_host
1445 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1451 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1452 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1453 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1454 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 else
1456 cat >conftest.make <<\_ACEOF
1457 all:
1458 @echo 'ac_maketemp="$(MAKE)"'
1459 _ACEOF
1460 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1461 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1462 if test -n "$ac_maketemp"; then
1463 eval ac_cv_prog_make_${ac_make}_set=yes
1464 else
1465 eval ac_cv_prog_make_${ac_make}_set=no
1467 rm -f conftest.make
1469 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1470 echo "$as_me:$LINENO: result: yes" >&5
1471 echo "${ECHO_T}yes" >&6
1472 SET_MAKE=
1473 else
1474 echo "$as_me:$LINENO: result: no" >&5
1475 echo "${ECHO_T}no" >&6
1476 SET_MAKE="MAKE=${MAKE-make}"
1479 ac_ext=c
1480 ac_cpp='$CPP $CPPFLAGS'
1481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1484 if test -n "$ac_tool_prefix"; then
1485 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1486 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1487 echo "$as_me:$LINENO: checking for $ac_word" >&5
1488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1489 if test "${ac_cv_prog_CC+set}" = set; then
1490 echo $ECHO_N "(cached) $ECHO_C" >&6
1491 else
1492 if test -n "$CC"; then
1493 ac_cv_prog_CC="$CC" # Let the user override the test.
1494 else
1495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496 for as_dir in $PATH
1498 IFS=$as_save_IFS
1499 test -z "$as_dir" && as_dir=.
1500 for ac_exec_ext in '' $ac_executable_extensions; do
1501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1502 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1504 break 2
1506 done
1507 done
1511 CC=$ac_cv_prog_CC
1512 if test -n "$CC"; then
1513 echo "$as_me:$LINENO: result: $CC" >&5
1514 echo "${ECHO_T}$CC" >&6
1515 else
1516 echo "$as_me:$LINENO: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1521 if test -z "$ac_cv_prog_CC"; then
1522 ac_ct_CC=$CC
1523 # Extract the first word of "gcc", so it can be a program name with args.
1524 set dummy gcc; ac_word=$2
1525 echo "$as_me:$LINENO: checking for $ac_word" >&5
1526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1527 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1529 else
1530 if test -n "$ac_ct_CC"; then
1531 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1532 else
1533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1534 for as_dir in $PATH
1536 IFS=$as_save_IFS
1537 test -z "$as_dir" && as_dir=.
1538 for ac_exec_ext in '' $ac_executable_extensions; do
1539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1540 ac_cv_prog_ac_ct_CC="gcc"
1541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542 break 2
1544 done
1545 done
1549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1550 if test -n "$ac_ct_CC"; then
1551 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1552 echo "${ECHO_T}$ac_ct_CC" >&6
1553 else
1554 echo "$as_me:$LINENO: result: no" >&5
1555 echo "${ECHO_T}no" >&6
1558 CC=$ac_ct_CC
1559 else
1560 CC="$ac_cv_prog_CC"
1563 if test -z "$CC"; then
1564 if test -n "$ac_tool_prefix"; then
1565 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1566 set dummy ${ac_tool_prefix}cc; ac_word=$2
1567 echo "$as_me:$LINENO: checking for $ac_word" >&5
1568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569 if test "${ac_cv_prog_CC+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 else
1572 if test -n "$CC"; then
1573 ac_cv_prog_CC="$CC" # Let the user override the test.
1574 else
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 for as_dir in $PATH
1578 IFS=$as_save_IFS
1579 test -z "$as_dir" && as_dir=.
1580 for ac_exec_ext in '' $ac_executable_extensions; do
1581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582 ac_cv_prog_CC="${ac_tool_prefix}cc"
1583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584 break 2
1586 done
1587 done
1591 CC=$ac_cv_prog_CC
1592 if test -n "$CC"; then
1593 echo "$as_me:$LINENO: result: $CC" >&5
1594 echo "${ECHO_T}$CC" >&6
1595 else
1596 echo "$as_me:$LINENO: result: no" >&5
1597 echo "${ECHO_T}no" >&6
1601 if test -z "$ac_cv_prog_CC"; then
1602 ac_ct_CC=$CC
1603 # Extract the first word of "cc", so it can be a program name with args.
1604 set dummy cc; ac_word=$2
1605 echo "$as_me:$LINENO: checking for $ac_word" >&5
1606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1607 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1609 else
1610 if test -n "$ac_ct_CC"; then
1611 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1612 else
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 for as_dir in $PATH
1616 IFS=$as_save_IFS
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 ac_cv_prog_ac_ct_CC="cc"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 break 2
1624 done
1625 done
1629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1630 if test -n "$ac_ct_CC"; then
1631 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1632 echo "${ECHO_T}$ac_ct_CC" >&6
1633 else
1634 echo "$as_me:$LINENO: result: no" >&5
1635 echo "${ECHO_T}no" >&6
1638 CC=$ac_ct_CC
1639 else
1640 CC="$ac_cv_prog_CC"
1644 if test -z "$CC"; then
1645 # Extract the first word of "cc", so it can be a program name with args.
1646 set dummy cc; ac_word=$2
1647 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649 if test "${ac_cv_prog_CC+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1651 else
1652 if test -n "$CC"; then
1653 ac_cv_prog_CC="$CC" # Let the user override the test.
1654 else
1655 ac_prog_rejected=no
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 for as_dir in $PATH
1659 IFS=$as_save_IFS
1660 test -z "$as_dir" && as_dir=.
1661 for ac_exec_ext in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1664 ac_prog_rejected=yes
1665 continue
1667 ac_cv_prog_CC="cc"
1668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669 break 2
1671 done
1672 done
1674 if test $ac_prog_rejected = yes; then
1675 # We found a bogon in the path, so make sure we never use it.
1676 set dummy $ac_cv_prog_CC
1677 shift
1678 if test $# != 0; then
1679 # We chose a different compiler from the bogus one.
1680 # However, it has the same basename, so the bogon will be chosen
1681 # first if we set CC to just the basename; use the full file name.
1682 shift
1683 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1688 CC=$ac_cv_prog_CC
1689 if test -n "$CC"; then
1690 echo "$as_me:$LINENO: result: $CC" >&5
1691 echo "${ECHO_T}$CC" >&6
1692 else
1693 echo "$as_me:$LINENO: result: no" >&5
1694 echo "${ECHO_T}no" >&6
1698 if test -z "$CC"; then
1699 if test -n "$ac_tool_prefix"; then
1700 for ac_prog in cl
1702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1703 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1704 echo "$as_me:$LINENO: checking for $ac_word" >&5
1705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1706 if test "${ac_cv_prog_CC+set}" = set; then
1707 echo $ECHO_N "(cached) $ECHO_C" >&6
1708 else
1709 if test -n "$CC"; then
1710 ac_cv_prog_CC="$CC" # Let the user override the test.
1711 else
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 for as_dir in $PATH
1715 IFS=$as_save_IFS
1716 test -z "$as_dir" && as_dir=.
1717 for ac_exec_ext in '' $ac_executable_extensions; do
1718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1719 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 break 2
1723 done
1724 done
1728 CC=$ac_cv_prog_CC
1729 if test -n "$CC"; then
1730 echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1732 else
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1737 test -n "$CC" && break
1738 done
1740 if test -z "$CC"; then
1741 ac_ct_CC=$CC
1742 for ac_prog in cl
1744 # Extract the first word of "$ac_prog", so it can be a program name with args.
1745 set dummy $ac_prog; ac_word=$2
1746 echo "$as_me:$LINENO: checking for $ac_word" >&5
1747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1749 echo $ECHO_N "(cached) $ECHO_C" >&6
1750 else
1751 if test -n "$ac_ct_CC"; then
1752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1753 else
1754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 for as_dir in $PATH
1757 IFS=$as_save_IFS
1758 test -z "$as_dir" && as_dir=.
1759 for ac_exec_ext in '' $ac_executable_extensions; do
1760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761 ac_cv_prog_ac_ct_CC="$ac_prog"
1762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763 break 2
1765 done
1766 done
1770 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1771 if test -n "$ac_ct_CC"; then
1772 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1773 echo "${ECHO_T}$ac_ct_CC" >&6
1774 else
1775 echo "$as_me:$LINENO: result: no" >&5
1776 echo "${ECHO_T}no" >&6
1779 test -n "$ac_ct_CC" && break
1780 done
1782 CC=$ac_ct_CC
1788 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1789 See \`config.log' for more details." >&5
1790 echo "$as_me: error: no acceptable C compiler found in \$PATH
1791 See \`config.log' for more details." >&2;}
1792 { (exit 1); exit 1; }; }
1794 # Provide some information about the compiler.
1795 echo "$as_me:$LINENO:" \
1796 "checking for C compiler version" >&5
1797 ac_compiler=`set X $ac_compile; echo $2`
1798 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1799 (eval $ac_compiler --version </dev/null >&5) 2>&5
1800 ac_status=$?
1801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1802 (exit $ac_status); }
1803 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1804 (eval $ac_compiler -v </dev/null >&5) 2>&5
1805 ac_status=$?
1806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1807 (exit $ac_status); }
1808 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1809 (eval $ac_compiler -V </dev/null >&5) 2>&5
1810 ac_status=$?
1811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1812 (exit $ac_status); }
1814 cat >conftest.$ac_ext <<_ACEOF
1815 #line $LINENO "configure"
1816 /* confdefs.h. */
1817 _ACEOF
1818 cat confdefs.h >>conftest.$ac_ext
1819 cat >>conftest.$ac_ext <<_ACEOF
1820 /* end confdefs.h. */
1823 main ()
1827 return 0;
1829 _ACEOF
1830 ac_clean_files_save=$ac_clean_files
1831 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1832 # Try to create an executable without -o first, disregard a.out.
1833 # It will help us diagnose broken compilers, and finding out an intuition
1834 # of exeext.
1835 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1836 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1837 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1838 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1839 (eval $ac_link_default) 2>&5
1840 ac_status=$?
1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842 (exit $ac_status); }; then
1843 # Find the output, starting from the most likely. This scheme is
1844 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1845 # resort.
1847 # Be careful to initialize this variable, since it used to be cached.
1848 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1849 ac_cv_exeext=
1850 # b.out is created by i960 compilers.
1851 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1853 test -f "$ac_file" || continue
1854 case $ac_file in
1855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1857 conftest.$ac_ext )
1858 # This is the source file.
1860 [ab].out )
1861 # We found the default executable, but exeext='' is most
1862 # certainly right.
1863 break;;
1864 *.* )
1865 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1866 # FIXME: I believe we export ac_cv_exeext for Libtool,
1867 # but it would be cool to find out if it's true. Does anybody
1868 # maintain Libtool? --akim.
1869 export ac_cv_exeext
1870 break;;
1872 break;;
1873 esac
1874 done
1875 else
1876 echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1879 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1880 See \`config.log' for more details." >&5
1881 echo "$as_me: error: C compiler cannot create executables
1882 See \`config.log' for more details." >&2;}
1883 { (exit 77); exit 77; }; }
1886 ac_exeext=$ac_cv_exeext
1887 echo "$as_me:$LINENO: result: $ac_file" >&5
1888 echo "${ECHO_T}$ac_file" >&6
1890 # Check the compiler produces executables we can run. If not, either
1891 # the compiler is broken, or we cross compile.
1892 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1893 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1894 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1895 # If not cross compiling, check that we can run a simple program.
1896 if test "$cross_compiling" != yes; then
1897 if { ac_try='./$ac_file'
1898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1899 (eval $ac_try) 2>&5
1900 ac_status=$?
1901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902 (exit $ac_status); }; }; then
1903 cross_compiling=no
1904 else
1905 if test "$cross_compiling" = maybe; then
1906 cross_compiling=yes
1907 else
1908 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1909 If you meant to cross compile, use \`--host'.
1910 See \`config.log' for more details." >&5
1911 echo "$as_me: error: cannot run C compiled programs.
1912 If you meant to cross compile, use \`--host'.
1913 See \`config.log' for more details." >&2;}
1914 { (exit 1); exit 1; }; }
1918 echo "$as_me:$LINENO: result: yes" >&5
1919 echo "${ECHO_T}yes" >&6
1921 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1922 ac_clean_files=$ac_clean_files_save
1923 # Check the compiler produces executables we can run. If not, either
1924 # the compiler is broken, or we cross compile.
1925 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1926 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1927 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1928 echo "${ECHO_T}$cross_compiling" >&6
1930 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1931 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1933 (eval $ac_link) 2>&5
1934 ac_status=$?
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }; then
1937 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1938 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1939 # work properly (i.e., refer to `conftest.exe'), while it won't with
1940 # `rm'.
1941 for ac_file in conftest.exe conftest conftest.*; do
1942 test -f "$ac_file" || continue
1943 case $ac_file in
1944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1945 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1946 export ac_cv_exeext
1947 break;;
1948 * ) break;;
1949 esac
1950 done
1951 else
1952 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1955 See \`config.log' for more details." >&2;}
1956 { (exit 1); exit 1; }; }
1959 rm -f conftest$ac_cv_exeext
1960 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1961 echo "${ECHO_T}$ac_cv_exeext" >&6
1963 rm -f conftest.$ac_ext
1964 EXEEXT=$ac_cv_exeext
1965 ac_exeext=$EXEEXT
1966 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1967 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1968 if test "${ac_cv_objext+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971 cat >conftest.$ac_ext <<_ACEOF
1972 #line $LINENO "configure"
1973 /* confdefs.h. */
1974 _ACEOF
1975 cat confdefs.h >>conftest.$ac_ext
1976 cat >>conftest.$ac_ext <<_ACEOF
1977 /* end confdefs.h. */
1980 main ()
1984 return 0;
1986 _ACEOF
1987 rm -f conftest.o conftest.obj
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>&5
1990 ac_status=$?
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); }; then
1993 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1994 case $ac_file in
1995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1996 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1997 break;;
1998 esac
1999 done
2000 else
2001 echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2004 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2005 See \`config.log' for more details." >&5
2006 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2007 See \`config.log' for more details." >&2;}
2008 { (exit 1); exit 1; }; }
2011 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2013 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2014 echo "${ECHO_T}$ac_cv_objext" >&6
2015 OBJEXT=$ac_cv_objext
2016 ac_objext=$OBJEXT
2017 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2018 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2019 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 else
2022 cat >conftest.$ac_ext <<_ACEOF
2023 #line $LINENO "configure"
2024 /* confdefs.h. */
2025 _ACEOF
2026 cat confdefs.h >>conftest.$ac_ext
2027 cat >>conftest.$ac_ext <<_ACEOF
2028 /* end confdefs.h. */
2031 main ()
2033 #ifndef __GNUC__
2034 choke me
2035 #endif
2038 return 0;
2040 _ACEOF
2041 rm -f conftest.$ac_objext
2042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2043 (eval $ac_compile) 2>&5
2044 ac_status=$?
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); } &&
2047 { ac_try='test -s conftest.$ac_objext'
2048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2049 (eval $ac_try) 2>&5
2050 ac_status=$?
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }; }; then
2053 ac_compiler_gnu=yes
2054 else
2055 echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2058 ac_compiler_gnu=no
2060 rm -f conftest.$ac_objext conftest.$ac_ext
2061 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2064 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2065 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2066 GCC=`test $ac_compiler_gnu = yes && echo yes`
2067 ac_test_CFLAGS=${CFLAGS+set}
2068 ac_save_CFLAGS=$CFLAGS
2069 CFLAGS="-g"
2070 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2071 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2072 if test "${ac_cv_prog_cc_g+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075 cat >conftest.$ac_ext <<_ACEOF
2076 #line $LINENO "configure"
2077 /* confdefs.h. */
2078 _ACEOF
2079 cat confdefs.h >>conftest.$ac_ext
2080 cat >>conftest.$ac_ext <<_ACEOF
2081 /* end confdefs.h. */
2084 main ()
2088 return 0;
2090 _ACEOF
2091 rm -f conftest.$ac_objext
2092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2093 (eval $ac_compile) 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); } &&
2097 { ac_try='test -s conftest.$ac_objext'
2098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099 (eval $ac_try) 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }; }; then
2103 ac_cv_prog_cc_g=yes
2104 else
2105 echo "$as_me: failed program was:" >&5
2106 sed 's/^/| /' conftest.$ac_ext >&5
2108 ac_cv_prog_cc_g=no
2110 rm -f conftest.$ac_objext conftest.$ac_ext
2112 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2113 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2114 if test "$ac_test_CFLAGS" = set; then
2115 CFLAGS=$ac_save_CFLAGS
2116 elif test $ac_cv_prog_cc_g = yes; then
2117 if test "$GCC" = yes; then
2118 CFLAGS="-g -O2"
2119 else
2120 CFLAGS="-g"
2122 else
2123 if test "$GCC" = yes; then
2124 CFLAGS="-O2"
2125 else
2126 CFLAGS=
2129 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2130 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2131 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134 ac_cv_prog_cc_stdc=no
2135 ac_save_CC=$CC
2136 cat >conftest.$ac_ext <<_ACEOF
2137 #line $LINENO "configure"
2138 /* confdefs.h. */
2139 _ACEOF
2140 cat confdefs.h >>conftest.$ac_ext
2141 cat >>conftest.$ac_ext <<_ACEOF
2142 /* end confdefs.h. */
2143 #include <stdarg.h>
2144 #include <stdio.h>
2145 #include <sys/types.h>
2146 #include <sys/stat.h>
2147 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2148 struct buf { int x; };
2149 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2150 static char *e (p, i)
2151 char **p;
2152 int i;
2154 return p[i];
2156 static char *f (char * (*g) (char **, int), char **p, ...)
2158 char *s;
2159 va_list v;
2160 va_start (v,p);
2161 s = g (p, va_arg (v,int));
2162 va_end (v);
2163 return s;
2165 int test (int i, double x);
2166 struct s1 {int (*f) (int a);};
2167 struct s2 {int (*f) (double a);};
2168 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2169 int argc;
2170 char **argv;
2172 main ()
2174 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2176 return 0;
2178 _ACEOF
2179 # Don't try gcc -ansi; that turns off useful extensions and
2180 # breaks some systems' header files.
2181 # AIX -qlanglvl=ansi
2182 # Ultrix and OSF/1 -std1
2183 # HP-UX 10.20 and later -Ae
2184 # HP-UX older versions -Aa -D_HPUX_SOURCE
2185 # SVR4 -Xc -D__EXTENSIONS__
2186 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2188 CC="$ac_save_CC $ac_arg"
2189 rm -f conftest.$ac_objext
2190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191 (eval $ac_compile) 2>&5
2192 ac_status=$?
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); } &&
2195 { ac_try='test -s conftest.$ac_objext'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197 (eval $ac_try) 2>&5
2198 ac_status=$?
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; }; then
2201 ac_cv_prog_cc_stdc=$ac_arg
2202 break
2203 else
2204 echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2208 rm -f conftest.$ac_objext
2209 done
2210 rm -f conftest.$ac_ext conftest.$ac_objext
2211 CC=$ac_save_CC
2215 case "x$ac_cv_prog_cc_stdc" in
2216 x|xno)
2217 echo "$as_me:$LINENO: result: none needed" >&5
2218 echo "${ECHO_T}none needed" >&6 ;;
2220 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2221 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2222 CC="$CC $ac_cv_prog_cc_stdc" ;;
2223 esac
2225 # Some people use a C++ compiler to compile C. Since we use `exit',
2226 # in C++ we need to declare it. In case someone uses the same compiler
2227 # for both compiling C and C++ we need to have the C++ compiler decide
2228 # the declaration of exit, since it's the most demanding environment.
2229 cat >conftest.$ac_ext <<_ACEOF
2230 #ifndef __cplusplus
2231 choke me
2232 #endif
2233 _ACEOF
2234 rm -f conftest.$ac_objext
2235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2236 (eval $ac_compile) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); } &&
2240 { ac_try='test -s conftest.$ac_objext'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 (eval $ac_try) 2>&5
2243 ac_status=$?
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; }; then
2246 for ac_declaration in \
2247 '' \
2248 'extern "C" void std::exit (int) throw (); using std::exit;' \
2249 'extern "C" void std::exit (int); using std::exit;' \
2250 'extern "C" void exit (int) throw ();' \
2251 'extern "C" void exit (int);' \
2252 'void exit (int);'
2254 cat >conftest.$ac_ext <<_ACEOF
2255 #line $LINENO "configure"
2256 /* confdefs.h. */
2257 _ACEOF
2258 cat confdefs.h >>conftest.$ac_ext
2259 cat >>conftest.$ac_ext <<_ACEOF
2260 /* end confdefs.h. */
2261 $ac_declaration
2262 #include <stdlib.h>
2264 main ()
2266 exit (42);
2268 return 0;
2270 _ACEOF
2271 rm -f conftest.$ac_objext
2272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273 (eval $ac_compile) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); } &&
2277 { ac_try='test -s conftest.$ac_objext'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 (eval $ac_try) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2284 else
2285 echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2288 continue
2290 rm -f conftest.$ac_objext conftest.$ac_ext
2291 cat >conftest.$ac_ext <<_ACEOF
2292 #line $LINENO "configure"
2293 /* confdefs.h. */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2298 $ac_declaration
2300 main ()
2302 exit (42);
2304 return 0;
2306 _ACEOF
2307 rm -f conftest.$ac_objext
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309 (eval $ac_compile) 2>&5
2310 ac_status=$?
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); } &&
2313 { ac_try='test -s conftest.$ac_objext'
2314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 (eval $ac_try) 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; }; then
2319 break
2320 else
2321 echo "$as_me: failed program was:" >&5
2322 sed 's/^/| /' conftest.$ac_ext >&5
2325 rm -f conftest.$ac_objext conftest.$ac_ext
2326 done
2327 rm -f conftest*
2328 if test -n "$ac_declaration"; then
2329 echo '#ifdef __cplusplus' >>confdefs.h
2330 echo $ac_declaration >>confdefs.h
2331 echo '#endif' >>confdefs.h
2334 else
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2339 rm -f conftest.$ac_objext conftest.$ac_ext
2340 ac_ext=c
2341 ac_cpp='$CPP $CPPFLAGS'
2342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2346 ac_ext=c
2347 ac_cpp='$CPP $CPPFLAGS'
2348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2352 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2353 # On Suns, sometimes $CPP names a directory.
2354 if test -n "$CPP" && test -d "$CPP"; then
2355 CPP=
2357 if test -z "$CPP"; then
2358 if test "${ac_cv_prog_CPP+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361 # Double quotes because CPP needs to be expanded
2362 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2364 ac_preproc_ok=false
2365 for ac_c_preproc_warn_flag in '' yes
2367 # Use a header file that comes with gcc, so configuring glibc
2368 # with a fresh cross-compiler works.
2369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2370 # <limits.h> exists even on freestanding compilers.
2371 # On the NeXT, cc -E runs the code through the compiler's parser,
2372 # not just through cpp. "Syntax error" is here to catch this case.
2373 cat >conftest.$ac_ext <<_ACEOF
2374 #line $LINENO "configure"
2375 /* confdefs.h. */
2376 _ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2380 #ifdef __STDC__
2381 # include <limits.h>
2382 #else
2383 # include <assert.h>
2384 #endif
2385 Syntax error
2386 _ACEOF
2387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2389 ac_status=$?
2390 grep -v '^ *+' conftest.er1 >conftest.err
2391 rm -f conftest.er1
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } >/dev/null; then
2395 if test -s conftest.err; then
2396 ac_cpp_err=$ac_c_preproc_warn_flag
2397 else
2398 ac_cpp_err=
2400 else
2401 ac_cpp_err=yes
2403 if test -z "$ac_cpp_err"; then
2405 else
2406 echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2409 # Broken: fails on valid input.
2410 continue
2412 rm -f conftest.err conftest.$ac_ext
2414 # OK, works on sane cases. Now check whether non-existent headers
2415 # can be detected and how.
2416 cat >conftest.$ac_ext <<_ACEOF
2417 #line $LINENO "configure"
2418 /* confdefs.h. */
2419 _ACEOF
2420 cat confdefs.h >>conftest.$ac_ext
2421 cat >>conftest.$ac_ext <<_ACEOF
2422 /* end confdefs.h. */
2423 #include <ac_nonexistent.h>
2424 _ACEOF
2425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2427 ac_status=$?
2428 grep -v '^ *+' conftest.er1 >conftest.err
2429 rm -f conftest.er1
2430 cat conftest.err >&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); } >/dev/null; then
2433 if test -s conftest.err; then
2434 ac_cpp_err=$ac_c_preproc_warn_flag
2435 else
2436 ac_cpp_err=
2438 else
2439 ac_cpp_err=yes
2441 if test -z "$ac_cpp_err"; then
2442 # Broken: success on invalid input.
2443 continue
2444 else
2445 echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2448 # Passes both tests.
2449 ac_preproc_ok=:
2450 break
2452 rm -f conftest.err conftest.$ac_ext
2454 done
2455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2456 rm -f conftest.err conftest.$ac_ext
2457 if $ac_preproc_ok; then
2458 break
2461 done
2462 ac_cv_prog_CPP=$CPP
2465 CPP=$ac_cv_prog_CPP
2466 else
2467 ac_cv_prog_CPP=$CPP
2469 echo "$as_me:$LINENO: result: $CPP" >&5
2470 echo "${ECHO_T}$CPP" >&6
2471 ac_preproc_ok=false
2472 for ac_c_preproc_warn_flag in '' yes
2474 # Use a header file that comes with gcc, so configuring glibc
2475 # with a fresh cross-compiler works.
2476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2477 # <limits.h> exists even on freestanding compilers.
2478 # On the NeXT, cc -E runs the code through the compiler's parser,
2479 # not just through cpp. "Syntax error" is here to catch this case.
2480 cat >conftest.$ac_ext <<_ACEOF
2481 #line $LINENO "configure"
2482 /* confdefs.h. */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2487 #ifdef __STDC__
2488 # include <limits.h>
2489 #else
2490 # include <assert.h>
2491 #endif
2492 Syntax error
2493 _ACEOF
2494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2496 ac_status=$?
2497 grep -v '^ *+' conftest.er1 >conftest.err
2498 rm -f conftest.er1
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } >/dev/null; then
2502 if test -s conftest.err; then
2503 ac_cpp_err=$ac_c_preproc_warn_flag
2504 else
2505 ac_cpp_err=
2507 else
2508 ac_cpp_err=yes
2510 if test -z "$ac_cpp_err"; then
2512 else
2513 echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.$ac_ext >&5
2516 # Broken: fails on valid input.
2517 continue
2519 rm -f conftest.err conftest.$ac_ext
2521 # OK, works on sane cases. Now check whether non-existent headers
2522 # can be detected and how.
2523 cat >conftest.$ac_ext <<_ACEOF
2524 #line $LINENO "configure"
2525 /* confdefs.h. */
2526 _ACEOF
2527 cat confdefs.h >>conftest.$ac_ext
2528 cat >>conftest.$ac_ext <<_ACEOF
2529 /* end confdefs.h. */
2530 #include <ac_nonexistent.h>
2531 _ACEOF
2532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2534 ac_status=$?
2535 grep -v '^ *+' conftest.er1 >conftest.err
2536 rm -f conftest.er1
2537 cat conftest.err >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } >/dev/null; then
2540 if test -s conftest.err; then
2541 ac_cpp_err=$ac_c_preproc_warn_flag
2542 else
2543 ac_cpp_err=
2545 else
2546 ac_cpp_err=yes
2548 if test -z "$ac_cpp_err"; then
2549 # Broken: success on invalid input.
2550 continue
2551 else
2552 echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2555 # Passes both tests.
2556 ac_preproc_ok=:
2557 break
2559 rm -f conftest.err conftest.$ac_ext
2561 done
2562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2563 rm -f conftest.err conftest.$ac_ext
2564 if $ac_preproc_ok; then
2566 else
2567 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2570 See \`config.log' for more details." >&2;}
2571 { (exit 1); exit 1; }; }
2574 ac_ext=c
2575 ac_cpp='$CPP $CPPFLAGS'
2576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2581 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2582 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2583 if test "${wine_cv_toolsdir+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586 if test -z "$with_wine_tools"; then
2587 if test "$cross_compiling" = "yes"; then
2588 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2589 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2590 { (exit 1); exit 1; }; }
2591 else
2592 wine_cv_toolsdir="\$(TOPOBJDIR)"
2594 elif test -d "$with_wine_tools/tools/winebuild"; then
2595 case $with_wine_tools in
2596 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2597 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2598 esac
2599 else
2600 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2601 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2602 { (exit 1); exit 1; }; }
2605 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2606 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2607 TOOLSDIR=$wine_cv_toolsdir
2612 echo "$as_me:$LINENO: checking for X" >&5
2613 echo $ECHO_N "checking for X... $ECHO_C" >&6
2616 # Check whether --with-x or --without-x was given.
2617 if test "${with_x+set}" = set; then
2618 withval="$with_x"
2621 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2622 if test "x$with_x" = xno; then
2623 # The user explicitly disabled X.
2624 have_x=disabled
2625 else
2626 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2627 # Both variables are already set.
2628 have_x=yes
2629 else
2630 if test "${ac_cv_have_x+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633 # One or both of the vars are not set, and there is no cached value.
2634 ac_x_includes=no ac_x_libraries=no
2635 rm -fr conftest.dir
2636 if mkdir conftest.dir; then
2637 cd conftest.dir
2638 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2639 cat >Imakefile <<'_ACEOF'
2640 acfindx:
2641 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2642 _ACEOF
2643 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2644 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2645 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2646 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2647 for ac_extension in a so sl; do
2648 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2649 test -f $ac_im_libdir/libX11.$ac_extension; then
2650 ac_im_usrlibdir=$ac_im_libdir; break
2652 done
2653 # Screen out bogus values from the imake configuration. They are
2654 # bogus both because they are the default anyway, and because
2655 # using them would break gcc on systems where it needs fixed includes.
2656 case $ac_im_incroot in
2657 /usr/include) ;;
2658 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2659 esac
2660 case $ac_im_usrlibdir in
2661 /usr/lib | /lib) ;;
2662 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2663 esac
2665 cd ..
2666 rm -fr conftest.dir
2669 # Standard set of common directories for X headers.
2670 # Check X11 before X11Rn because it is often a symlink to the current release.
2671 ac_x_header_dirs='
2672 /usr/X11/include
2673 /usr/X11R6/include
2674 /usr/X11R5/include
2675 /usr/X11R4/include
2677 /usr/include/X11
2678 /usr/include/X11R6
2679 /usr/include/X11R5
2680 /usr/include/X11R4
2682 /usr/local/X11/include
2683 /usr/local/X11R6/include
2684 /usr/local/X11R5/include
2685 /usr/local/X11R4/include
2687 /usr/local/include/X11
2688 /usr/local/include/X11R6
2689 /usr/local/include/X11R5
2690 /usr/local/include/X11R4
2692 /usr/X386/include
2693 /usr/x386/include
2694 /usr/XFree86/include/X11
2696 /usr/include
2697 /usr/local/include
2698 /usr/unsupported/include
2699 /usr/athena/include
2700 /usr/local/x11r5/include
2701 /usr/lpp/Xamples/include
2703 /usr/openwin/include
2704 /usr/openwin/share/include'
2706 if test "$ac_x_includes" = no; then
2707 # Guess where to find include files, by looking for Intrinsic.h.
2708 # First, try using that file with no special directory specified.
2709 cat >conftest.$ac_ext <<_ACEOF
2710 #line $LINENO "configure"
2711 /* confdefs.h. */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2716 #include <X11/Intrinsic.h>
2717 _ACEOF
2718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2720 ac_status=$?
2721 grep -v '^ *+' conftest.er1 >conftest.err
2722 rm -f conftest.er1
2723 cat conftest.err >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } >/dev/null; then
2726 if test -s conftest.err; then
2727 ac_cpp_err=$ac_c_preproc_warn_flag
2728 else
2729 ac_cpp_err=
2731 else
2732 ac_cpp_err=yes
2734 if test -z "$ac_cpp_err"; then
2735 # We can compile using X headers with no special include directory.
2736 ac_x_includes=
2737 else
2738 echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2741 for ac_dir in $ac_x_header_dirs; do
2742 if test -r "$ac_dir/X11/Intrinsic.h"; then
2743 ac_x_includes=$ac_dir
2744 break
2746 done
2748 rm -f conftest.err conftest.$ac_ext
2749 fi # $ac_x_includes = no
2751 if test "$ac_x_libraries" = no; then
2752 # Check for the libraries.
2753 # See if we find them without any special options.
2754 # Don't add to $LIBS permanently.
2755 ac_save_LIBS=$LIBS
2756 LIBS="-lXt $LIBS"
2757 cat >conftest.$ac_ext <<_ACEOF
2758 #line $LINENO "configure"
2759 /* confdefs.h. */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2764 #include <X11/Intrinsic.h>
2766 main ()
2768 XtMalloc (0)
2770 return 0;
2772 _ACEOF
2773 rm -f conftest.$ac_objext conftest$ac_exeext
2774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2775 (eval $ac_link) 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); } &&
2779 { ac_try='test -s conftest$ac_exeext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 (eval $ac_try) 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2785 LIBS=$ac_save_LIBS
2786 # We can link X programs with no special library path.
2787 ac_x_libraries=
2788 else
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2792 LIBS=$ac_save_LIBS
2793 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2795 # Don't even attempt the hair of trying to link an X program!
2796 for ac_extension in a so sl; do
2797 if test -r $ac_dir/libXt.$ac_extension; then
2798 ac_x_libraries=$ac_dir
2799 break 2
2801 done
2802 done
2804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2805 fi # $ac_x_libraries = no
2807 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2808 # Didn't find X anywhere. Cache the known absence of X.
2809 ac_cv_have_x="have_x=no"
2810 else
2811 # Record where we found X for the cache.
2812 ac_cv_have_x="have_x=yes \
2813 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2818 eval "$ac_cv_have_x"
2819 fi # $with_x != no
2821 if test "$have_x" != yes; then
2822 echo "$as_me:$LINENO: result: $have_x" >&5
2823 echo "${ECHO_T}$have_x" >&6
2824 no_x=yes
2825 else
2826 # If each of the values was on the command line, it overrides each guess.
2827 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2828 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2829 # Update the cache value to reflect the command line values.
2830 ac_cv_have_x="have_x=yes \
2831 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2832 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2833 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2836 if test "$no_x" = yes; then
2837 # Not all programs may use this symbol, but it does not hurt to define it.
2839 cat >>confdefs.h <<\_ACEOF
2840 #define X_DISPLAY_MISSING 1
2841 _ACEOF
2843 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2844 else
2845 if test -n "$x_includes"; then
2846 X_CFLAGS="$X_CFLAGS -I$x_includes"
2849 # It would also be nice to do this for all -L options, not just this one.
2850 if test -n "$x_libraries"; then
2851 X_LIBS="$X_LIBS -L$x_libraries"
2852 # For Solaris; some versions of Sun CC require a space after -R and
2853 # others require no space. Words are not sufficient . . . .
2854 case `(uname -sr) 2>/dev/null` in
2855 "SunOS 5"*)
2856 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2857 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2858 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2859 cat >conftest.$ac_ext <<_ACEOF
2860 #line $LINENO "configure"
2861 /* confdefs.h. */
2862 _ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2868 main ()
2872 return 0;
2874 _ACEOF
2875 rm -f conftest.$ac_objext conftest$ac_exeext
2876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2877 (eval $ac_link) 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try='test -s conftest$ac_exeext'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883 (eval $ac_try) 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
2887 ac_R_nospace=yes
2888 else
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2892 ac_R_nospace=no
2894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2895 if test $ac_R_nospace = yes; then
2896 echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2898 X_LIBS="$X_LIBS -R$x_libraries"
2899 else
2900 LIBS="$ac_xsave_LIBS -R $x_libraries"
2901 cat >conftest.$ac_ext <<_ACEOF
2902 #line $LINENO "configure"
2903 /* confdefs.h. */
2904 _ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2910 main ()
2914 return 0;
2916 _ACEOF
2917 rm -f conftest.$ac_objext conftest$ac_exeext
2918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2919 (eval $ac_link) 2>&5
2920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); } &&
2923 { ac_try='test -s conftest$ac_exeext'
2924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925 (eval $ac_try) 2>&5
2926 ac_status=$?
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; }; then
2929 ac_R_space=yes
2930 else
2931 echo "$as_me: failed program was:" >&5
2932 sed 's/^/| /' conftest.$ac_ext >&5
2934 ac_R_space=no
2936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2937 if test $ac_R_space = yes; then
2938 echo "$as_me:$LINENO: result: yes" >&5
2939 echo "${ECHO_T}yes" >&6
2940 X_LIBS="$X_LIBS -R $x_libraries"
2941 else
2942 echo "$as_me:$LINENO: result: neither works" >&5
2943 echo "${ECHO_T}neither works" >&6
2946 LIBS=$ac_xsave_LIBS
2947 esac
2950 # Check for system-dependent libraries X programs must link with.
2951 # Do this before checking for the system-independent R6 libraries
2952 # (-lICE), since we may need -lsocket or whatever for X linking.
2954 if test "$ISC" = yes; then
2955 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2956 else
2957 # Martyn Johnson says this is needed for Ultrix, if the X
2958 # libraries were built with DECnet support. And Karl Berry says
2959 # the Alpha needs dnet_stub (dnet does not exist).
2960 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2961 cat >conftest.$ac_ext <<_ACEOF
2962 #line $LINENO "configure"
2963 /* confdefs.h. */
2964 _ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2969 /* Override any gcc2 internal prototype to avoid an error. */
2970 #ifdef __cplusplus
2971 extern "C"
2972 #endif
2973 /* We use char because int might match the return type of a gcc2
2974 builtin and then its argument prototype would still apply. */
2975 char XOpenDisplay ();
2977 main ()
2979 XOpenDisplay ();
2981 return 0;
2983 _ACEOF
2984 rm -f conftest.$ac_objext conftest$ac_exeext
2985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2986 (eval $ac_link) 2>&5
2987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } &&
2990 { ac_try='test -s conftest$ac_exeext'
2991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 (eval $ac_try) 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; }; then
2997 else
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3001 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3002 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3003 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006 ac_check_lib_save_LIBS=$LIBS
3007 LIBS="-ldnet $LIBS"
3008 cat >conftest.$ac_ext <<_ACEOF
3009 #line $LINENO "configure"
3010 /* confdefs.h. */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3016 /* Override any gcc2 internal prototype to avoid an error. */
3017 #ifdef __cplusplus
3018 extern "C"
3019 #endif
3020 /* We use char because int might match the return type of a gcc2
3021 builtin and then its argument prototype would still apply. */
3022 char dnet_ntoa ();
3024 main ()
3026 dnet_ntoa ();
3028 return 0;
3030 _ACEOF
3031 rm -f conftest.$ac_objext conftest$ac_exeext
3032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3033 (eval $ac_link) 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } &&
3037 { ac_try='test -s conftest$ac_exeext'
3038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039 (eval $ac_try) 2>&5
3040 ac_status=$?
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; }; then
3043 ac_cv_lib_dnet_dnet_ntoa=yes
3044 else
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3048 ac_cv_lib_dnet_dnet_ntoa=no
3050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3051 LIBS=$ac_check_lib_save_LIBS
3053 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3054 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3055 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3056 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3059 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3060 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3061 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3062 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 else
3065 ac_check_lib_save_LIBS=$LIBS
3066 LIBS="-ldnet_stub $LIBS"
3067 cat >conftest.$ac_ext <<_ACEOF
3068 #line $LINENO "configure"
3069 /* confdefs.h. */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3075 /* Override any gcc2 internal prototype to avoid an error. */
3076 #ifdef __cplusplus
3077 extern "C"
3078 #endif
3079 /* We use char because int might match the return type of a gcc2
3080 builtin and then its argument prototype would still apply. */
3081 char dnet_ntoa ();
3083 main ()
3085 dnet_ntoa ();
3087 return 0;
3089 _ACEOF
3090 rm -f conftest.$ac_objext conftest$ac_exeext
3091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3092 (eval $ac_link) 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -s conftest$ac_exeext'
3097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098 (eval $ac_try) 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3102 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3103 else
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 ac_cv_lib_dnet_stub_dnet_ntoa=no
3109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3110 LIBS=$ac_check_lib_save_LIBS
3112 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3113 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3114 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3115 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3121 LIBS="$ac_xsave_LIBS"
3123 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3124 # to get the SysV transport functions.
3125 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3126 # needs -lnsl.
3127 # The nsl library prevents programs from opening the X display
3128 # on Irix 5.2, according to T.E. Dickey.
3129 # The functions gethostbyname, getservbyname, and inet_addr are
3130 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3131 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3132 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3133 if test "${ac_cv_func_gethostbyname+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136 cat >conftest.$ac_ext <<_ACEOF
3137 #line $LINENO "configure"
3138 /* confdefs.h. */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3143 /* System header to define __stub macros and hopefully few prototypes,
3144 which can conflict with char gethostbyname (); below.
3145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3146 <limits.h> exists even on freestanding compilers. */
3147 #ifdef __STDC__
3148 # include <limits.h>
3149 #else
3150 # include <assert.h>
3151 #endif
3152 /* Override any gcc2 internal prototype to avoid an error. */
3153 #ifdef __cplusplus
3154 extern "C"
3156 #endif
3157 /* We use char because int might match the return type of a gcc2
3158 builtin and then its argument prototype would still apply. */
3159 char gethostbyname ();
3160 /* The GNU C library defines this for functions which it implements
3161 to always fail with ENOSYS. Some functions are actually named
3162 something starting with __ and the normal name is an alias. */
3163 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3164 choke me
3165 #else
3166 char (*f) () = gethostbyname;
3167 #endif
3168 #ifdef __cplusplus
3170 #endif
3173 main ()
3175 return f != gethostbyname;
3177 return 0;
3179 _ACEOF
3180 rm -f conftest.$ac_objext conftest$ac_exeext
3181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3182 (eval $ac_link) 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -s conftest$ac_exeext'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188 (eval $ac_try) 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; }; then
3192 ac_cv_func_gethostbyname=yes
3193 else
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3197 ac_cv_func_gethostbyname=no
3199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3201 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3202 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3204 if test $ac_cv_func_gethostbyname = no; then
3205 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3206 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3207 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210 ac_check_lib_save_LIBS=$LIBS
3211 LIBS="-lnsl $LIBS"
3212 cat >conftest.$ac_ext <<_ACEOF
3213 #line $LINENO "configure"
3214 /* confdefs.h. */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3220 /* Override any gcc2 internal prototype to avoid an error. */
3221 #ifdef __cplusplus
3222 extern "C"
3223 #endif
3224 /* We use char because int might match the return type of a gcc2
3225 builtin and then its argument prototype would still apply. */
3226 char gethostbyname ();
3228 main ()
3230 gethostbyname ();
3232 return 0;
3234 _ACEOF
3235 rm -f conftest.$ac_objext conftest$ac_exeext
3236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3237 (eval $ac_link) 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try='test -s conftest$ac_exeext'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 (eval $ac_try) 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; }; then
3247 ac_cv_lib_nsl_gethostbyname=yes
3248 else
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3252 ac_cv_lib_nsl_gethostbyname=no
3254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3255 LIBS=$ac_check_lib_save_LIBS
3257 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3258 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3259 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3260 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3263 if test $ac_cv_lib_nsl_gethostbyname = no; then
3264 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3265 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3266 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269 ac_check_lib_save_LIBS=$LIBS
3270 LIBS="-lbsd $LIBS"
3271 cat >conftest.$ac_ext <<_ACEOF
3272 #line $LINENO "configure"
3273 /* confdefs.h. */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3279 /* Override any gcc2 internal prototype to avoid an error. */
3280 #ifdef __cplusplus
3281 extern "C"
3282 #endif
3283 /* We use char because int might match the return type of a gcc2
3284 builtin and then its argument prototype would still apply. */
3285 char gethostbyname ();
3287 main ()
3289 gethostbyname ();
3291 return 0;
3293 _ACEOF
3294 rm -f conftest.$ac_objext conftest$ac_exeext
3295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3296 (eval $ac_link) 2>&5
3297 ac_status=$?
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } &&
3300 { ac_try='test -s conftest$ac_exeext'
3301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 (eval $ac_try) 2>&5
3303 ac_status=$?
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }; }; then
3306 ac_cv_lib_bsd_gethostbyname=yes
3307 else
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3311 ac_cv_lib_bsd_gethostbyname=no
3313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3314 LIBS=$ac_check_lib_save_LIBS
3316 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3317 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3318 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3319 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3325 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3326 # socket/setsockopt and other routines are undefined under SCO ODT
3327 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3328 # on later versions), says Simon Leinen: it contains gethostby*
3329 # variants that don't use the name server (or something). -lsocket
3330 # must be given before -lnsl if both are needed. We assume that
3331 # if connect needs -lnsl, so does gethostbyname.
3332 echo "$as_me:$LINENO: checking for connect" >&5
3333 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3334 if test "${ac_cv_func_connect+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337 cat >conftest.$ac_ext <<_ACEOF
3338 #line $LINENO "configure"
3339 /* confdefs.h. */
3340 _ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3344 /* System header to define __stub macros and hopefully few prototypes,
3345 which can conflict with char connect (); below.
3346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3347 <limits.h> exists even on freestanding compilers. */
3348 #ifdef __STDC__
3349 # include <limits.h>
3350 #else
3351 # include <assert.h>
3352 #endif
3353 /* Override any gcc2 internal prototype to avoid an error. */
3354 #ifdef __cplusplus
3355 extern "C"
3357 #endif
3358 /* We use char because int might match the return type of a gcc2
3359 builtin and then its argument prototype would still apply. */
3360 char connect ();
3361 /* The GNU C library defines this for functions which it implements
3362 to always fail with ENOSYS. Some functions are actually named
3363 something starting with __ and the normal name is an alias. */
3364 #if defined (__stub_connect) || defined (__stub___connect)
3365 choke me
3366 #else
3367 char (*f) () = connect;
3368 #endif
3369 #ifdef __cplusplus
3371 #endif
3374 main ()
3376 return f != connect;
3378 return 0;
3380 _ACEOF
3381 rm -f conftest.$ac_objext conftest$ac_exeext
3382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3383 (eval $ac_link) 2>&5
3384 ac_status=$?
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } &&
3387 { ac_try='test -s conftest$ac_exeext'
3388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389 (eval $ac_try) 2>&5
3390 ac_status=$?
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; }; then
3393 ac_cv_func_connect=yes
3394 else
3395 echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3398 ac_cv_func_connect=no
3400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3402 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3403 echo "${ECHO_T}$ac_cv_func_connect" >&6
3405 if test $ac_cv_func_connect = no; then
3406 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3407 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3408 if test "${ac_cv_lib_socket_connect+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 ac_check_lib_save_LIBS=$LIBS
3412 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3413 cat >conftest.$ac_ext <<_ACEOF
3414 #line $LINENO "configure"
3415 /* confdefs.h. */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3421 /* Override any gcc2 internal prototype to avoid an error. */
3422 #ifdef __cplusplus
3423 extern "C"
3424 #endif
3425 /* We use char because int might match the return type of a gcc2
3426 builtin and then its argument prototype would still apply. */
3427 char connect ();
3429 main ()
3431 connect ();
3433 return 0;
3435 _ACEOF
3436 rm -f conftest.$ac_objext conftest$ac_exeext
3437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3438 (eval $ac_link) 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } &&
3442 { ac_try='test -s conftest$ac_exeext'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; }; then
3448 ac_cv_lib_socket_connect=yes
3449 else
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3453 ac_cv_lib_socket_connect=no
3455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3456 LIBS=$ac_check_lib_save_LIBS
3458 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3459 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3460 if test $ac_cv_lib_socket_connect = yes; then
3461 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3466 # Guillermo Gomez says -lposix is necessary on A/UX.
3467 echo "$as_me:$LINENO: checking for remove" >&5
3468 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3469 if test "${ac_cv_func_remove+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472 cat >conftest.$ac_ext <<_ACEOF
3473 #line $LINENO "configure"
3474 /* confdefs.h. */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3479 /* System header to define __stub macros and hopefully few prototypes,
3480 which can conflict with char remove (); below.
3481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3482 <limits.h> exists even on freestanding compilers. */
3483 #ifdef __STDC__
3484 # include <limits.h>
3485 #else
3486 # include <assert.h>
3487 #endif
3488 /* Override any gcc2 internal prototype to avoid an error. */
3489 #ifdef __cplusplus
3490 extern "C"
3492 #endif
3493 /* We use char because int might match the return type of a gcc2
3494 builtin and then its argument prototype would still apply. */
3495 char remove ();
3496 /* The GNU C library defines this for functions which it implements
3497 to always fail with ENOSYS. Some functions are actually named
3498 something starting with __ and the normal name is an alias. */
3499 #if defined (__stub_remove) || defined (__stub___remove)
3500 choke me
3501 #else
3502 char (*f) () = remove;
3503 #endif
3504 #ifdef __cplusplus
3506 #endif
3509 main ()
3511 return f != remove;
3513 return 0;
3515 _ACEOF
3516 rm -f conftest.$ac_objext conftest$ac_exeext
3517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3518 (eval $ac_link) 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } &&
3522 { ac_try='test -s conftest$ac_exeext'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3528 ac_cv_func_remove=yes
3529 else
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3533 ac_cv_func_remove=no
3535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3537 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3538 echo "${ECHO_T}$ac_cv_func_remove" >&6
3540 if test $ac_cv_func_remove = no; then
3541 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3542 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3543 if test "${ac_cv_lib_posix_remove+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 ac_check_lib_save_LIBS=$LIBS
3547 LIBS="-lposix $LIBS"
3548 cat >conftest.$ac_ext <<_ACEOF
3549 #line $LINENO "configure"
3550 /* confdefs.h. */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3556 /* Override any gcc2 internal prototype to avoid an error. */
3557 #ifdef __cplusplus
3558 extern "C"
3559 #endif
3560 /* We use char because int might match the return type of a gcc2
3561 builtin and then its argument prototype would still apply. */
3562 char remove ();
3564 main ()
3566 remove ();
3568 return 0;
3570 _ACEOF
3571 rm -f conftest.$ac_objext conftest$ac_exeext
3572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3573 (eval $ac_link) 2>&5
3574 ac_status=$?
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } &&
3577 { ac_try='test -s conftest$ac_exeext'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3583 ac_cv_lib_posix_remove=yes
3584 else
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3588 ac_cv_lib_posix_remove=no
3590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3591 LIBS=$ac_check_lib_save_LIBS
3593 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3594 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3595 if test $ac_cv_lib_posix_remove = yes; then
3596 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3601 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3602 echo "$as_me:$LINENO: checking for shmat" >&5
3603 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3604 if test "${ac_cv_func_shmat+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 else
3607 cat >conftest.$ac_ext <<_ACEOF
3608 #line $LINENO "configure"
3609 /* confdefs.h. */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3614 /* System header to define __stub macros and hopefully few prototypes,
3615 which can conflict with char shmat (); below.
3616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3617 <limits.h> exists even on freestanding compilers. */
3618 #ifdef __STDC__
3619 # include <limits.h>
3620 #else
3621 # include <assert.h>
3622 #endif
3623 /* Override any gcc2 internal prototype to avoid an error. */
3624 #ifdef __cplusplus
3625 extern "C"
3627 #endif
3628 /* We use char because int might match the return type of a gcc2
3629 builtin and then its argument prototype would still apply. */
3630 char shmat ();
3631 /* The GNU C library defines this for functions which it implements
3632 to always fail with ENOSYS. Some functions are actually named
3633 something starting with __ and the normal name is an alias. */
3634 #if defined (__stub_shmat) || defined (__stub___shmat)
3635 choke me
3636 #else
3637 char (*f) () = shmat;
3638 #endif
3639 #ifdef __cplusplus
3641 #endif
3644 main ()
3646 return f != shmat;
3648 return 0;
3650 _ACEOF
3651 rm -f conftest.$ac_objext conftest$ac_exeext
3652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3653 (eval $ac_link) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 { ac_try='test -s conftest$ac_exeext'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 (eval $ac_try) 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; }; then
3663 ac_cv_func_shmat=yes
3664 else
3665 echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3668 ac_cv_func_shmat=no
3670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3672 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3673 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3675 if test $ac_cv_func_shmat = no; then
3676 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3677 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3678 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681 ac_check_lib_save_LIBS=$LIBS
3682 LIBS="-lipc $LIBS"
3683 cat >conftest.$ac_ext <<_ACEOF
3684 #line $LINENO "configure"
3685 /* confdefs.h. */
3686 _ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3691 /* Override any gcc2 internal prototype to avoid an error. */
3692 #ifdef __cplusplus
3693 extern "C"
3694 #endif
3695 /* We use char because int might match the return type of a gcc2
3696 builtin and then its argument prototype would still apply. */
3697 char shmat ();
3699 main ()
3701 shmat ();
3703 return 0;
3705 _ACEOF
3706 rm -f conftest.$ac_objext conftest$ac_exeext
3707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3708 (eval $ac_link) 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try='test -s conftest$ac_exeext'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 (eval $ac_try) 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; }; then
3718 ac_cv_lib_ipc_shmat=yes
3719 else
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3723 ac_cv_lib_ipc_shmat=no
3725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3726 LIBS=$ac_check_lib_save_LIBS
3728 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3729 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3730 if test $ac_cv_lib_ipc_shmat = yes; then
3731 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3737 # Check for libraries that X11R6 Xt/Xaw programs need.
3738 ac_save_LDFLAGS=$LDFLAGS
3739 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3740 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3741 # check for ICE first), but we must link in the order -lSM -lICE or
3742 # we get undefined symbols. So assume we have SM if we have ICE.
3743 # These have to be linked with before -lX11, unlike the other
3744 # libraries we check for below, so use a different variable.
3745 # John Interrante, Karl Berry
3746 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3747 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3748 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751 ac_check_lib_save_LIBS=$LIBS
3752 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3753 cat >conftest.$ac_ext <<_ACEOF
3754 #line $LINENO "configure"
3755 /* confdefs.h. */
3756 _ACEOF
3757 cat confdefs.h >>conftest.$ac_ext
3758 cat >>conftest.$ac_ext <<_ACEOF
3759 /* end confdefs.h. */
3761 /* Override any gcc2 internal prototype to avoid an error. */
3762 #ifdef __cplusplus
3763 extern "C"
3764 #endif
3765 /* We use char because int might match the return type of a gcc2
3766 builtin and then its argument prototype would still apply. */
3767 char IceConnectionNumber ();
3769 main ()
3771 IceConnectionNumber ();
3773 return 0;
3775 _ACEOF
3776 rm -f conftest.$ac_objext conftest$ac_exeext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3778 (eval $ac_link) 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } &&
3782 { ac_try='test -s conftest$ac_exeext'
3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 (eval $ac_try) 2>&5
3785 ac_status=$?
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; }; then
3788 ac_cv_lib_ICE_IceConnectionNumber=yes
3789 else
3790 echo "$as_me: failed program was:" >&5
3791 sed 's/^/| /' conftest.$ac_ext >&5
3793 ac_cv_lib_ICE_IceConnectionNumber=no
3795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3796 LIBS=$ac_check_lib_save_LIBS
3798 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3799 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3800 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3801 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3804 LDFLAGS=$ac_save_LDFLAGS
3808 for ac_prog in 'bison -y' byacc
3810 # Extract the first word of "$ac_prog", so it can be a program name with args.
3811 set dummy $ac_prog; ac_word=$2
3812 echo "$as_me:$LINENO: checking for $ac_word" >&5
3813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3814 if test "${ac_cv_prog_YACC+set}" = set; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 else
3817 if test -n "$YACC"; then
3818 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3823 IFS=$as_save_IFS
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827 ac_cv_prog_YACC="$ac_prog"
3828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 break 2
3831 done
3832 done
3836 YACC=$ac_cv_prog_YACC
3837 if test -n "$YACC"; then
3838 echo "$as_me:$LINENO: result: $YACC" >&5
3839 echo "${ECHO_T}$YACC" >&6
3840 else
3841 echo "$as_me:$LINENO: result: no" >&5
3842 echo "${ECHO_T}no" >&6
3845 test -n "$YACC" && break
3846 done
3847 test -n "$YACC" || YACC="yacc"
3849 for ac_prog in flex lex
3851 # Extract the first word of "$ac_prog", so it can be a program name with args.
3852 set dummy $ac_prog; ac_word=$2
3853 echo "$as_me:$LINENO: checking for $ac_word" >&5
3854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3855 if test "${ac_cv_prog_LEX+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 else
3858 if test -n "$LEX"; then
3859 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3860 else
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3864 IFS=$as_save_IFS
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868 ac_cv_prog_LEX="$ac_prog"
3869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 break 2
3872 done
3873 done
3877 LEX=$ac_cv_prog_LEX
3878 if test -n "$LEX"; then
3879 echo "$as_me:$LINENO: result: $LEX" >&5
3880 echo "${ECHO_T}$LEX" >&6
3881 else
3882 echo "$as_me:$LINENO: result: no" >&5
3883 echo "${ECHO_T}no" >&6
3886 test -n "$LEX" && break
3887 done
3888 test -n "$LEX" || LEX=":"
3890 if test -z "$LEXLIB"
3891 then
3892 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3893 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3894 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897 ac_check_lib_save_LIBS=$LIBS
3898 LIBS="-lfl $LIBS"
3899 cat >conftest.$ac_ext <<_ACEOF
3900 #line $LINENO "configure"
3901 /* confdefs.h. */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3907 /* Override any gcc2 internal prototype to avoid an error. */
3908 #ifdef __cplusplus
3909 extern "C"
3910 #endif
3911 /* We use char because int might match the return type of a gcc2
3912 builtin and then its argument prototype would still apply. */
3913 char yywrap ();
3915 main ()
3917 yywrap ();
3919 return 0;
3921 _ACEOF
3922 rm -f conftest.$ac_objext conftest$ac_exeext
3923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3924 (eval $ac_link) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } &&
3928 { ac_try='test -s conftest$ac_exeext'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 (eval $ac_try) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 ac_cv_lib_fl_yywrap=yes
3935 else
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3939 ac_cv_lib_fl_yywrap=no
3941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3942 LIBS=$ac_check_lib_save_LIBS
3944 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3945 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3946 if test $ac_cv_lib_fl_yywrap = yes; then
3947 LEXLIB="-lfl"
3948 else
3949 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3950 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3951 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954 ac_check_lib_save_LIBS=$LIBS
3955 LIBS="-ll $LIBS"
3956 cat >conftest.$ac_ext <<_ACEOF
3957 #line $LINENO "configure"
3958 /* confdefs.h. */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3964 /* Override any gcc2 internal prototype to avoid an error. */
3965 #ifdef __cplusplus
3966 extern "C"
3967 #endif
3968 /* We use char because int might match the return type of a gcc2
3969 builtin and then its argument prototype would still apply. */
3970 char yywrap ();
3972 main ()
3974 yywrap ();
3976 return 0;
3978 _ACEOF
3979 rm -f conftest.$ac_objext conftest$ac_exeext
3980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3981 (eval $ac_link) 2>&5
3982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } &&
3985 { ac_try='test -s conftest$ac_exeext'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987 (eval $ac_try) 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3991 ac_cv_lib_l_yywrap=yes
3992 else
3993 echo "$as_me: failed program was:" >&5
3994 sed 's/^/| /' conftest.$ac_ext >&5
3996 ac_cv_lib_l_yywrap=no
3998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3999 LIBS=$ac_check_lib_save_LIBS
4001 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4002 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4003 if test $ac_cv_lib_l_yywrap = yes; then
4004 LEXLIB="-ll"
4011 if test "x$LEX" != "x:"; then
4012 echo "$as_me:$LINENO: checking lex output file root" >&5
4013 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4014 if test "${ac_cv_prog_lex_root+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 else
4017 # The minimal lex program is just a single line: %%. But some broken lexes
4018 # (Solaris, I think it was) want two %% lines, so accommodate them.
4019 cat >conftest.l <<_ACEOF
4022 _ACEOF
4023 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4024 (eval $LEX conftest.l) 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }
4028 if test -f lex.yy.c; then
4029 ac_cv_prog_lex_root=lex.yy
4030 elif test -f lexyy.c; then
4031 ac_cv_prog_lex_root=lexyy
4032 else
4033 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4034 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4035 { (exit 1); exit 1; }; }
4038 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4039 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4040 rm -f conftest.l
4041 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4043 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4044 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4045 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048 # POSIX says lex can declare yytext either as a pointer or an array; the
4049 # default is implementation-dependent. Figure out which it is, since
4050 # not all implementations provide the %pointer and %array declarations.
4051 ac_cv_prog_lex_yytext_pointer=no
4052 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4053 ac_save_LIBS=$LIBS
4054 LIBS="$LIBS $LEXLIB"
4055 cat >conftest.$ac_ext <<_ACEOF
4056 `cat $LEX_OUTPUT_ROOT.c`
4057 _ACEOF
4058 rm -f conftest.$ac_objext conftest$ac_exeext
4059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4060 (eval $ac_link) 2>&5
4061 ac_status=$?
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); } &&
4064 { ac_try='test -s conftest$ac_exeext'
4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066 (eval $ac_try) 2>&5
4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; }; then
4070 ac_cv_prog_lex_yytext_pointer=yes
4071 else
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4077 LIBS=$ac_save_LIBS
4078 rm -f "${LEX_OUTPUT_ROOT}.c"
4081 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4082 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4083 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4085 cat >>confdefs.h <<\_ACEOF
4086 #define YYTEXT_POINTER 1
4087 _ACEOF
4093 for ac_prog in $YACC bison yacc
4095 # Extract the first word of "$ac_prog", so it can be a program name with args.
4096 set dummy $ac_prog; ac_word=$2
4097 echo "$as_me:$LINENO: checking for $ac_word" >&5
4098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4099 if test "${ac_cv_prog_XYACC+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102 if test -n "$XYACC"; then
4103 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4112 ac_cv_prog_XYACC="$ac_prog"
4113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 break 2
4116 done
4117 done
4121 XYACC=$ac_cv_prog_XYACC
4122 if test -n "$XYACC"; then
4123 echo "$as_me:$LINENO: result: $XYACC" >&5
4124 echo "${ECHO_T}$XYACC" >&6
4125 else
4126 echo "$as_me:$LINENO: result: no" >&5
4127 echo "${ECHO_T}no" >&6
4130 test -n "$XYACC" && break
4131 done
4132 test -n "$XYACC" || XYACC="none"
4134 if test "$XYACC" = "none"
4135 then
4136 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
4137 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4138 { (exit 1); exit 1; }; }
4140 for ac_prog in $LEX flex lex
4142 # Extract the first word of "$ac_prog", so it can be a program name with args.
4143 set dummy $ac_prog; ac_word=$2
4144 echo "$as_me:$LINENO: checking for $ac_word" >&5
4145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4146 if test "${ac_cv_prog_XLEX+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149 if test -n "$XLEX"; then
4150 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4151 else
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH
4155 IFS=$as_save_IFS
4156 test -z "$as_dir" && as_dir=.
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4159 ac_cv_prog_XLEX="$ac_prog"
4160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4161 break 2
4163 done
4164 done
4168 XLEX=$ac_cv_prog_XLEX
4169 if test -n "$XLEX"; then
4170 echo "$as_me:$LINENO: result: $XLEX" >&5
4171 echo "${ECHO_T}$XLEX" >&6
4172 else
4173 echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6
4177 test -n "$XLEX" && break
4178 done
4179 test -n "$XLEX" || XLEX="none"
4181 if test "$XLEX" = "none"
4182 then
4183 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4184 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4185 { (exit 1); exit 1; }; }
4188 if test -n "$ac_tool_prefix"; then
4189 for ac_prog in gas as
4191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4193 echo "$as_me:$LINENO: checking for $ac_word" >&5
4194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4195 if test "${ac_cv_prog_AS+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 else
4198 if test -n "$AS"; then
4199 ac_cv_prog_AS="$AS" # Let the user override the test.
4200 else
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4208 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 break 2
4212 done
4213 done
4217 AS=$ac_cv_prog_AS
4218 if test -n "$AS"; then
4219 echo "$as_me:$LINENO: result: $AS" >&5
4220 echo "${ECHO_T}$AS" >&6
4221 else
4222 echo "$as_me:$LINENO: result: no" >&5
4223 echo "${ECHO_T}no" >&6
4226 test -n "$AS" && break
4227 done
4229 if test -z "$AS"; then
4230 ac_ct_AS=$AS
4231 for ac_prog in gas as
4233 # Extract the first word of "$ac_prog", so it can be a program name with args.
4234 set dummy $ac_prog; ac_word=$2
4235 echo "$as_me:$LINENO: checking for $ac_word" >&5
4236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4237 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 else
4240 if test -n "$ac_ct_AS"; then
4241 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4242 else
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4250 ac_cv_prog_ac_ct_AS="$ac_prog"
4251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 break 2
4254 done
4255 done
4259 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4260 if test -n "$ac_ct_AS"; then
4261 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4262 echo "${ECHO_T}$ac_ct_AS" >&6
4263 else
4264 echo "$as_me:$LINENO: result: no" >&5
4265 echo "${ECHO_T}no" >&6
4268 test -n "$ac_ct_AS" && break
4269 done
4270 test -n "$ac_ct_AS" || ac_ct_AS="as"
4272 AS=$ac_ct_AS
4275 if test -n "$ac_tool_prefix"; then
4276 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4277 set dummy ${ac_tool_prefix}ld; ac_word=$2
4278 echo "$as_me:$LINENO: checking for $ac_word" >&5
4279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4280 if test "${ac_cv_prog_LD+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 else
4283 if test -n "$LD"; then
4284 ac_cv_prog_LD="$LD" # Let the user override the test.
4285 else
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4293 ac_cv_prog_LD="${ac_tool_prefix}ld"
4294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 break 2
4297 done
4298 done
4302 LD=$ac_cv_prog_LD
4303 if test -n "$LD"; then
4304 echo "$as_me:$LINENO: result: $LD" >&5
4305 echo "${ECHO_T}$LD" >&6
4306 else
4307 echo "$as_me:$LINENO: result: no" >&5
4308 echo "${ECHO_T}no" >&6
4312 if test -z "$ac_cv_prog_LD"; then
4313 ac_ct_LD=$LD
4314 # Extract the first word of "ld", so it can be a program name with args.
4315 set dummy ld; ac_word=$2
4316 echo "$as_me:$LINENO: checking for $ac_word" >&5
4317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4318 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321 if test -n "$ac_ct_LD"; then
4322 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331 ac_cv_prog_ac_ct_LD="ld"
4332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4335 done
4336 done
4338 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4341 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4342 if test -n "$ac_ct_LD"; then
4343 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4344 echo "${ECHO_T}$ac_ct_LD" >&6
4345 else
4346 echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6
4350 LD=$ac_ct_LD
4351 else
4352 LD="$ac_cv_prog_LD"
4355 if test -n "$ac_tool_prefix"; then
4356 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4357 set dummy ${ac_tool_prefix}ar; ac_word=$2
4358 echo "$as_me:$LINENO: checking for $ac_word" >&5
4359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4360 if test "${ac_cv_prog_AR+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 else
4363 if test -n "$AR"; then
4364 ac_cv_prog_AR="$AR" # Let the user override the test.
4365 else
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 for as_dir in $PATH
4369 IFS=$as_save_IFS
4370 test -z "$as_dir" && as_dir=.
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4373 ac_cv_prog_AR="${ac_tool_prefix}ar"
4374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 break 2
4377 done
4378 done
4382 AR=$ac_cv_prog_AR
4383 if test -n "$AR"; then
4384 echo "$as_me:$LINENO: result: $AR" >&5
4385 echo "${ECHO_T}$AR" >&6
4386 else
4387 echo "$as_me:$LINENO: result: no" >&5
4388 echo "${ECHO_T}no" >&6
4392 if test -z "$ac_cv_prog_AR"; then
4393 ac_ct_AR=$AR
4394 # Extract the first word of "ar", so it can be a program name with args.
4395 set dummy ar; ac_word=$2
4396 echo "$as_me:$LINENO: checking for $ac_word" >&5
4397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4398 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401 if test -n "$ac_ct_AR"; then
4402 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4411 ac_cv_prog_ac_ct_AR="ar"
4412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 break 2
4415 done
4416 done
4418 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4421 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4422 if test -n "$ac_ct_AR"; then
4423 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4424 echo "${ECHO_T}$ac_ct_AR" >&6
4425 else
4426 echo "$as_me:$LINENO: result: no" >&5
4427 echo "${ECHO_T}no" >&6
4430 AR=$ac_ct_AR
4431 else
4432 AR="$ac_cv_prog_AR"
4435 if test -n "$ac_tool_prefix"; then
4436 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4437 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4438 echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4440 if test "${ac_cv_prog_RANLIB+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443 if test -n "$RANLIB"; then
4444 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4453 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 break 2
4457 done
4458 done
4462 RANLIB=$ac_cv_prog_RANLIB
4463 if test -n "$RANLIB"; then
4464 echo "$as_me:$LINENO: result: $RANLIB" >&5
4465 echo "${ECHO_T}$RANLIB" >&6
4466 else
4467 echo "$as_me:$LINENO: result: no" >&5
4468 echo "${ECHO_T}no" >&6
4472 if test -z "$ac_cv_prog_RANLIB"; then
4473 ac_ct_RANLIB=$RANLIB
4474 # Extract the first word of "ranlib", so it can be a program name with args.
4475 set dummy ranlib; ac_word=$2
4476 echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4478 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481 if test -n "$ac_ct_RANLIB"; then
4482 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4483 else
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491 ac_cv_prog_ac_ct_RANLIB="ranlib"
4492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 break 2
4495 done
4496 done
4498 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4501 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4502 if test -n "$ac_ct_RANLIB"; then
4503 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4504 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4505 else
4506 echo "$as_me:$LINENO: result: no" >&5
4507 echo "${ECHO_T}no" >&6
4510 RANLIB=$ac_ct_RANLIB
4511 else
4512 RANLIB="$ac_cv_prog_RANLIB"
4515 if test -n "$ac_tool_prefix"; then
4516 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4517 set dummy ${ac_tool_prefix}strip; ac_word=$2
4518 echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4520 if test "${ac_cv_prog_STRIP+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523 if test -n "$STRIP"; then
4524 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4525 else
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4533 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 break 2
4537 done
4538 done
4542 STRIP=$ac_cv_prog_STRIP
4543 if test -n "$STRIP"; then
4544 echo "$as_me:$LINENO: result: $STRIP" >&5
4545 echo "${ECHO_T}$STRIP" >&6
4546 else
4547 echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6
4552 if test -z "$ac_cv_prog_STRIP"; then
4553 ac_ct_STRIP=$STRIP
4554 # Extract the first word of "strip", so it can be a program name with args.
4555 set dummy strip; ac_word=$2
4556 echo "$as_me:$LINENO: checking for $ac_word" >&5
4557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4558 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561 if test -n "$ac_ct_STRIP"; then
4562 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571 ac_cv_prog_ac_ct_STRIP="strip"
4572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4575 done
4576 done
4578 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4581 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4582 if test -n "$ac_ct_STRIP"; then
4583 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4584 echo "${ECHO_T}$ac_ct_STRIP" >&6
4585 else
4586 echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6
4590 STRIP=$ac_ct_STRIP
4591 else
4592 STRIP="$ac_cv_prog_STRIP"
4595 if test -n "$ac_tool_prefix"; then
4596 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4597 set dummy ${ac_tool_prefix}windres; ac_word=$2
4598 echo "$as_me:$LINENO: checking for $ac_word" >&5
4599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4600 if test "${ac_cv_prog_WINDRES+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603 if test -n "$WINDRES"; then
4604 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4613 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4617 done
4618 done
4622 WINDRES=$ac_cv_prog_WINDRES
4623 if test -n "$WINDRES"; then
4624 echo "$as_me:$LINENO: result: $WINDRES" >&5
4625 echo "${ECHO_T}$WINDRES" >&6
4626 else
4627 echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6
4632 if test -z "$ac_cv_prog_WINDRES"; then
4633 ac_ct_WINDRES=$WINDRES
4634 # Extract the first word of "windres", so it can be a program name with args.
4635 set dummy windres; ac_word=$2
4636 echo "$as_me:$LINENO: checking for $ac_word" >&5
4637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4638 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641 if test -n "$ac_ct_WINDRES"; then
4642 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4643 else
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651 ac_cv_prog_ac_ct_WINDRES="windres"
4652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
4655 done
4656 done
4658 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4661 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4662 if test -n "$ac_ct_WINDRES"; then
4663 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4664 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4665 else
4666 echo "$as_me:$LINENO: result: no" >&5
4667 echo "${ECHO_T}no" >&6
4670 WINDRES=$ac_ct_WINDRES
4671 else
4672 WINDRES="$ac_cv_prog_WINDRES"
4675 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4676 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4677 LN_S=$as_ln_s
4678 if test "$LN_S" = "ln -s"; then
4679 echo "$as_me:$LINENO: result: yes" >&5
4680 echo "${ECHO_T}yes" >&6
4681 else
4682 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4683 echo "${ECHO_T}no, using $LN_S" >&6
4686 echo "$as_me:$LINENO: checking whether ln works" >&5
4687 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4688 rm -f conf$$ conf$$.file
4689 echo >conf$$.file
4690 if ln conf$$.file conf$$ 2>/dev/null; then
4691 LN=ln
4693 echo "$as_me:$LINENO: result: yes" >&5
4694 echo "${ECHO_T}yes" >&6
4695 else
4696 LN="cp -p"
4698 echo "$as_me:$LINENO: result: no, using $LN" >&5
4699 echo "${ECHO_T}no, using $LN" >&6
4701 rm -f conf$$ conf$$.file
4702 # Extract the first word of "ldconfig", so it can be a program name with args.
4703 set dummy ldconfig; ac_word=$2
4704 echo "$as_me:$LINENO: checking for $ac_word" >&5
4705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4706 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709 case $LDCONFIG in
4710 [\\/]* | ?:[\\/]*)
4711 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in /sbin /usr/sbin $PATH
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 break 2
4725 done
4726 done
4728 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4730 esac
4732 LDCONFIG=$ac_cv_path_LDCONFIG
4734 if test -n "$LDCONFIG"; then
4735 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4736 echo "${ECHO_T}$LDCONFIG" >&6
4737 else
4738 echo "$as_me:$LINENO: result: no" >&5
4739 echo "${ECHO_T}no" >&6
4742 # Find a good install program. We prefer a C program (faster),
4743 # so one script is as good as another. But avoid the broken or
4744 # incompatible versions:
4745 # SysV /etc/install, /usr/sbin/install
4746 # SunOS /usr/etc/install
4747 # IRIX /sbin/install
4748 # AIX /bin/install
4749 # AmigaOS /C/install, which installs bootblocks on floppy discs
4750 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4751 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4752 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4753 # ./install, which can be erroneously created by make from ./install.sh.
4754 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4755 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4756 if test -z "$INSTALL"; then
4757 if test "${ac_cv_path_install+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 # Account for people who put trailing slashes in PATH elements.
4766 case $as_dir/ in
4767 ./ | .// | /cC/* | \
4768 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4769 /usr/ucb/* ) ;;
4771 # OSF1 and SCO ODT 3.0 have their own names for install.
4772 # Don't use installbsd from OSF since it installs stuff as root
4773 # by default.
4774 for ac_prog in ginstall scoinst install; do
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4777 if test $ac_prog = install &&
4778 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4779 # AIX install. It has an incompatible calling convention.
4781 elif test $ac_prog = install &&
4782 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4783 # program-specific install script used by HP pwplus--don't use.
4785 else
4786 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4787 break 3
4790 done
4791 done
4793 esac
4794 done
4798 if test "${ac_cv_path_install+set}" = set; then
4799 INSTALL=$ac_cv_path_install
4800 else
4801 # As a last resort, use the slow shell script. We don't cache a
4802 # path for INSTALL within a source directory, because that will
4803 # break other packages using the cache if that directory is
4804 # removed, or if the path is relative.
4805 INSTALL=$ac_install_sh
4808 echo "$as_me:$LINENO: result: $INSTALL" >&5
4809 echo "${ECHO_T}$INSTALL" >&6
4811 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4812 # It thinks the first close brace ends the variable substitution.
4813 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4815 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4817 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4819 case "$INSTALL" in
4820 [\\/$]* | ?:[\\/]* ) ;;
4821 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4822 esac
4824 for ac_prog in lclint lint
4826 # Extract the first word of "$ac_prog", so it can be a program name with args.
4827 set dummy $ac_prog; ac_word=$2
4828 echo "$as_me:$LINENO: checking for $ac_word" >&5
4829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4830 if test "${ac_cv_prog_LINT+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 else
4833 if test -n "$LINT"; then
4834 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4843 ac_cv_prog_LINT="$ac_prog"
4844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 break 2
4847 done
4848 done
4852 LINT=$ac_cv_prog_LINT
4853 if test -n "$LINT"; then
4854 echo "$as_me:$LINENO: result: $LINT" >&5
4855 echo "${ECHO_T}$LINT" >&6
4856 else
4857 echo "$as_me:$LINENO: result: no" >&5
4858 echo "${ECHO_T}no" >&6
4861 test -n "$LINT" && break
4862 done
4864 if test "$LINT" = "lint"
4865 then
4866 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4871 for ac_prog in docbook2html db2html
4873 # Extract the first word of "$ac_prog", so it can be a program name with args.
4874 set dummy $ac_prog; ac_word=$2
4875 echo "$as_me:$LINENO: checking for $ac_word" >&5
4876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4877 if test "${ac_cv_prog_DB2HTML+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880 if test -n "$DB2HTML"; then
4881 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4882 else
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 for as_dir in $PATH
4886 IFS=$as_save_IFS
4887 test -z "$as_dir" && as_dir=.
4888 for ac_exec_ext in '' $ac_executable_extensions; do
4889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4890 ac_cv_prog_DB2HTML="$ac_prog"
4891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 break 2
4894 done
4895 done
4899 DB2HTML=$ac_cv_prog_DB2HTML
4900 if test -n "$DB2HTML"; then
4901 echo "$as_me:$LINENO: result: $DB2HTML" >&5
4902 echo "${ECHO_T}$DB2HTML" >&6
4903 else
4904 echo "$as_me:$LINENO: result: no" >&5
4905 echo "${ECHO_T}no" >&6
4908 test -n "$DB2HTML" && break
4909 done
4910 test -n "$DB2HTML" || DB2HTML="false"
4914 for ac_prog in docbook2pdf db2pdf
4916 # Extract the first word of "$ac_prog", so it can be a program name with args.
4917 set dummy $ac_prog; ac_word=$2
4918 echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4920 if test "${ac_cv_prog_DB2PDF+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923 if test -n "$DB2PDF"; then
4924 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4925 else
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4929 IFS=$as_save_IFS
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933 ac_cv_prog_DB2PDF="$ac_prog"
4934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 break 2
4937 done
4938 done
4942 DB2PDF=$ac_cv_prog_DB2PDF
4943 if test -n "$DB2PDF"; then
4944 echo "$as_me:$LINENO: result: $DB2PDF" >&5
4945 echo "${ECHO_T}$DB2PDF" >&6
4946 else
4947 echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6
4951 test -n "$DB2PDF" && break
4952 done
4953 test -n "$DB2PDF" || DB2PDF="false"
4957 for ac_prog in docbook2ps db2ps
4959 # Extract the first word of "$ac_prog", so it can be a program name with args.
4960 set dummy $ac_prog; ac_word=$2
4961 echo "$as_me:$LINENO: checking for $ac_word" >&5
4962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4963 if test "${ac_cv_prog_DB2PS+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966 if test -n "$DB2PS"; then
4967 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4968 else
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4976 ac_cv_prog_DB2PS="$ac_prog"
4977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 break 2
4980 done
4981 done
4985 DB2PS=$ac_cv_prog_DB2PS
4986 if test -n "$DB2PS"; then
4987 echo "$as_me:$LINENO: result: $DB2PS" >&5
4988 echo "${ECHO_T}$DB2PS" >&6
4989 else
4990 echo "$as_me:$LINENO: result: no" >&5
4991 echo "${ECHO_T}no" >&6
4994 test -n "$DB2PS" && break
4995 done
4996 test -n "$DB2PS" || DB2PS="false"
5000 for ac_prog in docbook2txt db2txt
5002 # Extract the first word of "$ac_prog", so it can be a program name with args.
5003 set dummy $ac_prog; ac_word=$2
5004 echo "$as_me:$LINENO: checking for $ac_word" >&5
5005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5006 if test "${ac_cv_prog_DB2TXT+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009 if test -n "$DB2TXT"; then
5010 ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5019 ac_cv_prog_DB2TXT="$ac_prog"
5020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5023 done
5024 done
5028 DB2TXT=$ac_cv_prog_DB2TXT
5029 if test -n "$DB2TXT"; then
5030 echo "$as_me:$LINENO: result: $DB2TXT" >&5
5031 echo "${ECHO_T}$DB2TXT" >&6
5032 else
5033 echo "$as_me:$LINENO: result: no" >&5
5034 echo "${ECHO_T}no" >&6
5037 test -n "$DB2TXT" && break
5038 done
5039 test -n "$DB2TXT" || DB2TXT="false"
5045 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
5046 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5047 if test "${ac_cv_lib_m_sqrt+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5049 else
5050 ac_check_lib_save_LIBS=$LIBS
5051 LIBS="-lm $LIBS"
5052 cat >conftest.$ac_ext <<_ACEOF
5053 #line $LINENO "configure"
5054 /* confdefs.h. */
5055 _ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h. */
5060 /* Override any gcc2 internal prototype to avoid an error. */
5061 #ifdef __cplusplus
5062 extern "C"
5063 #endif
5064 /* We use char because int might match the return type of a gcc2
5065 builtin and then its argument prototype would still apply. */
5066 char sqrt ();
5068 main ()
5070 sqrt ();
5072 return 0;
5074 _ACEOF
5075 rm -f conftest.$ac_objext conftest$ac_exeext
5076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5077 (eval $ac_link) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); } &&
5081 { ac_try='test -s conftest$ac_exeext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 (eval $ac_try) 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5087 ac_cv_lib_m_sqrt=yes
5088 else
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5092 ac_cv_lib_m_sqrt=no
5094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5095 LIBS=$ac_check_lib_save_LIBS
5097 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
5098 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5099 if test $ac_cv_lib_m_sqrt = yes; then
5100 cat >>confdefs.h <<_ACEOF
5101 #define HAVE_LIBM 1
5102 _ACEOF
5104 LIBS="-lm $LIBS"
5109 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5110 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5111 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5113 else
5114 ac_check_lib_save_LIBS=$LIBS
5115 LIBS="-li386 $LIBS"
5116 cat >conftest.$ac_ext <<_ACEOF
5117 #line $LINENO "configure"
5118 /* confdefs.h. */
5119 _ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5124 /* Override any gcc2 internal prototype to avoid an error. */
5125 #ifdef __cplusplus
5126 extern "C"
5127 #endif
5128 /* We use char because int might match the return type of a gcc2
5129 builtin and then its argument prototype would still apply. */
5130 char i386_set_ldt ();
5132 main ()
5134 i386_set_ldt ();
5136 return 0;
5138 _ACEOF
5139 rm -f conftest.$ac_objext conftest$ac_exeext
5140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5141 (eval $ac_link) 2>&5
5142 ac_status=$?
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } &&
5145 { ac_try='test -s conftest$ac_exeext'
5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 (eval $ac_try) 2>&5
5148 ac_status=$?
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; }; then
5151 ac_cv_lib_i386_i386_set_ldt=yes
5152 else
5153 echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5156 ac_cv_lib_i386_i386_set_ldt=no
5158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5159 LIBS=$ac_check_lib_save_LIBS
5161 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5162 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5163 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5164 cat >>confdefs.h <<_ACEOF
5165 #define HAVE_LIBI386 1
5166 _ACEOF
5168 LIBS="-li386 $LIBS"
5173 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5174 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5175 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178 ac_check_lib_save_LIBS=$LIBS
5179 LIBS="-lossaudio $LIBS"
5180 cat >conftest.$ac_ext <<_ACEOF
5181 #line $LINENO "configure"
5182 /* confdefs.h. */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5188 /* Override any gcc2 internal prototype to avoid an error. */
5189 #ifdef __cplusplus
5190 extern "C"
5191 #endif
5192 /* We use char because int might match the return type of a gcc2
5193 builtin and then its argument prototype would still apply. */
5194 char _oss_ioctl ();
5196 main ()
5198 _oss_ioctl ();
5200 return 0;
5202 _ACEOF
5203 rm -f conftest.$ac_objext conftest$ac_exeext
5204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5205 (eval $ac_link) 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } &&
5209 { ac_try='test -s conftest$ac_exeext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 (eval $ac_try) 2>&5
5212 ac_status=$?
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5215 ac_cv_lib_ossaudio__oss_ioctl=yes
5216 else
5217 echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5220 ac_cv_lib_ossaudio__oss_ioctl=no
5222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5223 LIBS=$ac_check_lib_save_LIBS
5225 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5226 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5227 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5228 cat >>confdefs.h <<_ACEOF
5229 #define HAVE_LIBOSSAUDIO 1
5230 _ACEOF
5232 LIBS="-lossaudio $LIBS"
5237 for ac_func in iswalnum
5239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5240 echo "$as_me:$LINENO: checking for $ac_func" >&5
5241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5242 if eval "test \"\${$as_ac_var+set}\" = set"; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245 cat >conftest.$ac_ext <<_ACEOF
5246 #line $LINENO "configure"
5247 /* confdefs.h. */
5248 _ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h. */
5252 /* System header to define __stub macros and hopefully few prototypes,
5253 which can conflict with char $ac_func (); below.
5254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5255 <limits.h> exists even on freestanding compilers. */
5256 #ifdef __STDC__
5257 # include <limits.h>
5258 #else
5259 # include <assert.h>
5260 #endif
5261 /* Override any gcc2 internal prototype to avoid an error. */
5262 #ifdef __cplusplus
5263 extern "C"
5265 #endif
5266 /* We use char because int might match the return type of a gcc2
5267 builtin and then its argument prototype would still apply. */
5268 char $ac_func ();
5269 /* The GNU C library defines this for functions which it implements
5270 to always fail with ENOSYS. Some functions are actually named
5271 something starting with __ and the normal name is an alias. */
5272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5273 choke me
5274 #else
5275 char (*f) () = $ac_func;
5276 #endif
5277 #ifdef __cplusplus
5279 #endif
5282 main ()
5284 return f != $ac_func;
5286 return 0;
5288 _ACEOF
5289 rm -f conftest.$ac_objext conftest$ac_exeext
5290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5291 (eval $ac_link) 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } &&
5295 { ac_try='test -s conftest$ac_exeext'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 (eval $ac_try) 2>&5
5298 ac_status=$?
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5301 eval "$as_ac_var=yes"
5302 else
5303 echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5306 eval "$as_ac_var=no"
5308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5311 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5312 if test `eval echo '${'$as_ac_var'}'` = yes; then
5313 cat >>confdefs.h <<_ACEOF
5314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5315 _ACEOF
5317 else
5319 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5320 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5321 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324 ac_check_lib_save_LIBS=$LIBS
5325 LIBS="-lw $LIBS"
5326 cat >conftest.$ac_ext <<_ACEOF
5327 #line $LINENO "configure"
5328 /* confdefs.h. */
5329 _ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h. */
5334 /* Override any gcc2 internal prototype to avoid an error. */
5335 #ifdef __cplusplus
5336 extern "C"
5337 #endif
5338 /* We use char because int might match the return type of a gcc2
5339 builtin and then its argument prototype would still apply. */
5340 char iswalnum ();
5342 main ()
5344 iswalnum ();
5346 return 0;
5348 _ACEOF
5349 rm -f conftest.$ac_objext conftest$ac_exeext
5350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5351 (eval $ac_link) 2>&5
5352 ac_status=$?
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } &&
5355 { ac_try='test -s conftest$ac_exeext'
5356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357 (eval $ac_try) 2>&5
5358 ac_status=$?
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; }; then
5361 ac_cv_lib_w_iswalnum=yes
5362 else
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5366 ac_cv_lib_w_iswalnum=no
5368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5369 LIBS=$ac_check_lib_save_LIBS
5371 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
5372 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5373 if test $ac_cv_lib_w_iswalnum = yes; then
5374 cat >>confdefs.h <<_ACEOF
5375 #define HAVE_LIBW 1
5376 _ACEOF
5378 LIBS="-lw $LIBS"
5383 done
5386 for ac_func in gethostbyname
5388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5389 echo "$as_me:$LINENO: checking for $ac_func" >&5
5390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5391 if eval "test \"\${$as_ac_var+set}\" = set"; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 else
5394 cat >conftest.$ac_ext <<_ACEOF
5395 #line $LINENO "configure"
5396 /* confdefs.h. */
5397 _ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h. */
5401 /* System header to define __stub macros and hopefully few prototypes,
5402 which can conflict with char $ac_func (); below.
5403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5404 <limits.h> exists even on freestanding compilers. */
5405 #ifdef __STDC__
5406 # include <limits.h>
5407 #else
5408 # include <assert.h>
5409 #endif
5410 /* Override any gcc2 internal prototype to avoid an error. */
5411 #ifdef __cplusplus
5412 extern "C"
5414 #endif
5415 /* We use char because int might match the return type of a gcc2
5416 builtin and then its argument prototype would still apply. */
5417 char $ac_func ();
5418 /* The GNU C library defines this for functions which it implements
5419 to always fail with ENOSYS. Some functions are actually named
5420 something starting with __ and the normal name is an alias. */
5421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5422 choke me
5423 #else
5424 char (*f) () = $ac_func;
5425 #endif
5426 #ifdef __cplusplus
5428 #endif
5431 main ()
5433 return f != $ac_func;
5435 return 0;
5437 _ACEOF
5438 rm -f conftest.$ac_objext conftest$ac_exeext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5440 (eval $ac_link) 2>&5
5441 ac_status=$?
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } &&
5444 { ac_try='test -s conftest$ac_exeext'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446 (eval $ac_try) 2>&5
5447 ac_status=$?
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; }; then
5450 eval "$as_ac_var=yes"
5451 else
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5455 eval "$as_ac_var=no"
5457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5461 if test `eval echo '${'$as_ac_var'}'` = yes; then
5462 cat >>confdefs.h <<_ACEOF
5463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5464 _ACEOF
5466 else
5468 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5469 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5470 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473 ac_check_lib_save_LIBS=$LIBS
5474 LIBS="-lnsl $LIBS"
5475 cat >conftest.$ac_ext <<_ACEOF
5476 #line $LINENO "configure"
5477 /* confdefs.h. */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5483 /* Override any gcc2 internal prototype to avoid an error. */
5484 #ifdef __cplusplus
5485 extern "C"
5486 #endif
5487 /* We use char because int might match the return type of a gcc2
5488 builtin and then its argument prototype would still apply. */
5489 char gethostbyname ();
5491 main ()
5493 gethostbyname ();
5495 return 0;
5497 _ACEOF
5498 rm -f conftest.$ac_objext conftest$ac_exeext
5499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5500 (eval $ac_link) 2>&5
5501 ac_status=$?
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } &&
5504 { ac_try='test -s conftest$ac_exeext'
5505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506 (eval $ac_try) 2>&5
5507 ac_status=$?
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; }; then
5510 ac_cv_lib_nsl_gethostbyname=yes
5511 else
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5515 ac_cv_lib_nsl_gethostbyname=no
5517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5518 LIBS=$ac_check_lib_save_LIBS
5520 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5521 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5522 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5523 cat >>confdefs.h <<_ACEOF
5524 #define HAVE_LIBNSL 1
5525 _ACEOF
5527 LIBS="-lnsl $LIBS"
5532 done
5535 for ac_func in connect
5537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5538 echo "$as_me:$LINENO: checking for $ac_func" >&5
5539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5540 if eval "test \"\${$as_ac_var+set}\" = set"; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 else
5543 cat >conftest.$ac_ext <<_ACEOF
5544 #line $LINENO "configure"
5545 /* confdefs.h. */
5546 _ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h. */
5550 /* System header to define __stub macros and hopefully few prototypes,
5551 which can conflict with char $ac_func (); below.
5552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5553 <limits.h> exists even on freestanding compilers. */
5554 #ifdef __STDC__
5555 # include <limits.h>
5556 #else
5557 # include <assert.h>
5558 #endif
5559 /* Override any gcc2 internal prototype to avoid an error. */
5560 #ifdef __cplusplus
5561 extern "C"
5563 #endif
5564 /* We use char because int might match the return type of a gcc2
5565 builtin and then its argument prototype would still apply. */
5566 char $ac_func ();
5567 /* The GNU C library defines this for functions which it implements
5568 to always fail with ENOSYS. Some functions are actually named
5569 something starting with __ and the normal name is an alias. */
5570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5571 choke me
5572 #else
5573 char (*f) () = $ac_func;
5574 #endif
5575 #ifdef __cplusplus
5577 #endif
5580 main ()
5582 return f != $ac_func;
5584 return 0;
5586 _ACEOF
5587 rm -f conftest.$ac_objext conftest$ac_exeext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5589 (eval $ac_link) 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } &&
5593 { ac_try='test -s conftest$ac_exeext'
5594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595 (eval $ac_try) 2>&5
5596 ac_status=$?
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; }; then
5599 eval "$as_ac_var=yes"
5600 else
5601 echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5604 eval "$as_ac_var=no"
5606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5610 if test `eval echo '${'$as_ac_var'}'` = yes; then
5611 cat >>confdefs.h <<_ACEOF
5612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5613 _ACEOF
5615 else
5617 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5618 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5619 if test "${ac_cv_lib_socket_connect+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622 ac_check_lib_save_LIBS=$LIBS
5623 LIBS="-lsocket $LIBS"
5624 cat >conftest.$ac_ext <<_ACEOF
5625 #line $LINENO "configure"
5626 /* confdefs.h. */
5627 _ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h. */
5632 /* Override any gcc2 internal prototype to avoid an error. */
5633 #ifdef __cplusplus
5634 extern "C"
5635 #endif
5636 /* We use char because int might match the return type of a gcc2
5637 builtin and then its argument prototype would still apply. */
5638 char connect ();
5640 main ()
5642 connect ();
5644 return 0;
5646 _ACEOF
5647 rm -f conftest.$ac_objext conftest$ac_exeext
5648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5649 (eval $ac_link) 2>&5
5650 ac_status=$?
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } &&
5653 { ac_try='test -s conftest$ac_exeext'
5654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655 (eval $ac_try) 2>&5
5656 ac_status=$?
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); }; }; then
5659 ac_cv_lib_socket_connect=yes
5660 else
5661 echo "$as_me: failed program was:" >&5
5662 sed 's/^/| /' conftest.$ac_ext >&5
5664 ac_cv_lib_socket_connect=no
5666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5667 LIBS=$ac_check_lib_save_LIBS
5669 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5670 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5671 if test $ac_cv_lib_socket_connect = yes; then
5672 cat >>confdefs.h <<_ACEOF
5673 #define HAVE_LIBSOCKET 1
5674 _ACEOF
5676 LIBS="-lsocket $LIBS"
5681 done
5684 for ac_func in inet_aton
5686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5687 echo "$as_me:$LINENO: checking for $ac_func" >&5
5688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5689 if eval "test \"\${$as_ac_var+set}\" = set"; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692 cat >conftest.$ac_ext <<_ACEOF
5693 #line $LINENO "configure"
5694 /* confdefs.h. */
5695 _ACEOF
5696 cat confdefs.h >>conftest.$ac_ext
5697 cat >>conftest.$ac_ext <<_ACEOF
5698 /* end confdefs.h. */
5699 /* System header to define __stub macros and hopefully few prototypes,
5700 which can conflict with char $ac_func (); below.
5701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5702 <limits.h> exists even on freestanding compilers. */
5703 #ifdef __STDC__
5704 # include <limits.h>
5705 #else
5706 # include <assert.h>
5707 #endif
5708 /* Override any gcc2 internal prototype to avoid an error. */
5709 #ifdef __cplusplus
5710 extern "C"
5712 #endif
5713 /* We use char because int might match the return type of a gcc2
5714 builtin and then its argument prototype would still apply. */
5715 char $ac_func ();
5716 /* The GNU C library defines this for functions which it implements
5717 to always fail with ENOSYS. Some functions are actually named
5718 something starting with __ and the normal name is an alias. */
5719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5720 choke me
5721 #else
5722 char (*f) () = $ac_func;
5723 #endif
5724 #ifdef __cplusplus
5726 #endif
5729 main ()
5731 return f != $ac_func;
5733 return 0;
5735 _ACEOF
5736 rm -f conftest.$ac_objext conftest$ac_exeext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5738 (eval $ac_link) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try='test -s conftest$ac_exeext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 (eval $ac_try) 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 eval "$as_ac_var=yes"
5749 else
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5753 eval "$as_ac_var=no"
5755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5759 if test `eval echo '${'$as_ac_var'}'` = yes; then
5760 cat >>confdefs.h <<_ACEOF
5761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5762 _ACEOF
5764 else
5766 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5767 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5768 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771 ac_check_lib_save_LIBS=$LIBS
5772 LIBS="-lresolv $LIBS"
5773 cat >conftest.$ac_ext <<_ACEOF
5774 #line $LINENO "configure"
5775 /* confdefs.h. */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5781 /* Override any gcc2 internal prototype to avoid an error. */
5782 #ifdef __cplusplus
5783 extern "C"
5784 #endif
5785 /* We use char because int might match the return type of a gcc2
5786 builtin and then its argument prototype would still apply. */
5787 char inet_aton ();
5789 main ()
5791 inet_aton ();
5793 return 0;
5795 _ACEOF
5796 rm -f conftest.$ac_objext conftest$ac_exeext
5797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5798 (eval $ac_link) 2>&5
5799 ac_status=$?
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } &&
5802 { ac_try='test -s conftest$ac_exeext'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 (eval $ac_try) 2>&5
5805 ac_status=$?
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; }; then
5808 ac_cv_lib_resolv_inet_aton=yes
5809 else
5810 echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5813 ac_cv_lib_resolv_inet_aton=no
5815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5816 LIBS=$ac_check_lib_save_LIBS
5818 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5819 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5820 if test $ac_cv_lib_resolv_inet_aton = yes; then
5821 cat >>confdefs.h <<_ACEOF
5822 #define HAVE_LIBRESOLV 1
5823 _ACEOF
5825 LIBS="-lresolv $LIBS"
5830 done
5833 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5834 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5835 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838 ac_check_lib_save_LIBS=$LIBS
5839 LIBS="-lxpg4 $LIBS"
5840 cat >conftest.$ac_ext <<_ACEOF
5841 #line $LINENO "configure"
5842 /* confdefs.h. */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5848 /* Override any gcc2 internal prototype to avoid an error. */
5849 #ifdef __cplusplus
5850 extern "C"
5851 #endif
5852 /* We use char because int might match the return type of a gcc2
5853 builtin and then its argument prototype would still apply. */
5854 char _xpg4_setrunelocale ();
5856 main ()
5858 _xpg4_setrunelocale ();
5860 return 0;
5862 _ACEOF
5863 rm -f conftest.$ac_objext conftest$ac_exeext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5865 (eval $ac_link) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } &&
5869 { ac_try='test -s conftest$ac_exeext'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 (eval $ac_try) 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5876 else
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5880 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5883 LIBS=$ac_check_lib_save_LIBS
5885 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5886 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5887 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5888 cat >>confdefs.h <<_ACEOF
5889 #define HAVE_LIBXPG4 1
5890 _ACEOF
5892 LIBS="-lxpg4 $LIBS"
5896 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
5897 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
5898 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 else
5901 ac_check_lib_save_LIBS=$LIBS
5902 LIBS="-lpthread $LIBS"
5903 cat >conftest.$ac_ext <<_ACEOF
5904 #line $LINENO "configure"
5905 /* confdefs.h. */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5911 /* Override any gcc2 internal prototype to avoid an error. */
5912 #ifdef __cplusplus
5913 extern "C"
5914 #endif
5915 /* We use char because int might match the return type of a gcc2
5916 builtin and then its argument prototype would still apply. */
5917 char pthread_create ();
5919 main ()
5921 pthread_create ();
5923 return 0;
5925 _ACEOF
5926 rm -f conftest.$ac_objext conftest$ac_exeext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5928 (eval $ac_link) 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } &&
5932 { ac_try='test -s conftest$ac_exeext'
5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934 (eval $ac_try) 2>&5
5935 ac_status=$?
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
5938 ac_cv_lib_pthread_pthread_create=yes
5939 else
5940 echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5943 ac_cv_lib_pthread_pthread_create=no
5945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5946 LIBS=$ac_check_lib_save_LIBS
5948 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5949 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
5950 if test $ac_cv_lib_pthread_pthread_create = yes; then
5951 LIBPTHREAD="-lpthread"
5956 JPEGLIB=""
5958 echo "$as_me:$LINENO: checking for egrep" >&5
5959 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5960 if test "${ac_cv_prog_egrep+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5964 then ac_cv_prog_egrep='grep -E'
5965 else ac_cv_prog_egrep='egrep'
5968 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5969 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5970 EGREP=$ac_cv_prog_egrep
5973 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5974 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5975 if test "${ac_cv_header_stdc+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 else
5978 cat >conftest.$ac_ext <<_ACEOF
5979 #line $LINENO "configure"
5980 /* confdefs.h. */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985 #include <stdlib.h>
5986 #include <stdarg.h>
5987 #include <string.h>
5988 #include <float.h>
5991 main ()
5995 return 0;
5997 _ACEOF
5998 rm -f conftest.$ac_objext
5999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6000 (eval $ac_compile) 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } &&
6004 { ac_try='test -s conftest.$ac_objext'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 (eval $ac_try) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; }; then
6010 ac_cv_header_stdc=yes
6011 else
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6015 ac_cv_header_stdc=no
6017 rm -f conftest.$ac_objext conftest.$ac_ext
6019 if test $ac_cv_header_stdc = yes; then
6020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6021 cat >conftest.$ac_ext <<_ACEOF
6022 #line $LINENO "configure"
6023 /* confdefs.h. */
6024 _ACEOF
6025 cat confdefs.h >>conftest.$ac_ext
6026 cat >>conftest.$ac_ext <<_ACEOF
6027 /* end confdefs.h. */
6028 #include <string.h>
6030 _ACEOF
6031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6032 $EGREP "memchr" >/dev/null 2>&1; then
6034 else
6035 ac_cv_header_stdc=no
6037 rm -f conftest*
6041 if test $ac_cv_header_stdc = yes; then
6042 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6043 cat >conftest.$ac_ext <<_ACEOF
6044 #line $LINENO "configure"
6045 /* confdefs.h. */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6050 #include <stdlib.h>
6052 _ACEOF
6053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6054 $EGREP "free" >/dev/null 2>&1; then
6056 else
6057 ac_cv_header_stdc=no
6059 rm -f conftest*
6063 if test $ac_cv_header_stdc = yes; then
6064 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6065 if test "$cross_compiling" = yes; then
6067 else
6068 cat >conftest.$ac_ext <<_ACEOF
6069 #line $LINENO "configure"
6070 /* confdefs.h. */
6071 _ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6075 #include <ctype.h>
6076 #if ((' ' & 0x0FF) == 0x020)
6077 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6078 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6079 #else
6080 # define ISLOWER(c) \
6081 (('a' <= (c) && (c) <= 'i') \
6082 || ('j' <= (c) && (c) <= 'r') \
6083 || ('s' <= (c) && (c) <= 'z'))
6084 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6085 #endif
6087 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6089 main ()
6091 int i;
6092 for (i = 0; i < 256; i++)
6093 if (XOR (islower (i), ISLOWER (i))
6094 || toupper (i) != TOUPPER (i))
6095 exit(2);
6096 exit (0);
6098 _ACEOF
6099 rm -f conftest$ac_exeext
6100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6101 (eval $ac_link) 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 (eval $ac_try) 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; }; then
6111 else
6112 echo "$as_me: program exited with status $ac_status" >&5
6113 echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6116 ( exit $ac_status )
6117 ac_cv_header_stdc=no
6119 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6123 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6124 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6125 if test $ac_cv_header_stdc = yes; then
6127 cat >>confdefs.h <<\_ACEOF
6128 #define STDC_HEADERS 1
6129 _ACEOF
6133 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6143 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6144 inttypes.h stdint.h unistd.h
6146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6147 echo "$as_me:$LINENO: checking for $ac_header" >&5
6148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152 cat >conftest.$ac_ext <<_ACEOF
6153 #line $LINENO "configure"
6154 /* confdefs.h. */
6155 _ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h. */
6159 $ac_includes_default
6161 #include <$ac_header>
6162 _ACEOF
6163 rm -f conftest.$ac_objext
6164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6165 (eval $ac_compile) 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try='test -s conftest.$ac_objext'
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 (eval $ac_try) 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; }; then
6175 eval "$as_ac_Header=yes"
6176 else
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6180 eval "$as_ac_Header=no"
6182 rm -f conftest.$ac_objext conftest.$ac_ext
6184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6187 cat >>confdefs.h <<_ACEOF
6188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6189 _ACEOF
6193 done
6197 for ac_header in jpeglib.h
6199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6201 echo "$as_me:$LINENO: checking for $ac_header" >&5
6202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6208 else
6209 # Is the header compilable?
6210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6212 cat >conftest.$ac_ext <<_ACEOF
6213 #line $LINENO "configure"
6214 /* confdefs.h. */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h. */
6219 $ac_includes_default
6220 #include <$ac_header>
6221 _ACEOF
6222 rm -f conftest.$ac_objext
6223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6224 (eval $ac_compile) 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } &&
6228 { ac_try='test -s conftest.$ac_objext'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 (eval $ac_try) 2>&5
6231 ac_status=$?
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; }; then
6234 ac_header_compiler=yes
6235 else
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6239 ac_header_compiler=no
6241 rm -f conftest.$ac_objext conftest.$ac_ext
6242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6243 echo "${ECHO_T}$ac_header_compiler" >&6
6245 # Is the header present?
6246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6248 cat >conftest.$ac_ext <<_ACEOF
6249 #line $LINENO "configure"
6250 /* confdefs.h. */
6251 _ACEOF
6252 cat confdefs.h >>conftest.$ac_ext
6253 cat >>conftest.$ac_ext <<_ACEOF
6254 /* end confdefs.h. */
6255 #include <$ac_header>
6256 _ACEOF
6257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6259 ac_status=$?
6260 grep -v '^ *+' conftest.er1 >conftest.err
6261 rm -f conftest.er1
6262 cat conftest.err >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } >/dev/null; then
6265 if test -s conftest.err; then
6266 ac_cpp_err=$ac_c_preproc_warn_flag
6267 else
6268 ac_cpp_err=
6270 else
6271 ac_cpp_err=yes
6273 if test -z "$ac_cpp_err"; then
6274 ac_header_preproc=yes
6275 else
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6279 ac_header_preproc=no
6281 rm -f conftest.err conftest.$ac_ext
6282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6283 echo "${ECHO_T}$ac_header_preproc" >&6
6285 # So? What about this header?
6286 case $ac_header_compiler:$ac_header_preproc in
6287 yes:no )
6288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6293 cat <<\_ASBOX
6294 ## ------------------------------------ ##
6295 ## Report this to bug-autoconf@gnu.org. ##
6296 ## ------------------------------------ ##
6297 _ASBOX
6299 sed "s/^/$as_me: WARNING: /" >&2
6301 no:yes )
6302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6309 cat <<\_ASBOX
6310 ## ------------------------------------ ##
6311 ## Report this to bug-autoconf@gnu.org. ##
6312 ## ------------------------------------ ##
6313 _ASBOX
6315 sed "s/^/$as_me: WARNING: /" >&2
6317 esac
6318 echo "$as_me:$LINENO: checking for $ac_header" >&5
6319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323 eval "$as_ac_Header=$ac_header_preproc"
6325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6330 cat >>confdefs.h <<_ACEOF
6331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6332 _ACEOF
6333 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
6334 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6335 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 else
6338 ac_check_lib_save_LIBS=$LIBS
6339 LIBS="-ljpeg $LIBS"
6340 cat >conftest.$ac_ext <<_ACEOF
6341 #line $LINENO "configure"
6342 /* confdefs.h. */
6343 _ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6348 /* Override any gcc2 internal prototype to avoid an error. */
6349 #ifdef __cplusplus
6350 extern "C"
6351 #endif
6352 /* We use char because int might match the return type of a gcc2
6353 builtin and then its argument prototype would still apply. */
6354 char jpeg_start_decompress ();
6356 main ()
6358 jpeg_start_decompress ();
6360 return 0;
6362 _ACEOF
6363 rm -f conftest.$ac_objext conftest$ac_exeext
6364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6365 (eval $ac_link) 2>&5
6366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } &&
6369 { ac_try='test -s conftest$ac_exeext'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 (eval $ac_try) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6375 ac_cv_lib_jpeg_jpeg_start_decompress=yes
6376 else
6377 echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6380 ac_cv_lib_jpeg_jpeg_start_decompress=no
6382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6383 LIBS=$ac_check_lib_save_LIBS
6385 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
6386 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6387 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
6389 cat >>confdefs.h <<\_ACEOF
6390 #define HAVE_LIBJPEG 1
6391 _ACEOF
6393 JPEGLIB="-ljpeg"
6400 done
6403 GIFLIB=""
6406 for ac_header in gif_lib.h
6408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6410 echo "$as_me:$LINENO: checking for $ac_header" >&5
6411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6417 else
6418 # Is the header compilable?
6419 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6421 cat >conftest.$ac_ext <<_ACEOF
6422 #line $LINENO "configure"
6423 /* confdefs.h. */
6424 _ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h. */
6428 $ac_includes_default
6429 #include <$ac_header>
6430 _ACEOF
6431 rm -f conftest.$ac_objext
6432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6433 (eval $ac_compile) 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try='test -s conftest.$ac_objext'
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 (eval $ac_try) 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; }; then
6443 ac_header_compiler=yes
6444 else
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6448 ac_header_compiler=no
6450 rm -f conftest.$ac_objext conftest.$ac_ext
6451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6452 echo "${ECHO_T}$ac_header_compiler" >&6
6454 # Is the header present?
6455 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6457 cat >conftest.$ac_ext <<_ACEOF
6458 #line $LINENO "configure"
6459 /* confdefs.h. */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 #include <$ac_header>
6465 _ACEOF
6466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6468 ac_status=$?
6469 grep -v '^ *+' conftest.er1 >conftest.err
6470 rm -f conftest.er1
6471 cat conftest.err >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } >/dev/null; then
6474 if test -s conftest.err; then
6475 ac_cpp_err=$ac_c_preproc_warn_flag
6476 else
6477 ac_cpp_err=
6479 else
6480 ac_cpp_err=yes
6482 if test -z "$ac_cpp_err"; then
6483 ac_header_preproc=yes
6484 else
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6488 ac_header_preproc=no
6490 rm -f conftest.err conftest.$ac_ext
6491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6492 echo "${ECHO_T}$ac_header_preproc" >&6
6494 # So? What about this header?
6495 case $ac_header_compiler:$ac_header_preproc in
6496 yes:no )
6497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6502 cat <<\_ASBOX
6503 ## ------------------------------------ ##
6504 ## Report this to bug-autoconf@gnu.org. ##
6505 ## ------------------------------------ ##
6506 _ASBOX
6508 sed "s/^/$as_me: WARNING: /" >&2
6510 no:yes )
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6518 cat <<\_ASBOX
6519 ## ------------------------------------ ##
6520 ## Report this to bug-autoconf@gnu.org. ##
6521 ## ------------------------------------ ##
6522 _ASBOX
6524 sed "s/^/$as_me: WARNING: /" >&2
6526 esac
6527 echo "$as_me:$LINENO: checking for $ac_header" >&5
6528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532 eval "$as_ac_Header=$ac_header_preproc"
6534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6539 cat >>confdefs.h <<_ACEOF
6540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6541 _ACEOF
6542 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
6543 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
6544 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547 ac_check_lib_save_LIBS=$LIBS
6548 LIBS="-lungif $LIBS"
6549 cat >conftest.$ac_ext <<_ACEOF
6550 #line $LINENO "configure"
6551 /* confdefs.h. */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6557 /* Override any gcc2 internal prototype to avoid an error. */
6558 #ifdef __cplusplus
6559 extern "C"
6560 #endif
6561 /* We use char because int might match the return type of a gcc2
6562 builtin and then its argument prototype would still apply. */
6563 char DGifOpen ();
6565 main ()
6567 DGifOpen ();
6569 return 0;
6571 _ACEOF
6572 rm -f conftest.$ac_objext conftest$ac_exeext
6573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574 (eval $ac_link) 2>&5
6575 ac_status=$?
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } &&
6578 { ac_try='test -s conftest$ac_exeext'
6579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580 (eval $ac_try) 2>&5
6581 ac_status=$?
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }; }; then
6584 ac_cv_lib_ungif_DGifOpen=yes
6585 else
6586 echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.$ac_ext >&5
6589 ac_cv_lib_ungif_DGifOpen=no
6591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6592 LIBS=$ac_check_lib_save_LIBS
6594 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
6595 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
6596 if test $ac_cv_lib_ungif_DGifOpen = yes; then
6598 cat >>confdefs.h <<\_ACEOF
6599 #define HAVE_LIBGIF 1
6600 _ACEOF
6602 GIFLIB="-lungif"
6603 else
6604 echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
6605 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
6606 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 else
6609 ac_check_lib_save_LIBS=$LIBS
6610 LIBS="-lgif $LIBS"
6611 cat >conftest.$ac_ext <<_ACEOF
6612 #line $LINENO "configure"
6613 /* confdefs.h. */
6614 _ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6619 /* Override any gcc2 internal prototype to avoid an error. */
6620 #ifdef __cplusplus
6621 extern "C"
6622 #endif
6623 /* We use char because int might match the return type of a gcc2
6624 builtin and then its argument prototype would still apply. */
6625 char DGifOpen ();
6627 main ()
6629 DGifOpen ();
6631 return 0;
6633 _ACEOF
6634 rm -f conftest.$ac_objext conftest$ac_exeext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6636 (eval $ac_link) 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } &&
6640 { ac_try='test -s conftest$ac_exeext'
6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 (eval $ac_try) 2>&5
6643 ac_status=$?
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6646 ac_cv_lib_gif_DGifOpen=yes
6647 else
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6651 ac_cv_lib_gif_DGifOpen=no
6653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6654 LIBS=$ac_check_lib_save_LIBS
6656 echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
6657 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
6658 if test $ac_cv_lib_gif_DGifOpen = yes; then
6659 cat >>confdefs.h <<\_ACEOF
6660 #define HAVE_LIBGIF 1
6661 _ACEOF
6663 GIFLIB="-lgif"
6670 done
6675 XFILES=""
6677 OPENGLFILES=""
6679 GLU32FILES=""
6681 OPENGL_LIBS=""
6682 if test "$have_x" = "yes"
6683 then
6684 XLIB="-lXext -lX11"
6685 ac_save_CPPFLAGS="$CPPFLAGS"
6686 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6689 for ac_header in X11/Xlib.h
6691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6693 echo "$as_me:$LINENO: checking for $ac_header" >&5
6694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6700 else
6701 # Is the header compilable?
6702 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6704 cat >conftest.$ac_ext <<_ACEOF
6705 #line $LINENO "configure"
6706 /* confdefs.h. */
6707 _ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h. */
6711 $ac_includes_default
6712 #include <$ac_header>
6713 _ACEOF
6714 rm -f conftest.$ac_objext
6715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6716 (eval $ac_compile) 2>&5
6717 ac_status=$?
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } &&
6720 { ac_try='test -s conftest.$ac_objext'
6721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 (eval $ac_try) 2>&5
6723 ac_status=$?
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; }; then
6726 ac_header_compiler=yes
6727 else
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6731 ac_header_compiler=no
6733 rm -f conftest.$ac_objext conftest.$ac_ext
6734 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6735 echo "${ECHO_T}$ac_header_compiler" >&6
6737 # Is the header present?
6738 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6740 cat >conftest.$ac_ext <<_ACEOF
6741 #line $LINENO "configure"
6742 /* confdefs.h. */
6743 _ACEOF
6744 cat confdefs.h >>conftest.$ac_ext
6745 cat >>conftest.$ac_ext <<_ACEOF
6746 /* end confdefs.h. */
6747 #include <$ac_header>
6748 _ACEOF
6749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6751 ac_status=$?
6752 grep -v '^ *+' conftest.er1 >conftest.err
6753 rm -f conftest.er1
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } >/dev/null; then
6757 if test -s conftest.err; then
6758 ac_cpp_err=$ac_c_preproc_warn_flag
6759 else
6760 ac_cpp_err=
6762 else
6763 ac_cpp_err=yes
6765 if test -z "$ac_cpp_err"; then
6766 ac_header_preproc=yes
6767 else
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6771 ac_header_preproc=no
6773 rm -f conftest.err conftest.$ac_ext
6774 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6775 echo "${ECHO_T}$ac_header_preproc" >&6
6777 # So? What about this header?
6778 case $ac_header_compiler:$ac_header_preproc in
6779 yes:no )
6780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6785 cat <<\_ASBOX
6786 ## ------------------------------------ ##
6787 ## Report this to bug-autoconf@gnu.org. ##
6788 ## ------------------------------------ ##
6789 _ASBOX
6791 sed "s/^/$as_me: WARNING: /" >&2
6793 no:yes )
6794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6801 cat <<\_ASBOX
6802 ## ------------------------------------ ##
6803 ## Report this to bug-autoconf@gnu.org. ##
6804 ## ------------------------------------ ##
6805 _ASBOX
6807 sed "s/^/$as_me: WARNING: /" >&2
6809 esac
6810 echo "$as_me:$LINENO: checking for $ac_header" >&5
6811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 else
6815 eval "$as_ac_Header=$ac_header_preproc"
6817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6822 cat >>confdefs.h <<_ACEOF
6823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6824 _ACEOF
6835 for ac_header in X11/XKBlib.h \
6836 X11/Xutil.h \
6837 X11/extensions/shape.h \
6838 X11/extensions/XShm.h \
6839 X11/extensions/Xrandr.h \
6840 X11/extensions/Xrender.h \
6841 X11/extensions/Xvlib.h \
6842 X11/extensions/xf86dga.h \
6843 X11/extensions/xf86vmode.h
6845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6846 echo "$as_me:$LINENO: checking for $ac_header" >&5
6847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 else
6851 cat >conftest.$ac_ext <<_ACEOF
6852 #line $LINENO "configure"
6853 /* confdefs.h. */
6854 _ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6858 #include <X11/Xlib.h>
6859 #ifdef HAVE_X11_XUTIL_H
6860 # include <X11/Xutil.h>
6861 #endif
6863 #include <$ac_header>
6864 _ACEOF
6865 rm -f conftest.$ac_objext
6866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6867 (eval $ac_compile) 2>&5
6868 ac_status=$?
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } &&
6871 { ac_try='test -s conftest.$ac_objext'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 (eval $ac_try) 2>&5
6874 ac_status=$?
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; }; then
6877 eval "$as_ac_Header=yes"
6878 else
6879 echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6882 eval "$as_ac_Header=no"
6884 rm -f conftest.$ac_objext conftest.$ac_ext
6886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6889 cat >>confdefs.h <<_ACEOF
6890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6891 _ACEOF
6895 done
6898 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
6899 then
6900 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6901 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6902 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
6904 else
6905 ac_check_lib_save_LIBS=$LIBS
6906 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6907 cat >conftest.$ac_ext <<_ACEOF
6908 #line $LINENO "configure"
6909 /* confdefs.h. */
6910 _ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h. */
6915 /* Override any gcc2 internal prototype to avoid an error. */
6916 #ifdef __cplusplus
6917 extern "C"
6918 #endif
6919 /* We use char because int might match the return type of a gcc2
6920 builtin and then its argument prototype would still apply. */
6921 char XkbQueryExtension ();
6923 main ()
6925 XkbQueryExtension ();
6927 return 0;
6929 _ACEOF
6930 rm -f conftest.$ac_objext conftest$ac_exeext
6931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6932 (eval $ac_link) 2>&5
6933 ac_status=$?
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); } &&
6936 { ac_try='test -s conftest$ac_exeext'
6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 (eval $ac_try) 2>&5
6939 ac_status=$?
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); }; }; then
6942 ac_cv_lib_X11_XkbQueryExtension=yes
6943 else
6944 echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.$ac_ext >&5
6947 ac_cv_lib_X11_XkbQueryExtension=no
6949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6950 LIBS=$ac_check_lib_save_LIBS
6952 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6953 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6954 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6956 cat >>confdefs.h <<\_ACEOF
6957 #define HAVE_XKB 1
6958 _ACEOF
6964 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
6965 then
6966 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6967 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6968 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971 ac_check_lib_save_LIBS=$LIBS
6972 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6973 cat >conftest.$ac_ext <<_ACEOF
6974 #line $LINENO "configure"
6975 /* confdefs.h. */
6976 _ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h. */
6981 /* Override any gcc2 internal prototype to avoid an error. */
6982 #ifdef __cplusplus
6983 extern "C"
6984 #endif
6985 /* We use char because int might match the return type of a gcc2
6986 builtin and then its argument prototype would still apply. */
6987 char XShmQueryExtension ();
6989 main ()
6991 XShmQueryExtension ();
6993 return 0;
6995 _ACEOF
6996 rm -f conftest.$ac_objext conftest$ac_exeext
6997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6998 (eval $ac_link) 2>&5
6999 ac_status=$?
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); } &&
7002 { ac_try='test -s conftest$ac_exeext'
7003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004 (eval $ac_try) 2>&5
7005 ac_status=$?
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); }; }; then
7008 ac_cv_lib_Xext_XShmQueryExtension=yes
7009 else
7010 echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7013 ac_cv_lib_Xext_XShmQueryExtension=no
7015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7016 LIBS=$ac_check_lib_save_LIBS
7018 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7019 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7020 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7022 cat >>confdefs.h <<\_ACEOF
7023 #define HAVE_LIBXXSHM 1
7024 _ACEOF
7030 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7031 then
7032 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7033 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7034 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037 ac_check_lib_save_LIBS=$LIBS
7038 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7039 cat >conftest.$ac_ext <<_ACEOF
7040 #line $LINENO "configure"
7041 /* confdefs.h. */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7047 /* Override any gcc2 internal prototype to avoid an error. */
7048 #ifdef __cplusplus
7049 extern "C"
7050 #endif
7051 /* We use char because int might match the return type of a gcc2
7052 builtin and then its argument prototype would still apply. */
7053 char XShapeQueryExtension ();
7055 main ()
7057 XShapeQueryExtension ();
7059 return 0;
7061 _ACEOF
7062 rm -f conftest.$ac_objext conftest$ac_exeext
7063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7064 (eval $ac_link) 2>&5
7065 ac_status=$?
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); } &&
7068 { ac_try='test -s conftest$ac_exeext'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070 (eval $ac_try) 2>&5
7071 ac_status=$?
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7074 ac_cv_lib_Xext_XShapeQueryExtension=yes
7075 else
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 ac_cv_lib_Xext_XShapeQueryExtension=no
7081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7082 LIBS=$ac_check_lib_save_LIBS
7084 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7085 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7086 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7088 cat >>confdefs.h <<\_ACEOF
7089 #define HAVE_LIBXSHAPE 1
7090 _ACEOF
7096 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
7097 then
7098 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
7099 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7100 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 else
7103 ac_check_lib_save_LIBS=$LIBS
7104 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7105 cat >conftest.$ac_ext <<_ACEOF
7106 #line $LINENO "configure"
7107 /* confdefs.h. */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7113 /* Override any gcc2 internal prototype to avoid an error. */
7114 #ifdef __cplusplus
7115 extern "C"
7116 #endif
7117 /* We use char because int might match the return type of a gcc2
7118 builtin and then its argument prototype would still apply. */
7119 char XDGAQueryExtension ();
7121 main ()
7123 XDGAQueryExtension ();
7125 return 0;
7127 _ACEOF
7128 rm -f conftest.$ac_objext conftest$ac_exeext
7129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7130 (eval $ac_link) 2>&5
7131 ac_status=$?
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try='test -s conftest$ac_exeext'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 (eval $ac_try) 2>&5
7137 ac_status=$?
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; }; then
7140 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7141 else
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7145 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7148 LIBS=$ac_check_lib_save_LIBS
7150 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
7151 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7152 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7154 cat >>confdefs.h <<\_ACEOF
7155 #define HAVE_LIBXXF86DGA2 1
7156 _ACEOF
7158 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7160 else
7161 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
7162 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7163 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 ac_check_lib_save_LIBS=$LIBS
7167 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7168 $LIBS"
7169 cat >conftest.$ac_ext <<_ACEOF
7170 #line $LINENO "configure"
7171 /* confdefs.h. */
7172 _ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7177 /* Override any gcc2 internal prototype to avoid an error. */
7178 #ifdef __cplusplus
7179 extern "C"
7180 #endif
7181 /* We use char because int might match the return type of a gcc2
7182 builtin and then its argument prototype would still apply. */
7183 char XF86DGAQueryExtension ();
7185 main ()
7187 XF86DGAQueryExtension ();
7189 return 0;
7191 _ACEOF
7192 rm -f conftest.$ac_objext conftest$ac_exeext
7193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7194 (eval $ac_link) 2>&5
7195 ac_status=$?
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } &&
7198 { ac_try='test -s conftest$ac_exeext'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 (eval $ac_try) 2>&5
7201 ac_status=$?
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; }; then
7204 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7205 else
7206 echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7209 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7212 LIBS=$ac_check_lib_save_LIBS
7214 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7215 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7216 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7218 cat >>confdefs.h <<\_ACEOF
7219 #define HAVE_LIBXXF86DGA 1
7220 _ACEOF
7222 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7231 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7232 then
7233 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7234 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7235 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 else
7238 ac_check_lib_save_LIBS=$LIBS
7239 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7240 cat >conftest.$ac_ext <<_ACEOF
7241 #line $LINENO "configure"
7242 /* confdefs.h. */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7248 /* Override any gcc2 internal prototype to avoid an error. */
7249 #ifdef __cplusplus
7250 extern "C"
7251 #endif
7252 /* We use char because int might match the return type of a gcc2
7253 builtin and then its argument prototype would still apply. */
7254 char XF86VidModeQueryExtension ();
7256 main ()
7258 XF86VidModeQueryExtension ();
7260 return 0;
7262 _ACEOF
7263 rm -f conftest.$ac_objext conftest$ac_exeext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7265 (eval $ac_link) 2>&5
7266 ac_status=$?
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } &&
7269 { ac_try='test -s conftest$ac_exeext'
7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271 (eval $ac_try) 2>&5
7272 ac_status=$?
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; }; then
7275 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7276 else
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7280 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7283 LIBS=$ac_check_lib_save_LIBS
7285 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7286 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7287 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7289 cat >>confdefs.h <<\_ACEOF
7290 #define HAVE_LIBXXF86VM 1
7291 _ACEOF
7293 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7299 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
7300 then
7301 echo "$as_me:$LINENO: checking for XRRSetScreenConfigAndRate in -lXrandr" >&5
7302 echo $ECHO_N "checking for XRRSetScreenConfigAndRate in -lXrandr... $ECHO_C" >&6
7303 if test "${ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306 ac_check_lib_save_LIBS=$LIBS
7307 LIBS="-lXrandr $X_LIBS -lXrender -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7308 cat >conftest.$ac_ext <<_ACEOF
7309 #line $LINENO "configure"
7310 /* confdefs.h. */
7311 _ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h. */
7316 /* Override any gcc2 internal prototype to avoid an error. */
7317 #ifdef __cplusplus
7318 extern "C"
7319 #endif
7320 /* We use char because int might match the return type of a gcc2
7321 builtin and then its argument prototype would still apply. */
7322 char XRRSetScreenConfigAndRate ();
7324 main ()
7326 XRRSetScreenConfigAndRate ();
7328 return 0;
7330 _ACEOF
7331 rm -f conftest.$ac_objext conftest$ac_exeext
7332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7333 (eval $ac_link) 2>&5
7334 ac_status=$?
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } &&
7337 { ac_try='test -s conftest$ac_exeext'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 (eval $ac_try) 2>&5
7340 ac_status=$?
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; }; then
7343 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=yes
7344 else
7345 echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7348 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=no
7350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7351 LIBS=$ac_check_lib_save_LIBS
7353 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&5
7354 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&6
7355 if test $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate = yes; then
7357 cat >>confdefs.h <<\_ACEOF
7358 #define HAVE_LIBXRANDR 1
7359 _ACEOF
7361 X_PRE_LIBS="$X_PRE_LIBS -lXrandr -lXrender"
7367 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
7368 then
7369 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
7370 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7371 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374 ac_check_lib_save_LIBS=$LIBS
7375 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7376 cat >conftest.$ac_ext <<_ACEOF
7377 #line $LINENO "configure"
7378 /* confdefs.h. */
7379 _ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h. */
7384 /* Override any gcc2 internal prototype to avoid an error. */
7385 #ifdef __cplusplus
7386 extern "C"
7387 #endif
7388 /* We use char because int might match the return type of a gcc2
7389 builtin and then its argument prototype would still apply. */
7390 char XvShmCreateImage ();
7392 main ()
7394 XvShmCreateImage ();
7396 return 0;
7398 _ACEOF
7399 rm -f conftest.$ac_objext conftest$ac_exeext
7400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7401 (eval $ac_link) 2>&5
7402 ac_status=$?
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); } &&
7405 { ac_try='test -s conftest$ac_exeext'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 (eval $ac_try) 2>&5
7408 ac_status=$?
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
7411 ac_cv_lib_Xv_XvShmCreateImage=yes
7412 else
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7416 ac_cv_lib_Xv_XvShmCreateImage=no
7418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7419 LIBS=$ac_check_lib_save_LIBS
7421 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
7422 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7423 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
7425 cat >>confdefs.h <<\_ACEOF
7426 #define HAVE_XVIDEO 1
7427 _ACEOF
7429 X_PRE_LIBS="$X_PRE_LIBS -lXv"
7438 done
7440 if test "x$with_opengl" != "xno"
7441 then
7442 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
7443 then
7444 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
7445 This prevents linking to OpenGL. Delete the file and restart configure." >&5
7446 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7447 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7448 { (exit 1); exit 1; }; }
7453 for ac_header in GL/gl.h GL/glx.h
7455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7457 echo "$as_me:$LINENO: checking for $ac_header" >&5
7458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7464 else
7465 # Is the header compilable?
7466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7468 cat >conftest.$ac_ext <<_ACEOF
7469 #line $LINENO "configure"
7470 /* confdefs.h. */
7471 _ACEOF
7472 cat confdefs.h >>conftest.$ac_ext
7473 cat >>conftest.$ac_ext <<_ACEOF
7474 /* end confdefs.h. */
7475 $ac_includes_default
7476 #include <$ac_header>
7477 _ACEOF
7478 rm -f conftest.$ac_objext
7479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7480 (eval $ac_compile) 2>&5
7481 ac_status=$?
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } &&
7484 { ac_try='test -s conftest.$ac_objext'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 (eval $ac_try) 2>&5
7487 ac_status=$?
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_header_compiler=yes
7491 else
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7495 ac_header_compiler=no
7497 rm -f conftest.$ac_objext conftest.$ac_ext
7498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7499 echo "${ECHO_T}$ac_header_compiler" >&6
7501 # Is the header present?
7502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7504 cat >conftest.$ac_ext <<_ACEOF
7505 #line $LINENO "configure"
7506 /* confdefs.h. */
7507 _ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7511 #include <$ac_header>
7512 _ACEOF
7513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7515 ac_status=$?
7516 grep -v '^ *+' conftest.er1 >conftest.err
7517 rm -f conftest.er1
7518 cat conftest.err >&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } >/dev/null; then
7521 if test -s conftest.err; then
7522 ac_cpp_err=$ac_c_preproc_warn_flag
7523 else
7524 ac_cpp_err=
7526 else
7527 ac_cpp_err=yes
7529 if test -z "$ac_cpp_err"; then
7530 ac_header_preproc=yes
7531 else
7532 echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7535 ac_header_preproc=no
7537 rm -f conftest.err conftest.$ac_ext
7538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7539 echo "${ECHO_T}$ac_header_preproc" >&6
7541 # So? What about this header?
7542 case $ac_header_compiler:$ac_header_preproc in
7543 yes:no )
7544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7549 cat <<\_ASBOX
7550 ## ------------------------------------ ##
7551 ## Report this to bug-autoconf@gnu.org. ##
7552 ## ------------------------------------ ##
7553 _ASBOX
7555 sed "s/^/$as_me: WARNING: /" >&2
7557 no:yes )
7558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7561 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7565 cat <<\_ASBOX
7566 ## ------------------------------------ ##
7567 ## Report this to bug-autoconf@gnu.org. ##
7568 ## ------------------------------------ ##
7569 _ASBOX
7571 sed "s/^/$as_me: WARNING: /" >&2
7573 esac
7574 echo "$as_me:$LINENO: checking for $ac_header" >&5
7575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579 eval "$as_ac_Header=$ac_header_preproc"
7581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7586 cat >>confdefs.h <<_ACEOF
7587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7588 _ACEOF
7592 done
7594 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
7595 then
7597 for ac_header in GL/glext.h
7599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7600 echo "$as_me:$LINENO: checking for $ac_header" >&5
7601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 else
7605 cat >conftest.$ac_ext <<_ACEOF
7606 #line $LINENO "configure"
7607 /* confdefs.h. */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7612 #include <GL/glx.h>
7614 #include <$ac_header>
7615 _ACEOF
7616 rm -f conftest.$ac_objext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7618 (eval $ac_compile) 2>&5
7619 ac_status=$?
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try='test -s conftest.$ac_objext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 (eval $ac_try) 2>&5
7625 ac_status=$?
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 eval "$as_ac_Header=yes"
7629 else
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7633 eval "$as_ac_Header=no"
7635 rm -f conftest.$ac_objext conftest.$ac_ext
7637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7640 cat >>confdefs.h <<_ACEOF
7641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7642 _ACEOF
7646 done
7648 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7649 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7650 if test "${wine_cv_opengl_version_OK+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 else
7653 cat >conftest.$ac_ext <<_ACEOF
7654 #line $LINENO "configure"
7655 /* confdefs.h. */
7656 _ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7660 #include <GL/gl.h>
7662 main ()
7664 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7666 return 0;
7668 _ACEOF
7669 rm -f conftest.$ac_objext
7670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7671 (eval $ac_compile) 2>&5
7672 ac_status=$?
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); } &&
7675 { ac_try='test -s conftest.$ac_objext'
7676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677 (eval $ac_try) 2>&5
7678 ac_status=$?
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }; }; then
7681 wine_cv_opengl_version_OK="yes"
7682 else
7683 echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7686 wine_cv_opengl_version_OK="no"
7689 rm -f conftest.$ac_objext conftest.$ac_ext
7692 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7693 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7695 if test "$wine_cv_opengl_version_OK" = "yes"
7696 then
7697 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7698 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7699 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 else
7702 ac_check_lib_save_LIBS=$LIBS
7703 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7704 cat >conftest.$ac_ext <<_ACEOF
7705 #line $LINENO "configure"
7706 /* confdefs.h. */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7712 /* Override any gcc2 internal prototype to avoid an error. */
7713 #ifdef __cplusplus
7714 extern "C"
7715 #endif
7716 /* We use char because int might match the return type of a gcc2
7717 builtin and then its argument prototype would still apply. */
7718 char glXCreateContext ();
7720 main ()
7722 glXCreateContext ();
7724 return 0;
7726 _ACEOF
7727 rm -f conftest.$ac_objext conftest$ac_exeext
7728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7729 (eval $ac_link) 2>&5
7730 ac_status=$?
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } &&
7733 { ac_try='test -s conftest$ac_exeext'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 (eval $ac_try) 2>&5
7736 ac_status=$?
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; }; then
7739 ac_cv_lib_GL_glXCreateContext=yes
7740 else
7741 echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7744 ac_cv_lib_GL_glXCreateContext=no
7746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7747 LIBS=$ac_check_lib_save_LIBS
7749 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7750 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7751 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7752 OPENGL_LIBS="-lGL"
7757 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7758 then
7759 OPENGLFILES='$(OPENGLFILES)'
7761 cat >>confdefs.h <<\_ACEOF
7762 #define HAVE_OPENGL 1
7763 _ACEOF
7766 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7767 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7768 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 else
7771 ac_check_lib_save_LIBS=$LIBS
7772 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7773 cat >conftest.$ac_ext <<_ACEOF
7774 #line $LINENO "configure"
7775 /* confdefs.h. */
7776 _ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7781 /* Override any gcc2 internal prototype to avoid an error. */
7782 #ifdef __cplusplus
7783 extern "C"
7784 #endif
7785 /* We use char because int might match the return type of a gcc2
7786 builtin and then its argument prototype would still apply. */
7787 char glXGetProcAddressARB ();
7789 main ()
7791 glXGetProcAddressARB ();
7793 return 0;
7795 _ACEOF
7796 rm -f conftest.$ac_objext conftest$ac_exeext
7797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7798 (eval $ac_link) 2>&5
7799 ac_status=$?
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } &&
7802 { ac_try='test -s conftest$ac_exeext'
7803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804 (eval $ac_try) 2>&5
7805 ac_status=$?
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); }; }; then
7808 ac_cv_lib_GL_glXGetProcAddressARB=yes
7809 else
7810 echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7813 ac_cv_lib_GL_glXGetProcAddressARB=no
7815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7816 LIBS=$ac_check_lib_save_LIBS
7818 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7819 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7820 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7822 cat >>confdefs.h <<\_ACEOF
7823 #define HAVE_GLX_GETPROCADDRESS 1
7824 _ACEOF
7829 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7830 then
7831 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7832 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7833 if test "${wine_cv_extension_prototypes+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836 cat >conftest.$ac_ext <<_ACEOF
7837 #line $LINENO "configure"
7838 /* confdefs.h. */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7843 #include <GL/gl.h>
7844 #ifdef HAVE_GL_GLEXT_H
7845 # include <GL/glext.h>
7846 #endif
7849 main ()
7851 PFNGLCOLORTABLEEXTPROC test_proc;
7853 return 0;
7855 _ACEOF
7856 rm -f conftest.$ac_objext
7857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7858 (eval $ac_compile) 2>&5
7859 ac_status=$?
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } &&
7862 { ac_try='test -s conftest.$ac_objext'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864 (eval $ac_try) 2>&5
7865 ac_status=$?
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; }; then
7868 wine_cv_extension_prototypes="yes"
7869 else
7870 echo "$as_me: failed program was:" >&5
7871 sed 's/^/| /' conftest.$ac_ext >&5
7873 wine_cv_extension_prototypes="no"
7876 rm -f conftest.$ac_objext conftest.$ac_ext
7879 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7880 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7881 if test "$wine_cv_extension_prototypes" = "yes"
7882 then
7884 cat >>confdefs.h <<\_ACEOF
7885 #define HAVE_GLEXT_PROTOTYPES 1
7886 _ACEOF
7892 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7893 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7894 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 else
7897 ac_check_lib_save_LIBS=$LIBS
7898 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7899 $LIBS"
7900 cat >conftest.$ac_ext <<_ACEOF
7901 #line $LINENO "configure"
7902 /* confdefs.h. */
7903 _ACEOF
7904 cat confdefs.h >>conftest.$ac_ext
7905 cat >>conftest.$ac_ext <<_ACEOF
7906 /* end confdefs.h. */
7908 /* Override any gcc2 internal prototype to avoid an error. */
7909 #ifdef __cplusplus
7910 extern "C"
7911 #endif
7912 /* We use char because int might match the return type of a gcc2
7913 builtin and then its argument prototype would still apply. */
7914 char gluLookAt ();
7916 main ()
7918 gluLookAt ();
7920 return 0;
7922 _ACEOF
7923 rm -f conftest.$ac_objext conftest$ac_exeext
7924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7925 (eval $ac_link) 2>&5
7926 ac_status=$?
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } &&
7929 { ac_try='test -s conftest$ac_exeext'
7930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931 (eval $ac_try) 2>&5
7932 ac_status=$?
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; }; then
7935 ac_cv_lib_GLU_gluLookAt=yes
7936 else
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7940 ac_cv_lib_GLU_gluLookAt=no
7942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7943 LIBS=$ac_check_lib_save_LIBS
7945 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7946 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7947 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7948 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
7949 GLU32FILES='$(GLU32FILES)'
7957 NASLIBS=""
7960 for ac_header in audio/audiolib.h
7962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7964 echo "$as_me:$LINENO: checking for $ac_header" >&5
7965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7971 else
7972 # Is the header compilable?
7973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7975 cat >conftest.$ac_ext <<_ACEOF
7976 #line $LINENO "configure"
7977 /* confdefs.h. */
7978 _ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h. */
7982 $ac_includes_default
7983 #include <$ac_header>
7984 _ACEOF
7985 rm -f conftest.$ac_objext
7986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7987 (eval $ac_compile) 2>&5
7988 ac_status=$?
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } &&
7991 { ac_try='test -s conftest.$ac_objext'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 (eval $ac_try) 2>&5
7994 ac_status=$?
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; }; then
7997 ac_header_compiler=yes
7998 else
7999 echo "$as_me: failed program was:" >&5
8000 sed 's/^/| /' conftest.$ac_ext >&5
8002 ac_header_compiler=no
8004 rm -f conftest.$ac_objext conftest.$ac_ext
8005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8006 echo "${ECHO_T}$ac_header_compiler" >&6
8008 # Is the header present?
8009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8011 cat >conftest.$ac_ext <<_ACEOF
8012 #line $LINENO "configure"
8013 /* confdefs.h. */
8014 _ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8018 #include <$ac_header>
8019 _ACEOF
8020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8022 ac_status=$?
8023 grep -v '^ *+' conftest.er1 >conftest.err
8024 rm -f conftest.er1
8025 cat conftest.err >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } >/dev/null; then
8028 if test -s conftest.err; then
8029 ac_cpp_err=$ac_c_preproc_warn_flag
8030 else
8031 ac_cpp_err=
8033 else
8034 ac_cpp_err=yes
8036 if test -z "$ac_cpp_err"; then
8037 ac_header_preproc=yes
8038 else
8039 echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8042 ac_header_preproc=no
8044 rm -f conftest.err conftest.$ac_ext
8045 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8046 echo "${ECHO_T}$ac_header_preproc" >&6
8048 # So? What about this header?
8049 case $ac_header_compiler:$ac_header_preproc in
8050 yes:no )
8051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8056 cat <<\_ASBOX
8057 ## ------------------------------------ ##
8058 ## Report this to bug-autoconf@gnu.org. ##
8059 ## ------------------------------------ ##
8060 _ASBOX
8062 sed "s/^/$as_me: WARNING: /" >&2
8064 no:yes )
8065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8072 cat <<\_ASBOX
8073 ## ------------------------------------ ##
8074 ## Report this to bug-autoconf@gnu.org. ##
8075 ## ------------------------------------ ##
8076 _ASBOX
8078 sed "s/^/$as_me: WARNING: /" >&2
8080 esac
8081 echo "$as_me:$LINENO: checking for $ac_header" >&5
8082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8084 echo $ECHO_N "(cached) $ECHO_C" >&6
8085 else
8086 eval "$as_ac_Header=$ac_header_preproc"
8088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8093 cat >>confdefs.h <<_ACEOF
8094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8095 _ACEOF
8097 for ac_header in audio/soundlib.h
8099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8100 echo "$as_me:$LINENO: checking for $ac_header" >&5
8101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 else
8105 cat >conftest.$ac_ext <<_ACEOF
8106 #line $LINENO "configure"
8107 /* confdefs.h. */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8112 #include <audio/audiolib.h>
8114 #include <$ac_header>
8115 _ACEOF
8116 rm -f conftest.$ac_objext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8118 (eval $ac_compile) 2>&5
8119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try='test -s conftest.$ac_objext'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 (eval $ac_try) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8128 eval "$as_ac_Header=yes"
8129 else
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8133 eval "$as_ac_Header=no"
8135 rm -f conftest.$ac_objext conftest.$ac_ext
8137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8140 cat >>confdefs.h <<_ACEOF
8141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8142 _ACEOF
8146 done
8148 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8149 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8150 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8152 else
8153 ac_check_lib_save_LIBS=$LIBS
8154 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8155 cat >conftest.$ac_ext <<_ACEOF
8156 #line $LINENO "configure"
8157 /* confdefs.h. */
8158 _ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h. */
8163 /* Override any gcc2 internal prototype to avoid an error. */
8164 #ifdef __cplusplus
8165 extern "C"
8166 #endif
8167 /* We use char because int might match the return type of a gcc2
8168 builtin and then its argument prototype would still apply. */
8169 char AuCreateFlow ();
8171 main ()
8173 AuCreateFlow ();
8175 return 0;
8177 _ACEOF
8178 rm -f conftest.$ac_objext conftest$ac_exeext
8179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8180 (eval $ac_link) 2>&5
8181 ac_status=$?
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } &&
8184 { ac_try='test -s conftest$ac_exeext'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 (eval $ac_try) 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 ac_cv_lib_audio_AuCreateFlow=yes
8191 else
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8195 ac_cv_lib_audio_AuCreateFlow=no
8197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8198 LIBS=$ac_check_lib_save_LIBS
8200 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8201 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8202 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8204 cat >>confdefs.h <<\_ACEOF
8205 #define HAVE_NAS 1
8206 _ACEOF
8208 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8213 done
8216 CPPFLAGS="$ac_save_CPPFLAGS"
8217 XFILES='$(XFILES)'
8218 else
8219 XLIB=""
8220 X_CFLAGS=""
8221 X_LIBS=""
8224 CURSESLIBS=""
8225 if test "x$with_curses" != "xno"
8226 then
8228 for ac_header in ncurses.h
8230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8232 echo "$as_me:$LINENO: checking for $ac_header" >&5
8233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8239 else
8240 # Is the header compilable?
8241 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8243 cat >conftest.$ac_ext <<_ACEOF
8244 #line $LINENO "configure"
8245 /* confdefs.h. */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8250 $ac_includes_default
8251 #include <$ac_header>
8252 _ACEOF
8253 rm -f conftest.$ac_objext
8254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8255 (eval $ac_compile) 2>&5
8256 ac_status=$?
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } &&
8259 { ac_try='test -s conftest.$ac_objext'
8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 (eval $ac_try) 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; }; then
8265 ac_header_compiler=yes
8266 else
8267 echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8270 ac_header_compiler=no
8272 rm -f conftest.$ac_objext conftest.$ac_ext
8273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8274 echo "${ECHO_T}$ac_header_compiler" >&6
8276 # Is the header present?
8277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8279 cat >conftest.$ac_ext <<_ACEOF
8280 #line $LINENO "configure"
8281 /* confdefs.h. */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8286 #include <$ac_header>
8287 _ACEOF
8288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8290 ac_status=$?
8291 grep -v '^ *+' conftest.er1 >conftest.err
8292 rm -f conftest.er1
8293 cat conftest.err >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } >/dev/null; then
8296 if test -s conftest.err; then
8297 ac_cpp_err=$ac_c_preproc_warn_flag
8298 else
8299 ac_cpp_err=
8301 else
8302 ac_cpp_err=yes
8304 if test -z "$ac_cpp_err"; then
8305 ac_header_preproc=yes
8306 else
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8310 ac_header_preproc=no
8312 rm -f conftest.err conftest.$ac_ext
8313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8314 echo "${ECHO_T}$ac_header_preproc" >&6
8316 # So? What about this header?
8317 case $ac_header_compiler:$ac_header_preproc in
8318 yes:no )
8319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8324 cat <<\_ASBOX
8325 ## ------------------------------------ ##
8326 ## Report this to bug-autoconf@gnu.org. ##
8327 ## ------------------------------------ ##
8328 _ASBOX
8330 sed "s/^/$as_me: WARNING: /" >&2
8332 no:yes )
8333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8340 cat <<\_ASBOX
8341 ## ------------------------------------ ##
8342 ## Report this to bug-autoconf@gnu.org. ##
8343 ## ------------------------------------ ##
8344 _ASBOX
8346 sed "s/^/$as_me: WARNING: /" >&2
8348 esac
8349 echo "$as_me:$LINENO: checking for $ac_header" >&5
8350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354 eval "$as_ac_Header=$ac_header_preproc"
8356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8361 cat >>confdefs.h <<_ACEOF
8362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8363 _ACEOF
8364 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
8365 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8366 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8368 else
8369 ac_check_lib_save_LIBS=$LIBS
8370 LIBS="-lncurses $LIBS"
8371 cat >conftest.$ac_ext <<_ACEOF
8372 #line $LINENO "configure"
8373 /* confdefs.h. */
8374 _ACEOF
8375 cat confdefs.h >>conftest.$ac_ext
8376 cat >>conftest.$ac_ext <<_ACEOF
8377 /* end confdefs.h. */
8379 /* Override any gcc2 internal prototype to avoid an error. */
8380 #ifdef __cplusplus
8381 extern "C"
8382 #endif
8383 /* We use char because int might match the return type of a gcc2
8384 builtin and then its argument prototype would still apply. */
8385 char waddch ();
8387 main ()
8389 waddch ();
8391 return 0;
8393 _ACEOF
8394 rm -f conftest.$ac_objext conftest$ac_exeext
8395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8396 (eval $ac_link) 2>&5
8397 ac_status=$?
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } &&
8400 { ac_try='test -s conftest$ac_exeext'
8401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402 (eval $ac_try) 2>&5
8403 ac_status=$?
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; }; then
8406 ac_cv_lib_ncurses_waddch=yes
8407 else
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 ac_cv_lib_ncurses_waddch=no
8413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8414 LIBS=$ac_check_lib_save_LIBS
8416 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
8417 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8418 if test $ac_cv_lib_ncurses_waddch = yes; then
8420 cat >>confdefs.h <<\_ACEOF
8421 #define HAVE_LIBNCURSES 1
8422 _ACEOF
8424 CURSESLIBS="-lncurses"
8425 else
8427 for ac_header in curses.h
8429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8431 echo "$as_me:$LINENO: checking for $ac_header" >&5
8432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8438 else
8439 # Is the header compilable?
8440 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8442 cat >conftest.$ac_ext <<_ACEOF
8443 #line $LINENO "configure"
8444 /* confdefs.h. */
8445 _ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 $ac_includes_default
8450 #include <$ac_header>
8451 _ACEOF
8452 rm -f conftest.$ac_objext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8454 (eval $ac_compile) 2>&5
8455 ac_status=$?
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } &&
8458 { ac_try='test -s conftest.$ac_objext'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 (eval $ac_try) 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; }; then
8464 ac_header_compiler=yes
8465 else
8466 echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8469 ac_header_compiler=no
8471 rm -f conftest.$ac_objext conftest.$ac_ext
8472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8473 echo "${ECHO_T}$ac_header_compiler" >&6
8475 # Is the header present?
8476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8478 cat >conftest.$ac_ext <<_ACEOF
8479 #line $LINENO "configure"
8480 /* confdefs.h. */
8481 _ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h. */
8485 #include <$ac_header>
8486 _ACEOF
8487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8489 ac_status=$?
8490 grep -v '^ *+' conftest.er1 >conftest.err
8491 rm -f conftest.er1
8492 cat conftest.err >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } >/dev/null; then
8495 if test -s conftest.err; then
8496 ac_cpp_err=$ac_c_preproc_warn_flag
8497 else
8498 ac_cpp_err=
8500 else
8501 ac_cpp_err=yes
8503 if test -z "$ac_cpp_err"; then
8504 ac_header_preproc=yes
8505 else
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8509 ac_header_preproc=no
8511 rm -f conftest.err conftest.$ac_ext
8512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8513 echo "${ECHO_T}$ac_header_preproc" >&6
8515 # So? What about this header?
8516 case $ac_header_compiler:$ac_header_preproc in
8517 yes:no )
8518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8523 cat <<\_ASBOX
8524 ## ------------------------------------ ##
8525 ## Report this to bug-autoconf@gnu.org. ##
8526 ## ------------------------------------ ##
8527 _ASBOX
8529 sed "s/^/$as_me: WARNING: /" >&2
8531 no:yes )
8532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8539 cat <<\_ASBOX
8540 ## ------------------------------------ ##
8541 ## Report this to bug-autoconf@gnu.org. ##
8542 ## ------------------------------------ ##
8543 _ASBOX
8545 sed "s/^/$as_me: WARNING: /" >&2
8547 esac
8548 echo "$as_me:$LINENO: checking for $ac_header" >&5
8549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8552 else
8553 eval "$as_ac_Header=$ac_header_preproc"
8555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8560 cat >>confdefs.h <<_ACEOF
8561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8562 _ACEOF
8563 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
8564 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8565 if test "${ac_cv_lib_curses_waddch+set}" = set; then
8566 echo $ECHO_N "(cached) $ECHO_C" >&6
8567 else
8568 ac_check_lib_save_LIBS=$LIBS
8569 LIBS="-lcurses $LIBS"
8570 cat >conftest.$ac_ext <<_ACEOF
8571 #line $LINENO "configure"
8572 /* confdefs.h. */
8573 _ACEOF
8574 cat confdefs.h >>conftest.$ac_ext
8575 cat >>conftest.$ac_ext <<_ACEOF
8576 /* end confdefs.h. */
8578 /* Override any gcc2 internal prototype to avoid an error. */
8579 #ifdef __cplusplus
8580 extern "C"
8581 #endif
8582 /* We use char because int might match the return type of a gcc2
8583 builtin and then its argument prototype would still apply. */
8584 char waddch ();
8586 main ()
8588 waddch ();
8590 return 0;
8592 _ACEOF
8593 rm -f conftest.$ac_objext conftest$ac_exeext
8594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8595 (eval $ac_link) 2>&5
8596 ac_status=$?
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); } &&
8599 { ac_try='test -s conftest$ac_exeext'
8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601 (eval $ac_try) 2>&5
8602 ac_status=$?
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; }; then
8605 ac_cv_lib_curses_waddch=yes
8606 else
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8610 ac_cv_lib_curses_waddch=no
8612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8613 LIBS=$ac_check_lib_save_LIBS
8615 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
8616 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
8617 if test $ac_cv_lib_curses_waddch = yes; then
8619 cat >>confdefs.h <<\_ACEOF
8620 #define HAVE_LIBCURSES 1
8621 _ACEOF
8623 CURSESLIBS="-lcurses"
8628 done
8634 done
8636 saved_libs="$LIBS"
8637 LIBS="$CURSESLIBS $LIBS"
8640 for ac_func in getbkgd resizeterm
8642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8643 echo "$as_me:$LINENO: checking for $ac_func" >&5
8644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8645 if eval "test \"\${$as_ac_var+set}\" = set"; then
8646 echo $ECHO_N "(cached) $ECHO_C" >&6
8647 else
8648 cat >conftest.$ac_ext <<_ACEOF
8649 #line $LINENO "configure"
8650 /* confdefs.h. */
8651 _ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8655 /* System header to define __stub macros and hopefully few prototypes,
8656 which can conflict with char $ac_func (); below.
8657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8658 <limits.h> exists even on freestanding compilers. */
8659 #ifdef __STDC__
8660 # include <limits.h>
8661 #else
8662 # include <assert.h>
8663 #endif
8664 /* Override any gcc2 internal prototype to avoid an error. */
8665 #ifdef __cplusplus
8666 extern "C"
8668 #endif
8669 /* We use char because int might match the return type of a gcc2
8670 builtin and then its argument prototype would still apply. */
8671 char $ac_func ();
8672 /* The GNU C library defines this for functions which it implements
8673 to always fail with ENOSYS. Some functions are actually named
8674 something starting with __ and the normal name is an alias. */
8675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8676 choke me
8677 #else
8678 char (*f) () = $ac_func;
8679 #endif
8680 #ifdef __cplusplus
8682 #endif
8685 main ()
8687 return f != $ac_func;
8689 return 0;
8691 _ACEOF
8692 rm -f conftest.$ac_objext conftest$ac_exeext
8693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8694 (eval $ac_link) 2>&5
8695 ac_status=$?
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try='test -s conftest$ac_exeext'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 (eval $ac_try) 2>&5
8701 ac_status=$?
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; }; then
8704 eval "$as_ac_var=yes"
8705 else
8706 echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8709 eval "$as_ac_var=no"
8711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8715 if test `eval echo '${'$as_ac_var'}'` = yes; then
8716 cat >>confdefs.h <<_ACEOF
8717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8718 _ACEOF
8721 done
8723 LIBS="$saved_libs"
8727 # Extract the first word of "sane-config", so it can be a program name with args.
8728 set dummy sane-config; ac_word=$2
8729 echo "$as_me:$LINENO: checking for $ac_word" >&5
8730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8731 if test "${ac_cv_prog_sane_devel+set}" = set; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8733 else
8734 if test -n "$sane_devel"; then
8735 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8736 else
8737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738 for as_dir in $PATH
8740 IFS=$as_save_IFS
8741 test -z "$as_dir" && as_dir=.
8742 for ac_exec_ext in '' $ac_executable_extensions; do
8743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8744 ac_cv_prog_sane_devel="sane-config"
8745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8746 break 2
8748 done
8749 done
8751 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8754 sane_devel=$ac_cv_prog_sane_devel
8755 if test -n "$sane_devel"; then
8756 echo "$as_me:$LINENO: result: $sane_devel" >&5
8757 echo "${ECHO_T}$sane_devel" >&6
8758 else
8759 echo "$as_me:$LINENO: result: no" >&5
8760 echo "${ECHO_T}no" >&6
8763 if test "$sane_devel" = "no"
8764 then
8765 SANELIBS=""
8766 SANEINCL=""
8767 else
8768 SANELIBS="`$sane_devel --libs`"
8769 SANEINCL="`$sane_devel --cflags`"
8770 ac_save_CPPFLAGS="$CPPFLAGS"
8771 ac_save_LIBS="$LIBS"
8772 CPPFLAGS="$CPPFLAGS $SANEINCL"
8773 LIBS="$LIBS $SANELIBS"
8774 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8775 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8776 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8777 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8781 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8782 else
8783 # Is the header compilable?
8784 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8785 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8786 cat >conftest.$ac_ext <<_ACEOF
8787 #line $LINENO "configure"
8788 /* confdefs.h. */
8789 _ACEOF
8790 cat confdefs.h >>conftest.$ac_ext
8791 cat >>conftest.$ac_ext <<_ACEOF
8792 /* end confdefs.h. */
8793 $ac_includes_default
8794 #include <sane/sane.h>
8795 _ACEOF
8796 rm -f conftest.$ac_objext
8797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8798 (eval $ac_compile) 2>&5
8799 ac_status=$?
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
8802 { ac_try='test -s conftest.$ac_objext'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 (eval $ac_try) 2>&5
8805 ac_status=$?
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; }; then
8808 ac_header_compiler=yes
8809 else
8810 echo "$as_me: failed program was:" >&5
8811 sed 's/^/| /' conftest.$ac_ext >&5
8813 ac_header_compiler=no
8815 rm -f conftest.$ac_objext conftest.$ac_ext
8816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8817 echo "${ECHO_T}$ac_header_compiler" >&6
8819 # Is the header present?
8820 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8821 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8822 cat >conftest.$ac_ext <<_ACEOF
8823 #line $LINENO "configure"
8824 /* confdefs.h. */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8829 #include <sane/sane.h>
8830 _ACEOF
8831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8833 ac_status=$?
8834 grep -v '^ *+' conftest.er1 >conftest.err
8835 rm -f conftest.er1
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } >/dev/null; then
8839 if test -s conftest.err; then
8840 ac_cpp_err=$ac_c_preproc_warn_flag
8841 else
8842 ac_cpp_err=
8844 else
8845 ac_cpp_err=yes
8847 if test -z "$ac_cpp_err"; then
8848 ac_header_preproc=yes
8849 else
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8853 ac_header_preproc=no
8855 rm -f conftest.err conftest.$ac_ext
8856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8857 echo "${ECHO_T}$ac_header_preproc" >&6
8859 # So? What about this header?
8860 case $ac_header_compiler:$ac_header_preproc in
8861 yes:no )
8862 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8863 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8864 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8865 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8867 cat <<\_ASBOX
8868 ## ------------------------------------ ##
8869 ## Report this to bug-autoconf@gnu.org. ##
8870 ## ------------------------------------ ##
8871 _ASBOX
8873 sed "s/^/$as_me: WARNING: /" >&2
8875 no:yes )
8876 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8877 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8878 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8879 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8880 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8881 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8883 cat <<\_ASBOX
8884 ## ------------------------------------ ##
8885 ## Report this to bug-autoconf@gnu.org. ##
8886 ## ------------------------------------ ##
8887 _ASBOX
8889 sed "s/^/$as_me: WARNING: /" >&2
8891 esac
8892 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8893 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8894 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8896 else
8897 ac_cv_header_sane_sane_h=$ac_header_preproc
8899 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8900 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8903 if test $ac_cv_header_sane_sane_h = yes; then
8904 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8905 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8906 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
8908 else
8909 ac_check_lib_save_LIBS=$LIBS
8910 LIBS="-lsane $LIBS"
8911 cat >conftest.$ac_ext <<_ACEOF
8912 #line $LINENO "configure"
8913 /* confdefs.h. */
8914 _ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8919 /* Override any gcc2 internal prototype to avoid an error. */
8920 #ifdef __cplusplus
8921 extern "C"
8922 #endif
8923 /* We use char because int might match the return type of a gcc2
8924 builtin and then its argument prototype would still apply. */
8925 char sane_open ();
8927 main ()
8929 sane_open ();
8931 return 0;
8933 _ACEOF
8934 rm -f conftest.$ac_objext conftest$ac_exeext
8935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8936 (eval $ac_link) 2>&5
8937 ac_status=$?
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try='test -s conftest$ac_exeext'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 (eval $ac_try) 2>&5
8943 ac_status=$?
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; }; then
8946 ac_cv_lib_sane_sane_open=yes
8947 else
8948 echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8951 ac_cv_lib_sane_sane_open=no
8953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8954 LIBS=$ac_check_lib_save_LIBS
8956 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8957 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8958 if test $ac_cv_lib_sane_sane_open = yes; then
8960 cat >>confdefs.h <<\_ACEOF
8961 #define HAVE_SANE 1
8962 _ACEOF
8964 else
8965 SANELIBS=""
8966 SANEINCL=""
8969 else
8970 SANELIBS=""
8971 SANEINCL=""
8975 LIBS="$ac_save_LIBS"
8976 CPPFLAGS="$ac_save_CPPFLAGS"
8982 for ac_header in unicode/ubidi.h
8984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8986 echo "$as_me:$LINENO: checking for $ac_header" >&5
8987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8989 echo $ECHO_N "(cached) $ECHO_C" >&6
8991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8993 else
8994 # Is the header compilable?
8995 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8997 cat >conftest.$ac_ext <<_ACEOF
8998 #line $LINENO "configure"
8999 /* confdefs.h. */
9000 _ACEOF
9001 cat confdefs.h >>conftest.$ac_ext
9002 cat >>conftest.$ac_ext <<_ACEOF
9003 /* end confdefs.h. */
9004 $ac_includes_default
9005 #include <$ac_header>
9006 _ACEOF
9007 rm -f conftest.$ac_objext
9008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9009 (eval $ac_compile) 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } &&
9013 { ac_try='test -s conftest.$ac_objext'
9014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 (eval $ac_try) 2>&5
9016 ac_status=$?
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); }; }; then
9019 ac_header_compiler=yes
9020 else
9021 echo "$as_me: failed program was:" >&5
9022 sed 's/^/| /' conftest.$ac_ext >&5
9024 ac_header_compiler=no
9026 rm -f conftest.$ac_objext conftest.$ac_ext
9027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9028 echo "${ECHO_T}$ac_header_compiler" >&6
9030 # Is the header present?
9031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9033 cat >conftest.$ac_ext <<_ACEOF
9034 #line $LINENO "configure"
9035 /* confdefs.h. */
9036 _ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h. */
9040 #include <$ac_header>
9041 _ACEOF
9042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9044 ac_status=$?
9045 grep -v '^ *+' conftest.er1 >conftest.err
9046 rm -f conftest.er1
9047 cat conftest.err >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } >/dev/null; then
9050 if test -s conftest.err; then
9051 ac_cpp_err=$ac_c_preproc_warn_flag
9052 else
9053 ac_cpp_err=
9055 else
9056 ac_cpp_err=yes
9058 if test -z "$ac_cpp_err"; then
9059 ac_header_preproc=yes
9060 else
9061 echo "$as_me: failed program was:" >&5
9062 sed 's/^/| /' conftest.$ac_ext >&5
9064 ac_header_preproc=no
9066 rm -f conftest.err conftest.$ac_ext
9067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9068 echo "${ECHO_T}$ac_header_preproc" >&6
9070 # So? What about this header?
9071 case $ac_header_compiler:$ac_header_preproc in
9072 yes:no )
9073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9078 cat <<\_ASBOX
9079 ## ------------------------------------ ##
9080 ## Report this to bug-autoconf@gnu.org. ##
9081 ## ------------------------------------ ##
9082 _ASBOX
9084 sed "s/^/$as_me: WARNING: /" >&2
9086 no:yes )
9087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9090 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9094 cat <<\_ASBOX
9095 ## ------------------------------------ ##
9096 ## Report this to bug-autoconf@gnu.org. ##
9097 ## ------------------------------------ ##
9098 _ASBOX
9100 sed "s/^/$as_me: WARNING: /" >&2
9102 esac
9103 echo "$as_me:$LINENO: checking for $ac_header" >&5
9104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
9107 else
9108 eval "$as_ac_Header=$ac_header_preproc"
9110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9115 cat >>confdefs.h <<_ACEOF
9116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9117 _ACEOF
9121 done
9123 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9124 then
9125 echo "$as_me:$LINENO: checking whether we can statically link the ICU libraries" >&5
9126 echo $ECHO_N "checking whether we can statically link the ICU libraries... $ECHO_C" >&6
9127 if test "${ac_cv_lib_icu+set}" = set; then
9128 echo $ECHO_N "(cached) $ECHO_C" >&6
9129 else
9130 saved_libs="$LIBS"
9131 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
9132 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}"
9133 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}"
9134 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9135 cat >conftest.$ac_ext <<_ACEOF
9136 #line $LINENO "configure"
9137 /* confdefs.h. */
9138 _ACEOF
9139 cat confdefs.h >>conftest.$ac_ext
9140 cat >>conftest.$ac_ext <<_ACEOF
9141 /* end confdefs.h. */
9142 #include <unicode/ubidi.h>
9144 main ()
9146 ubidi_open()
9148 return 0;
9150 _ACEOF
9151 rm -f conftest.$ac_objext conftest$ac_exeext
9152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9153 (eval $ac_link) 2>&5
9154 ac_status=$?
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } &&
9157 { ac_try='test -s conftest$ac_exeext'
9158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159 (eval $ac_try) 2>&5
9160 ac_status=$?
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; }; then
9163 ac_cv_lib_icu="yes"
9164 else
9165 echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9168 ac_cv_lib_icu="no"
9170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9171 LIBS="$saved_libs"
9173 echo "$as_me:$LINENO: result: $ac_cv_lib_icu" >&5
9174 echo "${ECHO_T}$ac_cv_lib_icu" >&6
9175 if test "$ac_cv_lib_icu" = "yes"
9176 then
9178 cat >>confdefs.h <<\_ACEOF
9179 #define HAVE_ICU 1
9180 _ACEOF
9182 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9187 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
9188 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9189 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9191 else
9192 ac_check_lib_save_LIBS=$LIBS
9193 LIBS="-lfreetype $X_LIBS $LIBS"
9194 cat >conftest.$ac_ext <<_ACEOF
9195 #line $LINENO "configure"
9196 /* confdefs.h. */
9197 _ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h. */
9202 /* Override any gcc2 internal prototype to avoid an error. */
9203 #ifdef __cplusplus
9204 extern "C"
9205 #endif
9206 /* We use char because int might match the return type of a gcc2
9207 builtin and then its argument prototype would still apply. */
9208 char FT_Init_FreeType ();
9210 main ()
9212 FT_Init_FreeType ();
9214 return 0;
9216 _ACEOF
9217 rm -f conftest.$ac_objext conftest$ac_exeext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219 (eval $ac_link) 2>&5
9220 ac_status=$?
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } &&
9223 { ac_try='test -s conftest$ac_exeext'
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 (eval $ac_try) 2>&5
9226 ac_status=$?
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
9229 ac_cv_lib_freetype_FT_Init_FreeType=yes
9230 else
9231 echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9234 ac_cv_lib_freetype_FT_Init_FreeType=no
9236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9237 LIBS=$ac_check_lib_save_LIBS
9239 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
9240 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
9241 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
9242 ft_lib=yes
9243 else
9244 ft_lib=no
9247 if test "$ft_lib" = "no"
9248 then
9249 FREETYPEINCL=""
9250 wine_cv_msg_freetype=no
9251 else
9252 # Extract the first word of "freetype-config", so it can be a program name with args.
9253 set dummy freetype-config; ac_word=$2
9254 echo "$as_me:$LINENO: checking for $ac_word" >&5
9255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9256 if test "${ac_cv_prog_ft_devel+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9258 else
9259 if test -n "$ft_devel"; then
9260 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9261 else
9262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9263 for as_dir in $PATH
9265 IFS=$as_save_IFS
9266 test -z "$as_dir" && as_dir=.
9267 for ac_exec_ext in '' $ac_executable_extensions; do
9268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9269 ac_cv_prog_ft_devel="freetype-config"
9270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9271 break 2
9273 done
9274 done
9276 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
9279 ft_devel=$ac_cv_prog_ft_devel
9280 if test -n "$ft_devel"; then
9281 echo "$as_me:$LINENO: result: $ft_devel" >&5
9282 echo "${ECHO_T}$ft_devel" >&6
9283 else
9284 echo "$as_me:$LINENO: result: no" >&5
9285 echo "${ECHO_T}no" >&6
9288 if test "$ft_devel" = "no"
9289 then
9290 # Extract the first word of "freetype2-config", so it can be a program name with args.
9291 set dummy freetype2-config; ac_word=$2
9292 echo "$as_me:$LINENO: checking for $ac_word" >&5
9293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9294 if test "${ac_cv_prog_ft_devel2+set}" = set; then
9295 echo $ECHO_N "(cached) $ECHO_C" >&6
9296 else
9297 if test -n "$ft_devel2"; then
9298 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9299 else
9300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9301 for as_dir in $PATH
9303 IFS=$as_save_IFS
9304 test -z "$as_dir" && as_dir=.
9305 for ac_exec_ext in '' $ac_executable_extensions; do
9306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9307 ac_cv_prog_ft_devel2="freetype2-config"
9308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9309 break 2
9311 done
9312 done
9314 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9317 ft_devel2=$ac_cv_prog_ft_devel2
9318 if test -n "$ft_devel2"; then
9319 echo "$as_me:$LINENO: result: $ft_devel2" >&5
9320 echo "${ECHO_T}$ft_devel2" >&6
9321 else
9322 echo "$as_me:$LINENO: result: no" >&5
9323 echo "${ECHO_T}no" >&6
9326 if test "$ft_devel2" = "freetype2-config"
9327 then
9328 ft_devel=$ft_devel2
9331 if test "$ft_devel" = "no"
9332 then
9333 FREETYPEINCL=""
9334 wine_cv_msg_freetype=yes
9335 else
9336 FREETYPEINCL=`$ft_devel --cflags`
9337 ac_save_CPPFLAGS="$CPPFLAGS"
9338 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
9347 for ac_header in freetype/freetype.h \
9348 freetype/ftglyph.h \
9349 freetype/tttables.h \
9350 freetype/ftnames.h \
9351 freetype/ftsnames.h \
9352 freetype/ttnameid.h \
9353 freetype/ftoutln.h \
9354 freetype/internal/sfnt.h
9356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9358 echo "$as_me:$LINENO: checking for $ac_header" >&5
9359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9365 else
9366 # Is the header compilable?
9367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9369 cat >conftest.$ac_ext <<_ACEOF
9370 #line $LINENO "configure"
9371 /* confdefs.h. */
9372 _ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h. */
9376 $ac_includes_default
9377 #include <$ac_header>
9378 _ACEOF
9379 rm -f conftest.$ac_objext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381 (eval $ac_compile) 2>&5
9382 ac_status=$?
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } &&
9385 { ac_try='test -s conftest.$ac_objext'
9386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387 (eval $ac_try) 2>&5
9388 ac_status=$?
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; }; then
9391 ac_header_compiler=yes
9392 else
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9396 ac_header_compiler=no
9398 rm -f conftest.$ac_objext conftest.$ac_ext
9399 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9400 echo "${ECHO_T}$ac_header_compiler" >&6
9402 # Is the header present?
9403 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9405 cat >conftest.$ac_ext <<_ACEOF
9406 #line $LINENO "configure"
9407 /* confdefs.h. */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9412 #include <$ac_header>
9413 _ACEOF
9414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9416 ac_status=$?
9417 grep -v '^ *+' conftest.er1 >conftest.err
9418 rm -f conftest.er1
9419 cat conftest.err >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); } >/dev/null; then
9422 if test -s conftest.err; then
9423 ac_cpp_err=$ac_c_preproc_warn_flag
9424 else
9425 ac_cpp_err=
9427 else
9428 ac_cpp_err=yes
9430 if test -z "$ac_cpp_err"; then
9431 ac_header_preproc=yes
9432 else
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9436 ac_header_preproc=no
9438 rm -f conftest.err conftest.$ac_ext
9439 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9440 echo "${ECHO_T}$ac_header_preproc" >&6
9442 # So? What about this header?
9443 case $ac_header_compiler:$ac_header_preproc in
9444 yes:no )
9445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9450 cat <<\_ASBOX
9451 ## ------------------------------------ ##
9452 ## Report this to bug-autoconf@gnu.org. ##
9453 ## ------------------------------------ ##
9454 _ASBOX
9456 sed "s/^/$as_me: WARNING: /" >&2
9458 no:yes )
9459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9466 cat <<\_ASBOX
9467 ## ------------------------------------ ##
9468 ## Report this to bug-autoconf@gnu.org. ##
9469 ## ------------------------------------ ##
9470 _ASBOX
9472 sed "s/^/$as_me: WARNING: /" >&2
9474 esac
9475 echo "$as_me:$LINENO: checking for $ac_header" >&5
9476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9479 else
9480 eval "$as_ac_Header=$ac_header_preproc"
9482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9487 cat >>confdefs.h <<_ACEOF
9488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9489 _ACEOF
9493 done
9495 cat >conftest.$ac_ext <<_ACEOF
9496 #line $LINENO "configure"
9497 /* confdefs.h. */
9498 _ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h. */
9502 #include <ft2build.h>
9503 #include <freetype/fttrigon.h>
9504 _ACEOF
9505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9507 ac_status=$?
9508 grep -v '^ *+' conftest.er1 >conftest.err
9509 rm -f conftest.er1
9510 cat conftest.err >&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); } >/dev/null; then
9513 if test -s conftest.err; then
9514 ac_cpp_err=$ac_c_preproc_warn_flag
9515 else
9516 ac_cpp_err=
9518 else
9519 ac_cpp_err=yes
9521 if test -z "$ac_cpp_err"; then
9523 cat >>confdefs.h <<\_ACEOF
9524 #define HAVE_FREETYPE_FTTRIGON_H 1
9525 _ACEOF
9527 wine_cv_fttrigon=yes
9528 else
9529 echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9532 wine_cv_fttrigon=no
9534 rm -f conftest.err conftest.$ac_ext
9535 CPPFLAGS="$ac_save_CPPFLAGS"
9536 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
9537 then
9539 cat >>confdefs.h <<\_ACEOF
9540 #define HAVE_FREETYPE 1
9541 _ACEOF
9543 wine_cv_msg_freetype=no
9544 else
9545 FREETYPEINCL=""
9546 wine_cv_msg_freetype=yes
9552 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
9553 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9554 if test "${ac_cv_c_ppdev+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557 cat >conftest.$ac_ext <<_ACEOF
9558 #line $LINENO "configure"
9559 /* confdefs.h. */
9560 _ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9564 #include <linux/ppdev.h>
9566 main ()
9568 ioctl (1,PPCLAIM,0)
9570 return 0;
9572 _ACEOF
9573 rm -f conftest.$ac_objext
9574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9575 (eval $ac_compile) 2>&5
9576 ac_status=$?
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } &&
9579 { ac_try='test -s conftest.$ac_objext'
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581 (eval $ac_try) 2>&5
9582 ac_status=$?
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; }; then
9585 ac_cv_c_ppdev="yes"
9586 else
9587 echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.$ac_ext >&5
9590 ac_cv_c_ppdev="no"
9592 rm -f conftest.$ac_objext conftest.$ac_ext
9595 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
9596 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
9597 if test "$ac_cv_c_ppdev" = "yes"
9598 then
9600 cat >>confdefs.h <<\_ACEOF
9601 #define HAVE_PPDEV 1
9602 _ACEOF
9606 echo "$as_me:$LINENO: checking for va_copy" >&5
9607 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9608 if test "${ac_cv_c_va_copy+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 else
9611 cat >conftest.$ac_ext <<_ACEOF
9612 #line $LINENO "configure"
9613 /* confdefs.h. */
9614 _ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9618 #include <stdarg.h>
9620 main ()
9622 va_list ap1, ap2;
9623 va_copy(ap1,ap2);
9626 return 0;
9628 _ACEOF
9629 rm -f conftest.$ac_objext conftest$ac_exeext
9630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9631 (eval $ac_link) 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } &&
9635 { ac_try='test -s conftest$ac_exeext'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 (eval $ac_try) 2>&5
9638 ac_status=$?
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; }; then
9641 ac_cv_c_va_copy="yes"
9642 else
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9646 ac_cv_c_va_copy="no"
9648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9651 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
9652 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
9653 if test "$ac_cv_c_va_copy" = "yes"
9654 then
9656 cat >>confdefs.h <<\_ACEOF
9657 #define HAVE_VA_COPY 1
9658 _ACEOF
9661 echo "$as_me:$LINENO: checking for __va_copy" >&5
9662 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9663 if test "${ac_cv_c___va_copy+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 else
9666 cat >conftest.$ac_ext <<_ACEOF
9667 #line $LINENO "configure"
9668 /* confdefs.h. */
9669 _ACEOF
9670 cat confdefs.h >>conftest.$ac_ext
9671 cat >>conftest.$ac_ext <<_ACEOF
9672 /* end confdefs.h. */
9673 #include <stdarg.h>
9675 main ()
9677 va_list ap1, ap2;
9678 __va_copy(ap1,ap2);
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_c___va_copy="yes"
9697 else
9698 echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9701 ac_cv_c___va_copy="no"
9703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9706 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
9707 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
9708 if test "$ac_cv_c___va_copy" = "yes"
9709 then
9711 cat >>confdefs.h <<\_ACEOF
9712 #define HAVE___VA_COPY 1
9713 _ACEOF
9717 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
9718 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
9719 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722 cat >conftest.$ac_ext <<_ACEOF
9723 #line $LINENO "configure"
9724 /* confdefs.h. */
9725 _ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9729 #define _GNU_SOURCE
9730 #include <pthread.h>
9733 main ()
9735 if ((pthread_rwlock_t *) 0)
9736 return 0;
9737 if (sizeof (pthread_rwlock_t))
9738 return 0;
9740 return 0;
9742 _ACEOF
9743 rm -f conftest.$ac_objext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9745 (eval $ac_compile) 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } &&
9749 { ac_try='test -s conftest.$ac_objext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 (eval $ac_try) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 ac_cv_type_pthread_rwlock_t=yes
9756 else
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9760 ac_cv_type_pthread_rwlock_t=no
9762 rm -f conftest.$ac_objext conftest.$ac_ext
9764 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
9765 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
9766 if test $ac_cv_type_pthread_rwlock_t = yes; then
9768 cat >>confdefs.h <<_ACEOF
9769 #define HAVE_PTHREAD_RWLOCK_T 1
9770 _ACEOF
9774 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
9775 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
9776 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 else
9779 cat >conftest.$ac_ext <<_ACEOF
9780 #line $LINENO "configure"
9781 /* confdefs.h. */
9782 _ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786 #define _GNU_SOURCE
9787 #include <pthread.h>
9790 main ()
9792 if ((pthread_rwlockattr_t *) 0)
9793 return 0;
9794 if (sizeof (pthread_rwlockattr_t))
9795 return 0;
9797 return 0;
9799 _ACEOF
9800 rm -f conftest.$ac_objext
9801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9802 (eval $ac_compile) 2>&5
9803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } &&
9806 { ac_try='test -s conftest.$ac_objext'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808 (eval $ac_try) 2>&5
9809 ac_status=$?
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
9812 ac_cv_type_pthread_rwlockattr_t=yes
9813 else
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9817 ac_cv_type_pthread_rwlockattr_t=no
9819 rm -f conftest.$ac_objext conftest.$ac_ext
9821 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
9822 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
9823 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
9825 cat >>confdefs.h <<_ACEOF
9826 #define HAVE_PTHREAD_RWLOCKATTR_T 1
9827 _ACEOF
9836 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
9838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9840 echo "$as_me:$LINENO: checking for $ac_header" >&5
9841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9847 else
9848 # Is the header compilable?
9849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9851 cat >conftest.$ac_ext <<_ACEOF
9852 #line $LINENO "configure"
9853 /* confdefs.h. */
9854 _ACEOF
9855 cat confdefs.h >>conftest.$ac_ext
9856 cat >>conftest.$ac_ext <<_ACEOF
9857 /* end confdefs.h. */
9858 $ac_includes_default
9859 #include <$ac_header>
9860 _ACEOF
9861 rm -f conftest.$ac_objext
9862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9863 (eval $ac_compile) 2>&5
9864 ac_status=$?
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -s conftest.$ac_objext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 ac_header_compiler=yes
9874 else
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9878 ac_header_compiler=no
9880 rm -f conftest.$ac_objext conftest.$ac_ext
9881 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9882 echo "${ECHO_T}$ac_header_compiler" >&6
9884 # Is the header present?
9885 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9887 cat >conftest.$ac_ext <<_ACEOF
9888 #line $LINENO "configure"
9889 /* confdefs.h. */
9890 _ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h. */
9894 #include <$ac_header>
9895 _ACEOF
9896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9898 ac_status=$?
9899 grep -v '^ *+' conftest.er1 >conftest.err
9900 rm -f conftest.er1
9901 cat conftest.err >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } >/dev/null; then
9904 if test -s conftest.err; then
9905 ac_cpp_err=$ac_c_preproc_warn_flag
9906 else
9907 ac_cpp_err=
9909 else
9910 ac_cpp_err=yes
9912 if test -z "$ac_cpp_err"; then
9913 ac_header_preproc=yes
9914 else
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9918 ac_header_preproc=no
9920 rm -f conftest.err conftest.$ac_ext
9921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9922 echo "${ECHO_T}$ac_header_preproc" >&6
9924 # So? What about this header?
9925 case $ac_header_compiler:$ac_header_preproc in
9926 yes:no )
9927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9932 cat <<\_ASBOX
9933 ## ------------------------------------ ##
9934 ## Report this to bug-autoconf@gnu.org. ##
9935 ## ------------------------------------ ##
9936 _ASBOX
9938 sed "s/^/$as_me: WARNING: /" >&2
9940 no:yes )
9941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9944 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9948 cat <<\_ASBOX
9949 ## ------------------------------------ ##
9950 ## Report this to bug-autoconf@gnu.org. ##
9951 ## ------------------------------------ ##
9952 _ASBOX
9954 sed "s/^/$as_me: WARNING: /" >&2
9956 esac
9957 echo "$as_me:$LINENO: checking for $ac_header" >&5
9958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 else
9962 eval "$as_ac_Header=$ac_header_preproc"
9964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9969 cat >>confdefs.h <<_ACEOF
9970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9971 _ACEOF
9972 break
9975 done
9978 echo "$as_me:$LINENO: checking for Open Sound System" >&5
9979 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
9980 if test "${ac_cv_c_opensoundsystem+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 else
9983 cat >conftest.$ac_ext <<_ACEOF
9984 #line $LINENO "configure"
9985 /* confdefs.h. */
9986 _ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9991 #if defined(HAVE_SYS_SOUNDCARD_H)
9992 #include <sys/soundcard.h>
9993 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
9994 #include <machine/soundcard.h>
9995 #elif defined(HAVE_SOUNDCARD_H)
9996 #include <soundcard.h>
9997 #endif
10000 main ()
10004 /* check for one of the Open Sound System specific SNDCTL_ defines */
10005 #if !defined(SNDCTL_DSP_STEREO)
10006 #error No open sound system
10007 #endif
10010 return 0;
10012 _ACEOF
10013 rm -f conftest.$ac_objext
10014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10015 (eval $ac_compile) 2>&5
10016 ac_status=$?
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } &&
10019 { ac_try='test -s conftest.$ac_objext'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; }; then
10025 ac_cv_c_opensoundsystem="yes"
10026 else
10027 echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.$ac_ext >&5
10030 ac_cv_c_opensoundsystem="no"
10032 rm -f conftest.$ac_objext conftest.$ac_ext
10034 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
10035 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
10037 if test "$ac_cv_c_opensoundsystem" = "yes"
10038 then
10040 cat >>confdefs.h <<\_ACEOF
10041 #define HAVE_OSS 1
10042 _ACEOF
10046 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
10047 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
10048 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051 cat >conftest.$ac_ext <<_ACEOF
10052 #line $LINENO "configure"
10053 /* confdefs.h. */
10054 _ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10059 #if defined(HAVE_SYS_SOUNDCARD_H)
10060 #include <sys/soundcard.h>
10061 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10062 #include <machine/soundcard.h>
10063 #elif defined(HAVE_SOUNDCARD_H)
10064 #include <soundcard.h>
10065 #endif
10068 main ()
10072 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
10073 #if !defined(SNDCTL_SEQ_SYNC)
10074 #error No open sound system MIDI interface
10075 #endif
10078 return 0;
10080 _ACEOF
10081 rm -f conftest.$ac_objext
10082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10083 (eval $ac_compile) 2>&5
10084 ac_status=$?
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); } &&
10087 { ac_try='test -s conftest.$ac_objext'
10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10090 ac_status=$?
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; }; then
10093 ac_cv_c_opensoundsystem_midi="yes"
10094 else
10095 echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10098 ac_cv_c_opensoundsystem_midi="no"
10100 rm -f conftest.$ac_objext conftest.$ac_ext
10102 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
10103 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
10105 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
10106 then
10108 cat >>confdefs.h <<\_ACEOF
10109 #define HAVE_OSS_MIDI 1
10110 _ACEOF
10114 # Extract the first word of "artsc-config", so it can be a program name with args.
10115 set dummy artsc-config; ac_word=$2
10116 echo "$as_me:$LINENO: checking for $ac_word" >&5
10117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10118 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 else
10121 case $ARTSCCONFIG in
10122 [\\/]* | ?:[\\/]*)
10123 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
10126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10127 for as_dir in $PATH
10129 IFS=$as_save_IFS
10130 test -z "$as_dir" && as_dir=.
10131 for ac_exec_ext in '' $ac_executable_extensions; do
10132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10133 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
10134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10135 break 2
10137 done
10138 done
10141 esac
10143 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
10145 if test -n "$ARTSCCONFIG"; then
10146 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
10147 echo "${ECHO_T}$ARTSCCONFIG" >&6
10148 else
10149 echo "$as_me:$LINENO: result: no" >&5
10150 echo "${ECHO_T}no" >&6
10153 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
10154 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
10155 if test "${ac_cv_c_artsserver+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else
10158 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
10159 then
10160 ac_cv_c_artsserver=no
10161 else
10162 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
10163 ARTSC_LIBS=`$ARTSCCONFIG --libs`
10164 ac_cv_c_artsserver=no
10165 save_CFLAGS="$CFLAGS"
10166 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
10167 cat >conftest.$ac_ext <<_ACEOF
10168 #line $LINENO "configure"
10169 /* confdefs.h. */
10170 _ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10175 #include <artsc.h>
10178 main ()
10181 arts_stream_t stream;
10184 return 0;
10186 _ACEOF
10187 rm -f conftest.$ac_objext
10188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10189 (eval $ac_compile) 2>&5
10190 ac_status=$?
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try='test -s conftest.$ac_objext'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10196 ac_status=$?
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; }; then
10200 ac_cv_c_artsserver=yes
10202 else
10203 echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10207 rm -f conftest.$ac_objext conftest.$ac_ext
10208 CFLAGS="$save_CFLAGS"
10211 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
10212 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
10214 if test "$ac_cv_c_artsserver" = "yes"
10215 then
10216 ARTSLIBS=$ARTSC_LIBS
10218 ARTSINCL=$ARTSC_CFLAGS
10222 cat >>confdefs.h <<\_ACEOF
10223 #define HAVE_ARTS 1
10224 _ACEOF
10228 ALSALIBS=""
10232 for ac_header in alsa/asoundlib.h sys/asoundlib.h
10234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10236 echo "$as_me:$LINENO: checking for $ac_header" >&5
10237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10243 else
10244 # Is the header compilable?
10245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10247 cat >conftest.$ac_ext <<_ACEOF
10248 #line $LINENO "configure"
10249 /* confdefs.h. */
10250 _ACEOF
10251 cat confdefs.h >>conftest.$ac_ext
10252 cat >>conftest.$ac_ext <<_ACEOF
10253 /* end confdefs.h. */
10254 $ac_includes_default
10255 #include <$ac_header>
10256 _ACEOF
10257 rm -f conftest.$ac_objext
10258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259 (eval $ac_compile) 2>&5
10260 ac_status=$?
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); } &&
10263 { ac_try='test -s conftest.$ac_objext'
10264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265 (eval $ac_try) 2>&5
10266 ac_status=$?
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; }; then
10269 ac_header_compiler=yes
10270 else
10271 echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10274 ac_header_compiler=no
10276 rm -f conftest.$ac_objext conftest.$ac_ext
10277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10278 echo "${ECHO_T}$ac_header_compiler" >&6
10280 # Is the header present?
10281 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10283 cat >conftest.$ac_ext <<_ACEOF
10284 #line $LINENO "configure"
10285 /* confdefs.h. */
10286 _ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10290 #include <$ac_header>
10291 _ACEOF
10292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10294 ac_status=$?
10295 grep -v '^ *+' conftest.er1 >conftest.err
10296 rm -f conftest.er1
10297 cat conftest.err >&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); } >/dev/null; then
10300 if test -s conftest.err; then
10301 ac_cpp_err=$ac_c_preproc_warn_flag
10302 else
10303 ac_cpp_err=
10305 else
10306 ac_cpp_err=yes
10308 if test -z "$ac_cpp_err"; then
10309 ac_header_preproc=yes
10310 else
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10314 ac_header_preproc=no
10316 rm -f conftest.err conftest.$ac_ext
10317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10318 echo "${ECHO_T}$ac_header_preproc" >&6
10320 # So? What about this header?
10321 case $ac_header_compiler:$ac_header_preproc in
10322 yes:no )
10323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10328 cat <<\_ASBOX
10329 ## ------------------------------------ ##
10330 ## Report this to bug-autoconf@gnu.org. ##
10331 ## ------------------------------------ ##
10332 _ASBOX
10334 sed "s/^/$as_me: WARNING: /" >&2
10336 no:yes )
10337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10344 cat <<\_ASBOX
10345 ## ------------------------------------ ##
10346 ## Report this to bug-autoconf@gnu.org. ##
10347 ## ------------------------------------ ##
10348 _ASBOX
10350 sed "s/^/$as_me: WARNING: /" >&2
10352 esac
10353 echo "$as_me:$LINENO: checking for $ac_header" >&5
10354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10356 echo $ECHO_N "(cached) $ECHO_C" >&6
10357 else
10358 eval "$as_ac_Header=$ac_header_preproc"
10360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10365 cat >>confdefs.h <<_ACEOF
10366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10367 _ACEOF
10368 break
10371 done
10373 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10374 then
10375 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
10376 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
10377 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10380 ac_check_lib_save_LIBS=$LIBS
10381 LIBS="-lasound $LIBS"
10382 cat >conftest.$ac_ext <<_ACEOF
10383 #line $LINENO "configure"
10384 /* confdefs.h. */
10385 _ACEOF
10386 cat confdefs.h >>conftest.$ac_ext
10387 cat >>conftest.$ac_ext <<_ACEOF
10388 /* end confdefs.h. */
10390 /* Override any gcc2 internal prototype to avoid an error. */
10391 #ifdef __cplusplus
10392 extern "C"
10393 #endif
10394 /* We use char because int might match the return type of a gcc2
10395 builtin and then its argument prototype would still apply. */
10396 char snd_pcm_open ();
10398 main ()
10400 snd_pcm_open ();
10402 return 0;
10404 _ACEOF
10405 rm -f conftest.$ac_objext conftest$ac_exeext
10406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10407 (eval $ac_link) 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); } &&
10411 { ac_try='test -s conftest$ac_exeext'
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10414 ac_status=$?
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; }; then
10417 ac_cv_lib_asound_snd_pcm_open=yes
10418 else
10419 echo "$as_me: failed program was:" >&5
10420 sed 's/^/| /' conftest.$ac_ext >&5
10422 ac_cv_lib_asound_snd_pcm_open=no
10424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10425 LIBS=$ac_check_lib_save_LIBS
10427 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
10428 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
10429 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
10431 cat >>confdefs.h <<\_ACEOF
10432 #define HAVE_ALSA 1
10433 _ACEOF
10435 ALSALIBS="-lasound"
10441 AUDIOIOLIBS=""
10444 for ac_header in libaudioio.h
10446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10448 echo "$as_me:$LINENO: checking for $ac_header" >&5
10449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10451 echo $ECHO_N "(cached) $ECHO_C" >&6
10453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10455 else
10456 # Is the header compilable?
10457 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10459 cat >conftest.$ac_ext <<_ACEOF
10460 #line $LINENO "configure"
10461 /* confdefs.h. */
10462 _ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h. */
10466 $ac_includes_default
10467 #include <$ac_header>
10468 _ACEOF
10469 rm -f conftest.$ac_objext
10470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10471 (eval $ac_compile) 2>&5
10472 ac_status=$?
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); } &&
10475 { ac_try='test -s conftest.$ac_objext'
10476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477 (eval $ac_try) 2>&5
10478 ac_status=$?
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; }; then
10481 ac_header_compiler=yes
10482 else
10483 echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10486 ac_header_compiler=no
10488 rm -f conftest.$ac_objext conftest.$ac_ext
10489 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10490 echo "${ECHO_T}$ac_header_compiler" >&6
10492 # Is the header present?
10493 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10495 cat >conftest.$ac_ext <<_ACEOF
10496 #line $LINENO "configure"
10497 /* confdefs.h. */
10498 _ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h. */
10502 #include <$ac_header>
10503 _ACEOF
10504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10506 ac_status=$?
10507 grep -v '^ *+' conftest.er1 >conftest.err
10508 rm -f conftest.er1
10509 cat conftest.err >&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } >/dev/null; then
10512 if test -s conftest.err; then
10513 ac_cpp_err=$ac_c_preproc_warn_flag
10514 else
10515 ac_cpp_err=
10517 else
10518 ac_cpp_err=yes
10520 if test -z "$ac_cpp_err"; then
10521 ac_header_preproc=yes
10522 else
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10526 ac_header_preproc=no
10528 rm -f conftest.err conftest.$ac_ext
10529 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10530 echo "${ECHO_T}$ac_header_preproc" >&6
10532 # So? What about this header?
10533 case $ac_header_compiler:$ac_header_preproc in
10534 yes:no )
10535 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10536 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10540 cat <<\_ASBOX
10541 ## ------------------------------------ ##
10542 ## Report this to bug-autoconf@gnu.org. ##
10543 ## ------------------------------------ ##
10544 _ASBOX
10546 sed "s/^/$as_me: WARNING: /" >&2
10548 no:yes )
10549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10556 cat <<\_ASBOX
10557 ## ------------------------------------ ##
10558 ## Report this to bug-autoconf@gnu.org. ##
10559 ## ------------------------------------ ##
10560 _ASBOX
10562 sed "s/^/$as_me: WARNING: /" >&2
10564 esac
10565 echo "$as_me:$LINENO: checking for $ac_header" >&5
10566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10568 echo $ECHO_N "(cached) $ECHO_C" >&6
10569 else
10570 eval "$as_ac_Header=$ac_header_preproc"
10572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10577 cat >>confdefs.h <<_ACEOF
10578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10579 _ACEOF
10580 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10581 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10582 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
10584 else
10585 ac_check_lib_save_LIBS=$LIBS
10586 LIBS="-laudioio $LIBS"
10587 cat >conftest.$ac_ext <<_ACEOF
10588 #line $LINENO "configure"
10589 /* confdefs.h. */
10590 _ACEOF
10591 cat confdefs.h >>conftest.$ac_ext
10592 cat >>conftest.$ac_ext <<_ACEOF
10593 /* end confdefs.h. */
10595 /* Override any gcc2 internal prototype to avoid an error. */
10596 #ifdef __cplusplus
10597 extern "C"
10598 #endif
10599 /* We use char because int might match the return type of a gcc2
10600 builtin and then its argument prototype would still apply. */
10601 char AudioIOGetVersion ();
10603 main ()
10605 AudioIOGetVersion ();
10607 return 0;
10609 _ACEOF
10610 rm -f conftest.$ac_objext conftest$ac_exeext
10611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10612 (eval $ac_link) 2>&5
10613 ac_status=$?
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } &&
10616 { ac_try='test -s conftest$ac_exeext'
10617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618 (eval $ac_try) 2>&5
10619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; }; then
10622 ac_cv_lib_audioio_AudioIOGetVersion=yes
10623 else
10624 echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.$ac_ext >&5
10627 ac_cv_lib_audioio_AudioIOGetVersion=no
10629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10630 LIBS=$ac_check_lib_save_LIBS
10632 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10633 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
10634 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
10635 AUDIOIOLIBS="-laudioio"
10637 cat >>confdefs.h <<\_ACEOF
10638 #define HAVE_LIBAUDIOIO 1
10639 _ACEOF
10645 done
10650 for ac_header in capi20.h
10652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10654 echo "$as_me:$LINENO: checking for $ac_header" >&5
10655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10657 echo $ECHO_N "(cached) $ECHO_C" >&6
10659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10661 else
10662 # Is the header compilable?
10663 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10665 cat >conftest.$ac_ext <<_ACEOF
10666 #line $LINENO "configure"
10667 /* confdefs.h. */
10668 _ACEOF
10669 cat confdefs.h >>conftest.$ac_ext
10670 cat >>conftest.$ac_ext <<_ACEOF
10671 /* end confdefs.h. */
10672 $ac_includes_default
10673 #include <$ac_header>
10674 _ACEOF
10675 rm -f conftest.$ac_objext
10676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10677 (eval $ac_compile) 2>&5
10678 ac_status=$?
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } &&
10681 { ac_try='test -s conftest.$ac_objext'
10682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683 (eval $ac_try) 2>&5
10684 ac_status=$?
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; }; then
10687 ac_header_compiler=yes
10688 else
10689 echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.$ac_ext >&5
10692 ac_header_compiler=no
10694 rm -f conftest.$ac_objext conftest.$ac_ext
10695 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10696 echo "${ECHO_T}$ac_header_compiler" >&6
10698 # Is the header present?
10699 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10701 cat >conftest.$ac_ext <<_ACEOF
10702 #line $LINENO "configure"
10703 /* confdefs.h. */
10704 _ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h. */
10708 #include <$ac_header>
10709 _ACEOF
10710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } >/dev/null; then
10718 if test -s conftest.err; then
10719 ac_cpp_err=$ac_c_preproc_warn_flag
10720 else
10721 ac_cpp_err=
10723 else
10724 ac_cpp_err=yes
10726 if test -z "$ac_cpp_err"; then
10727 ac_header_preproc=yes
10728 else
10729 echo "$as_me: failed program was:" >&5
10730 sed 's/^/| /' conftest.$ac_ext >&5
10732 ac_header_preproc=no
10734 rm -f conftest.err conftest.$ac_ext
10735 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10736 echo "${ECHO_T}$ac_header_preproc" >&6
10738 # So? What about this header?
10739 case $ac_header_compiler:$ac_header_preproc in
10740 yes:no )
10741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10742 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10746 cat <<\_ASBOX
10747 ## ------------------------------------ ##
10748 ## Report this to bug-autoconf@gnu.org. ##
10749 ## ------------------------------------ ##
10750 _ASBOX
10752 sed "s/^/$as_me: WARNING: /" >&2
10754 no:yes )
10755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10758 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10762 cat <<\_ASBOX
10763 ## ------------------------------------ ##
10764 ## Report this to bug-autoconf@gnu.org. ##
10765 ## ------------------------------------ ##
10766 _ASBOX
10768 sed "s/^/$as_me: WARNING: /" >&2
10770 esac
10771 echo "$as_me:$LINENO: checking for $ac_header" >&5
10772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10775 else
10776 eval "$as_ac_Header=$ac_header_preproc"
10778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10783 cat >>confdefs.h <<_ACEOF
10784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10785 _ACEOF
10788 for ac_header in linux/capi.h
10790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10792 echo "$as_me:$LINENO: checking for $ac_header" >&5
10793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10799 else
10800 # Is the header compilable?
10801 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10803 cat >conftest.$ac_ext <<_ACEOF
10804 #line $LINENO "configure"
10805 /* confdefs.h. */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 $ac_includes_default
10811 #include <$ac_header>
10812 _ACEOF
10813 rm -f conftest.$ac_objext
10814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10815 (eval $ac_compile) 2>&5
10816 ac_status=$?
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } &&
10819 { ac_try='test -s conftest.$ac_objext'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
10825 ac_header_compiler=yes
10826 else
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830 ac_header_compiler=no
10832 rm -f conftest.$ac_objext conftest.$ac_ext
10833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10834 echo "${ECHO_T}$ac_header_compiler" >&6
10836 # Is the header present?
10837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10839 cat >conftest.$ac_ext <<_ACEOF
10840 #line $LINENO "configure"
10841 /* confdefs.h. */
10842 _ACEOF
10843 cat confdefs.h >>conftest.$ac_ext
10844 cat >>conftest.$ac_ext <<_ACEOF
10845 /* end confdefs.h. */
10846 #include <$ac_header>
10847 _ACEOF
10848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10850 ac_status=$?
10851 grep -v '^ *+' conftest.er1 >conftest.err
10852 rm -f conftest.er1
10853 cat conftest.err >&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } >/dev/null; then
10856 if test -s conftest.err; then
10857 ac_cpp_err=$ac_c_preproc_warn_flag
10858 else
10859 ac_cpp_err=
10861 else
10862 ac_cpp_err=yes
10864 if test -z "$ac_cpp_err"; then
10865 ac_header_preproc=yes
10866 else
10867 echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.$ac_ext >&5
10870 ac_header_preproc=no
10872 rm -f conftest.err conftest.$ac_ext
10873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10874 echo "${ECHO_T}$ac_header_preproc" >&6
10876 # So? What about this header?
10877 case $ac_header_compiler:$ac_header_preproc in
10878 yes:no )
10879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10884 cat <<\_ASBOX
10885 ## ------------------------------------ ##
10886 ## Report this to bug-autoconf@gnu.org. ##
10887 ## ------------------------------------ ##
10888 _ASBOX
10890 sed "s/^/$as_me: WARNING: /" >&2
10892 no:yes )
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10900 cat <<\_ASBOX
10901 ## ------------------------------------ ##
10902 ## Report this to bug-autoconf@gnu.org. ##
10903 ## ------------------------------------ ##
10904 _ASBOX
10906 sed "s/^/$as_me: WARNING: /" >&2
10908 esac
10909 echo "$as_me:$LINENO: checking for $ac_header" >&5
10910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10913 else
10914 eval "$as_ac_Header=$ac_header_preproc"
10916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10921 cat >>confdefs.h <<_ACEOF
10922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10923 _ACEOF
10925 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
10926 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
10927 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 else
10930 ac_check_lib_save_LIBS=$LIBS
10931 LIBS="-lcapi20 $LIBS"
10932 cat >conftest.$ac_ext <<_ACEOF
10933 #line $LINENO "configure"
10934 /* confdefs.h. */
10935 _ACEOF
10936 cat confdefs.h >>conftest.$ac_ext
10937 cat >>conftest.$ac_ext <<_ACEOF
10938 /* end confdefs.h. */
10940 /* Override any gcc2 internal prototype to avoid an error. */
10941 #ifdef __cplusplus
10942 extern "C"
10943 #endif
10944 /* We use char because int might match the return type of a gcc2
10945 builtin and then its argument prototype would still apply. */
10946 char capi20_register ();
10948 main ()
10950 capi20_register ();
10952 return 0;
10954 _ACEOF
10955 rm -f conftest.$ac_objext conftest$ac_exeext
10956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10957 (eval $ac_link) 2>&5
10958 ac_status=$?
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } &&
10961 { ac_try='test -s conftest$ac_exeext'
10962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
10967 ac_cv_lib_capi20_capi20_register=yes
10968 else
10969 echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10972 ac_cv_lib_capi20_capi20_register=no
10974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10975 LIBS=$ac_check_lib_save_LIBS
10977 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
10978 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
10979 if test $ac_cv_lib_capi20_capi20_register = yes; then
10982 cat >>confdefs.h <<\_ACEOF
10983 #define HAVE_CAPI4LINUX 1
10984 _ACEOF
10986 CAPI4LINUXLIBS="-lcapi20"
10994 done
10999 done
11003 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
11004 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
11005 if test "${ac_cv_mmap64_works+set}" = set; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11007 else
11008 if test "$cross_compiling" = yes; then
11009 ac_cv_mmap64_works="no"
11010 else
11011 cat >conftest.$ac_ext <<_ACEOF
11012 #line $LINENO "configure"
11013 /* confdefs.h. */
11014 _ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h. */
11019 #define _FILE_OFFSET_BITS 64
11020 #include <stdio.h>
11021 #include <unistd.h>
11022 #include <fcntl.h>
11023 #include <sys/mman.h>
11024 #include <errno.h>
11026 int main(int argc,char **argv) {
11027 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
11028 if (fd == -1) exit(1);
11030 unlink("conftest.map");
11032 write(fd,"test",4);
11034 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
11035 (errno == EINVAL)
11037 exit(1);
11039 close(fd);
11040 fprintf(stderr,"success!\n");
11041 exit(0);
11045 _ACEOF
11046 rm -f conftest$ac_exeext
11047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11048 (eval $ac_link) 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053 (eval $ac_try) 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; }; then
11057 ac_cv_mmap64_works="yes"
11058 else
11059 echo "$as_me: program exited with status $ac_status" >&5
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11063 ( exit $ac_status )
11064 ac_cv_mmap64_works="no"
11066 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11069 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
11070 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
11072 if test "$ac_cv_mmap64_works" = "yes"
11073 then
11075 cat >>confdefs.h <<\_ACEOF
11076 #define _FILE_OFFSET_BITS 64
11077 _ACEOF
11082 EXTRACFLAGS=""
11084 if test "x${GCC}" = "xyes"
11085 then
11086 EXTRACFLAGS=-Wall
11088 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
11089 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
11090 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 else
11093 if test "$cross_compiling" = yes; then
11094 ac_cv_c_gcc_strength_bug="yes"
11095 else
11096 cat >conftest.$ac_ext <<_ACEOF
11097 #line $LINENO "configure"
11098 /* confdefs.h. */
11099 _ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h. */
11104 int L[4] = {0,1,2,3};
11105 int main(void) {
11106 static int Array[3];
11107 unsigned int B = 3;
11108 int i;
11109 for(i=0; i<B; i++) Array[i] = i - 3;
11110 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11111 L[i] = 4;
11113 exit( Array[1] != -2 || L[2] != 3);
11115 _ACEOF
11116 rm -f conftest$ac_exeext
11117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11118 (eval $ac_link) 2>&5
11119 ac_status=$?
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11123 (eval $ac_try) 2>&5
11124 ac_status=$?
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); }; }; then
11127 ac_cv_c_gcc_strength_bug="no"
11128 else
11129 echo "$as_me: program exited with status $ac_status" >&5
11130 echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11133 ( exit $ac_status )
11134 ac_cv_c_gcc_strength_bug="yes"
11136 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11139 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
11140 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
11141 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11142 then
11143 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11146 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
11147 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
11148 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11150 else
11151 ac_wine_try_cflags_saved=$CFLAGS
11152 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
11153 cat >conftest.$ac_ext <<_ACEOF
11154 #line $LINENO "configure"
11155 /* confdefs.h. */
11156 _ACEOF
11157 cat confdefs.h >>conftest.$ac_ext
11158 cat >>conftest.$ac_ext <<_ACEOF
11159 /* end confdefs.h. */
11162 main ()
11166 return 0;
11168 _ACEOF
11169 rm -f conftest.$ac_objext conftest$ac_exeext
11170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11171 (eval $ac_link) 2>&5
11172 ac_status=$?
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } &&
11175 { ac_try='test -s conftest$ac_exeext'
11176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11177 (eval $ac_try) 2>&5
11178 ac_status=$?
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); }; }; then
11181 ac_cv_c_gcc_stack_boundary="yes"
11182 else
11183 echo "$as_me: failed program was:" >&5
11184 sed 's/^/| /' conftest.$ac_ext >&5
11186 ac_cv_c_gcc_stack_boundary="no"
11188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11189 CFLAGS=$ac_wine_try_cflags_saved
11191 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
11192 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
11193 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
11194 then
11195 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
11198 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
11199 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
11200 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
11201 echo $ECHO_N "(cached) $ECHO_C" >&6
11202 else
11203 ac_wine_try_cflags_saved=$CFLAGS
11204 CFLAGS="$CFLAGS -fno-strict-aliasing"
11205 cat >conftest.$ac_ext <<_ACEOF
11206 #line $LINENO "configure"
11207 /* confdefs.h. */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h. */
11214 main ()
11218 return 0;
11220 _ACEOF
11221 rm -f conftest.$ac_objext conftest$ac_exeext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11223 (eval $ac_link) 2>&5
11224 ac_status=$?
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } &&
11227 { ac_try='test -s conftest$ac_exeext'
11228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11230 ac_status=$?
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; }; then
11233 ac_cv_c_gcc_no_strict_aliasing="yes"
11234 else
11235 echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.$ac_ext >&5
11238 ac_cv_c_gcc_no_strict_aliasing="no"
11240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11241 CFLAGS=$ac_wine_try_cflags_saved
11243 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
11244 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
11245 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
11246 then
11247 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11250 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
11251 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
11252 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11254 else
11255 ac_wine_try_cflags_saved=$CFLAGS
11256 CFLAGS="$CFLAGS -gstabs+"
11257 cat >conftest.$ac_ext <<_ACEOF
11258 #line $LINENO "configure"
11259 /* confdefs.h. */
11260 _ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h. */
11266 main ()
11270 return 0;
11272 _ACEOF
11273 rm -f conftest.$ac_objext conftest$ac_exeext
11274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11275 (eval $ac_link) 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); } &&
11279 { ac_try='test -s conftest$ac_exeext'
11280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281 (eval $ac_try) 2>&5
11282 ac_status=$?
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; }; then
11285 ac_cv_c_gcc_gstabs="yes"
11286 else
11287 echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11290 ac_cv_c_gcc_gstabs="no"
11292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11293 CFLAGS=$ac_wine_try_cflags_saved
11295 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
11296 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
11297 if test "$ac_cv_c_gcc_gstabs" = "yes"
11298 then
11299 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
11302 saved_CFLAGS="$CFLAGS"
11303 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
11304 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
11305 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
11306 if test "${ac_cv_c_string_h_warnings+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 else
11309 cat >conftest.$ac_ext <<_ACEOF
11310 #line $LINENO "configure"
11311 /* confdefs.h. */
11312 _ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h. */
11316 #include <string.h>
11318 main ()
11322 return 0;
11324 _ACEOF
11325 rm -f conftest.$ac_objext
11326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11327 (eval $ac_compile) 2>&5
11328 ac_status=$?
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } &&
11331 { ac_try='test -s conftest.$ac_objext'
11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333 (eval $ac_try) 2>&5
11334 ac_status=$?
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); }; }; then
11337 ac_cv_c_string_h_warnings=no
11338 else
11339 echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11342 ac_cv_c_string_h_warnings=yes
11344 rm -f conftest.$ac_objext conftest.$ac_ext
11346 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
11347 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
11348 CFLAGS="$saved_CFLAGS"
11349 if test "$ac_cv_c_string_h_warnings" = "no"
11350 then
11351 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
11356 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
11357 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
11358 if test "${ac_cv_asm_func_def+set}" = set; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 else
11361 cat >conftest.$ac_ext <<_ACEOF
11362 #line $LINENO "configure"
11363 /* confdefs.h. */
11364 _ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h. */
11368 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"); }
11371 main ()
11375 return 0;
11377 _ACEOF
11378 rm -f conftest.$ac_objext conftest$ac_exeext
11379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11380 (eval $ac_link) 2>&5
11381 ac_status=$?
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } &&
11384 { ac_try='test -s conftest$ac_exeext'
11385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386 (eval $ac_try) 2>&5
11387 ac_status=$?
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; }; then
11390 ac_cv_asm_func_def=".def"
11391 else
11392 echo "$as_me: failed program was:" >&5
11393 sed 's/^/| /' conftest.$ac_ext >&5
11395 cat >conftest.$ac_ext <<_ACEOF
11396 #line $LINENO "configure"
11397 /* confdefs.h. */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
11405 main ()
11409 return 0;
11411 _ACEOF
11412 rm -f conftest.$ac_objext conftest$ac_exeext
11413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11414 (eval $ac_link) 2>&5
11415 ac_status=$?
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } &&
11418 { ac_try='test -s conftest$ac_exeext'
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11421 ac_status=$?
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; }; then
11424 ac_cv_asm_func_def=".type @function"
11425 else
11426 echo "$as_me: failed program was:" >&5
11427 sed 's/^/| /' conftest.$ac_ext >&5
11429 cat >conftest.$ac_ext <<_ACEOF
11430 #line $LINENO "configure"
11431 /* confdefs.h. */
11432 _ACEOF
11433 cat confdefs.h >>conftest.$ac_ext
11434 cat >>conftest.$ac_ext <<_ACEOF
11435 /* end confdefs.h. */
11436 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
11439 main ()
11443 return 0;
11445 _ACEOF
11446 rm -f conftest.$ac_objext conftest$ac_exeext
11447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11448 (eval $ac_link) 2>&5
11449 ac_status=$?
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } &&
11452 { ac_try='test -s conftest$ac_exeext'
11453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454 (eval $ac_try) 2>&5
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; }; then
11458 ac_cv_asm_func_def=".type 2"
11459 else
11460 echo "$as_me: failed program was:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11463 ac_cv_asm_func_def="unknown"
11465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11471 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
11472 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
11476 case "$ac_cv_asm_func_def" in
11477 ".def")
11478 cat >>confdefs.h <<\_ACEOF
11479 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
11480 _ACEOF
11482 ".type @function")
11483 cat >>confdefs.h <<\_ACEOF
11484 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
11485 _ACEOF
11487 ".type 2")
11488 cat >>confdefs.h <<\_ACEOF
11489 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
11490 _ACEOF
11493 cat >>confdefs.h <<\_ACEOF
11494 #define __ASM_FUNC(name) ""
11495 _ACEOF
11497 esac
11500 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
11501 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
11502 if test "${ac_cv_c_extern_prefix+set}" = set; then
11503 echo $ECHO_N "(cached) $ECHO_C" >&6
11504 else
11505 cat >conftest.$ac_ext <<_ACEOF
11506 #line $LINENO "configure"
11507 /* confdefs.h. */
11508 _ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h. */
11512 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
11513 extern int ac_test;
11515 main ()
11517 if (ac_test) return 1
11519 return 0;
11521 _ACEOF
11522 rm -f conftest.$ac_objext conftest$ac_exeext
11523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11524 (eval $ac_link) 2>&5
11525 ac_status=$?
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } &&
11528 { ac_try='test -s conftest$ac_exeext'
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; }; then
11534 ac_cv_c_extern_prefix="yes"
11535 else
11536 echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11539 ac_cv_c_extern_prefix="no"
11541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11543 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
11544 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
11548 if test "$ac_cv_c_extern_prefix" = "yes"
11549 then
11550 cat >>confdefs.h <<\_ACEOF
11551 #define __ASM_NAME(name) "_" name
11552 _ACEOF
11554 else
11555 cat >>confdefs.h <<\_ACEOF
11556 #define __ASM_NAME(name) name
11557 _ACEOF
11562 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
11563 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
11564 if test "${ac_cv_c_asm_string+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 else
11567 cat >conftest.$ac_ext <<_ACEOF
11568 #line $LINENO "configure"
11569 /* confdefs.h. */
11570 _ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11574 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
11577 main ()
11581 return 0;
11583 _ACEOF
11584 rm -f conftest.$ac_objext conftest$ac_exeext
11585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11586 (eval $ac_link) 2>&5
11587 ac_status=$?
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); } &&
11590 { ac_try='test -s conftest$ac_exeext'
11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 ac_cv_c_asm_string="yes"
11597 else
11598 echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.$ac_ext >&5
11601 ac_cv_c_asm_string="no"
11603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11605 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
11606 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
11607 if test "$ac_cv_c_asm_string" = "yes"
11608 then
11610 cat >>confdefs.h <<\_ACEOF
11611 #define __ASM_STRING ".string"
11612 _ACEOF
11614 else
11615 echo "$as_me:$LINENO: checking whether assembler accepts .asciz" >&5
11616 echo $ECHO_N "checking whether assembler accepts .asciz... $ECHO_C" >&6
11617 if test "${ac_cv_c_asm_asciz+set}" = set; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11619 else
11620 cat >conftest.$ac_ext <<_ACEOF
11621 #line $LINENO "configure"
11622 /* confdefs.h. */
11623 _ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h. */
11627 void ac_asm(void) { asm(".data\n\t.asciz \"test\"\n\t.text"); }
11630 main ()
11634 return 0;
11636 _ACEOF
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11639 (eval $ac_link) 2>&5
11640 ac_status=$?
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } &&
11643 { ac_try='test -s conftest$ac_exeext'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11646 ac_status=$?
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11649 ac_cv_c_asm_asciz="yes"
11650 else
11651 echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11654 ac_cv_c_asm_asciz="no"
11656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11658 echo "$as_me:$LINENO: result: $ac_cv_c_asm_asciz" >&5
11659 echo "${ECHO_T}$ac_cv_c_asm_asciz" >&6
11660 if test "$ac_cv_c_asm_asciz" = "yes"
11661 then
11662 cat >>confdefs.h <<\_ACEOF
11663 #define __ASM_STRING ".asciz"
11664 _ACEOF
11666 else
11667 cat >>confdefs.h <<\_ACEOF
11668 #define __ASM_STRING ".ascii"
11669 _ACEOF
11675 echo "$as_me:$LINENO: checking whether assembler accepts .short" >&5
11676 echo $ECHO_N "checking whether assembler accepts .short... $ECHO_C" >&6
11677 if test "${ac_cv_c_asm_short+set}" = set; then
11678 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 else
11680 cat >conftest.$ac_ext <<_ACEOF
11681 #line $LINENO "configure"
11682 /* confdefs.h. */
11683 _ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11687 void ac_asm(void) { asm(".data\n\t.short 1\n\t.text"); }
11690 main ()
11694 return 0;
11696 _ACEOF
11697 rm -f conftest.$ac_objext conftest$ac_exeext
11698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11699 (eval $ac_link) 2>&5
11700 ac_status=$?
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } &&
11703 { ac_try='test -s conftest$ac_exeext'
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11706 ac_status=$?
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; }; then
11709 ac_cv_c_asm_short="yes"
11710 else
11711 echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11714 ac_cv_c_asm_short="no"
11716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11718 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
11719 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
11720 if test "$ac_cv_c_asm_short" = "yes"
11721 then
11723 cat >>confdefs.h <<\_ACEOF
11724 #define __ASM_SHORT ".short"
11725 _ACEOF
11727 else
11728 cat >>confdefs.h <<\_ACEOF
11729 #define __ASM_SHORT ".half"
11730 _ACEOF
11735 DLLEXT=""
11737 DLLFLAGS="-D_REENTRANT"
11739 DLLIBS=""
11741 LDSHARED=""
11743 LDDLL=""
11745 LIBEXT="so"
11747 IMPLIBEXT="def"
11750 case $host_os in
11751 cygwin*|mingw32*)
11752 if test -n "$ac_tool_prefix"; then
11753 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11754 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11755 echo "$as_me:$LINENO: checking for $ac_word" >&5
11756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11757 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 else
11760 if test -n "$DLLTOOL"; then
11761 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11762 else
11763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764 for as_dir in $PATH
11766 IFS=$as_save_IFS
11767 test -z "$as_dir" && as_dir=.
11768 for ac_exec_ext in '' $ac_executable_extensions; do
11769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11770 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11772 break 2
11774 done
11775 done
11779 DLLTOOL=$ac_cv_prog_DLLTOOL
11780 if test -n "$DLLTOOL"; then
11781 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11782 echo "${ECHO_T}$DLLTOOL" >&6
11783 else
11784 echo "$as_me:$LINENO: result: no" >&5
11785 echo "${ECHO_T}no" >&6
11789 if test -z "$ac_cv_prog_DLLTOOL"; then
11790 ac_ct_DLLTOOL=$DLLTOOL
11791 # Extract the first word of "dlltool", so it can be a program name with args.
11792 set dummy dlltool; ac_word=$2
11793 echo "$as_me:$LINENO: checking for $ac_word" >&5
11794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11795 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798 if test -n "$ac_ct_DLLTOOL"; then
11799 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11800 else
11801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802 for as_dir in $PATH
11804 IFS=$as_save_IFS
11805 test -z "$as_dir" && as_dir=.
11806 for ac_exec_ext in '' $ac_executable_extensions; do
11807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11808 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11810 break 2
11812 done
11813 done
11815 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
11818 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11819 if test -n "$ac_ct_DLLTOOL"; then
11820 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11821 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
11822 else
11823 echo "$as_me:$LINENO: result: no" >&5
11824 echo "${ECHO_T}no" >&6
11827 DLLTOOL=$ac_ct_DLLTOOL
11828 else
11829 DLLTOOL="$ac_cv_prog_DLLTOOL"
11832 if test -n "$ac_tool_prefix"; then
11833 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
11834 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
11835 echo "$as_me:$LINENO: checking for $ac_word" >&5
11836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11837 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
11838 echo $ECHO_N "(cached) $ECHO_C" >&6
11839 else
11840 if test -n "$DLLWRAP"; then
11841 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
11842 else
11843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11844 for as_dir in $PATH
11846 IFS=$as_save_IFS
11847 test -z "$as_dir" && as_dir=.
11848 for ac_exec_ext in '' $ac_executable_extensions; do
11849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11850 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
11851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11852 break 2
11854 done
11855 done
11859 DLLWRAP=$ac_cv_prog_DLLWRAP
11860 if test -n "$DLLWRAP"; then
11861 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
11862 echo "${ECHO_T}$DLLWRAP" >&6
11863 else
11864 echo "$as_me:$LINENO: result: no" >&5
11865 echo "${ECHO_T}no" >&6
11869 if test -z "$ac_cv_prog_DLLWRAP"; then
11870 ac_ct_DLLWRAP=$DLLWRAP
11871 # Extract the first word of "dllwrap", so it can be a program name with args.
11872 set dummy dllwrap; ac_word=$2
11873 echo "$as_me:$LINENO: checking for $ac_word" >&5
11874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11875 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11877 else
11878 if test -n "$ac_ct_DLLWRAP"; then
11879 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
11880 else
11881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11882 for as_dir in $PATH
11884 IFS=$as_save_IFS
11885 test -z "$as_dir" && as_dir=.
11886 for ac_exec_ext in '' $ac_executable_extensions; do
11887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11888 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
11889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11890 break 2
11892 done
11893 done
11895 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
11898 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
11899 if test -n "$ac_ct_DLLWRAP"; then
11900 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
11901 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
11902 else
11903 echo "$as_me:$LINENO: result: no" >&5
11904 echo "${ECHO_T}no" >&6
11907 DLLWRAP=$ac_ct_DLLWRAP
11908 else
11909 DLLWRAP="$ac_cv_prog_DLLWRAP"
11912 if test "$DLLWRAP" = "false"; then
11913 LIBEXT="a"
11914 else
11915 LIBEXT="dll"
11917 IMPLIBEXT="a"
11921 for ac_header in dlfcn.h
11923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11925 echo "$as_me:$LINENO: checking for $ac_header" >&5
11926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11928 echo $ECHO_N "(cached) $ECHO_C" >&6
11930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11932 else
11933 # Is the header compilable?
11934 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11936 cat >conftest.$ac_ext <<_ACEOF
11937 #line $LINENO "configure"
11938 /* confdefs.h. */
11939 _ACEOF
11940 cat confdefs.h >>conftest.$ac_ext
11941 cat >>conftest.$ac_ext <<_ACEOF
11942 /* end confdefs.h. */
11943 $ac_includes_default
11944 #include <$ac_header>
11945 _ACEOF
11946 rm -f conftest.$ac_objext
11947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11948 (eval $ac_compile) 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } &&
11952 { ac_try='test -s conftest.$ac_objext'
11953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954 (eval $ac_try) 2>&5
11955 ac_status=$?
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); }; }; then
11958 ac_header_compiler=yes
11959 else
11960 echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11963 ac_header_compiler=no
11965 rm -f conftest.$ac_objext conftest.$ac_ext
11966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11967 echo "${ECHO_T}$ac_header_compiler" >&6
11969 # Is the header present?
11970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11972 cat >conftest.$ac_ext <<_ACEOF
11973 #line $LINENO "configure"
11974 /* confdefs.h. */
11975 _ACEOF
11976 cat confdefs.h >>conftest.$ac_ext
11977 cat >>conftest.$ac_ext <<_ACEOF
11978 /* end confdefs.h. */
11979 #include <$ac_header>
11980 _ACEOF
11981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11983 ac_status=$?
11984 grep -v '^ *+' conftest.er1 >conftest.err
11985 rm -f conftest.er1
11986 cat conftest.err >&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } >/dev/null; then
11989 if test -s conftest.err; then
11990 ac_cpp_err=$ac_c_preproc_warn_flag
11991 else
11992 ac_cpp_err=
11994 else
11995 ac_cpp_err=yes
11997 if test -z "$ac_cpp_err"; then
11998 ac_header_preproc=yes
11999 else
12000 echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12003 ac_header_preproc=no
12005 rm -f conftest.err conftest.$ac_ext
12006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12007 echo "${ECHO_T}$ac_header_preproc" >&6
12009 # So? What about this header?
12010 case $ac_header_compiler:$ac_header_preproc in
12011 yes:no )
12012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12017 cat <<\_ASBOX
12018 ## ------------------------------------ ##
12019 ## Report this to bug-autoconf@gnu.org. ##
12020 ## ------------------------------------ ##
12021 _ASBOX
12023 sed "s/^/$as_me: WARNING: /" >&2
12025 no:yes )
12026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12033 cat <<\_ASBOX
12034 ## ------------------------------------ ##
12035 ## Report this to bug-autoconf@gnu.org. ##
12036 ## ------------------------------------ ##
12037 _ASBOX
12039 sed "s/^/$as_me: WARNING: /" >&2
12041 esac
12042 echo "$as_me:$LINENO: checking for $ac_header" >&5
12043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12046 else
12047 eval "$as_ac_Header=$ac_header_preproc"
12049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12054 cat >>confdefs.h <<_ACEOF
12055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12056 _ACEOF
12058 for ac_func in dlopen
12060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12061 echo "$as_me:$LINENO: checking for $ac_func" >&5
12062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12063 if eval "test \"\${$as_ac_var+set}\" = set"; then
12064 echo $ECHO_N "(cached) $ECHO_C" >&6
12065 else
12066 cat >conftest.$ac_ext <<_ACEOF
12067 #line $LINENO "configure"
12068 /* confdefs.h. */
12069 _ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h. */
12073 /* System header to define __stub macros and hopefully few prototypes,
12074 which can conflict with char $ac_func (); below.
12075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12076 <limits.h> exists even on freestanding compilers. */
12077 #ifdef __STDC__
12078 # include <limits.h>
12079 #else
12080 # include <assert.h>
12081 #endif
12082 /* Override any gcc2 internal prototype to avoid an error. */
12083 #ifdef __cplusplus
12084 extern "C"
12086 #endif
12087 /* We use char because int might match the return type of a gcc2
12088 builtin and then its argument prototype would still apply. */
12089 char $ac_func ();
12090 /* The GNU C library defines this for functions which it implements
12091 to always fail with ENOSYS. Some functions are actually named
12092 something starting with __ and the normal name is an alias. */
12093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12094 choke me
12095 #else
12096 char (*f) () = $ac_func;
12097 #endif
12098 #ifdef __cplusplus
12100 #endif
12103 main ()
12105 return f != $ac_func;
12107 return 0;
12109 _ACEOF
12110 rm -f conftest.$ac_objext conftest$ac_exeext
12111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12112 (eval $ac_link) 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } &&
12116 { ac_try='test -s conftest$ac_exeext'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 eval "$as_ac_var=yes"
12123 else
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12127 eval "$as_ac_var=no"
12129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12133 if test `eval echo '${'$as_ac_var'}'` = yes; then
12134 cat >>confdefs.h <<_ACEOF
12135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12136 _ACEOF
12138 else
12139 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12140 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12141 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12142 echo $ECHO_N "(cached) $ECHO_C" >&6
12143 else
12144 ac_check_lib_save_LIBS=$LIBS
12145 LIBS="-ldl $LIBS"
12146 cat >conftest.$ac_ext <<_ACEOF
12147 #line $LINENO "configure"
12148 /* confdefs.h. */
12149 _ACEOF
12150 cat confdefs.h >>conftest.$ac_ext
12151 cat >>conftest.$ac_ext <<_ACEOF
12152 /* end confdefs.h. */
12154 /* Override any gcc2 internal prototype to avoid an error. */
12155 #ifdef __cplusplus
12156 extern "C"
12157 #endif
12158 /* We use char because int might match the return type of a gcc2
12159 builtin and then its argument prototype would still apply. */
12160 char dlopen ();
12162 main ()
12164 dlopen ();
12166 return 0;
12168 _ACEOF
12169 rm -f conftest.$ac_objext conftest$ac_exeext
12170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12171 (eval $ac_link) 2>&5
12172 ac_status=$?
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } &&
12175 { ac_try='test -s conftest$ac_exeext'
12176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177 (eval $ac_try) 2>&5
12178 ac_status=$?
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); }; }; then
12181 ac_cv_lib_dl_dlopen=yes
12182 else
12183 echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12186 ac_cv_lib_dl_dlopen=no
12188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12189 LIBS=$ac_check_lib_save_LIBS
12191 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12192 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12193 if test $ac_cv_lib_dl_dlopen = yes; then
12195 cat >>confdefs.h <<\_ACEOF
12196 #define HAVE_DLOPEN 1
12197 _ACEOF
12199 DLLIBS="-ldl"
12200 else
12201 LIBEXT="a"
12205 done
12207 else
12208 LIBEXT="a"
12211 done
12214 if test "$LIBEXT" = "so"
12215 then
12216 DLLFLAGS="$DLLFLAGS -fPIC"
12217 DLLEXT=".so"
12218 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
12219 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
12220 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
12221 echo $ECHO_N "(cached) $ECHO_C" >&6
12222 else
12223 ac_wine_try_cflags_saved=$CFLAGS
12224 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
12225 cat >conftest.$ac_ext <<_ACEOF
12226 #line $LINENO "configure"
12227 /* confdefs.h. */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12234 main ()
12238 return 0;
12240 _ACEOF
12241 rm -f conftest.$ac_objext conftest$ac_exeext
12242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12243 (eval $ac_link) 2>&5
12244 ac_status=$?
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } &&
12247 { ac_try='test -s conftest$ac_exeext'
12248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249 (eval $ac_try) 2>&5
12250 ac_status=$?
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); }; }; then
12253 ac_cv_c_dll_gnuelf="yes"
12254 else
12255 echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12258 ac_cv_c_dll_gnuelf="no"
12260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12261 CFLAGS=$ac_wine_try_cflags_saved
12263 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
12264 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
12265 if test "$ac_cv_c_dll_gnuelf" = "yes"
12266 then
12267 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
12268 LDDLL="\$(CC) -shared -Wl,-Bsymbolic"
12269 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
12270 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
12271 if test "${ac_cv_c_dll_zdefs+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12273 else
12274 ac_wine_try_cflags_saved=$CFLAGS
12275 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
12276 cat >conftest.$ac_ext <<_ACEOF
12277 #line $LINENO "configure"
12278 /* confdefs.h. */
12279 _ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h. */
12285 main ()
12289 return 0;
12291 _ACEOF
12292 rm -f conftest.$ac_objext conftest$ac_exeext
12293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12294 (eval $ac_link) 2>&5
12295 ac_status=$?
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } &&
12298 { ac_try='test -s conftest$ac_exeext'
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12301 ac_status=$?
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; }; then
12304 ac_cv_c_dll_zdefs="yes"
12305 else
12306 echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12309 ac_cv_c_dll_zdefs="no"
12311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12312 CFLAGS=$ac_wine_try_cflags_saved
12314 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
12315 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
12316 if test "$ac_cv_c_dll_zdefs" = "yes"
12317 then
12318 LDDLL="$LDDLL,-z,defs"
12320 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x3c000000" >&5
12321 echo $ECHO_N "checking whether we can relocate the executable to 0x3c000000... $ECHO_C" >&6
12322 if test "${ac_cv_ld_reloc_exec+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 else
12325 saved_CFLAGS="$CFLAGS"
12326 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x3c000100"
12327 if test "$cross_compiling" = yes; then
12328 ac_cv_ld_reloc_exec="no"
12329 else
12330 cat >conftest.$ac_ext <<_ACEOF
12331 #line $LINENO "configure"
12332 /* confdefs.h. */
12333 _ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12337 #include <unistd.h>
12338 int main() { return (sbrk(32*1024*1024) == (void *)-1); }
12339 _ACEOF
12340 rm -f conftest$ac_exeext
12341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12342 (eval $ac_link) 2>&5
12343 ac_status=$?
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12348 ac_status=$?
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; }; then
12351 ac_cv_ld_reloc_exec="yes"
12352 else
12353 echo "$as_me: program exited with status $ac_status" >&5
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12357 ( exit $ac_status )
12358 ac_cv_ld_reloc_exec="no"
12360 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12362 CFLAGS="$saved_CFLAGS"
12364 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
12365 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
12366 if test "$ac_cv_ld_reloc_exec" = "yes"
12367 then
12368 LDEXECFLAGS="-Wl,--section-start,.interp=0x3c000100"
12371 else
12372 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
12373 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
12374 if test "${ac_cv_c_dll_unixware+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377 ac_wine_try_cflags_saved=$CFLAGS
12378 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
12379 cat >conftest.$ac_ext <<_ACEOF
12380 #line $LINENO "configure"
12381 /* confdefs.h. */
12382 _ACEOF
12383 cat confdefs.h >>conftest.$ac_ext
12384 cat >>conftest.$ac_ext <<_ACEOF
12385 /* end confdefs.h. */
12388 main ()
12392 return 0;
12394 _ACEOF
12395 rm -f conftest.$ac_objext conftest$ac_exeext
12396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12397 (eval $ac_link) 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } &&
12401 { ac_try='test -s conftest$ac_exeext'
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; }; then
12407 ac_cv_c_dll_unixware="yes"
12408 else
12409 echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12412 ac_cv_c_dll_unixware="no"
12414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12415 CFLAGS=$ac_wine_try_cflags_saved
12417 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
12418 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
12419 if test "$ac_cv_c_dll_unixware" = "yes"
12420 then
12421 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
12422 LDDLL="\$(CC) -Wl,-G,-B,symbolic"
12427 CROSSTEST=""
12429 if test "$cross_compiling" = "no"
12430 then
12431 for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc
12433 # Extract the first word of "$ac_prog", so it can be a program name with args.
12434 set dummy $ac_prog; ac_word=$2
12435 echo "$as_me:$LINENO: checking for $ac_word" >&5
12436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12437 if test "${ac_cv_prog_CROSSCC+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12439 else
12440 if test -n "$CROSSCC"; then
12441 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
12442 else
12443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12444 for as_dir in $PATH
12446 IFS=$as_save_IFS
12447 test -z "$as_dir" && as_dir=.
12448 for ac_exec_ext in '' $ac_executable_extensions; do
12449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12450 ac_cv_prog_CROSSCC="$ac_prog"
12451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12452 break 2
12454 done
12455 done
12459 CROSSCC=$ac_cv_prog_CROSSCC
12460 if test -n "$CROSSCC"; then
12461 echo "$as_me:$LINENO: result: $CROSSCC" >&5
12462 echo "${ECHO_T}$CROSSCC" >&6
12463 else
12464 echo "$as_me:$LINENO: result: no" >&5
12465 echo "${ECHO_T}no" >&6
12468 test -n "$CROSSCC" && break
12469 done
12470 test -n "$CROSSCC" || CROSSCC="false"
12472 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool
12474 # Extract the first word of "$ac_prog", so it can be a program name with args.
12475 set dummy $ac_prog; ac_word=$2
12476 echo "$as_me:$LINENO: checking for $ac_word" >&5
12477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12478 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12480 else
12481 if test -n "$DLLTOOL"; then
12482 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12483 else
12484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12485 for as_dir in $PATH
12487 IFS=$as_save_IFS
12488 test -z "$as_dir" && as_dir=.
12489 for ac_exec_ext in '' $ac_executable_extensions; do
12490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12491 ac_cv_prog_DLLTOOL="$ac_prog"
12492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12493 break 2
12495 done
12496 done
12500 DLLTOOL=$ac_cv_prog_DLLTOOL
12501 if test -n "$DLLTOOL"; then
12502 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12503 echo "${ECHO_T}$DLLTOOL" >&6
12504 else
12505 echo "$as_me:$LINENO: result: no" >&5
12506 echo "${ECHO_T}no" >&6
12509 test -n "$DLLTOOL" && break
12510 done
12511 test -n "$DLLTOOL" || DLLTOOL="false"
12513 for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres
12515 # Extract the first word of "$ac_prog", so it can be a program name with args.
12516 set dummy $ac_prog; ac_word=$2
12517 echo "$as_me:$LINENO: checking for $ac_word" >&5
12518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12519 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12521 else
12522 if test -n "$CROSSWINDRES"; then
12523 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
12524 else
12525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12526 for as_dir in $PATH
12528 IFS=$as_save_IFS
12529 test -z "$as_dir" && as_dir=.
12530 for ac_exec_ext in '' $ac_executable_extensions; do
12531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12532 ac_cv_prog_CROSSWINDRES="$ac_prog"
12533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12534 break 2
12536 done
12537 done
12541 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
12542 if test -n "$CROSSWINDRES"; then
12543 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
12544 echo "${ECHO_T}$CROSSWINDRES" >&6
12545 else
12546 echo "$as_me:$LINENO: result: no" >&5
12547 echo "${ECHO_T}no" >&6
12550 test -n "$CROSSWINDRES" && break
12551 done
12552 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
12554 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
12557 esac
12559 if test "$LIBEXT" = "a"; then
12560 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
12561 It is currently not possible to build Wine without shared library
12562 (.so) support to allow transparent switch between .so and .dll files.
12563 If you are using Linux, you will need a newer binutils.
12564 " >&5
12565 echo "$as_me: error: could not find a way to build shared libraries.
12566 It is currently not possible to build Wine without shared library
12567 (.so) support to allow transparent switch between .so and .dll files.
12568 If you are using Linux, you will need a newer binutils.
12569 " >&2;}
12570 { (exit 1); exit 1; }; }
12573 case $build_os in
12574 cygwin*|mingw32*)
12575 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
12578 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
12580 esac
12582 CRTLIBS=""
12584 case $host_os in
12585 mingw32*)
12586 CRTLIBS="-lmsvcrt" ;;
12587 esac
12590 if test "$LIBEXT" = "so"
12591 then
12592 # Extract the first word of "ldd", so it can be a program name with args.
12593 set dummy ldd; ac_word=$2
12594 echo "$as_me:$LINENO: checking for $ac_word" >&5
12595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12596 if test "${ac_cv_path_LDD+set}" = set; then
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12598 else
12599 case $LDD in
12600 [\\/]* | ?:[\\/]*)
12601 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
12604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12605 as_dummy="/sbin:/usr/sbin:$PATH"
12606 for as_dir in $as_dummy
12608 IFS=$as_save_IFS
12609 test -z "$as_dir" && as_dir=.
12610 for ac_exec_ext in '' $ac_executable_extensions; do
12611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12612 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
12613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12614 break 2
12616 done
12617 done
12619 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
12621 esac
12623 LDD=$ac_cv_path_LDD
12625 if test -n "$LDD"; then
12626 echo "$as_me:$LINENO: result: $LDD" >&5
12627 echo "${ECHO_T}$LDD" >&6
12628 else
12629 echo "$as_me:$LINENO: result: no" >&5
12630 echo "${ECHO_T}no" >&6
12634 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
12635 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
12636 if test "${ac_cv_lib_soname_X11+set}" = set; then
12637 echo $ECHO_N "(cached) $ECHO_C" >&6
12638 else
12639 ac_get_soname_save_LIBS=$LIBS
12640 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
12641 cat >conftest.$ac_ext <<_ACEOF
12642 #line $LINENO "configure"
12643 /* confdefs.h. */
12644 _ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h. */
12649 /* Override any gcc2 internal prototype to avoid an error. */
12650 #ifdef __cplusplus
12651 extern "C"
12652 #endif
12653 /* We use char because int might match the return type of a gcc2
12654 builtin and then its argument prototype would still apply. */
12655 char XCreateWindow ();
12657 main ()
12659 XCreateWindow ();
12661 return 0;
12663 _ACEOF
12664 rm -f conftest.$ac_objext conftest$ac_exeext
12665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12666 (eval $ac_link) 2>&5
12667 ac_status=$?
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try='test -s conftest$ac_exeext'
12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12673 ac_status=$?
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; }; then
12676 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^.*\(libX11\.so[^ ]*\).*$/\1/'`
12677 if test "x$ac_cv_lib_soname_X11" = "x"
12678 then
12679 ac_cv_lib_soname_X11="libX11.so"
12681 else
12682 echo "$as_me: failed program was:" >&5
12683 sed 's/^/| /' conftest.$ac_ext >&5
12685 ac_cv_lib_soname_X11="libX11.so"
12687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12688 LIBS=$ac_get_soname_save_LIBS
12690 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
12691 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
12692 if test "x$ac_cv_lib_soname_X11" != xNONE
12693 then
12694 cat >>confdefs.h <<_ACEOF
12695 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
12696 _ACEOF
12699 echo "$as_me:$LINENO: checking for -lXext soname" >&5
12700 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
12701 if test "${ac_cv_lib_soname_Xext+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 else
12704 ac_get_soname_save_LIBS=$LIBS
12705 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
12706 cat >conftest.$ac_ext <<_ACEOF
12707 #line $LINENO "configure"
12708 /* confdefs.h. */
12709 _ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h. */
12714 /* Override any gcc2 internal prototype to avoid an error. */
12715 #ifdef __cplusplus
12716 extern "C"
12717 #endif
12718 /* We use char because int might match the return type of a gcc2
12719 builtin and then its argument prototype would still apply. */
12720 char XextCreateExtension ();
12722 main ()
12724 XextCreateExtension ();
12726 return 0;
12728 _ACEOF
12729 rm -f conftest.$ac_objext conftest$ac_exeext
12730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12731 (eval $ac_link) 2>&5
12732 ac_status=$?
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } &&
12735 { ac_try='test -s conftest$ac_exeext'
12736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737 (eval $ac_try) 2>&5
12738 ac_status=$?
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); }; }; then
12741 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^.*\(libXext\.so[^ ]*\).*$/\1/'`
12742 if test "x$ac_cv_lib_soname_Xext" = "x"
12743 then
12744 ac_cv_lib_soname_Xext="libXext.so"
12746 else
12747 echo "$as_me: failed program was:" >&5
12748 sed 's/^/| /' conftest.$ac_ext >&5
12750 ac_cv_lib_soname_Xext="libXext.so"
12752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12753 LIBS=$ac_get_soname_save_LIBS
12755 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
12756 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
12757 if test "x$ac_cv_lib_soname_Xext" != xNONE
12758 then
12759 cat >>confdefs.h <<_ACEOF
12760 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
12761 _ACEOF
12764 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
12765 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
12766 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
12767 echo $ECHO_N "(cached) $ECHO_C" >&6
12768 else
12769 ac_get_soname_save_LIBS=$LIBS
12770 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
12771 cat >conftest.$ac_ext <<_ACEOF
12772 #line $LINENO "configure"
12773 /* confdefs.h. */
12774 _ACEOF
12775 cat confdefs.h >>conftest.$ac_ext
12776 cat >>conftest.$ac_ext <<_ACEOF
12777 /* end confdefs.h. */
12779 /* Override any gcc2 internal prototype to avoid an error. */
12780 #ifdef __cplusplus
12781 extern "C"
12782 #endif
12783 /* We use char because int might match the return type of a gcc2
12784 builtin and then its argument prototype would still apply. */
12785 char XRenderQueryExtension ();
12787 main ()
12789 XRenderQueryExtension ();
12791 return 0;
12793 _ACEOF
12794 rm -f conftest.$ac_objext conftest$ac_exeext
12795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12796 (eval $ac_link) 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } &&
12800 { ac_try='test -s conftest$ac_exeext'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^.*\(libXrender\.so[^ ]*\).*$/\1/'`
12807 if test "x$ac_cv_lib_soname_Xrender" = "x"
12808 then
12809 ac_cv_lib_soname_Xrender="libXrender.so"
12811 else
12812 echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12815 ac_cv_lib_soname_Xrender="libXrender.so"
12817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12818 LIBS=$ac_get_soname_save_LIBS
12820 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
12821 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
12822 if test "x$ac_cv_lib_soname_Xrender" != xNONE
12823 then
12824 cat >>confdefs.h <<_ACEOF
12825 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
12826 _ACEOF
12829 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
12830 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
12831 if test "${ac_cv_lib_soname_freetype+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12833 else
12834 ac_get_soname_save_LIBS=$LIBS
12835 LIBS="-lfreetype $X_LIBS $LIBS"
12836 cat >conftest.$ac_ext <<_ACEOF
12837 #line $LINENO "configure"
12838 /* confdefs.h. */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12844 /* Override any gcc2 internal prototype to avoid an error. */
12845 #ifdef __cplusplus
12846 extern "C"
12847 #endif
12848 /* We use char because int might match the return type of a gcc2
12849 builtin and then its argument prototype would still apply. */
12850 char FT_Init_FreeType ();
12852 main ()
12854 FT_Init_FreeType ();
12856 return 0;
12858 _ACEOF
12859 rm -f conftest.$ac_objext conftest$ac_exeext
12860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12861 (eval $ac_link) 2>&5
12862 ac_status=$?
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } &&
12865 { ac_try='test -s conftest$ac_exeext'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12868 ac_status=$?
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12871 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^.*\(libfreetype\.so[^ ]*\).*$/\1/'`
12872 if test "x$ac_cv_lib_soname_freetype" = "x"
12873 then
12874 ac_cv_lib_soname_freetype="libfreetype.so"
12876 else
12877 echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12880 ac_cv_lib_soname_freetype="libfreetype.so"
12882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12883 LIBS=$ac_get_soname_save_LIBS
12885 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
12886 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
12887 if test "x$ac_cv_lib_soname_freetype" != xNONE
12888 then
12889 cat >>confdefs.h <<_ACEOF
12890 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
12891 _ACEOF
12894 echo "$as_me:$LINENO: checking for -lGL soname" >&5
12895 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
12896 if test "${ac_cv_lib_soname_GL+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 else
12899 ac_get_soname_save_LIBS=$LIBS
12900 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
12901 cat >conftest.$ac_ext <<_ACEOF
12902 #line $LINENO "configure"
12903 /* confdefs.h. */
12904 _ACEOF
12905 cat confdefs.h >>conftest.$ac_ext
12906 cat >>conftest.$ac_ext <<_ACEOF
12907 /* end confdefs.h. */
12909 /* Override any gcc2 internal prototype to avoid an error. */
12910 #ifdef __cplusplus
12911 extern "C"
12912 #endif
12913 /* We use char because int might match the return type of a gcc2
12914 builtin and then its argument prototype would still apply. */
12915 char glXQueryExtension ();
12917 main ()
12919 glXQueryExtension ();
12921 return 0;
12923 _ACEOF
12924 rm -f conftest.$ac_objext conftest$ac_exeext
12925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12926 (eval $ac_link) 2>&5
12927 ac_status=$?
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); } &&
12930 { ac_try='test -s conftest$ac_exeext'
12931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12933 ac_status=$?
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; }; then
12936 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^.*\(libGL\.so[^ ]*\).*$/\1/'`
12937 if test "x$ac_cv_lib_soname_GL" = "x"
12938 then
12939 ac_cv_lib_soname_GL="libGL.so"
12941 else
12942 echo "$as_me: failed program was:" >&5
12943 sed 's/^/| /' conftest.$ac_ext >&5
12945 ac_cv_lib_soname_GL="libGL.so"
12947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12948 LIBS=$ac_get_soname_save_LIBS
12950 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
12951 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
12952 if test "x$ac_cv_lib_soname_GL" != xNONE
12953 then
12954 cat >>confdefs.h <<_ACEOF
12955 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
12956 _ACEOF
12959 echo "$as_me:$LINENO: checking for -lcups soname" >&5
12960 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
12961 if test "${ac_cv_lib_soname_cups+set}" = set; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 else
12964 ac_get_soname_save_LIBS=$LIBS
12965 LIBS="-lcups $LIBS"
12966 cat >conftest.$ac_ext <<_ACEOF
12967 #line $LINENO "configure"
12968 /* confdefs.h. */
12969 _ACEOF
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h. */
12974 /* Override any gcc2 internal prototype to avoid an error. */
12975 #ifdef __cplusplus
12976 extern "C"
12977 #endif
12978 /* We use char because int might match the return type of a gcc2
12979 builtin and then its argument prototype would still apply. */
12980 char cupsGetDefault ();
12982 main ()
12984 cupsGetDefault ();
12986 return 0;
12988 _ACEOF
12989 rm -f conftest.$ac_objext conftest$ac_exeext
12990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12991 (eval $ac_link) 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); } &&
12995 { ac_try='test -s conftest$ac_exeext'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^.*\(libcups\.so[^ ]*\).*$/\1/'`
13002 if test "x$ac_cv_lib_soname_cups" = "x"
13003 then
13004 ac_cv_lib_soname_cups="libcups.so"
13006 else
13007 echo "$as_me: failed program was:" >&5
13008 sed 's/^/| /' conftest.$ac_ext >&5
13010 ac_cv_lib_soname_cups="libcups.so"
13012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13013 LIBS=$ac_get_soname_save_LIBS
13015 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
13016 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
13017 if test "x$ac_cv_lib_soname_cups" != xNONE
13018 then
13019 cat >>confdefs.h <<_ACEOF
13020 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
13021 _ACEOF
13024 echo "$as_me:$LINENO: checking for -ljack soname" >&5
13025 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
13026 if test "${ac_cv_lib_soname_jack+set}" = set; then
13027 echo $ECHO_N "(cached) $ECHO_C" >&6
13028 else
13029 ac_get_soname_save_LIBS=$LIBS
13030 LIBS="-ljack $LIBS"
13031 cat >conftest.$ac_ext <<_ACEOF
13032 #line $LINENO "configure"
13033 /* confdefs.h. */
13034 _ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h. */
13039 /* Override any gcc2 internal prototype to avoid an error. */
13040 #ifdef __cplusplus
13041 extern "C"
13042 #endif
13043 /* We use char because int might match the return type of a gcc2
13044 builtin and then its argument prototype would still apply. */
13045 char jack_client_new ();
13047 main ()
13049 jack_client_new ();
13051 return 0;
13053 _ACEOF
13054 rm -f conftest.$ac_objext conftest$ac_exeext
13055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13056 (eval $ac_link) 2>&5
13057 ac_status=$?
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try='test -s conftest$ac_exeext'
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; }; then
13066 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^.*\(libjack\.so[^ ]*\).*$/\1/'`
13067 if test "x$ac_cv_lib_soname_jack" = "x"
13068 then
13069 ac_cv_lib_soname_jack="libjack.so"
13071 else
13072 echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13075 ac_cv_lib_soname_jack="libjack.so"
13077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13078 LIBS=$ac_get_soname_save_LIBS
13080 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
13081 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
13082 if test "x$ac_cv_lib_soname_jack" != xNONE
13083 then
13084 cat >>confdefs.h <<_ACEOF
13085 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
13086 _ACEOF
13089 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
13090 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
13091 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13093 else
13094 ac_get_soname_save_LIBS=$LIBS
13095 LIBS="-lfontconfig $LIBS"
13096 cat >conftest.$ac_ext <<_ACEOF
13097 #line $LINENO "configure"
13098 /* confdefs.h. */
13099 _ACEOF
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h. */
13104 /* Override any gcc2 internal prototype to avoid an error. */
13105 #ifdef __cplusplus
13106 extern "C"
13107 #endif
13108 /* We use char because int might match the return type of a gcc2
13109 builtin and then its argument prototype would still apply. */
13110 char FcInit ();
13112 main ()
13114 FcInit ();
13116 return 0;
13118 _ACEOF
13119 rm -f conftest.$ac_objext conftest$ac_exeext
13120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13121 (eval $ac_link) 2>&5
13122 ac_status=$?
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); } &&
13125 { ac_try='test -s conftest$ac_exeext'
13126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13127 (eval $ac_try) 2>&5
13128 ac_status=$?
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); }; }; then
13131 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed 's/^.*\(libfontconfig\.so[^ ]*\).*$/\1/'`
13132 if test "x$ac_cv_lib_soname_fontconfig" = "x"
13133 then
13134 ac_cv_lib_soname_fontconfig="libfontconfig.so"
13136 else
13137 echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13140 ac_cv_lib_soname_fontconfig="libfontconfig.so"
13142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13143 LIBS=$ac_get_soname_save_LIBS
13145 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
13146 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
13147 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
13148 then
13149 cat >>confdefs.h <<_ACEOF
13150 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
13151 _ACEOF
13154 echo "$as_me:$LINENO: checking for -lssl soname" >&5
13155 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
13156 if test "${ac_cv_lib_soname_ssl+set}" = set; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13158 else
13159 ac_get_soname_save_LIBS=$LIBS
13160 LIBS="-lssl $LIBS"
13161 cat >conftest.$ac_ext <<_ACEOF
13162 #line $LINENO "configure"
13163 /* confdefs.h. */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13169 /* Override any gcc2 internal prototype to avoid an error. */
13170 #ifdef __cplusplus
13171 extern "C"
13172 #endif
13173 /* We use char because int might match the return type of a gcc2
13174 builtin and then its argument prototype would still apply. */
13175 char SSL_library_init ();
13177 main ()
13179 SSL_library_init ();
13181 return 0;
13183 _ACEOF
13184 rm -f conftest.$ac_objext conftest$ac_exeext
13185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13186 (eval $ac_link) 2>&5
13187 ac_status=$?
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); } &&
13190 { ac_try='test -s conftest$ac_exeext'
13191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13192 (eval $ac_try) 2>&5
13193 ac_status=$?
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; }; then
13196 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^.*\(libssl\.so[^ ]*\).*$/\1/'`
13197 if test "x$ac_cv_lib_soname_ssl" = "x"
13198 then
13199 ac_cv_lib_soname_ssl="libssl.so"
13201 else
13202 echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13205 ac_cv_lib_soname_ssl="libssl.so"
13207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13208 LIBS=$ac_get_soname_save_LIBS
13210 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
13211 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
13212 if test "x$ac_cv_lib_soname_ssl" != xNONE
13213 then
13214 cat >>confdefs.h <<_ACEOF
13215 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
13216 _ACEOF
13219 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
13220 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
13221 if test "${ac_cv_lib_soname_crypto+set}" = set; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 else
13224 ac_get_soname_save_LIBS=$LIBS
13225 LIBS="-lcrypto $LIBS"
13226 cat >conftest.$ac_ext <<_ACEOF
13227 #line $LINENO "configure"
13228 /* confdefs.h. */
13229 _ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13234 /* Override any gcc2 internal prototype to avoid an error. */
13235 #ifdef __cplusplus
13236 extern "C"
13237 #endif
13238 /* We use char because int might match the return type of a gcc2
13239 builtin and then its argument prototype would still apply. */
13240 char BIO_new_socket ();
13242 main ()
13244 BIO_new_socket ();
13246 return 0;
13248 _ACEOF
13249 rm -f conftest.$ac_objext conftest$ac_exeext
13250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13251 (eval $ac_link) 2>&5
13252 ac_status=$?
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); } &&
13255 { ac_try='test -s conftest$ac_exeext'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; }; then
13261 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^.*\(libcrypto\.so[^ ]*\).*$/\1/'`
13262 if test "x$ac_cv_lib_soname_crypto" = "x"
13263 then
13264 ac_cv_lib_soname_crypto="libcrypto.so"
13266 else
13267 echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13270 ac_cv_lib_soname_crypto="libcrypto.so"
13272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13273 LIBS=$ac_get_soname_save_LIBS
13275 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
13276 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
13277 if test "x$ac_cv_lib_soname_crypto" != xNONE
13278 then
13279 cat >>confdefs.h <<_ACEOF
13280 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
13281 _ACEOF
13284 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
13285 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
13286 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 else
13289 ac_get_soname_save_LIBS=$LIBS
13290 LIBS="-lncurses $LIBS"
13291 cat >conftest.$ac_ext <<_ACEOF
13292 #line $LINENO "configure"
13293 /* confdefs.h. */
13294 _ACEOF
13295 cat confdefs.h >>conftest.$ac_ext
13296 cat >>conftest.$ac_ext <<_ACEOF
13297 /* end confdefs.h. */
13299 /* Override any gcc2 internal prototype to avoid an error. */
13300 #ifdef __cplusplus
13301 extern "C"
13302 #endif
13303 /* We use char because int might match the return type of a gcc2
13304 builtin and then its argument prototype would still apply. */
13305 char waddch ();
13307 main ()
13309 waddch ();
13311 return 0;
13313 _ACEOF
13314 rm -f conftest.$ac_objext conftest$ac_exeext
13315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13316 (eval $ac_link) 2>&5
13317 ac_status=$?
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); } &&
13320 { ac_try='test -s conftest$ac_exeext'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13323 ac_status=$?
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; }; then
13326 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed 's/^.*\(libncurses\.so[^ ]*\).*$/\1/'`
13327 if test "x$ac_cv_lib_soname_ncurses" = "x"
13328 then
13329 ac_cv_lib_soname_ncurses="libncurses.so"
13331 else
13332 echo "$as_me: failed program was:" >&5
13333 sed 's/^/| /' conftest.$ac_ext >&5
13335 ac_cv_lib_soname_ncurses="libncurses.so"
13337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13338 LIBS=$ac_get_soname_save_LIBS
13340 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
13341 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
13342 if test "x$ac_cv_lib_soname_ncurses" != xNONE
13343 then
13344 cat >>confdefs.h <<_ACEOF
13345 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
13346 _ACEOF
13349 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
13350 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
13351 if test "${ac_cv_lib_soname_curses+set}" = set; then
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13353 else
13354 ac_get_soname_save_LIBS=$LIBS
13355 LIBS="-lcurses $LIBS"
13356 cat >conftest.$ac_ext <<_ACEOF
13357 #line $LINENO "configure"
13358 /* confdefs.h. */
13359 _ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13364 /* Override any gcc2 internal prototype to avoid an error. */
13365 #ifdef __cplusplus
13366 extern "C"
13367 #endif
13368 /* We use char because int might match the return type of a gcc2
13369 builtin and then its argument prototype would still apply. */
13370 char waddch ();
13372 main ()
13374 waddch ();
13376 return 0;
13378 _ACEOF
13379 rm -f conftest.$ac_objext conftest$ac_exeext
13380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13381 (eval $ac_link) 2>&5
13382 ac_status=$?
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } &&
13385 { ac_try='test -s conftest$ac_exeext'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed 's/^.*\(libcurses\.so[^ ]*\).*$/\1/'`
13392 if test "x$ac_cv_lib_soname_curses" = "x"
13393 then
13394 ac_cv_lib_soname_curses="libcurses.so"
13396 else
13397 echo "$as_me: failed program was:" >&5
13398 sed 's/^/| /' conftest.$ac_ext >&5
13400 ac_cv_lib_soname_curses="libcurses.so"
13402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13403 LIBS=$ac_get_soname_save_LIBS
13405 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
13406 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
13407 if test "x$ac_cv_lib_soname_curses" != xNONE
13408 then
13409 cat >>confdefs.h <<_ACEOF
13410 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
13411 _ACEOF
13417 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13418 # for constant arguments. Useless!
13419 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13420 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13421 if test "${ac_cv_working_alloca_h+set}" = set; then
13422 echo $ECHO_N "(cached) $ECHO_C" >&6
13423 else
13424 cat >conftest.$ac_ext <<_ACEOF
13425 #line $LINENO "configure"
13426 /* confdefs.h. */
13427 _ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13431 #include <alloca.h>
13433 main ()
13435 char *p = (char *) alloca (2 * sizeof (int));
13437 return 0;
13439 _ACEOF
13440 rm -f conftest.$ac_objext conftest$ac_exeext
13441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13442 (eval $ac_link) 2>&5
13443 ac_status=$?
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); } &&
13446 { ac_try='test -s conftest$ac_exeext'
13447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13449 ac_status=$?
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; }; then
13452 ac_cv_working_alloca_h=yes
13453 else
13454 echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13457 ac_cv_working_alloca_h=no
13459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13461 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13462 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13463 if test $ac_cv_working_alloca_h = yes; then
13465 cat >>confdefs.h <<\_ACEOF
13466 #define HAVE_ALLOCA_H 1
13467 _ACEOF
13471 echo "$as_me:$LINENO: checking for alloca" >&5
13472 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13473 if test "${ac_cv_func_alloca_works+set}" = set; then
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
13475 else
13476 cat >conftest.$ac_ext <<_ACEOF
13477 #line $LINENO "configure"
13478 /* confdefs.h. */
13479 _ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h. */
13483 #ifdef __GNUC__
13484 # define alloca __builtin_alloca
13485 #else
13486 # ifdef _MSC_VER
13487 # include <malloc.h>
13488 # define alloca _alloca
13489 # else
13490 # if HAVE_ALLOCA_H
13491 # include <alloca.h>
13492 # else
13493 # ifdef _AIX
13494 #pragma alloca
13495 # else
13496 # ifndef alloca /* predefined by HP cc +Olibcalls */
13497 char *alloca ();
13498 # endif
13499 # endif
13500 # endif
13501 # endif
13502 #endif
13505 main ()
13507 char *p = (char *) alloca (1);
13509 return 0;
13511 _ACEOF
13512 rm -f conftest.$ac_objext conftest$ac_exeext
13513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13514 (eval $ac_link) 2>&5
13515 ac_status=$?
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
13518 { ac_try='test -s conftest$ac_exeext'
13519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520 (eval $ac_try) 2>&5
13521 ac_status=$?
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; }; then
13524 ac_cv_func_alloca_works=yes
13525 else
13526 echo "$as_me: failed program was:" >&5
13527 sed 's/^/| /' conftest.$ac_ext >&5
13529 ac_cv_func_alloca_works=no
13531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13533 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13534 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13536 if test $ac_cv_func_alloca_works = yes; then
13538 cat >>confdefs.h <<\_ACEOF
13539 #define HAVE_ALLOCA 1
13540 _ACEOF
13542 else
13543 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13544 # that cause trouble. Some versions do not even contain alloca or
13545 # contain a buggy version. If you still want to use their alloca,
13546 # use ar to extract alloca.o from them instead of compiling alloca.c.
13548 ALLOCA=alloca.$ac_objext
13550 cat >>confdefs.h <<\_ACEOF
13551 #define C_ALLOCA 1
13552 _ACEOF
13555 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13556 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13557 if test "${ac_cv_os_cray+set}" = set; then
13558 echo $ECHO_N "(cached) $ECHO_C" >&6
13559 else
13560 cat >conftest.$ac_ext <<_ACEOF
13561 #line $LINENO "configure"
13562 /* confdefs.h. */
13563 _ACEOF
13564 cat confdefs.h >>conftest.$ac_ext
13565 cat >>conftest.$ac_ext <<_ACEOF
13566 /* end confdefs.h. */
13567 #if defined(CRAY) && ! defined(CRAY2)
13568 webecray
13569 #else
13570 wenotbecray
13571 #endif
13573 _ACEOF
13574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13575 $EGREP "webecray" >/dev/null 2>&1; then
13576 ac_cv_os_cray=yes
13577 else
13578 ac_cv_os_cray=no
13580 rm -f conftest*
13583 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13584 echo "${ECHO_T}$ac_cv_os_cray" >&6
13585 if test $ac_cv_os_cray = yes; then
13586 for ac_func in _getb67 GETB67 getb67; do
13587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13588 echo "$as_me:$LINENO: checking for $ac_func" >&5
13589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13590 if eval "test \"\${$as_ac_var+set}\" = set"; then
13591 echo $ECHO_N "(cached) $ECHO_C" >&6
13592 else
13593 cat >conftest.$ac_ext <<_ACEOF
13594 #line $LINENO "configure"
13595 /* confdefs.h. */
13596 _ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13600 /* System header to define __stub macros and hopefully few prototypes,
13601 which can conflict with char $ac_func (); below.
13602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13603 <limits.h> exists even on freestanding compilers. */
13604 #ifdef __STDC__
13605 # include <limits.h>
13606 #else
13607 # include <assert.h>
13608 #endif
13609 /* Override any gcc2 internal prototype to avoid an error. */
13610 #ifdef __cplusplus
13611 extern "C"
13613 #endif
13614 /* We use char because int might match the return type of a gcc2
13615 builtin and then its argument prototype would still apply. */
13616 char $ac_func ();
13617 /* The GNU C library defines this for functions which it implements
13618 to always fail with ENOSYS. Some functions are actually named
13619 something starting with __ and the normal name is an alias. */
13620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13621 choke me
13622 #else
13623 char (*f) () = $ac_func;
13624 #endif
13625 #ifdef __cplusplus
13627 #endif
13630 main ()
13632 return f != $ac_func;
13634 return 0;
13636 _ACEOF
13637 rm -f conftest.$ac_objext conftest$ac_exeext
13638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13639 (eval $ac_link) 2>&5
13640 ac_status=$?
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } &&
13643 { ac_try='test -s conftest$ac_exeext'
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13646 ac_status=$?
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; }; then
13649 eval "$as_ac_var=yes"
13650 else
13651 echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13654 eval "$as_ac_var=no"
13656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13660 if test `eval echo '${'$as_ac_var'}'` = yes; then
13662 cat >>confdefs.h <<_ACEOF
13663 #define CRAY_STACKSEG_END $ac_func
13664 _ACEOF
13666 break
13669 done
13672 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13673 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13674 if test "${ac_cv_c_stack_direction+set}" = set; then
13675 echo $ECHO_N "(cached) $ECHO_C" >&6
13676 else
13677 if test "$cross_compiling" = yes; then
13678 ac_cv_c_stack_direction=0
13679 else
13680 cat >conftest.$ac_ext <<_ACEOF
13681 #line $LINENO "configure"
13682 /* confdefs.h. */
13683 _ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h. */
13688 find_stack_direction ()
13690 static char *addr = 0;
13691 auto char dummy;
13692 if (addr == 0)
13694 addr = &dummy;
13695 return find_stack_direction ();
13697 else
13698 return (&dummy > addr) ? 1 : -1;
13702 main ()
13704 exit (find_stack_direction () < 0);
13706 _ACEOF
13707 rm -f conftest$ac_exeext
13708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13709 (eval $ac_link) 2>&5
13710 ac_status=$?
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714 (eval $ac_try) 2>&5
13715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; }; then
13718 ac_cv_c_stack_direction=1
13719 else
13720 echo "$as_me: program exited with status $ac_status" >&5
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13724 ( exit $ac_status )
13725 ac_cv_c_stack_direction=-1
13727 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13730 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13731 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13733 cat >>confdefs.h <<_ACEOF
13734 #define STACK_DIRECTION $ac_cv_c_stack_direction
13735 _ACEOF
13791 for ac_func in \
13792 _lwp_create \
13793 _lwp_self \
13794 _pclose \
13795 _popen \
13796 _snprintf \
13797 _spawnvp \
13798 _stricmp \
13799 _strnicmp \
13800 _vsnprintf \
13801 chsize \
13802 clone \
13803 finite \
13804 fpclass \
13805 ftruncate \
13806 ftruncate64 \
13807 getnetbyaddr \
13808 getnetbyname \
13809 getopt_long \
13810 getpagesize \
13811 getprotobyname \
13812 getprotobynumber \
13813 getpwuid \
13814 getservbyport \
13815 gettimeofday \
13816 inet_network \
13817 lseek64 \
13818 lstat \
13819 memmove \
13820 mmap \
13821 pclose \
13822 popen \
13823 pread \
13824 pwrite \
13825 rfork \
13826 select \
13827 sendmsg \
13828 settimeofday \
13829 sigaltstack \
13830 snprintf \
13831 spawnvp \
13832 statfs \
13833 strcasecmp \
13834 strerror \
13835 strncasecmp \
13836 tcgetattr \
13837 timegm \
13838 usleep \
13839 vfscanf \
13840 vsnprintf \
13841 wait4 \
13842 waitpid \
13845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13846 echo "$as_me:$LINENO: checking for $ac_func" >&5
13847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13848 if eval "test \"\${$as_ac_var+set}\" = set"; then
13849 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 else
13851 cat >conftest.$ac_ext <<_ACEOF
13852 #line $LINENO "configure"
13853 /* confdefs.h. */
13854 _ACEOF
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h. */
13858 /* System header to define __stub macros and hopefully few prototypes,
13859 which can conflict with char $ac_func (); below.
13860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13861 <limits.h> exists even on freestanding compilers. */
13862 #ifdef __STDC__
13863 # include <limits.h>
13864 #else
13865 # include <assert.h>
13866 #endif
13867 /* Override any gcc2 internal prototype to avoid an error. */
13868 #ifdef __cplusplus
13869 extern "C"
13871 #endif
13872 /* We use char because int might match the return type of a gcc2
13873 builtin and then its argument prototype would still apply. */
13874 char $ac_func ();
13875 /* The GNU C library defines this for functions which it implements
13876 to always fail with ENOSYS. Some functions are actually named
13877 something starting with __ and the normal name is an alias. */
13878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13879 choke me
13880 #else
13881 char (*f) () = $ac_func;
13882 #endif
13883 #ifdef __cplusplus
13885 #endif
13888 main ()
13890 return f != $ac_func;
13892 return 0;
13894 _ACEOF
13895 rm -f conftest.$ac_objext conftest$ac_exeext
13896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13897 (eval $ac_link) 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } &&
13901 { ac_try='test -s conftest$ac_exeext'
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13904 ac_status=$?
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; }; then
13907 eval "$as_ac_var=yes"
13908 else
13909 echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13912 eval "$as_ac_var=no"
13914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13918 if test `eval echo '${'$as_ac_var'}'` = yes; then
13919 cat >>confdefs.h <<_ACEOF
13920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13921 _ACEOF
13924 done
14008 for ac_header in \
14009 arpa/inet.h \
14010 arpa/nameser.h \
14011 cups/cups.h \
14012 direct.h \
14013 elf.h \
14014 float.h \
14015 fontconfig/fontconfig.h \
14016 getopt.h \
14017 ieeefp.h \
14018 io.h \
14019 jack/jack.h \
14020 libio.h \
14021 libutil.h \
14022 link.h \
14023 linux/cdrom.h \
14024 linux/hdreg.h \
14025 linux/input.h \
14026 linux/joystick.h \
14027 linux/major.h \
14028 linux/param.h \
14029 linux/serial.h \
14030 linux/ucdrom.h \
14031 machine/cpu.h \
14032 netdb.h \
14033 netinet/in.h \
14034 netinet/in_systm.h \
14035 netinet/tcp.h \
14036 netinet/tcp_fsm.h \
14037 openssl/ssl.h \
14038 process.h \
14039 pthread.h \
14040 pty.h \
14041 pwd.h \
14042 regex.h \
14043 sched.h \
14044 scsi/sg.h \
14045 scsi/scsi.h \
14046 scsi/scsi_ioctl.h \
14047 socket.h \
14048 stdint.h \
14049 strings.h \
14050 sys/cdio.h \
14051 sys/errno.h \
14052 sys/file.h \
14053 sys/filio.h \
14054 sys/inttypes.h \
14055 sys/ioctl.h \
14056 sys/ipc.h \
14057 sys/link.h \
14058 sys/lwp.h \
14059 sys/mman.h \
14060 sys/modem.h \
14061 sys/msg.h \
14062 sys/param.h \
14063 sys/poll.h \
14064 sys/ptrace.h \
14065 sys/reg.h \
14066 sys/scsiio.h \
14067 sys/shm.h \
14068 sys/signal.h \
14069 sys/socket.h \
14070 sys/sockio.h \
14071 sys/statfs.h \
14072 sys/strtio.h \
14073 sys/syscall.h \
14074 sys/sysctl.h \
14075 sys/time.h \
14076 sys/times.h \
14077 sys/uio.h \
14078 sys/un.h \
14079 sys/v86.h \
14080 sys/v86intr.h \
14081 sys/vfs.h \
14082 sys/vm86.h \
14083 sys/wait.h \
14084 syscall.h \
14085 termios.h \
14086 unistd.h \
14087 utime.h \
14088 valgrind/memcheck.h
14091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14093 echo "$as_me:$LINENO: checking for $ac_header" >&5
14094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14100 else
14101 # Is the header compilable?
14102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14104 cat >conftest.$ac_ext <<_ACEOF
14105 #line $LINENO "configure"
14106 /* confdefs.h. */
14107 _ACEOF
14108 cat confdefs.h >>conftest.$ac_ext
14109 cat >>conftest.$ac_ext <<_ACEOF
14110 /* end confdefs.h. */
14111 $ac_includes_default
14112 #include <$ac_header>
14113 _ACEOF
14114 rm -f conftest.$ac_objext
14115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14116 (eval $ac_compile) 2>&5
14117 ac_status=$?
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } &&
14120 { ac_try='test -s conftest.$ac_objext'
14121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122 (eval $ac_try) 2>&5
14123 ac_status=$?
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; }; then
14126 ac_header_compiler=yes
14127 else
14128 echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.$ac_ext >&5
14131 ac_header_compiler=no
14133 rm -f conftest.$ac_objext conftest.$ac_ext
14134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14135 echo "${ECHO_T}$ac_header_compiler" >&6
14137 # Is the header present?
14138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14140 cat >conftest.$ac_ext <<_ACEOF
14141 #line $LINENO "configure"
14142 /* confdefs.h. */
14143 _ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h. */
14147 #include <$ac_header>
14148 _ACEOF
14149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14151 ac_status=$?
14152 grep -v '^ *+' conftest.er1 >conftest.err
14153 rm -f conftest.er1
14154 cat conftest.err >&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } >/dev/null; then
14157 if test -s conftest.err; then
14158 ac_cpp_err=$ac_c_preproc_warn_flag
14159 else
14160 ac_cpp_err=
14162 else
14163 ac_cpp_err=yes
14165 if test -z "$ac_cpp_err"; then
14166 ac_header_preproc=yes
14167 else
14168 echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14171 ac_header_preproc=no
14173 rm -f conftest.err conftest.$ac_ext
14174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14175 echo "${ECHO_T}$ac_header_preproc" >&6
14177 # So? What about this header?
14178 case $ac_header_compiler:$ac_header_preproc in
14179 yes:no )
14180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14185 cat <<\_ASBOX
14186 ## ------------------------------------ ##
14187 ## Report this to bug-autoconf@gnu.org. ##
14188 ## ------------------------------------ ##
14189 _ASBOX
14191 sed "s/^/$as_me: WARNING: /" >&2
14193 no:yes )
14194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14201 cat <<\_ASBOX
14202 ## ------------------------------------ ##
14203 ## Report this to bug-autoconf@gnu.org. ##
14204 ## ------------------------------------ ##
14205 _ASBOX
14207 sed "s/^/$as_me: WARNING: /" >&2
14209 esac
14210 echo "$as_me:$LINENO: checking for $ac_header" >&5
14211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14214 else
14215 eval "$as_ac_Header=$ac_header_preproc"
14217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14222 cat >>confdefs.h <<_ACEOF
14223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14224 _ACEOF
14228 done
14230 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14231 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14232 if test "${ac_cv_header_stat_broken+set}" = set; then
14233 echo $ECHO_N "(cached) $ECHO_C" >&6
14234 else
14235 cat >conftest.$ac_ext <<_ACEOF
14236 #line $LINENO "configure"
14237 /* confdefs.h. */
14238 _ACEOF
14239 cat confdefs.h >>conftest.$ac_ext
14240 cat >>conftest.$ac_ext <<_ACEOF
14241 /* end confdefs.h. */
14242 #include <sys/types.h>
14243 #include <sys/stat.h>
14245 #if defined(S_ISBLK) && defined(S_IFDIR)
14246 # if S_ISBLK (S_IFDIR)
14247 You lose.
14248 # endif
14249 #endif
14251 #if defined(S_ISBLK) && defined(S_IFCHR)
14252 # if S_ISBLK (S_IFCHR)
14253 You lose.
14254 # endif
14255 #endif
14257 #if defined(S_ISLNK) && defined(S_IFREG)
14258 # if S_ISLNK (S_IFREG)
14259 You lose.
14260 # endif
14261 #endif
14263 #if defined(S_ISSOCK) && defined(S_IFREG)
14264 # if S_ISSOCK (S_IFREG)
14265 You lose.
14266 # endif
14267 #endif
14269 _ACEOF
14270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14271 $EGREP "You lose" >/dev/null 2>&1; then
14272 ac_cv_header_stat_broken=yes
14273 else
14274 ac_cv_header_stat_broken=no
14276 rm -f conftest*
14279 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14280 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14281 if test $ac_cv_header_stat_broken = yes; then
14283 cat >>confdefs.h <<\_ACEOF
14284 #define STAT_MACROS_BROKEN 1
14285 _ACEOF
14293 for ac_header in sys/mount.h sys/user.h
14295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14296 echo "$as_me:$LINENO: checking for $ac_header" >&5
14297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14300 else
14301 cat >conftest.$ac_ext <<_ACEOF
14302 #line $LINENO "configure"
14303 /* confdefs.h. */
14304 _ACEOF
14305 cat confdefs.h >>conftest.$ac_ext
14306 cat >>conftest.$ac_ext <<_ACEOF
14307 /* end confdefs.h. */
14308 #include <sys/types.h>
14309 #if HAVE_SYS_PARAM_H
14310 # include <sys/param.h>
14311 #endif
14313 #include <$ac_header>
14314 _ACEOF
14315 rm -f conftest.$ac_objext
14316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14317 (eval $ac_compile) 2>&5
14318 ac_status=$?
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
14321 { ac_try='test -s conftest.$ac_objext'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14327 eval "$as_ac_Header=yes"
14328 else
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14332 eval "$as_ac_Header=no"
14334 rm -f conftest.$ac_objext conftest.$ac_ext
14336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14339 cat >>confdefs.h <<_ACEOF
14340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14341 _ACEOF
14345 done
14353 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
14355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14356 echo "$as_me:$LINENO: checking for $ac_header" >&5
14357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14360 else
14361 cat >conftest.$ac_ext <<_ACEOF
14362 #line $LINENO "configure"
14363 /* confdefs.h. */
14364 _ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h. */
14368 #include <sys/types.h>
14369 #if HAVE_SYS_SOCKET_H
14370 # include <sys/socket.h>
14371 #endif
14373 #include <$ac_header>
14374 _ACEOF
14375 rm -f conftest.$ac_objext
14376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377 (eval $ac_compile) 2>&5
14378 ac_status=$?
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } &&
14381 { ac_try='test -s conftest.$ac_objext'
14382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383 (eval $ac_try) 2>&5
14384 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; }; then
14387 eval "$as_ac_Header=yes"
14388 else
14389 echo "$as_me: failed program was:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14392 eval "$as_ac_Header=no"
14394 rm -f conftest.$ac_objext conftest.$ac_ext
14396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14399 cat >>confdefs.h <<_ACEOF
14400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14401 _ACEOF
14405 done
14409 for ac_header in resolv.h
14411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14412 echo "$as_me:$LINENO: checking for $ac_header" >&5
14413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14415 echo $ECHO_N "(cached) $ECHO_C" >&6
14416 else
14417 cat >conftest.$ac_ext <<_ACEOF
14418 #line $LINENO "configure"
14419 /* confdefs.h. */
14420 _ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14424 #include <sys/types.h>
14425 #if HAVE_SYS_SOCKET_H
14426 # include <sys/socket.h>
14427 #endif
14428 #if HAVE_NETINET_IN_H
14429 # include <netinet/in.h>
14430 #endif
14431 #if HAVE_ARPA_NAMESER_H
14432 # include <arpa/nameser.h>
14433 #endif
14435 #include <$ac_header>
14436 _ACEOF
14437 rm -f conftest.$ac_objext
14438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14439 (eval $ac_compile) 2>&5
14440 ac_status=$?
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); } &&
14443 { ac_try='test -s conftest.$ac_objext'
14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14446 ac_status=$?
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; }; then
14449 eval "$as_ac_Header=yes"
14450 else
14451 echo "$as_me: failed program was:" >&5
14452 sed 's/^/| /' conftest.$ac_ext >&5
14454 eval "$as_ac_Header=no"
14456 rm -f conftest.$ac_objext conftest.$ac_ext
14458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14461 cat >>confdefs.h <<_ACEOF
14462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14463 _ACEOF
14467 done
14471 for ac_header in netinet/ip.h
14473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14474 echo "$as_me:$LINENO: checking for $ac_header" >&5
14475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14478 else
14479 cat >conftest.$ac_ext <<_ACEOF
14480 #line $LINENO "configure"
14481 /* confdefs.h. */
14482 _ACEOF
14483 cat confdefs.h >>conftest.$ac_ext
14484 cat >>conftest.$ac_ext <<_ACEOF
14485 /* end confdefs.h. */
14486 #include <sys/types.h>
14487 #if HAVE_SYS_SOCKET_H
14488 # include <sys/socket.h>
14489 #endif
14490 #if HAVE_NETINET_IN_SYSTM_H
14491 # include <netinet/in_systm.h>
14492 #endif
14494 #include <$ac_header>
14495 _ACEOF
14496 rm -f conftest.$ac_objext
14497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14498 (eval $ac_compile) 2>&5
14499 ac_status=$?
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); } &&
14502 { ac_try='test -s conftest.$ac_objext'
14503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14504 (eval $ac_try) 2>&5
14505 ac_status=$?
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); }; }; then
14508 eval "$as_ac_Header=yes"
14509 else
14510 echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14513 eval "$as_ac_Header=no"
14515 rm -f conftest.$ac_objext conftest.$ac_ext
14517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14520 cat >>confdefs.h <<_ACEOF
14521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14522 _ACEOF
14526 done
14530 for ac_header in ucontext.h
14532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14533 echo "$as_me:$LINENO: checking for $ac_header" >&5
14534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14537 else
14538 cat >conftest.$ac_ext <<_ACEOF
14539 #line $LINENO "configure"
14540 /* confdefs.h. */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14545 #include <signal.h>
14547 #include <$ac_header>
14548 _ACEOF
14549 rm -f conftest.$ac_objext
14550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14551 (eval $ac_compile) 2>&5
14552 ac_status=$?
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } &&
14555 { ac_try='test -s conftest.$ac_objext'
14556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557 (eval $ac_try) 2>&5
14558 ac_status=$?
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; }; then
14561 eval "$as_ac_Header=yes"
14562 else
14563 echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14566 eval "$as_ac_Header=no"
14568 rm -f conftest.$ac_objext conftest.$ac_ext
14570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14573 cat >>confdefs.h <<_ACEOF
14574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14575 _ACEOF
14579 done
14583 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
14584 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
14585 if test "${ac_cv_c_ipx_gnu+set}" = set; then
14586 echo $ECHO_N "(cached) $ECHO_C" >&6
14587 else
14588 cat >conftest.$ac_ext <<_ACEOF
14589 #line $LINENO "configure"
14590 /* confdefs.h. */
14591 _ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h. */
14595 #include <sys/types.h>
14596 #ifdef HAVE_SYS_SOCKET_H
14597 # include <sys/socket.h>
14598 #endif
14599 #include <netipx/ipx.h>
14601 main ()
14603 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14605 return 0;
14607 _ACEOF
14608 rm -f conftest.$ac_objext
14609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14610 (eval $ac_compile) 2>&5
14611 ac_status=$?
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); } &&
14614 { ac_try='test -s conftest.$ac_objext'
14615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616 (eval $ac_try) 2>&5
14617 ac_status=$?
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14620 ac_cv_c_ipx_gnu="yes"
14621 else
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14625 ac_cv_c_ipx_gnu="no"
14627 rm -f conftest.$ac_objext conftest.$ac_ext
14630 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
14631 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
14632 if test "$ac_cv_c_ipx_gnu" = "yes"
14633 then
14635 cat >>confdefs.h <<\_ACEOF
14636 #define HAVE_IPX_GNU 1
14637 _ACEOF
14641 if test "$ac_cv_c_ipx_gnu" = "no"
14642 then
14643 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
14644 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
14645 if test "${ac_cv_c_ipx_linux+set}" = set; then
14646 echo $ECHO_N "(cached) $ECHO_C" >&6
14647 else
14648 cat >conftest.$ac_ext <<_ACEOF
14649 #line $LINENO "configure"
14650 /* confdefs.h. */
14651 _ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14655 #include <sys/types.h>
14656 #ifdef HAVE_SYS_SOCKET_H
14657 # include <sys/socket.h>
14658 #endif
14659 #include <asm/types.h>
14660 #include <linux/ipx.h>
14662 main ()
14664 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14666 return 0;
14668 _ACEOF
14669 rm -f conftest.$ac_objext
14670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14671 (eval $ac_compile) 2>&5
14672 ac_status=$?
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); } &&
14675 { ac_try='test -s conftest.$ac_objext'
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14678 ac_status=$?
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; }; then
14681 ac_cv_c_ipx_linux="yes"
14682 else
14683 echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14686 ac_cv_c_ipx_linux="no"
14688 rm -f conftest.$ac_objext conftest.$ac_ext
14691 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
14692 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
14693 if test "$ac_cv_c_ipx_linux" = "yes"
14694 then
14696 cat >>confdefs.h <<\_ACEOF
14697 #define HAVE_IPX_LINUX 1
14698 _ACEOF
14704 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14705 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14706 if test "${ac_cv_c_const+set}" = set; then
14707 echo $ECHO_N "(cached) $ECHO_C" >&6
14708 else
14709 cat >conftest.$ac_ext <<_ACEOF
14710 #line $LINENO "configure"
14711 /* confdefs.h. */
14712 _ACEOF
14713 cat confdefs.h >>conftest.$ac_ext
14714 cat >>conftest.$ac_ext <<_ACEOF
14715 /* end confdefs.h. */
14718 main ()
14720 /* FIXME: Include the comments suggested by Paul. */
14721 #ifndef __cplusplus
14722 /* Ultrix mips cc rejects this. */
14723 typedef int charset[2];
14724 const charset x;
14725 /* SunOS 4.1.1 cc rejects this. */
14726 char const *const *ccp;
14727 char **p;
14728 /* NEC SVR4.0.2 mips cc rejects this. */
14729 struct point {int x, y;};
14730 static struct point const zero = {0,0};
14731 /* AIX XL C 1.02.0.0 rejects this.
14732 It does not let you subtract one const X* pointer from another in
14733 an arm of an if-expression whose if-part is not a constant
14734 expression */
14735 const char *g = "string";
14736 ccp = &g + (g ? g-g : 0);
14737 /* HPUX 7.0 cc rejects these. */
14738 ++ccp;
14739 p = (char**) ccp;
14740 ccp = (char const *const *) p;
14741 { /* SCO 3.2v4 cc rejects this. */
14742 char *t;
14743 char const *s = 0 ? (char *) 0 : (char const *) 0;
14745 *t++ = 0;
14747 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14748 int x[] = {25, 17};
14749 const int *foo = &x[0];
14750 ++foo;
14752 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14753 typedef const int *iptr;
14754 iptr p = 0;
14755 ++p;
14757 { /* AIX XL C 1.02.0.0 rejects this saying
14758 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14759 struct s { int j; const int *ap[3]; };
14760 struct s *b; b->j = 5;
14762 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14763 const int foo = 10;
14765 #endif
14768 return 0;
14770 _ACEOF
14771 rm -f conftest.$ac_objext
14772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14773 (eval $ac_compile) 2>&5
14774 ac_status=$?
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } &&
14777 { ac_try='test -s conftest.$ac_objext'
14778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779 (eval $ac_try) 2>&5
14780 ac_status=$?
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; }; then
14783 ac_cv_c_const=yes
14784 else
14785 echo "$as_me: failed program was:" >&5
14786 sed 's/^/| /' conftest.$ac_ext >&5
14788 ac_cv_c_const=no
14790 rm -f conftest.$ac_objext conftest.$ac_ext
14792 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14793 echo "${ECHO_T}$ac_cv_c_const" >&6
14794 if test $ac_cv_c_const = no; then
14796 cat >>confdefs.h <<\_ACEOF
14797 #define const
14798 _ACEOF
14802 echo "$as_me:$LINENO: checking for inline" >&5
14803 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14804 if test "${ac_cv_c_inline+set}" = set; then
14805 echo $ECHO_N "(cached) $ECHO_C" >&6
14806 else
14807 ac_cv_c_inline=no
14808 for ac_kw in inline __inline__ __inline; do
14809 cat >conftest.$ac_ext <<_ACEOF
14810 #line $LINENO "configure"
14811 /* confdefs.h. */
14812 _ACEOF
14813 cat confdefs.h >>conftest.$ac_ext
14814 cat >>conftest.$ac_ext <<_ACEOF
14815 /* end confdefs.h. */
14816 #ifndef __cplusplus
14817 typedef int foo_t;
14818 static $ac_kw foo_t static_foo () {return 0; }
14819 $ac_kw foo_t foo () {return 0; }
14820 #endif
14822 _ACEOF
14823 rm -f conftest.$ac_objext
14824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14825 (eval $ac_compile) 2>&5
14826 ac_status=$?
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); } &&
14829 { ac_try='test -s conftest.$ac_objext'
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14832 ac_status=$?
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; }; then
14835 ac_cv_c_inline=$ac_kw; break
14836 else
14837 echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14841 rm -f conftest.$ac_objext conftest.$ac_ext
14842 done
14845 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14846 echo "${ECHO_T}$ac_cv_c_inline" >&6
14847 case $ac_cv_c_inline in
14848 inline | yes) ;;
14850 cat >>confdefs.h <<\_ACEOF
14851 #define inline
14852 _ACEOF
14854 *) cat >>confdefs.h <<_ACEOF
14855 #define inline $ac_cv_c_inline
14856 _ACEOF
14858 esac
14860 echo "$as_me:$LINENO: checking for mode_t" >&5
14861 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
14862 if test "${ac_cv_type_mode_t+set}" = set; then
14863 echo $ECHO_N "(cached) $ECHO_C" >&6
14864 else
14865 cat >conftest.$ac_ext <<_ACEOF
14866 #line $LINENO "configure"
14867 /* confdefs.h. */
14868 _ACEOF
14869 cat confdefs.h >>conftest.$ac_ext
14870 cat >>conftest.$ac_ext <<_ACEOF
14871 /* end confdefs.h. */
14872 $ac_includes_default
14874 main ()
14876 if ((mode_t *) 0)
14877 return 0;
14878 if (sizeof (mode_t))
14879 return 0;
14881 return 0;
14883 _ACEOF
14884 rm -f conftest.$ac_objext
14885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14886 (eval $ac_compile) 2>&5
14887 ac_status=$?
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } &&
14890 { ac_try='test -s conftest.$ac_objext'
14891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14892 (eval $ac_try) 2>&5
14893 ac_status=$?
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; }; then
14896 ac_cv_type_mode_t=yes
14897 else
14898 echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14901 ac_cv_type_mode_t=no
14903 rm -f conftest.$ac_objext conftest.$ac_ext
14905 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14906 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
14907 if test $ac_cv_type_mode_t = yes; then
14909 cat >>confdefs.h <<_ACEOF
14910 #define HAVE_MODE_T 1
14911 _ACEOF
14915 echo "$as_me:$LINENO: checking for off_t" >&5
14916 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
14917 if test "${ac_cv_type_off_t+set}" = set; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14919 else
14920 cat >conftest.$ac_ext <<_ACEOF
14921 #line $LINENO "configure"
14922 /* confdefs.h. */
14923 _ACEOF
14924 cat confdefs.h >>conftest.$ac_ext
14925 cat >>conftest.$ac_ext <<_ACEOF
14926 /* end confdefs.h. */
14927 $ac_includes_default
14929 main ()
14931 if ((off_t *) 0)
14932 return 0;
14933 if (sizeof (off_t))
14934 return 0;
14936 return 0;
14938 _ACEOF
14939 rm -f conftest.$ac_objext
14940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14941 (eval $ac_compile) 2>&5
14942 ac_status=$?
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } &&
14945 { ac_try='test -s conftest.$ac_objext'
14946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947 (eval $ac_try) 2>&5
14948 ac_status=$?
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; }; then
14951 ac_cv_type_off_t=yes
14952 else
14953 echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14956 ac_cv_type_off_t=no
14958 rm -f conftest.$ac_objext conftest.$ac_ext
14960 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14961 echo "${ECHO_T}$ac_cv_type_off_t" >&6
14962 if test $ac_cv_type_off_t = yes; then
14964 cat >>confdefs.h <<_ACEOF
14965 #define HAVE_OFF_T 1
14966 _ACEOF
14970 echo "$as_me:$LINENO: checking for pid_t" >&5
14971 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14972 if test "${ac_cv_type_pid_t+set}" = set; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14974 else
14975 cat >conftest.$ac_ext <<_ACEOF
14976 #line $LINENO "configure"
14977 /* confdefs.h. */
14978 _ACEOF
14979 cat confdefs.h >>conftest.$ac_ext
14980 cat >>conftest.$ac_ext <<_ACEOF
14981 /* end confdefs.h. */
14982 $ac_includes_default
14984 main ()
14986 if ((pid_t *) 0)
14987 return 0;
14988 if (sizeof (pid_t))
14989 return 0;
14991 return 0;
14993 _ACEOF
14994 rm -f conftest.$ac_objext
14995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14996 (eval $ac_compile) 2>&5
14997 ac_status=$?
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } &&
15000 { ac_try='test -s conftest.$ac_objext'
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then
15006 ac_cv_type_pid_t=yes
15007 else
15008 echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15011 ac_cv_type_pid_t=no
15013 rm -f conftest.$ac_objext conftest.$ac_ext
15015 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15016 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15017 if test $ac_cv_type_pid_t = yes; then
15019 cat >>confdefs.h <<_ACEOF
15020 #define HAVE_PID_T 1
15021 _ACEOF
15025 echo "$as_me:$LINENO: checking for size_t" >&5
15026 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15027 if test "${ac_cv_type_size_t+set}" = set; then
15028 echo $ECHO_N "(cached) $ECHO_C" >&6
15029 else
15030 cat >conftest.$ac_ext <<_ACEOF
15031 #line $LINENO "configure"
15032 /* confdefs.h. */
15033 _ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h. */
15037 $ac_includes_default
15039 main ()
15041 if ((size_t *) 0)
15042 return 0;
15043 if (sizeof (size_t))
15044 return 0;
15046 return 0;
15048 _ACEOF
15049 rm -f conftest.$ac_objext
15050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15051 (eval $ac_compile) 2>&5
15052 ac_status=$?
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); } &&
15055 { ac_try='test -s conftest.$ac_objext'
15056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057 (eval $ac_try) 2>&5
15058 ac_status=$?
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; }; then
15061 ac_cv_type_size_t=yes
15062 else
15063 echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15066 ac_cv_type_size_t=no
15068 rm -f conftest.$ac_objext conftest.$ac_ext
15070 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15071 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15072 if test $ac_cv_type_size_t = yes; then
15074 cat >>confdefs.h <<_ACEOF
15075 #define HAVE_SIZE_T 1
15076 _ACEOF
15080 echo "$as_me:$LINENO: checking for ssize_t" >&5
15081 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15082 if test "${ac_cv_type_ssize_t+set}" = set; then
15083 echo $ECHO_N "(cached) $ECHO_C" >&6
15084 else
15085 cat >conftest.$ac_ext <<_ACEOF
15086 #line $LINENO "configure"
15087 /* confdefs.h. */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15092 $ac_includes_default
15094 main ()
15096 if ((ssize_t *) 0)
15097 return 0;
15098 if (sizeof (ssize_t))
15099 return 0;
15101 return 0;
15103 _ACEOF
15104 rm -f conftest.$ac_objext
15105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15106 (eval $ac_compile) 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); } &&
15110 { ac_try='test -s conftest.$ac_objext'
15111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112 (eval $ac_try) 2>&5
15113 ac_status=$?
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; }; then
15116 ac_cv_type_ssize_t=yes
15117 else
15118 echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15121 ac_cv_type_ssize_t=no
15123 rm -f conftest.$ac_objext conftest.$ac_ext
15125 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15126 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15127 if test $ac_cv_type_ssize_t = yes; then
15129 cat >>confdefs.h <<_ACEOF
15130 #define HAVE_SSIZE_T 1
15131 _ACEOF
15136 echo "$as_me:$LINENO: checking for long long" >&5
15137 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15138 if test "${ac_cv_type_long_long+set}" = set; then
15139 echo $ECHO_N "(cached) $ECHO_C" >&6
15140 else
15141 cat >conftest.$ac_ext <<_ACEOF
15142 #line $LINENO "configure"
15143 /* confdefs.h. */
15144 _ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h. */
15148 $ac_includes_default
15150 main ()
15152 if ((long long *) 0)
15153 return 0;
15154 if (sizeof (long long))
15155 return 0;
15157 return 0;
15159 _ACEOF
15160 rm -f conftest.$ac_objext
15161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15162 (eval $ac_compile) 2>&5
15163 ac_status=$?
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); } &&
15166 { ac_try='test -s conftest.$ac_objext'
15167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168 (eval $ac_try) 2>&5
15169 ac_status=$?
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); }; }; then
15172 ac_cv_type_long_long=yes
15173 else
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15177 ac_cv_type_long_long=no
15179 rm -f conftest.$ac_objext conftest.$ac_ext
15181 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15182 echo "${ECHO_T}$ac_cv_type_long_long" >&6
15184 echo "$as_me:$LINENO: checking size of long long" >&5
15185 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15186 if test "${ac_cv_sizeof_long_long+set}" = set; then
15187 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 else
15189 if test "$ac_cv_type_long_long" = yes; then
15190 # The cast to unsigned long works around a bug in the HP C Compiler
15191 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15192 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15193 # This bug is HP SR number 8606223364.
15194 if test "$cross_compiling" = yes; then
15195 # Depending upon the size, compute the lo and hi bounds.
15196 cat >conftest.$ac_ext <<_ACEOF
15197 #line $LINENO "configure"
15198 /* confdefs.h. */
15199 _ACEOF
15200 cat confdefs.h >>conftest.$ac_ext
15201 cat >>conftest.$ac_ext <<_ACEOF
15202 /* end confdefs.h. */
15203 $ac_includes_default
15205 main ()
15207 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15208 test_array [0] = 0
15211 return 0;
15213 _ACEOF
15214 rm -f conftest.$ac_objext
15215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15216 (eval $ac_compile) 2>&5
15217 ac_status=$?
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } &&
15220 { ac_try='test -s conftest.$ac_objext'
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; }; then
15226 ac_lo=0 ac_mid=0
15227 while :; do
15228 cat >conftest.$ac_ext <<_ACEOF
15229 #line $LINENO "configure"
15230 /* confdefs.h. */
15231 _ACEOF
15232 cat confdefs.h >>conftest.$ac_ext
15233 cat >>conftest.$ac_ext <<_ACEOF
15234 /* end confdefs.h. */
15235 $ac_includes_default
15237 main ()
15239 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15240 test_array [0] = 0
15243 return 0;
15245 _ACEOF
15246 rm -f conftest.$ac_objext
15247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15248 (eval $ac_compile) 2>&5
15249 ac_status=$?
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } &&
15252 { ac_try='test -s conftest.$ac_objext'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15255 ac_status=$?
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15258 ac_hi=$ac_mid; break
15259 else
15260 echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15263 ac_lo=`expr $ac_mid + 1`
15264 if test $ac_lo -le $ac_mid; then
15265 ac_lo= ac_hi=
15266 break
15268 ac_mid=`expr 2 '*' $ac_mid + 1`
15270 rm -f conftest.$ac_objext conftest.$ac_ext
15271 done
15272 else
15273 echo "$as_me: failed program was:" >&5
15274 sed 's/^/| /' conftest.$ac_ext >&5
15276 cat >conftest.$ac_ext <<_ACEOF
15277 #line $LINENO "configure"
15278 /* confdefs.h. */
15279 _ACEOF
15280 cat confdefs.h >>conftest.$ac_ext
15281 cat >>conftest.$ac_ext <<_ACEOF
15282 /* end confdefs.h. */
15283 $ac_includes_default
15285 main ()
15287 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15288 test_array [0] = 0
15291 return 0;
15293 _ACEOF
15294 rm -f conftest.$ac_objext
15295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15296 (eval $ac_compile) 2>&5
15297 ac_status=$?
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } &&
15300 { ac_try='test -s conftest.$ac_objext'
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15303 ac_status=$?
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; }; then
15306 ac_hi=-1 ac_mid=-1
15307 while :; do
15308 cat >conftest.$ac_ext <<_ACEOF
15309 #line $LINENO "configure"
15310 /* confdefs.h. */
15311 _ACEOF
15312 cat confdefs.h >>conftest.$ac_ext
15313 cat >>conftest.$ac_ext <<_ACEOF
15314 /* end confdefs.h. */
15315 $ac_includes_default
15317 main ()
15319 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15320 test_array [0] = 0
15323 return 0;
15325 _ACEOF
15326 rm -f conftest.$ac_objext
15327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15328 (eval $ac_compile) 2>&5
15329 ac_status=$?
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); } &&
15332 { ac_try='test -s conftest.$ac_objext'
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15335 ac_status=$?
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; }; then
15338 ac_lo=$ac_mid; break
15339 else
15340 echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.$ac_ext >&5
15343 ac_hi=`expr '(' $ac_mid ')' - 1`
15344 if test $ac_mid -le $ac_hi; then
15345 ac_lo= ac_hi=
15346 break
15348 ac_mid=`expr 2 '*' $ac_mid`
15350 rm -f conftest.$ac_objext conftest.$ac_ext
15351 done
15352 else
15353 echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.$ac_ext >&5
15356 ac_lo= ac_hi=
15358 rm -f conftest.$ac_objext conftest.$ac_ext
15360 rm -f conftest.$ac_objext conftest.$ac_ext
15361 # Binary search between lo and hi bounds.
15362 while test "x$ac_lo" != "x$ac_hi"; do
15363 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15364 cat >conftest.$ac_ext <<_ACEOF
15365 #line $LINENO "configure"
15366 /* confdefs.h. */
15367 _ACEOF
15368 cat confdefs.h >>conftest.$ac_ext
15369 cat >>conftest.$ac_ext <<_ACEOF
15370 /* end confdefs.h. */
15371 $ac_includes_default
15373 main ()
15375 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15376 test_array [0] = 0
15379 return 0;
15381 _ACEOF
15382 rm -f conftest.$ac_objext
15383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15384 (eval $ac_compile) 2>&5
15385 ac_status=$?
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); } &&
15388 { ac_try='test -s conftest.$ac_objext'
15389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390 (eval $ac_try) 2>&5
15391 ac_status=$?
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); }; }; then
15394 ac_hi=$ac_mid
15395 else
15396 echo "$as_me: failed program was:" >&5
15397 sed 's/^/| /' conftest.$ac_ext >&5
15399 ac_lo=`expr '(' $ac_mid ')' + 1`
15401 rm -f conftest.$ac_objext conftest.$ac_ext
15402 done
15403 case $ac_lo in
15404 ?*) ac_cv_sizeof_long_long=$ac_lo;;
15405 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15406 See \`config.log' for more details." >&5
15407 echo "$as_me: error: cannot compute sizeof (long long), 77
15408 See \`config.log' for more details." >&2;}
15409 { (exit 1); exit 1; }; } ;;
15410 esac
15411 else
15412 if test "$cross_compiling" = yes; then
15413 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15414 See \`config.log' for more details." >&5
15415 echo "$as_me: error: cannot run test program while cross compiling
15416 See \`config.log' for more details." >&2;}
15417 { (exit 1); exit 1; }; }
15418 else
15419 cat >conftest.$ac_ext <<_ACEOF
15420 #line $LINENO "configure"
15421 /* confdefs.h. */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 $ac_includes_default
15427 long longval () { return (long) (sizeof (long long)); }
15428 unsigned long ulongval () { return (long) (sizeof (long long)); }
15429 #include <stdio.h>
15430 #include <stdlib.h>
15432 main ()
15435 FILE *f = fopen ("conftest.val", "w");
15436 if (! f)
15437 exit (1);
15438 if (((long) (sizeof (long long))) < 0)
15440 long i = longval ();
15441 if (i != ((long) (sizeof (long long))))
15442 exit (1);
15443 fprintf (f, "%ld\n", i);
15445 else
15447 unsigned long i = ulongval ();
15448 if (i != ((long) (sizeof (long long))))
15449 exit (1);
15450 fprintf (f, "%lu\n", i);
15452 exit (ferror (f) || fclose (f) != 0);
15455 return 0;
15457 _ACEOF
15458 rm -f conftest$ac_exeext
15459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15460 (eval $ac_link) 2>&5
15461 ac_status=$?
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465 (eval $ac_try) 2>&5
15466 ac_status=$?
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; }; then
15469 ac_cv_sizeof_long_long=`cat conftest.val`
15470 else
15471 echo "$as_me: program exited with status $ac_status" >&5
15472 echo "$as_me: failed program was:" >&5
15473 sed 's/^/| /' conftest.$ac_ext >&5
15475 ( exit $ac_status )
15476 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15477 See \`config.log' for more details." >&5
15478 echo "$as_me: error: cannot compute sizeof (long long), 77
15479 See \`config.log' for more details." >&2;}
15480 { (exit 1); exit 1; }; }
15482 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15485 rm -f conftest.val
15486 else
15487 ac_cv_sizeof_long_long=0
15490 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15491 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15492 cat >>confdefs.h <<_ACEOF
15493 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15494 _ACEOF
15498 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
15499 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
15500 if test "${wine_cv_linux_input_h+set}" = set; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15502 else
15503 cat >conftest.$ac_ext <<_ACEOF
15504 #line $LINENO "configure"
15505 /* confdefs.h. */
15506 _ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15511 #include <linux/input.h>
15514 main ()
15517 int foo = EVIOCGBIT(EV_ABS,42);
15518 int bar = BTN_PINKIE;
15519 int fortytwo = 42;
15522 return 0;
15524 _ACEOF
15525 rm -f conftest.$ac_objext
15526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15527 (eval $ac_compile) 2>&5
15528 ac_status=$?
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } &&
15531 { ac_try='test -s conftest.$ac_objext'
15532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533 (eval $ac_try) 2>&5
15534 ac_status=$?
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; }; then
15537 wine_cv_linux_input_h=yes
15538 else
15539 echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.$ac_ext >&5
15542 wine_cv_linux_input_h=no
15544 rm -f conftest.$ac_objext conftest.$ac_ext
15547 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
15548 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
15549 if test "$wine_cv_linux_input_h" = "yes"
15550 then
15552 cat >>confdefs.h <<\_ACEOF
15553 #define HAVE_CORRECT_LINUXINPUT_H 1
15554 _ACEOF
15559 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15560 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
15561 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
15562 echo $ECHO_N "(cached) $ECHO_C" >&6
15563 else
15564 cat >conftest.$ac_ext <<_ACEOF
15565 #line $LINENO "configure"
15566 /* confdefs.h. */
15567 _ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15572 #include <netdb.h>
15575 main ()
15578 char *name=NULL;
15579 struct hostent he;
15580 struct hostent *result;
15581 char *buf=NULL;
15582 int bufsize=0;
15583 int res,errnr;
15584 char *addr=NULL;
15585 int addrlen=0;
15586 int addrtype=0;
15587 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15588 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15591 return 0;
15593 _ACEOF
15594 rm -f conftest.$ac_objext
15595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15596 (eval $ac_compile) 2>&5
15597 ac_status=$?
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); } &&
15600 { ac_try='test -s conftest.$ac_objext'
15601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15602 (eval $ac_try) 2>&5
15603 ac_status=$?
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); }; }; then
15606 wine_cv_linux_gethostbyname_r_6=yes
15607 else
15608 echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15611 wine_cv_linux_gethostbyname_r_6=no
15614 rm -f conftest.$ac_objext conftest.$ac_ext
15617 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
15618 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
15619 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15620 then
15622 cat >>confdefs.h <<\_ACEOF
15623 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
15624 _ACEOF
15628 if test "$ac_cv_header_linux_joystick_h" = "yes"
15629 then
15630 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15631 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
15632 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
15633 echo $ECHO_N "(cached) $ECHO_C" >&6
15634 else
15635 cat >conftest.$ac_ext <<_ACEOF
15636 #line $LINENO "configure"
15637 /* confdefs.h. */
15638 _ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15643 #include <sys/ioctl.h>
15644 #include <linux/joystick.h>
15646 struct js_event blub;
15647 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15648 #error "no 2.2 header"
15649 #endif
15652 main ()
15654 /*empty*/
15656 return 0;
15658 _ACEOF
15659 rm -f conftest.$ac_objext
15660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15661 (eval $ac_compile) 2>&5
15662 ac_status=$?
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } &&
15665 { ac_try='test -s conftest.$ac_objext'
15666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15668 ac_status=$?
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; }; then
15671 wine_cv_linux_joystick_22_api=yes
15672 else
15673 echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15676 wine_cv_linux_joystick_22_api=no
15678 rm -f conftest.$ac_objext conftest.$ac_ext
15681 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
15682 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
15683 if test "$wine_cv_linux_joystick_22_api" = "yes"
15684 then
15686 cat >>confdefs.h <<\_ACEOF
15687 #define HAVE_LINUX_22_JOYSTICK_API 1
15688 _ACEOF
15694 if test "$ac_cv_header_sys_vfs_h" = "yes"
15695 then
15696 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
15697 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
15698 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
15699 echo $ECHO_N "(cached) $ECHO_C" >&6
15700 else
15701 cat >conftest.$ac_ext <<_ACEOF
15702 #line $LINENO "configure"
15703 /* confdefs.h. */
15704 _ACEOF
15705 cat confdefs.h >>conftest.$ac_ext
15706 cat >>conftest.$ac_ext <<_ACEOF
15707 /* end confdefs.h. */
15709 #include <sys/types.h>
15710 #ifdef HAVE_SYS_PARAM_H
15711 # include <sys/param.h>
15712 #endif
15713 #include <sys/vfs.h>
15716 main ()
15719 struct statfs stfs;
15721 memset(&stfs,0,sizeof(stfs));
15724 return 0;
15726 _ACEOF
15727 rm -f conftest.$ac_objext
15728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15729 (eval $ac_compile) 2>&5
15730 ac_status=$?
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); } &&
15733 { ac_try='test -s conftest.$ac_objext'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15736 ac_status=$?
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; }; then
15739 wine_cv_sys_vfs_has_statfs=yes
15740 else
15741 echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15744 wine_cv_sys_vfs_has_statfs=no
15747 rm -f conftest.$ac_objext conftest.$ac_ext
15750 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
15751 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
15752 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
15753 then
15755 cat >>confdefs.h <<\_ACEOF
15756 #define STATFS_DEFINED_BY_SYS_VFS 1
15757 _ACEOF
15762 if test "$ac_cv_header_sys_statfs_h" = "yes"
15763 then
15764 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
15765 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
15766 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
15767 echo $ECHO_N "(cached) $ECHO_C" >&6
15768 else
15769 cat >conftest.$ac_ext <<_ACEOF
15770 #line $LINENO "configure"
15771 /* confdefs.h. */
15772 _ACEOF
15773 cat confdefs.h >>conftest.$ac_ext
15774 cat >>conftest.$ac_ext <<_ACEOF
15775 /* end confdefs.h. */
15777 #include <sys/types.h>
15778 #ifdef HAVE_SYS_PARAM_H
15779 # include <sys/param.h>
15780 #endif
15781 #include <sys/statfs.h>
15784 main ()
15787 struct statfs stfs;
15790 return 0;
15792 _ACEOF
15793 rm -f conftest.$ac_objext
15794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15795 (eval $ac_compile) 2>&5
15796 ac_status=$?
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); } &&
15799 { ac_try='test -s conftest.$ac_objext'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }; then
15805 wine_cv_sys_statfs_has_statfs=yes
15806 else
15807 echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15810 wine_cv_sys_statfs_has_statfs=no
15813 rm -f conftest.$ac_objext conftest.$ac_ext
15816 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
15817 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
15818 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
15819 then
15821 cat >>confdefs.h <<\_ACEOF
15822 #define STATFS_DEFINED_BY_SYS_STATFS 1
15823 _ACEOF
15828 if test "$ac_cv_header_sys_mount_h" = "yes"
15829 then
15830 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
15831 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
15832 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
15833 echo $ECHO_N "(cached) $ECHO_C" >&6
15834 else
15835 cat >conftest.$ac_ext <<_ACEOF
15836 #line $LINENO "configure"
15837 /* confdefs.h. */
15838 _ACEOF
15839 cat confdefs.h >>conftest.$ac_ext
15840 cat >>conftest.$ac_ext <<_ACEOF
15841 /* end confdefs.h. */
15843 #include <sys/types.h>
15844 #ifdef HAVE_SYS_PARAM_H
15845 # include <sys/param.h>
15846 #endif
15847 #include <sys/mount.h>
15850 main ()
15853 struct statfs stfs;
15856 return 0;
15858 _ACEOF
15859 rm -f conftest.$ac_objext
15860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15861 (eval $ac_compile) 2>&5
15862 ac_status=$?
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } &&
15865 { ac_try='test -s conftest.$ac_objext'
15866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867 (eval $ac_try) 2>&5
15868 ac_status=$?
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; }; then
15871 wine_cv_sys_mount_has_statfs=yes
15872 else
15873 echo "$as_me: failed program was:" >&5
15874 sed 's/^/| /' conftest.$ac_ext >&5
15876 wine_cv_sys_mount_has_statfs=no
15879 rm -f conftest.$ac_objext conftest.$ac_ext
15882 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
15883 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
15884 if test "$wine_cv_sys_mount_has_statfs" = "yes"
15885 then
15887 cat >>confdefs.h <<\_ACEOF
15888 #define STATFS_DEFINED_BY_SYS_MOUNT 1
15889 _ACEOF
15895 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
15896 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
15897 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
15898 echo $ECHO_N "(cached) $ECHO_C" >&6
15899 else
15900 cat >conftest.$ac_ext <<_ACEOF
15901 #line $LINENO "configure"
15902 /* confdefs.h. */
15903 _ACEOF
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h. */
15907 #include <sys/types.h>
15908 #ifdef HAVE_SYS_PARAM_H
15909 # include <sys/param.h>
15910 #endif
15911 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15912 # include <sys/mount.h>
15913 #else
15914 # ifdef STATFS_DEFINED_BY_SYS_VFS
15915 # include <sys/vfs.h>
15916 # else
15917 # ifdef STATFS_DEFINED_BY_SYS_STATFS
15918 # include <sys/statfs.h>
15919 # endif
15920 # endif
15921 #endif
15924 main ()
15926 static struct statfs ac_aggr;
15927 if (ac_aggr.f_bfree)
15928 return 0;
15930 return 0;
15932 _ACEOF
15933 rm -f conftest.$ac_objext
15934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15935 (eval $ac_compile) 2>&5
15936 ac_status=$?
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); } &&
15939 { ac_try='test -s conftest.$ac_objext'
15940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941 (eval $ac_try) 2>&5
15942 ac_status=$?
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); }; }; then
15945 ac_cv_member_struct_statfs_f_bfree=yes
15946 else
15947 echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15950 cat >conftest.$ac_ext <<_ACEOF
15951 #line $LINENO "configure"
15952 /* confdefs.h. */
15953 _ACEOF
15954 cat confdefs.h >>conftest.$ac_ext
15955 cat >>conftest.$ac_ext <<_ACEOF
15956 /* end confdefs.h. */
15957 #include <sys/types.h>
15958 #ifdef HAVE_SYS_PARAM_H
15959 # include <sys/param.h>
15960 #endif
15961 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15962 # include <sys/mount.h>
15963 #else
15964 # ifdef STATFS_DEFINED_BY_SYS_VFS
15965 # include <sys/vfs.h>
15966 # else
15967 # ifdef STATFS_DEFINED_BY_SYS_STATFS
15968 # include <sys/statfs.h>
15969 # endif
15970 # endif
15971 #endif
15974 main ()
15976 static struct statfs ac_aggr;
15977 if (sizeof ac_aggr.f_bfree)
15978 return 0;
15980 return 0;
15982 _ACEOF
15983 rm -f conftest.$ac_objext
15984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15985 (eval $ac_compile) 2>&5
15986 ac_status=$?
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } &&
15989 { ac_try='test -s conftest.$ac_objext'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15992 ac_status=$?
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
15995 ac_cv_member_struct_statfs_f_bfree=yes
15996 else
15997 echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.$ac_ext >&5
16000 ac_cv_member_struct_statfs_f_bfree=no
16002 rm -f conftest.$ac_objext conftest.$ac_ext
16004 rm -f conftest.$ac_objext conftest.$ac_ext
16006 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
16007 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
16008 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
16010 cat >>confdefs.h <<_ACEOF
16011 #define HAVE_STRUCT_STATFS_F_BFREE 1
16012 _ACEOF
16016 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
16017 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
16018 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021 cat >conftest.$ac_ext <<_ACEOF
16022 #line $LINENO "configure"
16023 /* confdefs.h. */
16024 _ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h. */
16028 #include <sys/types.h>
16029 #ifdef HAVE_SYS_PARAM_H
16030 # include <sys/param.h>
16031 #endif
16032 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16033 # include <sys/mount.h>
16034 #else
16035 # ifdef STATFS_DEFINED_BY_SYS_VFS
16036 # include <sys/vfs.h>
16037 # else
16038 # ifdef STATFS_DEFINED_BY_SYS_STATFS
16039 # include <sys/statfs.h>
16040 # endif
16041 # endif
16042 #endif
16045 main ()
16047 static struct statfs ac_aggr;
16048 if (ac_aggr.f_bavail)
16049 return 0;
16051 return 0;
16053 _ACEOF
16054 rm -f conftest.$ac_objext
16055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16056 (eval $ac_compile) 2>&5
16057 ac_status=$?
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } &&
16060 { ac_try='test -s conftest.$ac_objext'
16061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16062 (eval $ac_try) 2>&5
16063 ac_status=$?
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); }; }; then
16066 ac_cv_member_struct_statfs_f_bavail=yes
16067 else
16068 echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16071 cat >conftest.$ac_ext <<_ACEOF
16072 #line $LINENO "configure"
16073 /* confdefs.h. */
16074 _ACEOF
16075 cat confdefs.h >>conftest.$ac_ext
16076 cat >>conftest.$ac_ext <<_ACEOF
16077 /* end confdefs.h. */
16078 #include <sys/types.h>
16079 #ifdef HAVE_SYS_PARAM_H
16080 # include <sys/param.h>
16081 #endif
16082 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16083 # include <sys/mount.h>
16084 #else
16085 # ifdef STATFS_DEFINED_BY_SYS_VFS
16086 # include <sys/vfs.h>
16087 # else
16088 # ifdef STATFS_DEFINED_BY_SYS_STATFS
16089 # include <sys/statfs.h>
16090 # endif
16091 # endif
16092 #endif
16095 main ()
16097 static struct statfs ac_aggr;
16098 if (sizeof ac_aggr.f_bavail)
16099 return 0;
16101 return 0;
16103 _ACEOF
16104 rm -f conftest.$ac_objext
16105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16106 (eval $ac_compile) 2>&5
16107 ac_status=$?
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); } &&
16110 { ac_try='test -s conftest.$ac_objext'
16111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112 (eval $ac_try) 2>&5
16113 ac_status=$?
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; }; then
16116 ac_cv_member_struct_statfs_f_bavail=yes
16117 else
16118 echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16121 ac_cv_member_struct_statfs_f_bavail=no
16123 rm -f conftest.$ac_objext conftest.$ac_ext
16125 rm -f conftest.$ac_objext conftest.$ac_ext
16127 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
16128 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
16129 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
16131 cat >>confdefs.h <<_ACEOF
16132 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
16133 _ACEOF
16139 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
16140 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
16141 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
16142 echo $ECHO_N "(cached) $ECHO_C" >&6
16143 else
16144 cat >conftest.$ac_ext <<_ACEOF
16145 #line $LINENO "configure"
16146 /* confdefs.h. */
16147 _ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h. */
16151 #include <sys/types.h>
16152 #ifdef HAVE_SYS_SOCKET_H
16153 # include <sys/socket.h>
16154 #endif
16155 #ifdef HAVE_SYS_UN_H
16156 # include <sys/un.h>
16157 #endif
16160 main ()
16162 static struct msghdr ac_aggr;
16163 if (ac_aggr.msg_accrights)
16164 return 0;
16166 return 0;
16168 _ACEOF
16169 rm -f conftest.$ac_objext
16170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16171 (eval $ac_compile) 2>&5
16172 ac_status=$?
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); } &&
16175 { ac_try='test -s conftest.$ac_objext'
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; }; then
16181 ac_cv_member_struct_msghdr_msg_accrights=yes
16182 else
16183 echo "$as_me: failed program was:" >&5
16184 sed 's/^/| /' conftest.$ac_ext >&5
16186 cat >conftest.$ac_ext <<_ACEOF
16187 #line $LINENO "configure"
16188 /* confdefs.h. */
16189 _ACEOF
16190 cat confdefs.h >>conftest.$ac_ext
16191 cat >>conftest.$ac_ext <<_ACEOF
16192 /* end confdefs.h. */
16193 #include <sys/types.h>
16194 #ifdef HAVE_SYS_SOCKET_H
16195 # include <sys/socket.h>
16196 #endif
16197 #ifdef HAVE_SYS_UN_H
16198 # include <sys/un.h>
16199 #endif
16202 main ()
16204 static struct msghdr ac_aggr;
16205 if (sizeof ac_aggr.msg_accrights)
16206 return 0;
16208 return 0;
16210 _ACEOF
16211 rm -f conftest.$ac_objext
16212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16213 (eval $ac_compile) 2>&5
16214 ac_status=$?
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } &&
16217 { ac_try='test -s conftest.$ac_objext'
16218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16219 (eval $ac_try) 2>&5
16220 ac_status=$?
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); }; }; then
16223 ac_cv_member_struct_msghdr_msg_accrights=yes
16224 else
16225 echo "$as_me: failed program was:" >&5
16226 sed 's/^/| /' conftest.$ac_ext >&5
16228 ac_cv_member_struct_msghdr_msg_accrights=no
16230 rm -f conftest.$ac_objext conftest.$ac_ext
16232 rm -f conftest.$ac_objext conftest.$ac_ext
16234 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
16235 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
16236 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
16238 cat >>confdefs.h <<_ACEOF
16239 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
16240 _ACEOF
16244 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16245 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
16246 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16247 echo $ECHO_N "(cached) $ECHO_C" >&6
16248 else
16249 cat >conftest.$ac_ext <<_ACEOF
16250 #line $LINENO "configure"
16251 /* confdefs.h. */
16252 _ACEOF
16253 cat confdefs.h >>conftest.$ac_ext
16254 cat >>conftest.$ac_ext <<_ACEOF
16255 /* end confdefs.h. */
16256 #include <sys/types.h>
16257 #ifdef HAVE_SYS_SOCKET_H
16258 # include <sys/socket.h>
16259 #endif
16260 #ifdef HAVE_SYS_UN_H
16261 # include <sys/un.h>
16262 #endif
16265 main ()
16267 static struct sockaddr ac_aggr;
16268 if (ac_aggr.sa_len)
16269 return 0;
16271 return 0;
16273 _ACEOF
16274 rm -f conftest.$ac_objext
16275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16276 (eval $ac_compile) 2>&5
16277 ac_status=$?
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); } &&
16280 { ac_try='test -s conftest.$ac_objext'
16281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16282 (eval $ac_try) 2>&5
16283 ac_status=$?
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); }; }; then
16286 ac_cv_member_struct_sockaddr_sa_len=yes
16287 else
16288 echo "$as_me: failed program was:" >&5
16289 sed 's/^/| /' conftest.$ac_ext >&5
16291 cat >conftest.$ac_ext <<_ACEOF
16292 #line $LINENO "configure"
16293 /* confdefs.h. */
16294 _ACEOF
16295 cat confdefs.h >>conftest.$ac_ext
16296 cat >>conftest.$ac_ext <<_ACEOF
16297 /* end confdefs.h. */
16298 #include <sys/types.h>
16299 #ifdef HAVE_SYS_SOCKET_H
16300 # include <sys/socket.h>
16301 #endif
16302 #ifdef HAVE_SYS_UN_H
16303 # include <sys/un.h>
16304 #endif
16307 main ()
16309 static struct sockaddr ac_aggr;
16310 if (sizeof ac_aggr.sa_len)
16311 return 0;
16313 return 0;
16315 _ACEOF
16316 rm -f conftest.$ac_objext
16317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16318 (eval $ac_compile) 2>&5
16319 ac_status=$?
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } &&
16322 { ac_try='test -s conftest.$ac_objext'
16323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324 (eval $ac_try) 2>&5
16325 ac_status=$?
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); }; }; then
16328 ac_cv_member_struct_sockaddr_sa_len=yes
16329 else
16330 echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16333 ac_cv_member_struct_sockaddr_sa_len=no
16335 rm -f conftest.$ac_objext conftest.$ac_ext
16337 rm -f conftest.$ac_objext conftest.$ac_ext
16339 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16340 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
16341 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
16343 cat >>confdefs.h <<_ACEOF
16344 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16345 _ACEOF
16349 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
16350 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
16351 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
16352 echo $ECHO_N "(cached) $ECHO_C" >&6
16353 else
16354 cat >conftest.$ac_ext <<_ACEOF
16355 #line $LINENO "configure"
16356 /* confdefs.h. */
16357 _ACEOF
16358 cat confdefs.h >>conftest.$ac_ext
16359 cat >>conftest.$ac_ext <<_ACEOF
16360 /* end confdefs.h. */
16361 #include <sys/types.h>
16362 #ifdef HAVE_SYS_SOCKET_H
16363 # include <sys/socket.h>
16364 #endif
16365 #ifdef HAVE_SYS_UN_H
16366 # include <sys/un.h>
16367 #endif
16370 main ()
16372 static struct sockaddr_un ac_aggr;
16373 if (ac_aggr.sun_len)
16374 return 0;
16376 return 0;
16378 _ACEOF
16379 rm -f conftest.$ac_objext
16380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16381 (eval $ac_compile) 2>&5
16382 ac_status=$?
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); } &&
16385 { ac_try='test -s conftest.$ac_objext'
16386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387 (eval $ac_try) 2>&5
16388 ac_status=$?
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; }; then
16391 ac_cv_member_struct_sockaddr_un_sun_len=yes
16392 else
16393 echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16396 cat >conftest.$ac_ext <<_ACEOF
16397 #line $LINENO "configure"
16398 /* confdefs.h. */
16399 _ACEOF
16400 cat confdefs.h >>conftest.$ac_ext
16401 cat >>conftest.$ac_ext <<_ACEOF
16402 /* end confdefs.h. */
16403 #include <sys/types.h>
16404 #ifdef HAVE_SYS_SOCKET_H
16405 # include <sys/socket.h>
16406 #endif
16407 #ifdef HAVE_SYS_UN_H
16408 # include <sys/un.h>
16409 #endif
16412 main ()
16414 static struct sockaddr_un ac_aggr;
16415 if (sizeof ac_aggr.sun_len)
16416 return 0;
16418 return 0;
16420 _ACEOF
16421 rm -f conftest.$ac_objext
16422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16423 (eval $ac_compile) 2>&5
16424 ac_status=$?
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); } &&
16427 { ac_try='test -s conftest.$ac_objext'
16428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16429 (eval $ac_try) 2>&5
16430 ac_status=$?
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); }; }; then
16433 ac_cv_member_struct_sockaddr_un_sun_len=yes
16434 else
16435 echo "$as_me: failed program was:" >&5
16436 sed 's/^/| /' conftest.$ac_ext >&5
16438 ac_cv_member_struct_sockaddr_un_sun_len=no
16440 rm -f conftest.$ac_objext conftest.$ac_ext
16442 rm -f conftest.$ac_objext conftest.$ac_ext
16444 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
16445 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
16446 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
16448 cat >>confdefs.h <<_ACEOF
16449 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
16450 _ACEOF
16456 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
16457 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
16458 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
16459 echo $ECHO_N "(cached) $ECHO_C" >&6
16460 else
16461 cat >conftest.$ac_ext <<_ACEOF
16462 #line $LINENO "configure"
16463 /* confdefs.h. */
16464 _ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h. */
16468 #include <signal.h>
16471 main ()
16473 static siginfo_t ac_aggr;
16474 if (ac_aggr.si_fd)
16475 return 0;
16477 return 0;
16479 _ACEOF
16480 rm -f conftest.$ac_objext
16481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16482 (eval $ac_compile) 2>&5
16483 ac_status=$?
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } &&
16486 { ac_try='test -s conftest.$ac_objext'
16487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488 (eval $ac_try) 2>&5
16489 ac_status=$?
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); }; }; then
16492 ac_cv_member_siginfo_t_si_fd=yes
16493 else
16494 echo "$as_me: failed program was:" >&5
16495 sed 's/^/| /' conftest.$ac_ext >&5
16497 cat >conftest.$ac_ext <<_ACEOF
16498 #line $LINENO "configure"
16499 /* confdefs.h. */
16500 _ACEOF
16501 cat confdefs.h >>conftest.$ac_ext
16502 cat >>conftest.$ac_ext <<_ACEOF
16503 /* end confdefs.h. */
16504 #include <signal.h>
16507 main ()
16509 static siginfo_t ac_aggr;
16510 if (sizeof ac_aggr.si_fd)
16511 return 0;
16513 return 0;
16515 _ACEOF
16516 rm -f conftest.$ac_objext
16517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16518 (eval $ac_compile) 2>&5
16519 ac_status=$?
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); } &&
16522 { ac_try='test -s conftest.$ac_objext'
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16525 ac_status=$?
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; }; then
16528 ac_cv_member_siginfo_t_si_fd=yes
16529 else
16530 echo "$as_me: failed program was:" >&5
16531 sed 's/^/| /' conftest.$ac_ext >&5
16533 ac_cv_member_siginfo_t_si_fd=no
16535 rm -f conftest.$ac_objext conftest.$ac_ext
16537 rm -f conftest.$ac_objext conftest.$ac_ext
16539 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
16540 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
16541 if test $ac_cv_member_siginfo_t_si_fd = yes; then
16543 cat >>confdefs.h <<_ACEOF
16544 #define HAVE_SIGINFO_T_SI_FD 1
16545 _ACEOF
16551 echo "$as_me:$LINENO: checking for struct option.name" >&5
16552 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
16553 if test "${ac_cv_member_struct_option_name+set}" = set; then
16554 echo $ECHO_N "(cached) $ECHO_C" >&6
16555 else
16556 cat >conftest.$ac_ext <<_ACEOF
16557 #line $LINENO "configure"
16558 /* confdefs.h. */
16559 _ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h. */
16563 #ifdef HAVE_GETOPT_H
16564 #include <getopt.h>
16565 #endif
16568 main ()
16570 static struct option ac_aggr;
16571 if (ac_aggr.name)
16572 return 0;
16574 return 0;
16576 _ACEOF
16577 rm -f conftest.$ac_objext
16578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16579 (eval $ac_compile) 2>&5
16580 ac_status=$?
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); } &&
16583 { ac_try='test -s conftest.$ac_objext'
16584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585 (eval $ac_try) 2>&5
16586 ac_status=$?
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; }; then
16589 ac_cv_member_struct_option_name=yes
16590 else
16591 echo "$as_me: failed program was:" >&5
16592 sed 's/^/| /' conftest.$ac_ext >&5
16594 cat >conftest.$ac_ext <<_ACEOF
16595 #line $LINENO "configure"
16596 /* confdefs.h. */
16597 _ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h. */
16601 #ifdef HAVE_GETOPT_H
16602 #include <getopt.h>
16603 #endif
16606 main ()
16608 static struct option ac_aggr;
16609 if (sizeof ac_aggr.name)
16610 return 0;
16612 return 0;
16614 _ACEOF
16615 rm -f conftest.$ac_objext
16616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16617 (eval $ac_compile) 2>&5
16618 ac_status=$?
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); } &&
16621 { ac_try='test -s conftest.$ac_objext'
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16624 ac_status=$?
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; }; then
16627 ac_cv_member_struct_option_name=yes
16628 else
16629 echo "$as_me: failed program was:" >&5
16630 sed 's/^/| /' conftest.$ac_ext >&5
16632 ac_cv_member_struct_option_name=no
16634 rm -f conftest.$ac_objext conftest.$ac_ext
16636 rm -f conftest.$ac_objext conftest.$ac_ext
16638 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
16639 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
16640 if test $ac_cv_member_struct_option_name = yes; then
16642 cat >>confdefs.h <<_ACEOF
16643 #define HAVE_STRUCT_OPTION_NAME 1
16644 _ACEOF
16650 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16651 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16652 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16653 echo $ECHO_N "(cached) $ECHO_C" >&6
16654 else
16655 cat >conftest.$ac_ext <<_ACEOF
16656 #line $LINENO "configure"
16657 /* confdefs.h. */
16658 _ACEOF
16659 cat confdefs.h >>conftest.$ac_ext
16660 cat >>conftest.$ac_ext <<_ACEOF
16661 /* end confdefs.h. */
16662 $ac_includes_default
16664 main ()
16666 static struct stat ac_aggr;
16667 if (ac_aggr.st_blocks)
16668 return 0;
16670 return 0;
16672 _ACEOF
16673 rm -f conftest.$ac_objext
16674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16675 (eval $ac_compile) 2>&5
16676 ac_status=$?
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } &&
16679 { ac_try='test -s conftest.$ac_objext'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 ac_cv_member_struct_stat_st_blocks=yes
16686 else
16687 echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16690 cat >conftest.$ac_ext <<_ACEOF
16691 #line $LINENO "configure"
16692 /* confdefs.h. */
16693 _ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h. */
16697 $ac_includes_default
16699 main ()
16701 static struct stat ac_aggr;
16702 if (sizeof ac_aggr.st_blocks)
16703 return 0;
16705 return 0;
16707 _ACEOF
16708 rm -f conftest.$ac_objext
16709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16710 (eval $ac_compile) 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } &&
16714 { ac_try='test -s conftest.$ac_objext'
16715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716 (eval $ac_try) 2>&5
16717 ac_status=$?
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; }; then
16720 ac_cv_member_struct_stat_st_blocks=yes
16721 else
16722 echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16725 ac_cv_member_struct_stat_st_blocks=no
16727 rm -f conftest.$ac_objext conftest.$ac_ext
16729 rm -f conftest.$ac_objext conftest.$ac_ext
16731 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16732 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16733 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16735 cat >>confdefs.h <<_ACEOF
16736 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16737 _ACEOF
16744 case $host_cpu in
16745 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
16746 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
16747 if test "${ac_cv_cpp_def___i386__+set}" = set; then
16748 echo $ECHO_N "(cached) $ECHO_C" >&6
16749 else
16750 cat >conftest.$ac_ext <<_ACEOF
16751 #line $LINENO "configure"
16752 /* confdefs.h. */
16753 _ACEOF
16754 cat confdefs.h >>conftest.$ac_ext
16755 cat >>conftest.$ac_ext <<_ACEOF
16756 /* end confdefs.h. */
16757 #ifndef __i386__
16759 #endif
16760 _ACEOF
16761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16762 $EGREP "yes" >/dev/null 2>&1; then
16763 ac_cv_cpp_def___i386__=yes
16764 else
16765 ac_cv_cpp_def___i386__=no
16767 rm -f conftest*
16770 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
16771 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
16772 if test $ac_cv_cpp_def___i386__ = yes; then
16773 CFLAGS="$CFLAGS -D__i386__"
16774 LINTFLAGS="$LINTFLAGS -D__i386__"
16777 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
16778 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
16779 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16781 else
16782 cat >conftest.$ac_ext <<_ACEOF
16783 #line $LINENO "configure"
16784 /* confdefs.h. */
16785 _ACEOF
16786 cat confdefs.h >>conftest.$ac_ext
16787 cat >>conftest.$ac_ext <<_ACEOF
16788 /* end confdefs.h. */
16789 #ifndef __ALPHA__
16791 #endif
16792 _ACEOF
16793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16794 $EGREP "yes" >/dev/null 2>&1; then
16795 ac_cv_cpp_def___ALPHA__=yes
16796 else
16797 ac_cv_cpp_def___ALPHA__=no
16799 rm -f conftest*
16802 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
16803 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
16804 if test $ac_cv_cpp_def___ALPHA__ = yes; then
16805 CFLAGS="$CFLAGS -D__ALPHA__"
16806 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
16809 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
16810 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
16811 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16813 else
16814 cat >conftest.$ac_ext <<_ACEOF
16815 #line $LINENO "configure"
16816 /* confdefs.h. */
16817 _ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h. */
16821 #ifndef __sparc__
16823 #endif
16824 _ACEOF
16825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16826 $EGREP "yes" >/dev/null 2>&1; then
16827 ac_cv_cpp_def___sparc__=yes
16828 else
16829 ac_cv_cpp_def___sparc__=no
16831 rm -f conftest*
16834 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
16835 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
16836 if test $ac_cv_cpp_def___sparc__ = yes; then
16837 CFLAGS="$CFLAGS -D__sparc__"
16838 LINTFLAGS="$LINTFLAGS -D__sparc__"
16841 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
16842 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
16843 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
16844 echo $ECHO_N "(cached) $ECHO_C" >&6
16845 else
16846 cat >conftest.$ac_ext <<_ACEOF
16847 #line $LINENO "configure"
16848 /* confdefs.h. */
16849 _ACEOF
16850 cat confdefs.h >>conftest.$ac_ext
16851 cat >>conftest.$ac_ext <<_ACEOF
16852 /* end confdefs.h. */
16853 #ifndef __powerpc__
16855 #endif
16856 _ACEOF
16857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16858 $EGREP "yes" >/dev/null 2>&1; then
16859 ac_cv_cpp_def___powerpc__=yes
16860 else
16861 ac_cv_cpp_def___powerpc__=no
16863 rm -f conftest*
16866 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
16867 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
16868 if test $ac_cv_cpp_def___powerpc__ = yes; then
16869 CFLAGS="$CFLAGS -D__powerpc__"
16870 LINTFLAGS="$LINTFLAGS -D__powerpc__"
16873 esac
16875 case $host_vendor in
16876 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
16877 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
16878 if test "${ac_cv_cpp_def___sun__+set}" = set; then
16879 echo $ECHO_N "(cached) $ECHO_C" >&6
16880 else
16881 cat >conftest.$ac_ext <<_ACEOF
16882 #line $LINENO "configure"
16883 /* confdefs.h. */
16884 _ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h. */
16888 #ifndef __sun__
16890 #endif
16891 _ACEOF
16892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16893 $EGREP "yes" >/dev/null 2>&1; then
16894 ac_cv_cpp_def___sun__=yes
16895 else
16896 ac_cv_cpp_def___sun__=no
16898 rm -f conftest*
16901 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
16902 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
16903 if test $ac_cv_cpp_def___sun__ = yes; then
16904 CFLAGS="$CFLAGS -D__sun__"
16905 LINTFLAGS="$LINTFLAGS -D__sun__"
16908 esac
16914 ac_config_commands="$ac_config_commands controls"
16916 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
16918 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
16920 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
16922 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
16924 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
16926 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
16928 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
16930 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
16932 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
16934 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
16936 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
16938 ac_config_commands="$ac_config_commands dlls/kernel/messages"
16940 ac_config_commands="$ac_config_commands dlls/user/dde"
16942 ac_config_commands="$ac_config_commands dlls/user/resources"
16944 ac_config_commands="$ac_config_commands dlls/wineps/data"
16946 ac_config_commands="$ac_config_commands files"
16948 ac_config_commands="$ac_config_commands graphics"
16950 ac_config_commands="$ac_config_commands graphics/x11drv"
16952 ac_config_commands="$ac_config_commands include/wine"
16954 ac_config_commands="$ac_config_commands memory"
16956 ac_config_commands="$ac_config_commands misc"
16958 ac_config_commands="$ac_config_commands msdos"
16960 ac_config_commands="$ac_config_commands objects"
16962 ac_config_commands="$ac_config_commands programs/regapi/tests"
16964 ac_config_commands="$ac_config_commands programs/regedit/tests"
16966 ac_config_commands="$ac_config_commands windows"
16969 MAKE_RULES=Make.rules
16972 MAKE_DLL_RULES=dlls/Makedll.rules
16975 MAKE_TEST_RULES=dlls/Maketest.rules
16978 MAKE_LIB_RULES=libs/Makelib.rules
16981 MAKE_PROG_RULES=programs/Makeprog.rules
16984 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrtd/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uxtheme/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/winejack/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/uuid/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
16987 cat >confcache <<\_ACEOF
16988 # This file is a shell script that caches the results of configure
16989 # tests run on this system so they can be shared between configure
16990 # scripts and configure runs, see configure's option --config-cache.
16991 # It is not useful on other systems. If it contains results you don't
16992 # want to keep, you may remove or edit it.
16994 # config.status only pays attention to the cache file if you give it
16995 # the --recheck option to rerun configure.
16997 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16998 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16999 # following values.
17001 _ACEOF
17003 # The following way of writing the cache mishandles newlines in values,
17004 # but we know of no workaround that is simple, portable, and efficient.
17005 # So, don't put newlines in cache variables' values.
17006 # Ultrix sh set writes to stderr and can't be redirected directly,
17007 # and sets the high bit in the cache file unless we assign to the vars.
17009 (set) 2>&1 |
17010 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17011 *ac_space=\ *)
17012 # `set' does not quote correctly, so add quotes (double-quote
17013 # substitution turns \\\\ into \\, and sed turns \\ into \).
17014 sed -n \
17015 "s/'/'\\\\''/g;
17016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17019 # `set' quotes correctly as required by POSIX, so do not add quotes.
17020 sed -n \
17021 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17023 esac;
17025 sed '
17026 t clear
17027 : clear
17028 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17029 t end
17030 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17031 : end' >>confcache
17032 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17033 if test -w $cache_file; then
17034 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17035 cat confcache >$cache_file
17036 else
17037 echo "not updating unwritable cache $cache_file"
17040 rm -f confcache
17042 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17043 # Let make expand exec_prefix.
17044 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17046 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17047 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17048 # trailing colons and then remove the whole line if VPATH becomes empty
17049 # (actually we leave an empty line to preserve line numbers).
17050 if test "x$srcdir" = x.; then
17051 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17052 s/:*\$(srcdir):*/:/;
17053 s/:*\${srcdir}:*/:/;
17054 s/:*@srcdir@:*/:/;
17055 s/^\([^=]*=[ ]*\):*/\1/;
17056 s/:*$//;
17057 s/^[^=]*=[ ]*$//;
17061 DEFS=-DHAVE_CONFIG_H
17063 ac_libobjs=
17064 ac_ltlibobjs=
17065 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17066 # 1. Remove the extension, and $U if already installed.
17067 ac_i=`echo "$ac_i" |
17068 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17069 # 2. Add them.
17070 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17071 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17072 done
17073 LIBOBJS=$ac_libobjs
17075 LTLIBOBJS=$ac_ltlibobjs
17079 : ${CONFIG_STATUS=./config.status}
17080 ac_clean_files_save=$ac_clean_files
17081 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17082 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17083 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17084 cat >$CONFIG_STATUS <<_ACEOF
17085 #! $SHELL
17086 # Generated by $as_me.
17087 # Run this file to recreate the current configuration.
17088 # Compiler output produced by configure, useful for debugging
17089 # configure, is in config.log if it exists.
17091 debug=false
17092 ac_cs_recheck=false
17093 ac_cs_silent=false
17094 SHELL=\${CONFIG_SHELL-$SHELL}
17095 _ACEOF
17097 cat >>$CONFIG_STATUS <<\_ACEOF
17098 ## --------------------- ##
17099 ## M4sh Initialization. ##
17100 ## --------------------- ##
17102 # Be Bourne compatible
17103 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17104 emulate sh
17105 NULLCMD=:
17106 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17107 # is contrary to our usage. Disable this feature.
17108 alias -g '${1+"$@"}'='"$@"'
17109 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17110 set -o posix
17113 # Support unset when possible.
17114 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17115 as_unset=unset
17116 else
17117 as_unset=false
17121 # Work around bugs in pre-3.0 UWIN ksh.
17122 $as_unset ENV MAIL MAILPATH
17123 PS1='$ '
17124 PS2='> '
17125 PS4='+ '
17127 # NLS nuisances.
17128 for as_var in \
17129 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17130 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17131 LC_TELEPHONE LC_TIME
17133 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17134 eval $as_var=C; export $as_var
17135 else
17136 $as_unset $as_var
17138 done
17140 # Required to use basename.
17141 if expr a : '\(a\)' >/dev/null 2>&1; then
17142 as_expr=expr
17143 else
17144 as_expr=false
17147 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17148 as_basename=basename
17149 else
17150 as_basename=false
17154 # Name of the executable.
17155 as_me=`$as_basename "$0" ||
17156 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17157 X"$0" : 'X\(//\)$' \| \
17158 X"$0" : 'X\(/\)$' \| \
17159 . : '\(.\)' 2>/dev/null ||
17160 echo X/"$0" |
17161 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17162 /^X\/\(\/\/\)$/{ s//\1/; q; }
17163 /^X\/\(\/\).*/{ s//\1/; q; }
17164 s/.*/./; q'`
17167 # PATH needs CR, and LINENO needs CR and PATH.
17168 # Avoid depending upon Character Ranges.
17169 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17170 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17171 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17172 as_cr_digits='0123456789'
17173 as_cr_alnum=$as_cr_Letters$as_cr_digits
17175 # The user is always right.
17176 if test "${PATH_SEPARATOR+set}" != set; then
17177 echo "#! /bin/sh" >conf$$.sh
17178 echo "exit 0" >>conf$$.sh
17179 chmod +x conf$$.sh
17180 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17181 PATH_SEPARATOR=';'
17182 else
17183 PATH_SEPARATOR=:
17185 rm -f conf$$.sh
17189 as_lineno_1=$LINENO
17190 as_lineno_2=$LINENO
17191 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17192 test "x$as_lineno_1" != "x$as_lineno_2" &&
17193 test "x$as_lineno_3" = "x$as_lineno_2" || {
17194 # Find who we are. Look in the path if we contain no path at all
17195 # relative or not.
17196 case $0 in
17197 *[\\/]* ) as_myself=$0 ;;
17198 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17199 for as_dir in $PATH
17201 IFS=$as_save_IFS
17202 test -z "$as_dir" && as_dir=.
17203 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17204 done
17207 esac
17208 # We did not find ourselves, most probably we were run as `sh COMMAND'
17209 # in which case we are not to be found in the path.
17210 if test "x$as_myself" = x; then
17211 as_myself=$0
17213 if test ! -f "$as_myself"; then
17214 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17215 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17216 { (exit 1); exit 1; }; }
17218 case $CONFIG_SHELL in
17220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17223 IFS=$as_save_IFS
17224 test -z "$as_dir" && as_dir=.
17225 for as_base in sh bash ksh sh5; do
17226 case $as_dir in
17228 if ("$as_dir/$as_base" -c '
17229 as_lineno_1=$LINENO
17230 as_lineno_2=$LINENO
17231 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17232 test "x$as_lineno_1" != "x$as_lineno_2" &&
17233 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17234 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17235 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17236 CONFIG_SHELL=$as_dir/$as_base
17237 export CONFIG_SHELL
17238 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17239 fi;;
17240 esac
17241 done
17242 done
17244 esac
17246 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17247 # uniformly replaced by the line number. The first 'sed' inserts a
17248 # line-number line before each line; the second 'sed' does the real
17249 # work. The second script uses 'N' to pair each line-number line
17250 # with the numbered line, and appends trailing '-' during
17251 # substitution so that $LINENO is not a special case at line end.
17252 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17253 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17254 sed '=' <$as_myself |
17255 sed '
17257 s,$,-,
17258 : loop
17259 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17260 t loop
17261 s,-$,,
17262 s,^['$as_cr_digits']*\n,,
17263 ' >$as_me.lineno &&
17264 chmod +x $as_me.lineno ||
17265 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17266 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17267 { (exit 1); exit 1; }; }
17269 # Don't try to exec as it changes $[0], causing all sort of problems
17270 # (the dirname of $[0] is not the place where we might find the
17271 # original and so on. Autoconf is especially sensible to this).
17272 . ./$as_me.lineno
17273 # Exit status is that of the last command.
17274 exit
17278 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17279 *c*,-n*) ECHO_N= ECHO_C='
17280 ' ECHO_T=' ' ;;
17281 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17282 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17283 esac
17285 if expr a : '\(a\)' >/dev/null 2>&1; then
17286 as_expr=expr
17287 else
17288 as_expr=false
17291 rm -f conf$$ conf$$.exe conf$$.file
17292 echo >conf$$.file
17293 if ln -s conf$$.file conf$$ 2>/dev/null; then
17294 # We could just check for DJGPP; but this test a) works b) is more generic
17295 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17296 if test -f conf$$.exe; then
17297 # Don't use ln at all; we don't have any links
17298 as_ln_s='cp -p'
17299 else
17300 as_ln_s='ln -s'
17302 elif ln conf$$.file conf$$ 2>/dev/null; then
17303 as_ln_s=ln
17304 else
17305 as_ln_s='cp -p'
17307 rm -f conf$$ conf$$.exe conf$$.file
17309 if mkdir -p . 2>/dev/null; then
17310 as_mkdir_p=:
17311 else
17312 as_mkdir_p=false
17315 as_executable_p="test -f"
17317 # Sed expression to map a string onto a valid CPP name.
17318 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17320 # Sed expression to map a string onto a valid variable name.
17321 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17324 # IFS
17325 # We need space, tab and new line, in precisely that order.
17326 as_nl='
17328 IFS=" $as_nl"
17330 # CDPATH.
17331 $as_unset CDPATH
17333 exec 6>&1
17335 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17336 # report actual input values of CONFIG_FILES etc. instead of their
17337 # values after options handling. Logging --version etc. is OK.
17338 exec 5>>config.log
17340 echo
17341 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17342 ## Running $as_me. ##
17343 _ASBOX
17344 } >&5
17345 cat >&5 <<_CSEOF
17347 This file was extended by Wine $as_me 20031016, which was
17348 generated by GNU Autoconf 2.57. Invocation command line was
17350 CONFIG_FILES = $CONFIG_FILES
17351 CONFIG_HEADERS = $CONFIG_HEADERS
17352 CONFIG_LINKS = $CONFIG_LINKS
17353 CONFIG_COMMANDS = $CONFIG_COMMANDS
17354 $ $0 $@
17356 _CSEOF
17357 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17358 echo >&5
17359 _ACEOF
17361 # Files that config.status was made for.
17362 if test -n "$ac_config_files"; then
17363 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17366 if test -n "$ac_config_headers"; then
17367 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17370 if test -n "$ac_config_links"; then
17371 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17374 if test -n "$ac_config_commands"; then
17375 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17378 cat >>$CONFIG_STATUS <<\_ACEOF
17380 ac_cs_usage="\
17381 \`$as_me' instantiates files from templates according to the
17382 current configuration.
17384 Usage: $0 [OPTIONS] [FILE]...
17386 -h, --help print this help, then exit
17387 -V, --version print version number, then exit
17388 -q, --quiet do not print progress messages
17389 -d, --debug don't remove temporary files
17390 --recheck update $as_me by reconfiguring in the same conditions
17391 --file=FILE[:TEMPLATE]
17392 instantiate the configuration file FILE
17393 --header=FILE[:TEMPLATE]
17394 instantiate the configuration header FILE
17396 Configuration files:
17397 $config_files
17399 Configuration headers:
17400 $config_headers
17402 Configuration commands:
17403 $config_commands
17405 Report bugs to <bug-autoconf@gnu.org>."
17406 _ACEOF
17408 cat >>$CONFIG_STATUS <<_ACEOF
17409 ac_cs_version="\\
17410 Wine config.status 20031016
17411 configured by $0, generated by GNU Autoconf 2.57,
17412 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17414 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17415 Free Software Foundation, Inc.
17416 This config.status script is free software; the Free Software Foundation
17417 gives unlimited permission to copy, distribute and modify it."
17418 srcdir=$srcdir
17419 INSTALL="$INSTALL"
17420 _ACEOF
17422 cat >>$CONFIG_STATUS <<\_ACEOF
17423 # If no file are specified by the user, then we need to provide default
17424 # value. By we need to know if files were specified by the user.
17425 ac_need_defaults=:
17426 while test $# != 0
17428 case $1 in
17429 --*=*)
17430 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17431 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17432 ac_shift=:
17435 ac_option=$1
17436 ac_optarg=$2
17437 ac_shift=shift
17439 *) # This is not an option, so the user has probably given explicit
17440 # arguments.
17441 ac_option=$1
17442 ac_need_defaults=false;;
17443 esac
17445 case $ac_option in
17446 # Handling of the options.
17447 _ACEOF
17448 cat >>$CONFIG_STATUS <<\_ACEOF
17449 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17450 ac_cs_recheck=: ;;
17451 --version | --vers* | -V )
17452 echo "$ac_cs_version"; exit 0 ;;
17453 --he | --h)
17454 # Conflict between --help and --header
17455 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17456 Try \`$0 --help' for more information." >&5
17457 echo "$as_me: error: ambiguous option: $1
17458 Try \`$0 --help' for more information." >&2;}
17459 { (exit 1); exit 1; }; };;
17460 --help | --hel | -h )
17461 echo "$ac_cs_usage"; exit 0 ;;
17462 --debug | --d* | -d )
17463 debug=: ;;
17464 --file | --fil | --fi | --f )
17465 $ac_shift
17466 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17467 ac_need_defaults=false;;
17468 --header | --heade | --head | --hea )
17469 $ac_shift
17470 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17471 ac_need_defaults=false;;
17472 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17473 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17474 ac_cs_silent=: ;;
17476 # This is an error.
17477 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17478 Try \`$0 --help' for more information." >&5
17479 echo "$as_me: error: unrecognized option: $1
17480 Try \`$0 --help' for more information." >&2;}
17481 { (exit 1); exit 1; }; } ;;
17483 *) ac_config_targets="$ac_config_targets $1" ;;
17485 esac
17486 shift
17487 done
17489 ac_configure_extra_args=
17491 if $ac_cs_silent; then
17492 exec 6>/dev/null
17493 ac_configure_extra_args="$ac_configure_extra_args --silent"
17496 _ACEOF
17497 cat >>$CONFIG_STATUS <<_ACEOF
17498 if \$ac_cs_recheck; then
17499 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17500 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17503 _ACEOF
17509 cat >>$CONFIG_STATUS <<\_ACEOF
17510 for ac_config_target in $ac_config_targets
17512 case "$ac_config_target" in
17513 # Handling of arguments.
17514 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17515 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
17516 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
17517 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
17518 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17519 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17520 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
17521 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
17522 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
17523 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
17524 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
17525 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
17526 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
17527 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
17528 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
17529 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
17530 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
17531 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
17532 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
17533 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
17534 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
17535 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
17536 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
17537 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
17538 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
17539 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
17540 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
17541 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
17542 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
17543 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
17544 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
17545 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
17546 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
17547 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
17548 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
17549 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
17550 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
17551 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
17552 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
17553 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
17554 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
17555 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
17556 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
17557 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
17558 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
17559 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
17560 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
17561 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
17562 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
17563 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
17564 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
17565 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
17566 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
17567 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
17568 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
17569 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
17570 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
17571 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
17572 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
17573 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
17574 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
17575 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
17576 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
17577 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
17578 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
17579 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
17580 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
17581 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
17582 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
17583 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
17584 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
17585 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
17586 "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
17587 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
17588 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
17589 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
17590 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
17591 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
17592 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
17593 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
17594 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
17595 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
17596 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
17597 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
17598 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
17599 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
17600 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
17601 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
17602 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
17603 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
17604 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
17605 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
17606 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
17607 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
17608 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
17609 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
17610 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
17611 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
17612 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
17613 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
17614 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
17615 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
17616 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
17617 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
17618 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
17619 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
17620 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
17621 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
17622 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
17623 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
17624 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
17625 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
17626 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
17627 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
17628 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
17629 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
17630 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
17631 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
17632 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
17633 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
17634 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
17635 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
17636 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
17637 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
17638 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
17639 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
17640 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
17641 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
17642 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
17643 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
17644 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
17645 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
17646 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
17647 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
17648 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
17649 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
17650 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
17651 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
17652 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
17653 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
17654 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
17655 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
17656 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
17657 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
17658 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
17659 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
17660 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
17661 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
17662 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17663 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
17664 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
17665 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
17666 "libs/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/uuid/Makefile" ;;
17667 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
17668 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
17669 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
17670 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
17671 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
17672 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
17673 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
17674 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
17675 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
17676 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
17677 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
17678 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
17679 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
17680 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
17681 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
17682 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
17683 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
17684 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
17685 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
17686 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
17687 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
17688 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
17689 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
17690 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
17691 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
17692 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
17693 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
17694 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
17695 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
17696 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
17697 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
17698 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
17699 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
17700 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
17701 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17702 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
17703 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
17704 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
17705 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
17706 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
17707 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
17708 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
17709 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
17710 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
17711 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
17712 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
17713 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
17714 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
17715 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
17716 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
17717 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
17718 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
17719 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
17720 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
17721 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
17722 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
17723 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
17724 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
17725 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
17726 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
17727 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
17728 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
17729 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
17730 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
17731 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
17732 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
17733 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
17734 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
17735 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
17736 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17737 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17738 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17739 { (exit 1); exit 1; }; };;
17740 esac
17741 done
17743 # If the user did not use the arguments to specify the items to instantiate,
17744 # then the envvar interface is used. Set only those that are not.
17745 # We use the long form for the default assignment because of an extremely
17746 # bizarre bug on SunOS 4.1.3.
17747 if $ac_need_defaults; then
17748 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17749 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17750 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17753 # Have a temporary directory for convenience. Make it in the build tree
17754 # simply because there is no reason to put it here, and in addition,
17755 # creating and moving files from /tmp can sometimes cause problems.
17756 # Create a temporary directory, and hook for its removal unless debugging.
17757 $debug ||
17759 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17760 trap '{ (exit 1); exit 1; }' 1 2 13 15
17763 # Create a (secure) tmp directory for tmp files.
17766 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17767 test -n "$tmp" && test -d "$tmp"
17768 } ||
17770 tmp=./confstat$$-$RANDOM
17771 (umask 077 && mkdir $tmp)
17772 } ||
17774 echo "$me: cannot create a temporary directory in ." >&2
17775 { (exit 1); exit 1; }
17778 _ACEOF
17780 cat >>$CONFIG_STATUS <<_ACEOF
17783 # CONFIG_FILES section.
17786 # No need to generate the scripts if there are no CONFIG_FILES.
17787 # This happens for instance when ./config.status config.h
17788 if test -n "\$CONFIG_FILES"; then
17789 # Protect against being on the right side of a sed subst in config.status.
17790 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17791 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17792 s,@SHELL@,$SHELL,;t t
17793 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17794 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17795 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17796 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17797 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17798 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17799 s,@exec_prefix@,$exec_prefix,;t t
17800 s,@prefix@,$prefix,;t t
17801 s,@program_transform_name@,$program_transform_name,;t t
17802 s,@bindir@,$bindir,;t t
17803 s,@sbindir@,$sbindir,;t t
17804 s,@libexecdir@,$libexecdir,;t t
17805 s,@datadir@,$datadir,;t t
17806 s,@sysconfdir@,$sysconfdir,;t t
17807 s,@sharedstatedir@,$sharedstatedir,;t t
17808 s,@localstatedir@,$localstatedir,;t t
17809 s,@libdir@,$libdir,;t t
17810 s,@includedir@,$includedir,;t t
17811 s,@oldincludedir@,$oldincludedir,;t t
17812 s,@infodir@,$infodir,;t t
17813 s,@mandir@,$mandir,;t t
17814 s,@build_alias@,$build_alias,;t t
17815 s,@host_alias@,$host_alias,;t t
17816 s,@target_alias@,$target_alias,;t t
17817 s,@DEFS@,$DEFS,;t t
17818 s,@ECHO_C@,$ECHO_C,;t t
17819 s,@ECHO_N@,$ECHO_N,;t t
17820 s,@ECHO_T@,$ECHO_T,;t t
17821 s,@LIBS@,$LIBS,;t t
17822 s,@WIN16_FILES@,$WIN16_FILES,;t t
17823 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
17824 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
17825 s,@build@,$build,;t t
17826 s,@build_cpu@,$build_cpu,;t t
17827 s,@build_vendor@,$build_vendor,;t t
17828 s,@build_os@,$build_os,;t t
17829 s,@host@,$host,;t t
17830 s,@host_cpu@,$host_cpu,;t t
17831 s,@host_vendor@,$host_vendor,;t t
17832 s,@host_os@,$host_os,;t t
17833 s,@SET_MAKE@,$SET_MAKE,;t t
17834 s,@CC@,$CC,;t t
17835 s,@CFLAGS@,$CFLAGS,;t t
17836 s,@LDFLAGS@,$LDFLAGS,;t t
17837 s,@CPPFLAGS@,$CPPFLAGS,;t t
17838 s,@ac_ct_CC@,$ac_ct_CC,;t t
17839 s,@EXEEXT@,$EXEEXT,;t t
17840 s,@OBJEXT@,$OBJEXT,;t t
17841 s,@CPP@,$CPP,;t t
17842 s,@TOOLSDIR@,$TOOLSDIR,;t t
17843 s,@X_CFLAGS@,$X_CFLAGS,;t t
17844 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17845 s,@X_LIBS@,$X_LIBS,;t t
17846 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17847 s,@YACC@,$YACC,;t t
17848 s,@LEX@,$LEX,;t t
17849 s,@LEXLIB@,$LEXLIB,;t t
17850 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
17851 s,@XYACC@,$XYACC,;t t
17852 s,@XLEX@,$XLEX,;t t
17853 s,@AS@,$AS,;t t
17854 s,@ac_ct_AS@,$ac_ct_AS,;t t
17855 s,@LD@,$LD,;t t
17856 s,@ac_ct_LD@,$ac_ct_LD,;t t
17857 s,@AR@,$AR,;t t
17858 s,@ac_ct_AR@,$ac_ct_AR,;t t
17859 s,@RANLIB@,$RANLIB,;t t
17860 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17861 s,@STRIP@,$STRIP,;t t
17862 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17863 s,@WINDRES@,$WINDRES,;t t
17864 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
17865 s,@LN_S@,$LN_S,;t t
17866 s,@LN@,$LN,;t t
17867 s,@LDCONFIG@,$LDCONFIG,;t t
17868 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17869 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17870 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17871 s,@LINT@,$LINT,;t t
17872 s,@LINTFLAGS@,$LINTFLAGS,;t t
17873 s,@DB2HTML@,$DB2HTML,;t t
17874 s,@DB2PDF@,$DB2PDF,;t t
17875 s,@DB2PS@,$DB2PS,;t t
17876 s,@DB2TXT@,$DB2TXT,;t t
17877 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
17878 s,@JPEGLIB@,$JPEGLIB,;t t
17879 s,@EGREP@,$EGREP,;t t
17880 s,@GIFLIB@,$GIFLIB,;t t
17881 s,@XLIB@,$XLIB,;t t
17882 s,@XFILES@,$XFILES,;t t
17883 s,@OPENGLFILES@,$OPENGLFILES,;t t
17884 s,@GLU32FILES@,$GLU32FILES,;t t
17885 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
17886 s,@NASLIBS@,$NASLIBS,;t t
17887 s,@CURSESLIBS@,$CURSESLIBS,;t t
17888 s,@sane_devel@,$sane_devel,;t t
17889 s,@SANELIBS@,$SANELIBS,;t t
17890 s,@SANEINCL@,$SANEINCL,;t t
17891 s,@ICULIBS@,$ICULIBS,;t t
17892 s,@ft_devel@,$ft_devel,;t t
17893 s,@ft_devel2@,$ft_devel2,;t t
17894 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
17895 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
17896 s,@ARTSLIBS@,$ARTSLIBS,;t t
17897 s,@ARTSINCL@,$ARTSINCL,;t t
17898 s,@ALSALIBS@,$ALSALIBS,;t t
17899 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
17900 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
17901 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
17902 s,@DLLEXT@,$DLLEXT,;t t
17903 s,@DLLFLAGS@,$DLLFLAGS,;t t
17904 s,@DLLIBS@,$DLLIBS,;t t
17905 s,@LDSHARED@,$LDSHARED,;t t
17906 s,@LDDLL@,$LDDLL,;t t
17907 s,@LIBEXT@,$LIBEXT,;t t
17908 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
17909 s,@DLLTOOL@,$DLLTOOL,;t t
17910 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
17911 s,@DLLWRAP@,$DLLWRAP,;t t
17912 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
17913 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
17914 s,@CROSSTEST@,$CROSSTEST,;t t
17915 s,@CROSSCC@,$CROSSCC,;t t
17916 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
17917 s,@LDPATH@,$LDPATH,;t t
17918 s,@CRTLIBS@,$CRTLIBS,;t t
17919 s,@LDD@,$LDD,;t t
17920 s,@ALLOCA@,$ALLOCA,;t t
17921 s,@LIBOBJS@,$LIBOBJS,;t t
17922 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17923 /@MAKE_RULES@/r $MAKE_RULES
17924 s,@MAKE_RULES@,,;t t
17925 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
17926 s,@MAKE_DLL_RULES@,,;t t
17927 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
17928 s,@MAKE_TEST_RULES@,,;t t
17929 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
17930 s,@MAKE_LIB_RULES@,,;t t
17931 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
17932 s,@MAKE_PROG_RULES@,,;t t
17933 CEOF
17935 _ACEOF
17937 cat >>$CONFIG_STATUS <<\_ACEOF
17938 # Split the substitutions into bite-sized pieces for seds with
17939 # small command number limits, like on Digital OSF/1 and HP-UX.
17940 ac_max_sed_lines=48
17941 ac_sed_frag=1 # Number of current file.
17942 ac_beg=1 # First line for current file.
17943 ac_end=$ac_max_sed_lines # Line after last line for current file.
17944 ac_more_lines=:
17945 ac_sed_cmds=
17946 while $ac_more_lines; do
17947 if test $ac_beg -gt 1; then
17948 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17949 else
17950 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17952 if test ! -s $tmp/subs.frag; then
17953 ac_more_lines=false
17954 else
17955 # The purpose of the label and of the branching condition is to
17956 # speed up the sed processing (if there are no `@' at all, there
17957 # is no need to browse any of the substitutions).
17958 # These are the two extra sed commands mentioned above.
17959 (echo ':t
17960 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17961 if test -z "$ac_sed_cmds"; then
17962 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17963 else
17964 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17966 ac_sed_frag=`expr $ac_sed_frag + 1`
17967 ac_beg=$ac_end
17968 ac_end=`expr $ac_end + $ac_max_sed_lines`
17970 done
17971 if test -z "$ac_sed_cmds"; then
17972 ac_sed_cmds=cat
17974 fi # test -n "$CONFIG_FILES"
17976 _ACEOF
17977 cat >>$CONFIG_STATUS <<\_ACEOF
17978 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17979 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17980 case $ac_file in
17981 - | *:- | *:-:* ) # input from stdin
17982 cat >$tmp/stdin
17983 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17984 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17985 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17986 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17987 * ) ac_file_in=$ac_file.in ;;
17988 esac
17990 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17991 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17992 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17993 X"$ac_file" : 'X\(//\)[^/]' \| \
17994 X"$ac_file" : 'X\(//\)$' \| \
17995 X"$ac_file" : 'X\(/\)' \| \
17996 . : '\(.\)' 2>/dev/null ||
17997 echo X"$ac_file" |
17998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18000 /^X\(\/\/\)$/{ s//\1/; q; }
18001 /^X\(\/\).*/{ s//\1/; q; }
18002 s/.*/./; q'`
18003 { if $as_mkdir_p; then
18004 mkdir -p "$ac_dir"
18005 else
18006 as_dir="$ac_dir"
18007 as_dirs=
18008 while test ! -d "$as_dir"; do
18009 as_dirs="$as_dir $as_dirs"
18010 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18011 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18012 X"$as_dir" : 'X\(//\)[^/]' \| \
18013 X"$as_dir" : 'X\(//\)$' \| \
18014 X"$as_dir" : 'X\(/\)' \| \
18015 . : '\(.\)' 2>/dev/null ||
18016 echo X"$as_dir" |
18017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18018 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18019 /^X\(\/\/\)$/{ s//\1/; q; }
18020 /^X\(\/\).*/{ s//\1/; q; }
18021 s/.*/./; q'`
18022 done
18023 test ! -n "$as_dirs" || mkdir $as_dirs
18024 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18025 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18026 { (exit 1); exit 1; }; }; }
18028 ac_builddir=.
18030 if test "$ac_dir" != .; then
18031 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18032 # A "../" for each directory in $ac_dir_suffix.
18033 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18034 else
18035 ac_dir_suffix= ac_top_builddir=
18038 case $srcdir in
18039 .) # No --srcdir option. We are building in place.
18040 ac_srcdir=.
18041 if test -z "$ac_top_builddir"; then
18042 ac_top_srcdir=.
18043 else
18044 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18045 fi ;;
18046 [\\/]* | ?:[\\/]* ) # Absolute path.
18047 ac_srcdir=$srcdir$ac_dir_suffix;
18048 ac_top_srcdir=$srcdir ;;
18049 *) # Relative path.
18050 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18051 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18052 esac
18053 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18054 # absolute.
18055 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18056 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18057 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18058 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18061 case $INSTALL in
18062 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18063 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18064 esac
18066 if test x"$ac_file" != x-; then
18067 { echo "$as_me:$LINENO: creating $ac_file" >&5
18068 echo "$as_me: creating $ac_file" >&6;}
18069 rm -f "$ac_file"
18071 # Let's still pretend it is `configure' which instantiates (i.e., don't
18072 # use $as_me), people would be surprised to read:
18073 # /* config.h. Generated by config.status. */
18074 if test x"$ac_file" = x-; then
18075 configure_input=
18076 else
18077 configure_input="$ac_file. "
18079 configure_input=$configure_input"Generated from `echo $ac_file_in |
18080 sed 's,.*/,,'` by configure."
18082 # First look for the input files in the build tree, otherwise in the
18083 # src tree.
18084 ac_file_inputs=`IFS=:
18085 for f in $ac_file_in; do
18086 case $f in
18087 -) echo $tmp/stdin ;;
18088 [\\/$]*)
18089 # Absolute (can't be DOS-style, as IFS=:)
18090 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18091 echo "$as_me: error: cannot find input file: $f" >&2;}
18092 { (exit 1); exit 1; }; }
18093 echo $f;;
18094 *) # Relative
18095 if test -f "$f"; then
18096 # Build tree
18097 echo $f
18098 elif test -f "$srcdir/$f"; then
18099 # Source tree
18100 echo $srcdir/$f
18101 else
18102 # /dev/null tree
18103 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18104 echo "$as_me: error: cannot find input file: $f" >&2;}
18105 { (exit 1); exit 1; }; }
18106 fi;;
18107 esac
18108 done` || { (exit 1); exit 1; }
18109 _ACEOF
18110 cat >>$CONFIG_STATUS <<_ACEOF
18111 sed "$ac_vpsub
18112 $extrasub
18113 _ACEOF
18114 cat >>$CONFIG_STATUS <<\_ACEOF
18116 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18117 s,@configure_input@,$configure_input,;t t
18118 s,@srcdir@,$ac_srcdir,;t t
18119 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18120 s,@top_srcdir@,$ac_top_srcdir,;t t
18121 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18122 s,@builddir@,$ac_builddir,;t t
18123 s,@abs_builddir@,$ac_abs_builddir,;t t
18124 s,@top_builddir@,$ac_top_builddir,;t t
18125 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18126 s,@INSTALL@,$ac_INSTALL,;t t
18127 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18128 rm -f $tmp/stdin
18129 if test x"$ac_file" != x-; then
18130 mv $tmp/out $ac_file
18131 else
18132 cat $tmp/out
18133 rm -f $tmp/out
18136 done
18137 _ACEOF
18138 cat >>$CONFIG_STATUS <<\_ACEOF
18141 # CONFIG_HEADER section.
18144 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18145 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18147 # ac_d sets the value in "#define NAME VALUE" lines.
18148 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18149 ac_dB='[ ].*$,\1#\2'
18150 ac_dC=' '
18151 ac_dD=',;t'
18152 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18153 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18154 ac_uB='$,\1#\2define\3'
18155 ac_uC=' '
18156 ac_uD=',;t'
18158 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18159 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18160 case $ac_file in
18161 - | *:- | *:-:* ) # input from stdin
18162 cat >$tmp/stdin
18163 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18164 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18165 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18166 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18167 * ) ac_file_in=$ac_file.in ;;
18168 esac
18170 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18171 echo "$as_me: creating $ac_file" >&6;}
18173 # First look for the input files in the build tree, otherwise in the
18174 # src tree.
18175 ac_file_inputs=`IFS=:
18176 for f in $ac_file_in; do
18177 case $f in
18178 -) echo $tmp/stdin ;;
18179 [\\/$]*)
18180 # Absolute (can't be DOS-style, as IFS=:)
18181 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18182 echo "$as_me: error: cannot find input file: $f" >&2;}
18183 { (exit 1); exit 1; }; }
18184 echo $f;;
18185 *) # Relative
18186 if test -f "$f"; then
18187 # Build tree
18188 echo $f
18189 elif test -f "$srcdir/$f"; then
18190 # Source tree
18191 echo $srcdir/$f
18192 else
18193 # /dev/null tree
18194 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18195 echo "$as_me: error: cannot find input file: $f" >&2;}
18196 { (exit 1); exit 1; }; }
18197 fi;;
18198 esac
18199 done` || { (exit 1); exit 1; }
18200 # Remove the trailing spaces.
18201 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18203 _ACEOF
18205 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18206 # `conftest.undefs', that substitutes the proper values into
18207 # config.h.in to produce config.h. The first handles `#define'
18208 # templates, and the second `#undef' templates.
18209 # And first: Protect against being on the right side of a sed subst in
18210 # config.status. Protect against being in an unquoted here document
18211 # in config.status.
18212 rm -f conftest.defines conftest.undefs
18213 # Using a here document instead of a string reduces the quoting nightmare.
18214 # Putting comments in sed scripts is not portable.
18216 # `end' is used to avoid that the second main sed command (meant for
18217 # 0-ary CPP macros) applies to n-ary macro definitions.
18218 # See the Autoconf documentation for `clear'.
18219 cat >confdef2sed.sed <<\_ACEOF
18220 s/[\\&,]/\\&/g
18221 s,[\\$`],\\&,g
18222 t clear
18223 : clear
18224 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18225 t end
18226 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18227 : end
18228 _ACEOF
18229 # If some macros were called several times there might be several times
18230 # the same #defines, which is useless. Nevertheless, we may not want to
18231 # sort them, since we want the *last* AC-DEFINE to be honored.
18232 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18233 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18234 rm -f confdef2sed.sed
18236 # This sed command replaces #undef with comments. This is necessary, for
18237 # example, in the case of _POSIX_SOURCE, which is predefined and required
18238 # on some systems where configure will not decide to define it.
18239 cat >>conftest.undefs <<\_ACEOF
18240 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18241 _ACEOF
18243 # Break up conftest.defines because some shells have a limit on the size
18244 # of here documents, and old seds have small limits too (100 cmds).
18245 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18246 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18247 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18248 echo ' :' >>$CONFIG_STATUS
18249 rm -f conftest.tail
18250 while grep . conftest.defines >/dev/null
18252 # Write a limited-size here document to $tmp/defines.sed.
18253 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18254 # Speed up: don't consider the non `#define' lines.
18255 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18256 # Work around the forget-to-reset-the-flag bug.
18257 echo 't clr' >>$CONFIG_STATUS
18258 echo ': clr' >>$CONFIG_STATUS
18259 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18260 echo 'CEOF
18261 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18262 rm -f $tmp/in
18263 mv $tmp/out $tmp/in
18264 ' >>$CONFIG_STATUS
18265 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18266 rm -f conftest.defines
18267 mv conftest.tail conftest.defines
18268 done
18269 rm -f conftest.defines
18270 echo ' fi # grep' >>$CONFIG_STATUS
18271 echo >>$CONFIG_STATUS
18273 # Break up conftest.undefs because some shells have a limit on the size
18274 # of here documents, and old seds have small limits too (100 cmds).
18275 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18276 rm -f conftest.tail
18277 while grep . conftest.undefs >/dev/null
18279 # Write a limited-size here document to $tmp/undefs.sed.
18280 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18281 # Speed up: don't consider the non `#undef'
18282 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18283 # Work around the forget-to-reset-the-flag bug.
18284 echo 't clr' >>$CONFIG_STATUS
18285 echo ': clr' >>$CONFIG_STATUS
18286 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18287 echo 'CEOF
18288 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18289 rm -f $tmp/in
18290 mv $tmp/out $tmp/in
18291 ' >>$CONFIG_STATUS
18292 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18293 rm -f conftest.undefs
18294 mv conftest.tail conftest.undefs
18295 done
18296 rm -f conftest.undefs
18298 cat >>$CONFIG_STATUS <<\_ACEOF
18299 # Let's still pretend it is `configure' which instantiates (i.e., don't
18300 # use $as_me), people would be surprised to read:
18301 # /* config.h. Generated by config.status. */
18302 if test x"$ac_file" = x-; then
18303 echo "/* Generated by configure. */" >$tmp/config.h
18304 else
18305 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18307 cat $tmp/in >>$tmp/config.h
18308 rm -f $tmp/in
18309 if test x"$ac_file" != x-; then
18310 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18311 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18312 echo "$as_me: $ac_file is unchanged" >&6;}
18313 else
18314 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18315 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18316 X"$ac_file" : 'X\(//\)[^/]' \| \
18317 X"$ac_file" : 'X\(//\)$' \| \
18318 X"$ac_file" : 'X\(/\)' \| \
18319 . : '\(.\)' 2>/dev/null ||
18320 echo X"$ac_file" |
18321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18322 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18323 /^X\(\/\/\)$/{ s//\1/; q; }
18324 /^X\(\/\).*/{ s//\1/; q; }
18325 s/.*/./; q'`
18326 { if $as_mkdir_p; then
18327 mkdir -p "$ac_dir"
18328 else
18329 as_dir="$ac_dir"
18330 as_dirs=
18331 while test ! -d "$as_dir"; do
18332 as_dirs="$as_dir $as_dirs"
18333 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18335 X"$as_dir" : 'X\(//\)[^/]' \| \
18336 X"$as_dir" : 'X\(//\)$' \| \
18337 X"$as_dir" : 'X\(/\)' \| \
18338 . : '\(.\)' 2>/dev/null ||
18339 echo X"$as_dir" |
18340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18342 /^X\(\/\/\)$/{ s//\1/; q; }
18343 /^X\(\/\).*/{ s//\1/; q; }
18344 s/.*/./; q'`
18345 done
18346 test ! -n "$as_dirs" || mkdir $as_dirs
18347 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18348 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18349 { (exit 1); exit 1; }; }; }
18351 rm -f $ac_file
18352 mv $tmp/config.h $ac_file
18354 else
18355 cat $tmp/config.h
18356 rm -f $tmp/config.h
18358 done
18359 _ACEOF
18360 cat >>$CONFIG_STATUS <<\_ACEOF
18363 # CONFIG_COMMANDS section.
18365 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18366 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18367 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18368 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18369 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18370 X"$ac_dest" : 'X\(//\)[^/]' \| \
18371 X"$ac_dest" : 'X\(//\)$' \| \
18372 X"$ac_dest" : 'X\(/\)' \| \
18373 . : '\(.\)' 2>/dev/null ||
18374 echo X"$ac_dest" |
18375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18376 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18377 /^X\(\/\/\)$/{ s//\1/; q; }
18378 /^X\(\/\).*/{ s//\1/; q; }
18379 s/.*/./; q'`
18380 ac_builddir=.
18382 if test "$ac_dir" != .; then
18383 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18384 # A "../" for each directory in $ac_dir_suffix.
18385 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18386 else
18387 ac_dir_suffix= ac_top_builddir=
18390 case $srcdir in
18391 .) # No --srcdir option. We are building in place.
18392 ac_srcdir=.
18393 if test -z "$ac_top_builddir"; then
18394 ac_top_srcdir=.
18395 else
18396 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18397 fi ;;
18398 [\\/]* | ?:[\\/]* ) # Absolute path.
18399 ac_srcdir=$srcdir$ac_dir_suffix;
18400 ac_top_srcdir=$srcdir ;;
18401 *) # Relative path.
18402 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18403 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18404 esac
18405 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18406 # absolute.
18407 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18408 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18409 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18410 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18413 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18414 echo "$as_me: executing $ac_dest commands" >&6;}
18415 case $ac_dest in
18416 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
18417 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
18418 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
18419 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
18420 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
18421 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
18422 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
18423 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
18424 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
18425 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
18426 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
18427 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
18428 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
18429 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
18430 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
18431 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
18432 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
18433 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
18434 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
18435 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
18436 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
18437 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
18438 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
18439 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
18440 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
18441 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
18442 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
18443 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
18444 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
18445 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
18446 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
18447 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
18448 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
18449 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
18450 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
18451 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
18452 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
18453 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
18454 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
18455 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
18456 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
18457 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
18458 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
18459 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
18460 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
18461 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
18462 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
18463 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
18464 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
18465 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
18466 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
18467 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
18468 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
18469 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
18470 esac
18471 done
18472 _ACEOF
18474 cat >>$CONFIG_STATUS <<\_ACEOF
18476 { (exit 0); exit 0; }
18477 _ACEOF
18478 chmod +x $CONFIG_STATUS
18479 ac_clean_files=$ac_clean_files_save
18482 # configure is writing to config.log, and then calls config.status.
18483 # config.status does its own redirection, appending to config.log.
18484 # Unfortunately, on DOS this fails, as config.log is still kept open
18485 # by configure, so config.status won't be able to write to it; its
18486 # output is simply discarded. So we exec the FD to /dev/null,
18487 # effectively closing config.log, so it can be properly (re)opened and
18488 # appended to by config.status. When coming back to configure, we
18489 # need to make the FD available again.
18490 if test "$no_create" != yes; then
18491 ac_cs_success=:
18492 ac_config_status_args=
18493 test "$silent" = yes &&
18494 ac_config_status_args="$ac_config_status_args --quiet"
18495 exec 5>/dev/null
18496 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18497 exec 5>>config.log
18498 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18499 # would make configure fail if this is the last instruction.
18500 $ac_cs_success || { (exit 1); exit 1; }
18504 if test "$have_x" = "no"
18505 then
18506 echo
18507 echo "*** Warning: X development files not found. Wine will be built without"
18508 echo "*** X support, which currently does not work, and would probably not be"
18509 echo "*** what you want anyway. You will need to install devel packages of"
18510 echo "*** Xlib/Xfree86 at the very least."
18513 if test "$wine_cv_opengl_version_OK" = "no"
18514 then
18515 echo
18516 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
18517 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
18520 if test "$wine_cv_msg_freetype" = "yes"
18521 then
18522 echo
18523 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
18524 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
18525 echo "*** freetype-devel package (or its equivalent on your distribution) to"
18526 echo "*** enable Wine to use TrueType fonts."
18529 echo
18530 echo "Configure finished. Do 'make depend && make' to compile Wine."
18531 echo