Fix format strings in T42_download_header() and T42_download_glyph().
[wine/wine-kai.git] / configure
blobefad90541eb525f6c4d543ce722a5d487b8ce5fb
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 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 WINE_BINARIES MAIN_BINARY 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
1388 # Make sure we can run config.sub.
1389 $ac_config_sub sun4 >/dev/null 2>&1 ||
1390 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1391 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1392 { (exit 1); exit 1; }; }
1394 echo "$as_me:$LINENO: checking build system type" >&5
1395 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1396 if test "${ac_cv_build+set}" = set; then
1397 echo $ECHO_N "(cached) $ECHO_C" >&6
1398 else
1399 ac_cv_build_alias=$build_alias
1400 test -z "$ac_cv_build_alias" &&
1401 ac_cv_build_alias=`$ac_config_guess`
1402 test -z "$ac_cv_build_alias" &&
1403 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1404 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1405 { (exit 1); exit 1; }; }
1406 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1407 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1408 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1409 { (exit 1); exit 1; }; }
1412 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1413 echo "${ECHO_T}$ac_cv_build" >&6
1414 build=$ac_cv_build
1415 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1416 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1417 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1420 echo "$as_me:$LINENO: checking host system type" >&5
1421 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1422 if test "${ac_cv_host+set}" = set; then
1423 echo $ECHO_N "(cached) $ECHO_C" >&6
1424 else
1425 ac_cv_host_alias=$host_alias
1426 test -z "$ac_cv_host_alias" &&
1427 ac_cv_host_alias=$ac_cv_build_alias
1428 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1429 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1430 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1431 { (exit 1); exit 1; }; }
1434 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1435 echo "${ECHO_T}$ac_cv_host" >&6
1436 host=$ac_cv_host
1437 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1438 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1439 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1442 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1443 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1444 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1445 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 else
1448 cat >conftest.make <<\_ACEOF
1449 all:
1450 @echo 'ac_maketemp="$(MAKE)"'
1451 _ACEOF
1452 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1453 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1454 if test -n "$ac_maketemp"; then
1455 eval ac_cv_prog_make_${ac_make}_set=yes
1456 else
1457 eval ac_cv_prog_make_${ac_make}_set=no
1459 rm -f conftest.make
1461 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1462 echo "$as_me:$LINENO: result: yes" >&5
1463 echo "${ECHO_T}yes" >&6
1464 SET_MAKE=
1465 else
1466 echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1468 SET_MAKE="MAKE=${MAKE-make}"
1471 ac_ext=c
1472 ac_cpp='$CPP $CPPFLAGS'
1473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1476 if test -n "$ac_tool_prefix"; then
1477 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1478 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1479 echo "$as_me:$LINENO: checking for $ac_word" >&5
1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481 if test "${ac_cv_prog_CC+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1483 else
1484 if test -n "$CC"; then
1485 ac_cv_prog_CC="$CC" # Let the user override the test.
1486 else
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 for as_dir in $PATH
1490 IFS=$as_save_IFS
1491 test -z "$as_dir" && as_dir=.
1492 for ac_exec_ext in '' $ac_executable_extensions; do
1493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1494 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1496 break 2
1498 done
1499 done
1503 CC=$ac_cv_prog_CC
1504 if test -n "$CC"; then
1505 echo "$as_me:$LINENO: result: $CC" >&5
1506 echo "${ECHO_T}$CC" >&6
1507 else
1508 echo "$as_me:$LINENO: result: no" >&5
1509 echo "${ECHO_T}no" >&6
1513 if test -z "$ac_cv_prog_CC"; then
1514 ac_ct_CC=$CC
1515 # Extract the first word of "gcc", so it can be a program name with args.
1516 set dummy gcc; ac_word=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1521 else
1522 if test -n "$ac_ct_CC"; then
1523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1524 else
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 for as_dir in $PATH
1528 IFS=$as_save_IFS
1529 test -z "$as_dir" && as_dir=.
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_ac_ct_CC="gcc"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 break 2
1536 done
1537 done
1541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1542 if test -n "$ac_ct_CC"; then
1543 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1544 echo "${ECHO_T}$ac_ct_CC" >&6
1545 else
1546 echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1550 CC=$ac_ct_CC
1551 else
1552 CC="$ac_cv_prog_CC"
1555 if test -z "$CC"; then
1556 if test -n "$ac_tool_prefix"; then
1557 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1558 set dummy ${ac_tool_prefix}cc; ac_word=$2
1559 echo "$as_me:$LINENO: checking for $ac_word" >&5
1560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561 if test "${ac_cv_prog_CC+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564 if test -n "$CC"; then
1565 ac_cv_prog_CC="$CC" # Let the user override the test.
1566 else
1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 for as_dir in $PATH
1570 IFS=$as_save_IFS
1571 test -z "$as_dir" && as_dir=.
1572 for ac_exec_ext in '' $ac_executable_extensions; do
1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574 ac_cv_prog_CC="${ac_tool_prefix}cc"
1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576 break 2
1578 done
1579 done
1583 CC=$ac_cv_prog_CC
1584 if test -n "$CC"; then
1585 echo "$as_me:$LINENO: result: $CC" >&5
1586 echo "${ECHO_T}$CC" >&6
1587 else
1588 echo "$as_me:$LINENO: result: no" >&5
1589 echo "${ECHO_T}no" >&6
1593 if test -z "$ac_cv_prog_CC"; then
1594 ac_ct_CC=$CC
1595 # Extract the first word of "cc", so it can be a program name with args.
1596 set dummy cc; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602 if test -n "$ac_ct_CC"; then
1603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1604 else
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 for as_dir in $PATH
1608 IFS=$as_save_IFS
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 ac_cv_prog_ac_ct_CC="cc"
1613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614 break 2
1616 done
1617 done
1621 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1622 if test -n "$ac_ct_CC"; then
1623 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1624 echo "${ECHO_T}$ac_ct_CC" >&6
1625 else
1626 echo "$as_me:$LINENO: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1630 CC=$ac_ct_CC
1631 else
1632 CC="$ac_cv_prog_CC"
1636 if test -z "$CC"; then
1637 # Extract the first word of "cc", so it can be a program name with args.
1638 set dummy cc; ac_word=$2
1639 echo "$as_me:$LINENO: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_prog_CC+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 else
1644 if test -n "$CC"; then
1645 ac_cv_prog_CC="$CC" # Let the user override the test.
1646 else
1647 ac_prog_rejected=no
1648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 for as_dir in $PATH
1651 IFS=$as_save_IFS
1652 test -z "$as_dir" && as_dir=.
1653 for ac_exec_ext in '' $ac_executable_extensions; do
1654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1655 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1656 ac_prog_rejected=yes
1657 continue
1659 ac_cv_prog_CC="cc"
1660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661 break 2
1663 done
1664 done
1666 if test $ac_prog_rejected = yes; then
1667 # We found a bogon in the path, so make sure we never use it.
1668 set dummy $ac_cv_prog_CC
1669 shift
1670 if test $# != 0; then
1671 # We chose a different compiler from the bogus one.
1672 # However, it has the same basename, so the bogon will be chosen
1673 # first if we set CC to just the basename; use the full file name.
1674 shift
1675 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1680 CC=$ac_cv_prog_CC
1681 if test -n "$CC"; then
1682 echo "$as_me:$LINENO: result: $CC" >&5
1683 echo "${ECHO_T}$CC" >&6
1684 else
1685 echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1690 if test -z "$CC"; then
1691 if test -n "$ac_tool_prefix"; then
1692 for ac_prog in cl
1694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701 if test -n "$CC"; then
1702 ac_cv_prog_CC="$CC" # Let the user override the test.
1703 else
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1707 IFS=$as_save_IFS
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 break 2
1715 done
1716 done
1720 CC=$ac_cv_prog_CC
1721 if test -n "$CC"; then
1722 echo "$as_me:$LINENO: result: $CC" >&5
1723 echo "${ECHO_T}$CC" >&6
1724 else
1725 echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1729 test -n "$CC" && break
1730 done
1732 if test -z "$CC"; then
1733 ac_ct_CC=$CC
1734 for ac_prog in cl
1736 # Extract the first word of "$ac_prog", so it can be a program name with args.
1737 set dummy $ac_prog; ac_word=$2
1738 echo "$as_me:$LINENO: checking for $ac_word" >&5
1739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1740 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1741 echo $ECHO_N "(cached) $ECHO_C" >&6
1742 else
1743 if test -n "$ac_ct_CC"; then
1744 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1745 else
1746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747 for as_dir in $PATH
1749 IFS=$as_save_IFS
1750 test -z "$as_dir" && as_dir=.
1751 for ac_exec_ext in '' $ac_executable_extensions; do
1752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1753 ac_cv_prog_ac_ct_CC="$ac_prog"
1754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1755 break 2
1757 done
1758 done
1762 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1763 if test -n "$ac_ct_CC"; then
1764 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1765 echo "${ECHO_T}$ac_ct_CC" >&6
1766 else
1767 echo "$as_me:$LINENO: result: no" >&5
1768 echo "${ECHO_T}no" >&6
1771 test -n "$ac_ct_CC" && break
1772 done
1774 CC=$ac_ct_CC
1780 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1781 See \`config.log' for more details." >&5
1782 echo "$as_me: error: no acceptable C compiler found in \$PATH
1783 See \`config.log' for more details." >&2;}
1784 { (exit 1); exit 1; }; }
1786 # Provide some information about the compiler.
1787 echo "$as_me:$LINENO:" \
1788 "checking for C compiler version" >&5
1789 ac_compiler=`set X $ac_compile; echo $2`
1790 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1791 (eval $ac_compiler --version </dev/null >&5) 2>&5
1792 ac_status=$?
1793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794 (exit $ac_status); }
1795 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1796 (eval $ac_compiler -v </dev/null >&5) 2>&5
1797 ac_status=$?
1798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1799 (exit $ac_status); }
1800 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1801 (eval $ac_compiler -V </dev/null >&5) 2>&5
1802 ac_status=$?
1803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804 (exit $ac_status); }
1806 cat >conftest.$ac_ext <<_ACEOF
1807 #line $LINENO "configure"
1808 /* confdefs.h. */
1809 _ACEOF
1810 cat confdefs.h >>conftest.$ac_ext
1811 cat >>conftest.$ac_ext <<_ACEOF
1812 /* end confdefs.h. */
1815 main ()
1819 return 0;
1821 _ACEOF
1822 ac_clean_files_save=$ac_clean_files
1823 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1824 # Try to create an executable without -o first, disregard a.out.
1825 # It will help us diagnose broken compilers, and finding out an intuition
1826 # of exeext.
1827 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1828 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1829 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1830 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1831 (eval $ac_link_default) 2>&5
1832 ac_status=$?
1833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834 (exit $ac_status); }; then
1835 # Find the output, starting from the most likely. This scheme is
1836 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1837 # resort.
1839 # Be careful to initialize this variable, since it used to be cached.
1840 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1841 ac_cv_exeext=
1842 # b.out is created by i960 compilers.
1843 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1845 test -f "$ac_file" || continue
1846 case $ac_file in
1847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1849 conftest.$ac_ext )
1850 # This is the source file.
1852 [ab].out )
1853 # We found the default executable, but exeext='' is most
1854 # certainly right.
1855 break;;
1856 *.* )
1857 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1858 # FIXME: I believe we export ac_cv_exeext for Libtool,
1859 # but it would be cool to find out if it's true. Does anybody
1860 # maintain Libtool? --akim.
1861 export ac_cv_exeext
1862 break;;
1864 break;;
1865 esac
1866 done
1867 else
1868 echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1871 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1872 See \`config.log' for more details." >&5
1873 echo "$as_me: error: C compiler cannot create executables
1874 See \`config.log' for more details." >&2;}
1875 { (exit 77); exit 77; }; }
1878 ac_exeext=$ac_cv_exeext
1879 echo "$as_me:$LINENO: result: $ac_file" >&5
1880 echo "${ECHO_T}$ac_file" >&6
1882 # Check the compiler produces executables we can run. If not, either
1883 # the compiler is broken, or we cross compile.
1884 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1885 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1886 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1887 # If not cross compiling, check that we can run a simple program.
1888 if test "$cross_compiling" != yes; then
1889 if { ac_try='./$ac_file'
1890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1891 (eval $ac_try) 2>&5
1892 ac_status=$?
1893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894 (exit $ac_status); }; }; then
1895 cross_compiling=no
1896 else
1897 if test "$cross_compiling" = maybe; then
1898 cross_compiling=yes
1899 else
1900 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1901 If you meant to cross compile, use \`--host'.
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: cannot run C compiled programs.
1904 If you meant to cross compile, use \`--host'.
1905 See \`config.log' for more details." >&2;}
1906 { (exit 1); exit 1; }; }
1910 echo "$as_me:$LINENO: result: yes" >&5
1911 echo "${ECHO_T}yes" >&6
1913 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1914 ac_clean_files=$ac_clean_files_save
1915 # Check the compiler produces executables we can run. If not, either
1916 # the compiler is broken, or we cross compile.
1917 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1918 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1919 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1920 echo "${ECHO_T}$cross_compiling" >&6
1922 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1923 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1925 (eval $ac_link) 2>&5
1926 ac_status=$?
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }; then
1929 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1930 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1931 # work properly (i.e., refer to `conftest.exe'), while it won't with
1932 # `rm'.
1933 for ac_file in conftest.exe conftest conftest.*; do
1934 test -f "$ac_file" || continue
1935 case $ac_file in
1936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1937 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1938 export ac_cv_exeext
1939 break;;
1940 * ) break;;
1941 esac
1942 done
1943 else
1944 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1945 See \`config.log' for more details." >&5
1946 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1947 See \`config.log' for more details." >&2;}
1948 { (exit 1); exit 1; }; }
1951 rm -f conftest$ac_cv_exeext
1952 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1953 echo "${ECHO_T}$ac_cv_exeext" >&6
1955 rm -f conftest.$ac_ext
1956 EXEEXT=$ac_cv_exeext
1957 ac_exeext=$EXEEXT
1958 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1959 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1960 if test "${ac_cv_objext+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1962 else
1963 cat >conftest.$ac_ext <<_ACEOF
1964 #line $LINENO "configure"
1965 /* confdefs.h. */
1966 _ACEOF
1967 cat confdefs.h >>conftest.$ac_ext
1968 cat >>conftest.$ac_ext <<_ACEOF
1969 /* end confdefs.h. */
1972 main ()
1976 return 0;
1978 _ACEOF
1979 rm -f conftest.o conftest.obj
1980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1981 (eval $ac_compile) 2>&5
1982 ac_status=$?
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; then
1985 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1986 case $ac_file in
1987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1988 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1989 break;;
1990 esac
1991 done
1992 else
1993 echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1996 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1997 See \`config.log' for more details." >&5
1998 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1999 See \`config.log' for more details." >&2;}
2000 { (exit 1); exit 1; }; }
2003 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2005 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2006 echo "${ECHO_T}$ac_cv_objext" >&6
2007 OBJEXT=$ac_cv_objext
2008 ac_objext=$OBJEXT
2009 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2010 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2011 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014 cat >conftest.$ac_ext <<_ACEOF
2015 #line $LINENO "configure"
2016 /* confdefs.h. */
2017 _ACEOF
2018 cat confdefs.h >>conftest.$ac_ext
2019 cat >>conftest.$ac_ext <<_ACEOF
2020 /* end confdefs.h. */
2023 main ()
2025 #ifndef __GNUC__
2026 choke me
2027 #endif
2030 return 0;
2032 _ACEOF
2033 rm -f conftest.$ac_objext
2034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2035 (eval $ac_compile) 2>&5
2036 ac_status=$?
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); } &&
2039 { ac_try='test -s conftest.$ac_objext'
2040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2041 (eval $ac_try) 2>&5
2042 ac_status=$?
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }; }; then
2045 ac_compiler_gnu=yes
2046 else
2047 echo "$as_me: failed program was:" >&5
2048 sed 's/^/| /' conftest.$ac_ext >&5
2050 ac_compiler_gnu=no
2052 rm -f conftest.$ac_objext conftest.$ac_ext
2053 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2056 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2057 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2058 GCC=`test $ac_compiler_gnu = yes && echo yes`
2059 ac_test_CFLAGS=${CFLAGS+set}
2060 ac_save_CFLAGS=$CFLAGS
2061 CFLAGS="-g"
2062 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2063 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2064 if test "${ac_cv_prog_cc_g+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067 cat >conftest.$ac_ext <<_ACEOF
2068 #line $LINENO "configure"
2069 /* confdefs.h. */
2070 _ACEOF
2071 cat confdefs.h >>conftest.$ac_ext
2072 cat >>conftest.$ac_ext <<_ACEOF
2073 /* end confdefs.h. */
2076 main ()
2080 return 0;
2082 _ACEOF
2083 rm -f conftest.$ac_objext
2084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2085 (eval $ac_compile) 2>&5
2086 ac_status=$?
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); } &&
2089 { ac_try='test -s conftest.$ac_objext'
2090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091 (eval $ac_try) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; }; then
2095 ac_cv_prog_cc_g=yes
2096 else
2097 echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2100 ac_cv_prog_cc_g=no
2102 rm -f conftest.$ac_objext conftest.$ac_ext
2104 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2105 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2106 if test "$ac_test_CFLAGS" = set; then
2107 CFLAGS=$ac_save_CFLAGS
2108 elif test $ac_cv_prog_cc_g = yes; then
2109 if test "$GCC" = yes; then
2110 CFLAGS="-g -O2"
2111 else
2112 CFLAGS="-g"
2114 else
2115 if test "$GCC" = yes; then
2116 CFLAGS="-O2"
2117 else
2118 CFLAGS=
2121 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2122 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2123 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126 ac_cv_prog_cc_stdc=no
2127 ac_save_CC=$CC
2128 cat >conftest.$ac_ext <<_ACEOF
2129 #line $LINENO "configure"
2130 /* confdefs.h. */
2131 _ACEOF
2132 cat confdefs.h >>conftest.$ac_ext
2133 cat >>conftest.$ac_ext <<_ACEOF
2134 /* end confdefs.h. */
2135 #include <stdarg.h>
2136 #include <stdio.h>
2137 #include <sys/types.h>
2138 #include <sys/stat.h>
2139 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2140 struct buf { int x; };
2141 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2142 static char *e (p, i)
2143 char **p;
2144 int i;
2146 return p[i];
2148 static char *f (char * (*g) (char **, int), char **p, ...)
2150 char *s;
2151 va_list v;
2152 va_start (v,p);
2153 s = g (p, va_arg (v,int));
2154 va_end (v);
2155 return s;
2157 int test (int i, double x);
2158 struct s1 {int (*f) (int a);};
2159 struct s2 {int (*f) (double a);};
2160 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2161 int argc;
2162 char **argv;
2164 main ()
2166 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2168 return 0;
2170 _ACEOF
2171 # Don't try gcc -ansi; that turns off useful extensions and
2172 # breaks some systems' header files.
2173 # AIX -qlanglvl=ansi
2174 # Ultrix and OSF/1 -std1
2175 # HP-UX 10.20 and later -Ae
2176 # HP-UX older versions -Aa -D_HPUX_SOURCE
2177 # SVR4 -Xc -D__EXTENSIONS__
2178 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2180 CC="$ac_save_CC $ac_arg"
2181 rm -f conftest.$ac_objext
2182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183 (eval $ac_compile) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); } &&
2187 { ac_try='test -s conftest.$ac_objext'
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 (eval $ac_try) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; }; then
2193 ac_cv_prog_cc_stdc=$ac_arg
2194 break
2195 else
2196 echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2200 rm -f conftest.$ac_objext
2201 done
2202 rm -f conftest.$ac_ext conftest.$ac_objext
2203 CC=$ac_save_CC
2207 case "x$ac_cv_prog_cc_stdc" in
2208 x|xno)
2209 echo "$as_me:$LINENO: result: none needed" >&5
2210 echo "${ECHO_T}none needed" >&6 ;;
2212 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2213 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2214 CC="$CC $ac_cv_prog_cc_stdc" ;;
2215 esac
2217 # Some people use a C++ compiler to compile C. Since we use `exit',
2218 # in C++ we need to declare it. In case someone uses the same compiler
2219 # for both compiling C and C++ we need to have the C++ compiler decide
2220 # the declaration of exit, since it's the most demanding environment.
2221 cat >conftest.$ac_ext <<_ACEOF
2222 #ifndef __cplusplus
2223 choke me
2224 #endif
2225 _ACEOF
2226 rm -f conftest.$ac_objext
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
2232 { ac_try='test -s conftest.$ac_objext'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 (eval $ac_try) 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; }; then
2238 for ac_declaration in \
2239 '' \
2240 'extern "C" void std::exit (int) throw (); using std::exit;' \
2241 'extern "C" void std::exit (int); using std::exit;' \
2242 'extern "C" void exit (int) throw ();' \
2243 'extern "C" void exit (int);' \
2244 'void exit (int);'
2246 cat >conftest.$ac_ext <<_ACEOF
2247 #line $LINENO "configure"
2248 /* confdefs.h. */
2249 _ACEOF
2250 cat confdefs.h >>conftest.$ac_ext
2251 cat >>conftest.$ac_ext <<_ACEOF
2252 /* end confdefs.h. */
2253 $ac_declaration
2254 #include <stdlib.h>
2256 main ()
2258 exit (42);
2260 return 0;
2262 _ACEOF
2263 rm -f conftest.$ac_objext
2264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265 (eval $ac_compile) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); } &&
2269 { ac_try='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 (eval $ac_try) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2276 else
2277 echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2280 continue
2282 rm -f conftest.$ac_objext conftest.$ac_ext
2283 cat >conftest.$ac_ext <<_ACEOF
2284 #line $LINENO "configure"
2285 /* confdefs.h. */
2286 _ACEOF
2287 cat confdefs.h >>conftest.$ac_ext
2288 cat >>conftest.$ac_ext <<_ACEOF
2289 /* end confdefs.h. */
2290 $ac_declaration
2292 main ()
2294 exit (42);
2296 return 0;
2298 _ACEOF
2299 rm -f conftest.$ac_objext
2300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2301 (eval $ac_compile) 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); } &&
2305 { ac_try='test -s conftest.$ac_objext'
2306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307 (eval $ac_try) 2>&5
2308 ac_status=$?
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; }; then
2311 break
2312 else
2313 echo "$as_me: failed program was:" >&5
2314 sed 's/^/| /' conftest.$ac_ext >&5
2317 rm -f conftest.$ac_objext conftest.$ac_ext
2318 done
2319 rm -f conftest*
2320 if test -n "$ac_declaration"; then
2321 echo '#ifdef __cplusplus' >>confdefs.h
2322 echo $ac_declaration >>confdefs.h
2323 echo '#endif' >>confdefs.h
2326 else
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2331 rm -f conftest.$ac_objext conftest.$ac_ext
2332 ac_ext=c
2333 ac_cpp='$CPP $CPPFLAGS'
2334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2338 ac_ext=c
2339 ac_cpp='$CPP $CPPFLAGS'
2340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2343 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2344 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2345 # On Suns, sometimes $CPP names a directory.
2346 if test -n "$CPP" && test -d "$CPP"; then
2347 CPP=
2349 if test -z "$CPP"; then
2350 if test "${ac_cv_prog_CPP+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353 # Double quotes because CPP needs to be expanded
2354 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2356 ac_preproc_ok=false
2357 for ac_c_preproc_warn_flag in '' yes
2359 # Use a header file that comes with gcc, so configuring glibc
2360 # with a fresh cross-compiler works.
2361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2362 # <limits.h> exists even on freestanding compilers.
2363 # On the NeXT, cc -E runs the code through the compiler's parser,
2364 # not just through cpp. "Syntax error" is here to catch this case.
2365 cat >conftest.$ac_ext <<_ACEOF
2366 #line $LINENO "configure"
2367 /* confdefs.h. */
2368 _ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2372 #ifdef __STDC__
2373 # include <limits.h>
2374 #else
2375 # include <assert.h>
2376 #endif
2377 Syntax error
2378 _ACEOF
2379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2381 ac_status=$?
2382 grep -v '^ *+' conftest.er1 >conftest.err
2383 rm -f conftest.er1
2384 cat conftest.err >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); } >/dev/null; then
2387 if test -s conftest.err; then
2388 ac_cpp_err=$ac_c_preproc_warn_flag
2389 else
2390 ac_cpp_err=
2392 else
2393 ac_cpp_err=yes
2395 if test -z "$ac_cpp_err"; then
2397 else
2398 echo "$as_me: failed program was:" >&5
2399 sed 's/^/| /' conftest.$ac_ext >&5
2401 # Broken: fails on valid input.
2402 continue
2404 rm -f conftest.err conftest.$ac_ext
2406 # OK, works on sane cases. Now check whether non-existent headers
2407 # can be detected and how.
2408 cat >conftest.$ac_ext <<_ACEOF
2409 #line $LINENO "configure"
2410 /* confdefs.h. */
2411 _ACEOF
2412 cat confdefs.h >>conftest.$ac_ext
2413 cat >>conftest.$ac_ext <<_ACEOF
2414 /* end confdefs.h. */
2415 #include <ac_nonexistent.h>
2416 _ACEOF
2417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2419 ac_status=$?
2420 grep -v '^ *+' conftest.er1 >conftest.err
2421 rm -f conftest.er1
2422 cat conftest.err >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); } >/dev/null; then
2425 if test -s conftest.err; then
2426 ac_cpp_err=$ac_c_preproc_warn_flag
2427 else
2428 ac_cpp_err=
2430 else
2431 ac_cpp_err=yes
2433 if test -z "$ac_cpp_err"; then
2434 # Broken: success on invalid input.
2435 continue
2436 else
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2440 # Passes both tests.
2441 ac_preproc_ok=:
2442 break
2444 rm -f conftest.err conftest.$ac_ext
2446 done
2447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2448 rm -f conftest.err conftest.$ac_ext
2449 if $ac_preproc_ok; then
2450 break
2453 done
2454 ac_cv_prog_CPP=$CPP
2457 CPP=$ac_cv_prog_CPP
2458 else
2459 ac_cv_prog_CPP=$CPP
2461 echo "$as_me:$LINENO: result: $CPP" >&5
2462 echo "${ECHO_T}$CPP" >&6
2463 ac_preproc_ok=false
2464 for ac_c_preproc_warn_flag in '' yes
2466 # Use a header file that comes with gcc, so configuring glibc
2467 # with a fresh cross-compiler works.
2468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2469 # <limits.h> exists even on freestanding compilers.
2470 # On the NeXT, cc -E runs the code through the compiler's parser,
2471 # not just through cpp. "Syntax error" is here to catch this case.
2472 cat >conftest.$ac_ext <<_ACEOF
2473 #line $LINENO "configure"
2474 /* confdefs.h. */
2475 _ACEOF
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h. */
2479 #ifdef __STDC__
2480 # include <limits.h>
2481 #else
2482 # include <assert.h>
2483 #endif
2484 Syntax error
2485 _ACEOF
2486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2488 ac_status=$?
2489 grep -v '^ *+' conftest.er1 >conftest.err
2490 rm -f conftest.er1
2491 cat conftest.err >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } >/dev/null; then
2494 if test -s conftest.err; then
2495 ac_cpp_err=$ac_c_preproc_warn_flag
2496 else
2497 ac_cpp_err=
2499 else
2500 ac_cpp_err=yes
2502 if test -z "$ac_cpp_err"; then
2504 else
2505 echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2508 # Broken: fails on valid input.
2509 continue
2511 rm -f conftest.err conftest.$ac_ext
2513 # OK, works on sane cases. Now check whether non-existent headers
2514 # can be detected and how.
2515 cat >conftest.$ac_ext <<_ACEOF
2516 #line $LINENO "configure"
2517 /* confdefs.h. */
2518 _ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2522 #include <ac_nonexistent.h>
2523 _ACEOF
2524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2526 ac_status=$?
2527 grep -v '^ *+' conftest.er1 >conftest.err
2528 rm -f conftest.er1
2529 cat conftest.err >&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); } >/dev/null; then
2532 if test -s conftest.err; then
2533 ac_cpp_err=$ac_c_preproc_warn_flag
2534 else
2535 ac_cpp_err=
2537 else
2538 ac_cpp_err=yes
2540 if test -z "$ac_cpp_err"; then
2541 # Broken: success on invalid input.
2542 continue
2543 else
2544 echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2547 # Passes both tests.
2548 ac_preproc_ok=:
2549 break
2551 rm -f conftest.err conftest.$ac_ext
2553 done
2554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2555 rm -f conftest.err conftest.$ac_ext
2556 if $ac_preproc_ok; then
2558 else
2559 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2560 See \`config.log' for more details." >&5
2561 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2562 See \`config.log' for more details." >&2;}
2563 { (exit 1); exit 1; }; }
2566 ac_ext=c
2567 ac_cpp='$CPP $CPPFLAGS'
2568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2573 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2574 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2575 if test "${wine_cv_toolsdir+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578 if test -z "$with_wine_tools"; then
2579 if test "$cross_compiling" = "yes"; then
2580 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2581 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2582 { (exit 1); exit 1; }; }
2583 else
2584 wine_cv_toolsdir="\$(TOPOBJDIR)"
2586 elif test -d "$with_wine_tools/tools/winebuild"; then
2587 case $with_wine_tools in
2588 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2589 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2590 esac
2591 else
2592 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2593 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2594 { (exit 1); exit 1; }; }
2597 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2598 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2599 TOOLSDIR=$wine_cv_toolsdir
2604 echo "$as_me:$LINENO: checking for X" >&5
2605 echo $ECHO_N "checking for X... $ECHO_C" >&6
2608 # Check whether --with-x or --without-x was given.
2609 if test "${with_x+set}" = set; then
2610 withval="$with_x"
2613 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2614 if test "x$with_x" = xno; then
2615 # The user explicitly disabled X.
2616 have_x=disabled
2617 else
2618 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2619 # Both variables are already set.
2620 have_x=yes
2621 else
2622 if test "${ac_cv_have_x+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625 # One or both of the vars are not set, and there is no cached value.
2626 ac_x_includes=no ac_x_libraries=no
2627 rm -fr conftest.dir
2628 if mkdir conftest.dir; then
2629 cd conftest.dir
2630 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2631 cat >Imakefile <<'_ACEOF'
2632 acfindx:
2633 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2634 _ACEOF
2635 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2636 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2637 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2638 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2639 for ac_extension in a so sl; do
2640 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2641 test -f $ac_im_libdir/libX11.$ac_extension; then
2642 ac_im_usrlibdir=$ac_im_libdir; break
2644 done
2645 # Screen out bogus values from the imake configuration. They are
2646 # bogus both because they are the default anyway, and because
2647 # using them would break gcc on systems where it needs fixed includes.
2648 case $ac_im_incroot in
2649 /usr/include) ;;
2650 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2651 esac
2652 case $ac_im_usrlibdir in
2653 /usr/lib | /lib) ;;
2654 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2655 esac
2657 cd ..
2658 rm -fr conftest.dir
2661 # Standard set of common directories for X headers.
2662 # Check X11 before X11Rn because it is often a symlink to the current release.
2663 ac_x_header_dirs='
2664 /usr/X11/include
2665 /usr/X11R6/include
2666 /usr/X11R5/include
2667 /usr/X11R4/include
2669 /usr/include/X11
2670 /usr/include/X11R6
2671 /usr/include/X11R5
2672 /usr/include/X11R4
2674 /usr/local/X11/include
2675 /usr/local/X11R6/include
2676 /usr/local/X11R5/include
2677 /usr/local/X11R4/include
2679 /usr/local/include/X11
2680 /usr/local/include/X11R6
2681 /usr/local/include/X11R5
2682 /usr/local/include/X11R4
2684 /usr/X386/include
2685 /usr/x386/include
2686 /usr/XFree86/include/X11
2688 /usr/include
2689 /usr/local/include
2690 /usr/unsupported/include
2691 /usr/athena/include
2692 /usr/local/x11r5/include
2693 /usr/lpp/Xamples/include
2695 /usr/openwin/include
2696 /usr/openwin/share/include'
2698 if test "$ac_x_includes" = no; then
2699 # Guess where to find include files, by looking for Intrinsic.h.
2700 # First, try using that file with no special directory specified.
2701 cat >conftest.$ac_ext <<_ACEOF
2702 #line $LINENO "configure"
2703 /* confdefs.h. */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2708 #include <X11/Intrinsic.h>
2709 _ACEOF
2710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2712 ac_status=$?
2713 grep -v '^ *+' conftest.er1 >conftest.err
2714 rm -f conftest.er1
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } >/dev/null; then
2718 if test -s conftest.err; then
2719 ac_cpp_err=$ac_c_preproc_warn_flag
2720 else
2721 ac_cpp_err=
2723 else
2724 ac_cpp_err=yes
2726 if test -z "$ac_cpp_err"; then
2727 # We can compile using X headers with no special include directory.
2728 ac_x_includes=
2729 else
2730 echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2733 for ac_dir in $ac_x_header_dirs; do
2734 if test -r "$ac_dir/X11/Intrinsic.h"; then
2735 ac_x_includes=$ac_dir
2736 break
2738 done
2740 rm -f conftest.err conftest.$ac_ext
2741 fi # $ac_x_includes = no
2743 if test "$ac_x_libraries" = no; then
2744 # Check for the libraries.
2745 # See if we find them without any special options.
2746 # Don't add to $LIBS permanently.
2747 ac_save_LIBS=$LIBS
2748 LIBS="-lXt $LIBS"
2749 cat >conftest.$ac_ext <<_ACEOF
2750 #line $LINENO "configure"
2751 /* confdefs.h. */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2756 #include <X11/Intrinsic.h>
2758 main ()
2760 XtMalloc (0)
2762 return 0;
2764 _ACEOF
2765 rm -f conftest.$ac_objext conftest$ac_exeext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2767 (eval $ac_link) 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } &&
2771 { ac_try='test -s conftest$ac_exeext'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 (eval $ac_try) 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; }; then
2777 LIBS=$ac_save_LIBS
2778 # We can link X programs with no special library path.
2779 ac_x_libraries=
2780 else
2781 echo "$as_me: failed program was:" >&5
2782 sed 's/^/| /' conftest.$ac_ext >&5
2784 LIBS=$ac_save_LIBS
2785 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2787 # Don't even attempt the hair of trying to link an X program!
2788 for ac_extension in a so sl; do
2789 if test -r $ac_dir/libXt.$ac_extension; then
2790 ac_x_libraries=$ac_dir
2791 break 2
2793 done
2794 done
2796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2797 fi # $ac_x_libraries = no
2799 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2800 # Didn't find X anywhere. Cache the known absence of X.
2801 ac_cv_have_x="have_x=no"
2802 else
2803 # Record where we found X for the cache.
2804 ac_cv_have_x="have_x=yes \
2805 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2810 eval "$ac_cv_have_x"
2811 fi # $with_x != no
2813 if test "$have_x" != yes; then
2814 echo "$as_me:$LINENO: result: $have_x" >&5
2815 echo "${ECHO_T}$have_x" >&6
2816 no_x=yes
2817 else
2818 # If each of the values was on the command line, it overrides each guess.
2819 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2820 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2821 # Update the cache value to reflect the command line values.
2822 ac_cv_have_x="have_x=yes \
2823 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2824 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2825 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2828 if test "$no_x" = yes; then
2829 # Not all programs may use this symbol, but it does not hurt to define it.
2831 cat >>confdefs.h <<\_ACEOF
2832 #define X_DISPLAY_MISSING 1
2833 _ACEOF
2835 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2836 else
2837 if test -n "$x_includes"; then
2838 X_CFLAGS="$X_CFLAGS -I$x_includes"
2841 # It would also be nice to do this for all -L options, not just this one.
2842 if test -n "$x_libraries"; then
2843 X_LIBS="$X_LIBS -L$x_libraries"
2844 # For Solaris; some versions of Sun CC require a space after -R and
2845 # others require no space. Words are not sufficient . . . .
2846 case `(uname -sr) 2>/dev/null` in
2847 "SunOS 5"*)
2848 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2849 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2850 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2851 cat >conftest.$ac_ext <<_ACEOF
2852 #line $LINENO "configure"
2853 /* confdefs.h. */
2854 _ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2860 main ()
2864 return 0;
2866 _ACEOF
2867 rm -f conftest.$ac_objext conftest$ac_exeext
2868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2869 (eval $ac_link) 2>&5
2870 ac_status=$?
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); } &&
2873 { ac_try='test -s conftest$ac_exeext'
2874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 (eval $ac_try) 2>&5
2876 ac_status=$?
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }; }; then
2879 ac_R_nospace=yes
2880 else
2881 echo "$as_me: failed program was:" >&5
2882 sed 's/^/| /' conftest.$ac_ext >&5
2884 ac_R_nospace=no
2886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2887 if test $ac_R_nospace = yes; then
2888 echo "$as_me:$LINENO: result: no" >&5
2889 echo "${ECHO_T}no" >&6
2890 X_LIBS="$X_LIBS -R$x_libraries"
2891 else
2892 LIBS="$ac_xsave_LIBS -R $x_libraries"
2893 cat >conftest.$ac_ext <<_ACEOF
2894 #line $LINENO "configure"
2895 /* confdefs.h. */
2896 _ACEOF
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h. */
2902 main ()
2906 return 0;
2908 _ACEOF
2909 rm -f conftest.$ac_objext conftest$ac_exeext
2910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2911 (eval $ac_link) 2>&5
2912 ac_status=$?
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
2915 { ac_try='test -s conftest$ac_exeext'
2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 (eval $ac_try) 2>&5
2918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; }; then
2921 ac_R_space=yes
2922 else
2923 echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2926 ac_R_space=no
2928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2929 if test $ac_R_space = yes; then
2930 echo "$as_me:$LINENO: result: yes" >&5
2931 echo "${ECHO_T}yes" >&6
2932 X_LIBS="$X_LIBS -R $x_libraries"
2933 else
2934 echo "$as_me:$LINENO: result: neither works" >&5
2935 echo "${ECHO_T}neither works" >&6
2938 LIBS=$ac_xsave_LIBS
2939 esac
2942 # Check for system-dependent libraries X programs must link with.
2943 # Do this before checking for the system-independent R6 libraries
2944 # (-lICE), since we may need -lsocket or whatever for X linking.
2946 if test "$ISC" = yes; then
2947 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2948 else
2949 # Martyn Johnson says this is needed for Ultrix, if the X
2950 # libraries were built with DECnet support. And Karl Berry says
2951 # the Alpha needs dnet_stub (dnet does not exist).
2952 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2953 cat >conftest.$ac_ext <<_ACEOF
2954 #line $LINENO "configure"
2955 /* confdefs.h. */
2956 _ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2961 /* Override any gcc2 internal prototype to avoid an error. */
2962 #ifdef __cplusplus
2963 extern "C"
2964 #endif
2965 /* We use char because int might match the return type of a gcc2
2966 builtin and then its argument prototype would still apply. */
2967 char XOpenDisplay ();
2969 main ()
2971 XOpenDisplay ();
2973 return 0;
2975 _ACEOF
2976 rm -f conftest.$ac_objext conftest$ac_exeext
2977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2978 (eval $ac_link) 2>&5
2979 ac_status=$?
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } &&
2982 { ac_try='test -s conftest$ac_exeext'
2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984 (eval $ac_try) 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; }; then
2989 else
2990 echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2993 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2994 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2995 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 else
2998 ac_check_lib_save_LIBS=$LIBS
2999 LIBS="-ldnet $LIBS"
3000 cat >conftest.$ac_ext <<_ACEOF
3001 #line $LINENO "configure"
3002 /* confdefs.h. */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3008 /* Override any gcc2 internal prototype to avoid an error. */
3009 #ifdef __cplusplus
3010 extern "C"
3011 #endif
3012 /* We use char because int might match the return type of a gcc2
3013 builtin and then its argument prototype would still apply. */
3014 char dnet_ntoa ();
3016 main ()
3018 dnet_ntoa ();
3020 return 0;
3022 _ACEOF
3023 rm -f conftest.$ac_objext conftest$ac_exeext
3024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3025 (eval $ac_link) 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } &&
3029 { ac_try='test -s conftest$ac_exeext'
3030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031 (eval $ac_try) 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; }; then
3035 ac_cv_lib_dnet_dnet_ntoa=yes
3036 else
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3040 ac_cv_lib_dnet_dnet_ntoa=no
3042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3043 LIBS=$ac_check_lib_save_LIBS
3045 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3046 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3047 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3048 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3051 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3052 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3053 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3054 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 else
3057 ac_check_lib_save_LIBS=$LIBS
3058 LIBS="-ldnet_stub $LIBS"
3059 cat >conftest.$ac_ext <<_ACEOF
3060 #line $LINENO "configure"
3061 /* confdefs.h. */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3067 /* Override any gcc2 internal prototype to avoid an error. */
3068 #ifdef __cplusplus
3069 extern "C"
3070 #endif
3071 /* We use char because int might match the return type of a gcc2
3072 builtin and then its argument prototype would still apply. */
3073 char dnet_ntoa ();
3075 main ()
3077 dnet_ntoa ();
3079 return 0;
3081 _ACEOF
3082 rm -f conftest.$ac_objext conftest$ac_exeext
3083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3084 (eval $ac_link) 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } &&
3088 { ac_try='test -s conftest$ac_exeext'
3089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090 (eval $ac_try) 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
3094 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3095 else
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 ac_cv_lib_dnet_stub_dnet_ntoa=no
3101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3102 LIBS=$ac_check_lib_save_LIBS
3104 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3105 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3106 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3107 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3113 LIBS="$ac_xsave_LIBS"
3115 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3116 # to get the SysV transport functions.
3117 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3118 # needs -lnsl.
3119 # The nsl library prevents programs from opening the X display
3120 # on Irix 5.2, according to T.E. Dickey.
3121 # The functions gethostbyname, getservbyname, and inet_addr are
3122 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3123 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3124 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3125 if test "${ac_cv_func_gethostbyname+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 else
3128 cat >conftest.$ac_ext <<_ACEOF
3129 #line $LINENO "configure"
3130 /* confdefs.h. */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3135 /* System header to define __stub macros and hopefully few prototypes,
3136 which can conflict with char gethostbyname (); below.
3137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3138 <limits.h> exists even on freestanding compilers. */
3139 #ifdef __STDC__
3140 # include <limits.h>
3141 #else
3142 # include <assert.h>
3143 #endif
3144 /* Override any gcc2 internal prototype to avoid an error. */
3145 #ifdef __cplusplus
3146 extern "C"
3148 #endif
3149 /* We use char because int might match the return type of a gcc2
3150 builtin and then its argument prototype would still apply. */
3151 char gethostbyname ();
3152 /* The GNU C library defines this for functions which it implements
3153 to always fail with ENOSYS. Some functions are actually named
3154 something starting with __ and the normal name is an alias. */
3155 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3156 choke me
3157 #else
3158 char (*f) () = gethostbyname;
3159 #endif
3160 #ifdef __cplusplus
3162 #endif
3165 main ()
3167 return f != gethostbyname;
3169 return 0;
3171 _ACEOF
3172 rm -f conftest.$ac_objext conftest$ac_exeext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3174 (eval $ac_link) 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } &&
3178 { ac_try='test -s conftest$ac_exeext'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 (eval $ac_try) 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3184 ac_cv_func_gethostbyname=yes
3185 else
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3189 ac_cv_func_gethostbyname=no
3191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3193 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3194 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3196 if test $ac_cv_func_gethostbyname = no; then
3197 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3198 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3199 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202 ac_check_lib_save_LIBS=$LIBS
3203 LIBS="-lnsl $LIBS"
3204 cat >conftest.$ac_ext <<_ACEOF
3205 #line $LINENO "configure"
3206 /* confdefs.h. */
3207 _ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3212 /* Override any gcc2 internal prototype to avoid an error. */
3213 #ifdef __cplusplus
3214 extern "C"
3215 #endif
3216 /* We use char because int might match the return type of a gcc2
3217 builtin and then its argument prototype would still apply. */
3218 char gethostbyname ();
3220 main ()
3222 gethostbyname ();
3224 return 0;
3226 _ACEOF
3227 rm -f conftest.$ac_objext conftest$ac_exeext
3228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3229 (eval $ac_link) 2>&5
3230 ac_status=$?
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } &&
3233 { ac_try='test -s conftest$ac_exeext'
3234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235 (eval $ac_try) 2>&5
3236 ac_status=$?
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; }; then
3239 ac_cv_lib_nsl_gethostbyname=yes
3240 else
3241 echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3244 ac_cv_lib_nsl_gethostbyname=no
3246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3247 LIBS=$ac_check_lib_save_LIBS
3249 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3250 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3251 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3252 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3255 if test $ac_cv_lib_nsl_gethostbyname = no; then
3256 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3257 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3258 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261 ac_check_lib_save_LIBS=$LIBS
3262 LIBS="-lbsd $LIBS"
3263 cat >conftest.$ac_ext <<_ACEOF
3264 #line $LINENO "configure"
3265 /* confdefs.h. */
3266 _ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3271 /* Override any gcc2 internal prototype to avoid an error. */
3272 #ifdef __cplusplus
3273 extern "C"
3274 #endif
3275 /* We use char because int might match the return type of a gcc2
3276 builtin and then its argument prototype would still apply. */
3277 char gethostbyname ();
3279 main ()
3281 gethostbyname ();
3283 return 0;
3285 _ACEOF
3286 rm -f conftest.$ac_objext conftest$ac_exeext
3287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3288 (eval $ac_link) 2>&5
3289 ac_status=$?
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } &&
3292 { ac_try='test -s conftest$ac_exeext'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294 (eval $ac_try) 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; }; then
3298 ac_cv_lib_bsd_gethostbyname=yes
3299 else
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3303 ac_cv_lib_bsd_gethostbyname=no
3305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3306 LIBS=$ac_check_lib_save_LIBS
3308 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3309 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3310 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3311 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3317 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3318 # socket/setsockopt and other routines are undefined under SCO ODT
3319 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3320 # on later versions), says Simon Leinen: it contains gethostby*
3321 # variants that don't use the name server (or something). -lsocket
3322 # must be given before -lnsl if both are needed. We assume that
3323 # if connect needs -lnsl, so does gethostbyname.
3324 echo "$as_me:$LINENO: checking for connect" >&5
3325 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3326 if test "${ac_cv_func_connect+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329 cat >conftest.$ac_ext <<_ACEOF
3330 #line $LINENO "configure"
3331 /* confdefs.h. */
3332 _ACEOF
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h. */
3336 /* System header to define __stub macros and hopefully few prototypes,
3337 which can conflict with char connect (); below.
3338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3339 <limits.h> exists even on freestanding compilers. */
3340 #ifdef __STDC__
3341 # include <limits.h>
3342 #else
3343 # include <assert.h>
3344 #endif
3345 /* Override any gcc2 internal prototype to avoid an error. */
3346 #ifdef __cplusplus
3347 extern "C"
3349 #endif
3350 /* We use char because int might match the return type of a gcc2
3351 builtin and then its argument prototype would still apply. */
3352 char connect ();
3353 /* The GNU C library defines this for functions which it implements
3354 to always fail with ENOSYS. Some functions are actually named
3355 something starting with __ and the normal name is an alias. */
3356 #if defined (__stub_connect) || defined (__stub___connect)
3357 choke me
3358 #else
3359 char (*f) () = connect;
3360 #endif
3361 #ifdef __cplusplus
3363 #endif
3366 main ()
3368 return f != connect;
3370 return 0;
3372 _ACEOF
3373 rm -f conftest.$ac_objext conftest$ac_exeext
3374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3375 (eval $ac_link) 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } &&
3379 { ac_try='test -s conftest$ac_exeext'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 (eval $ac_try) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
3385 ac_cv_func_connect=yes
3386 else
3387 echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3390 ac_cv_func_connect=no
3392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3394 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3395 echo "${ECHO_T}$ac_cv_func_connect" >&6
3397 if test $ac_cv_func_connect = no; then
3398 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3399 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3400 if test "${ac_cv_lib_socket_connect+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403 ac_check_lib_save_LIBS=$LIBS
3404 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3405 cat >conftest.$ac_ext <<_ACEOF
3406 #line $LINENO "configure"
3407 /* confdefs.h. */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3413 /* Override any gcc2 internal prototype to avoid an error. */
3414 #ifdef __cplusplus
3415 extern "C"
3416 #endif
3417 /* We use char because int might match the return type of a gcc2
3418 builtin and then its argument prototype would still apply. */
3419 char connect ();
3421 main ()
3423 connect ();
3425 return 0;
3427 _ACEOF
3428 rm -f conftest.$ac_objext conftest$ac_exeext
3429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3430 (eval $ac_link) 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } &&
3434 { ac_try='test -s conftest$ac_exeext'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; }; then
3440 ac_cv_lib_socket_connect=yes
3441 else
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3445 ac_cv_lib_socket_connect=no
3447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3448 LIBS=$ac_check_lib_save_LIBS
3450 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3451 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3452 if test $ac_cv_lib_socket_connect = yes; then
3453 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3458 # Guillermo Gomez says -lposix is necessary on A/UX.
3459 echo "$as_me:$LINENO: checking for remove" >&5
3460 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3461 if test "${ac_cv_func_remove+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464 cat >conftest.$ac_ext <<_ACEOF
3465 #line $LINENO "configure"
3466 /* confdefs.h. */
3467 _ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3471 /* System header to define __stub macros and hopefully few prototypes,
3472 which can conflict with char remove (); below.
3473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3474 <limits.h> exists even on freestanding compilers. */
3475 #ifdef __STDC__
3476 # include <limits.h>
3477 #else
3478 # include <assert.h>
3479 #endif
3480 /* Override any gcc2 internal prototype to avoid an error. */
3481 #ifdef __cplusplus
3482 extern "C"
3484 #endif
3485 /* We use char because int might match the return type of a gcc2
3486 builtin and then its argument prototype would still apply. */
3487 char remove ();
3488 /* The GNU C library defines this for functions which it implements
3489 to always fail with ENOSYS. Some functions are actually named
3490 something starting with __ and the normal name is an alias. */
3491 #if defined (__stub_remove) || defined (__stub___remove)
3492 choke me
3493 #else
3494 char (*f) () = remove;
3495 #endif
3496 #ifdef __cplusplus
3498 #endif
3501 main ()
3503 return f != remove;
3505 return 0;
3507 _ACEOF
3508 rm -f conftest.$ac_objext conftest$ac_exeext
3509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3510 (eval $ac_link) 2>&5
3511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
3514 { ac_try='test -s conftest$ac_exeext'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 (eval $ac_try) 2>&5
3517 ac_status=$?
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; }; then
3520 ac_cv_func_remove=yes
3521 else
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3525 ac_cv_func_remove=no
3527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3529 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3530 echo "${ECHO_T}$ac_cv_func_remove" >&6
3532 if test $ac_cv_func_remove = no; then
3533 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3534 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3535 if test "${ac_cv_lib_posix_remove+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538 ac_check_lib_save_LIBS=$LIBS
3539 LIBS="-lposix $LIBS"
3540 cat >conftest.$ac_ext <<_ACEOF
3541 #line $LINENO "configure"
3542 /* confdefs.h. */
3543 _ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3548 /* Override any gcc2 internal prototype to avoid an error. */
3549 #ifdef __cplusplus
3550 extern "C"
3551 #endif
3552 /* We use char because int might match the return type of a gcc2
3553 builtin and then its argument prototype would still apply. */
3554 char remove ();
3556 main ()
3558 remove ();
3560 return 0;
3562 _ACEOF
3563 rm -f conftest.$ac_objext conftest$ac_exeext
3564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3565 (eval $ac_link) 2>&5
3566 ac_status=$?
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } &&
3569 { ac_try='test -s conftest$ac_exeext'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 (eval $ac_try) 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; }; then
3575 ac_cv_lib_posix_remove=yes
3576 else
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3580 ac_cv_lib_posix_remove=no
3582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3583 LIBS=$ac_check_lib_save_LIBS
3585 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3586 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3587 if test $ac_cv_lib_posix_remove = yes; then
3588 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3593 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3594 echo "$as_me:$LINENO: checking for shmat" >&5
3595 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3596 if test "${ac_cv_func_shmat+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 else
3599 cat >conftest.$ac_ext <<_ACEOF
3600 #line $LINENO "configure"
3601 /* confdefs.h. */
3602 _ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3606 /* System header to define __stub macros and hopefully few prototypes,
3607 which can conflict with char shmat (); below.
3608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3609 <limits.h> exists even on freestanding compilers. */
3610 #ifdef __STDC__
3611 # include <limits.h>
3612 #else
3613 # include <assert.h>
3614 #endif
3615 /* Override any gcc2 internal prototype to avoid an error. */
3616 #ifdef __cplusplus
3617 extern "C"
3619 #endif
3620 /* We use char because int might match the return type of a gcc2
3621 builtin and then its argument prototype would still apply. */
3622 char shmat ();
3623 /* The GNU C library defines this for functions which it implements
3624 to always fail with ENOSYS. Some functions are actually named
3625 something starting with __ and the normal name is an alias. */
3626 #if defined (__stub_shmat) || defined (__stub___shmat)
3627 choke me
3628 #else
3629 char (*f) () = shmat;
3630 #endif
3631 #ifdef __cplusplus
3633 #endif
3636 main ()
3638 return f != shmat;
3640 return 0;
3642 _ACEOF
3643 rm -f conftest.$ac_objext conftest$ac_exeext
3644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3645 (eval $ac_link) 2>&5
3646 ac_status=$?
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } &&
3649 { ac_try='test -s conftest$ac_exeext'
3650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651 (eval $ac_try) 2>&5
3652 ac_status=$?
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); }; }; then
3655 ac_cv_func_shmat=yes
3656 else
3657 echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3660 ac_cv_func_shmat=no
3662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3664 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3665 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3667 if test $ac_cv_func_shmat = no; then
3668 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3669 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3670 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673 ac_check_lib_save_LIBS=$LIBS
3674 LIBS="-lipc $LIBS"
3675 cat >conftest.$ac_ext <<_ACEOF
3676 #line $LINENO "configure"
3677 /* confdefs.h. */
3678 _ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h. */
3683 /* Override any gcc2 internal prototype to avoid an error. */
3684 #ifdef __cplusplus
3685 extern "C"
3686 #endif
3687 /* We use char because int might match the return type of a gcc2
3688 builtin and then its argument prototype would still apply. */
3689 char shmat ();
3691 main ()
3693 shmat ();
3695 return 0;
3697 _ACEOF
3698 rm -f conftest.$ac_objext conftest$ac_exeext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3700 (eval $ac_link) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } &&
3704 { ac_try='test -s conftest$ac_exeext'
3705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706 (eval $ac_try) 2>&5
3707 ac_status=$?
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; }; then
3710 ac_cv_lib_ipc_shmat=yes
3711 else
3712 echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3715 ac_cv_lib_ipc_shmat=no
3717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3718 LIBS=$ac_check_lib_save_LIBS
3720 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3721 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3722 if test $ac_cv_lib_ipc_shmat = yes; then
3723 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3729 # Check for libraries that X11R6 Xt/Xaw programs need.
3730 ac_save_LDFLAGS=$LDFLAGS
3731 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3732 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3733 # check for ICE first), but we must link in the order -lSM -lICE or
3734 # we get undefined symbols. So assume we have SM if we have ICE.
3735 # These have to be linked with before -lX11, unlike the other
3736 # libraries we check for below, so use a different variable.
3737 # John Interrante, Karl Berry
3738 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3739 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3740 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743 ac_check_lib_save_LIBS=$LIBS
3744 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3745 cat >conftest.$ac_ext <<_ACEOF
3746 #line $LINENO "configure"
3747 /* confdefs.h. */
3748 _ACEOF
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h. */
3753 /* Override any gcc2 internal prototype to avoid an error. */
3754 #ifdef __cplusplus
3755 extern "C"
3756 #endif
3757 /* We use char because int might match the return type of a gcc2
3758 builtin and then its argument prototype would still apply. */
3759 char IceConnectionNumber ();
3761 main ()
3763 IceConnectionNumber ();
3765 return 0;
3767 _ACEOF
3768 rm -f conftest.$ac_objext conftest$ac_exeext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3770 (eval $ac_link) 2>&5
3771 ac_status=$?
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } &&
3774 { ac_try='test -s conftest$ac_exeext'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 (eval $ac_try) 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; }; then
3780 ac_cv_lib_ICE_IceConnectionNumber=yes
3781 else
3782 echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.$ac_ext >&5
3785 ac_cv_lib_ICE_IceConnectionNumber=no
3787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3788 LIBS=$ac_check_lib_save_LIBS
3790 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3791 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3792 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3793 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3796 LDFLAGS=$ac_save_LDFLAGS
3800 for ac_prog in 'bison -y' byacc
3802 # Extract the first word of "$ac_prog", so it can be a program name with args.
3803 set dummy $ac_prog; ac_word=$2
3804 echo "$as_me:$LINENO: checking for $ac_word" >&5
3805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3806 if test "${ac_cv_prog_YACC+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 else
3809 if test -n "$YACC"; then
3810 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3811 else
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH
3815 IFS=$as_save_IFS
3816 test -z "$as_dir" && as_dir=.
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3819 ac_cv_prog_YACC="$ac_prog"
3820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 break 2
3823 done
3824 done
3828 YACC=$ac_cv_prog_YACC
3829 if test -n "$YACC"; then
3830 echo "$as_me:$LINENO: result: $YACC" >&5
3831 echo "${ECHO_T}$YACC" >&6
3832 else
3833 echo "$as_me:$LINENO: result: no" >&5
3834 echo "${ECHO_T}no" >&6
3837 test -n "$YACC" && break
3838 done
3839 test -n "$YACC" || YACC="yacc"
3841 for ac_prog in flex lex
3843 # Extract the first word of "$ac_prog", so it can be a program name with args.
3844 set dummy $ac_prog; ac_word=$2
3845 echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_prog_LEX+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850 if test -n "$LEX"; then
3851 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_LEX="$ac_prog"
3861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 break 2
3864 done
3865 done
3869 LEX=$ac_cv_prog_LEX
3870 if test -n "$LEX"; then
3871 echo "$as_me:$LINENO: result: $LEX" >&5
3872 echo "${ECHO_T}$LEX" >&6
3873 else
3874 echo "$as_me:$LINENO: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3878 test -n "$LEX" && break
3879 done
3880 test -n "$LEX" || LEX=":"
3882 if test -z "$LEXLIB"
3883 then
3884 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3885 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3886 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889 ac_check_lib_save_LIBS=$LIBS
3890 LIBS="-lfl $LIBS"
3891 cat >conftest.$ac_ext <<_ACEOF
3892 #line $LINENO "configure"
3893 /* confdefs.h. */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3899 /* Override any gcc2 internal prototype to avoid an error. */
3900 #ifdef __cplusplus
3901 extern "C"
3902 #endif
3903 /* We use char because int might match the return type of a gcc2
3904 builtin and then its argument prototype would still apply. */
3905 char yywrap ();
3907 main ()
3909 yywrap ();
3911 return 0;
3913 _ACEOF
3914 rm -f conftest.$ac_objext conftest$ac_exeext
3915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3916 (eval $ac_link) 2>&5
3917 ac_status=$?
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } &&
3920 { ac_try='test -s conftest$ac_exeext'
3921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922 (eval $ac_try) 2>&5
3923 ac_status=$?
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; }; then
3926 ac_cv_lib_fl_yywrap=yes
3927 else
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3931 ac_cv_lib_fl_yywrap=no
3933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3934 LIBS=$ac_check_lib_save_LIBS
3936 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3937 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3938 if test $ac_cv_lib_fl_yywrap = yes; then
3939 LEXLIB="-lfl"
3940 else
3941 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3942 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3943 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946 ac_check_lib_save_LIBS=$LIBS
3947 LIBS="-ll $LIBS"
3948 cat >conftest.$ac_ext <<_ACEOF
3949 #line $LINENO "configure"
3950 /* confdefs.h. */
3951 _ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3956 /* Override any gcc2 internal prototype to avoid an error. */
3957 #ifdef __cplusplus
3958 extern "C"
3959 #endif
3960 /* We use char because int might match the return type of a gcc2
3961 builtin and then its argument prototype would still apply. */
3962 char yywrap ();
3964 main ()
3966 yywrap ();
3968 return 0;
3970 _ACEOF
3971 rm -f conftest.$ac_objext conftest$ac_exeext
3972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3973 (eval $ac_link) 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } &&
3977 { ac_try='test -s conftest$ac_exeext'
3978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 (eval $ac_try) 2>&5
3980 ac_status=$?
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); }; }; then
3983 ac_cv_lib_l_yywrap=yes
3984 else
3985 echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3988 ac_cv_lib_l_yywrap=no
3990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3991 LIBS=$ac_check_lib_save_LIBS
3993 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3994 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3995 if test $ac_cv_lib_l_yywrap = yes; then
3996 LEXLIB="-ll"
4003 if test "x$LEX" != "x:"; then
4004 echo "$as_me:$LINENO: checking lex output file root" >&5
4005 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4006 if test "${ac_cv_prog_lex_root+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009 # The minimal lex program is just a single line: %%. But some broken lexes
4010 # (Solaris, I think it was) want two %% lines, so accommodate them.
4011 cat >conftest.l <<_ACEOF
4014 _ACEOF
4015 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4016 (eval $LEX conftest.l) 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }
4020 if test -f lex.yy.c; then
4021 ac_cv_prog_lex_root=lex.yy
4022 elif test -f lexyy.c; then
4023 ac_cv_prog_lex_root=lexyy
4024 else
4025 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4026 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4027 { (exit 1); exit 1; }; }
4030 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4031 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4032 rm -f conftest.l
4033 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4035 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4036 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4037 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 else
4040 # POSIX says lex can declare yytext either as a pointer or an array; the
4041 # default is implementation-dependent. Figure out which it is, since
4042 # not all implementations provide the %pointer and %array declarations.
4043 ac_cv_prog_lex_yytext_pointer=no
4044 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4045 ac_save_LIBS=$LIBS
4046 LIBS="$LIBS $LEXLIB"
4047 cat >conftest.$ac_ext <<_ACEOF
4048 `cat $LEX_OUTPUT_ROOT.c`
4049 _ACEOF
4050 rm -f conftest.$ac_objext conftest$ac_exeext
4051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4052 (eval $ac_link) 2>&5
4053 ac_status=$?
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); } &&
4056 { ac_try='test -s conftest$ac_exeext'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 (eval $ac_try) 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 ac_cv_prog_lex_yytext_pointer=yes
4063 else
4064 echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4069 LIBS=$ac_save_LIBS
4070 rm -f "${LEX_OUTPUT_ROOT}.c"
4073 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4074 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4075 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4077 cat >>confdefs.h <<\_ACEOF
4078 #define YYTEXT_POINTER 1
4079 _ACEOF
4085 for ac_prog in $YACC bison yacc
4087 # Extract the first word of "$ac_prog", so it can be a program name with args.
4088 set dummy $ac_prog; ac_word=$2
4089 echo "$as_me:$LINENO: checking for $ac_word" >&5
4090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4091 if test "${ac_cv_prog_XYACC+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094 if test -n "$XYACC"; then
4095 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4096 else
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104 ac_cv_prog_XYACC="$ac_prog"
4105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4106 break 2
4108 done
4109 done
4113 XYACC=$ac_cv_prog_XYACC
4114 if test -n "$XYACC"; then
4115 echo "$as_me:$LINENO: result: $XYACC" >&5
4116 echo "${ECHO_T}$XYACC" >&6
4117 else
4118 echo "$as_me:$LINENO: result: no" >&5
4119 echo "${ECHO_T}no" >&6
4122 test -n "$XYACC" && break
4123 done
4124 test -n "$XYACC" || XYACC="none"
4126 if test "$XYACC" = "none"
4127 then
4128 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
4129 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4130 { (exit 1); exit 1; }; }
4132 for ac_prog in $LEX flex lex
4134 # Extract the first word of "$ac_prog", so it can be a program name with args.
4135 set dummy $ac_prog; ac_word=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_prog_XLEX+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141 if test -n "$XLEX"; then
4142 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4143 else
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4147 IFS=$as_save_IFS
4148 test -z "$as_dir" && as_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151 ac_cv_prog_XLEX="$ac_prog"
4152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4153 break 2
4155 done
4156 done
4160 XLEX=$ac_cv_prog_XLEX
4161 if test -n "$XLEX"; then
4162 echo "$as_me:$LINENO: result: $XLEX" >&5
4163 echo "${ECHO_T}$XLEX" >&6
4164 else
4165 echo "$as_me:$LINENO: result: no" >&5
4166 echo "${ECHO_T}no" >&6
4169 test -n "$XLEX" && break
4170 done
4171 test -n "$XLEX" || XLEX="none"
4173 if test "$XLEX" = "none"
4174 then
4175 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4176 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4177 { (exit 1); exit 1; }; }
4180 if test -n "$ac_tool_prefix"; then
4181 for ac_prog in gas as
4183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4185 echo "$as_me:$LINENO: checking for $ac_word" >&5
4186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4187 if test "${ac_cv_prog_AS+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190 if test -n "$AS"; then
4191 ac_cv_prog_AS="$AS" # Let the user override the test.
4192 else
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH
4196 IFS=$as_save_IFS
4197 test -z "$as_dir" && as_dir=.
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 break 2
4204 done
4205 done
4209 AS=$ac_cv_prog_AS
4210 if test -n "$AS"; then
4211 echo "$as_me:$LINENO: result: $AS" >&5
4212 echo "${ECHO_T}$AS" >&6
4213 else
4214 echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4218 test -n "$AS" && break
4219 done
4221 if test -z "$AS"; then
4222 ac_ct_AS=$AS
4223 for ac_prog in gas as
4225 # Extract the first word of "$ac_prog", so it can be a program name with args.
4226 set dummy $ac_prog; ac_word=$2
4227 echo "$as_me:$LINENO: checking for $ac_word" >&5
4228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4229 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232 if test -n "$ac_ct_AS"; then
4233 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4234 else
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4242 ac_cv_prog_ac_ct_AS="$ac_prog"
4243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4246 done
4247 done
4251 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4252 if test -n "$ac_ct_AS"; then
4253 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4254 echo "${ECHO_T}$ac_ct_AS" >&6
4255 else
4256 echo "$as_me:$LINENO: result: no" >&5
4257 echo "${ECHO_T}no" >&6
4260 test -n "$ac_ct_AS" && break
4261 done
4262 test -n "$ac_ct_AS" || ac_ct_AS="as"
4264 AS=$ac_ct_AS
4267 if test -n "$ac_tool_prefix"; then
4268 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4269 set dummy ${ac_tool_prefix}ld; ac_word=$2
4270 echo "$as_me:$LINENO: checking for $ac_word" >&5
4271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4272 if test "${ac_cv_prog_LD+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275 if test -n "$LD"; then
4276 ac_cv_prog_LD="$LD" # Let the user override the test.
4277 else
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285 ac_cv_prog_LD="${ac_tool_prefix}ld"
4286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 break 2
4289 done
4290 done
4294 LD=$ac_cv_prog_LD
4295 if test -n "$LD"; then
4296 echo "$as_me:$LINENO: result: $LD" >&5
4297 echo "${ECHO_T}$LD" >&6
4298 else
4299 echo "$as_me:$LINENO: result: no" >&5
4300 echo "${ECHO_T}no" >&6
4304 if test -z "$ac_cv_prog_LD"; then
4305 ac_ct_LD=$LD
4306 # Extract the first word of "ld", so it can be a program name with args.
4307 set dummy ld; ac_word=$2
4308 echo "$as_me:$LINENO: checking for $ac_word" >&5
4309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4310 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 else
4313 if test -n "$ac_ct_LD"; then
4314 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4315 else
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4323 ac_cv_prog_ac_ct_LD="ld"
4324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4327 done
4328 done
4330 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4333 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4334 if test -n "$ac_ct_LD"; then
4335 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4336 echo "${ECHO_T}$ac_ct_LD" >&6
4337 else
4338 echo "$as_me:$LINENO: result: no" >&5
4339 echo "${ECHO_T}no" >&6
4342 LD=$ac_ct_LD
4343 else
4344 LD="$ac_cv_prog_LD"
4347 if test -n "$ac_tool_prefix"; then
4348 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4349 set dummy ${ac_tool_prefix}ar; ac_word=$2
4350 echo "$as_me:$LINENO: checking for $ac_word" >&5
4351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4352 if test "${ac_cv_prog_AR+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355 if test -n "$AR"; then
4356 ac_cv_prog_AR="$AR" # Let the user override the test.
4357 else
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365 ac_cv_prog_AR="${ac_tool_prefix}ar"
4366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 break 2
4369 done
4370 done
4374 AR=$ac_cv_prog_AR
4375 if test -n "$AR"; then
4376 echo "$as_me:$LINENO: result: $AR" >&5
4377 echo "${ECHO_T}$AR" >&6
4378 else
4379 echo "$as_me:$LINENO: result: no" >&5
4380 echo "${ECHO_T}no" >&6
4384 if test -z "$ac_cv_prog_AR"; then
4385 ac_ct_AR=$AR
4386 # Extract the first word of "ar", so it can be a program name with args.
4387 set dummy ar; ac_word=$2
4388 echo "$as_me:$LINENO: checking for $ac_word" >&5
4389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4390 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 else
4393 if test -n "$ac_ct_AR"; then
4394 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4395 else
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4403 ac_cv_prog_ac_ct_AR="ar"
4404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 break 2
4407 done
4408 done
4410 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4413 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4414 if test -n "$ac_ct_AR"; then
4415 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4416 echo "${ECHO_T}$ac_ct_AR" >&6
4417 else
4418 echo "$as_me:$LINENO: result: no" >&5
4419 echo "${ECHO_T}no" >&6
4422 AR=$ac_ct_AR
4423 else
4424 AR="$ac_cv_prog_AR"
4427 if test -n "$ac_tool_prefix"; then
4428 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4429 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4430 echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4432 if test "${ac_cv_prog_RANLIB+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435 if test -n "$RANLIB"; then
4436 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4445 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4449 done
4450 done
4454 RANLIB=$ac_cv_prog_RANLIB
4455 if test -n "$RANLIB"; then
4456 echo "$as_me:$LINENO: result: $RANLIB" >&5
4457 echo "${ECHO_T}$RANLIB" >&6
4458 else
4459 echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6
4464 if test -z "$ac_cv_prog_RANLIB"; then
4465 ac_ct_RANLIB=$RANLIB
4466 # Extract the first word of "ranlib", so it can be a program name with args.
4467 set dummy ranlib; ac_word=$2
4468 echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4470 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473 if test -n "$ac_ct_RANLIB"; then
4474 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4475 else
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4483 ac_cv_prog_ac_ct_RANLIB="ranlib"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 break 2
4487 done
4488 done
4490 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4493 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4494 if test -n "$ac_ct_RANLIB"; then
4495 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4496 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4497 else
4498 echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6
4502 RANLIB=$ac_ct_RANLIB
4503 else
4504 RANLIB="$ac_cv_prog_RANLIB"
4507 if test -n "$ac_tool_prefix"; then
4508 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4509 set dummy ${ac_tool_prefix}strip; ac_word=$2
4510 echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512 if test "${ac_cv_prog_STRIP+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515 if test -n "$STRIP"; then
4516 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4517 else
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 break 2
4529 done
4530 done
4534 STRIP=$ac_cv_prog_STRIP
4535 if test -n "$STRIP"; then
4536 echo "$as_me:$LINENO: result: $STRIP" >&5
4537 echo "${ECHO_T}$STRIP" >&6
4538 else
4539 echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6
4544 if test -z "$ac_cv_prog_STRIP"; then
4545 ac_ct_STRIP=$STRIP
4546 # Extract the first word of "strip", so it can be a program name with args.
4547 set dummy strip; ac_word=$2
4548 echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553 if test -n "$ac_ct_STRIP"; then
4554 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_ac_ct_STRIP="strip"
4564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4567 done
4568 done
4570 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4573 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4574 if test -n "$ac_ct_STRIP"; then
4575 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4576 echo "${ECHO_T}$ac_ct_STRIP" >&6
4577 else
4578 echo "$as_me:$LINENO: result: no" >&5
4579 echo "${ECHO_T}no" >&6
4582 STRIP=$ac_ct_STRIP
4583 else
4584 STRIP="$ac_cv_prog_STRIP"
4587 if test -n "$ac_tool_prefix"; then
4588 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4589 set dummy ${ac_tool_prefix}windres; ac_word=$2
4590 echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4592 if test "${ac_cv_prog_WINDRES+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595 if test -n "$WINDRES"; then
4596 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4597 else
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4605 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 break 2
4609 done
4610 done
4614 WINDRES=$ac_cv_prog_WINDRES
4615 if test -n "$WINDRES"; then
4616 echo "$as_me:$LINENO: result: $WINDRES" >&5
4617 echo "${ECHO_T}$WINDRES" >&6
4618 else
4619 echo "$as_me:$LINENO: result: no" >&5
4620 echo "${ECHO_T}no" >&6
4624 if test -z "$ac_cv_prog_WINDRES"; then
4625 ac_ct_WINDRES=$WINDRES
4626 # Extract the first word of "windres", so it can be a program name with args.
4627 set dummy windres; ac_word=$2
4628 echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4630 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 else
4633 if test -n "$ac_ct_WINDRES"; then
4634 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4635 else
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH
4639 IFS=$as_save_IFS
4640 test -z "$as_dir" && as_dir=.
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4643 ac_cv_prog_ac_ct_WINDRES="windres"
4644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645 break 2
4647 done
4648 done
4650 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4653 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4654 if test -n "$ac_ct_WINDRES"; then
4655 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4656 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4657 else
4658 echo "$as_me:$LINENO: result: no" >&5
4659 echo "${ECHO_T}no" >&6
4662 WINDRES=$ac_ct_WINDRES
4663 else
4664 WINDRES="$ac_cv_prog_WINDRES"
4667 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4668 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4669 LN_S=$as_ln_s
4670 if test "$LN_S" = "ln -s"; then
4671 echo "$as_me:$LINENO: result: yes" >&5
4672 echo "${ECHO_T}yes" >&6
4673 else
4674 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4675 echo "${ECHO_T}no, using $LN_S" >&6
4678 echo "$as_me:$LINENO: checking whether ln works" >&5
4679 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4680 rm -f conf$$ conf$$.file
4681 echo >conf$$.file
4682 if ln conf$$.file conf$$ 2>/dev/null; then
4683 LN=ln
4685 echo "$as_me:$LINENO: result: yes" >&5
4686 echo "${ECHO_T}yes" >&6
4687 else
4688 LN="cp -p"
4690 echo "$as_me:$LINENO: result: no, using $LN" >&5
4691 echo "${ECHO_T}no, using $LN" >&6
4693 rm -f conf$$ conf$$.file
4694 # Extract the first word of "ldconfig", so it can be a program name with args.
4695 set dummy ldconfig; ac_word=$2
4696 echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4698 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701 case $LDCONFIG in
4702 [\\/]* | ?:[\\/]*)
4703 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in /sbin /usr/sbin $PATH
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4717 done
4718 done
4720 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4722 esac
4724 LDCONFIG=$ac_cv_path_LDCONFIG
4726 if test -n "$LDCONFIG"; then
4727 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4728 echo "${ECHO_T}$LDCONFIG" >&6
4729 else
4730 echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6
4734 # Find a good install program. We prefer a C program (faster),
4735 # so one script is as good as another. But avoid the broken or
4736 # incompatible versions:
4737 # SysV /etc/install, /usr/sbin/install
4738 # SunOS /usr/etc/install
4739 # IRIX /sbin/install
4740 # AIX /bin/install
4741 # AmigaOS /C/install, which installs bootblocks on floppy discs
4742 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4743 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4744 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4745 # ./install, which can be erroneously created by make from ./install.sh.
4746 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4747 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4748 if test -z "$INSTALL"; then
4749 if test "${ac_cv_path_install+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4755 IFS=$as_save_IFS
4756 test -z "$as_dir" && as_dir=.
4757 # Account for people who put trailing slashes in PATH elements.
4758 case $as_dir/ in
4759 ./ | .// | /cC/* | \
4760 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4761 /usr/ucb/* ) ;;
4763 # OSF1 and SCO ODT 3.0 have their own names for install.
4764 # Don't use installbsd from OSF since it installs stuff as root
4765 # by default.
4766 for ac_prog in ginstall scoinst install; do
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4769 if test $ac_prog = install &&
4770 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4771 # AIX install. It has an incompatible calling convention.
4773 elif test $ac_prog = install &&
4774 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4775 # program-specific install script used by HP pwplus--don't use.
4777 else
4778 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4779 break 3
4782 done
4783 done
4785 esac
4786 done
4790 if test "${ac_cv_path_install+set}" = set; then
4791 INSTALL=$ac_cv_path_install
4792 else
4793 # As a last resort, use the slow shell script. We don't cache a
4794 # path for INSTALL within a source directory, because that will
4795 # break other packages using the cache if that directory is
4796 # removed, or if the path is relative.
4797 INSTALL=$ac_install_sh
4800 echo "$as_me:$LINENO: result: $INSTALL" >&5
4801 echo "${ECHO_T}$INSTALL" >&6
4803 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4804 # It thinks the first close brace ends the variable substitution.
4805 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4807 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4809 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4811 case "$INSTALL" in
4812 [\\/$]* | ?:[\\/]* ) ;;
4813 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4814 esac
4816 for ac_prog in lclint lint
4818 # Extract the first word of "$ac_prog", so it can be a program name with args.
4819 set dummy $ac_prog; ac_word=$2
4820 echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4822 if test "${ac_cv_prog_LINT+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825 if test -n "$LINT"; then
4826 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4827 else
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4835 ac_cv_prog_LINT="$ac_prog"
4836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 break 2
4839 done
4840 done
4844 LINT=$ac_cv_prog_LINT
4845 if test -n "$LINT"; then
4846 echo "$as_me:$LINENO: result: $LINT" >&5
4847 echo "${ECHO_T}$LINT" >&6
4848 else
4849 echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6
4853 test -n "$LINT" && break
4854 done
4856 if test "$LINT" = "lint"
4857 then
4858 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4863 for ac_prog in docbook2html db2html
4865 # Extract the first word of "$ac_prog", so it can be a program name with args.
4866 set dummy $ac_prog; ac_word=$2
4867 echo "$as_me:$LINENO: checking for $ac_word" >&5
4868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4869 if test "${ac_cv_prog_DB2HTML+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 else
4872 if test -n "$DB2HTML"; then
4873 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4874 else
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4882 ac_cv_prog_DB2HTML="$ac_prog"
4883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 break 2
4886 done
4887 done
4891 DB2HTML=$ac_cv_prog_DB2HTML
4892 if test -n "$DB2HTML"; then
4893 echo "$as_me:$LINENO: result: $DB2HTML" >&5
4894 echo "${ECHO_T}$DB2HTML" >&6
4895 else
4896 echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6
4900 test -n "$DB2HTML" && break
4901 done
4902 test -n "$DB2HTML" || DB2HTML="false"
4906 for ac_prog in docbook2pdf db2pdf
4908 # Extract the first word of "$ac_prog", so it can be a program name with args.
4909 set dummy $ac_prog; ac_word=$2
4910 echo "$as_me:$LINENO: checking for $ac_word" >&5
4911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4912 if test "${ac_cv_prog_DB2PDF+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 else
4915 if test -n "$DB2PDF"; then
4916 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4917 else
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4925 ac_cv_prog_DB2PDF="$ac_prog"
4926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 break 2
4929 done
4930 done
4934 DB2PDF=$ac_cv_prog_DB2PDF
4935 if test -n "$DB2PDF"; then
4936 echo "$as_me:$LINENO: result: $DB2PDF" >&5
4937 echo "${ECHO_T}$DB2PDF" >&6
4938 else
4939 echo "$as_me:$LINENO: result: no" >&5
4940 echo "${ECHO_T}no" >&6
4943 test -n "$DB2PDF" && break
4944 done
4945 test -n "$DB2PDF" || DB2PDF="false"
4949 for ac_prog in docbook2ps db2ps
4951 # Extract the first word of "$ac_prog", so it can be a program name with args.
4952 set dummy $ac_prog; ac_word=$2
4953 echo "$as_me:$LINENO: checking for $ac_word" >&5
4954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4955 if test "${ac_cv_prog_DB2PS+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958 if test -n "$DB2PS"; then
4959 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968 ac_cv_prog_DB2PS="$ac_prog"
4969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4972 done
4973 done
4977 DB2PS=$ac_cv_prog_DB2PS
4978 if test -n "$DB2PS"; then
4979 echo "$as_me:$LINENO: result: $DB2PS" >&5
4980 echo "${ECHO_T}$DB2PS" >&6
4981 else
4982 echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6
4986 test -n "$DB2PS" && break
4987 done
4988 test -n "$DB2PS" || DB2PS="false"
4992 for ac_prog in docbook2txt db2txt
4994 # Extract the first word of "$ac_prog", so it can be a program name with args.
4995 set dummy $ac_prog; ac_word=$2
4996 echo "$as_me:$LINENO: checking for $ac_word" >&5
4997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4998 if test "${ac_cv_prog_DB2TXT+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 else
5001 if test -n "$DB2TXT"; then
5002 ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5003 else
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5007 IFS=$as_save_IFS
5008 test -z "$as_dir" && as_dir=.
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5011 ac_cv_prog_DB2TXT="$ac_prog"
5012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 break 2
5015 done
5016 done
5020 DB2TXT=$ac_cv_prog_DB2TXT
5021 if test -n "$DB2TXT"; then
5022 echo "$as_me:$LINENO: result: $DB2TXT" >&5
5023 echo "${ECHO_T}$DB2TXT" >&6
5024 else
5025 echo "$as_me:$LINENO: result: no" >&5
5026 echo "${ECHO_T}no" >&6
5029 test -n "$DB2TXT" && break
5030 done
5031 test -n "$DB2TXT" || DB2TXT="false"
5037 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
5038 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5039 if test "${ac_cv_lib_m_sqrt+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042 ac_check_lib_save_LIBS=$LIBS
5043 LIBS="-lm $LIBS"
5044 cat >conftest.$ac_ext <<_ACEOF
5045 #line $LINENO "configure"
5046 /* confdefs.h. */
5047 _ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5052 /* Override any gcc2 internal prototype to avoid an error. */
5053 #ifdef __cplusplus
5054 extern "C"
5055 #endif
5056 /* We use char because int might match the return type of a gcc2
5057 builtin and then its argument prototype would still apply. */
5058 char sqrt ();
5060 main ()
5062 sqrt ();
5064 return 0;
5066 _ACEOF
5067 rm -f conftest.$ac_objext conftest$ac_exeext
5068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5069 (eval $ac_link) 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } &&
5073 { ac_try='test -s conftest$ac_exeext'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 (eval $ac_try) 2>&5
5076 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
5079 ac_cv_lib_m_sqrt=yes
5080 else
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5084 ac_cv_lib_m_sqrt=no
5086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5087 LIBS=$ac_check_lib_save_LIBS
5089 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
5090 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5091 if test $ac_cv_lib_m_sqrt = yes; then
5092 cat >>confdefs.h <<_ACEOF
5093 #define HAVE_LIBM 1
5094 _ACEOF
5096 LIBS="-lm $LIBS"
5101 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5102 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5103 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106 ac_check_lib_save_LIBS=$LIBS
5107 LIBS="-li386 $LIBS"
5108 cat >conftest.$ac_ext <<_ACEOF
5109 #line $LINENO "configure"
5110 /* confdefs.h. */
5111 _ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h. */
5116 /* Override any gcc2 internal prototype to avoid an error. */
5117 #ifdef __cplusplus
5118 extern "C"
5119 #endif
5120 /* We use char because int might match the return type of a gcc2
5121 builtin and then its argument prototype would still apply. */
5122 char i386_set_ldt ();
5124 main ()
5126 i386_set_ldt ();
5128 return 0;
5130 _ACEOF
5131 rm -f conftest.$ac_objext conftest$ac_exeext
5132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5133 (eval $ac_link) 2>&5
5134 ac_status=$?
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } &&
5137 { ac_try='test -s conftest$ac_exeext'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 (eval $ac_try) 2>&5
5140 ac_status=$?
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; }; then
5143 ac_cv_lib_i386_i386_set_ldt=yes
5144 else
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5148 ac_cv_lib_i386_i386_set_ldt=no
5150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5151 LIBS=$ac_check_lib_save_LIBS
5153 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5154 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5155 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5156 cat >>confdefs.h <<_ACEOF
5157 #define HAVE_LIBI386 1
5158 _ACEOF
5160 LIBS="-li386 $LIBS"
5165 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5166 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5167 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 else
5170 ac_check_lib_save_LIBS=$LIBS
5171 LIBS="-lossaudio $LIBS"
5172 cat >conftest.$ac_ext <<_ACEOF
5173 #line $LINENO "configure"
5174 /* confdefs.h. */
5175 _ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5180 /* Override any gcc2 internal prototype to avoid an error. */
5181 #ifdef __cplusplus
5182 extern "C"
5183 #endif
5184 /* We use char because int might match the return type of a gcc2
5185 builtin and then its argument prototype would still apply. */
5186 char _oss_ioctl ();
5188 main ()
5190 _oss_ioctl ();
5192 return 0;
5194 _ACEOF
5195 rm -f conftest.$ac_objext conftest$ac_exeext
5196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5197 (eval $ac_link) 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } &&
5201 { ac_try='test -s conftest$ac_exeext'
5202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 (eval $ac_try) 2>&5
5204 ac_status=$?
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; }; then
5207 ac_cv_lib_ossaudio__oss_ioctl=yes
5208 else
5209 echo "$as_me: failed program was:" >&5
5210 sed 's/^/| /' conftest.$ac_ext >&5
5212 ac_cv_lib_ossaudio__oss_ioctl=no
5214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5215 LIBS=$ac_check_lib_save_LIBS
5217 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5218 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5219 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5220 cat >>confdefs.h <<_ACEOF
5221 #define HAVE_LIBOSSAUDIO 1
5222 _ACEOF
5224 LIBS="-lossaudio $LIBS"
5229 for ac_func in iswalnum
5231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5232 echo "$as_me:$LINENO: checking for $ac_func" >&5
5233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5234 if eval "test \"\${$as_ac_var+set}\" = set"; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237 cat >conftest.$ac_ext <<_ACEOF
5238 #line $LINENO "configure"
5239 /* confdefs.h. */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 /* System header to define __stub macros and hopefully few prototypes,
5245 which can conflict with char $ac_func (); below.
5246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5247 <limits.h> exists even on freestanding compilers. */
5248 #ifdef __STDC__
5249 # include <limits.h>
5250 #else
5251 # include <assert.h>
5252 #endif
5253 /* Override any gcc2 internal prototype to avoid an error. */
5254 #ifdef __cplusplus
5255 extern "C"
5257 #endif
5258 /* We use char because int might match the return type of a gcc2
5259 builtin and then its argument prototype would still apply. */
5260 char $ac_func ();
5261 /* The GNU C library defines this for functions which it implements
5262 to always fail with ENOSYS. Some functions are actually named
5263 something starting with __ and the normal name is an alias. */
5264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5265 choke me
5266 #else
5267 char (*f) () = $ac_func;
5268 #endif
5269 #ifdef __cplusplus
5271 #endif
5274 main ()
5276 return f != $ac_func;
5278 return 0;
5280 _ACEOF
5281 rm -f conftest.$ac_objext conftest$ac_exeext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5283 (eval $ac_link) 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } &&
5287 { ac_try='test -s conftest$ac_exeext'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 (eval $ac_try) 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5293 eval "$as_ac_var=yes"
5294 else
5295 echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5298 eval "$as_ac_var=no"
5300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5304 if test `eval echo '${'$as_ac_var'}'` = yes; then
5305 cat >>confdefs.h <<_ACEOF
5306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5307 _ACEOF
5309 else
5311 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5312 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5313 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316 ac_check_lib_save_LIBS=$LIBS
5317 LIBS="-lw $LIBS"
5318 cat >conftest.$ac_ext <<_ACEOF
5319 #line $LINENO "configure"
5320 /* confdefs.h. */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5326 /* Override any gcc2 internal prototype to avoid an error. */
5327 #ifdef __cplusplus
5328 extern "C"
5329 #endif
5330 /* We use char because int might match the return type of a gcc2
5331 builtin and then its argument prototype would still apply. */
5332 char iswalnum ();
5334 main ()
5336 iswalnum ();
5338 return 0;
5340 _ACEOF
5341 rm -f conftest.$ac_objext conftest$ac_exeext
5342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5343 (eval $ac_link) 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try='test -s conftest$ac_exeext'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349 (eval $ac_try) 2>&5
5350 ac_status=$?
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; }; then
5353 ac_cv_lib_w_iswalnum=yes
5354 else
5355 echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5358 ac_cv_lib_w_iswalnum=no
5360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5361 LIBS=$ac_check_lib_save_LIBS
5363 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
5364 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5365 if test $ac_cv_lib_w_iswalnum = yes; then
5366 cat >>confdefs.h <<_ACEOF
5367 #define HAVE_LIBW 1
5368 _ACEOF
5370 LIBS="-lw $LIBS"
5375 done
5378 for ac_func in gethostbyname
5380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5381 echo "$as_me:$LINENO: checking for $ac_func" >&5
5382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5383 if eval "test \"\${$as_ac_var+set}\" = set"; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386 cat >conftest.$ac_ext <<_ACEOF
5387 #line $LINENO "configure"
5388 /* confdefs.h. */
5389 _ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h. */
5393 /* System header to define __stub macros and hopefully few prototypes,
5394 which can conflict with char $ac_func (); below.
5395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5396 <limits.h> exists even on freestanding compilers. */
5397 #ifdef __STDC__
5398 # include <limits.h>
5399 #else
5400 # include <assert.h>
5401 #endif
5402 /* Override any gcc2 internal prototype to avoid an error. */
5403 #ifdef __cplusplus
5404 extern "C"
5406 #endif
5407 /* We use char because int might match the return type of a gcc2
5408 builtin and then its argument prototype would still apply. */
5409 char $ac_func ();
5410 /* The GNU C library defines this for functions which it implements
5411 to always fail with ENOSYS. Some functions are actually named
5412 something starting with __ and the normal name is an alias. */
5413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5414 choke me
5415 #else
5416 char (*f) () = $ac_func;
5417 #endif
5418 #ifdef __cplusplus
5420 #endif
5423 main ()
5425 return f != $ac_func;
5427 return 0;
5429 _ACEOF
5430 rm -f conftest.$ac_objext conftest$ac_exeext
5431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5432 (eval $ac_link) 2>&5
5433 ac_status=$?
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); } &&
5436 { ac_try='test -s conftest$ac_exeext'
5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438 (eval $ac_try) 2>&5
5439 ac_status=$?
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; }; then
5442 eval "$as_ac_var=yes"
5443 else
5444 echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5447 eval "$as_ac_var=no"
5449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5453 if test `eval echo '${'$as_ac_var'}'` = yes; then
5454 cat >>confdefs.h <<_ACEOF
5455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5456 _ACEOF
5458 else
5460 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5461 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5462 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465 ac_check_lib_save_LIBS=$LIBS
5466 LIBS="-lnsl $LIBS"
5467 cat >conftest.$ac_ext <<_ACEOF
5468 #line $LINENO "configure"
5469 /* confdefs.h. */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5475 /* Override any gcc2 internal prototype to avoid an error. */
5476 #ifdef __cplusplus
5477 extern "C"
5478 #endif
5479 /* We use char because int might match the return type of a gcc2
5480 builtin and then its argument prototype would still apply. */
5481 char gethostbyname ();
5483 main ()
5485 gethostbyname ();
5487 return 0;
5489 _ACEOF
5490 rm -f conftest.$ac_objext conftest$ac_exeext
5491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5492 (eval $ac_link) 2>&5
5493 ac_status=$?
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } &&
5496 { ac_try='test -s conftest$ac_exeext'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498 (eval $ac_try) 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; }; then
5502 ac_cv_lib_nsl_gethostbyname=yes
5503 else
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5507 ac_cv_lib_nsl_gethostbyname=no
5509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5510 LIBS=$ac_check_lib_save_LIBS
5512 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5513 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5514 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5515 cat >>confdefs.h <<_ACEOF
5516 #define HAVE_LIBNSL 1
5517 _ACEOF
5519 LIBS="-lnsl $LIBS"
5524 done
5527 for ac_func in connect
5529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5530 echo "$as_me:$LINENO: checking for $ac_func" >&5
5531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5532 if eval "test \"\${$as_ac_var+set}\" = set"; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5534 else
5535 cat >conftest.$ac_ext <<_ACEOF
5536 #line $LINENO "configure"
5537 /* confdefs.h. */
5538 _ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 /* System header to define __stub macros and hopefully few prototypes,
5543 which can conflict with char $ac_func (); below.
5544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5545 <limits.h> exists even on freestanding compilers. */
5546 #ifdef __STDC__
5547 # include <limits.h>
5548 #else
5549 # include <assert.h>
5550 #endif
5551 /* Override any gcc2 internal prototype to avoid an error. */
5552 #ifdef __cplusplus
5553 extern "C"
5555 #endif
5556 /* We use char because int might match the return type of a gcc2
5557 builtin and then its argument prototype would still apply. */
5558 char $ac_func ();
5559 /* The GNU C library defines this for functions which it implements
5560 to always fail with ENOSYS. Some functions are actually named
5561 something starting with __ and the normal name is an alias. */
5562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5563 choke me
5564 #else
5565 char (*f) () = $ac_func;
5566 #endif
5567 #ifdef __cplusplus
5569 #endif
5572 main ()
5574 return f != $ac_func;
5576 return 0;
5578 _ACEOF
5579 rm -f conftest.$ac_objext conftest$ac_exeext
5580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5581 (eval $ac_link) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } &&
5585 { ac_try='test -s conftest$ac_exeext'
5586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 (eval $ac_try) 2>&5
5588 ac_status=$?
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; }; then
5591 eval "$as_ac_var=yes"
5592 else
5593 echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5596 eval "$as_ac_var=no"
5598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5602 if test `eval echo '${'$as_ac_var'}'` = yes; then
5603 cat >>confdefs.h <<_ACEOF
5604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5605 _ACEOF
5607 else
5609 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5610 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5611 if test "${ac_cv_lib_socket_connect+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614 ac_check_lib_save_LIBS=$LIBS
5615 LIBS="-lsocket $LIBS"
5616 cat >conftest.$ac_ext <<_ACEOF
5617 #line $LINENO "configure"
5618 /* confdefs.h. */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5624 /* Override any gcc2 internal prototype to avoid an error. */
5625 #ifdef __cplusplus
5626 extern "C"
5627 #endif
5628 /* We use char because int might match the return type of a gcc2
5629 builtin and then its argument prototype would still apply. */
5630 char connect ();
5632 main ()
5634 connect ();
5636 return 0;
5638 _ACEOF
5639 rm -f conftest.$ac_objext conftest$ac_exeext
5640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5641 (eval $ac_link) 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } &&
5645 { ac_try='test -s conftest$ac_exeext'
5646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647 (eval $ac_try) 2>&5
5648 ac_status=$?
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; }; then
5651 ac_cv_lib_socket_connect=yes
5652 else
5653 echo "$as_me: failed program was:" >&5
5654 sed 's/^/| /' conftest.$ac_ext >&5
5656 ac_cv_lib_socket_connect=no
5658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5659 LIBS=$ac_check_lib_save_LIBS
5661 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5662 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5663 if test $ac_cv_lib_socket_connect = yes; then
5664 cat >>confdefs.h <<_ACEOF
5665 #define HAVE_LIBSOCKET 1
5666 _ACEOF
5668 LIBS="-lsocket $LIBS"
5673 done
5676 for ac_func in inet_aton
5678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5679 echo "$as_me:$LINENO: checking for $ac_func" >&5
5680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5681 if eval "test \"\${$as_ac_var+set}\" = set"; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684 cat >conftest.$ac_ext <<_ACEOF
5685 #line $LINENO "configure"
5686 /* confdefs.h. */
5687 _ACEOF
5688 cat confdefs.h >>conftest.$ac_ext
5689 cat >>conftest.$ac_ext <<_ACEOF
5690 /* end confdefs.h. */
5691 /* System header to define __stub macros and hopefully few prototypes,
5692 which can conflict with char $ac_func (); below.
5693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5694 <limits.h> exists even on freestanding compilers. */
5695 #ifdef __STDC__
5696 # include <limits.h>
5697 #else
5698 # include <assert.h>
5699 #endif
5700 /* Override any gcc2 internal prototype to avoid an error. */
5701 #ifdef __cplusplus
5702 extern "C"
5704 #endif
5705 /* We use char because int might match the return type of a gcc2
5706 builtin and then its argument prototype would still apply. */
5707 char $ac_func ();
5708 /* The GNU C library defines this for functions which it implements
5709 to always fail with ENOSYS. Some functions are actually named
5710 something starting with __ and the normal name is an alias. */
5711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5712 choke me
5713 #else
5714 char (*f) () = $ac_func;
5715 #endif
5716 #ifdef __cplusplus
5718 #endif
5721 main ()
5723 return f != $ac_func;
5725 return 0;
5727 _ACEOF
5728 rm -f conftest.$ac_objext conftest$ac_exeext
5729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5730 (eval $ac_link) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } &&
5734 { ac_try='test -s conftest$ac_exeext'
5735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 (eval $ac_try) 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }; }; then
5740 eval "$as_ac_var=yes"
5741 else
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5745 eval "$as_ac_var=no"
5747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5751 if test `eval echo '${'$as_ac_var'}'` = yes; then
5752 cat >>confdefs.h <<_ACEOF
5753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5754 _ACEOF
5756 else
5758 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5759 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5760 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 else
5763 ac_check_lib_save_LIBS=$LIBS
5764 LIBS="-lresolv $LIBS"
5765 cat >conftest.$ac_ext <<_ACEOF
5766 #line $LINENO "configure"
5767 /* confdefs.h. */
5768 _ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5773 /* Override any gcc2 internal prototype to avoid an error. */
5774 #ifdef __cplusplus
5775 extern "C"
5776 #endif
5777 /* We use char because int might match the return type of a gcc2
5778 builtin and then its argument prototype would still apply. */
5779 char inet_aton ();
5781 main ()
5783 inet_aton ();
5785 return 0;
5787 _ACEOF
5788 rm -f conftest.$ac_objext conftest$ac_exeext
5789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5790 (eval $ac_link) 2>&5
5791 ac_status=$?
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } &&
5794 { ac_try='test -s conftest$ac_exeext'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 (eval $ac_try) 2>&5
5797 ac_status=$?
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; }; then
5800 ac_cv_lib_resolv_inet_aton=yes
5801 else
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5805 ac_cv_lib_resolv_inet_aton=no
5807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5808 LIBS=$ac_check_lib_save_LIBS
5810 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5811 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5812 if test $ac_cv_lib_resolv_inet_aton = yes; then
5813 cat >>confdefs.h <<_ACEOF
5814 #define HAVE_LIBRESOLV 1
5815 _ACEOF
5817 LIBS="-lresolv $LIBS"
5822 done
5825 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5826 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5827 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830 ac_check_lib_save_LIBS=$LIBS
5831 LIBS="-lxpg4 $LIBS"
5832 cat >conftest.$ac_ext <<_ACEOF
5833 #line $LINENO "configure"
5834 /* confdefs.h. */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5840 /* Override any gcc2 internal prototype to avoid an error. */
5841 #ifdef __cplusplus
5842 extern "C"
5843 #endif
5844 /* We use char because int might match the return type of a gcc2
5845 builtin and then its argument prototype would still apply. */
5846 char _xpg4_setrunelocale ();
5848 main ()
5850 _xpg4_setrunelocale ();
5852 return 0;
5854 _ACEOF
5855 rm -f conftest.$ac_objext conftest$ac_exeext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5857 (eval $ac_link) 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try='test -s conftest$ac_exeext'
5862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863 (eval $ac_try) 2>&5
5864 ac_status=$?
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }; }; then
5867 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5868 else
5869 echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5872 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5875 LIBS=$ac_check_lib_save_LIBS
5877 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5878 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5879 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5880 cat >>confdefs.h <<_ACEOF
5881 #define HAVE_LIBXPG4 1
5882 _ACEOF
5884 LIBS="-lxpg4 $LIBS"
5888 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
5889 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
5890 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893 ac_check_lib_save_LIBS=$LIBS
5894 LIBS="-lpthread $LIBS"
5895 cat >conftest.$ac_ext <<_ACEOF
5896 #line $LINENO "configure"
5897 /* confdefs.h. */
5898 _ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5903 /* Override any gcc2 internal prototype to avoid an error. */
5904 #ifdef __cplusplus
5905 extern "C"
5906 #endif
5907 /* We use char because int might match the return type of a gcc2
5908 builtin and then its argument prototype would still apply. */
5909 char pthread_create ();
5911 main ()
5913 pthread_create ();
5915 return 0;
5917 _ACEOF
5918 rm -f conftest.$ac_objext conftest$ac_exeext
5919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5920 (eval $ac_link) 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } &&
5924 { ac_try='test -s conftest$ac_exeext'
5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 (eval $ac_try) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; }; then
5930 ac_cv_lib_pthread_pthread_create=yes
5931 else
5932 echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.$ac_ext >&5
5935 ac_cv_lib_pthread_pthread_create=no
5937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5938 LIBS=$ac_check_lib_save_LIBS
5940 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5941 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
5942 if test $ac_cv_lib_pthread_pthread_create = yes; then
5943 LIBPTHREAD="-lpthread"
5948 JPEGLIB=""
5950 echo "$as_me:$LINENO: checking for egrep" >&5
5951 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5952 if test "${ac_cv_prog_egrep+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5956 then ac_cv_prog_egrep='grep -E'
5957 else ac_cv_prog_egrep='egrep'
5960 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5961 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5962 EGREP=$ac_cv_prog_egrep
5965 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5966 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5967 if test "${ac_cv_header_stdc+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970 cat >conftest.$ac_ext <<_ACEOF
5971 #line $LINENO "configure"
5972 /* confdefs.h. */
5973 _ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5977 #include <stdlib.h>
5978 #include <stdarg.h>
5979 #include <string.h>
5980 #include <float.h>
5983 main ()
5987 return 0;
5989 _ACEOF
5990 rm -f conftest.$ac_objext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992 (eval $ac_compile) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } &&
5996 { ac_try='test -s conftest.$ac_objext'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 (eval $ac_try) 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
6002 ac_cv_header_stdc=yes
6003 else
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6007 ac_cv_header_stdc=no
6009 rm -f conftest.$ac_objext conftest.$ac_ext
6011 if test $ac_cv_header_stdc = yes; then
6012 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6013 cat >conftest.$ac_ext <<_ACEOF
6014 #line $LINENO "configure"
6015 /* confdefs.h. */
6016 _ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6020 #include <string.h>
6022 _ACEOF
6023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6024 $EGREP "memchr" >/dev/null 2>&1; then
6026 else
6027 ac_cv_header_stdc=no
6029 rm -f conftest*
6033 if test $ac_cv_header_stdc = yes; then
6034 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6035 cat >conftest.$ac_ext <<_ACEOF
6036 #line $LINENO "configure"
6037 /* confdefs.h. */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 #include <stdlib.h>
6044 _ACEOF
6045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6046 $EGREP "free" >/dev/null 2>&1; then
6048 else
6049 ac_cv_header_stdc=no
6051 rm -f conftest*
6055 if test $ac_cv_header_stdc = yes; then
6056 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6057 if test "$cross_compiling" = yes; then
6059 else
6060 cat >conftest.$ac_ext <<_ACEOF
6061 #line $LINENO "configure"
6062 /* confdefs.h. */
6063 _ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6067 #include <ctype.h>
6068 #if ((' ' & 0x0FF) == 0x020)
6069 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6070 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6071 #else
6072 # define ISLOWER(c) \
6073 (('a' <= (c) && (c) <= 'i') \
6074 || ('j' <= (c) && (c) <= 'r') \
6075 || ('s' <= (c) && (c) <= 'z'))
6076 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6077 #endif
6079 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6081 main ()
6083 int i;
6084 for (i = 0; i < 256; i++)
6085 if (XOR (islower (i), ISLOWER (i))
6086 || toupper (i) != TOUPPER (i))
6087 exit(2);
6088 exit (0);
6090 _ACEOF
6091 rm -f conftest$ac_exeext
6092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6093 (eval $ac_link) 2>&5
6094 ac_status=$?
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 (eval $ac_try) 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; }; then
6103 else
6104 echo "$as_me: program exited with status $ac_status" >&5
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6108 ( exit $ac_status )
6109 ac_cv_header_stdc=no
6111 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6115 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6116 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6117 if test $ac_cv_header_stdc = yes; then
6119 cat >>confdefs.h <<\_ACEOF
6120 #define STDC_HEADERS 1
6121 _ACEOF
6125 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6135 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6136 inttypes.h stdint.h unistd.h
6138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6139 echo "$as_me:$LINENO: checking for $ac_header" >&5
6140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144 cat >conftest.$ac_ext <<_ACEOF
6145 #line $LINENO "configure"
6146 /* confdefs.h. */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 $ac_includes_default
6153 #include <$ac_header>
6154 _ACEOF
6155 rm -f conftest.$ac_objext
6156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6157 (eval $ac_compile) 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } &&
6161 { ac_try='test -s conftest.$ac_objext'
6162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163 (eval $ac_try) 2>&5
6164 ac_status=$?
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); }; }; then
6167 eval "$as_ac_Header=yes"
6168 else
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6172 eval "$as_ac_Header=no"
6174 rm -f conftest.$ac_objext conftest.$ac_ext
6176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6179 cat >>confdefs.h <<_ACEOF
6180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6181 _ACEOF
6185 done
6189 for ac_header in jpeglib.h
6191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6193 echo "$as_me:$LINENO: checking for $ac_header" >&5
6194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6200 else
6201 # Is the header compilable?
6202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6204 cat >conftest.$ac_ext <<_ACEOF
6205 #line $LINENO "configure"
6206 /* confdefs.h. */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 $ac_includes_default
6212 #include <$ac_header>
6213 _ACEOF
6214 rm -f conftest.$ac_objext
6215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6216 (eval $ac_compile) 2>&5
6217 ac_status=$?
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } &&
6220 { ac_try='test -s conftest.$ac_objext'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 (eval $ac_try) 2>&5
6223 ac_status=$?
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 ac_header_compiler=yes
6227 else
6228 echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6231 ac_header_compiler=no
6233 rm -f conftest.$ac_objext conftest.$ac_ext
6234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6235 echo "${ECHO_T}$ac_header_compiler" >&6
6237 # Is the header present?
6238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6240 cat >conftest.$ac_ext <<_ACEOF
6241 #line $LINENO "configure"
6242 /* confdefs.h. */
6243 _ACEOF
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h. */
6247 #include <$ac_header>
6248 _ACEOF
6249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6251 ac_status=$?
6252 grep -v '^ *+' conftest.er1 >conftest.err
6253 rm -f conftest.er1
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } >/dev/null; then
6257 if test -s conftest.err; then
6258 ac_cpp_err=$ac_c_preproc_warn_flag
6259 else
6260 ac_cpp_err=
6262 else
6263 ac_cpp_err=yes
6265 if test -z "$ac_cpp_err"; then
6266 ac_header_preproc=yes
6267 else
6268 echo "$as_me: failed program was:" >&5
6269 sed 's/^/| /' conftest.$ac_ext >&5
6271 ac_header_preproc=no
6273 rm -f conftest.err conftest.$ac_ext
6274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6275 echo "${ECHO_T}$ac_header_preproc" >&6
6277 # So? What about this header?
6278 case $ac_header_compiler:$ac_header_preproc in
6279 yes:no )
6280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6285 cat <<\_ASBOX
6286 ## ------------------------------------ ##
6287 ## Report this to bug-autoconf@gnu.org. ##
6288 ## ------------------------------------ ##
6289 _ASBOX
6291 sed "s/^/$as_me: WARNING: /" >&2
6293 no:yes )
6294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6301 cat <<\_ASBOX
6302 ## ------------------------------------ ##
6303 ## Report this to bug-autoconf@gnu.org. ##
6304 ## ------------------------------------ ##
6305 _ASBOX
6307 sed "s/^/$as_me: WARNING: /" >&2
6309 esac
6310 echo "$as_me:$LINENO: checking for $ac_header" >&5
6311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 else
6315 eval "$as_ac_Header=$ac_header_preproc"
6317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6322 cat >>confdefs.h <<_ACEOF
6323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6324 _ACEOF
6325 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
6326 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6327 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330 ac_check_lib_save_LIBS=$LIBS
6331 LIBS="-ljpeg $LIBS"
6332 cat >conftest.$ac_ext <<_ACEOF
6333 #line $LINENO "configure"
6334 /* confdefs.h. */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6340 /* Override any gcc2 internal prototype to avoid an error. */
6341 #ifdef __cplusplus
6342 extern "C"
6343 #endif
6344 /* We use char because int might match the return type of a gcc2
6345 builtin and then its argument prototype would still apply. */
6346 char jpeg_start_decompress ();
6348 main ()
6350 jpeg_start_decompress ();
6352 return 0;
6354 _ACEOF
6355 rm -f conftest.$ac_objext conftest$ac_exeext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6357 (eval $ac_link) 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } &&
6361 { ac_try='test -s conftest$ac_exeext'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 (eval $ac_try) 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6367 ac_cv_lib_jpeg_jpeg_start_decompress=yes
6368 else
6369 echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6372 ac_cv_lib_jpeg_jpeg_start_decompress=no
6374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6375 LIBS=$ac_check_lib_save_LIBS
6377 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
6378 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6379 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
6381 cat >>confdefs.h <<\_ACEOF
6382 #define HAVE_LIBJPEG 1
6383 _ACEOF
6385 JPEGLIB="-ljpeg"
6392 done
6395 GIFLIB=""
6398 for ac_header in gif_lib.h
6400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6402 echo "$as_me:$LINENO: checking for $ac_header" >&5
6403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6409 else
6410 # Is the header compilable?
6411 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6413 cat >conftest.$ac_ext <<_ACEOF
6414 #line $LINENO "configure"
6415 /* confdefs.h. */
6416 _ACEOF
6417 cat confdefs.h >>conftest.$ac_ext
6418 cat >>conftest.$ac_ext <<_ACEOF
6419 /* end confdefs.h. */
6420 $ac_includes_default
6421 #include <$ac_header>
6422 _ACEOF
6423 rm -f conftest.$ac_objext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425 (eval $ac_compile) 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } &&
6429 { ac_try='test -s conftest.$ac_objext'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 (eval $ac_try) 2>&5
6432 ac_status=$?
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; }; then
6435 ac_header_compiler=yes
6436 else
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6440 ac_header_compiler=no
6442 rm -f conftest.$ac_objext conftest.$ac_ext
6443 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6444 echo "${ECHO_T}$ac_header_compiler" >&6
6446 # Is the header present?
6447 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6449 cat >conftest.$ac_ext <<_ACEOF
6450 #line $LINENO "configure"
6451 /* confdefs.h. */
6452 _ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6456 #include <$ac_header>
6457 _ACEOF
6458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6460 ac_status=$?
6461 grep -v '^ *+' conftest.er1 >conftest.err
6462 rm -f conftest.er1
6463 cat conftest.err >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } >/dev/null; then
6466 if test -s conftest.err; then
6467 ac_cpp_err=$ac_c_preproc_warn_flag
6468 else
6469 ac_cpp_err=
6471 else
6472 ac_cpp_err=yes
6474 if test -z "$ac_cpp_err"; then
6475 ac_header_preproc=yes
6476 else
6477 echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.$ac_ext >&5
6480 ac_header_preproc=no
6482 rm -f conftest.err conftest.$ac_ext
6483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6484 echo "${ECHO_T}$ac_header_preproc" >&6
6486 # So? What about this header?
6487 case $ac_header_compiler:$ac_header_preproc in
6488 yes:no )
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6494 cat <<\_ASBOX
6495 ## ------------------------------------ ##
6496 ## Report this to bug-autoconf@gnu.org. ##
6497 ## ------------------------------------ ##
6498 _ASBOX
6500 sed "s/^/$as_me: WARNING: /" >&2
6502 no:yes )
6503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6506 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6510 cat <<\_ASBOX
6511 ## ------------------------------------ ##
6512 ## Report this to bug-autoconf@gnu.org. ##
6513 ## ------------------------------------ ##
6514 _ASBOX
6516 sed "s/^/$as_me: WARNING: /" >&2
6518 esac
6519 echo "$as_me:$LINENO: checking for $ac_header" >&5
6520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524 eval "$as_ac_Header=$ac_header_preproc"
6526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6531 cat >>confdefs.h <<_ACEOF
6532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6533 _ACEOF
6534 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
6535 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
6536 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539 ac_check_lib_save_LIBS=$LIBS
6540 LIBS="-lungif $LIBS"
6541 cat >conftest.$ac_ext <<_ACEOF
6542 #line $LINENO "configure"
6543 /* confdefs.h. */
6544 _ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6549 /* Override any gcc2 internal prototype to avoid an error. */
6550 #ifdef __cplusplus
6551 extern "C"
6552 #endif
6553 /* We use char because int might match the return type of a gcc2
6554 builtin and then its argument prototype would still apply. */
6555 char DGifOpen ();
6557 main ()
6559 DGifOpen ();
6561 return 0;
6563 _ACEOF
6564 rm -f conftest.$ac_objext conftest$ac_exeext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6566 (eval $ac_link) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } &&
6570 { ac_try='test -s conftest$ac_exeext'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 (eval $ac_try) 2>&5
6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; }; then
6576 ac_cv_lib_ungif_DGifOpen=yes
6577 else
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6581 ac_cv_lib_ungif_DGifOpen=no
6583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6584 LIBS=$ac_check_lib_save_LIBS
6586 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
6587 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
6588 if test $ac_cv_lib_ungif_DGifOpen = yes; then
6590 cat >>confdefs.h <<\_ACEOF
6591 #define HAVE_LIBGIF 1
6592 _ACEOF
6594 GIFLIB="-lungif"
6595 else
6596 echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
6597 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
6598 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601 ac_check_lib_save_LIBS=$LIBS
6602 LIBS="-lgif $LIBS"
6603 cat >conftest.$ac_ext <<_ACEOF
6604 #line $LINENO "configure"
6605 /* confdefs.h. */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6611 /* Override any gcc2 internal prototype to avoid an error. */
6612 #ifdef __cplusplus
6613 extern "C"
6614 #endif
6615 /* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6617 char DGifOpen ();
6619 main ()
6621 DGifOpen ();
6623 return 0;
6625 _ACEOF
6626 rm -f conftest.$ac_objext conftest$ac_exeext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6628 (eval $ac_link) 2>&5
6629 ac_status=$?
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } &&
6632 { ac_try='test -s conftest$ac_exeext'
6633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634 (eval $ac_try) 2>&5
6635 ac_status=$?
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; }; then
6638 ac_cv_lib_gif_DGifOpen=yes
6639 else
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6643 ac_cv_lib_gif_DGifOpen=no
6645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6646 LIBS=$ac_check_lib_save_LIBS
6648 echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
6649 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
6650 if test $ac_cv_lib_gif_DGifOpen = yes; then
6651 cat >>confdefs.h <<\_ACEOF
6652 #define HAVE_LIBGIF 1
6653 _ACEOF
6655 GIFLIB="-lgif"
6662 done
6667 XFILES=""
6669 OPENGLFILES=""
6671 GLU32FILES=""
6673 OPENGL_LIBS=""
6674 if test "$have_x" = "yes"
6675 then
6676 XLIB="-lXext -lX11"
6677 ac_save_CPPFLAGS="$CPPFLAGS"
6678 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6681 for ac_header in X11/Xlib.h
6683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6685 echo "$as_me:$LINENO: checking for $ac_header" >&5
6686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6692 else
6693 # Is the header compilable?
6694 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6696 cat >conftest.$ac_ext <<_ACEOF
6697 #line $LINENO "configure"
6698 /* confdefs.h. */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6703 $ac_includes_default
6704 #include <$ac_header>
6705 _ACEOF
6706 rm -f conftest.$ac_objext
6707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6708 (eval $ac_compile) 2>&5
6709 ac_status=$?
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } &&
6712 { ac_try='test -s conftest.$ac_objext'
6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714 (eval $ac_try) 2>&5
6715 ac_status=$?
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; }; then
6718 ac_header_compiler=yes
6719 else
6720 echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6723 ac_header_compiler=no
6725 rm -f conftest.$ac_objext conftest.$ac_ext
6726 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6727 echo "${ECHO_T}$ac_header_compiler" >&6
6729 # Is the header present?
6730 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6732 cat >conftest.$ac_ext <<_ACEOF
6733 #line $LINENO "configure"
6734 /* confdefs.h. */
6735 _ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6739 #include <$ac_header>
6740 _ACEOF
6741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6743 ac_status=$?
6744 grep -v '^ *+' conftest.er1 >conftest.err
6745 rm -f conftest.er1
6746 cat conftest.err >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } >/dev/null; then
6749 if test -s conftest.err; then
6750 ac_cpp_err=$ac_c_preproc_warn_flag
6751 else
6752 ac_cpp_err=
6754 else
6755 ac_cpp_err=yes
6757 if test -z "$ac_cpp_err"; then
6758 ac_header_preproc=yes
6759 else
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6763 ac_header_preproc=no
6765 rm -f conftest.err conftest.$ac_ext
6766 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6767 echo "${ECHO_T}$ac_header_preproc" >&6
6769 # So? What about this header?
6770 case $ac_header_compiler:$ac_header_preproc in
6771 yes:no )
6772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6777 cat <<\_ASBOX
6778 ## ------------------------------------ ##
6779 ## Report this to bug-autoconf@gnu.org. ##
6780 ## ------------------------------------ ##
6781 _ASBOX
6783 sed "s/^/$as_me: WARNING: /" >&2
6785 no:yes )
6786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6789 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6793 cat <<\_ASBOX
6794 ## ------------------------------------ ##
6795 ## Report this to bug-autoconf@gnu.org. ##
6796 ## ------------------------------------ ##
6797 _ASBOX
6799 sed "s/^/$as_me: WARNING: /" >&2
6801 esac
6802 echo "$as_me:$LINENO: checking for $ac_header" >&5
6803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 else
6807 eval "$as_ac_Header=$ac_header_preproc"
6809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6814 cat >>confdefs.h <<_ACEOF
6815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6816 _ACEOF
6827 for ac_header in X11/XKBlib.h \
6828 X11/Xutil.h \
6829 X11/extensions/shape.h \
6830 X11/extensions/XShm.h \
6831 X11/extensions/Xrandr.h \
6832 X11/extensions/Xrender.h \
6833 X11/extensions/Xvlib.h \
6834 X11/extensions/xf86dga.h \
6835 X11/extensions/xf86vmode.h
6837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6838 echo "$as_me:$LINENO: checking for $ac_header" >&5
6839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
6842 else
6843 cat >conftest.$ac_ext <<_ACEOF
6844 #line $LINENO "configure"
6845 /* confdefs.h. */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6850 #include <X11/Xlib.h>
6851 #ifdef HAVE_X11_XUTIL_H
6852 # include <X11/Xutil.h>
6853 #endif
6855 #include <$ac_header>
6856 _ACEOF
6857 rm -f conftest.$ac_objext
6858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6859 (eval $ac_compile) 2>&5
6860 ac_status=$?
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } &&
6863 { ac_try='test -s conftest.$ac_objext'
6864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865 (eval $ac_try) 2>&5
6866 ac_status=$?
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); }; }; then
6869 eval "$as_ac_Header=yes"
6870 else
6871 echo "$as_me: failed program was:" >&5
6872 sed 's/^/| /' conftest.$ac_ext >&5
6874 eval "$as_ac_Header=no"
6876 rm -f conftest.$ac_objext conftest.$ac_ext
6878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6881 cat >>confdefs.h <<_ACEOF
6882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6883 _ACEOF
6887 done
6890 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
6891 then
6892 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6893 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6894 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 else
6897 ac_check_lib_save_LIBS=$LIBS
6898 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6899 cat >conftest.$ac_ext <<_ACEOF
6900 #line $LINENO "configure"
6901 /* confdefs.h. */
6902 _ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6907 /* Override any gcc2 internal prototype to avoid an error. */
6908 #ifdef __cplusplus
6909 extern "C"
6910 #endif
6911 /* We use char because int might match the return type of a gcc2
6912 builtin and then its argument prototype would still apply. */
6913 char XkbQueryExtension ();
6915 main ()
6917 XkbQueryExtension ();
6919 return 0;
6921 _ACEOF
6922 rm -f conftest.$ac_objext conftest$ac_exeext
6923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6924 (eval $ac_link) 2>&5
6925 ac_status=$?
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); } &&
6928 { ac_try='test -s conftest$ac_exeext'
6929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930 (eval $ac_try) 2>&5
6931 ac_status=$?
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; }; then
6934 ac_cv_lib_X11_XkbQueryExtension=yes
6935 else
6936 echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6939 ac_cv_lib_X11_XkbQueryExtension=no
6941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6942 LIBS=$ac_check_lib_save_LIBS
6944 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6945 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6946 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6948 cat >>confdefs.h <<\_ACEOF
6949 #define HAVE_XKB 1
6950 _ACEOF
6956 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
6957 then
6958 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6959 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6960 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963 ac_check_lib_save_LIBS=$LIBS
6964 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6965 cat >conftest.$ac_ext <<_ACEOF
6966 #line $LINENO "configure"
6967 /* confdefs.h. */
6968 _ACEOF
6969 cat confdefs.h >>conftest.$ac_ext
6970 cat >>conftest.$ac_ext <<_ACEOF
6971 /* end confdefs.h. */
6973 /* Override any gcc2 internal prototype to avoid an error. */
6974 #ifdef __cplusplus
6975 extern "C"
6976 #endif
6977 /* We use char because int might match the return type of a gcc2
6978 builtin and then its argument prototype would still apply. */
6979 char XShmQueryExtension ();
6981 main ()
6983 XShmQueryExtension ();
6985 return 0;
6987 _ACEOF
6988 rm -f conftest.$ac_objext conftest$ac_exeext
6989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6990 (eval $ac_link) 2>&5
6991 ac_status=$?
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } &&
6994 { ac_try='test -s conftest$ac_exeext'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 (eval $ac_try) 2>&5
6997 ac_status=$?
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; }; then
7000 ac_cv_lib_Xext_XShmQueryExtension=yes
7001 else
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7005 ac_cv_lib_Xext_XShmQueryExtension=no
7007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7008 LIBS=$ac_check_lib_save_LIBS
7010 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7011 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7012 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7014 cat >>confdefs.h <<\_ACEOF
7015 #define HAVE_LIBXXSHM 1
7016 _ACEOF
7022 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7023 then
7024 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7025 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7026 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029 ac_check_lib_save_LIBS=$LIBS
7030 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7031 cat >conftest.$ac_ext <<_ACEOF
7032 #line $LINENO "configure"
7033 /* confdefs.h. */
7034 _ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7039 /* Override any gcc2 internal prototype to avoid an error. */
7040 #ifdef __cplusplus
7041 extern "C"
7042 #endif
7043 /* We use char because int might match the return type of a gcc2
7044 builtin and then its argument prototype would still apply. */
7045 char XShapeQueryExtension ();
7047 main ()
7049 XShapeQueryExtension ();
7051 return 0;
7053 _ACEOF
7054 rm -f conftest.$ac_objext conftest$ac_exeext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7056 (eval $ac_link) 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } &&
7060 { ac_try='test -s conftest$ac_exeext'
7061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 (eval $ac_try) 2>&5
7063 ac_status=$?
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; }; then
7066 ac_cv_lib_Xext_XShapeQueryExtension=yes
7067 else
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7071 ac_cv_lib_Xext_XShapeQueryExtension=no
7073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7074 LIBS=$ac_check_lib_save_LIBS
7076 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7077 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7078 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7080 cat >>confdefs.h <<\_ACEOF
7081 #define HAVE_LIBXSHAPE 1
7082 _ACEOF
7088 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
7089 then
7090 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
7091 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7092 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 else
7095 ac_check_lib_save_LIBS=$LIBS
7096 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7097 cat >conftest.$ac_ext <<_ACEOF
7098 #line $LINENO "configure"
7099 /* confdefs.h. */
7100 _ACEOF
7101 cat confdefs.h >>conftest.$ac_ext
7102 cat >>conftest.$ac_ext <<_ACEOF
7103 /* end confdefs.h. */
7105 /* Override any gcc2 internal prototype to avoid an error. */
7106 #ifdef __cplusplus
7107 extern "C"
7108 #endif
7109 /* We use char because int might match the return type of a gcc2
7110 builtin and then its argument prototype would still apply. */
7111 char XDGAQueryExtension ();
7113 main ()
7115 XDGAQueryExtension ();
7117 return 0;
7119 _ACEOF
7120 rm -f conftest.$ac_objext conftest$ac_exeext
7121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7122 (eval $ac_link) 2>&5
7123 ac_status=$?
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } &&
7126 { ac_try='test -s conftest$ac_exeext'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128 (eval $ac_try) 2>&5
7129 ac_status=$?
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; }; then
7132 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7133 else
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7137 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7140 LIBS=$ac_check_lib_save_LIBS
7142 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
7143 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7144 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7146 cat >>confdefs.h <<\_ACEOF
7147 #define HAVE_LIBXXF86DGA2 1
7148 _ACEOF
7150 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7152 else
7153 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
7154 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7155 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 else
7158 ac_check_lib_save_LIBS=$LIBS
7159 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7160 $LIBS"
7161 cat >conftest.$ac_ext <<_ACEOF
7162 #line $LINENO "configure"
7163 /* confdefs.h. */
7164 _ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7169 /* Override any gcc2 internal prototype to avoid an error. */
7170 #ifdef __cplusplus
7171 extern "C"
7172 #endif
7173 /* We use char because int might match the return type of a gcc2
7174 builtin and then its argument prototype would still apply. */
7175 char XF86DGAQueryExtension ();
7177 main ()
7179 XF86DGAQueryExtension ();
7181 return 0;
7183 _ACEOF
7184 rm -f conftest.$ac_objext conftest$ac_exeext
7185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7186 (eval $ac_link) 2>&5
7187 ac_status=$?
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } &&
7190 { ac_try='test -s conftest$ac_exeext'
7191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 (eval $ac_try) 2>&5
7193 ac_status=$?
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; }; then
7196 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7197 else
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7201 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7204 LIBS=$ac_check_lib_save_LIBS
7206 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
7207 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7208 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7210 cat >>confdefs.h <<\_ACEOF
7211 #define HAVE_LIBXXF86DGA 1
7212 _ACEOF
7214 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
7223 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7224 then
7225 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
7226 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7227 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 else
7230 ac_check_lib_save_LIBS=$LIBS
7231 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7232 cat >conftest.$ac_ext <<_ACEOF
7233 #line $LINENO "configure"
7234 /* confdefs.h. */
7235 _ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7240 /* Override any gcc2 internal prototype to avoid an error. */
7241 #ifdef __cplusplus
7242 extern "C"
7243 #endif
7244 /* We use char because int might match the return type of a gcc2
7245 builtin and then its argument prototype would still apply. */
7246 char XF86VidModeQueryExtension ();
7248 main ()
7250 XF86VidModeQueryExtension ();
7252 return 0;
7254 _ACEOF
7255 rm -f conftest.$ac_objext conftest$ac_exeext
7256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7257 (eval $ac_link) 2>&5
7258 ac_status=$?
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } &&
7261 { ac_try='test -s conftest$ac_exeext'
7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263 (eval $ac_try) 2>&5
7264 ac_status=$?
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; }; then
7267 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7268 else
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7272 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7275 LIBS=$ac_check_lib_save_LIBS
7277 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
7278 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7279 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7281 cat >>confdefs.h <<\_ACEOF
7282 #define HAVE_LIBXXF86VM 1
7283 _ACEOF
7285 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
7291 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
7292 then
7293 echo "$as_me:$LINENO: checking for XRRSetScreenConfigAndRate in -lXrandr" >&5
7294 echo $ECHO_N "checking for XRRSetScreenConfigAndRate in -lXrandr... $ECHO_C" >&6
7295 if test "${ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298 ac_check_lib_save_LIBS=$LIBS
7299 LIBS="-lXrandr $X_LIBS -lXrender -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7300 cat >conftest.$ac_ext <<_ACEOF
7301 #line $LINENO "configure"
7302 /* confdefs.h. */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7308 /* Override any gcc2 internal prototype to avoid an error. */
7309 #ifdef __cplusplus
7310 extern "C"
7311 #endif
7312 /* We use char because int might match the return type of a gcc2
7313 builtin and then its argument prototype would still apply. */
7314 char XRRSetScreenConfigAndRate ();
7316 main ()
7318 XRRSetScreenConfigAndRate ();
7320 return 0;
7322 _ACEOF
7323 rm -f conftest.$ac_objext conftest$ac_exeext
7324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7325 (eval $ac_link) 2>&5
7326 ac_status=$?
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); } &&
7329 { ac_try='test -s conftest$ac_exeext'
7330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331 (eval $ac_try) 2>&5
7332 ac_status=$?
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); }; }; then
7335 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=yes
7336 else
7337 echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7340 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=no
7342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7343 LIBS=$ac_check_lib_save_LIBS
7345 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&5
7346 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&6
7347 if test $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate = yes; then
7349 cat >>confdefs.h <<\_ACEOF
7350 #define HAVE_LIBXRANDR 1
7351 _ACEOF
7353 X_PRE_LIBS="$X_PRE_LIBS -lXrandr -lXrender"
7359 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
7360 then
7361 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
7362 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7363 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366 ac_check_lib_save_LIBS=$LIBS
7367 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7368 cat >conftest.$ac_ext <<_ACEOF
7369 #line $LINENO "configure"
7370 /* confdefs.h. */
7371 _ACEOF
7372 cat confdefs.h >>conftest.$ac_ext
7373 cat >>conftest.$ac_ext <<_ACEOF
7374 /* end confdefs.h. */
7376 /* Override any gcc2 internal prototype to avoid an error. */
7377 #ifdef __cplusplus
7378 extern "C"
7379 #endif
7380 /* We use char because int might match the return type of a gcc2
7381 builtin and then its argument prototype would still apply. */
7382 char XvShmCreateImage ();
7384 main ()
7386 XvShmCreateImage ();
7388 return 0;
7390 _ACEOF
7391 rm -f conftest.$ac_objext conftest$ac_exeext
7392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7393 (eval $ac_link) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } &&
7397 { ac_try='test -s conftest$ac_exeext'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 (eval $ac_try) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; }; then
7403 ac_cv_lib_Xv_XvShmCreateImage=yes
7404 else
7405 echo "$as_me: failed program was:" >&5
7406 sed 's/^/| /' conftest.$ac_ext >&5
7408 ac_cv_lib_Xv_XvShmCreateImage=no
7410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7411 LIBS=$ac_check_lib_save_LIBS
7413 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
7414 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7415 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
7417 cat >>confdefs.h <<\_ACEOF
7418 #define HAVE_XVIDEO 1
7419 _ACEOF
7421 X_PRE_LIBS="$X_PRE_LIBS -lXv"
7430 done
7432 if test "x$with_opengl" != "xno"
7433 then
7434 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
7435 then
7436 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
7437 This prevents linking to OpenGL. Delete the file and restart configure." >&5
7438 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7439 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7440 { (exit 1); exit 1; }; }
7445 for ac_header in GL/gl.h GL/glx.h
7447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7449 echo "$as_me:$LINENO: checking for $ac_header" >&5
7450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7456 else
7457 # Is the header compilable?
7458 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7460 cat >conftest.$ac_ext <<_ACEOF
7461 #line $LINENO "configure"
7462 /* confdefs.h. */
7463 _ACEOF
7464 cat confdefs.h >>conftest.$ac_ext
7465 cat >>conftest.$ac_ext <<_ACEOF
7466 /* end confdefs.h. */
7467 $ac_includes_default
7468 #include <$ac_header>
7469 _ACEOF
7470 rm -f conftest.$ac_objext
7471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7472 (eval $ac_compile) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } &&
7476 { ac_try='test -s conftest.$ac_objext'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 (eval $ac_try) 2>&5
7479 ac_status=$?
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; }; then
7482 ac_header_compiler=yes
7483 else
7484 echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7487 ac_header_compiler=no
7489 rm -f conftest.$ac_objext conftest.$ac_ext
7490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7491 echo "${ECHO_T}$ac_header_compiler" >&6
7493 # Is the header present?
7494 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7496 cat >conftest.$ac_ext <<_ACEOF
7497 #line $LINENO "configure"
7498 /* confdefs.h. */
7499 _ACEOF
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h. */
7503 #include <$ac_header>
7504 _ACEOF
7505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7507 ac_status=$?
7508 grep -v '^ *+' conftest.er1 >conftest.err
7509 rm -f conftest.er1
7510 cat conftest.err >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } >/dev/null; then
7513 if test -s conftest.err; then
7514 ac_cpp_err=$ac_c_preproc_warn_flag
7515 else
7516 ac_cpp_err=
7518 else
7519 ac_cpp_err=yes
7521 if test -z "$ac_cpp_err"; then
7522 ac_header_preproc=yes
7523 else
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7527 ac_header_preproc=no
7529 rm -f conftest.err conftest.$ac_ext
7530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7531 echo "${ECHO_T}$ac_header_preproc" >&6
7533 # So? What about this header?
7534 case $ac_header_compiler:$ac_header_preproc in
7535 yes:no )
7536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7541 cat <<\_ASBOX
7542 ## ------------------------------------ ##
7543 ## Report this to bug-autoconf@gnu.org. ##
7544 ## ------------------------------------ ##
7545 _ASBOX
7547 sed "s/^/$as_me: WARNING: /" >&2
7549 no:yes )
7550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7557 cat <<\_ASBOX
7558 ## ------------------------------------ ##
7559 ## Report this to bug-autoconf@gnu.org. ##
7560 ## ------------------------------------ ##
7561 _ASBOX
7563 sed "s/^/$as_me: WARNING: /" >&2
7565 esac
7566 echo "$as_me:$LINENO: checking for $ac_header" >&5
7567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 else
7571 eval "$as_ac_Header=$ac_header_preproc"
7573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7578 cat >>confdefs.h <<_ACEOF
7579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7580 _ACEOF
7584 done
7586 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
7587 then
7589 for ac_header in GL/glext.h
7591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7592 echo "$as_me:$LINENO: checking for $ac_header" >&5
7593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7596 else
7597 cat >conftest.$ac_ext <<_ACEOF
7598 #line $LINENO "configure"
7599 /* confdefs.h. */
7600 _ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7604 #include <GL/glx.h>
7606 #include <$ac_header>
7607 _ACEOF
7608 rm -f conftest.$ac_objext
7609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7610 (eval $ac_compile) 2>&5
7611 ac_status=$?
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } &&
7614 { ac_try='test -s conftest.$ac_objext'
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616 (eval $ac_try) 2>&5
7617 ac_status=$?
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; }; then
7620 eval "$as_ac_Header=yes"
7621 else
7622 echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.$ac_ext >&5
7625 eval "$as_ac_Header=no"
7627 rm -f conftest.$ac_objext conftest.$ac_ext
7629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7632 cat >>confdefs.h <<_ACEOF
7633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7634 _ACEOF
7638 done
7640 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7641 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7642 if test "${wine_cv_opengl_version_OK+set}" = set; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 else
7645 cat >conftest.$ac_ext <<_ACEOF
7646 #line $LINENO "configure"
7647 /* confdefs.h. */
7648 _ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7652 #include <GL/gl.h>
7654 main ()
7656 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7658 return 0;
7660 _ACEOF
7661 rm -f conftest.$ac_objext
7662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7663 (eval $ac_compile) 2>&5
7664 ac_status=$?
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } &&
7667 { ac_try='test -s conftest.$ac_objext'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 (eval $ac_try) 2>&5
7670 ac_status=$?
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; }; then
7673 wine_cv_opengl_version_OK="yes"
7674 else
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7678 wine_cv_opengl_version_OK="no"
7681 rm -f conftest.$ac_objext conftest.$ac_ext
7684 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7685 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7687 if test "$wine_cv_opengl_version_OK" = "yes"
7688 then
7689 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7690 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7691 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7693 else
7694 ac_check_lib_save_LIBS=$LIBS
7695 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7696 cat >conftest.$ac_ext <<_ACEOF
7697 #line $LINENO "configure"
7698 /* confdefs.h. */
7699 _ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7704 /* Override any gcc2 internal prototype to avoid an error. */
7705 #ifdef __cplusplus
7706 extern "C"
7707 #endif
7708 /* We use char because int might match the return type of a gcc2
7709 builtin and then its argument prototype would still apply. */
7710 char glXCreateContext ();
7712 main ()
7714 glXCreateContext ();
7716 return 0;
7718 _ACEOF
7719 rm -f conftest.$ac_objext conftest$ac_exeext
7720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7721 (eval $ac_link) 2>&5
7722 ac_status=$?
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } &&
7725 { ac_try='test -s conftest$ac_exeext'
7726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727 (eval $ac_try) 2>&5
7728 ac_status=$?
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); }; }; then
7731 ac_cv_lib_GL_glXCreateContext=yes
7732 else
7733 echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.$ac_ext >&5
7736 ac_cv_lib_GL_glXCreateContext=no
7738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7739 LIBS=$ac_check_lib_save_LIBS
7741 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7742 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7743 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7744 OPENGL_LIBS="-lGL"
7749 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7750 then
7751 OPENGLFILES='$(OPENGLFILES)'
7753 cat >>confdefs.h <<\_ACEOF
7754 #define HAVE_OPENGL 1
7755 _ACEOF
7758 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7759 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7760 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 else
7763 ac_check_lib_save_LIBS=$LIBS
7764 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7765 cat >conftest.$ac_ext <<_ACEOF
7766 #line $LINENO "configure"
7767 /* confdefs.h. */
7768 _ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h. */
7773 /* Override any gcc2 internal prototype to avoid an error. */
7774 #ifdef __cplusplus
7775 extern "C"
7776 #endif
7777 /* We use char because int might match the return type of a gcc2
7778 builtin and then its argument prototype would still apply. */
7779 char glXGetProcAddressARB ();
7781 main ()
7783 glXGetProcAddressARB ();
7785 return 0;
7787 _ACEOF
7788 rm -f conftest.$ac_objext conftest$ac_exeext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7790 (eval $ac_link) 2>&5
7791 ac_status=$?
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } &&
7794 { ac_try='test -s conftest$ac_exeext'
7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796 (eval $ac_try) 2>&5
7797 ac_status=$?
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; }; then
7800 ac_cv_lib_GL_glXGetProcAddressARB=yes
7801 else
7802 echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7805 ac_cv_lib_GL_glXGetProcAddressARB=no
7807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7808 LIBS=$ac_check_lib_save_LIBS
7810 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7811 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7812 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7814 cat >>confdefs.h <<\_ACEOF
7815 #define HAVE_GLX_GETPROCADDRESS 1
7816 _ACEOF
7821 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7822 then
7823 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7824 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7825 if test "${wine_cv_extension_prototypes+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 else
7828 cat >conftest.$ac_ext <<_ACEOF
7829 #line $LINENO "configure"
7830 /* confdefs.h. */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835 #include <GL/gl.h>
7836 #ifdef HAVE_GL_GLEXT_H
7837 # include <GL/glext.h>
7838 #endif
7841 main ()
7843 PFNGLCOLORTABLEEXTPROC test_proc;
7845 return 0;
7847 _ACEOF
7848 rm -f conftest.$ac_objext
7849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7850 (eval $ac_compile) 2>&5
7851 ac_status=$?
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } &&
7854 { ac_try='test -s conftest.$ac_objext'
7855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856 (eval $ac_try) 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; }; then
7860 wine_cv_extension_prototypes="yes"
7861 else
7862 echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7865 wine_cv_extension_prototypes="no"
7868 rm -f conftest.$ac_objext conftest.$ac_ext
7871 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7872 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7873 if test "$wine_cv_extension_prototypes" = "yes"
7874 then
7876 cat >>confdefs.h <<\_ACEOF
7877 #define HAVE_GLEXT_PROTOTYPES 1
7878 _ACEOF
7884 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7885 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7886 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889 ac_check_lib_save_LIBS=$LIBS
7890 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7891 $LIBS"
7892 cat >conftest.$ac_ext <<_ACEOF
7893 #line $LINENO "configure"
7894 /* confdefs.h. */
7895 _ACEOF
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h. */
7900 /* Override any gcc2 internal prototype to avoid an error. */
7901 #ifdef __cplusplus
7902 extern "C"
7903 #endif
7904 /* We use char because int might match the return type of a gcc2
7905 builtin and then its argument prototype would still apply. */
7906 char gluLookAt ();
7908 main ()
7910 gluLookAt ();
7912 return 0;
7914 _ACEOF
7915 rm -f conftest.$ac_objext conftest$ac_exeext
7916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7917 (eval $ac_link) 2>&5
7918 ac_status=$?
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } &&
7921 { ac_try='test -s conftest$ac_exeext'
7922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923 (eval $ac_try) 2>&5
7924 ac_status=$?
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); }; }; then
7927 ac_cv_lib_GLU_gluLookAt=yes
7928 else
7929 echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7932 ac_cv_lib_GLU_gluLookAt=no
7934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7935 LIBS=$ac_check_lib_save_LIBS
7937 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7938 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7939 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7940 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
7941 GLU32FILES='$(GLU32FILES)'
7949 NASLIBS=""
7952 for ac_header in audio/audiolib.h
7954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7956 echo "$as_me:$LINENO: checking for $ac_header" >&5
7957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
7961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7963 else
7964 # Is the header compilable?
7965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7967 cat >conftest.$ac_ext <<_ACEOF
7968 #line $LINENO "configure"
7969 /* confdefs.h. */
7970 _ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h. */
7974 $ac_includes_default
7975 #include <$ac_header>
7976 _ACEOF
7977 rm -f conftest.$ac_objext
7978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7979 (eval $ac_compile) 2>&5
7980 ac_status=$?
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } &&
7983 { ac_try='test -s conftest.$ac_objext'
7984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985 (eval $ac_try) 2>&5
7986 ac_status=$?
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
7989 ac_header_compiler=yes
7990 else
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7994 ac_header_compiler=no
7996 rm -f conftest.$ac_objext conftest.$ac_ext
7997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7998 echo "${ECHO_T}$ac_header_compiler" >&6
8000 # Is the header present?
8001 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8003 cat >conftest.$ac_ext <<_ACEOF
8004 #line $LINENO "configure"
8005 /* confdefs.h. */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8010 #include <$ac_header>
8011 _ACEOF
8012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8014 ac_status=$?
8015 grep -v '^ *+' conftest.er1 >conftest.err
8016 rm -f conftest.er1
8017 cat conftest.err >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } >/dev/null; then
8020 if test -s conftest.err; then
8021 ac_cpp_err=$ac_c_preproc_warn_flag
8022 else
8023 ac_cpp_err=
8025 else
8026 ac_cpp_err=yes
8028 if test -z "$ac_cpp_err"; then
8029 ac_header_preproc=yes
8030 else
8031 echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8034 ac_header_preproc=no
8036 rm -f conftest.err conftest.$ac_ext
8037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8038 echo "${ECHO_T}$ac_header_preproc" >&6
8040 # So? What about this header?
8041 case $ac_header_compiler:$ac_header_preproc in
8042 yes:no )
8043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8048 cat <<\_ASBOX
8049 ## ------------------------------------ ##
8050 ## Report this to bug-autoconf@gnu.org. ##
8051 ## ------------------------------------ ##
8052 _ASBOX
8054 sed "s/^/$as_me: WARNING: /" >&2
8056 no:yes )
8057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8064 cat <<\_ASBOX
8065 ## ------------------------------------ ##
8066 ## Report this to bug-autoconf@gnu.org. ##
8067 ## ------------------------------------ ##
8068 _ASBOX
8070 sed "s/^/$as_me: WARNING: /" >&2
8072 esac
8073 echo "$as_me:$LINENO: checking for $ac_header" >&5
8074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8077 else
8078 eval "$as_ac_Header=$ac_header_preproc"
8080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8085 cat >>confdefs.h <<_ACEOF
8086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8087 _ACEOF
8089 for ac_header in audio/soundlib.h
8091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8092 echo "$as_me:$LINENO: checking for $ac_header" >&5
8093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097 cat >conftest.$ac_ext <<_ACEOF
8098 #line $LINENO "configure"
8099 /* confdefs.h. */
8100 _ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8104 #include <audio/audiolib.h>
8106 #include <$ac_header>
8107 _ACEOF
8108 rm -f conftest.$ac_objext
8109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8110 (eval $ac_compile) 2>&5
8111 ac_status=$?
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } &&
8114 { ac_try='test -s conftest.$ac_objext'
8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116 (eval $ac_try) 2>&5
8117 ac_status=$?
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; }; then
8120 eval "$as_ac_Header=yes"
8121 else
8122 echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8125 eval "$as_ac_Header=no"
8127 rm -f conftest.$ac_objext conftest.$ac_ext
8129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8132 cat >>confdefs.h <<_ACEOF
8133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8134 _ACEOF
8138 done
8140 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8141 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8142 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145 ac_check_lib_save_LIBS=$LIBS
8146 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8147 cat >conftest.$ac_ext <<_ACEOF
8148 #line $LINENO "configure"
8149 /* confdefs.h. */
8150 _ACEOF
8151 cat confdefs.h >>conftest.$ac_ext
8152 cat >>conftest.$ac_ext <<_ACEOF
8153 /* end confdefs.h. */
8155 /* Override any gcc2 internal prototype to avoid an error. */
8156 #ifdef __cplusplus
8157 extern "C"
8158 #endif
8159 /* We use char because int might match the return type of a gcc2
8160 builtin and then its argument prototype would still apply. */
8161 char AuCreateFlow ();
8163 main ()
8165 AuCreateFlow ();
8167 return 0;
8169 _ACEOF
8170 rm -f conftest.$ac_objext conftest$ac_exeext
8171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8172 (eval $ac_link) 2>&5
8173 ac_status=$?
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } &&
8176 { ac_try='test -s conftest$ac_exeext'
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178 (eval $ac_try) 2>&5
8179 ac_status=$?
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8182 ac_cv_lib_audio_AuCreateFlow=yes
8183 else
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8187 ac_cv_lib_audio_AuCreateFlow=no
8189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8190 LIBS=$ac_check_lib_save_LIBS
8192 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8193 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8194 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8196 cat >>confdefs.h <<\_ACEOF
8197 #define HAVE_NAS 1
8198 _ACEOF
8200 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8205 done
8208 CPPFLAGS="$ac_save_CPPFLAGS"
8209 XFILES='$(XFILES)'
8210 else
8211 XLIB=""
8212 X_CFLAGS=""
8213 X_LIBS=""
8216 CURSESLIBS=""
8217 if test "x$with_curses" != "xno"
8218 then
8220 for ac_header in ncurses.h
8222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8224 echo "$as_me:$LINENO: checking for $ac_header" >&5
8225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8231 else
8232 # Is the header compilable?
8233 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8235 cat >conftest.$ac_ext <<_ACEOF
8236 #line $LINENO "configure"
8237 /* confdefs.h. */
8238 _ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8242 $ac_includes_default
8243 #include <$ac_header>
8244 _ACEOF
8245 rm -f conftest.$ac_objext
8246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8247 (eval $ac_compile) 2>&5
8248 ac_status=$?
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try='test -s conftest.$ac_objext'
8252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253 (eval $ac_try) 2>&5
8254 ac_status=$?
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; }; then
8257 ac_header_compiler=yes
8258 else
8259 echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8262 ac_header_compiler=no
8264 rm -f conftest.$ac_objext conftest.$ac_ext
8265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8266 echo "${ECHO_T}$ac_header_compiler" >&6
8268 # Is the header present?
8269 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8271 cat >conftest.$ac_ext <<_ACEOF
8272 #line $LINENO "configure"
8273 /* confdefs.h. */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8278 #include <$ac_header>
8279 _ACEOF
8280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } >/dev/null; then
8288 if test -s conftest.err; then
8289 ac_cpp_err=$ac_c_preproc_warn_flag
8290 else
8291 ac_cpp_err=
8293 else
8294 ac_cpp_err=yes
8296 if test -z "$ac_cpp_err"; then
8297 ac_header_preproc=yes
8298 else
8299 echo "$as_me: failed program was:" >&5
8300 sed 's/^/| /' conftest.$ac_ext >&5
8302 ac_header_preproc=no
8304 rm -f conftest.err conftest.$ac_ext
8305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8306 echo "${ECHO_T}$ac_header_preproc" >&6
8308 # So? What about this header?
8309 case $ac_header_compiler:$ac_header_preproc in
8310 yes:no )
8311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8316 cat <<\_ASBOX
8317 ## ------------------------------------ ##
8318 ## Report this to bug-autoconf@gnu.org. ##
8319 ## ------------------------------------ ##
8320 _ASBOX
8322 sed "s/^/$as_me: WARNING: /" >&2
8324 no:yes )
8325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8328 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8332 cat <<\_ASBOX
8333 ## ------------------------------------ ##
8334 ## Report this to bug-autoconf@gnu.org. ##
8335 ## ------------------------------------ ##
8336 _ASBOX
8338 sed "s/^/$as_me: WARNING: /" >&2
8340 esac
8341 echo "$as_me:$LINENO: checking for $ac_header" >&5
8342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8345 else
8346 eval "$as_ac_Header=$ac_header_preproc"
8348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8353 cat >>confdefs.h <<_ACEOF
8354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8355 _ACEOF
8356 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
8357 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8358 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361 ac_check_lib_save_LIBS=$LIBS
8362 LIBS="-lncurses $LIBS"
8363 cat >conftest.$ac_ext <<_ACEOF
8364 #line $LINENO "configure"
8365 /* confdefs.h. */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8371 /* Override any gcc2 internal prototype to avoid an error. */
8372 #ifdef __cplusplus
8373 extern "C"
8374 #endif
8375 /* We use char because int might match the return type of a gcc2
8376 builtin and then its argument prototype would still apply. */
8377 char waddch ();
8379 main ()
8381 waddch ();
8383 return 0;
8385 _ACEOF
8386 rm -f conftest.$ac_objext conftest$ac_exeext
8387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8388 (eval $ac_link) 2>&5
8389 ac_status=$?
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } &&
8392 { ac_try='test -s conftest$ac_exeext'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394 (eval $ac_try) 2>&5
8395 ac_status=$?
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; }; then
8398 ac_cv_lib_ncurses_waddch=yes
8399 else
8400 echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.$ac_ext >&5
8403 ac_cv_lib_ncurses_waddch=no
8405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8406 LIBS=$ac_check_lib_save_LIBS
8408 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
8409 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8410 if test $ac_cv_lib_ncurses_waddch = yes; then
8412 cat >>confdefs.h <<\_ACEOF
8413 #define HAVE_LIBNCURSES 1
8414 _ACEOF
8416 CURSESLIBS="-lncurses"
8417 else
8419 for ac_header in curses.h
8421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8423 echo "$as_me:$LINENO: checking for $ac_header" >&5
8424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8430 else
8431 # Is the header compilable?
8432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8434 cat >conftest.$ac_ext <<_ACEOF
8435 #line $LINENO "configure"
8436 /* confdefs.h. */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8441 $ac_includes_default
8442 #include <$ac_header>
8443 _ACEOF
8444 rm -f conftest.$ac_objext
8445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8446 (eval $ac_compile) 2>&5
8447 ac_status=$?
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try='test -s conftest.$ac_objext'
8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452 (eval $ac_try) 2>&5
8453 ac_status=$?
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; }; then
8456 ac_header_compiler=yes
8457 else
8458 echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8461 ac_header_compiler=no
8463 rm -f conftest.$ac_objext conftest.$ac_ext
8464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8465 echo "${ECHO_T}$ac_header_compiler" >&6
8467 # Is the header present?
8468 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8470 cat >conftest.$ac_ext <<_ACEOF
8471 #line $LINENO "configure"
8472 /* confdefs.h. */
8473 _ACEOF
8474 cat confdefs.h >>conftest.$ac_ext
8475 cat >>conftest.$ac_ext <<_ACEOF
8476 /* end confdefs.h. */
8477 #include <$ac_header>
8478 _ACEOF
8479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8481 ac_status=$?
8482 grep -v '^ *+' conftest.er1 >conftest.err
8483 rm -f conftest.er1
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } >/dev/null; then
8487 if test -s conftest.err; then
8488 ac_cpp_err=$ac_c_preproc_warn_flag
8489 else
8490 ac_cpp_err=
8492 else
8493 ac_cpp_err=yes
8495 if test -z "$ac_cpp_err"; then
8496 ac_header_preproc=yes
8497 else
8498 echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.$ac_ext >&5
8501 ac_header_preproc=no
8503 rm -f conftest.err conftest.$ac_ext
8504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8505 echo "${ECHO_T}$ac_header_preproc" >&6
8507 # So? What about this header?
8508 case $ac_header_compiler:$ac_header_preproc in
8509 yes:no )
8510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8515 cat <<\_ASBOX
8516 ## ------------------------------------ ##
8517 ## Report this to bug-autoconf@gnu.org. ##
8518 ## ------------------------------------ ##
8519 _ASBOX
8521 sed "s/^/$as_me: WARNING: /" >&2
8523 no:yes )
8524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8531 cat <<\_ASBOX
8532 ## ------------------------------------ ##
8533 ## Report this to bug-autoconf@gnu.org. ##
8534 ## ------------------------------------ ##
8535 _ASBOX
8537 sed "s/^/$as_me: WARNING: /" >&2
8539 esac
8540 echo "$as_me:$LINENO: checking for $ac_header" >&5
8541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545 eval "$as_ac_Header=$ac_header_preproc"
8547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8552 cat >>confdefs.h <<_ACEOF
8553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8554 _ACEOF
8555 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
8556 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8557 if test "${ac_cv_lib_curses_waddch+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560 ac_check_lib_save_LIBS=$LIBS
8561 LIBS="-lcurses $LIBS"
8562 cat >conftest.$ac_ext <<_ACEOF
8563 #line $LINENO "configure"
8564 /* confdefs.h. */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8570 /* Override any gcc2 internal prototype to avoid an error. */
8571 #ifdef __cplusplus
8572 extern "C"
8573 #endif
8574 /* We use char because int might match the return type of a gcc2
8575 builtin and then its argument prototype would still apply. */
8576 char waddch ();
8578 main ()
8580 waddch ();
8582 return 0;
8584 _ACEOF
8585 rm -f conftest.$ac_objext conftest$ac_exeext
8586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8587 (eval $ac_link) 2>&5
8588 ac_status=$?
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } &&
8591 { ac_try='test -s conftest$ac_exeext'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 (eval $ac_try) 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; }; then
8597 ac_cv_lib_curses_waddch=yes
8598 else
8599 echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8602 ac_cv_lib_curses_waddch=no
8604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8605 LIBS=$ac_check_lib_save_LIBS
8607 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
8608 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
8609 if test $ac_cv_lib_curses_waddch = yes; then
8611 cat >>confdefs.h <<\_ACEOF
8612 #define HAVE_LIBCURSES 1
8613 _ACEOF
8615 CURSESLIBS="-lcurses"
8620 done
8626 done
8628 saved_libs="$LIBS"
8629 LIBS="$CURSESLIBS $LIBS"
8632 for ac_func in getbkgd resizeterm
8634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8635 echo "$as_me:$LINENO: checking for $ac_func" >&5
8636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8637 if eval "test \"\${$as_ac_var+set}\" = set"; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640 cat >conftest.$ac_ext <<_ACEOF
8641 #line $LINENO "configure"
8642 /* confdefs.h. */
8643 _ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h. */
8647 /* System header to define __stub macros and hopefully few prototypes,
8648 which can conflict with char $ac_func (); below.
8649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8650 <limits.h> exists even on freestanding compilers. */
8651 #ifdef __STDC__
8652 # include <limits.h>
8653 #else
8654 # include <assert.h>
8655 #endif
8656 /* Override any gcc2 internal prototype to avoid an error. */
8657 #ifdef __cplusplus
8658 extern "C"
8660 #endif
8661 /* We use char because int might match the return type of a gcc2
8662 builtin and then its argument prototype would still apply. */
8663 char $ac_func ();
8664 /* The GNU C library defines this for functions which it implements
8665 to always fail with ENOSYS. Some functions are actually named
8666 something starting with __ and the normal name is an alias. */
8667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8668 choke me
8669 #else
8670 char (*f) () = $ac_func;
8671 #endif
8672 #ifdef __cplusplus
8674 #endif
8677 main ()
8679 return f != $ac_func;
8681 return 0;
8683 _ACEOF
8684 rm -f conftest.$ac_objext conftest$ac_exeext
8685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8686 (eval $ac_link) 2>&5
8687 ac_status=$?
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } &&
8690 { ac_try='test -s conftest$ac_exeext'
8691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692 (eval $ac_try) 2>&5
8693 ac_status=$?
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); }; }; then
8696 eval "$as_ac_var=yes"
8697 else
8698 echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.$ac_ext >&5
8701 eval "$as_ac_var=no"
8703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8707 if test `eval echo '${'$as_ac_var'}'` = yes; then
8708 cat >>confdefs.h <<_ACEOF
8709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8710 _ACEOF
8713 done
8715 LIBS="$saved_libs"
8719 # Extract the first word of "sane-config", so it can be a program name with args.
8720 set dummy sane-config; ac_word=$2
8721 echo "$as_me:$LINENO: checking for $ac_word" >&5
8722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8723 if test "${ac_cv_prog_sane_devel+set}" = set; then
8724 echo $ECHO_N "(cached) $ECHO_C" >&6
8725 else
8726 if test -n "$sane_devel"; then
8727 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8728 else
8729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730 for as_dir in $PATH
8732 IFS=$as_save_IFS
8733 test -z "$as_dir" && as_dir=.
8734 for ac_exec_ext in '' $ac_executable_extensions; do
8735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8736 ac_cv_prog_sane_devel="sane-config"
8737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8738 break 2
8740 done
8741 done
8743 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8746 sane_devel=$ac_cv_prog_sane_devel
8747 if test -n "$sane_devel"; then
8748 echo "$as_me:$LINENO: result: $sane_devel" >&5
8749 echo "${ECHO_T}$sane_devel" >&6
8750 else
8751 echo "$as_me:$LINENO: result: no" >&5
8752 echo "${ECHO_T}no" >&6
8755 if test "$sane_devel" = "no"
8756 then
8757 SANELIBS=""
8758 SANEINCL=""
8759 else
8760 SANELIBS="`$sane_devel --libs`"
8761 SANEINCL="`$sane_devel --cflags`"
8762 ac_save_CPPFLAGS="$CPPFLAGS"
8763 ac_save_LIBS="$LIBS"
8764 CPPFLAGS="$CPPFLAGS $SANEINCL"
8765 LIBS="$LIBS $SANELIBS"
8766 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8767 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8768 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8769 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8773 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8774 else
8775 # Is the header compilable?
8776 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8777 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8778 cat >conftest.$ac_ext <<_ACEOF
8779 #line $LINENO "configure"
8780 /* confdefs.h. */
8781 _ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8785 $ac_includes_default
8786 #include <sane/sane.h>
8787 _ACEOF
8788 rm -f conftest.$ac_objext
8789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8790 (eval $ac_compile) 2>&5
8791 ac_status=$?
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); } &&
8794 { ac_try='test -s conftest.$ac_objext'
8795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796 (eval $ac_try) 2>&5
8797 ac_status=$?
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); }; }; then
8800 ac_header_compiler=yes
8801 else
8802 echo "$as_me: failed program was:" >&5
8803 sed 's/^/| /' conftest.$ac_ext >&5
8805 ac_header_compiler=no
8807 rm -f conftest.$ac_objext conftest.$ac_ext
8808 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8809 echo "${ECHO_T}$ac_header_compiler" >&6
8811 # Is the header present?
8812 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8813 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8814 cat >conftest.$ac_ext <<_ACEOF
8815 #line $LINENO "configure"
8816 /* confdefs.h. */
8817 _ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h. */
8821 #include <sane/sane.h>
8822 _ACEOF
8823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8825 ac_status=$?
8826 grep -v '^ *+' conftest.er1 >conftest.err
8827 rm -f conftest.er1
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } >/dev/null; then
8831 if test -s conftest.err; then
8832 ac_cpp_err=$ac_c_preproc_warn_flag
8833 else
8834 ac_cpp_err=
8836 else
8837 ac_cpp_err=yes
8839 if test -z "$ac_cpp_err"; then
8840 ac_header_preproc=yes
8841 else
8842 echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.$ac_ext >&5
8845 ac_header_preproc=no
8847 rm -f conftest.err conftest.$ac_ext
8848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8849 echo "${ECHO_T}$ac_header_preproc" >&6
8851 # So? What about this header?
8852 case $ac_header_compiler:$ac_header_preproc in
8853 yes:no )
8854 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8855 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8856 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8857 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8859 cat <<\_ASBOX
8860 ## ------------------------------------ ##
8861 ## Report this to bug-autoconf@gnu.org. ##
8862 ## ------------------------------------ ##
8863 _ASBOX
8865 sed "s/^/$as_me: WARNING: /" >&2
8867 no:yes )
8868 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8869 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8870 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8871 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8872 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8873 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8875 cat <<\_ASBOX
8876 ## ------------------------------------ ##
8877 ## Report this to bug-autoconf@gnu.org. ##
8878 ## ------------------------------------ ##
8879 _ASBOX
8881 sed "s/^/$as_me: WARNING: /" >&2
8883 esac
8884 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8885 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8886 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8888 else
8889 ac_cv_header_sane_sane_h=$ac_header_preproc
8891 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8892 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8895 if test $ac_cv_header_sane_sane_h = yes; then
8896 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8897 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8898 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8900 else
8901 ac_check_lib_save_LIBS=$LIBS
8902 LIBS="-lsane $LIBS"
8903 cat >conftest.$ac_ext <<_ACEOF
8904 #line $LINENO "configure"
8905 /* confdefs.h. */
8906 _ACEOF
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h. */
8911 /* Override any gcc2 internal prototype to avoid an error. */
8912 #ifdef __cplusplus
8913 extern "C"
8914 #endif
8915 /* We use char because int might match the return type of a gcc2
8916 builtin and then its argument prototype would still apply. */
8917 char sane_open ();
8919 main ()
8921 sane_open ();
8923 return 0;
8925 _ACEOF
8926 rm -f conftest.$ac_objext conftest$ac_exeext
8927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8928 (eval $ac_link) 2>&5
8929 ac_status=$?
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } &&
8932 { ac_try='test -s conftest$ac_exeext'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 (eval $ac_try) 2>&5
8935 ac_status=$?
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
8938 ac_cv_lib_sane_sane_open=yes
8939 else
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8943 ac_cv_lib_sane_sane_open=no
8945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8946 LIBS=$ac_check_lib_save_LIBS
8948 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8949 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8950 if test $ac_cv_lib_sane_sane_open = yes; then
8952 cat >>confdefs.h <<\_ACEOF
8953 #define HAVE_SANE 1
8954 _ACEOF
8956 else
8957 SANELIBS=""
8958 SANEINCL=""
8961 else
8962 SANELIBS=""
8963 SANEINCL=""
8967 LIBS="$ac_save_LIBS"
8968 CPPFLAGS="$ac_save_CPPFLAGS"
8974 for ac_header in unicode/ubidi.h
8976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8978 echo "$as_me:$LINENO: checking for $ac_header" >&5
8979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8985 else
8986 # Is the header compilable?
8987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8989 cat >conftest.$ac_ext <<_ACEOF
8990 #line $LINENO "configure"
8991 /* confdefs.h. */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8996 $ac_includes_default
8997 #include <$ac_header>
8998 _ACEOF
8999 rm -f conftest.$ac_objext
9000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9001 (eval $ac_compile) 2>&5
9002 ac_status=$?
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } &&
9005 { ac_try='test -s conftest.$ac_objext'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007 (eval $ac_try) 2>&5
9008 ac_status=$?
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
9011 ac_header_compiler=yes
9012 else
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9016 ac_header_compiler=no
9018 rm -f conftest.$ac_objext conftest.$ac_ext
9019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9020 echo "${ECHO_T}$ac_header_compiler" >&6
9022 # Is the header present?
9023 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9025 cat >conftest.$ac_ext <<_ACEOF
9026 #line $LINENO "configure"
9027 /* confdefs.h. */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9032 #include <$ac_header>
9033 _ACEOF
9034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9036 ac_status=$?
9037 grep -v '^ *+' conftest.er1 >conftest.err
9038 rm -f conftest.er1
9039 cat conftest.err >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } >/dev/null; then
9042 if test -s conftest.err; then
9043 ac_cpp_err=$ac_c_preproc_warn_flag
9044 else
9045 ac_cpp_err=
9047 else
9048 ac_cpp_err=yes
9050 if test -z "$ac_cpp_err"; then
9051 ac_header_preproc=yes
9052 else
9053 echo "$as_me: failed program was:" >&5
9054 sed 's/^/| /' conftest.$ac_ext >&5
9056 ac_header_preproc=no
9058 rm -f conftest.err conftest.$ac_ext
9059 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9060 echo "${ECHO_T}$ac_header_preproc" >&6
9062 # So? What about this header?
9063 case $ac_header_compiler:$ac_header_preproc in
9064 yes:no )
9065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9070 cat <<\_ASBOX
9071 ## ------------------------------------ ##
9072 ## Report this to bug-autoconf@gnu.org. ##
9073 ## ------------------------------------ ##
9074 _ASBOX
9076 sed "s/^/$as_me: WARNING: /" >&2
9078 no:yes )
9079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9086 cat <<\_ASBOX
9087 ## ------------------------------------ ##
9088 ## Report this to bug-autoconf@gnu.org. ##
9089 ## ------------------------------------ ##
9090 _ASBOX
9092 sed "s/^/$as_me: WARNING: /" >&2
9094 esac
9095 echo "$as_me:$LINENO: checking for $ac_header" >&5
9096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9098 echo $ECHO_N "(cached) $ECHO_C" >&6
9099 else
9100 eval "$as_ac_Header=$ac_header_preproc"
9102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9107 cat >>confdefs.h <<_ACEOF
9108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9109 _ACEOF
9113 done
9115 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9116 then
9117 echo "$as_me:$LINENO: checking whether we can statically link the ICU libraries" >&5
9118 echo $ECHO_N "checking whether we can statically link the ICU libraries... $ECHO_C" >&6
9119 if test "${ac_cv_lib_icu+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 else
9122 saved_libs="$LIBS"
9123 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
9124 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}"
9125 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}"
9126 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9127 cat >conftest.$ac_ext <<_ACEOF
9128 #line $LINENO "configure"
9129 /* confdefs.h. */
9130 _ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h. */
9134 #include <unicode/ubidi.h>
9136 main ()
9138 ubidi_open()
9140 return 0;
9142 _ACEOF
9143 rm -f conftest.$ac_objext conftest$ac_exeext
9144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9145 (eval $ac_link) 2>&5
9146 ac_status=$?
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); } &&
9149 { ac_try='test -s conftest$ac_exeext'
9150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9151 (eval $ac_try) 2>&5
9152 ac_status=$?
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); }; }; then
9155 ac_cv_lib_icu="yes"
9156 else
9157 echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9160 ac_cv_lib_icu="no"
9162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9163 LIBS="$saved_libs"
9165 echo "$as_me:$LINENO: result: $ac_cv_lib_icu" >&5
9166 echo "${ECHO_T}$ac_cv_lib_icu" >&6
9167 if test "$ac_cv_lib_icu" = "yes"
9168 then
9170 cat >>confdefs.h <<\_ACEOF
9171 #define HAVE_ICU 1
9172 _ACEOF
9174 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9179 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
9180 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9181 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184 ac_check_lib_save_LIBS=$LIBS
9185 LIBS="-lfreetype $X_LIBS $LIBS"
9186 cat >conftest.$ac_ext <<_ACEOF
9187 #line $LINENO "configure"
9188 /* confdefs.h. */
9189 _ACEOF
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h. */
9194 /* Override any gcc2 internal prototype to avoid an error. */
9195 #ifdef __cplusplus
9196 extern "C"
9197 #endif
9198 /* We use char because int might match the return type of a gcc2
9199 builtin and then its argument prototype would still apply. */
9200 char FT_Init_FreeType ();
9202 main ()
9204 FT_Init_FreeType ();
9206 return 0;
9208 _ACEOF
9209 rm -f conftest.$ac_objext conftest$ac_exeext
9210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9211 (eval $ac_link) 2>&5
9212 ac_status=$?
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); } &&
9215 { ac_try='test -s conftest$ac_exeext'
9216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9217 (eval $ac_try) 2>&5
9218 ac_status=$?
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); }; }; then
9221 ac_cv_lib_freetype_FT_Init_FreeType=yes
9222 else
9223 echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9226 ac_cv_lib_freetype_FT_Init_FreeType=no
9228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9229 LIBS=$ac_check_lib_save_LIBS
9231 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
9232 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
9233 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
9234 ft_lib=yes
9235 else
9236 ft_lib=no
9239 if test "$ft_lib" = "no"
9240 then
9241 FREETYPEINCL=""
9242 wine_cv_msg_freetype=no
9243 else
9244 # Extract the first word of "freetype-config", so it can be a program name with args.
9245 set dummy freetype-config; ac_word=$2
9246 echo "$as_me:$LINENO: checking for $ac_word" >&5
9247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9248 if test "${ac_cv_prog_ft_devel+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9250 else
9251 if test -n "$ft_devel"; then
9252 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9253 else
9254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255 for as_dir in $PATH
9257 IFS=$as_save_IFS
9258 test -z "$as_dir" && as_dir=.
9259 for ac_exec_ext in '' $ac_executable_extensions; do
9260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9261 ac_cv_prog_ft_devel="freetype-config"
9262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9263 break 2
9265 done
9266 done
9268 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
9271 ft_devel=$ac_cv_prog_ft_devel
9272 if test -n "$ft_devel"; then
9273 echo "$as_me:$LINENO: result: $ft_devel" >&5
9274 echo "${ECHO_T}$ft_devel" >&6
9275 else
9276 echo "$as_me:$LINENO: result: no" >&5
9277 echo "${ECHO_T}no" >&6
9280 if test "$ft_devel" = "no"
9281 then
9282 # Extract the first word of "freetype2-config", so it can be a program name with args.
9283 set dummy freetype2-config; ac_word=$2
9284 echo "$as_me:$LINENO: checking for $ac_word" >&5
9285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9286 if test "${ac_cv_prog_ft_devel2+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 else
9289 if test -n "$ft_devel2"; then
9290 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9291 else
9292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9293 for as_dir in $PATH
9295 IFS=$as_save_IFS
9296 test -z "$as_dir" && as_dir=.
9297 for ac_exec_ext in '' $ac_executable_extensions; do
9298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9299 ac_cv_prog_ft_devel2="freetype2-config"
9300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9301 break 2
9303 done
9304 done
9306 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9309 ft_devel2=$ac_cv_prog_ft_devel2
9310 if test -n "$ft_devel2"; then
9311 echo "$as_me:$LINENO: result: $ft_devel2" >&5
9312 echo "${ECHO_T}$ft_devel2" >&6
9313 else
9314 echo "$as_me:$LINENO: result: no" >&5
9315 echo "${ECHO_T}no" >&6
9318 if test "$ft_devel2" = "freetype2-config"
9319 then
9320 ft_devel=$ft_devel2
9323 if test "$ft_devel" = "no"
9324 then
9325 FREETYPEINCL=""
9326 wine_cv_msg_freetype=yes
9327 else
9328 FREETYPEINCL=`$ft_devel --cflags`
9329 ac_save_CPPFLAGS="$CPPFLAGS"
9330 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
9339 for ac_header in freetype/freetype.h \
9340 freetype/ftglyph.h \
9341 freetype/tttables.h \
9342 freetype/ftnames.h \
9343 freetype/ftsnames.h \
9344 freetype/ttnameid.h \
9345 freetype/ftoutln.h \
9346 freetype/internal/sfnt.h
9348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9350 echo "$as_me:$LINENO: checking for $ac_header" >&5
9351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9353 echo $ECHO_N "(cached) $ECHO_C" >&6
9355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9357 else
9358 # Is the header compilable?
9359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9361 cat >conftest.$ac_ext <<_ACEOF
9362 #line $LINENO "configure"
9363 /* confdefs.h. */
9364 _ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368 $ac_includes_default
9369 #include <$ac_header>
9370 _ACEOF
9371 rm -f conftest.$ac_objext
9372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9373 (eval $ac_compile) 2>&5
9374 ac_status=$?
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } &&
9377 { ac_try='test -s conftest.$ac_objext'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 (eval $ac_try) 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; }; then
9383 ac_header_compiler=yes
9384 else
9385 echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9388 ac_header_compiler=no
9390 rm -f conftest.$ac_objext conftest.$ac_ext
9391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9392 echo "${ECHO_T}$ac_header_compiler" >&6
9394 # Is the header present?
9395 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9397 cat >conftest.$ac_ext <<_ACEOF
9398 #line $LINENO "configure"
9399 /* confdefs.h. */
9400 _ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h. */
9404 #include <$ac_header>
9405 _ACEOF
9406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9408 ac_status=$?
9409 grep -v '^ *+' conftest.er1 >conftest.err
9410 rm -f conftest.er1
9411 cat conftest.err >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } >/dev/null; then
9414 if test -s conftest.err; then
9415 ac_cpp_err=$ac_c_preproc_warn_flag
9416 else
9417 ac_cpp_err=
9419 else
9420 ac_cpp_err=yes
9422 if test -z "$ac_cpp_err"; then
9423 ac_header_preproc=yes
9424 else
9425 echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9428 ac_header_preproc=no
9430 rm -f conftest.err conftest.$ac_ext
9431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9432 echo "${ECHO_T}$ac_header_preproc" >&6
9434 # So? What about this header?
9435 case $ac_header_compiler:$ac_header_preproc in
9436 yes:no )
9437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9442 cat <<\_ASBOX
9443 ## ------------------------------------ ##
9444 ## Report this to bug-autoconf@gnu.org. ##
9445 ## ------------------------------------ ##
9446 _ASBOX
9448 sed "s/^/$as_me: WARNING: /" >&2
9450 no:yes )
9451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9458 cat <<\_ASBOX
9459 ## ------------------------------------ ##
9460 ## Report this to bug-autoconf@gnu.org. ##
9461 ## ------------------------------------ ##
9462 _ASBOX
9464 sed "s/^/$as_me: WARNING: /" >&2
9466 esac
9467 echo "$as_me:$LINENO: checking for $ac_header" >&5
9468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 else
9472 eval "$as_ac_Header=$ac_header_preproc"
9474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9479 cat >>confdefs.h <<_ACEOF
9480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9481 _ACEOF
9485 done
9487 cat >conftest.$ac_ext <<_ACEOF
9488 #line $LINENO "configure"
9489 /* confdefs.h. */
9490 _ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h. */
9494 #include <ft2build.h>
9495 #include <freetype/fttrigon.h>
9496 _ACEOF
9497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9499 ac_status=$?
9500 grep -v '^ *+' conftest.er1 >conftest.err
9501 rm -f conftest.er1
9502 cat conftest.err >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } >/dev/null; then
9505 if test -s conftest.err; then
9506 ac_cpp_err=$ac_c_preproc_warn_flag
9507 else
9508 ac_cpp_err=
9510 else
9511 ac_cpp_err=yes
9513 if test -z "$ac_cpp_err"; then
9515 cat >>confdefs.h <<\_ACEOF
9516 #define HAVE_FREETYPE_FTTRIGON_H 1
9517 _ACEOF
9519 wine_cv_fttrigon=yes
9520 else
9521 echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.$ac_ext >&5
9524 wine_cv_fttrigon=no
9526 rm -f conftest.err conftest.$ac_ext
9527 CPPFLAGS="$ac_save_CPPFLAGS"
9528 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
9529 then
9531 cat >>confdefs.h <<\_ACEOF
9532 #define HAVE_FREETYPE 1
9533 _ACEOF
9535 wine_cv_msg_freetype=no
9536 else
9537 FREETYPEINCL=""
9538 wine_cv_msg_freetype=yes
9544 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
9545 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9546 if test "${ac_cv_c_ppdev+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549 cat >conftest.$ac_ext <<_ACEOF
9550 #line $LINENO "configure"
9551 /* confdefs.h. */
9552 _ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9556 #include <linux/ppdev.h>
9558 main ()
9560 ioctl (1,PPCLAIM,0)
9562 return 0;
9564 _ACEOF
9565 rm -f conftest.$ac_objext
9566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9567 (eval $ac_compile) 2>&5
9568 ac_status=$?
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } &&
9571 { ac_try='test -s conftest.$ac_objext'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 (eval $ac_try) 2>&5
9574 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
9577 ac_cv_c_ppdev="yes"
9578 else
9579 echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9582 ac_cv_c_ppdev="no"
9584 rm -f conftest.$ac_objext conftest.$ac_ext
9587 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
9588 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
9589 if test "$ac_cv_c_ppdev" = "yes"
9590 then
9592 cat >>confdefs.h <<\_ACEOF
9593 #define HAVE_PPDEV 1
9594 _ACEOF
9598 echo "$as_me:$LINENO: checking for va_copy" >&5
9599 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9600 if test "${ac_cv_c_va_copy+set}" = set; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9602 else
9603 cat >conftest.$ac_ext <<_ACEOF
9604 #line $LINENO "configure"
9605 /* confdefs.h. */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9610 #include <stdarg.h>
9612 main ()
9614 va_list ap1, ap2;
9615 va_copy(ap1,ap2);
9618 return 0;
9620 _ACEOF
9621 rm -f conftest.$ac_objext conftest$ac_exeext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9623 (eval $ac_link) 2>&5
9624 ac_status=$?
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } &&
9627 { ac_try='test -s conftest$ac_exeext'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 (eval $ac_try) 2>&5
9630 ac_status=$?
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 ac_cv_c_va_copy="yes"
9634 else
9635 echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9638 ac_cv_c_va_copy="no"
9640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9643 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
9644 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
9645 if test "$ac_cv_c_va_copy" = "yes"
9646 then
9648 cat >>confdefs.h <<\_ACEOF
9649 #define HAVE_VA_COPY 1
9650 _ACEOF
9653 echo "$as_me:$LINENO: checking for __va_copy" >&5
9654 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9655 if test "${ac_cv_c___va_copy+set}" = set; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9657 else
9658 cat >conftest.$ac_ext <<_ACEOF
9659 #line $LINENO "configure"
9660 /* confdefs.h. */
9661 _ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h. */
9665 #include <stdarg.h>
9667 main ()
9669 va_list ap1, ap2;
9670 __va_copy(ap1,ap2);
9673 return 0;
9675 _ACEOF
9676 rm -f conftest.$ac_objext conftest$ac_exeext
9677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9678 (eval $ac_link) 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } &&
9682 { ac_try='test -s conftest$ac_exeext'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 (eval $ac_try) 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; }; then
9688 ac_cv_c___va_copy="yes"
9689 else
9690 echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9693 ac_cv_c___va_copy="no"
9695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9698 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
9699 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
9700 if test "$ac_cv_c___va_copy" = "yes"
9701 then
9703 cat >>confdefs.h <<\_ACEOF
9704 #define HAVE___VA_COPY 1
9705 _ACEOF
9709 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
9710 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
9711 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 else
9714 cat >conftest.$ac_ext <<_ACEOF
9715 #line $LINENO "configure"
9716 /* confdefs.h. */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 #define _GNU_SOURCE
9722 #include <pthread.h>
9725 main ()
9727 if ((pthread_rwlock_t *) 0)
9728 return 0;
9729 if (sizeof (pthread_rwlock_t))
9730 return 0;
9732 return 0;
9734 _ACEOF
9735 rm -f conftest.$ac_objext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9737 (eval $ac_compile) 2>&5
9738 ac_status=$?
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -s conftest.$ac_objext'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 (eval $ac_try) 2>&5
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9747 ac_cv_type_pthread_rwlock_t=yes
9748 else
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9752 ac_cv_type_pthread_rwlock_t=no
9754 rm -f conftest.$ac_objext conftest.$ac_ext
9756 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
9757 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
9758 if test $ac_cv_type_pthread_rwlock_t = yes; then
9760 cat >>confdefs.h <<_ACEOF
9761 #define HAVE_PTHREAD_RWLOCK_T 1
9762 _ACEOF
9766 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
9767 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
9768 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 else
9771 cat >conftest.$ac_ext <<_ACEOF
9772 #line $LINENO "configure"
9773 /* confdefs.h. */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9778 #define _GNU_SOURCE
9779 #include <pthread.h>
9782 main ()
9784 if ((pthread_rwlockattr_t *) 0)
9785 return 0;
9786 if (sizeof (pthread_rwlockattr_t))
9787 return 0;
9789 return 0;
9791 _ACEOF
9792 rm -f conftest.$ac_objext
9793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9794 (eval $ac_compile) 2>&5
9795 ac_status=$?
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); } &&
9798 { ac_try='test -s conftest.$ac_objext'
9799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800 (eval $ac_try) 2>&5
9801 ac_status=$?
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; }; then
9804 ac_cv_type_pthread_rwlockattr_t=yes
9805 else
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9809 ac_cv_type_pthread_rwlockattr_t=no
9811 rm -f conftest.$ac_objext conftest.$ac_ext
9813 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
9814 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
9815 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
9817 cat >>confdefs.h <<_ACEOF
9818 #define HAVE_PTHREAD_RWLOCKATTR_T 1
9819 _ACEOF
9828 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
9830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9832 echo "$as_me:$LINENO: checking for $ac_header" >&5
9833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9839 else
9840 # Is the header compilable?
9841 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9843 cat >conftest.$ac_ext <<_ACEOF
9844 #line $LINENO "configure"
9845 /* confdefs.h. */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9850 $ac_includes_default
9851 #include <$ac_header>
9852 _ACEOF
9853 rm -f conftest.$ac_objext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9855 (eval $ac_compile) 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try='test -s conftest.$ac_objext'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 (eval $ac_try) 2>&5
9862 ac_status=$?
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9865 ac_header_compiler=yes
9866 else
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9870 ac_header_compiler=no
9872 rm -f conftest.$ac_objext conftest.$ac_ext
9873 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9874 echo "${ECHO_T}$ac_header_compiler" >&6
9876 # Is the header present?
9877 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9879 cat >conftest.$ac_ext <<_ACEOF
9880 #line $LINENO "configure"
9881 /* confdefs.h. */
9882 _ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9886 #include <$ac_header>
9887 _ACEOF
9888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9890 ac_status=$?
9891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } >/dev/null; then
9896 if test -s conftest.err; then
9897 ac_cpp_err=$ac_c_preproc_warn_flag
9898 else
9899 ac_cpp_err=
9901 else
9902 ac_cpp_err=yes
9904 if test -z "$ac_cpp_err"; then
9905 ac_header_preproc=yes
9906 else
9907 echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9910 ac_header_preproc=no
9912 rm -f conftest.err conftest.$ac_ext
9913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9914 echo "${ECHO_T}$ac_header_preproc" >&6
9916 # So? What about this header?
9917 case $ac_header_compiler:$ac_header_preproc in
9918 yes:no )
9919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9924 cat <<\_ASBOX
9925 ## ------------------------------------ ##
9926 ## Report this to bug-autoconf@gnu.org. ##
9927 ## ------------------------------------ ##
9928 _ASBOX
9930 sed "s/^/$as_me: WARNING: /" >&2
9932 no:yes )
9933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9940 cat <<\_ASBOX
9941 ## ------------------------------------ ##
9942 ## Report this to bug-autoconf@gnu.org. ##
9943 ## ------------------------------------ ##
9944 _ASBOX
9946 sed "s/^/$as_me: WARNING: /" >&2
9948 esac
9949 echo "$as_me:$LINENO: checking for $ac_header" >&5
9950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9953 else
9954 eval "$as_ac_Header=$ac_header_preproc"
9956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9961 cat >>confdefs.h <<_ACEOF
9962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9963 _ACEOF
9964 break
9967 done
9970 echo "$as_me:$LINENO: checking for Open Sound System" >&5
9971 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
9972 if test "${ac_cv_c_opensoundsystem+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 else
9975 cat >conftest.$ac_ext <<_ACEOF
9976 #line $LINENO "configure"
9977 /* confdefs.h. */
9978 _ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9983 #if defined(HAVE_SYS_SOUNDCARD_H)
9984 #include <sys/soundcard.h>
9985 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
9986 #include <machine/soundcard.h>
9987 #elif defined(HAVE_SOUNDCARD_H)
9988 #include <soundcard.h>
9989 #endif
9992 main ()
9996 /* check for one of the Open Sound System specific SNDCTL_ defines */
9997 #if !defined(SNDCTL_DSP_STEREO)
9998 #error No open sound system
9999 #endif
10002 return 0;
10004 _ACEOF
10005 rm -f conftest.$ac_objext
10006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10007 (eval $ac_compile) 2>&5
10008 ac_status=$?
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } &&
10011 { ac_try='test -s conftest.$ac_objext'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10014 ac_status=$?
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 ac_cv_c_opensoundsystem="yes"
10018 else
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10022 ac_cv_c_opensoundsystem="no"
10024 rm -f conftest.$ac_objext conftest.$ac_ext
10026 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
10027 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
10029 if test "$ac_cv_c_opensoundsystem" = "yes"
10030 then
10032 cat >>confdefs.h <<\_ACEOF
10033 #define HAVE_OSS 1
10034 _ACEOF
10038 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
10039 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
10040 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 else
10043 cat >conftest.$ac_ext <<_ACEOF
10044 #line $LINENO "configure"
10045 /* confdefs.h. */
10046 _ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h. */
10051 #if defined(HAVE_SYS_SOUNDCARD_H)
10052 #include <sys/soundcard.h>
10053 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10054 #include <machine/soundcard.h>
10055 #elif defined(HAVE_SOUNDCARD_H)
10056 #include <soundcard.h>
10057 #endif
10060 main ()
10064 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
10065 #if !defined(SNDCTL_SEQ_SYNC)
10066 #error No open sound system MIDI interface
10067 #endif
10070 return 0;
10072 _ACEOF
10073 rm -f conftest.$ac_objext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10075 (eval $ac_compile) 2>&5
10076 ac_status=$?
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); } &&
10079 { ac_try='test -s conftest.$ac_objext'
10080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081 (eval $ac_try) 2>&5
10082 ac_status=$?
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; }; then
10085 ac_cv_c_opensoundsystem_midi="yes"
10086 else
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10090 ac_cv_c_opensoundsystem_midi="no"
10092 rm -f conftest.$ac_objext conftest.$ac_ext
10094 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
10095 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
10097 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
10098 then
10100 cat >>confdefs.h <<\_ACEOF
10101 #define HAVE_OSS_MIDI 1
10102 _ACEOF
10106 # Extract the first word of "artsc-config", so it can be a program name with args.
10107 set dummy artsc-config; ac_word=$2
10108 echo "$as_me:$LINENO: checking for $ac_word" >&5
10109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10110 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10112 else
10113 case $ARTSCCONFIG in
10114 [\\/]* | ?:[\\/]*)
10115 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
10118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10119 for as_dir in $PATH
10121 IFS=$as_save_IFS
10122 test -z "$as_dir" && as_dir=.
10123 for ac_exec_ext in '' $ac_executable_extensions; do
10124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10125 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
10126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10127 break 2
10129 done
10130 done
10133 esac
10135 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
10137 if test -n "$ARTSCCONFIG"; then
10138 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
10139 echo "${ECHO_T}$ARTSCCONFIG" >&6
10140 else
10141 echo "$as_me:$LINENO: result: no" >&5
10142 echo "${ECHO_T}no" >&6
10145 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
10146 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
10147 if test "${ac_cv_c_artsserver+set}" = set; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 else
10150 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
10151 then
10152 ac_cv_c_artsserver=no
10153 else
10154 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
10155 ARTSC_LIBS=`$ARTSCCONFIG --libs`
10156 ac_cv_c_artsserver=no
10157 save_CFLAGS="$CFLAGS"
10158 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
10159 cat >conftest.$ac_ext <<_ACEOF
10160 #line $LINENO "configure"
10161 /* confdefs.h. */
10162 _ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10167 #include <artsc.h>
10170 main ()
10173 arts_stream_t stream;
10176 return 0;
10178 _ACEOF
10179 rm -f conftest.$ac_objext
10180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10181 (eval $ac_compile) 2>&5
10182 ac_status=$?
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } &&
10185 { ac_try='test -s conftest.$ac_objext'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10188 ac_status=$?
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; }; then
10192 ac_cv_c_artsserver=yes
10194 else
10195 echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10199 rm -f conftest.$ac_objext conftest.$ac_ext
10200 CFLAGS="$save_CFLAGS"
10203 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
10204 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
10206 if test "$ac_cv_c_artsserver" = "yes"
10207 then
10208 ARTSLIBS=$ARTSC_LIBS
10210 ARTSINCL=$ARTSC_CFLAGS
10214 cat >>confdefs.h <<\_ACEOF
10215 #define HAVE_ARTS 1
10216 _ACEOF
10220 ALSALIBS=""
10224 for ac_header in alsa/asoundlib.h sys/asoundlib.h
10226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10228 echo "$as_me:$LINENO: checking for $ac_header" >&5
10229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10235 else
10236 # Is the header compilable?
10237 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10239 cat >conftest.$ac_ext <<_ACEOF
10240 #line $LINENO "configure"
10241 /* confdefs.h. */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10246 $ac_includes_default
10247 #include <$ac_header>
10248 _ACEOF
10249 rm -f conftest.$ac_objext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251 (eval $ac_compile) 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -s conftest.$ac_objext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 ac_header_compiler=yes
10262 else
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10266 ac_header_compiler=no
10268 rm -f conftest.$ac_objext conftest.$ac_ext
10269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10270 echo "${ECHO_T}$ac_header_compiler" >&6
10272 # Is the header present?
10273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10275 cat >conftest.$ac_ext <<_ACEOF
10276 #line $LINENO "configure"
10277 /* confdefs.h. */
10278 _ACEOF
10279 cat confdefs.h >>conftest.$ac_ext
10280 cat >>conftest.$ac_ext <<_ACEOF
10281 /* end confdefs.h. */
10282 #include <$ac_header>
10283 _ACEOF
10284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10286 ac_status=$?
10287 grep -v '^ *+' conftest.er1 >conftest.err
10288 rm -f conftest.er1
10289 cat conftest.err >&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); } >/dev/null; then
10292 if test -s conftest.err; then
10293 ac_cpp_err=$ac_c_preproc_warn_flag
10294 else
10295 ac_cpp_err=
10297 else
10298 ac_cpp_err=yes
10300 if test -z "$ac_cpp_err"; then
10301 ac_header_preproc=yes
10302 else
10303 echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10306 ac_header_preproc=no
10308 rm -f conftest.err conftest.$ac_ext
10309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10310 echo "${ECHO_T}$ac_header_preproc" >&6
10312 # So? What about this header?
10313 case $ac_header_compiler:$ac_header_preproc in
10314 yes:no )
10315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10320 cat <<\_ASBOX
10321 ## ------------------------------------ ##
10322 ## Report this to bug-autoconf@gnu.org. ##
10323 ## ------------------------------------ ##
10324 _ASBOX
10326 sed "s/^/$as_me: WARNING: /" >&2
10328 no:yes )
10329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10336 cat <<\_ASBOX
10337 ## ------------------------------------ ##
10338 ## Report this to bug-autoconf@gnu.org. ##
10339 ## ------------------------------------ ##
10340 _ASBOX
10342 sed "s/^/$as_me: WARNING: /" >&2
10344 esac
10345 echo "$as_me:$LINENO: checking for $ac_header" >&5
10346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10349 else
10350 eval "$as_ac_Header=$ac_header_preproc"
10352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10357 cat >>confdefs.h <<_ACEOF
10358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10359 _ACEOF
10360 break
10363 done
10365 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10366 then
10367 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
10368 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
10369 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10371 else
10372 ac_check_lib_save_LIBS=$LIBS
10373 LIBS="-lasound $LIBS"
10374 cat >conftest.$ac_ext <<_ACEOF
10375 #line $LINENO "configure"
10376 /* confdefs.h. */
10377 _ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10382 /* Override any gcc2 internal prototype to avoid an error. */
10383 #ifdef __cplusplus
10384 extern "C"
10385 #endif
10386 /* We use char because int might match the return type of a gcc2
10387 builtin and then its argument prototype would still apply. */
10388 char snd_pcm_open ();
10390 main ()
10392 snd_pcm_open ();
10394 return 0;
10396 _ACEOF
10397 rm -f conftest.$ac_objext conftest$ac_exeext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10399 (eval $ac_link) 2>&5
10400 ac_status=$?
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); } &&
10403 { ac_try='test -s conftest$ac_exeext'
10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10406 ac_status=$?
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
10409 ac_cv_lib_asound_snd_pcm_open=yes
10410 else
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10414 ac_cv_lib_asound_snd_pcm_open=no
10416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10417 LIBS=$ac_check_lib_save_LIBS
10419 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
10420 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
10421 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
10423 cat >>confdefs.h <<\_ACEOF
10424 #define HAVE_ALSA 1
10425 _ACEOF
10427 ALSALIBS="-lasound"
10433 AUDIOIOLIBS=""
10436 for ac_header in libaudioio.h
10438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10440 echo "$as_me:$LINENO: checking for $ac_header" >&5
10441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10447 else
10448 # Is the header compilable?
10449 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10451 cat >conftest.$ac_ext <<_ACEOF
10452 #line $LINENO "configure"
10453 /* confdefs.h. */
10454 _ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h. */
10458 $ac_includes_default
10459 #include <$ac_header>
10460 _ACEOF
10461 rm -f conftest.$ac_objext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10463 (eval $ac_compile) 2>&5
10464 ac_status=$?
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); } &&
10467 { ac_try='test -s conftest.$ac_objext'
10468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469 (eval $ac_try) 2>&5
10470 ac_status=$?
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; }; then
10473 ac_header_compiler=yes
10474 else
10475 echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10478 ac_header_compiler=no
10480 rm -f conftest.$ac_objext conftest.$ac_ext
10481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10482 echo "${ECHO_T}$ac_header_compiler" >&6
10484 # Is the header present?
10485 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10487 cat >conftest.$ac_ext <<_ACEOF
10488 #line $LINENO "configure"
10489 /* confdefs.h. */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10494 #include <$ac_header>
10495 _ACEOF
10496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10498 ac_status=$?
10499 grep -v '^ *+' conftest.er1 >conftest.err
10500 rm -f conftest.er1
10501 cat conftest.err >&5
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); } >/dev/null; then
10504 if test -s conftest.err; then
10505 ac_cpp_err=$ac_c_preproc_warn_flag
10506 else
10507 ac_cpp_err=
10509 else
10510 ac_cpp_err=yes
10512 if test -z "$ac_cpp_err"; then
10513 ac_header_preproc=yes
10514 else
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10518 ac_header_preproc=no
10520 rm -f conftest.err conftest.$ac_ext
10521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10522 echo "${ECHO_T}$ac_header_preproc" >&6
10524 # So? What about this header?
10525 case $ac_header_compiler:$ac_header_preproc in
10526 yes:no )
10527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10532 cat <<\_ASBOX
10533 ## ------------------------------------ ##
10534 ## Report this to bug-autoconf@gnu.org. ##
10535 ## ------------------------------------ ##
10536 _ASBOX
10538 sed "s/^/$as_me: WARNING: /" >&2
10540 no:yes )
10541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10548 cat <<\_ASBOX
10549 ## ------------------------------------ ##
10550 ## Report this to bug-autoconf@gnu.org. ##
10551 ## ------------------------------------ ##
10552 _ASBOX
10554 sed "s/^/$as_me: WARNING: /" >&2
10556 esac
10557 echo "$as_me:$LINENO: checking for $ac_header" >&5
10558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
10561 else
10562 eval "$as_ac_Header=$ac_header_preproc"
10564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10569 cat >>confdefs.h <<_ACEOF
10570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10571 _ACEOF
10572 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10573 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10574 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10576 else
10577 ac_check_lib_save_LIBS=$LIBS
10578 LIBS="-laudioio $LIBS"
10579 cat >conftest.$ac_ext <<_ACEOF
10580 #line $LINENO "configure"
10581 /* confdefs.h. */
10582 _ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h. */
10587 /* Override any gcc2 internal prototype to avoid an error. */
10588 #ifdef __cplusplus
10589 extern "C"
10590 #endif
10591 /* We use char because int might match the return type of a gcc2
10592 builtin and then its argument prototype would still apply. */
10593 char AudioIOGetVersion ();
10595 main ()
10597 AudioIOGetVersion ();
10599 return 0;
10601 _ACEOF
10602 rm -f conftest.$ac_objext conftest$ac_exeext
10603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10604 (eval $ac_link) 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } &&
10608 { ac_try='test -s conftest$ac_exeext'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10611 ac_status=$?
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; }; then
10614 ac_cv_lib_audioio_AudioIOGetVersion=yes
10615 else
10616 echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.$ac_ext >&5
10619 ac_cv_lib_audioio_AudioIOGetVersion=no
10621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10622 LIBS=$ac_check_lib_save_LIBS
10624 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10625 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
10626 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
10627 AUDIOIOLIBS="-laudioio"
10629 cat >>confdefs.h <<\_ACEOF
10630 #define HAVE_LIBAUDIOIO 1
10631 _ACEOF
10637 done
10642 for ac_header in capi20.h
10644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10646 echo "$as_me:$LINENO: checking for $ac_header" >&5
10647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10649 echo $ECHO_N "(cached) $ECHO_C" >&6
10651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10653 else
10654 # Is the header compilable?
10655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10657 cat >conftest.$ac_ext <<_ACEOF
10658 #line $LINENO "configure"
10659 /* confdefs.h. */
10660 _ACEOF
10661 cat confdefs.h >>conftest.$ac_ext
10662 cat >>conftest.$ac_ext <<_ACEOF
10663 /* end confdefs.h. */
10664 $ac_includes_default
10665 #include <$ac_header>
10666 _ACEOF
10667 rm -f conftest.$ac_objext
10668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10669 (eval $ac_compile) 2>&5
10670 ac_status=$?
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try='test -s conftest.$ac_objext'
10674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675 (eval $ac_try) 2>&5
10676 ac_status=$?
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; }; then
10679 ac_header_compiler=yes
10680 else
10681 echo "$as_me: failed program was:" >&5
10682 sed 's/^/| /' conftest.$ac_ext >&5
10684 ac_header_compiler=no
10686 rm -f conftest.$ac_objext conftest.$ac_ext
10687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10688 echo "${ECHO_T}$ac_header_compiler" >&6
10690 # Is the header present?
10691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10693 cat >conftest.$ac_ext <<_ACEOF
10694 #line $LINENO "configure"
10695 /* confdefs.h. */
10696 _ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h. */
10700 #include <$ac_header>
10701 _ACEOF
10702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10704 ac_status=$?
10705 grep -v '^ *+' conftest.er1 >conftest.err
10706 rm -f conftest.er1
10707 cat conftest.err >&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } >/dev/null; then
10710 if test -s conftest.err; then
10711 ac_cpp_err=$ac_c_preproc_warn_flag
10712 else
10713 ac_cpp_err=
10715 else
10716 ac_cpp_err=yes
10718 if test -z "$ac_cpp_err"; then
10719 ac_header_preproc=yes
10720 else
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10724 ac_header_preproc=no
10726 rm -f conftest.err conftest.$ac_ext
10727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10728 echo "${ECHO_T}$ac_header_preproc" >&6
10730 # So? What about this header?
10731 case $ac_header_compiler:$ac_header_preproc in
10732 yes:no )
10733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10738 cat <<\_ASBOX
10739 ## ------------------------------------ ##
10740 ## Report this to bug-autoconf@gnu.org. ##
10741 ## ------------------------------------ ##
10742 _ASBOX
10744 sed "s/^/$as_me: WARNING: /" >&2
10746 no:yes )
10747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10754 cat <<\_ASBOX
10755 ## ------------------------------------ ##
10756 ## Report this to bug-autoconf@gnu.org. ##
10757 ## ------------------------------------ ##
10758 _ASBOX
10760 sed "s/^/$as_me: WARNING: /" >&2
10762 esac
10763 echo "$as_me:$LINENO: checking for $ac_header" >&5
10764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 else
10768 eval "$as_ac_Header=$ac_header_preproc"
10770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10775 cat >>confdefs.h <<_ACEOF
10776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10777 _ACEOF
10780 for ac_header in linux/capi.h
10782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10784 echo "$as_me:$LINENO: checking for $ac_header" >&5
10785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10791 else
10792 # Is the header compilable?
10793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10795 cat >conftest.$ac_ext <<_ACEOF
10796 #line $LINENO "configure"
10797 /* confdefs.h. */
10798 _ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10802 $ac_includes_default
10803 #include <$ac_header>
10804 _ACEOF
10805 rm -f conftest.$ac_objext
10806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10807 (eval $ac_compile) 2>&5
10808 ac_status=$?
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } &&
10811 { ac_try='test -s conftest.$ac_objext'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; }; then
10817 ac_header_compiler=yes
10818 else
10819 echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10822 ac_header_compiler=no
10824 rm -f conftest.$ac_objext conftest.$ac_ext
10825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10826 echo "${ECHO_T}$ac_header_compiler" >&6
10828 # Is the header present?
10829 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10831 cat >conftest.$ac_ext <<_ACEOF
10832 #line $LINENO "configure"
10833 /* confdefs.h. */
10834 _ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h. */
10838 #include <$ac_header>
10839 _ACEOF
10840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10842 ac_status=$?
10843 grep -v '^ *+' conftest.er1 >conftest.err
10844 rm -f conftest.er1
10845 cat conftest.err >&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } >/dev/null; then
10848 if test -s conftest.err; then
10849 ac_cpp_err=$ac_c_preproc_warn_flag
10850 else
10851 ac_cpp_err=
10853 else
10854 ac_cpp_err=yes
10856 if test -z "$ac_cpp_err"; then
10857 ac_header_preproc=yes
10858 else
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10862 ac_header_preproc=no
10864 rm -f conftest.err conftest.$ac_ext
10865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10866 echo "${ECHO_T}$ac_header_preproc" >&6
10868 # So? What about this header?
10869 case $ac_header_compiler:$ac_header_preproc in
10870 yes:no )
10871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10876 cat <<\_ASBOX
10877 ## ------------------------------------ ##
10878 ## Report this to bug-autoconf@gnu.org. ##
10879 ## ------------------------------------ ##
10880 _ASBOX
10882 sed "s/^/$as_me: WARNING: /" >&2
10884 no:yes )
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10892 cat <<\_ASBOX
10893 ## ------------------------------------ ##
10894 ## Report this to bug-autoconf@gnu.org. ##
10895 ## ------------------------------------ ##
10896 _ASBOX
10898 sed "s/^/$as_me: WARNING: /" >&2
10900 esac
10901 echo "$as_me:$LINENO: checking for $ac_header" >&5
10902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10905 else
10906 eval "$as_ac_Header=$ac_header_preproc"
10908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10913 cat >>confdefs.h <<_ACEOF
10914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10915 _ACEOF
10917 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
10918 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
10919 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
10920 echo $ECHO_N "(cached) $ECHO_C" >&6
10921 else
10922 ac_check_lib_save_LIBS=$LIBS
10923 LIBS="-lcapi20 $LIBS"
10924 cat >conftest.$ac_ext <<_ACEOF
10925 #line $LINENO "configure"
10926 /* confdefs.h. */
10927 _ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10932 /* Override any gcc2 internal prototype to avoid an error. */
10933 #ifdef __cplusplus
10934 extern "C"
10935 #endif
10936 /* We use char because int might match the return type of a gcc2
10937 builtin and then its argument prototype would still apply. */
10938 char capi20_register ();
10940 main ()
10942 capi20_register ();
10944 return 0;
10946 _ACEOF
10947 rm -f conftest.$ac_objext conftest$ac_exeext
10948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10949 (eval $ac_link) 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); } &&
10953 { ac_try='test -s conftest$ac_exeext'
10954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955 (eval $ac_try) 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; }; then
10959 ac_cv_lib_capi20_capi20_register=yes
10960 else
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 ac_cv_lib_capi20_capi20_register=no
10966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10967 LIBS=$ac_check_lib_save_LIBS
10969 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
10970 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
10971 if test $ac_cv_lib_capi20_capi20_register = yes; then
10974 cat >>confdefs.h <<\_ACEOF
10975 #define HAVE_CAPI4LINUX 1
10976 _ACEOF
10978 CAPI4LINUXLIBS="-lcapi20"
10986 done
10991 done
10995 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
10996 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
10997 if test "${ac_cv_mmap64_works+set}" = set; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
10999 else
11000 if test "$cross_compiling" = yes; then
11001 ac_cv_mmap64_works="no"
11002 else
11003 cat >conftest.$ac_ext <<_ACEOF
11004 #line $LINENO "configure"
11005 /* confdefs.h. */
11006 _ACEOF
11007 cat confdefs.h >>conftest.$ac_ext
11008 cat >>conftest.$ac_ext <<_ACEOF
11009 /* end confdefs.h. */
11011 #define _FILE_OFFSET_BITS 64
11012 #include <stdio.h>
11013 #include <unistd.h>
11014 #include <fcntl.h>
11015 #include <sys/mman.h>
11016 #include <errno.h>
11018 int main(int argc,char **argv) {
11019 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
11020 if (fd == -1) exit(1);
11022 unlink("conftest.map");
11024 write(fd,"test",4);
11026 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
11027 (errno == EINVAL)
11029 exit(1);
11031 close(fd);
11032 fprintf(stderr,"success!\n");
11033 exit(0);
11037 _ACEOF
11038 rm -f conftest$ac_exeext
11039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11040 (eval $ac_link) 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11049 ac_cv_mmap64_works="yes"
11050 else
11051 echo "$as_me: program exited with status $ac_status" >&5
11052 echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11055 ( exit $ac_status )
11056 ac_cv_mmap64_works="no"
11058 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11061 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
11062 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
11064 if test "$ac_cv_mmap64_works" = "yes"
11065 then
11067 cat >>confdefs.h <<\_ACEOF
11068 #define _FILE_OFFSET_BITS 64
11069 _ACEOF
11074 EXTRACFLAGS=""
11076 if test "x${GCC}" = "xyes"
11077 then
11078 EXTRACFLAGS=-Wall
11080 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
11081 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
11082 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 else
11085 if test "$cross_compiling" = yes; then
11086 ac_cv_c_gcc_strength_bug="yes"
11087 else
11088 cat >conftest.$ac_ext <<_ACEOF
11089 #line $LINENO "configure"
11090 /* confdefs.h. */
11091 _ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h. */
11096 int L[4] = {0,1,2,3};
11097 int main(void) {
11098 static int Array[3];
11099 unsigned int B = 3;
11100 int i;
11101 for(i=0; i<B; i++) Array[i] = i - 3;
11102 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11103 L[i] = 4;
11105 exit( Array[1] != -2 || L[2] != 3);
11107 _ACEOF
11108 rm -f conftest$ac_exeext
11109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11110 (eval $ac_link) 2>&5
11111 ac_status=$?
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115 (eval $ac_try) 2>&5
11116 ac_status=$?
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
11119 ac_cv_c_gcc_strength_bug="no"
11120 else
11121 echo "$as_me: program exited with status $ac_status" >&5
11122 echo "$as_me: failed program was:" >&5
11123 sed 's/^/| /' conftest.$ac_ext >&5
11125 ( exit $ac_status )
11126 ac_cv_c_gcc_strength_bug="yes"
11128 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11131 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
11132 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
11133 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11134 then
11135 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11138 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
11139 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
11140 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 else
11143 ac_wine_try_cflags_saved=$CFLAGS
11144 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
11145 cat >conftest.$ac_ext <<_ACEOF
11146 #line $LINENO "configure"
11147 /* confdefs.h. */
11148 _ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h. */
11154 main ()
11158 return 0;
11160 _ACEOF
11161 rm -f conftest.$ac_objext conftest$ac_exeext
11162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11163 (eval $ac_link) 2>&5
11164 ac_status=$?
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } &&
11167 { ac_try='test -s conftest$ac_exeext'
11168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169 (eval $ac_try) 2>&5
11170 ac_status=$?
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; }; then
11173 ac_cv_c_gcc_stack_boundary="yes"
11174 else
11175 echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11178 ac_cv_c_gcc_stack_boundary="no"
11180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11181 CFLAGS=$ac_wine_try_cflags_saved
11183 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
11184 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
11185 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
11186 then
11187 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
11190 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
11191 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
11192 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11194 else
11195 ac_wine_try_cflags_saved=$CFLAGS
11196 CFLAGS="$CFLAGS -fno-strict-aliasing"
11197 cat >conftest.$ac_ext <<_ACEOF
11198 #line $LINENO "configure"
11199 /* confdefs.h. */
11200 _ACEOF
11201 cat confdefs.h >>conftest.$ac_ext
11202 cat >>conftest.$ac_ext <<_ACEOF
11203 /* end confdefs.h. */
11206 main ()
11210 return 0;
11212 _ACEOF
11213 rm -f conftest.$ac_objext conftest$ac_exeext
11214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11215 (eval $ac_link) 2>&5
11216 ac_status=$?
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } &&
11219 { ac_try='test -s conftest$ac_exeext'
11220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11221 (eval $ac_try) 2>&5
11222 ac_status=$?
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; }; then
11225 ac_cv_c_gcc_no_strict_aliasing="yes"
11226 else
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11230 ac_cv_c_gcc_no_strict_aliasing="no"
11232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11233 CFLAGS=$ac_wine_try_cflags_saved
11235 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
11236 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
11237 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
11238 then
11239 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11242 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
11243 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
11244 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11246 else
11247 ac_wine_try_cflags_saved=$CFLAGS
11248 CFLAGS="$CFLAGS -gstabs+"
11249 cat >conftest.$ac_ext <<_ACEOF
11250 #line $LINENO "configure"
11251 /* confdefs.h. */
11252 _ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h. */
11258 main ()
11262 return 0;
11264 _ACEOF
11265 rm -f conftest.$ac_objext conftest$ac_exeext
11266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11267 (eval $ac_link) 2>&5
11268 ac_status=$?
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } &&
11271 { ac_try='test -s conftest$ac_exeext'
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11274 ac_status=$?
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; }; then
11277 ac_cv_c_gcc_gstabs="yes"
11278 else
11279 echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11282 ac_cv_c_gcc_gstabs="no"
11284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11285 CFLAGS=$ac_wine_try_cflags_saved
11287 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
11288 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
11289 if test "$ac_cv_c_gcc_gstabs" = "yes"
11290 then
11291 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
11294 saved_CFLAGS="$CFLAGS"
11295 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
11296 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
11297 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
11298 if test "${ac_cv_c_string_h_warnings+set}" = set; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 else
11301 cat >conftest.$ac_ext <<_ACEOF
11302 #line $LINENO "configure"
11303 /* confdefs.h. */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308 #include <string.h>
11310 main ()
11314 return 0;
11316 _ACEOF
11317 rm -f conftest.$ac_objext
11318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11319 (eval $ac_compile) 2>&5
11320 ac_status=$?
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } &&
11323 { ac_try='test -s conftest.$ac_objext'
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11326 ac_status=$?
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; }; then
11329 ac_cv_c_string_h_warnings=no
11330 else
11331 echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.$ac_ext >&5
11334 ac_cv_c_string_h_warnings=yes
11336 rm -f conftest.$ac_objext conftest.$ac_ext
11338 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
11339 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
11340 CFLAGS="$saved_CFLAGS"
11341 if test "$ac_cv_c_string_h_warnings" = "no"
11342 then
11343 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
11348 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
11349 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
11350 if test "${ac_cv_asm_func_def+set}" = set; then
11351 echo $ECHO_N "(cached) $ECHO_C" >&6
11352 else
11353 cat >conftest.$ac_ext <<_ACEOF
11354 #line $LINENO "configure"
11355 /* confdefs.h. */
11356 _ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h. */
11360 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"); }
11363 main ()
11367 return 0;
11369 _ACEOF
11370 rm -f conftest.$ac_objext conftest$ac_exeext
11371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11372 (eval $ac_link) 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } &&
11376 { ac_try='test -s conftest$ac_exeext'
11377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378 (eval $ac_try) 2>&5
11379 ac_status=$?
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; }; then
11382 ac_cv_asm_func_def=".def"
11383 else
11384 echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.$ac_ext >&5
11387 cat >conftest.$ac_ext <<_ACEOF
11388 #line $LINENO "configure"
11389 /* confdefs.h. */
11390 _ACEOF
11391 cat confdefs.h >>conftest.$ac_ext
11392 cat >>conftest.$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11394 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
11397 main ()
11401 return 0;
11403 _ACEOF
11404 rm -f conftest.$ac_objext conftest$ac_exeext
11405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11406 (eval $ac_link) 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } &&
11410 { ac_try='test -s conftest$ac_exeext'
11411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412 (eval $ac_try) 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; }; then
11416 ac_cv_asm_func_def=".type @function"
11417 else
11418 echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11421 cat >conftest.$ac_ext <<_ACEOF
11422 #line $LINENO "configure"
11423 /* confdefs.h. */
11424 _ACEOF
11425 cat confdefs.h >>conftest.$ac_ext
11426 cat >>conftest.$ac_ext <<_ACEOF
11427 /* end confdefs.h. */
11428 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
11431 main ()
11435 return 0;
11437 _ACEOF
11438 rm -f conftest.$ac_objext conftest$ac_exeext
11439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11440 (eval $ac_link) 2>&5
11441 ac_status=$?
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } &&
11444 { ac_try='test -s conftest$ac_exeext'
11445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446 (eval $ac_try) 2>&5
11447 ac_status=$?
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; }; then
11450 ac_cv_asm_func_def=".type 2"
11451 else
11452 echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.$ac_ext >&5
11455 ac_cv_asm_func_def="unknown"
11457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11463 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
11464 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
11468 case "$ac_cv_asm_func_def" in
11469 ".def")
11470 cat >>confdefs.h <<\_ACEOF
11471 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
11472 _ACEOF
11474 ".type @function")
11475 cat >>confdefs.h <<\_ACEOF
11476 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
11477 _ACEOF
11479 ".type 2")
11480 cat >>confdefs.h <<\_ACEOF
11481 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
11482 _ACEOF
11485 cat >>confdefs.h <<\_ACEOF
11486 #define __ASM_FUNC(name) ""
11487 _ACEOF
11489 esac
11492 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
11493 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
11494 if test "${ac_cv_c_extern_prefix+set}" = set; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 else
11497 cat >conftest.$ac_ext <<_ACEOF
11498 #line $LINENO "configure"
11499 /* confdefs.h. */
11500 _ACEOF
11501 cat confdefs.h >>conftest.$ac_ext
11502 cat >>conftest.$ac_ext <<_ACEOF
11503 /* end confdefs.h. */
11504 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
11505 extern int ac_test;
11507 main ()
11509 if (ac_test) return 1
11511 return 0;
11513 _ACEOF
11514 rm -f conftest.$ac_objext conftest$ac_exeext
11515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11516 (eval $ac_link) 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } &&
11520 { ac_try='test -s conftest$ac_exeext'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11523 ac_status=$?
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }; then
11526 ac_cv_c_extern_prefix="yes"
11527 else
11528 echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11531 ac_cv_c_extern_prefix="no"
11533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11535 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
11536 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
11540 if test "$ac_cv_c_extern_prefix" = "yes"
11541 then
11542 cat >>confdefs.h <<\_ACEOF
11543 #define __ASM_NAME(name) "_" name
11544 _ACEOF
11546 else
11547 cat >>confdefs.h <<\_ACEOF
11548 #define __ASM_NAME(name) name
11549 _ACEOF
11554 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
11555 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
11556 if test "${ac_cv_c_asm_string+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 else
11559 cat >conftest.$ac_ext <<_ACEOF
11560 #line $LINENO "configure"
11561 /* confdefs.h. */
11562 _ACEOF
11563 cat confdefs.h >>conftest.$ac_ext
11564 cat >>conftest.$ac_ext <<_ACEOF
11565 /* end confdefs.h. */
11566 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
11569 main ()
11573 return 0;
11575 _ACEOF
11576 rm -f conftest.$ac_objext conftest$ac_exeext
11577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11578 (eval $ac_link) 2>&5
11579 ac_status=$?
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } &&
11582 { ac_try='test -s conftest$ac_exeext'
11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584 (eval $ac_try) 2>&5
11585 ac_status=$?
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; }; then
11588 ac_cv_c_asm_string="yes"
11589 else
11590 echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11593 ac_cv_c_asm_string="no"
11595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11597 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
11598 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
11599 if test "$ac_cv_c_asm_string" = "yes"
11600 then
11602 cat >>confdefs.h <<\_ACEOF
11603 #define __ASM_STRING ".string"
11604 _ACEOF
11606 else
11607 echo "$as_me:$LINENO: checking whether assembler accepts .asciz" >&5
11608 echo $ECHO_N "checking whether assembler accepts .asciz... $ECHO_C" >&6
11609 if test "${ac_cv_c_asm_asciz+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11611 else
11612 cat >conftest.$ac_ext <<_ACEOF
11613 #line $LINENO "configure"
11614 /* confdefs.h. */
11615 _ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h. */
11619 void ac_asm(void) { asm(".data\n\t.asciz \"test\"\n\t.text"); }
11622 main ()
11626 return 0;
11628 _ACEOF
11629 rm -f conftest.$ac_objext conftest$ac_exeext
11630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11631 (eval $ac_link) 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); } &&
11635 { ac_try='test -s conftest$ac_exeext'
11636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11637 (eval $ac_try) 2>&5
11638 ac_status=$?
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); }; }; then
11641 ac_cv_c_asm_asciz="yes"
11642 else
11643 echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.$ac_ext >&5
11646 ac_cv_c_asm_asciz="no"
11648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11650 echo "$as_me:$LINENO: result: $ac_cv_c_asm_asciz" >&5
11651 echo "${ECHO_T}$ac_cv_c_asm_asciz" >&6
11652 if test "$ac_cv_c_asm_asciz" = "yes"
11653 then
11654 cat >>confdefs.h <<\_ACEOF
11655 #define __ASM_STRING ".asciz"
11656 _ACEOF
11658 else
11659 cat >>confdefs.h <<\_ACEOF
11660 #define __ASM_STRING ".ascii"
11661 _ACEOF
11667 echo "$as_me:$LINENO: checking whether assembler accepts .short" >&5
11668 echo $ECHO_N "checking whether assembler accepts .short... $ECHO_C" >&6
11669 if test "${ac_cv_c_asm_short+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672 cat >conftest.$ac_ext <<_ACEOF
11673 #line $LINENO "configure"
11674 /* confdefs.h. */
11675 _ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h. */
11679 void ac_asm(void) { asm(".data\n\t.short 1\n\t.text"); }
11682 main ()
11686 return 0;
11688 _ACEOF
11689 rm -f conftest.$ac_objext conftest$ac_exeext
11690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11691 (eval $ac_link) 2>&5
11692 ac_status=$?
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } &&
11695 { ac_try='test -s conftest$ac_exeext'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11698 ac_status=$?
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; }; then
11701 ac_cv_c_asm_short="yes"
11702 else
11703 echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11706 ac_cv_c_asm_short="no"
11708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11710 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
11711 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
11712 if test "$ac_cv_c_asm_short" = "yes"
11713 then
11715 cat >>confdefs.h <<\_ACEOF
11716 #define __ASM_SHORT ".short"
11717 _ACEOF
11719 else
11720 cat >>confdefs.h <<\_ACEOF
11721 #define __ASM_SHORT ".half"
11722 _ACEOF
11727 DLLEXT=""
11729 DLLFLAGS="-D_REENTRANT"
11731 DLLIBS=""
11733 LDSHARED=""
11735 LDDLL=""
11737 LIBEXT="so"
11739 IMPLIBEXT="def"
11742 case $host_os in
11743 cygwin*|mingw32*)
11744 if test -n "$ac_tool_prefix"; then
11745 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11746 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11747 echo "$as_me:$LINENO: checking for $ac_word" >&5
11748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11749 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11751 else
11752 if test -n "$DLLTOOL"; then
11753 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11754 else
11755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11756 for as_dir in $PATH
11758 IFS=$as_save_IFS
11759 test -z "$as_dir" && as_dir=.
11760 for ac_exec_ext in '' $ac_executable_extensions; do
11761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11762 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11764 break 2
11766 done
11767 done
11771 DLLTOOL=$ac_cv_prog_DLLTOOL
11772 if test -n "$DLLTOOL"; then
11773 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11774 echo "${ECHO_T}$DLLTOOL" >&6
11775 else
11776 echo "$as_me:$LINENO: result: no" >&5
11777 echo "${ECHO_T}no" >&6
11781 if test -z "$ac_cv_prog_DLLTOOL"; then
11782 ac_ct_DLLTOOL=$DLLTOOL
11783 # Extract the first word of "dlltool", so it can be a program name with args.
11784 set dummy dlltool; ac_word=$2
11785 echo "$as_me:$LINENO: checking for $ac_word" >&5
11786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11787 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11789 else
11790 if test -n "$ac_ct_DLLTOOL"; then
11791 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11792 else
11793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11794 for as_dir in $PATH
11796 IFS=$as_save_IFS
11797 test -z "$as_dir" && as_dir=.
11798 for ac_exec_ext in '' $ac_executable_extensions; do
11799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11800 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11802 break 2
11804 done
11805 done
11807 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
11810 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11811 if test -n "$ac_ct_DLLTOOL"; then
11812 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11813 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
11814 else
11815 echo "$as_me:$LINENO: result: no" >&5
11816 echo "${ECHO_T}no" >&6
11819 DLLTOOL=$ac_ct_DLLTOOL
11820 else
11821 DLLTOOL="$ac_cv_prog_DLLTOOL"
11824 if test -n "$ac_tool_prefix"; then
11825 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
11826 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
11827 echo "$as_me:$LINENO: checking for $ac_word" >&5
11828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11829 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
11831 else
11832 if test -n "$DLLWRAP"; then
11833 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
11834 else
11835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11836 for as_dir in $PATH
11838 IFS=$as_save_IFS
11839 test -z "$as_dir" && as_dir=.
11840 for ac_exec_ext in '' $ac_executable_extensions; do
11841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11842 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
11843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11844 break 2
11846 done
11847 done
11851 DLLWRAP=$ac_cv_prog_DLLWRAP
11852 if test -n "$DLLWRAP"; then
11853 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
11854 echo "${ECHO_T}$DLLWRAP" >&6
11855 else
11856 echo "$as_me:$LINENO: result: no" >&5
11857 echo "${ECHO_T}no" >&6
11861 if test -z "$ac_cv_prog_DLLWRAP"; then
11862 ac_ct_DLLWRAP=$DLLWRAP
11863 # Extract the first word of "dllwrap", so it can be a program name with args.
11864 set dummy dllwrap; ac_word=$2
11865 echo "$as_me:$LINENO: checking for $ac_word" >&5
11866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11867 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
11868 echo $ECHO_N "(cached) $ECHO_C" >&6
11869 else
11870 if test -n "$ac_ct_DLLWRAP"; then
11871 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
11872 else
11873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874 for as_dir in $PATH
11876 IFS=$as_save_IFS
11877 test -z "$as_dir" && as_dir=.
11878 for ac_exec_ext in '' $ac_executable_extensions; do
11879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11880 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
11881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11882 break 2
11884 done
11885 done
11887 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
11890 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
11891 if test -n "$ac_ct_DLLWRAP"; then
11892 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
11893 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
11894 else
11895 echo "$as_me:$LINENO: result: no" >&5
11896 echo "${ECHO_T}no" >&6
11899 DLLWRAP=$ac_ct_DLLWRAP
11900 else
11901 DLLWRAP="$ac_cv_prog_DLLWRAP"
11904 if test "$DLLWRAP" = "false"; then
11905 LIBEXT="a"
11906 else
11907 LIBEXT="dll"
11909 IMPLIBEXT="a"
11913 for ac_header in dlfcn.h
11915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11917 echo "$as_me:$LINENO: checking for $ac_header" >&5
11918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11920 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11924 else
11925 # Is the header compilable?
11926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11928 cat >conftest.$ac_ext <<_ACEOF
11929 #line $LINENO "configure"
11930 /* confdefs.h. */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11935 $ac_includes_default
11936 #include <$ac_header>
11937 _ACEOF
11938 rm -f conftest.$ac_objext
11939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11940 (eval $ac_compile) 2>&5
11941 ac_status=$?
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); } &&
11944 { ac_try='test -s conftest.$ac_objext'
11945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946 (eval $ac_try) 2>&5
11947 ac_status=$?
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; }; then
11950 ac_header_compiler=yes
11951 else
11952 echo "$as_me: failed program was:" >&5
11953 sed 's/^/| /' conftest.$ac_ext >&5
11955 ac_header_compiler=no
11957 rm -f conftest.$ac_objext conftest.$ac_ext
11958 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11959 echo "${ECHO_T}$ac_header_compiler" >&6
11961 # Is the header present?
11962 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11964 cat >conftest.$ac_ext <<_ACEOF
11965 #line $LINENO "configure"
11966 /* confdefs.h. */
11967 _ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11971 #include <$ac_header>
11972 _ACEOF
11973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11975 ac_status=$?
11976 grep -v '^ *+' conftest.er1 >conftest.err
11977 rm -f conftest.er1
11978 cat conftest.err >&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } >/dev/null; then
11981 if test -s conftest.err; then
11982 ac_cpp_err=$ac_c_preproc_warn_flag
11983 else
11984 ac_cpp_err=
11986 else
11987 ac_cpp_err=yes
11989 if test -z "$ac_cpp_err"; then
11990 ac_header_preproc=yes
11991 else
11992 echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.$ac_ext >&5
11995 ac_header_preproc=no
11997 rm -f conftest.err conftest.$ac_ext
11998 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11999 echo "${ECHO_T}$ac_header_preproc" >&6
12001 # So? What about this header?
12002 case $ac_header_compiler:$ac_header_preproc in
12003 yes:no )
12004 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12005 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12009 cat <<\_ASBOX
12010 ## ------------------------------------ ##
12011 ## Report this to bug-autoconf@gnu.org. ##
12012 ## ------------------------------------ ##
12013 _ASBOX
12015 sed "s/^/$as_me: WARNING: /" >&2
12017 no:yes )
12018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12023 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12025 cat <<\_ASBOX
12026 ## ------------------------------------ ##
12027 ## Report this to bug-autoconf@gnu.org. ##
12028 ## ------------------------------------ ##
12029 _ASBOX
12031 sed "s/^/$as_me: WARNING: /" >&2
12033 esac
12034 echo "$as_me:$LINENO: checking for $ac_header" >&5
12035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12038 else
12039 eval "$as_ac_Header=$ac_header_preproc"
12041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12046 cat >>confdefs.h <<_ACEOF
12047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12048 _ACEOF
12050 for ac_func in dlopen
12052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12053 echo "$as_me:$LINENO: checking for $ac_func" >&5
12054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12055 if eval "test \"\${$as_ac_var+set}\" = set"; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058 cat >conftest.$ac_ext <<_ACEOF
12059 #line $LINENO "configure"
12060 /* confdefs.h. */
12061 _ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12065 /* System header to define __stub macros and hopefully few prototypes,
12066 which can conflict with char $ac_func (); below.
12067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12068 <limits.h> exists even on freestanding compilers. */
12069 #ifdef __STDC__
12070 # include <limits.h>
12071 #else
12072 # include <assert.h>
12073 #endif
12074 /* Override any gcc2 internal prototype to avoid an error. */
12075 #ifdef __cplusplus
12076 extern "C"
12078 #endif
12079 /* We use char because int might match the return type of a gcc2
12080 builtin and then its argument prototype would still apply. */
12081 char $ac_func ();
12082 /* The GNU C library defines this for functions which it implements
12083 to always fail with ENOSYS. Some functions are actually named
12084 something starting with __ and the normal name is an alias. */
12085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12086 choke me
12087 #else
12088 char (*f) () = $ac_func;
12089 #endif
12090 #ifdef __cplusplus
12092 #endif
12095 main ()
12097 return f != $ac_func;
12099 return 0;
12101 _ACEOF
12102 rm -f conftest.$ac_objext conftest$ac_exeext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12104 (eval $ac_link) 2>&5
12105 ac_status=$?
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } &&
12108 { ac_try='test -s conftest$ac_exeext'
12109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110 (eval $ac_try) 2>&5
12111 ac_status=$?
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; }; then
12114 eval "$as_ac_var=yes"
12115 else
12116 echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12119 eval "$as_ac_var=no"
12121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12125 if test `eval echo '${'$as_ac_var'}'` = yes; then
12126 cat >>confdefs.h <<_ACEOF
12127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12128 _ACEOF
12130 else
12131 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12132 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12133 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12135 else
12136 ac_check_lib_save_LIBS=$LIBS
12137 LIBS="-ldl $LIBS"
12138 cat >conftest.$ac_ext <<_ACEOF
12139 #line $LINENO "configure"
12140 /* confdefs.h. */
12141 _ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h. */
12146 /* Override any gcc2 internal prototype to avoid an error. */
12147 #ifdef __cplusplus
12148 extern "C"
12149 #endif
12150 /* We use char because int might match the return type of a gcc2
12151 builtin and then its argument prototype would still apply. */
12152 char dlopen ();
12154 main ()
12156 dlopen ();
12158 return 0;
12160 _ACEOF
12161 rm -f conftest.$ac_objext conftest$ac_exeext
12162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12163 (eval $ac_link) 2>&5
12164 ac_status=$?
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); } &&
12167 { ac_try='test -s conftest$ac_exeext'
12168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169 (eval $ac_try) 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; }; then
12173 ac_cv_lib_dl_dlopen=yes
12174 else
12175 echo "$as_me: failed program was:" >&5
12176 sed 's/^/| /' conftest.$ac_ext >&5
12178 ac_cv_lib_dl_dlopen=no
12180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12181 LIBS=$ac_check_lib_save_LIBS
12183 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12184 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12185 if test $ac_cv_lib_dl_dlopen = yes; then
12187 cat >>confdefs.h <<\_ACEOF
12188 #define HAVE_DLOPEN 1
12189 _ACEOF
12191 DLLIBS="-ldl"
12192 else
12193 LIBEXT="a"
12197 done
12199 else
12200 LIBEXT="a"
12203 done
12206 if test "$LIBEXT" = "so"
12207 then
12208 DLLFLAGS="$DLLFLAGS -fPIC"
12209 DLLEXT=".so"
12210 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
12211 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
12212 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215 ac_wine_try_cflags_saved=$CFLAGS
12216 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
12217 cat >conftest.$ac_ext <<_ACEOF
12218 #line $LINENO "configure"
12219 /* confdefs.h. */
12220 _ACEOF
12221 cat confdefs.h >>conftest.$ac_ext
12222 cat >>conftest.$ac_ext <<_ACEOF
12223 /* end confdefs.h. */
12226 main ()
12230 return 0;
12232 _ACEOF
12233 rm -f conftest.$ac_objext conftest$ac_exeext
12234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12235 (eval $ac_link) 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); } &&
12239 { ac_try='test -s conftest$ac_exeext'
12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12242 ac_status=$?
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; }; then
12245 ac_cv_c_dll_gnuelf="yes"
12246 else
12247 echo "$as_me: failed program was:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12250 ac_cv_c_dll_gnuelf="no"
12252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12253 CFLAGS=$ac_wine_try_cflags_saved
12255 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
12256 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
12257 if test "$ac_cv_c_dll_gnuelf" = "yes"
12258 then
12259 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
12260 LDDLL="\$(CC) -shared -Wl,-Bsymbolic"
12261 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
12262 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
12263 if test "${ac_cv_c_dll_zdefs+set}" = set; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 else
12266 ac_wine_try_cflags_saved=$CFLAGS
12267 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
12268 cat >conftest.$ac_ext <<_ACEOF
12269 #line $LINENO "configure"
12270 /* confdefs.h. */
12271 _ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12277 main ()
12281 return 0;
12283 _ACEOF
12284 rm -f conftest.$ac_objext conftest$ac_exeext
12285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12286 (eval $ac_link) 2>&5
12287 ac_status=$?
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } &&
12290 { ac_try='test -s conftest$ac_exeext'
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; }; then
12296 ac_cv_c_dll_zdefs="yes"
12297 else
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12301 ac_cv_c_dll_zdefs="no"
12303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12304 CFLAGS=$ac_wine_try_cflags_saved
12306 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
12307 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
12308 if test "$ac_cv_c_dll_zdefs" = "yes"
12309 then
12310 LDDLL="$LDDLL,-z,defs"
12312 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x3c000000" >&5
12313 echo $ECHO_N "checking whether we can relocate the executable to 0x3c000000... $ECHO_C" >&6
12314 if test "${ac_cv_ld_reloc_exec+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 else
12317 saved_CFLAGS="$CFLAGS"
12318 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x3c000100"
12319 if test "$cross_compiling" = yes; then
12320 ac_cv_ld_reloc_exec="no"
12321 else
12322 cat >conftest.$ac_ext <<_ACEOF
12323 #line $LINENO "configure"
12324 /* confdefs.h. */
12325 _ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
12329 #include <unistd.h>
12330 int main() { return (sbrk(32*1024*1024) == (void *)-1); }
12331 _ACEOF
12332 rm -f conftest$ac_exeext
12333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12334 (eval $ac_link) 2>&5
12335 ac_status=$?
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; }; then
12343 ac_cv_ld_reloc_exec="yes"
12344 else
12345 echo "$as_me: program exited with status $ac_status" >&5
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12349 ( exit $ac_status )
12350 ac_cv_ld_reloc_exec="no"
12352 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12354 CFLAGS="$saved_CFLAGS"
12356 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
12357 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
12358 if test "$ac_cv_ld_reloc_exec" = "yes"
12359 then
12360 LDEXECFLAGS="-Wl,--section-start,.interp=0x3c000100"
12363 else
12364 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
12365 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
12366 if test "${ac_cv_c_dll_unixware+set}" = set; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12368 else
12369 ac_wine_try_cflags_saved=$CFLAGS
12370 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
12371 cat >conftest.$ac_ext <<_ACEOF
12372 #line $LINENO "configure"
12373 /* confdefs.h. */
12374 _ACEOF
12375 cat confdefs.h >>conftest.$ac_ext
12376 cat >>conftest.$ac_ext <<_ACEOF
12377 /* end confdefs.h. */
12380 main ()
12384 return 0;
12386 _ACEOF
12387 rm -f conftest.$ac_objext conftest$ac_exeext
12388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12389 (eval $ac_link) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } &&
12393 { ac_try='test -s conftest$ac_exeext'
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12396 ac_status=$?
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
12399 ac_cv_c_dll_unixware="yes"
12400 else
12401 echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12404 ac_cv_c_dll_unixware="no"
12406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12407 CFLAGS=$ac_wine_try_cflags_saved
12409 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
12410 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
12411 if test "$ac_cv_c_dll_unixware" = "yes"
12412 then
12413 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
12414 LDDLL="\$(CC) -Wl,-G,-B,symbolic"
12419 CROSSTEST=""
12421 if test "$cross_compiling" = "no"
12422 then
12423 for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc
12425 # Extract the first word of "$ac_prog", so it can be a program name with args.
12426 set dummy $ac_prog; ac_word=$2
12427 echo "$as_me:$LINENO: checking for $ac_word" >&5
12428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12429 if test "${ac_cv_prog_CROSSCC+set}" = set; then
12430 echo $ECHO_N "(cached) $ECHO_C" >&6
12431 else
12432 if test -n "$CROSSCC"; then
12433 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
12434 else
12435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12436 for as_dir in $PATH
12438 IFS=$as_save_IFS
12439 test -z "$as_dir" && as_dir=.
12440 for ac_exec_ext in '' $ac_executable_extensions; do
12441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12442 ac_cv_prog_CROSSCC="$ac_prog"
12443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12444 break 2
12446 done
12447 done
12451 CROSSCC=$ac_cv_prog_CROSSCC
12452 if test -n "$CROSSCC"; then
12453 echo "$as_me:$LINENO: result: $CROSSCC" >&5
12454 echo "${ECHO_T}$CROSSCC" >&6
12455 else
12456 echo "$as_me:$LINENO: result: no" >&5
12457 echo "${ECHO_T}no" >&6
12460 test -n "$CROSSCC" && break
12461 done
12462 test -n "$CROSSCC" || CROSSCC="false"
12464 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool
12466 # Extract the first word of "$ac_prog", so it can be a program name with args.
12467 set dummy $ac_prog; ac_word=$2
12468 echo "$as_me:$LINENO: checking for $ac_word" >&5
12469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12470 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 else
12473 if test -n "$DLLTOOL"; then
12474 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12475 else
12476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 for as_dir in $PATH
12479 IFS=$as_save_IFS
12480 test -z "$as_dir" && as_dir=.
12481 for ac_exec_ext in '' $ac_executable_extensions; do
12482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12483 ac_cv_prog_DLLTOOL="$ac_prog"
12484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12485 break 2
12487 done
12488 done
12492 DLLTOOL=$ac_cv_prog_DLLTOOL
12493 if test -n "$DLLTOOL"; then
12494 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12495 echo "${ECHO_T}$DLLTOOL" >&6
12496 else
12497 echo "$as_me:$LINENO: result: no" >&5
12498 echo "${ECHO_T}no" >&6
12501 test -n "$DLLTOOL" && break
12502 done
12503 test -n "$DLLTOOL" || DLLTOOL="false"
12505 for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres
12507 # Extract the first word of "$ac_prog", so it can be a program name with args.
12508 set dummy $ac_prog; ac_word=$2
12509 echo "$as_me:$LINENO: checking for $ac_word" >&5
12510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12511 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 else
12514 if test -n "$CROSSWINDRES"; then
12515 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
12516 else
12517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12518 for as_dir in $PATH
12520 IFS=$as_save_IFS
12521 test -z "$as_dir" && as_dir=.
12522 for ac_exec_ext in '' $ac_executable_extensions; do
12523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12524 ac_cv_prog_CROSSWINDRES="$ac_prog"
12525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12526 break 2
12528 done
12529 done
12533 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
12534 if test -n "$CROSSWINDRES"; then
12535 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
12536 echo "${ECHO_T}$CROSSWINDRES" >&6
12537 else
12538 echo "$as_me:$LINENO: result: no" >&5
12539 echo "${ECHO_T}no" >&6
12542 test -n "$CROSSWINDRES" && break
12543 done
12544 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
12546 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
12549 esac
12551 if test "$LIBEXT" = "a"; then
12552 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
12553 It is currently not possible to build Wine without shared library
12554 (.so) support to allow transparent switch between .so and .dll files.
12555 If you are using Linux, you will need a newer binutils.
12556 " >&5
12557 echo "$as_me: error: could not find a way to build shared libraries.
12558 It is currently not possible to build Wine without shared library
12559 (.so) support to allow transparent switch between .so and .dll files.
12560 If you are using Linux, you will need a newer binutils.
12561 " >&2;}
12562 { (exit 1); exit 1; }; }
12565 case $build_os in
12566 cygwin*|mingw32*)
12567 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
12570 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
12572 esac
12574 case $host_os in
12575 mingw32*)
12576 CRTLIBS="-lmsvcrt"
12578 esac
12580 case $host_os in
12581 linux*)
12582 WINE_BINARIES="wine-kthread wine-pthread"
12584 if test "x$with_nptl" = "xyes"
12585 then
12586 MAIN_BINARY="wine-pthread"
12588 else
12589 MAIN_BINARY="wine-kthread"
12594 WINE_BINARIES="wine-kthread"
12596 MAIN_BINARY="wine-kthread"
12599 esac
12602 if test "$LIBEXT" = "so"
12603 then
12604 # Extract the first word of "ldd", so it can be a program name with args.
12605 set dummy ldd; ac_word=$2
12606 echo "$as_me:$LINENO: checking for $ac_word" >&5
12607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12608 if test "${ac_cv_path_LDD+set}" = set; then
12609 echo $ECHO_N "(cached) $ECHO_C" >&6
12610 else
12611 case $LDD in
12612 [\\/]* | ?:[\\/]*)
12613 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
12616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12617 as_dummy="/sbin:/usr/sbin:$PATH"
12618 for as_dir in $as_dummy
12620 IFS=$as_save_IFS
12621 test -z "$as_dir" && as_dir=.
12622 for ac_exec_ext in '' $ac_executable_extensions; do
12623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12624 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
12625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12626 break 2
12628 done
12629 done
12631 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
12633 esac
12635 LDD=$ac_cv_path_LDD
12637 if test -n "$LDD"; then
12638 echo "$as_me:$LINENO: result: $LDD" >&5
12639 echo "${ECHO_T}$LDD" >&6
12640 else
12641 echo "$as_me:$LINENO: result: no" >&5
12642 echo "${ECHO_T}no" >&6
12646 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
12647 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
12648 if test "${ac_cv_lib_soname_X11+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12650 else
12651 ac_get_soname_save_LIBS=$LIBS
12652 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
12653 cat >conftest.$ac_ext <<_ACEOF
12654 #line $LINENO "configure"
12655 /* confdefs.h. */
12656 _ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12661 /* Override any gcc2 internal prototype to avoid an error. */
12662 #ifdef __cplusplus
12663 extern "C"
12664 #endif
12665 /* We use char because int might match the return type of a gcc2
12666 builtin and then its argument prototype would still apply. */
12667 char XCreateWindow ();
12669 main ()
12671 XCreateWindow ();
12673 return 0;
12675 _ACEOF
12676 rm -f conftest.$ac_objext conftest$ac_exeext
12677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12678 (eval $ac_link) 2>&5
12679 ac_status=$?
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } &&
12682 { ac_try='test -s conftest$ac_exeext'
12683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684 (eval $ac_try) 2>&5
12685 ac_status=$?
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; }; then
12688 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^.*\(libX11\.so[^ ]*\).*$/\1/'`
12689 if test "x$ac_cv_lib_soname_X11" = "x"
12690 then
12691 ac_cv_lib_soname_X11="libX11.so"
12693 else
12694 echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12697 ac_cv_lib_soname_X11="libX11.so"
12699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12700 LIBS=$ac_get_soname_save_LIBS
12702 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
12703 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
12704 if test "x$ac_cv_lib_soname_X11" != xNONE
12705 then
12706 cat >>confdefs.h <<_ACEOF
12707 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
12708 _ACEOF
12711 echo "$as_me:$LINENO: checking for -lXext soname" >&5
12712 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
12713 if test "${ac_cv_lib_soname_Xext+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 else
12716 ac_get_soname_save_LIBS=$LIBS
12717 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
12718 cat >conftest.$ac_ext <<_ACEOF
12719 #line $LINENO "configure"
12720 /* confdefs.h. */
12721 _ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12726 /* Override any gcc2 internal prototype to avoid an error. */
12727 #ifdef __cplusplus
12728 extern "C"
12729 #endif
12730 /* We use char because int might match the return type of a gcc2
12731 builtin and then its argument prototype would still apply. */
12732 char XextCreateExtension ();
12734 main ()
12736 XextCreateExtension ();
12738 return 0;
12740 _ACEOF
12741 rm -f conftest.$ac_objext conftest$ac_exeext
12742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12743 (eval $ac_link) 2>&5
12744 ac_status=$?
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } &&
12747 { ac_try='test -s conftest$ac_exeext'
12748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12749 (eval $ac_try) 2>&5
12750 ac_status=$?
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); }; }; then
12753 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^.*\(libXext\.so[^ ]*\).*$/\1/'`
12754 if test "x$ac_cv_lib_soname_Xext" = "x"
12755 then
12756 ac_cv_lib_soname_Xext="libXext.so"
12758 else
12759 echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12762 ac_cv_lib_soname_Xext="libXext.so"
12764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12765 LIBS=$ac_get_soname_save_LIBS
12767 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
12768 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
12769 if test "x$ac_cv_lib_soname_Xext" != xNONE
12770 then
12771 cat >>confdefs.h <<_ACEOF
12772 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
12773 _ACEOF
12776 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
12777 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
12778 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12780 else
12781 ac_get_soname_save_LIBS=$LIBS
12782 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
12783 cat >conftest.$ac_ext <<_ACEOF
12784 #line $LINENO "configure"
12785 /* confdefs.h. */
12786 _ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h. */
12791 /* Override any gcc2 internal prototype to avoid an error. */
12792 #ifdef __cplusplus
12793 extern "C"
12794 #endif
12795 /* We use char because int might match the return type of a gcc2
12796 builtin and then its argument prototype would still apply. */
12797 char XRenderQueryExtension ();
12799 main ()
12801 XRenderQueryExtension ();
12803 return 0;
12805 _ACEOF
12806 rm -f conftest.$ac_objext conftest$ac_exeext
12807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12808 (eval $ac_link) 2>&5
12809 ac_status=$?
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
12812 { ac_try='test -s conftest$ac_exeext'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12815 ac_status=$?
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; }; then
12818 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^.*\(libXrender\.so[^ ]*\).*$/\1/'`
12819 if test "x$ac_cv_lib_soname_Xrender" = "x"
12820 then
12821 ac_cv_lib_soname_Xrender="libXrender.so"
12823 else
12824 echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12827 ac_cv_lib_soname_Xrender="libXrender.so"
12829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12830 LIBS=$ac_get_soname_save_LIBS
12832 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
12833 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
12834 if test "x$ac_cv_lib_soname_Xrender" != xNONE
12835 then
12836 cat >>confdefs.h <<_ACEOF
12837 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
12838 _ACEOF
12841 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
12842 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
12843 if test "${ac_cv_lib_soname_freetype+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12845 else
12846 ac_get_soname_save_LIBS=$LIBS
12847 LIBS="-lfreetype $X_LIBS $LIBS"
12848 cat >conftest.$ac_ext <<_ACEOF
12849 #line $LINENO "configure"
12850 /* confdefs.h. */
12851 _ACEOF
12852 cat confdefs.h >>conftest.$ac_ext
12853 cat >>conftest.$ac_ext <<_ACEOF
12854 /* end confdefs.h. */
12856 /* Override any gcc2 internal prototype to avoid an error. */
12857 #ifdef __cplusplus
12858 extern "C"
12859 #endif
12860 /* We use char because int might match the return type of a gcc2
12861 builtin and then its argument prototype would still apply. */
12862 char FT_Init_FreeType ();
12864 main ()
12866 FT_Init_FreeType ();
12868 return 0;
12870 _ACEOF
12871 rm -f conftest.$ac_objext conftest$ac_exeext
12872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12873 (eval $ac_link) 2>&5
12874 ac_status=$?
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); } &&
12877 { ac_try='test -s conftest$ac_exeext'
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12880 ac_status=$?
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; }; then
12883 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^.*\(libfreetype\.so[^ ]*\).*$/\1/'`
12884 if test "x$ac_cv_lib_soname_freetype" = "x"
12885 then
12886 ac_cv_lib_soname_freetype="libfreetype.so"
12888 else
12889 echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.$ac_ext >&5
12892 ac_cv_lib_soname_freetype="libfreetype.so"
12894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12895 LIBS=$ac_get_soname_save_LIBS
12897 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
12898 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
12899 if test "x$ac_cv_lib_soname_freetype" != xNONE
12900 then
12901 cat >>confdefs.h <<_ACEOF
12902 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
12903 _ACEOF
12906 echo "$as_me:$LINENO: checking for -lGL soname" >&5
12907 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
12908 if test "${ac_cv_lib_soname_GL+set}" = set; then
12909 echo $ECHO_N "(cached) $ECHO_C" >&6
12910 else
12911 ac_get_soname_save_LIBS=$LIBS
12912 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
12913 cat >conftest.$ac_ext <<_ACEOF
12914 #line $LINENO "configure"
12915 /* confdefs.h. */
12916 _ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h. */
12921 /* Override any gcc2 internal prototype to avoid an error. */
12922 #ifdef __cplusplus
12923 extern "C"
12924 #endif
12925 /* We use char because int might match the return type of a gcc2
12926 builtin and then its argument prototype would still apply. */
12927 char glXQueryExtension ();
12929 main ()
12931 glXQueryExtension ();
12933 return 0;
12935 _ACEOF
12936 rm -f conftest.$ac_objext conftest$ac_exeext
12937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12938 (eval $ac_link) 2>&5
12939 ac_status=$?
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); } &&
12942 { ac_try='test -s conftest$ac_exeext'
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944 (eval $ac_try) 2>&5
12945 ac_status=$?
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); }; }; then
12948 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^.*\(libGL\.so[^ ]*\).*$/\1/'`
12949 if test "x$ac_cv_lib_soname_GL" = "x"
12950 then
12951 ac_cv_lib_soname_GL="libGL.so"
12953 else
12954 echo "$as_me: failed program was:" >&5
12955 sed 's/^/| /' conftest.$ac_ext >&5
12957 ac_cv_lib_soname_GL="libGL.so"
12959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12960 LIBS=$ac_get_soname_save_LIBS
12962 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
12963 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
12964 if test "x$ac_cv_lib_soname_GL" != xNONE
12965 then
12966 cat >>confdefs.h <<_ACEOF
12967 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
12968 _ACEOF
12971 echo "$as_me:$LINENO: checking for -lcups soname" >&5
12972 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
12973 if test "${ac_cv_lib_soname_cups+set}" = set; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
12975 else
12976 ac_get_soname_save_LIBS=$LIBS
12977 LIBS="-lcups $LIBS"
12978 cat >conftest.$ac_ext <<_ACEOF
12979 #line $LINENO "configure"
12980 /* confdefs.h. */
12981 _ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12986 /* Override any gcc2 internal prototype to avoid an error. */
12987 #ifdef __cplusplus
12988 extern "C"
12989 #endif
12990 /* We use char because int might match the return type of a gcc2
12991 builtin and then its argument prototype would still apply. */
12992 char cupsGetDefault ();
12994 main ()
12996 cupsGetDefault ();
12998 return 0;
13000 _ACEOF
13001 rm -f conftest.$ac_objext conftest$ac_exeext
13002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13003 (eval $ac_link) 2>&5
13004 ac_status=$?
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); } &&
13007 { ac_try='test -s conftest$ac_exeext'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13010 ac_status=$?
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13013 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^.*\(libcups\.so[^ ]*\).*$/\1/'`
13014 if test "x$ac_cv_lib_soname_cups" = "x"
13015 then
13016 ac_cv_lib_soname_cups="libcups.so"
13018 else
13019 echo "$as_me: failed program was:" >&5
13020 sed 's/^/| /' conftest.$ac_ext >&5
13022 ac_cv_lib_soname_cups="libcups.so"
13024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13025 LIBS=$ac_get_soname_save_LIBS
13027 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
13028 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
13029 if test "x$ac_cv_lib_soname_cups" != xNONE
13030 then
13031 cat >>confdefs.h <<_ACEOF
13032 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
13033 _ACEOF
13036 echo "$as_me:$LINENO: checking for -ljack soname" >&5
13037 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
13038 if test "${ac_cv_lib_soname_jack+set}" = set; then
13039 echo $ECHO_N "(cached) $ECHO_C" >&6
13040 else
13041 ac_get_soname_save_LIBS=$LIBS
13042 LIBS="-ljack $LIBS"
13043 cat >conftest.$ac_ext <<_ACEOF
13044 #line $LINENO "configure"
13045 /* confdefs.h. */
13046 _ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h. */
13051 /* Override any gcc2 internal prototype to avoid an error. */
13052 #ifdef __cplusplus
13053 extern "C"
13054 #endif
13055 /* We use char because int might match the return type of a gcc2
13056 builtin and then its argument prototype would still apply. */
13057 char jack_client_new ();
13059 main ()
13061 jack_client_new ();
13063 return 0;
13065 _ACEOF
13066 rm -f conftest.$ac_objext conftest$ac_exeext
13067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13068 (eval $ac_link) 2>&5
13069 ac_status=$?
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } &&
13072 { ac_try='test -s conftest$ac_exeext'
13073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074 (eval $ac_try) 2>&5
13075 ac_status=$?
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; }; then
13078 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^.*\(libjack\.so[^ ]*\).*$/\1/'`
13079 if test "x$ac_cv_lib_soname_jack" = "x"
13080 then
13081 ac_cv_lib_soname_jack="libjack.so"
13083 else
13084 echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13087 ac_cv_lib_soname_jack="libjack.so"
13089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13090 LIBS=$ac_get_soname_save_LIBS
13092 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
13093 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
13094 if test "x$ac_cv_lib_soname_jack" != xNONE
13095 then
13096 cat >>confdefs.h <<_ACEOF
13097 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
13098 _ACEOF
13101 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
13102 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
13103 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
13104 echo $ECHO_N "(cached) $ECHO_C" >&6
13105 else
13106 ac_get_soname_save_LIBS=$LIBS
13107 LIBS="-lfontconfig $LIBS"
13108 cat >conftest.$ac_ext <<_ACEOF
13109 #line $LINENO "configure"
13110 /* confdefs.h. */
13111 _ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h. */
13116 /* Override any gcc2 internal prototype to avoid an error. */
13117 #ifdef __cplusplus
13118 extern "C"
13119 #endif
13120 /* We use char because int might match the return type of a gcc2
13121 builtin and then its argument prototype would still apply. */
13122 char FcInit ();
13124 main ()
13126 FcInit ();
13128 return 0;
13130 _ACEOF
13131 rm -f conftest.$ac_objext conftest$ac_exeext
13132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13133 (eval $ac_link) 2>&5
13134 ac_status=$?
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } &&
13137 { ac_try='test -s conftest$ac_exeext'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13140 ac_status=$?
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; }; then
13143 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed 's/^.*\(libfontconfig\.so[^ ]*\).*$/\1/'`
13144 if test "x$ac_cv_lib_soname_fontconfig" = "x"
13145 then
13146 ac_cv_lib_soname_fontconfig="libfontconfig.so"
13148 else
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13152 ac_cv_lib_soname_fontconfig="libfontconfig.so"
13154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13155 LIBS=$ac_get_soname_save_LIBS
13157 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
13158 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
13159 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
13160 then
13161 cat >>confdefs.h <<_ACEOF
13162 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
13163 _ACEOF
13166 echo "$as_me:$LINENO: checking for -lssl soname" >&5
13167 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
13168 if test "${ac_cv_lib_soname_ssl+set}" = set; then
13169 echo $ECHO_N "(cached) $ECHO_C" >&6
13170 else
13171 ac_get_soname_save_LIBS=$LIBS
13172 LIBS="-lssl $LIBS"
13173 cat >conftest.$ac_ext <<_ACEOF
13174 #line $LINENO "configure"
13175 /* confdefs.h. */
13176 _ACEOF
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h. */
13181 /* Override any gcc2 internal prototype to avoid an error. */
13182 #ifdef __cplusplus
13183 extern "C"
13184 #endif
13185 /* We use char because int might match the return type of a gcc2
13186 builtin and then its argument prototype would still apply. */
13187 char SSL_library_init ();
13189 main ()
13191 SSL_library_init ();
13193 return 0;
13195 _ACEOF
13196 rm -f conftest.$ac_objext conftest$ac_exeext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13198 (eval $ac_link) 2>&5
13199 ac_status=$?
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } &&
13202 { ac_try='test -s conftest$ac_exeext'
13203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13205 ac_status=$?
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; }; then
13208 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^.*\(libssl\.so[^ ]*\).*$/\1/'`
13209 if test "x$ac_cv_lib_soname_ssl" = "x"
13210 then
13211 ac_cv_lib_soname_ssl="libssl.so"
13213 else
13214 echo "$as_me: failed program was:" >&5
13215 sed 's/^/| /' conftest.$ac_ext >&5
13217 ac_cv_lib_soname_ssl="libssl.so"
13219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13220 LIBS=$ac_get_soname_save_LIBS
13222 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
13223 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
13224 if test "x$ac_cv_lib_soname_ssl" != xNONE
13225 then
13226 cat >>confdefs.h <<_ACEOF
13227 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
13228 _ACEOF
13231 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
13232 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
13233 if test "${ac_cv_lib_soname_crypto+set}" = set; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 else
13236 ac_get_soname_save_LIBS=$LIBS
13237 LIBS="-lcrypto $LIBS"
13238 cat >conftest.$ac_ext <<_ACEOF
13239 #line $LINENO "configure"
13240 /* confdefs.h. */
13241 _ACEOF
13242 cat confdefs.h >>conftest.$ac_ext
13243 cat >>conftest.$ac_ext <<_ACEOF
13244 /* end confdefs.h. */
13246 /* Override any gcc2 internal prototype to avoid an error. */
13247 #ifdef __cplusplus
13248 extern "C"
13249 #endif
13250 /* We use char because int might match the return type of a gcc2
13251 builtin and then its argument prototype would still apply. */
13252 char BIO_new_socket ();
13254 main ()
13256 BIO_new_socket ();
13258 return 0;
13260 _ACEOF
13261 rm -f conftest.$ac_objext conftest$ac_exeext
13262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13263 (eval $ac_link) 2>&5
13264 ac_status=$?
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } &&
13267 { ac_try='test -s conftest$ac_exeext'
13268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269 (eval $ac_try) 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; }; then
13273 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^.*\(libcrypto\.so[^ ]*\).*$/\1/'`
13274 if test "x$ac_cv_lib_soname_crypto" = "x"
13275 then
13276 ac_cv_lib_soname_crypto="libcrypto.so"
13278 else
13279 echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13282 ac_cv_lib_soname_crypto="libcrypto.so"
13284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13285 LIBS=$ac_get_soname_save_LIBS
13287 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
13288 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
13289 if test "x$ac_cv_lib_soname_crypto" != xNONE
13290 then
13291 cat >>confdefs.h <<_ACEOF
13292 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
13293 _ACEOF
13296 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
13297 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
13298 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
13300 else
13301 ac_get_soname_save_LIBS=$LIBS
13302 LIBS="-lncurses $LIBS"
13303 cat >conftest.$ac_ext <<_ACEOF
13304 #line $LINENO "configure"
13305 /* confdefs.h. */
13306 _ACEOF
13307 cat confdefs.h >>conftest.$ac_ext
13308 cat >>conftest.$ac_ext <<_ACEOF
13309 /* end confdefs.h. */
13311 /* Override any gcc2 internal prototype to avoid an error. */
13312 #ifdef __cplusplus
13313 extern "C"
13314 #endif
13315 /* We use char because int might match the return type of a gcc2
13316 builtin and then its argument prototype would still apply. */
13317 char waddch ();
13319 main ()
13321 waddch ();
13323 return 0;
13325 _ACEOF
13326 rm -f conftest.$ac_objext conftest$ac_exeext
13327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13328 (eval $ac_link) 2>&5
13329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } &&
13332 { ac_try='test -s conftest$ac_exeext'
13333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13335 ac_status=$?
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; }; then
13338 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed 's/^.*\(libncurses\.so[^ ]*\).*$/\1/'`
13339 if test "x$ac_cv_lib_soname_ncurses" = "x"
13340 then
13341 ac_cv_lib_soname_ncurses="libncurses.so"
13343 else
13344 echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13347 ac_cv_lib_soname_ncurses="libncurses.so"
13349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13350 LIBS=$ac_get_soname_save_LIBS
13352 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
13353 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
13354 if test "x$ac_cv_lib_soname_ncurses" != xNONE
13355 then
13356 cat >>confdefs.h <<_ACEOF
13357 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
13358 _ACEOF
13361 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
13362 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
13363 if test "${ac_cv_lib_soname_curses+set}" = set; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13365 else
13366 ac_get_soname_save_LIBS=$LIBS
13367 LIBS="-lcurses $LIBS"
13368 cat >conftest.$ac_ext <<_ACEOF
13369 #line $LINENO "configure"
13370 /* confdefs.h. */
13371 _ACEOF
13372 cat confdefs.h >>conftest.$ac_ext
13373 cat >>conftest.$ac_ext <<_ACEOF
13374 /* end confdefs.h. */
13376 /* Override any gcc2 internal prototype to avoid an error. */
13377 #ifdef __cplusplus
13378 extern "C"
13379 #endif
13380 /* We use char because int might match the return type of a gcc2
13381 builtin and then its argument prototype would still apply. */
13382 char waddch ();
13384 main ()
13386 waddch ();
13388 return 0;
13390 _ACEOF
13391 rm -f conftest.$ac_objext conftest$ac_exeext
13392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13393 (eval $ac_link) 2>&5
13394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } &&
13397 { ac_try='test -s conftest$ac_exeext'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; }; then
13403 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed 's/^.*\(libcurses\.so[^ ]*\).*$/\1/'`
13404 if test "x$ac_cv_lib_soname_curses" = "x"
13405 then
13406 ac_cv_lib_soname_curses="libcurses.so"
13408 else
13409 echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13412 ac_cv_lib_soname_curses="libcurses.so"
13414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13415 LIBS=$ac_get_soname_save_LIBS
13417 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
13418 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
13419 if test "x$ac_cv_lib_soname_curses" != xNONE
13420 then
13421 cat >>confdefs.h <<_ACEOF
13422 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
13423 _ACEOF
13429 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13430 # for constant arguments. Useless!
13431 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13432 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13433 if test "${ac_cv_working_alloca_h+set}" = set; then
13434 echo $ECHO_N "(cached) $ECHO_C" >&6
13435 else
13436 cat >conftest.$ac_ext <<_ACEOF
13437 #line $LINENO "configure"
13438 /* confdefs.h. */
13439 _ACEOF
13440 cat confdefs.h >>conftest.$ac_ext
13441 cat >>conftest.$ac_ext <<_ACEOF
13442 /* end confdefs.h. */
13443 #include <alloca.h>
13445 main ()
13447 char *p = (char *) alloca (2 * sizeof (int));
13449 return 0;
13451 _ACEOF
13452 rm -f conftest.$ac_objext conftest$ac_exeext
13453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13454 (eval $ac_link) 2>&5
13455 ac_status=$?
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } &&
13458 { ac_try='test -s conftest$ac_exeext'
13459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460 (eval $ac_try) 2>&5
13461 ac_status=$?
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); }; }; then
13464 ac_cv_working_alloca_h=yes
13465 else
13466 echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13469 ac_cv_working_alloca_h=no
13471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13473 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13474 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13475 if test $ac_cv_working_alloca_h = yes; then
13477 cat >>confdefs.h <<\_ACEOF
13478 #define HAVE_ALLOCA_H 1
13479 _ACEOF
13483 echo "$as_me:$LINENO: checking for alloca" >&5
13484 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13485 if test "${ac_cv_func_alloca_works+set}" = set; then
13486 echo $ECHO_N "(cached) $ECHO_C" >&6
13487 else
13488 cat >conftest.$ac_ext <<_ACEOF
13489 #line $LINENO "configure"
13490 /* confdefs.h. */
13491 _ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h. */
13495 #ifdef __GNUC__
13496 # define alloca __builtin_alloca
13497 #else
13498 # ifdef _MSC_VER
13499 # include <malloc.h>
13500 # define alloca _alloca
13501 # else
13502 # if HAVE_ALLOCA_H
13503 # include <alloca.h>
13504 # else
13505 # ifdef _AIX
13506 #pragma alloca
13507 # else
13508 # ifndef alloca /* predefined by HP cc +Olibcalls */
13509 char *alloca ();
13510 # endif
13511 # endif
13512 # endif
13513 # endif
13514 #endif
13517 main ()
13519 char *p = (char *) alloca (1);
13521 return 0;
13523 _ACEOF
13524 rm -f conftest.$ac_objext conftest$ac_exeext
13525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13526 (eval $ac_link) 2>&5
13527 ac_status=$?
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } &&
13530 { ac_try='test -s conftest$ac_exeext'
13531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13533 ac_status=$?
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }; then
13536 ac_cv_func_alloca_works=yes
13537 else
13538 echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13541 ac_cv_func_alloca_works=no
13543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13545 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13546 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13548 if test $ac_cv_func_alloca_works = yes; then
13550 cat >>confdefs.h <<\_ACEOF
13551 #define HAVE_ALLOCA 1
13552 _ACEOF
13554 else
13555 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13556 # that cause trouble. Some versions do not even contain alloca or
13557 # contain a buggy version. If you still want to use their alloca,
13558 # use ar to extract alloca.o from them instead of compiling alloca.c.
13560 ALLOCA=alloca.$ac_objext
13562 cat >>confdefs.h <<\_ACEOF
13563 #define C_ALLOCA 1
13564 _ACEOF
13567 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13568 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13569 if test "${ac_cv_os_cray+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13571 else
13572 cat >conftest.$ac_ext <<_ACEOF
13573 #line $LINENO "configure"
13574 /* confdefs.h. */
13575 _ACEOF
13576 cat confdefs.h >>conftest.$ac_ext
13577 cat >>conftest.$ac_ext <<_ACEOF
13578 /* end confdefs.h. */
13579 #if defined(CRAY) && ! defined(CRAY2)
13580 webecray
13581 #else
13582 wenotbecray
13583 #endif
13585 _ACEOF
13586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13587 $EGREP "webecray" >/dev/null 2>&1; then
13588 ac_cv_os_cray=yes
13589 else
13590 ac_cv_os_cray=no
13592 rm -f conftest*
13595 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13596 echo "${ECHO_T}$ac_cv_os_cray" >&6
13597 if test $ac_cv_os_cray = yes; then
13598 for ac_func in _getb67 GETB67 getb67; do
13599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13600 echo "$as_me:$LINENO: checking for $ac_func" >&5
13601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13602 if eval "test \"\${$as_ac_var+set}\" = set"; then
13603 echo $ECHO_N "(cached) $ECHO_C" >&6
13604 else
13605 cat >conftest.$ac_ext <<_ACEOF
13606 #line $LINENO "configure"
13607 /* confdefs.h. */
13608 _ACEOF
13609 cat confdefs.h >>conftest.$ac_ext
13610 cat >>conftest.$ac_ext <<_ACEOF
13611 /* end confdefs.h. */
13612 /* System header to define __stub macros and hopefully few prototypes,
13613 which can conflict with char $ac_func (); below.
13614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13615 <limits.h> exists even on freestanding compilers. */
13616 #ifdef __STDC__
13617 # include <limits.h>
13618 #else
13619 # include <assert.h>
13620 #endif
13621 /* Override any gcc2 internal prototype to avoid an error. */
13622 #ifdef __cplusplus
13623 extern "C"
13625 #endif
13626 /* We use char because int might match the return type of a gcc2
13627 builtin and then its argument prototype would still apply. */
13628 char $ac_func ();
13629 /* The GNU C library defines this for functions which it implements
13630 to always fail with ENOSYS. Some functions are actually named
13631 something starting with __ and the normal name is an alias. */
13632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13633 choke me
13634 #else
13635 char (*f) () = $ac_func;
13636 #endif
13637 #ifdef __cplusplus
13639 #endif
13642 main ()
13644 return f != $ac_func;
13646 return 0;
13648 _ACEOF
13649 rm -f conftest.$ac_objext conftest$ac_exeext
13650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13651 (eval $ac_link) 2>&5
13652 ac_status=$?
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } &&
13655 { ac_try='test -s conftest$ac_exeext'
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13658 ac_status=$?
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; }; then
13661 eval "$as_ac_var=yes"
13662 else
13663 echo "$as_me: failed program was:" >&5
13664 sed 's/^/| /' conftest.$ac_ext >&5
13666 eval "$as_ac_var=no"
13668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13672 if test `eval echo '${'$as_ac_var'}'` = yes; then
13674 cat >>confdefs.h <<_ACEOF
13675 #define CRAY_STACKSEG_END $ac_func
13676 _ACEOF
13678 break
13681 done
13684 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13685 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13686 if test "${ac_cv_c_stack_direction+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13688 else
13689 if test "$cross_compiling" = yes; then
13690 ac_cv_c_stack_direction=0
13691 else
13692 cat >conftest.$ac_ext <<_ACEOF
13693 #line $LINENO "configure"
13694 /* confdefs.h. */
13695 _ACEOF
13696 cat confdefs.h >>conftest.$ac_ext
13697 cat >>conftest.$ac_ext <<_ACEOF
13698 /* end confdefs.h. */
13700 find_stack_direction ()
13702 static char *addr = 0;
13703 auto char dummy;
13704 if (addr == 0)
13706 addr = &dummy;
13707 return find_stack_direction ();
13709 else
13710 return (&dummy > addr) ? 1 : -1;
13714 main ()
13716 exit (find_stack_direction () < 0);
13718 _ACEOF
13719 rm -f conftest$ac_exeext
13720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13721 (eval $ac_link) 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13727 ac_status=$?
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
13730 ac_cv_c_stack_direction=1
13731 else
13732 echo "$as_me: program exited with status $ac_status" >&5
13733 echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13736 ( exit $ac_status )
13737 ac_cv_c_stack_direction=-1
13739 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13742 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13743 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13745 cat >>confdefs.h <<_ACEOF
13746 #define STACK_DIRECTION $ac_cv_c_stack_direction
13747 _ACEOF
13803 for ac_func in \
13804 _lwp_create \
13805 _lwp_self \
13806 _pclose \
13807 _popen \
13808 _snprintf \
13809 _spawnvp \
13810 _stricmp \
13811 _strnicmp \
13812 _vsnprintf \
13813 chsize \
13814 clone \
13815 finite \
13816 fpclass \
13817 ftruncate \
13818 ftruncate64 \
13819 getnetbyaddr \
13820 getnetbyname \
13821 getopt_long \
13822 getpagesize \
13823 getprotobyname \
13824 getprotobynumber \
13825 getpwuid \
13826 getservbyport \
13827 gettimeofday \
13828 inet_network \
13829 lseek64 \
13830 lstat \
13831 memmove \
13832 mmap \
13833 pclose \
13834 popen \
13835 pread \
13836 pwrite \
13837 rfork \
13838 select \
13839 sendmsg \
13840 settimeofday \
13841 sigaltstack \
13842 snprintf \
13843 spawnvp \
13844 statfs \
13845 strcasecmp \
13846 strerror \
13847 strncasecmp \
13848 tcgetattr \
13849 timegm \
13850 usleep \
13851 vfscanf \
13852 vsnprintf \
13853 wait4 \
13854 waitpid \
13857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13858 echo "$as_me:$LINENO: checking for $ac_func" >&5
13859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13860 if eval "test \"\${$as_ac_var+set}\" = set"; then
13861 echo $ECHO_N "(cached) $ECHO_C" >&6
13862 else
13863 cat >conftest.$ac_ext <<_ACEOF
13864 #line $LINENO "configure"
13865 /* confdefs.h. */
13866 _ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h. */
13870 /* System header to define __stub macros and hopefully few prototypes,
13871 which can conflict with char $ac_func (); below.
13872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13873 <limits.h> exists even on freestanding compilers. */
13874 #ifdef __STDC__
13875 # include <limits.h>
13876 #else
13877 # include <assert.h>
13878 #endif
13879 /* Override any gcc2 internal prototype to avoid an error. */
13880 #ifdef __cplusplus
13881 extern "C"
13883 #endif
13884 /* We use char because int might match the return type of a gcc2
13885 builtin and then its argument prototype would still apply. */
13886 char $ac_func ();
13887 /* The GNU C library defines this for functions which it implements
13888 to always fail with ENOSYS. Some functions are actually named
13889 something starting with __ and the normal name is an alias. */
13890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13891 choke me
13892 #else
13893 char (*f) () = $ac_func;
13894 #endif
13895 #ifdef __cplusplus
13897 #endif
13900 main ()
13902 return f != $ac_func;
13904 return 0;
13906 _ACEOF
13907 rm -f conftest.$ac_objext conftest$ac_exeext
13908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13909 (eval $ac_link) 2>&5
13910 ac_status=$?
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); } &&
13913 { ac_try='test -s conftest$ac_exeext'
13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915 (eval $ac_try) 2>&5
13916 ac_status=$?
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }; then
13919 eval "$as_ac_var=yes"
13920 else
13921 echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13924 eval "$as_ac_var=no"
13926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13930 if test `eval echo '${'$as_ac_var'}'` = yes; then
13931 cat >>confdefs.h <<_ACEOF
13932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13933 _ACEOF
13936 done
14020 for ac_header in \
14021 arpa/inet.h \
14022 arpa/nameser.h \
14023 cups/cups.h \
14024 direct.h \
14025 elf.h \
14026 float.h \
14027 fontconfig/fontconfig.h \
14028 getopt.h \
14029 ieeefp.h \
14030 io.h \
14031 jack/jack.h \
14032 libio.h \
14033 libutil.h \
14034 link.h \
14035 linux/cdrom.h \
14036 linux/hdreg.h \
14037 linux/input.h \
14038 linux/joystick.h \
14039 linux/major.h \
14040 linux/param.h \
14041 linux/serial.h \
14042 linux/ucdrom.h \
14043 machine/cpu.h \
14044 netdb.h \
14045 netinet/in.h \
14046 netinet/in_systm.h \
14047 netinet/tcp.h \
14048 netinet/tcp_fsm.h \
14049 openssl/ssl.h \
14050 process.h \
14051 pthread.h \
14052 pty.h \
14053 pwd.h \
14054 regex.h \
14055 sched.h \
14056 scsi/sg.h \
14057 scsi/scsi.h \
14058 scsi/scsi_ioctl.h \
14059 socket.h \
14060 stdint.h \
14061 strings.h \
14062 sys/cdio.h \
14063 sys/errno.h \
14064 sys/file.h \
14065 sys/filio.h \
14066 sys/inttypes.h \
14067 sys/ioctl.h \
14068 sys/ipc.h \
14069 sys/link.h \
14070 sys/lwp.h \
14071 sys/mman.h \
14072 sys/modem.h \
14073 sys/msg.h \
14074 sys/param.h \
14075 sys/poll.h \
14076 sys/ptrace.h \
14077 sys/reg.h \
14078 sys/scsiio.h \
14079 sys/shm.h \
14080 sys/signal.h \
14081 sys/socket.h \
14082 sys/sockio.h \
14083 sys/statfs.h \
14084 sys/strtio.h \
14085 sys/syscall.h \
14086 sys/sysctl.h \
14087 sys/time.h \
14088 sys/times.h \
14089 sys/uio.h \
14090 sys/un.h \
14091 sys/v86.h \
14092 sys/v86intr.h \
14093 sys/vfs.h \
14094 sys/vm86.h \
14095 sys/wait.h \
14096 syscall.h \
14097 termios.h \
14098 unistd.h \
14099 utime.h \
14100 valgrind/memcheck.h
14103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14105 echo "$as_me:$LINENO: checking for $ac_header" >&5
14106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14108 echo $ECHO_N "(cached) $ECHO_C" >&6
14110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14112 else
14113 # Is the header compilable?
14114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14116 cat >conftest.$ac_ext <<_ACEOF
14117 #line $LINENO "configure"
14118 /* confdefs.h. */
14119 _ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14123 $ac_includes_default
14124 #include <$ac_header>
14125 _ACEOF
14126 rm -f conftest.$ac_objext
14127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14128 (eval $ac_compile) 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); } &&
14132 { ac_try='test -s conftest.$ac_objext'
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14135 ac_status=$?
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; }; then
14138 ac_header_compiler=yes
14139 else
14140 echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14143 ac_header_compiler=no
14145 rm -f conftest.$ac_objext conftest.$ac_ext
14146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14147 echo "${ECHO_T}$ac_header_compiler" >&6
14149 # Is the header present?
14150 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14152 cat >conftest.$ac_ext <<_ACEOF
14153 #line $LINENO "configure"
14154 /* confdefs.h. */
14155 _ACEOF
14156 cat confdefs.h >>conftest.$ac_ext
14157 cat >>conftest.$ac_ext <<_ACEOF
14158 /* end confdefs.h. */
14159 #include <$ac_header>
14160 _ACEOF
14161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14163 ac_status=$?
14164 grep -v '^ *+' conftest.er1 >conftest.err
14165 rm -f conftest.er1
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } >/dev/null; then
14169 if test -s conftest.err; then
14170 ac_cpp_err=$ac_c_preproc_warn_flag
14171 else
14172 ac_cpp_err=
14174 else
14175 ac_cpp_err=yes
14177 if test -z "$ac_cpp_err"; then
14178 ac_header_preproc=yes
14179 else
14180 echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.$ac_ext >&5
14183 ac_header_preproc=no
14185 rm -f conftest.err conftest.$ac_ext
14186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14187 echo "${ECHO_T}$ac_header_preproc" >&6
14189 # So? What about this header?
14190 case $ac_header_compiler:$ac_header_preproc in
14191 yes:no )
14192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14197 cat <<\_ASBOX
14198 ## ------------------------------------ ##
14199 ## Report this to bug-autoconf@gnu.org. ##
14200 ## ------------------------------------ ##
14201 _ASBOX
14203 sed "s/^/$as_me: WARNING: /" >&2
14205 no:yes )
14206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14213 cat <<\_ASBOX
14214 ## ------------------------------------ ##
14215 ## Report this to bug-autoconf@gnu.org. ##
14216 ## ------------------------------------ ##
14217 _ASBOX
14219 sed "s/^/$as_me: WARNING: /" >&2
14221 esac
14222 echo "$as_me:$LINENO: checking for $ac_header" >&5
14223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14225 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 else
14227 eval "$as_ac_Header=$ac_header_preproc"
14229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14234 cat >>confdefs.h <<_ACEOF
14235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14236 _ACEOF
14240 done
14242 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14243 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14244 if test "${ac_cv_header_stat_broken+set}" = set; then
14245 echo $ECHO_N "(cached) $ECHO_C" >&6
14246 else
14247 cat >conftest.$ac_ext <<_ACEOF
14248 #line $LINENO "configure"
14249 /* confdefs.h. */
14250 _ACEOF
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h. */
14254 #include <sys/types.h>
14255 #include <sys/stat.h>
14257 #if defined(S_ISBLK) && defined(S_IFDIR)
14258 # if S_ISBLK (S_IFDIR)
14259 You lose.
14260 # endif
14261 #endif
14263 #if defined(S_ISBLK) && defined(S_IFCHR)
14264 # if S_ISBLK (S_IFCHR)
14265 You lose.
14266 # endif
14267 #endif
14269 #if defined(S_ISLNK) && defined(S_IFREG)
14270 # if S_ISLNK (S_IFREG)
14271 You lose.
14272 # endif
14273 #endif
14275 #if defined(S_ISSOCK) && defined(S_IFREG)
14276 # if S_ISSOCK (S_IFREG)
14277 You lose.
14278 # endif
14279 #endif
14281 _ACEOF
14282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14283 $EGREP "You lose" >/dev/null 2>&1; then
14284 ac_cv_header_stat_broken=yes
14285 else
14286 ac_cv_header_stat_broken=no
14288 rm -f conftest*
14291 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14292 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14293 if test $ac_cv_header_stat_broken = yes; then
14295 cat >>confdefs.h <<\_ACEOF
14296 #define STAT_MACROS_BROKEN 1
14297 _ACEOF
14305 for ac_header in sys/mount.h sys/user.h
14307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14308 echo "$as_me:$LINENO: checking for $ac_header" >&5
14309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14311 echo $ECHO_N "(cached) $ECHO_C" >&6
14312 else
14313 cat >conftest.$ac_ext <<_ACEOF
14314 #line $LINENO "configure"
14315 /* confdefs.h. */
14316 _ACEOF
14317 cat confdefs.h >>conftest.$ac_ext
14318 cat >>conftest.$ac_ext <<_ACEOF
14319 /* end confdefs.h. */
14320 #include <sys/types.h>
14321 #if HAVE_SYS_PARAM_H
14322 # include <sys/param.h>
14323 #endif
14325 #include <$ac_header>
14326 _ACEOF
14327 rm -f conftest.$ac_objext
14328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14329 (eval $ac_compile) 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); } &&
14333 { ac_try='test -s conftest.$ac_objext'
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14336 ac_status=$?
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14339 eval "$as_ac_Header=yes"
14340 else
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14344 eval "$as_ac_Header=no"
14346 rm -f conftest.$ac_objext conftest.$ac_ext
14348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14351 cat >>confdefs.h <<_ACEOF
14352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14353 _ACEOF
14357 done
14365 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
14367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14368 echo "$as_me:$LINENO: checking for $ac_header" >&5
14369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14371 echo $ECHO_N "(cached) $ECHO_C" >&6
14372 else
14373 cat >conftest.$ac_ext <<_ACEOF
14374 #line $LINENO "configure"
14375 /* confdefs.h. */
14376 _ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14380 #include <sys/types.h>
14381 #if HAVE_SYS_SOCKET_H
14382 # include <sys/socket.h>
14383 #endif
14385 #include <$ac_header>
14386 _ACEOF
14387 rm -f conftest.$ac_objext
14388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14389 (eval $ac_compile) 2>&5
14390 ac_status=$?
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } &&
14393 { ac_try='test -s conftest.$ac_objext'
14394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14395 (eval $ac_try) 2>&5
14396 ac_status=$?
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }; }; then
14399 eval "$as_ac_Header=yes"
14400 else
14401 echo "$as_me: failed program was:" >&5
14402 sed 's/^/| /' conftest.$ac_ext >&5
14404 eval "$as_ac_Header=no"
14406 rm -f conftest.$ac_objext conftest.$ac_ext
14408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14411 cat >>confdefs.h <<_ACEOF
14412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14413 _ACEOF
14417 done
14421 for ac_header in resolv.h
14423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14424 echo "$as_me:$LINENO: checking for $ac_header" >&5
14425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14428 else
14429 cat >conftest.$ac_ext <<_ACEOF
14430 #line $LINENO "configure"
14431 /* confdefs.h. */
14432 _ACEOF
14433 cat confdefs.h >>conftest.$ac_ext
14434 cat >>conftest.$ac_ext <<_ACEOF
14435 /* end confdefs.h. */
14436 #include <sys/types.h>
14437 #if HAVE_SYS_SOCKET_H
14438 # include <sys/socket.h>
14439 #endif
14440 #if HAVE_NETINET_IN_H
14441 # include <netinet/in.h>
14442 #endif
14443 #if HAVE_ARPA_NAMESER_H
14444 # include <arpa/nameser.h>
14445 #endif
14447 #include <$ac_header>
14448 _ACEOF
14449 rm -f conftest.$ac_objext
14450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14451 (eval $ac_compile) 2>&5
14452 ac_status=$?
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } &&
14455 { ac_try='test -s conftest.$ac_objext'
14456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14457 (eval $ac_try) 2>&5
14458 ac_status=$?
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }; }; then
14461 eval "$as_ac_Header=yes"
14462 else
14463 echo "$as_me: failed program was:" >&5
14464 sed 's/^/| /' conftest.$ac_ext >&5
14466 eval "$as_ac_Header=no"
14468 rm -f conftest.$ac_objext conftest.$ac_ext
14470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14473 cat >>confdefs.h <<_ACEOF
14474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14475 _ACEOF
14479 done
14483 for ac_header in netinet/ip.h
14485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14486 echo "$as_me:$LINENO: checking for $ac_header" >&5
14487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14490 else
14491 cat >conftest.$ac_ext <<_ACEOF
14492 #line $LINENO "configure"
14493 /* confdefs.h. */
14494 _ACEOF
14495 cat confdefs.h >>conftest.$ac_ext
14496 cat >>conftest.$ac_ext <<_ACEOF
14497 /* end confdefs.h. */
14498 #include <sys/types.h>
14499 #if HAVE_SYS_SOCKET_H
14500 # include <sys/socket.h>
14501 #endif
14502 #if HAVE_NETINET_IN_SYSTM_H
14503 # include <netinet/in_systm.h>
14504 #endif
14506 #include <$ac_header>
14507 _ACEOF
14508 rm -f conftest.$ac_objext
14509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14510 (eval $ac_compile) 2>&5
14511 ac_status=$?
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } &&
14514 { ac_try='test -s conftest.$ac_objext'
14515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516 (eval $ac_try) 2>&5
14517 ac_status=$?
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); }; }; then
14520 eval "$as_ac_Header=yes"
14521 else
14522 echo "$as_me: failed program was:" >&5
14523 sed 's/^/| /' conftest.$ac_ext >&5
14525 eval "$as_ac_Header=no"
14527 rm -f conftest.$ac_objext conftest.$ac_ext
14529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14532 cat >>confdefs.h <<_ACEOF
14533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14534 _ACEOF
14538 done
14542 for ac_header in ucontext.h
14544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14545 echo "$as_me:$LINENO: checking for $ac_header" >&5
14546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14548 echo $ECHO_N "(cached) $ECHO_C" >&6
14549 else
14550 cat >conftest.$ac_ext <<_ACEOF
14551 #line $LINENO "configure"
14552 /* confdefs.h. */
14553 _ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h. */
14557 #include <signal.h>
14559 #include <$ac_header>
14560 _ACEOF
14561 rm -f conftest.$ac_objext
14562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14563 (eval $ac_compile) 2>&5
14564 ac_status=$?
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
14567 { ac_try='test -s conftest.$ac_objext'
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; }; then
14573 eval "$as_ac_Header=yes"
14574 else
14575 echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14578 eval "$as_ac_Header=no"
14580 rm -f conftest.$ac_objext conftest.$ac_ext
14582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14585 cat >>confdefs.h <<_ACEOF
14586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14587 _ACEOF
14591 done
14595 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
14596 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
14597 if test "${ac_cv_c_ipx_gnu+set}" = set; then
14598 echo $ECHO_N "(cached) $ECHO_C" >&6
14599 else
14600 cat >conftest.$ac_ext <<_ACEOF
14601 #line $LINENO "configure"
14602 /* confdefs.h. */
14603 _ACEOF
14604 cat confdefs.h >>conftest.$ac_ext
14605 cat >>conftest.$ac_ext <<_ACEOF
14606 /* end confdefs.h. */
14607 #include <sys/types.h>
14608 #ifdef HAVE_SYS_SOCKET_H
14609 # include <sys/socket.h>
14610 #endif
14611 #include <netipx/ipx.h>
14613 main ()
14615 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14617 return 0;
14619 _ACEOF
14620 rm -f conftest.$ac_objext
14621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14622 (eval $ac_compile) 2>&5
14623 ac_status=$?
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } &&
14626 { ac_try='test -s conftest.$ac_objext'
14627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14629 ac_status=$?
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; }; then
14632 ac_cv_c_ipx_gnu="yes"
14633 else
14634 echo "$as_me: failed program was:" >&5
14635 sed 's/^/| /' conftest.$ac_ext >&5
14637 ac_cv_c_ipx_gnu="no"
14639 rm -f conftest.$ac_objext conftest.$ac_ext
14642 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
14643 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
14644 if test "$ac_cv_c_ipx_gnu" = "yes"
14645 then
14647 cat >>confdefs.h <<\_ACEOF
14648 #define HAVE_IPX_GNU 1
14649 _ACEOF
14653 if test "$ac_cv_c_ipx_gnu" = "no"
14654 then
14655 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
14656 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
14657 if test "${ac_cv_c_ipx_linux+set}" = set; then
14658 echo $ECHO_N "(cached) $ECHO_C" >&6
14659 else
14660 cat >conftest.$ac_ext <<_ACEOF
14661 #line $LINENO "configure"
14662 /* confdefs.h. */
14663 _ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14667 #include <sys/types.h>
14668 #ifdef HAVE_SYS_SOCKET_H
14669 # include <sys/socket.h>
14670 #endif
14671 #include <asm/types.h>
14672 #include <linux/ipx.h>
14674 main ()
14676 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14678 return 0;
14680 _ACEOF
14681 rm -f conftest.$ac_objext
14682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14683 (eval $ac_compile) 2>&5
14684 ac_status=$?
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); } &&
14687 { ac_try='test -s conftest.$ac_objext'
14688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689 (eval $ac_try) 2>&5
14690 ac_status=$?
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; }; then
14693 ac_cv_c_ipx_linux="yes"
14694 else
14695 echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14698 ac_cv_c_ipx_linux="no"
14700 rm -f conftest.$ac_objext conftest.$ac_ext
14703 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
14704 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
14705 if test "$ac_cv_c_ipx_linux" = "yes"
14706 then
14708 cat >>confdefs.h <<\_ACEOF
14709 #define HAVE_IPX_LINUX 1
14710 _ACEOF
14716 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14717 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14718 if test "${ac_cv_c_const+set}" = set; then
14719 echo $ECHO_N "(cached) $ECHO_C" >&6
14720 else
14721 cat >conftest.$ac_ext <<_ACEOF
14722 #line $LINENO "configure"
14723 /* confdefs.h. */
14724 _ACEOF
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h. */
14730 main ()
14732 /* FIXME: Include the comments suggested by Paul. */
14733 #ifndef __cplusplus
14734 /* Ultrix mips cc rejects this. */
14735 typedef int charset[2];
14736 const charset x;
14737 /* SunOS 4.1.1 cc rejects this. */
14738 char const *const *ccp;
14739 char **p;
14740 /* NEC SVR4.0.2 mips cc rejects this. */
14741 struct point {int x, y;};
14742 static struct point const zero = {0,0};
14743 /* AIX XL C 1.02.0.0 rejects this.
14744 It does not let you subtract one const X* pointer from another in
14745 an arm of an if-expression whose if-part is not a constant
14746 expression */
14747 const char *g = "string";
14748 ccp = &g + (g ? g-g : 0);
14749 /* HPUX 7.0 cc rejects these. */
14750 ++ccp;
14751 p = (char**) ccp;
14752 ccp = (char const *const *) p;
14753 { /* SCO 3.2v4 cc rejects this. */
14754 char *t;
14755 char const *s = 0 ? (char *) 0 : (char const *) 0;
14757 *t++ = 0;
14759 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14760 int x[] = {25, 17};
14761 const int *foo = &x[0];
14762 ++foo;
14764 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14765 typedef const int *iptr;
14766 iptr p = 0;
14767 ++p;
14769 { /* AIX XL C 1.02.0.0 rejects this saying
14770 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14771 struct s { int j; const int *ap[3]; };
14772 struct s *b; b->j = 5;
14774 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14775 const int foo = 10;
14777 #endif
14780 return 0;
14782 _ACEOF
14783 rm -f conftest.$ac_objext
14784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14785 (eval $ac_compile) 2>&5
14786 ac_status=$?
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } &&
14789 { ac_try='test -s conftest.$ac_objext'
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14792 ac_status=$?
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14795 ac_cv_c_const=yes
14796 else
14797 echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.$ac_ext >&5
14800 ac_cv_c_const=no
14802 rm -f conftest.$ac_objext conftest.$ac_ext
14804 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14805 echo "${ECHO_T}$ac_cv_c_const" >&6
14806 if test $ac_cv_c_const = no; then
14808 cat >>confdefs.h <<\_ACEOF
14809 #define const
14810 _ACEOF
14814 echo "$as_me:$LINENO: checking for inline" >&5
14815 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14816 if test "${ac_cv_c_inline+set}" = set; then
14817 echo $ECHO_N "(cached) $ECHO_C" >&6
14818 else
14819 ac_cv_c_inline=no
14820 for ac_kw in inline __inline__ __inline; do
14821 cat >conftest.$ac_ext <<_ACEOF
14822 #line $LINENO "configure"
14823 /* confdefs.h. */
14824 _ACEOF
14825 cat confdefs.h >>conftest.$ac_ext
14826 cat >>conftest.$ac_ext <<_ACEOF
14827 /* end confdefs.h. */
14828 #ifndef __cplusplus
14829 typedef int foo_t;
14830 static $ac_kw foo_t static_foo () {return 0; }
14831 $ac_kw foo_t foo () {return 0; }
14832 #endif
14834 _ACEOF
14835 rm -f conftest.$ac_objext
14836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14837 (eval $ac_compile) 2>&5
14838 ac_status=$?
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } &&
14841 { ac_try='test -s conftest.$ac_objext'
14842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843 (eval $ac_try) 2>&5
14844 ac_status=$?
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); }; }; then
14847 ac_cv_c_inline=$ac_kw; break
14848 else
14849 echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14853 rm -f conftest.$ac_objext conftest.$ac_ext
14854 done
14857 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14858 echo "${ECHO_T}$ac_cv_c_inline" >&6
14859 case $ac_cv_c_inline in
14860 inline | yes) ;;
14862 cat >>confdefs.h <<\_ACEOF
14863 #define inline
14864 _ACEOF
14866 *) cat >>confdefs.h <<_ACEOF
14867 #define inline $ac_cv_c_inline
14868 _ACEOF
14870 esac
14872 echo "$as_me:$LINENO: checking for mode_t" >&5
14873 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
14874 if test "${ac_cv_type_mode_t+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14876 else
14877 cat >conftest.$ac_ext <<_ACEOF
14878 #line $LINENO "configure"
14879 /* confdefs.h. */
14880 _ACEOF
14881 cat confdefs.h >>conftest.$ac_ext
14882 cat >>conftest.$ac_ext <<_ACEOF
14883 /* end confdefs.h. */
14884 $ac_includes_default
14886 main ()
14888 if ((mode_t *) 0)
14889 return 0;
14890 if (sizeof (mode_t))
14891 return 0;
14893 return 0;
14895 _ACEOF
14896 rm -f conftest.$ac_objext
14897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14898 (eval $ac_compile) 2>&5
14899 ac_status=$?
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } &&
14902 { ac_try='test -s conftest.$ac_objext'
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14905 ac_status=$?
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; }; then
14908 ac_cv_type_mode_t=yes
14909 else
14910 echo "$as_me: failed program was:" >&5
14911 sed 's/^/| /' conftest.$ac_ext >&5
14913 ac_cv_type_mode_t=no
14915 rm -f conftest.$ac_objext conftest.$ac_ext
14917 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14918 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
14919 if test $ac_cv_type_mode_t = yes; then
14921 cat >>confdefs.h <<_ACEOF
14922 #define HAVE_MODE_T 1
14923 _ACEOF
14927 echo "$as_me:$LINENO: checking for off_t" >&5
14928 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
14929 if test "${ac_cv_type_off_t+set}" = set; then
14930 echo $ECHO_N "(cached) $ECHO_C" >&6
14931 else
14932 cat >conftest.$ac_ext <<_ACEOF
14933 #line $LINENO "configure"
14934 /* confdefs.h. */
14935 _ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h. */
14939 $ac_includes_default
14941 main ()
14943 if ((off_t *) 0)
14944 return 0;
14945 if (sizeof (off_t))
14946 return 0;
14948 return 0;
14950 _ACEOF
14951 rm -f conftest.$ac_objext
14952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14953 (eval $ac_compile) 2>&5
14954 ac_status=$?
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } &&
14957 { ac_try='test -s conftest.$ac_objext'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14960 ac_status=$?
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; }; then
14963 ac_cv_type_off_t=yes
14964 else
14965 echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14968 ac_cv_type_off_t=no
14970 rm -f conftest.$ac_objext conftest.$ac_ext
14972 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14973 echo "${ECHO_T}$ac_cv_type_off_t" >&6
14974 if test $ac_cv_type_off_t = yes; then
14976 cat >>confdefs.h <<_ACEOF
14977 #define HAVE_OFF_T 1
14978 _ACEOF
14982 echo "$as_me:$LINENO: checking for pid_t" >&5
14983 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14984 if test "${ac_cv_type_pid_t+set}" = set; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
14986 else
14987 cat >conftest.$ac_ext <<_ACEOF
14988 #line $LINENO "configure"
14989 /* confdefs.h. */
14990 _ACEOF
14991 cat confdefs.h >>conftest.$ac_ext
14992 cat >>conftest.$ac_ext <<_ACEOF
14993 /* end confdefs.h. */
14994 $ac_includes_default
14996 main ()
14998 if ((pid_t *) 0)
14999 return 0;
15000 if (sizeof (pid_t))
15001 return 0;
15003 return 0;
15005 _ACEOF
15006 rm -f conftest.$ac_objext
15007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15008 (eval $ac_compile) 2>&5
15009 ac_status=$?
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); } &&
15012 { ac_try='test -s conftest.$ac_objext'
15013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014 (eval $ac_try) 2>&5
15015 ac_status=$?
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; }; then
15018 ac_cv_type_pid_t=yes
15019 else
15020 echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15023 ac_cv_type_pid_t=no
15025 rm -f conftest.$ac_objext conftest.$ac_ext
15027 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15028 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15029 if test $ac_cv_type_pid_t = yes; then
15031 cat >>confdefs.h <<_ACEOF
15032 #define HAVE_PID_T 1
15033 _ACEOF
15037 echo "$as_me:$LINENO: checking for size_t" >&5
15038 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15039 if test "${ac_cv_type_size_t+set}" = set; then
15040 echo $ECHO_N "(cached) $ECHO_C" >&6
15041 else
15042 cat >conftest.$ac_ext <<_ACEOF
15043 #line $LINENO "configure"
15044 /* confdefs.h. */
15045 _ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h. */
15049 $ac_includes_default
15051 main ()
15053 if ((size_t *) 0)
15054 return 0;
15055 if (sizeof (size_t))
15056 return 0;
15058 return 0;
15060 _ACEOF
15061 rm -f conftest.$ac_objext
15062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15063 (eval $ac_compile) 2>&5
15064 ac_status=$?
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } &&
15067 { ac_try='test -s conftest.$ac_objext'
15068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069 (eval $ac_try) 2>&5
15070 ac_status=$?
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; }; then
15073 ac_cv_type_size_t=yes
15074 else
15075 echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15078 ac_cv_type_size_t=no
15080 rm -f conftest.$ac_objext conftest.$ac_ext
15082 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15083 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15084 if test $ac_cv_type_size_t = yes; then
15086 cat >>confdefs.h <<_ACEOF
15087 #define HAVE_SIZE_T 1
15088 _ACEOF
15092 echo "$as_me:$LINENO: checking for ssize_t" >&5
15093 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15094 if test "${ac_cv_type_ssize_t+set}" = set; then
15095 echo $ECHO_N "(cached) $ECHO_C" >&6
15096 else
15097 cat >conftest.$ac_ext <<_ACEOF
15098 #line $LINENO "configure"
15099 /* confdefs.h. */
15100 _ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h. */
15104 $ac_includes_default
15106 main ()
15108 if ((ssize_t *) 0)
15109 return 0;
15110 if (sizeof (ssize_t))
15111 return 0;
15113 return 0;
15115 _ACEOF
15116 rm -f conftest.$ac_objext
15117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15118 (eval $ac_compile) 2>&5
15119 ac_status=$?
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } &&
15122 { ac_try='test -s conftest.$ac_objext'
15123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124 (eval $ac_try) 2>&5
15125 ac_status=$?
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); }; }; then
15128 ac_cv_type_ssize_t=yes
15129 else
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15133 ac_cv_type_ssize_t=no
15135 rm -f conftest.$ac_objext conftest.$ac_ext
15137 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15138 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15139 if test $ac_cv_type_ssize_t = yes; then
15141 cat >>confdefs.h <<_ACEOF
15142 #define HAVE_SSIZE_T 1
15143 _ACEOF
15148 echo "$as_me:$LINENO: checking for long long" >&5
15149 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15150 if test "${ac_cv_type_long_long+set}" = set; then
15151 echo $ECHO_N "(cached) $ECHO_C" >&6
15152 else
15153 cat >conftest.$ac_ext <<_ACEOF
15154 #line $LINENO "configure"
15155 /* confdefs.h. */
15156 _ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h. */
15160 $ac_includes_default
15162 main ()
15164 if ((long long *) 0)
15165 return 0;
15166 if (sizeof (long long))
15167 return 0;
15169 return 0;
15171 _ACEOF
15172 rm -f conftest.$ac_objext
15173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15174 (eval $ac_compile) 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); } &&
15178 { ac_try='test -s conftest.$ac_objext'
15179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180 (eval $ac_try) 2>&5
15181 ac_status=$?
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; }; then
15184 ac_cv_type_long_long=yes
15185 else
15186 echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15189 ac_cv_type_long_long=no
15191 rm -f conftest.$ac_objext conftest.$ac_ext
15193 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15194 echo "${ECHO_T}$ac_cv_type_long_long" >&6
15196 echo "$as_me:$LINENO: checking size of long long" >&5
15197 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15198 if test "${ac_cv_sizeof_long_long+set}" = set; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 else
15201 if test "$ac_cv_type_long_long" = yes; then
15202 # The cast to unsigned long works around a bug in the HP C Compiler
15203 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15204 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15205 # This bug is HP SR number 8606223364.
15206 if test "$cross_compiling" = yes; then
15207 # Depending upon the size, compute the lo and hi bounds.
15208 cat >conftest.$ac_ext <<_ACEOF
15209 #line $LINENO "configure"
15210 /* confdefs.h. */
15211 _ACEOF
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h. */
15215 $ac_includes_default
15217 main ()
15219 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15220 test_array [0] = 0
15223 return 0;
15225 _ACEOF
15226 rm -f conftest.$ac_objext
15227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15228 (eval $ac_compile) 2>&5
15229 ac_status=$?
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); } &&
15232 { ac_try='test -s conftest.$ac_objext'
15233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234 (eval $ac_try) 2>&5
15235 ac_status=$?
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; }; then
15238 ac_lo=0 ac_mid=0
15239 while :; do
15240 cat >conftest.$ac_ext <<_ACEOF
15241 #line $LINENO "configure"
15242 /* confdefs.h. */
15243 _ACEOF
15244 cat confdefs.h >>conftest.$ac_ext
15245 cat >>conftest.$ac_ext <<_ACEOF
15246 /* end confdefs.h. */
15247 $ac_includes_default
15249 main ()
15251 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15252 test_array [0] = 0
15255 return 0;
15257 _ACEOF
15258 rm -f conftest.$ac_objext
15259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15260 (eval $ac_compile) 2>&5
15261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } &&
15264 { ac_try='test -s conftest.$ac_objext'
15265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266 (eval $ac_try) 2>&5
15267 ac_status=$?
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; }; then
15270 ac_hi=$ac_mid; break
15271 else
15272 echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15275 ac_lo=`expr $ac_mid + 1`
15276 if test $ac_lo -le $ac_mid; then
15277 ac_lo= ac_hi=
15278 break
15280 ac_mid=`expr 2 '*' $ac_mid + 1`
15282 rm -f conftest.$ac_objext conftest.$ac_ext
15283 done
15284 else
15285 echo "$as_me: failed program was:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15288 cat >conftest.$ac_ext <<_ACEOF
15289 #line $LINENO "configure"
15290 /* confdefs.h. */
15291 _ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15295 $ac_includes_default
15297 main ()
15299 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15300 test_array [0] = 0
15303 return 0;
15305 _ACEOF
15306 rm -f conftest.$ac_objext
15307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15308 (eval $ac_compile) 2>&5
15309 ac_status=$?
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } &&
15312 { ac_try='test -s conftest.$ac_objext'
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15315 ac_status=$?
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; }; then
15318 ac_hi=-1 ac_mid=-1
15319 while :; do
15320 cat >conftest.$ac_ext <<_ACEOF
15321 #line $LINENO "configure"
15322 /* confdefs.h. */
15323 _ACEOF
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15327 $ac_includes_default
15329 main ()
15331 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15332 test_array [0] = 0
15335 return 0;
15337 _ACEOF
15338 rm -f conftest.$ac_objext
15339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15340 (eval $ac_compile) 2>&5
15341 ac_status=$?
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } &&
15344 { ac_try='test -s conftest.$ac_objext'
15345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346 (eval $ac_try) 2>&5
15347 ac_status=$?
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; }; then
15350 ac_lo=$ac_mid; break
15351 else
15352 echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.$ac_ext >&5
15355 ac_hi=`expr '(' $ac_mid ')' - 1`
15356 if test $ac_mid -le $ac_hi; then
15357 ac_lo= ac_hi=
15358 break
15360 ac_mid=`expr 2 '*' $ac_mid`
15362 rm -f conftest.$ac_objext conftest.$ac_ext
15363 done
15364 else
15365 echo "$as_me: failed program was:" >&5
15366 sed 's/^/| /' conftest.$ac_ext >&5
15368 ac_lo= ac_hi=
15370 rm -f conftest.$ac_objext conftest.$ac_ext
15372 rm -f conftest.$ac_objext conftest.$ac_ext
15373 # Binary search between lo and hi bounds.
15374 while test "x$ac_lo" != "x$ac_hi"; do
15375 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15376 cat >conftest.$ac_ext <<_ACEOF
15377 #line $LINENO "configure"
15378 /* confdefs.h. */
15379 _ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15383 $ac_includes_default
15385 main ()
15387 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15388 test_array [0] = 0
15391 return 0;
15393 _ACEOF
15394 rm -f conftest.$ac_objext
15395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15396 (eval $ac_compile) 2>&5
15397 ac_status=$?
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } &&
15400 { ac_try='test -s conftest.$ac_objext'
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15403 ac_status=$?
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; }; then
15406 ac_hi=$ac_mid
15407 else
15408 echo "$as_me: failed program was:" >&5
15409 sed 's/^/| /' conftest.$ac_ext >&5
15411 ac_lo=`expr '(' $ac_mid ')' + 1`
15413 rm -f conftest.$ac_objext conftest.$ac_ext
15414 done
15415 case $ac_lo in
15416 ?*) ac_cv_sizeof_long_long=$ac_lo;;
15417 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15418 See \`config.log' for more details." >&5
15419 echo "$as_me: error: cannot compute sizeof (long long), 77
15420 See \`config.log' for more details." >&2;}
15421 { (exit 1); exit 1; }; } ;;
15422 esac
15423 else
15424 if test "$cross_compiling" = yes; then
15425 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15426 See \`config.log' for more details." >&5
15427 echo "$as_me: error: cannot run test program while cross compiling
15428 See \`config.log' for more details." >&2;}
15429 { (exit 1); exit 1; }; }
15430 else
15431 cat >conftest.$ac_ext <<_ACEOF
15432 #line $LINENO "configure"
15433 /* confdefs.h. */
15434 _ACEOF
15435 cat confdefs.h >>conftest.$ac_ext
15436 cat >>conftest.$ac_ext <<_ACEOF
15437 /* end confdefs.h. */
15438 $ac_includes_default
15439 long longval () { return (long) (sizeof (long long)); }
15440 unsigned long ulongval () { return (long) (sizeof (long long)); }
15441 #include <stdio.h>
15442 #include <stdlib.h>
15444 main ()
15447 FILE *f = fopen ("conftest.val", "w");
15448 if (! f)
15449 exit (1);
15450 if (((long) (sizeof (long long))) < 0)
15452 long i = longval ();
15453 if (i != ((long) (sizeof (long long))))
15454 exit (1);
15455 fprintf (f, "%ld\n", i);
15457 else
15459 unsigned long i = ulongval ();
15460 if (i != ((long) (sizeof (long long))))
15461 exit (1);
15462 fprintf (f, "%lu\n", i);
15464 exit (ferror (f) || fclose (f) != 0);
15467 return 0;
15469 _ACEOF
15470 rm -f conftest$ac_exeext
15471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15472 (eval $ac_link) 2>&5
15473 ac_status=$?
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15478 ac_status=$?
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }; then
15481 ac_cv_sizeof_long_long=`cat conftest.val`
15482 else
15483 echo "$as_me: program exited with status $ac_status" >&5
15484 echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15487 ( exit $ac_status )
15488 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15489 See \`config.log' for more details." >&5
15490 echo "$as_me: error: cannot compute sizeof (long long), 77
15491 See \`config.log' for more details." >&2;}
15492 { (exit 1); exit 1; }; }
15494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15497 rm -f conftest.val
15498 else
15499 ac_cv_sizeof_long_long=0
15502 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15503 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15504 cat >>confdefs.h <<_ACEOF
15505 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15506 _ACEOF
15510 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
15511 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
15512 if test "${wine_cv_linux_input_h+set}" = set; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15514 else
15515 cat >conftest.$ac_ext <<_ACEOF
15516 #line $LINENO "configure"
15517 /* confdefs.h. */
15518 _ACEOF
15519 cat confdefs.h >>conftest.$ac_ext
15520 cat >>conftest.$ac_ext <<_ACEOF
15521 /* end confdefs.h. */
15523 #include <linux/input.h>
15526 main ()
15529 int foo = EVIOCGBIT(EV_ABS,42);
15530 int bar = BTN_PINKIE;
15531 int fortytwo = 42;
15534 return 0;
15536 _ACEOF
15537 rm -f conftest.$ac_objext
15538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15539 (eval $ac_compile) 2>&5
15540 ac_status=$?
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); } &&
15543 { ac_try='test -s conftest.$ac_objext'
15544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15546 ac_status=$?
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; }; then
15549 wine_cv_linux_input_h=yes
15550 else
15551 echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15554 wine_cv_linux_input_h=no
15556 rm -f conftest.$ac_objext conftest.$ac_ext
15559 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
15560 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
15561 if test "$wine_cv_linux_input_h" = "yes"
15562 then
15564 cat >>confdefs.h <<\_ACEOF
15565 #define HAVE_CORRECT_LINUXINPUT_H 1
15566 _ACEOF
15571 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15572 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
15573 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
15574 echo $ECHO_N "(cached) $ECHO_C" >&6
15575 else
15576 cat >conftest.$ac_ext <<_ACEOF
15577 #line $LINENO "configure"
15578 /* confdefs.h. */
15579 _ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15584 #include <netdb.h>
15587 main ()
15590 char *name=NULL;
15591 struct hostent he;
15592 struct hostent *result;
15593 char *buf=NULL;
15594 int bufsize=0;
15595 int res,errnr;
15596 char *addr=NULL;
15597 int addrlen=0;
15598 int addrtype=0;
15599 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15600 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15603 return 0;
15605 _ACEOF
15606 rm -f conftest.$ac_objext
15607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15608 (eval $ac_compile) 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); } &&
15612 { ac_try='test -s conftest.$ac_objext'
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15615 ac_status=$?
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }; then
15618 wine_cv_linux_gethostbyname_r_6=yes
15619 else
15620 echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15623 wine_cv_linux_gethostbyname_r_6=no
15626 rm -f conftest.$ac_objext conftest.$ac_ext
15629 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
15630 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
15631 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15632 then
15634 cat >>confdefs.h <<\_ACEOF
15635 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
15636 _ACEOF
15640 if test "$ac_cv_header_linux_joystick_h" = "yes"
15641 then
15642 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15643 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
15644 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
15645 echo $ECHO_N "(cached) $ECHO_C" >&6
15646 else
15647 cat >conftest.$ac_ext <<_ACEOF
15648 #line $LINENO "configure"
15649 /* confdefs.h. */
15650 _ACEOF
15651 cat confdefs.h >>conftest.$ac_ext
15652 cat >>conftest.$ac_ext <<_ACEOF
15653 /* end confdefs.h. */
15655 #include <sys/ioctl.h>
15656 #include <linux/joystick.h>
15658 struct js_event blub;
15659 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15660 #error "no 2.2 header"
15661 #endif
15664 main ()
15666 /*empty*/
15668 return 0;
15670 _ACEOF
15671 rm -f conftest.$ac_objext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15673 (eval $ac_compile) 2>&5
15674 ac_status=$?
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } &&
15677 { ac_try='test -s conftest.$ac_objext'
15678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679 (eval $ac_try) 2>&5
15680 ac_status=$?
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }; }; then
15683 wine_cv_linux_joystick_22_api=yes
15684 else
15685 echo "$as_me: failed program was:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15688 wine_cv_linux_joystick_22_api=no
15690 rm -f conftest.$ac_objext conftest.$ac_ext
15693 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
15694 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
15695 if test "$wine_cv_linux_joystick_22_api" = "yes"
15696 then
15698 cat >>confdefs.h <<\_ACEOF
15699 #define HAVE_LINUX_22_JOYSTICK_API 1
15700 _ACEOF
15706 if test "$ac_cv_header_sys_vfs_h" = "yes"
15707 then
15708 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
15709 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
15710 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
15711 echo $ECHO_N "(cached) $ECHO_C" >&6
15712 else
15713 cat >conftest.$ac_ext <<_ACEOF
15714 #line $LINENO "configure"
15715 /* confdefs.h. */
15716 _ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15721 #include <sys/types.h>
15722 #ifdef HAVE_SYS_PARAM_H
15723 # include <sys/param.h>
15724 #endif
15725 #include <sys/vfs.h>
15728 main ()
15731 struct statfs stfs;
15733 memset(&stfs,0,sizeof(stfs));
15736 return 0;
15738 _ACEOF
15739 rm -f conftest.$ac_objext
15740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15741 (eval $ac_compile) 2>&5
15742 ac_status=$?
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); } &&
15745 { ac_try='test -s conftest.$ac_objext'
15746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747 (eval $ac_try) 2>&5
15748 ac_status=$?
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15751 wine_cv_sys_vfs_has_statfs=yes
15752 else
15753 echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15756 wine_cv_sys_vfs_has_statfs=no
15759 rm -f conftest.$ac_objext conftest.$ac_ext
15762 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
15763 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
15764 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
15765 then
15767 cat >>confdefs.h <<\_ACEOF
15768 #define STATFS_DEFINED_BY_SYS_VFS 1
15769 _ACEOF
15774 if test "$ac_cv_header_sys_statfs_h" = "yes"
15775 then
15776 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
15777 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
15778 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
15779 echo $ECHO_N "(cached) $ECHO_C" >&6
15780 else
15781 cat >conftest.$ac_ext <<_ACEOF
15782 #line $LINENO "configure"
15783 /* confdefs.h. */
15784 _ACEOF
15785 cat confdefs.h >>conftest.$ac_ext
15786 cat >>conftest.$ac_ext <<_ACEOF
15787 /* end confdefs.h. */
15789 #include <sys/types.h>
15790 #ifdef HAVE_SYS_PARAM_H
15791 # include <sys/param.h>
15792 #endif
15793 #include <sys/statfs.h>
15796 main ()
15799 struct statfs stfs;
15802 return 0;
15804 _ACEOF
15805 rm -f conftest.$ac_objext
15806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15807 (eval $ac_compile) 2>&5
15808 ac_status=$?
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); } &&
15811 { ac_try='test -s conftest.$ac_objext'
15812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15813 (eval $ac_try) 2>&5
15814 ac_status=$?
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); }; }; then
15817 wine_cv_sys_statfs_has_statfs=yes
15818 else
15819 echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.$ac_ext >&5
15822 wine_cv_sys_statfs_has_statfs=no
15825 rm -f conftest.$ac_objext conftest.$ac_ext
15828 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
15829 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
15830 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
15831 then
15833 cat >>confdefs.h <<\_ACEOF
15834 #define STATFS_DEFINED_BY_SYS_STATFS 1
15835 _ACEOF
15840 if test "$ac_cv_header_sys_mount_h" = "yes"
15841 then
15842 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
15843 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
15844 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
15845 echo $ECHO_N "(cached) $ECHO_C" >&6
15846 else
15847 cat >conftest.$ac_ext <<_ACEOF
15848 #line $LINENO "configure"
15849 /* confdefs.h. */
15850 _ACEOF
15851 cat confdefs.h >>conftest.$ac_ext
15852 cat >>conftest.$ac_ext <<_ACEOF
15853 /* end confdefs.h. */
15855 #include <sys/types.h>
15856 #ifdef HAVE_SYS_PARAM_H
15857 # include <sys/param.h>
15858 #endif
15859 #include <sys/mount.h>
15862 main ()
15865 struct statfs stfs;
15868 return 0;
15870 _ACEOF
15871 rm -f conftest.$ac_objext
15872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15873 (eval $ac_compile) 2>&5
15874 ac_status=$?
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } &&
15877 { ac_try='test -s conftest.$ac_objext'
15878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879 (eval $ac_try) 2>&5
15880 ac_status=$?
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); }; }; then
15883 wine_cv_sys_mount_has_statfs=yes
15884 else
15885 echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15888 wine_cv_sys_mount_has_statfs=no
15891 rm -f conftest.$ac_objext conftest.$ac_ext
15894 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
15895 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
15896 if test "$wine_cv_sys_mount_has_statfs" = "yes"
15897 then
15899 cat >>confdefs.h <<\_ACEOF
15900 #define STATFS_DEFINED_BY_SYS_MOUNT 1
15901 _ACEOF
15907 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
15908 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
15909 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15911 else
15912 cat >conftest.$ac_ext <<_ACEOF
15913 #line $LINENO "configure"
15914 /* confdefs.h. */
15915 _ACEOF
15916 cat confdefs.h >>conftest.$ac_ext
15917 cat >>conftest.$ac_ext <<_ACEOF
15918 /* end confdefs.h. */
15919 #include <sys/types.h>
15920 #ifdef HAVE_SYS_PARAM_H
15921 # include <sys/param.h>
15922 #endif
15923 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15924 # include <sys/mount.h>
15925 #else
15926 # ifdef STATFS_DEFINED_BY_SYS_VFS
15927 # include <sys/vfs.h>
15928 # else
15929 # ifdef STATFS_DEFINED_BY_SYS_STATFS
15930 # include <sys/statfs.h>
15931 # endif
15932 # endif
15933 #endif
15936 main ()
15938 static struct statfs ac_aggr;
15939 if (ac_aggr.f_bfree)
15940 return 0;
15942 return 0;
15944 _ACEOF
15945 rm -f conftest.$ac_objext
15946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15947 (eval $ac_compile) 2>&5
15948 ac_status=$?
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } &&
15951 { ac_try='test -s conftest.$ac_objext'
15952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953 (eval $ac_try) 2>&5
15954 ac_status=$?
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }; }; then
15957 ac_cv_member_struct_statfs_f_bfree=yes
15958 else
15959 echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15962 cat >conftest.$ac_ext <<_ACEOF
15963 #line $LINENO "configure"
15964 /* confdefs.h. */
15965 _ACEOF
15966 cat confdefs.h >>conftest.$ac_ext
15967 cat >>conftest.$ac_ext <<_ACEOF
15968 /* end confdefs.h. */
15969 #include <sys/types.h>
15970 #ifdef HAVE_SYS_PARAM_H
15971 # include <sys/param.h>
15972 #endif
15973 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
15974 # include <sys/mount.h>
15975 #else
15976 # ifdef STATFS_DEFINED_BY_SYS_VFS
15977 # include <sys/vfs.h>
15978 # else
15979 # ifdef STATFS_DEFINED_BY_SYS_STATFS
15980 # include <sys/statfs.h>
15981 # endif
15982 # endif
15983 #endif
15986 main ()
15988 static struct statfs ac_aggr;
15989 if (sizeof ac_aggr.f_bfree)
15990 return 0;
15992 return 0;
15994 _ACEOF
15995 rm -f conftest.$ac_objext
15996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15997 (eval $ac_compile) 2>&5
15998 ac_status=$?
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } &&
16001 { ac_try='test -s conftest.$ac_objext'
16002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003 (eval $ac_try) 2>&5
16004 ac_status=$?
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; }; then
16007 ac_cv_member_struct_statfs_f_bfree=yes
16008 else
16009 echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16012 ac_cv_member_struct_statfs_f_bfree=no
16014 rm -f conftest.$ac_objext conftest.$ac_ext
16016 rm -f conftest.$ac_objext conftest.$ac_ext
16018 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
16019 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
16020 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
16022 cat >>confdefs.h <<_ACEOF
16023 #define HAVE_STRUCT_STATFS_F_BFREE 1
16024 _ACEOF
16028 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
16029 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
16030 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
16031 echo $ECHO_N "(cached) $ECHO_C" >&6
16032 else
16033 cat >conftest.$ac_ext <<_ACEOF
16034 #line $LINENO "configure"
16035 /* confdefs.h. */
16036 _ACEOF
16037 cat confdefs.h >>conftest.$ac_ext
16038 cat >>conftest.$ac_ext <<_ACEOF
16039 /* end confdefs.h. */
16040 #include <sys/types.h>
16041 #ifdef HAVE_SYS_PARAM_H
16042 # include <sys/param.h>
16043 #endif
16044 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16045 # include <sys/mount.h>
16046 #else
16047 # ifdef STATFS_DEFINED_BY_SYS_VFS
16048 # include <sys/vfs.h>
16049 # else
16050 # ifdef STATFS_DEFINED_BY_SYS_STATFS
16051 # include <sys/statfs.h>
16052 # endif
16053 # endif
16054 #endif
16057 main ()
16059 static struct statfs ac_aggr;
16060 if (ac_aggr.f_bavail)
16061 return 0;
16063 return 0;
16065 _ACEOF
16066 rm -f conftest.$ac_objext
16067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16068 (eval $ac_compile) 2>&5
16069 ac_status=$?
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); } &&
16072 { ac_try='test -s conftest.$ac_objext'
16073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16074 (eval $ac_try) 2>&5
16075 ac_status=$?
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; }; then
16078 ac_cv_member_struct_statfs_f_bavail=yes
16079 else
16080 echo "$as_me: failed program was:" >&5
16081 sed 's/^/| /' conftest.$ac_ext >&5
16083 cat >conftest.$ac_ext <<_ACEOF
16084 #line $LINENO "configure"
16085 /* confdefs.h. */
16086 _ACEOF
16087 cat confdefs.h >>conftest.$ac_ext
16088 cat >>conftest.$ac_ext <<_ACEOF
16089 /* end confdefs.h. */
16090 #include <sys/types.h>
16091 #ifdef HAVE_SYS_PARAM_H
16092 # include <sys/param.h>
16093 #endif
16094 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
16095 # include <sys/mount.h>
16096 #else
16097 # ifdef STATFS_DEFINED_BY_SYS_VFS
16098 # include <sys/vfs.h>
16099 # else
16100 # ifdef STATFS_DEFINED_BY_SYS_STATFS
16101 # include <sys/statfs.h>
16102 # endif
16103 # endif
16104 #endif
16107 main ()
16109 static struct statfs ac_aggr;
16110 if (sizeof ac_aggr.f_bavail)
16111 return 0;
16113 return 0;
16115 _ACEOF
16116 rm -f conftest.$ac_objext
16117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16118 (eval $ac_compile) 2>&5
16119 ac_status=$?
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); } &&
16122 { ac_try='test -s conftest.$ac_objext'
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16125 ac_status=$?
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }; then
16128 ac_cv_member_struct_statfs_f_bavail=yes
16129 else
16130 echo "$as_me: failed program was:" >&5
16131 sed 's/^/| /' conftest.$ac_ext >&5
16133 ac_cv_member_struct_statfs_f_bavail=no
16135 rm -f conftest.$ac_objext conftest.$ac_ext
16137 rm -f conftest.$ac_objext conftest.$ac_ext
16139 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
16140 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
16141 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
16143 cat >>confdefs.h <<_ACEOF
16144 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
16145 _ACEOF
16151 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
16152 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
16153 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
16154 echo $ECHO_N "(cached) $ECHO_C" >&6
16155 else
16156 cat >conftest.$ac_ext <<_ACEOF
16157 #line $LINENO "configure"
16158 /* confdefs.h. */
16159 _ACEOF
16160 cat confdefs.h >>conftest.$ac_ext
16161 cat >>conftest.$ac_ext <<_ACEOF
16162 /* end confdefs.h. */
16163 #include <sys/types.h>
16164 #ifdef HAVE_SYS_SOCKET_H
16165 # include <sys/socket.h>
16166 #endif
16167 #ifdef HAVE_SYS_UN_H
16168 # include <sys/un.h>
16169 #endif
16172 main ()
16174 static struct msghdr ac_aggr;
16175 if (ac_aggr.msg_accrights)
16176 return 0;
16178 return 0;
16180 _ACEOF
16181 rm -f conftest.$ac_objext
16182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16183 (eval $ac_compile) 2>&5
16184 ac_status=$?
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } &&
16187 { ac_try='test -s conftest.$ac_objext'
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16190 ac_status=$?
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; }; then
16193 ac_cv_member_struct_msghdr_msg_accrights=yes
16194 else
16195 echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16198 cat >conftest.$ac_ext <<_ACEOF
16199 #line $LINENO "configure"
16200 /* confdefs.h. */
16201 _ACEOF
16202 cat confdefs.h >>conftest.$ac_ext
16203 cat >>conftest.$ac_ext <<_ACEOF
16204 /* end confdefs.h. */
16205 #include <sys/types.h>
16206 #ifdef HAVE_SYS_SOCKET_H
16207 # include <sys/socket.h>
16208 #endif
16209 #ifdef HAVE_SYS_UN_H
16210 # include <sys/un.h>
16211 #endif
16214 main ()
16216 static struct msghdr ac_aggr;
16217 if (sizeof ac_aggr.msg_accrights)
16218 return 0;
16220 return 0;
16222 _ACEOF
16223 rm -f conftest.$ac_objext
16224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16225 (eval $ac_compile) 2>&5
16226 ac_status=$?
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } &&
16229 { ac_try='test -s conftest.$ac_objext'
16230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231 (eval $ac_try) 2>&5
16232 ac_status=$?
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; }; then
16235 ac_cv_member_struct_msghdr_msg_accrights=yes
16236 else
16237 echo "$as_me: failed program was:" >&5
16238 sed 's/^/| /' conftest.$ac_ext >&5
16240 ac_cv_member_struct_msghdr_msg_accrights=no
16242 rm -f conftest.$ac_objext conftest.$ac_ext
16244 rm -f conftest.$ac_objext conftest.$ac_ext
16246 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
16247 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
16248 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
16250 cat >>confdefs.h <<_ACEOF
16251 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
16252 _ACEOF
16256 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16257 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
16258 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16259 echo $ECHO_N "(cached) $ECHO_C" >&6
16260 else
16261 cat >conftest.$ac_ext <<_ACEOF
16262 #line $LINENO "configure"
16263 /* confdefs.h. */
16264 _ACEOF
16265 cat confdefs.h >>conftest.$ac_ext
16266 cat >>conftest.$ac_ext <<_ACEOF
16267 /* end confdefs.h. */
16268 #include <sys/types.h>
16269 #ifdef HAVE_SYS_SOCKET_H
16270 # include <sys/socket.h>
16271 #endif
16272 #ifdef HAVE_SYS_UN_H
16273 # include <sys/un.h>
16274 #endif
16277 main ()
16279 static struct sockaddr ac_aggr;
16280 if (ac_aggr.sa_len)
16281 return 0;
16283 return 0;
16285 _ACEOF
16286 rm -f conftest.$ac_objext
16287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16288 (eval $ac_compile) 2>&5
16289 ac_status=$?
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); } &&
16292 { ac_try='test -s conftest.$ac_objext'
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294 (eval $ac_try) 2>&5
16295 ac_status=$?
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; }; then
16298 ac_cv_member_struct_sockaddr_sa_len=yes
16299 else
16300 echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16303 cat >conftest.$ac_ext <<_ACEOF
16304 #line $LINENO "configure"
16305 /* confdefs.h. */
16306 _ACEOF
16307 cat confdefs.h >>conftest.$ac_ext
16308 cat >>conftest.$ac_ext <<_ACEOF
16309 /* end confdefs.h. */
16310 #include <sys/types.h>
16311 #ifdef HAVE_SYS_SOCKET_H
16312 # include <sys/socket.h>
16313 #endif
16314 #ifdef HAVE_SYS_UN_H
16315 # include <sys/un.h>
16316 #endif
16319 main ()
16321 static struct sockaddr ac_aggr;
16322 if (sizeof ac_aggr.sa_len)
16323 return 0;
16325 return 0;
16327 _ACEOF
16328 rm -f conftest.$ac_objext
16329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16330 (eval $ac_compile) 2>&5
16331 ac_status=$?
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } &&
16334 { ac_try='test -s conftest.$ac_objext'
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16337 ac_status=$?
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; }; then
16340 ac_cv_member_struct_sockaddr_sa_len=yes
16341 else
16342 echo "$as_me: failed program was:" >&5
16343 sed 's/^/| /' conftest.$ac_ext >&5
16345 ac_cv_member_struct_sockaddr_sa_len=no
16347 rm -f conftest.$ac_objext conftest.$ac_ext
16349 rm -f conftest.$ac_objext conftest.$ac_ext
16351 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16352 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
16353 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
16355 cat >>confdefs.h <<_ACEOF
16356 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16357 _ACEOF
16361 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
16362 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
16363 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
16364 echo $ECHO_N "(cached) $ECHO_C" >&6
16365 else
16366 cat >conftest.$ac_ext <<_ACEOF
16367 #line $LINENO "configure"
16368 /* confdefs.h. */
16369 _ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 #include <sys/types.h>
16374 #ifdef HAVE_SYS_SOCKET_H
16375 # include <sys/socket.h>
16376 #endif
16377 #ifdef HAVE_SYS_UN_H
16378 # include <sys/un.h>
16379 #endif
16382 main ()
16384 static struct sockaddr_un ac_aggr;
16385 if (ac_aggr.sun_len)
16386 return 0;
16388 return 0;
16390 _ACEOF
16391 rm -f conftest.$ac_objext
16392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16393 (eval $ac_compile) 2>&5
16394 ac_status=$?
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } &&
16397 { ac_try='test -s conftest.$ac_objext'
16398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399 (eval $ac_try) 2>&5
16400 ac_status=$?
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; }; then
16403 ac_cv_member_struct_sockaddr_un_sun_len=yes
16404 else
16405 echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.$ac_ext >&5
16408 cat >conftest.$ac_ext <<_ACEOF
16409 #line $LINENO "configure"
16410 /* confdefs.h. */
16411 _ACEOF
16412 cat confdefs.h >>conftest.$ac_ext
16413 cat >>conftest.$ac_ext <<_ACEOF
16414 /* end confdefs.h. */
16415 #include <sys/types.h>
16416 #ifdef HAVE_SYS_SOCKET_H
16417 # include <sys/socket.h>
16418 #endif
16419 #ifdef HAVE_SYS_UN_H
16420 # include <sys/un.h>
16421 #endif
16424 main ()
16426 static struct sockaddr_un ac_aggr;
16427 if (sizeof ac_aggr.sun_len)
16428 return 0;
16430 return 0;
16432 _ACEOF
16433 rm -f conftest.$ac_objext
16434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16435 (eval $ac_compile) 2>&5
16436 ac_status=$?
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); } &&
16439 { ac_try='test -s conftest.$ac_objext'
16440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16441 (eval $ac_try) 2>&5
16442 ac_status=$?
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); }; }; then
16445 ac_cv_member_struct_sockaddr_un_sun_len=yes
16446 else
16447 echo "$as_me: failed program was:" >&5
16448 sed 's/^/| /' conftest.$ac_ext >&5
16450 ac_cv_member_struct_sockaddr_un_sun_len=no
16452 rm -f conftest.$ac_objext conftest.$ac_ext
16454 rm -f conftest.$ac_objext conftest.$ac_ext
16456 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
16457 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
16458 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
16460 cat >>confdefs.h <<_ACEOF
16461 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
16462 _ACEOF
16468 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
16469 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
16470 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
16471 echo $ECHO_N "(cached) $ECHO_C" >&6
16472 else
16473 cat >conftest.$ac_ext <<_ACEOF
16474 #line $LINENO "configure"
16475 /* confdefs.h. */
16476 _ACEOF
16477 cat confdefs.h >>conftest.$ac_ext
16478 cat >>conftest.$ac_ext <<_ACEOF
16479 /* end confdefs.h. */
16480 #include <signal.h>
16483 main ()
16485 static siginfo_t ac_aggr;
16486 if (ac_aggr.si_fd)
16487 return 0;
16489 return 0;
16491 _ACEOF
16492 rm -f conftest.$ac_objext
16493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16494 (eval $ac_compile) 2>&5
16495 ac_status=$?
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } &&
16498 { ac_try='test -s conftest.$ac_objext'
16499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500 (eval $ac_try) 2>&5
16501 ac_status=$?
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; }; then
16504 ac_cv_member_siginfo_t_si_fd=yes
16505 else
16506 echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.$ac_ext >&5
16509 cat >conftest.$ac_ext <<_ACEOF
16510 #line $LINENO "configure"
16511 /* confdefs.h. */
16512 _ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h. */
16516 #include <signal.h>
16519 main ()
16521 static siginfo_t ac_aggr;
16522 if (sizeof ac_aggr.si_fd)
16523 return 0;
16525 return 0;
16527 _ACEOF
16528 rm -f conftest.$ac_objext
16529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16530 (eval $ac_compile) 2>&5
16531 ac_status=$?
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } &&
16534 { ac_try='test -s conftest.$ac_objext'
16535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16537 ac_status=$?
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; }; then
16540 ac_cv_member_siginfo_t_si_fd=yes
16541 else
16542 echo "$as_me: failed program was:" >&5
16543 sed 's/^/| /' conftest.$ac_ext >&5
16545 ac_cv_member_siginfo_t_si_fd=no
16547 rm -f conftest.$ac_objext conftest.$ac_ext
16549 rm -f conftest.$ac_objext conftest.$ac_ext
16551 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
16552 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
16553 if test $ac_cv_member_siginfo_t_si_fd = yes; then
16555 cat >>confdefs.h <<_ACEOF
16556 #define HAVE_SIGINFO_T_SI_FD 1
16557 _ACEOF
16563 echo "$as_me:$LINENO: checking for struct option.name" >&5
16564 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
16565 if test "${ac_cv_member_struct_option_name+set}" = set; then
16566 echo $ECHO_N "(cached) $ECHO_C" >&6
16567 else
16568 cat >conftest.$ac_ext <<_ACEOF
16569 #line $LINENO "configure"
16570 /* confdefs.h. */
16571 _ACEOF
16572 cat confdefs.h >>conftest.$ac_ext
16573 cat >>conftest.$ac_ext <<_ACEOF
16574 /* end confdefs.h. */
16575 #ifdef HAVE_GETOPT_H
16576 #include <getopt.h>
16577 #endif
16580 main ()
16582 static struct option ac_aggr;
16583 if (ac_aggr.name)
16584 return 0;
16586 return 0;
16588 _ACEOF
16589 rm -f conftest.$ac_objext
16590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16591 (eval $ac_compile) 2>&5
16592 ac_status=$?
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } &&
16595 { ac_try='test -s conftest.$ac_objext'
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16598 ac_status=$?
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; }; then
16601 ac_cv_member_struct_option_name=yes
16602 else
16603 echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16606 cat >conftest.$ac_ext <<_ACEOF
16607 #line $LINENO "configure"
16608 /* confdefs.h. */
16609 _ACEOF
16610 cat confdefs.h >>conftest.$ac_ext
16611 cat >>conftest.$ac_ext <<_ACEOF
16612 /* end confdefs.h. */
16613 #ifdef HAVE_GETOPT_H
16614 #include <getopt.h>
16615 #endif
16618 main ()
16620 static struct option ac_aggr;
16621 if (sizeof ac_aggr.name)
16622 return 0;
16624 return 0;
16626 _ACEOF
16627 rm -f conftest.$ac_objext
16628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16629 (eval $ac_compile) 2>&5
16630 ac_status=$?
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); } &&
16633 { ac_try='test -s conftest.$ac_objext'
16634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16635 (eval $ac_try) 2>&5
16636 ac_status=$?
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; }; then
16639 ac_cv_member_struct_option_name=yes
16640 else
16641 echo "$as_me: failed program was:" >&5
16642 sed 's/^/| /' conftest.$ac_ext >&5
16644 ac_cv_member_struct_option_name=no
16646 rm -f conftest.$ac_objext conftest.$ac_ext
16648 rm -f conftest.$ac_objext conftest.$ac_ext
16650 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
16651 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
16652 if test $ac_cv_member_struct_option_name = yes; then
16654 cat >>confdefs.h <<_ACEOF
16655 #define HAVE_STRUCT_OPTION_NAME 1
16656 _ACEOF
16662 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16663 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16664 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16665 echo $ECHO_N "(cached) $ECHO_C" >&6
16666 else
16667 cat >conftest.$ac_ext <<_ACEOF
16668 #line $LINENO "configure"
16669 /* confdefs.h. */
16670 _ACEOF
16671 cat confdefs.h >>conftest.$ac_ext
16672 cat >>conftest.$ac_ext <<_ACEOF
16673 /* end confdefs.h. */
16674 $ac_includes_default
16676 main ()
16678 static struct stat ac_aggr;
16679 if (ac_aggr.st_blocks)
16680 return 0;
16682 return 0;
16684 _ACEOF
16685 rm -f conftest.$ac_objext
16686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16687 (eval $ac_compile) 2>&5
16688 ac_status=$?
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } &&
16691 { ac_try='test -s conftest.$ac_objext'
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16694 ac_status=$?
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; }; then
16697 ac_cv_member_struct_stat_st_blocks=yes
16698 else
16699 echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16702 cat >conftest.$ac_ext <<_ACEOF
16703 #line $LINENO "configure"
16704 /* confdefs.h. */
16705 _ACEOF
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16709 $ac_includes_default
16711 main ()
16713 static struct stat ac_aggr;
16714 if (sizeof ac_aggr.st_blocks)
16715 return 0;
16717 return 0;
16719 _ACEOF
16720 rm -f conftest.$ac_objext
16721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16722 (eval $ac_compile) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } &&
16726 { ac_try='test -s conftest.$ac_objext'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16732 ac_cv_member_struct_stat_st_blocks=yes
16733 else
16734 echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16737 ac_cv_member_struct_stat_st_blocks=no
16739 rm -f conftest.$ac_objext conftest.$ac_ext
16741 rm -f conftest.$ac_objext conftest.$ac_ext
16743 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16744 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16745 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16747 cat >>confdefs.h <<_ACEOF
16748 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16749 _ACEOF
16756 case $host_cpu in
16757 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
16758 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
16759 if test "${ac_cv_cpp_def___i386__+set}" = set; then
16760 echo $ECHO_N "(cached) $ECHO_C" >&6
16761 else
16762 cat >conftest.$ac_ext <<_ACEOF
16763 #line $LINENO "configure"
16764 /* confdefs.h. */
16765 _ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h. */
16769 #ifndef __i386__
16771 #endif
16772 _ACEOF
16773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16774 $EGREP "yes" >/dev/null 2>&1; then
16775 ac_cv_cpp_def___i386__=yes
16776 else
16777 ac_cv_cpp_def___i386__=no
16779 rm -f conftest*
16782 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
16783 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
16784 if test $ac_cv_cpp_def___i386__ = yes; then
16785 CFLAGS="$CFLAGS -D__i386__"
16786 LINTFLAGS="$LINTFLAGS -D__i386__"
16789 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
16790 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
16791 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
16792 echo $ECHO_N "(cached) $ECHO_C" >&6
16793 else
16794 cat >conftest.$ac_ext <<_ACEOF
16795 #line $LINENO "configure"
16796 /* confdefs.h. */
16797 _ACEOF
16798 cat confdefs.h >>conftest.$ac_ext
16799 cat >>conftest.$ac_ext <<_ACEOF
16800 /* end confdefs.h. */
16801 #ifndef __ALPHA__
16803 #endif
16804 _ACEOF
16805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16806 $EGREP "yes" >/dev/null 2>&1; then
16807 ac_cv_cpp_def___ALPHA__=yes
16808 else
16809 ac_cv_cpp_def___ALPHA__=no
16811 rm -f conftest*
16814 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
16815 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
16816 if test $ac_cv_cpp_def___ALPHA__ = yes; then
16817 CFLAGS="$CFLAGS -D__ALPHA__"
16818 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
16821 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
16822 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
16823 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16825 else
16826 cat >conftest.$ac_ext <<_ACEOF
16827 #line $LINENO "configure"
16828 /* confdefs.h. */
16829 _ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16833 #ifndef __sparc__
16835 #endif
16836 _ACEOF
16837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16838 $EGREP "yes" >/dev/null 2>&1; then
16839 ac_cv_cpp_def___sparc__=yes
16840 else
16841 ac_cv_cpp_def___sparc__=no
16843 rm -f conftest*
16846 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
16847 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
16848 if test $ac_cv_cpp_def___sparc__ = yes; then
16849 CFLAGS="$CFLAGS -D__sparc__"
16850 LINTFLAGS="$LINTFLAGS -D__sparc__"
16853 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
16854 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
16855 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
16856 echo $ECHO_N "(cached) $ECHO_C" >&6
16857 else
16858 cat >conftest.$ac_ext <<_ACEOF
16859 #line $LINENO "configure"
16860 /* confdefs.h. */
16861 _ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16865 #ifndef __powerpc__
16867 #endif
16868 _ACEOF
16869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16870 $EGREP "yes" >/dev/null 2>&1; then
16871 ac_cv_cpp_def___powerpc__=yes
16872 else
16873 ac_cv_cpp_def___powerpc__=no
16875 rm -f conftest*
16878 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
16879 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
16880 if test $ac_cv_cpp_def___powerpc__ = yes; then
16881 CFLAGS="$CFLAGS -D__powerpc__"
16882 LINTFLAGS="$LINTFLAGS -D__powerpc__"
16885 esac
16887 case $host_vendor in
16888 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
16889 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
16890 if test "${ac_cv_cpp_def___sun__+set}" = set; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16892 else
16893 cat >conftest.$ac_ext <<_ACEOF
16894 #line $LINENO "configure"
16895 /* confdefs.h. */
16896 _ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h. */
16900 #ifndef __sun__
16902 #endif
16903 _ACEOF
16904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16905 $EGREP "yes" >/dev/null 2>&1; then
16906 ac_cv_cpp_def___sun__=yes
16907 else
16908 ac_cv_cpp_def___sun__=no
16910 rm -f conftest*
16913 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
16914 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
16915 if test $ac_cv_cpp_def___sun__ = yes; then
16916 CFLAGS="$CFLAGS -D__sun__"
16917 LINTFLAGS="$LINTFLAGS -D__sun__"
16920 esac
16926 ac_config_commands="$ac_config_commands controls"
16928 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
16930 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
16932 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
16934 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
16936 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
16938 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
16940 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
16942 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
16944 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
16946 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
16948 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
16950 ac_config_commands="$ac_config_commands dlls/kernel/messages"
16952 ac_config_commands="$ac_config_commands dlls/user/dde"
16954 ac_config_commands="$ac_config_commands dlls/user/resources"
16956 ac_config_commands="$ac_config_commands dlls/wineps/data"
16958 ac_config_commands="$ac_config_commands files"
16960 ac_config_commands="$ac_config_commands graphics"
16962 ac_config_commands="$ac_config_commands graphics/x11drv"
16964 ac_config_commands="$ac_config_commands include/wine"
16966 ac_config_commands="$ac_config_commands memory"
16968 ac_config_commands="$ac_config_commands misc"
16970 ac_config_commands="$ac_config_commands msdos"
16972 ac_config_commands="$ac_config_commands objects"
16974 ac_config_commands="$ac_config_commands programs/regapi/tests"
16976 ac_config_commands="$ac_config_commands programs/regedit/tests"
16978 ac_config_commands="$ac_config_commands windows"
16981 MAKE_RULES=Make.rules
16984 MAKE_DLL_RULES=dlls/Makedll.rules
16987 MAKE_TEST_RULES=dlls/Maketest.rules
16990 MAKE_LIB_RULES=libs/Makelib.rules
16993 MAKE_PROG_RULES=programs/Makeprog.rules
16996 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"
16999 cat >confcache <<\_ACEOF
17000 # This file is a shell script that caches the results of configure
17001 # tests run on this system so they can be shared between configure
17002 # scripts and configure runs, see configure's option --config-cache.
17003 # It is not useful on other systems. If it contains results you don't
17004 # want to keep, you may remove or edit it.
17006 # config.status only pays attention to the cache file if you give it
17007 # the --recheck option to rerun configure.
17009 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17010 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17011 # following values.
17013 _ACEOF
17015 # The following way of writing the cache mishandles newlines in values,
17016 # but we know of no workaround that is simple, portable, and efficient.
17017 # So, don't put newlines in cache variables' values.
17018 # Ultrix sh set writes to stderr and can't be redirected directly,
17019 # and sets the high bit in the cache file unless we assign to the vars.
17021 (set) 2>&1 |
17022 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17023 *ac_space=\ *)
17024 # `set' does not quote correctly, so add quotes (double-quote
17025 # substitution turns \\\\ into \\, and sed turns \\ into \).
17026 sed -n \
17027 "s/'/'\\\\''/g;
17028 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17031 # `set' quotes correctly as required by POSIX, so do not add quotes.
17032 sed -n \
17033 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17035 esac;
17037 sed '
17038 t clear
17039 : clear
17040 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17041 t end
17042 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17043 : end' >>confcache
17044 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17045 if test -w $cache_file; then
17046 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17047 cat confcache >$cache_file
17048 else
17049 echo "not updating unwritable cache $cache_file"
17052 rm -f confcache
17054 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17055 # Let make expand exec_prefix.
17056 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17058 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17059 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17060 # trailing colons and then remove the whole line if VPATH becomes empty
17061 # (actually we leave an empty line to preserve line numbers).
17062 if test "x$srcdir" = x.; then
17063 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17064 s/:*\$(srcdir):*/:/;
17065 s/:*\${srcdir}:*/:/;
17066 s/:*@srcdir@:*/:/;
17067 s/^\([^=]*=[ ]*\):*/\1/;
17068 s/:*$//;
17069 s/^[^=]*=[ ]*$//;
17073 DEFS=-DHAVE_CONFIG_H
17075 ac_libobjs=
17076 ac_ltlibobjs=
17077 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17078 # 1. Remove the extension, and $U if already installed.
17079 ac_i=`echo "$ac_i" |
17080 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17081 # 2. Add them.
17082 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17083 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17084 done
17085 LIBOBJS=$ac_libobjs
17087 LTLIBOBJS=$ac_ltlibobjs
17091 : ${CONFIG_STATUS=./config.status}
17092 ac_clean_files_save=$ac_clean_files
17093 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17094 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17095 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17096 cat >$CONFIG_STATUS <<_ACEOF
17097 #! $SHELL
17098 # Generated by $as_me.
17099 # Run this file to recreate the current configuration.
17100 # Compiler output produced by configure, useful for debugging
17101 # configure, is in config.log if it exists.
17103 debug=false
17104 ac_cs_recheck=false
17105 ac_cs_silent=false
17106 SHELL=\${CONFIG_SHELL-$SHELL}
17107 _ACEOF
17109 cat >>$CONFIG_STATUS <<\_ACEOF
17110 ## --------------------- ##
17111 ## M4sh Initialization. ##
17112 ## --------------------- ##
17114 # Be Bourne compatible
17115 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17116 emulate sh
17117 NULLCMD=:
17118 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17119 # is contrary to our usage. Disable this feature.
17120 alias -g '${1+"$@"}'='"$@"'
17121 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17122 set -o posix
17125 # Support unset when possible.
17126 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17127 as_unset=unset
17128 else
17129 as_unset=false
17133 # Work around bugs in pre-3.0 UWIN ksh.
17134 $as_unset ENV MAIL MAILPATH
17135 PS1='$ '
17136 PS2='> '
17137 PS4='+ '
17139 # NLS nuisances.
17140 for as_var in \
17141 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17142 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17143 LC_TELEPHONE LC_TIME
17145 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17146 eval $as_var=C; export $as_var
17147 else
17148 $as_unset $as_var
17150 done
17152 # Required to use basename.
17153 if expr a : '\(a\)' >/dev/null 2>&1; then
17154 as_expr=expr
17155 else
17156 as_expr=false
17159 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17160 as_basename=basename
17161 else
17162 as_basename=false
17166 # Name of the executable.
17167 as_me=`$as_basename "$0" ||
17168 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17169 X"$0" : 'X\(//\)$' \| \
17170 X"$0" : 'X\(/\)$' \| \
17171 . : '\(.\)' 2>/dev/null ||
17172 echo X/"$0" |
17173 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17174 /^X\/\(\/\/\)$/{ s//\1/; q; }
17175 /^X\/\(\/\).*/{ s//\1/; q; }
17176 s/.*/./; q'`
17179 # PATH needs CR, and LINENO needs CR and PATH.
17180 # Avoid depending upon Character Ranges.
17181 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17182 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17183 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17184 as_cr_digits='0123456789'
17185 as_cr_alnum=$as_cr_Letters$as_cr_digits
17187 # The user is always right.
17188 if test "${PATH_SEPARATOR+set}" != set; then
17189 echo "#! /bin/sh" >conf$$.sh
17190 echo "exit 0" >>conf$$.sh
17191 chmod +x conf$$.sh
17192 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17193 PATH_SEPARATOR=';'
17194 else
17195 PATH_SEPARATOR=:
17197 rm -f conf$$.sh
17201 as_lineno_1=$LINENO
17202 as_lineno_2=$LINENO
17203 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17204 test "x$as_lineno_1" != "x$as_lineno_2" &&
17205 test "x$as_lineno_3" = "x$as_lineno_2" || {
17206 # Find who we are. Look in the path if we contain no path at all
17207 # relative or not.
17208 case $0 in
17209 *[\\/]* ) as_myself=$0 ;;
17210 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17211 for as_dir in $PATH
17213 IFS=$as_save_IFS
17214 test -z "$as_dir" && as_dir=.
17215 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17216 done
17219 esac
17220 # We did not find ourselves, most probably we were run as `sh COMMAND'
17221 # in which case we are not to be found in the path.
17222 if test "x$as_myself" = x; then
17223 as_myself=$0
17225 if test ! -f "$as_myself"; then
17226 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17227 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17228 { (exit 1); exit 1; }; }
17230 case $CONFIG_SHELL in
17232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17233 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17235 IFS=$as_save_IFS
17236 test -z "$as_dir" && as_dir=.
17237 for as_base in sh bash ksh sh5; do
17238 case $as_dir in
17240 if ("$as_dir/$as_base" -c '
17241 as_lineno_1=$LINENO
17242 as_lineno_2=$LINENO
17243 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17244 test "x$as_lineno_1" != "x$as_lineno_2" &&
17245 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17246 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17247 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17248 CONFIG_SHELL=$as_dir/$as_base
17249 export CONFIG_SHELL
17250 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17251 fi;;
17252 esac
17253 done
17254 done
17256 esac
17258 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17259 # uniformly replaced by the line number. The first 'sed' inserts a
17260 # line-number line before each line; the second 'sed' does the real
17261 # work. The second script uses 'N' to pair each line-number line
17262 # with the numbered line, and appends trailing '-' during
17263 # substitution so that $LINENO is not a special case at line end.
17264 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17265 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17266 sed '=' <$as_myself |
17267 sed '
17269 s,$,-,
17270 : loop
17271 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17272 t loop
17273 s,-$,,
17274 s,^['$as_cr_digits']*\n,,
17275 ' >$as_me.lineno &&
17276 chmod +x $as_me.lineno ||
17277 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17278 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17279 { (exit 1); exit 1; }; }
17281 # Don't try to exec as it changes $[0], causing all sort of problems
17282 # (the dirname of $[0] is not the place where we might find the
17283 # original and so on. Autoconf is especially sensible to this).
17284 . ./$as_me.lineno
17285 # Exit status is that of the last command.
17286 exit
17290 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17291 *c*,-n*) ECHO_N= ECHO_C='
17292 ' ECHO_T=' ' ;;
17293 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17294 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17295 esac
17297 if expr a : '\(a\)' >/dev/null 2>&1; then
17298 as_expr=expr
17299 else
17300 as_expr=false
17303 rm -f conf$$ conf$$.exe conf$$.file
17304 echo >conf$$.file
17305 if ln -s conf$$.file conf$$ 2>/dev/null; then
17306 # We could just check for DJGPP; but this test a) works b) is more generic
17307 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17308 if test -f conf$$.exe; then
17309 # Don't use ln at all; we don't have any links
17310 as_ln_s='cp -p'
17311 else
17312 as_ln_s='ln -s'
17314 elif ln conf$$.file conf$$ 2>/dev/null; then
17315 as_ln_s=ln
17316 else
17317 as_ln_s='cp -p'
17319 rm -f conf$$ conf$$.exe conf$$.file
17321 if mkdir -p . 2>/dev/null; then
17322 as_mkdir_p=:
17323 else
17324 as_mkdir_p=false
17327 as_executable_p="test -f"
17329 # Sed expression to map a string onto a valid CPP name.
17330 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17332 # Sed expression to map a string onto a valid variable name.
17333 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17336 # IFS
17337 # We need space, tab and new line, in precisely that order.
17338 as_nl='
17340 IFS=" $as_nl"
17342 # CDPATH.
17343 $as_unset CDPATH
17345 exec 6>&1
17347 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17348 # report actual input values of CONFIG_FILES etc. instead of their
17349 # values after options handling. Logging --version etc. is OK.
17350 exec 5>>config.log
17352 echo
17353 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17354 ## Running $as_me. ##
17355 _ASBOX
17356 } >&5
17357 cat >&5 <<_CSEOF
17359 This file was extended by Wine $as_me 20031016, which was
17360 generated by GNU Autoconf 2.57. Invocation command line was
17362 CONFIG_FILES = $CONFIG_FILES
17363 CONFIG_HEADERS = $CONFIG_HEADERS
17364 CONFIG_LINKS = $CONFIG_LINKS
17365 CONFIG_COMMANDS = $CONFIG_COMMANDS
17366 $ $0 $@
17368 _CSEOF
17369 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17370 echo >&5
17371 _ACEOF
17373 # Files that config.status was made for.
17374 if test -n "$ac_config_files"; then
17375 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17378 if test -n "$ac_config_headers"; then
17379 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17382 if test -n "$ac_config_links"; then
17383 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17386 if test -n "$ac_config_commands"; then
17387 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17390 cat >>$CONFIG_STATUS <<\_ACEOF
17392 ac_cs_usage="\
17393 \`$as_me' instantiates files from templates according to the
17394 current configuration.
17396 Usage: $0 [OPTIONS] [FILE]...
17398 -h, --help print this help, then exit
17399 -V, --version print version number, then exit
17400 -q, --quiet do not print progress messages
17401 -d, --debug don't remove temporary files
17402 --recheck update $as_me by reconfiguring in the same conditions
17403 --file=FILE[:TEMPLATE]
17404 instantiate the configuration file FILE
17405 --header=FILE[:TEMPLATE]
17406 instantiate the configuration header FILE
17408 Configuration files:
17409 $config_files
17411 Configuration headers:
17412 $config_headers
17414 Configuration commands:
17415 $config_commands
17417 Report bugs to <bug-autoconf@gnu.org>."
17418 _ACEOF
17420 cat >>$CONFIG_STATUS <<_ACEOF
17421 ac_cs_version="\\
17422 Wine config.status 20031016
17423 configured by $0, generated by GNU Autoconf 2.57,
17424 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17426 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17427 Free Software Foundation, Inc.
17428 This config.status script is free software; the Free Software Foundation
17429 gives unlimited permission to copy, distribute and modify it."
17430 srcdir=$srcdir
17431 INSTALL="$INSTALL"
17432 _ACEOF
17434 cat >>$CONFIG_STATUS <<\_ACEOF
17435 # If no file are specified by the user, then we need to provide default
17436 # value. By we need to know if files were specified by the user.
17437 ac_need_defaults=:
17438 while test $# != 0
17440 case $1 in
17441 --*=*)
17442 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17443 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17444 ac_shift=:
17447 ac_option=$1
17448 ac_optarg=$2
17449 ac_shift=shift
17451 *) # This is not an option, so the user has probably given explicit
17452 # arguments.
17453 ac_option=$1
17454 ac_need_defaults=false;;
17455 esac
17457 case $ac_option in
17458 # Handling of the options.
17459 _ACEOF
17460 cat >>$CONFIG_STATUS <<\_ACEOF
17461 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17462 ac_cs_recheck=: ;;
17463 --version | --vers* | -V )
17464 echo "$ac_cs_version"; exit 0 ;;
17465 --he | --h)
17466 # Conflict between --help and --header
17467 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17468 Try \`$0 --help' for more information." >&5
17469 echo "$as_me: error: ambiguous option: $1
17470 Try \`$0 --help' for more information." >&2;}
17471 { (exit 1); exit 1; }; };;
17472 --help | --hel | -h )
17473 echo "$ac_cs_usage"; exit 0 ;;
17474 --debug | --d* | -d )
17475 debug=: ;;
17476 --file | --fil | --fi | --f )
17477 $ac_shift
17478 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17479 ac_need_defaults=false;;
17480 --header | --heade | --head | --hea )
17481 $ac_shift
17482 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17483 ac_need_defaults=false;;
17484 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17485 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17486 ac_cs_silent=: ;;
17488 # This is an error.
17489 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17490 Try \`$0 --help' for more information." >&5
17491 echo "$as_me: error: unrecognized option: $1
17492 Try \`$0 --help' for more information." >&2;}
17493 { (exit 1); exit 1; }; } ;;
17495 *) ac_config_targets="$ac_config_targets $1" ;;
17497 esac
17498 shift
17499 done
17501 ac_configure_extra_args=
17503 if $ac_cs_silent; then
17504 exec 6>/dev/null
17505 ac_configure_extra_args="$ac_configure_extra_args --silent"
17508 _ACEOF
17509 cat >>$CONFIG_STATUS <<_ACEOF
17510 if \$ac_cs_recheck; then
17511 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17512 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17515 _ACEOF
17521 cat >>$CONFIG_STATUS <<\_ACEOF
17522 for ac_config_target in $ac_config_targets
17524 case "$ac_config_target" in
17525 # Handling of arguments.
17526 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17527 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
17528 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
17529 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
17530 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17531 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17532 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
17533 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
17534 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
17535 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
17536 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
17537 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
17538 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
17539 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
17540 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
17541 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
17542 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
17543 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
17544 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
17545 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
17546 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
17547 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
17548 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
17549 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
17550 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
17551 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
17552 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
17553 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
17554 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
17555 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
17556 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
17557 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
17558 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
17559 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
17560 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
17561 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
17562 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
17563 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
17564 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
17565 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
17566 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
17567 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
17568 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
17569 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
17570 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
17571 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
17572 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
17573 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
17574 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
17575 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
17576 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
17577 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
17578 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
17579 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
17580 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
17581 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
17582 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
17583 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
17584 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
17585 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
17586 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
17587 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
17588 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
17589 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
17590 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
17591 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
17592 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
17593 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
17594 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
17595 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
17596 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
17597 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
17598 "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
17599 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
17600 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
17601 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
17602 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
17603 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
17604 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
17605 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
17606 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
17607 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
17608 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
17609 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
17610 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
17611 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
17612 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
17613 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
17614 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
17615 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
17616 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
17617 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
17618 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
17619 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
17620 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
17621 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
17622 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
17623 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
17624 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
17625 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
17626 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
17627 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
17628 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
17629 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
17630 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
17631 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
17632 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
17633 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
17634 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
17635 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
17636 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
17637 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
17638 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
17639 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
17640 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
17641 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
17642 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
17643 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
17644 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
17645 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
17646 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
17647 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
17648 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
17649 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
17650 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
17651 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
17652 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
17653 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
17654 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
17655 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
17656 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
17657 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
17658 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
17659 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
17660 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
17661 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
17662 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
17663 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
17664 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
17665 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
17666 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
17667 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
17668 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
17669 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
17670 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
17671 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
17672 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
17673 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
17674 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17675 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
17676 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
17677 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
17678 "libs/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/uuid/Makefile" ;;
17679 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
17680 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
17681 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
17682 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
17683 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
17684 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
17685 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
17686 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
17687 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
17688 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
17689 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
17690 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
17691 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
17692 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
17693 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
17694 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
17695 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
17696 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
17697 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
17698 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
17699 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
17700 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
17701 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
17702 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
17703 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
17704 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
17705 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
17706 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
17707 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
17708 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
17709 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
17710 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
17711 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
17712 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
17713 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17714 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
17715 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
17716 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
17717 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
17718 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
17719 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
17720 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
17721 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
17722 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
17723 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
17724 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
17725 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
17726 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
17727 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
17728 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
17729 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
17730 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
17731 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
17732 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
17733 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
17734 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
17735 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
17736 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
17737 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
17738 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
17739 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
17740 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
17741 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
17742 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
17743 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
17744 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
17745 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
17746 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
17747 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
17748 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17749 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17750 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17751 { (exit 1); exit 1; }; };;
17752 esac
17753 done
17755 # If the user did not use the arguments to specify the items to instantiate,
17756 # then the envvar interface is used. Set only those that are not.
17757 # We use the long form for the default assignment because of an extremely
17758 # bizarre bug on SunOS 4.1.3.
17759 if $ac_need_defaults; then
17760 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17761 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17762 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17765 # Have a temporary directory for convenience. Make it in the build tree
17766 # simply because there is no reason to put it here, and in addition,
17767 # creating and moving files from /tmp can sometimes cause problems.
17768 # Create a temporary directory, and hook for its removal unless debugging.
17769 $debug ||
17771 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17772 trap '{ (exit 1); exit 1; }' 1 2 13 15
17775 # Create a (secure) tmp directory for tmp files.
17778 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17779 test -n "$tmp" && test -d "$tmp"
17780 } ||
17782 tmp=./confstat$$-$RANDOM
17783 (umask 077 && mkdir $tmp)
17784 } ||
17786 echo "$me: cannot create a temporary directory in ." >&2
17787 { (exit 1); exit 1; }
17790 _ACEOF
17792 cat >>$CONFIG_STATUS <<_ACEOF
17795 # CONFIG_FILES section.
17798 # No need to generate the scripts if there are no CONFIG_FILES.
17799 # This happens for instance when ./config.status config.h
17800 if test -n "\$CONFIG_FILES"; then
17801 # Protect against being on the right side of a sed subst in config.status.
17802 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17803 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17804 s,@SHELL@,$SHELL,;t t
17805 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17806 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17807 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17808 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17809 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17810 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17811 s,@exec_prefix@,$exec_prefix,;t t
17812 s,@prefix@,$prefix,;t t
17813 s,@program_transform_name@,$program_transform_name,;t t
17814 s,@bindir@,$bindir,;t t
17815 s,@sbindir@,$sbindir,;t t
17816 s,@libexecdir@,$libexecdir,;t t
17817 s,@datadir@,$datadir,;t t
17818 s,@sysconfdir@,$sysconfdir,;t t
17819 s,@sharedstatedir@,$sharedstatedir,;t t
17820 s,@localstatedir@,$localstatedir,;t t
17821 s,@libdir@,$libdir,;t t
17822 s,@includedir@,$includedir,;t t
17823 s,@oldincludedir@,$oldincludedir,;t t
17824 s,@infodir@,$infodir,;t t
17825 s,@mandir@,$mandir,;t t
17826 s,@build_alias@,$build_alias,;t t
17827 s,@host_alias@,$host_alias,;t t
17828 s,@target_alias@,$target_alias,;t t
17829 s,@DEFS@,$DEFS,;t t
17830 s,@ECHO_C@,$ECHO_C,;t t
17831 s,@ECHO_N@,$ECHO_N,;t t
17832 s,@ECHO_T@,$ECHO_T,;t t
17833 s,@LIBS@,$LIBS,;t t
17834 s,@WIN16_FILES@,$WIN16_FILES,;t t
17835 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
17836 s,@build@,$build,;t t
17837 s,@build_cpu@,$build_cpu,;t t
17838 s,@build_vendor@,$build_vendor,;t t
17839 s,@build_os@,$build_os,;t t
17840 s,@host@,$host,;t t
17841 s,@host_cpu@,$host_cpu,;t t
17842 s,@host_vendor@,$host_vendor,;t t
17843 s,@host_os@,$host_os,;t t
17844 s,@SET_MAKE@,$SET_MAKE,;t t
17845 s,@CC@,$CC,;t t
17846 s,@CFLAGS@,$CFLAGS,;t t
17847 s,@LDFLAGS@,$LDFLAGS,;t t
17848 s,@CPPFLAGS@,$CPPFLAGS,;t t
17849 s,@ac_ct_CC@,$ac_ct_CC,;t t
17850 s,@EXEEXT@,$EXEEXT,;t t
17851 s,@OBJEXT@,$OBJEXT,;t t
17852 s,@CPP@,$CPP,;t t
17853 s,@TOOLSDIR@,$TOOLSDIR,;t t
17854 s,@X_CFLAGS@,$X_CFLAGS,;t t
17855 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17856 s,@X_LIBS@,$X_LIBS,;t t
17857 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17858 s,@YACC@,$YACC,;t t
17859 s,@LEX@,$LEX,;t t
17860 s,@LEXLIB@,$LEXLIB,;t t
17861 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
17862 s,@XYACC@,$XYACC,;t t
17863 s,@XLEX@,$XLEX,;t t
17864 s,@AS@,$AS,;t t
17865 s,@ac_ct_AS@,$ac_ct_AS,;t t
17866 s,@LD@,$LD,;t t
17867 s,@ac_ct_LD@,$ac_ct_LD,;t t
17868 s,@AR@,$AR,;t t
17869 s,@ac_ct_AR@,$ac_ct_AR,;t t
17870 s,@RANLIB@,$RANLIB,;t t
17871 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17872 s,@STRIP@,$STRIP,;t t
17873 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17874 s,@WINDRES@,$WINDRES,;t t
17875 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
17876 s,@LN_S@,$LN_S,;t t
17877 s,@LN@,$LN,;t t
17878 s,@LDCONFIG@,$LDCONFIG,;t t
17879 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17880 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17881 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17882 s,@LINT@,$LINT,;t t
17883 s,@LINTFLAGS@,$LINTFLAGS,;t t
17884 s,@DB2HTML@,$DB2HTML,;t t
17885 s,@DB2PDF@,$DB2PDF,;t t
17886 s,@DB2PS@,$DB2PS,;t t
17887 s,@DB2TXT@,$DB2TXT,;t t
17888 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
17889 s,@JPEGLIB@,$JPEGLIB,;t t
17890 s,@EGREP@,$EGREP,;t t
17891 s,@GIFLIB@,$GIFLIB,;t t
17892 s,@XLIB@,$XLIB,;t t
17893 s,@XFILES@,$XFILES,;t t
17894 s,@OPENGLFILES@,$OPENGLFILES,;t t
17895 s,@GLU32FILES@,$GLU32FILES,;t t
17896 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
17897 s,@NASLIBS@,$NASLIBS,;t t
17898 s,@CURSESLIBS@,$CURSESLIBS,;t t
17899 s,@sane_devel@,$sane_devel,;t t
17900 s,@SANELIBS@,$SANELIBS,;t t
17901 s,@SANEINCL@,$SANEINCL,;t t
17902 s,@ICULIBS@,$ICULIBS,;t t
17903 s,@ft_devel@,$ft_devel,;t t
17904 s,@ft_devel2@,$ft_devel2,;t t
17905 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
17906 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
17907 s,@ARTSLIBS@,$ARTSLIBS,;t t
17908 s,@ARTSINCL@,$ARTSINCL,;t t
17909 s,@ALSALIBS@,$ALSALIBS,;t t
17910 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
17911 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
17912 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
17913 s,@DLLEXT@,$DLLEXT,;t t
17914 s,@DLLFLAGS@,$DLLFLAGS,;t t
17915 s,@DLLIBS@,$DLLIBS,;t t
17916 s,@LDSHARED@,$LDSHARED,;t t
17917 s,@LDDLL@,$LDDLL,;t t
17918 s,@LIBEXT@,$LIBEXT,;t t
17919 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
17920 s,@DLLTOOL@,$DLLTOOL,;t t
17921 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
17922 s,@DLLWRAP@,$DLLWRAP,;t t
17923 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
17924 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
17925 s,@CROSSTEST@,$CROSSTEST,;t t
17926 s,@CROSSCC@,$CROSSCC,;t t
17927 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
17928 s,@LDPATH@,$LDPATH,;t t
17929 s,@CRTLIBS@,$CRTLIBS,;t t
17930 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
17931 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
17932 s,@LDD@,$LDD,;t t
17933 s,@ALLOCA@,$ALLOCA,;t t
17934 s,@LIBOBJS@,$LIBOBJS,;t t
17935 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17936 /@MAKE_RULES@/r $MAKE_RULES
17937 s,@MAKE_RULES@,,;t t
17938 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
17939 s,@MAKE_DLL_RULES@,,;t t
17940 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
17941 s,@MAKE_TEST_RULES@,,;t t
17942 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
17943 s,@MAKE_LIB_RULES@,,;t t
17944 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
17945 s,@MAKE_PROG_RULES@,,;t t
17946 CEOF
17948 _ACEOF
17950 cat >>$CONFIG_STATUS <<\_ACEOF
17951 # Split the substitutions into bite-sized pieces for seds with
17952 # small command number limits, like on Digital OSF/1 and HP-UX.
17953 ac_max_sed_lines=48
17954 ac_sed_frag=1 # Number of current file.
17955 ac_beg=1 # First line for current file.
17956 ac_end=$ac_max_sed_lines # Line after last line for current file.
17957 ac_more_lines=:
17958 ac_sed_cmds=
17959 while $ac_more_lines; do
17960 if test $ac_beg -gt 1; then
17961 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17962 else
17963 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17965 if test ! -s $tmp/subs.frag; then
17966 ac_more_lines=false
17967 else
17968 # The purpose of the label and of the branching condition is to
17969 # speed up the sed processing (if there are no `@' at all, there
17970 # is no need to browse any of the substitutions).
17971 # These are the two extra sed commands mentioned above.
17972 (echo ':t
17973 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17974 if test -z "$ac_sed_cmds"; then
17975 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17976 else
17977 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17979 ac_sed_frag=`expr $ac_sed_frag + 1`
17980 ac_beg=$ac_end
17981 ac_end=`expr $ac_end + $ac_max_sed_lines`
17983 done
17984 if test -z "$ac_sed_cmds"; then
17985 ac_sed_cmds=cat
17987 fi # test -n "$CONFIG_FILES"
17989 _ACEOF
17990 cat >>$CONFIG_STATUS <<\_ACEOF
17991 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17992 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17993 case $ac_file in
17994 - | *:- | *:-:* ) # input from stdin
17995 cat >$tmp/stdin
17996 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17997 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17998 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17999 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18000 * ) ac_file_in=$ac_file.in ;;
18001 esac
18003 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18004 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18005 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18006 X"$ac_file" : 'X\(//\)[^/]' \| \
18007 X"$ac_file" : 'X\(//\)$' \| \
18008 X"$ac_file" : 'X\(/\)' \| \
18009 . : '\(.\)' 2>/dev/null ||
18010 echo X"$ac_file" |
18011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18012 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18013 /^X\(\/\/\)$/{ s//\1/; q; }
18014 /^X\(\/\).*/{ s//\1/; q; }
18015 s/.*/./; q'`
18016 { if $as_mkdir_p; then
18017 mkdir -p "$ac_dir"
18018 else
18019 as_dir="$ac_dir"
18020 as_dirs=
18021 while test ! -d "$as_dir"; do
18022 as_dirs="$as_dir $as_dirs"
18023 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18024 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18025 X"$as_dir" : 'X\(//\)[^/]' \| \
18026 X"$as_dir" : 'X\(//\)$' \| \
18027 X"$as_dir" : 'X\(/\)' \| \
18028 . : '\(.\)' 2>/dev/null ||
18029 echo X"$as_dir" |
18030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18031 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18032 /^X\(\/\/\)$/{ s//\1/; q; }
18033 /^X\(\/\).*/{ s//\1/; q; }
18034 s/.*/./; q'`
18035 done
18036 test ! -n "$as_dirs" || mkdir $as_dirs
18037 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18038 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18039 { (exit 1); exit 1; }; }; }
18041 ac_builddir=.
18043 if test "$ac_dir" != .; then
18044 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18045 # A "../" for each directory in $ac_dir_suffix.
18046 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18047 else
18048 ac_dir_suffix= ac_top_builddir=
18051 case $srcdir in
18052 .) # No --srcdir option. We are building in place.
18053 ac_srcdir=.
18054 if test -z "$ac_top_builddir"; then
18055 ac_top_srcdir=.
18056 else
18057 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18058 fi ;;
18059 [\\/]* | ?:[\\/]* ) # Absolute path.
18060 ac_srcdir=$srcdir$ac_dir_suffix;
18061 ac_top_srcdir=$srcdir ;;
18062 *) # Relative path.
18063 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18064 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18065 esac
18066 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18067 # absolute.
18068 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18069 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18070 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18071 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18074 case $INSTALL in
18075 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18076 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18077 esac
18079 if test x"$ac_file" != x-; then
18080 { echo "$as_me:$LINENO: creating $ac_file" >&5
18081 echo "$as_me: creating $ac_file" >&6;}
18082 rm -f "$ac_file"
18084 # Let's still pretend it is `configure' which instantiates (i.e., don't
18085 # use $as_me), people would be surprised to read:
18086 # /* config.h. Generated by config.status. */
18087 if test x"$ac_file" = x-; then
18088 configure_input=
18089 else
18090 configure_input="$ac_file. "
18092 configure_input=$configure_input"Generated from `echo $ac_file_in |
18093 sed 's,.*/,,'` by configure."
18095 # First look for the input files in the build tree, otherwise in the
18096 # src tree.
18097 ac_file_inputs=`IFS=:
18098 for f in $ac_file_in; do
18099 case $f in
18100 -) echo $tmp/stdin ;;
18101 [\\/$]*)
18102 # Absolute (can't be DOS-style, as IFS=:)
18103 test -f "$f" || { { 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 echo $f;;
18107 *) # Relative
18108 if test -f "$f"; then
18109 # Build tree
18110 echo $f
18111 elif test -f "$srcdir/$f"; then
18112 # Source tree
18113 echo $srcdir/$f
18114 else
18115 # /dev/null tree
18116 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18117 echo "$as_me: error: cannot find input file: $f" >&2;}
18118 { (exit 1); exit 1; }; }
18119 fi;;
18120 esac
18121 done` || { (exit 1); exit 1; }
18122 _ACEOF
18123 cat >>$CONFIG_STATUS <<_ACEOF
18124 sed "$ac_vpsub
18125 $extrasub
18126 _ACEOF
18127 cat >>$CONFIG_STATUS <<\_ACEOF
18129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18130 s,@configure_input@,$configure_input,;t t
18131 s,@srcdir@,$ac_srcdir,;t t
18132 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18133 s,@top_srcdir@,$ac_top_srcdir,;t t
18134 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18135 s,@builddir@,$ac_builddir,;t t
18136 s,@abs_builddir@,$ac_abs_builddir,;t t
18137 s,@top_builddir@,$ac_top_builddir,;t t
18138 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18139 s,@INSTALL@,$ac_INSTALL,;t t
18140 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18141 rm -f $tmp/stdin
18142 if test x"$ac_file" != x-; then
18143 mv $tmp/out $ac_file
18144 else
18145 cat $tmp/out
18146 rm -f $tmp/out
18149 done
18150 _ACEOF
18151 cat >>$CONFIG_STATUS <<\_ACEOF
18154 # CONFIG_HEADER section.
18157 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18158 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18160 # ac_d sets the value in "#define NAME VALUE" lines.
18161 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18162 ac_dB='[ ].*$,\1#\2'
18163 ac_dC=' '
18164 ac_dD=',;t'
18165 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18166 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18167 ac_uB='$,\1#\2define\3'
18168 ac_uC=' '
18169 ac_uD=',;t'
18171 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18172 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18173 case $ac_file in
18174 - | *:- | *:-:* ) # input from stdin
18175 cat >$tmp/stdin
18176 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18177 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18178 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18179 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18180 * ) ac_file_in=$ac_file.in ;;
18181 esac
18183 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18184 echo "$as_me: creating $ac_file" >&6;}
18186 # First look for the input files in the build tree, otherwise in the
18187 # src tree.
18188 ac_file_inputs=`IFS=:
18189 for f in $ac_file_in; do
18190 case $f in
18191 -) echo $tmp/stdin ;;
18192 [\\/$]*)
18193 # Absolute (can't be DOS-style, as IFS=:)
18194 test -f "$f" || { { 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 echo $f;;
18198 *) # Relative
18199 if test -f "$f"; then
18200 # Build tree
18201 echo $f
18202 elif test -f "$srcdir/$f"; then
18203 # Source tree
18204 echo $srcdir/$f
18205 else
18206 # /dev/null tree
18207 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18208 echo "$as_me: error: cannot find input file: $f" >&2;}
18209 { (exit 1); exit 1; }; }
18210 fi;;
18211 esac
18212 done` || { (exit 1); exit 1; }
18213 # Remove the trailing spaces.
18214 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18216 _ACEOF
18218 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18219 # `conftest.undefs', that substitutes the proper values into
18220 # config.h.in to produce config.h. The first handles `#define'
18221 # templates, and the second `#undef' templates.
18222 # And first: Protect against being on the right side of a sed subst in
18223 # config.status. Protect against being in an unquoted here document
18224 # in config.status.
18225 rm -f conftest.defines conftest.undefs
18226 # Using a here document instead of a string reduces the quoting nightmare.
18227 # Putting comments in sed scripts is not portable.
18229 # `end' is used to avoid that the second main sed command (meant for
18230 # 0-ary CPP macros) applies to n-ary macro definitions.
18231 # See the Autoconf documentation for `clear'.
18232 cat >confdef2sed.sed <<\_ACEOF
18233 s/[\\&,]/\\&/g
18234 s,[\\$`],\\&,g
18235 t clear
18236 : clear
18237 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18238 t end
18239 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18240 : end
18241 _ACEOF
18242 # If some macros were called several times there might be several times
18243 # the same #defines, which is useless. Nevertheless, we may not want to
18244 # sort them, since we want the *last* AC-DEFINE to be honored.
18245 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18246 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18247 rm -f confdef2sed.sed
18249 # This sed command replaces #undef with comments. This is necessary, for
18250 # example, in the case of _POSIX_SOURCE, which is predefined and required
18251 # on some systems where configure will not decide to define it.
18252 cat >>conftest.undefs <<\_ACEOF
18253 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18254 _ACEOF
18256 # Break up conftest.defines because some shells have a limit on the size
18257 # of here documents, and old seds have small limits too (100 cmds).
18258 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18259 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18260 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18261 echo ' :' >>$CONFIG_STATUS
18262 rm -f conftest.tail
18263 while grep . conftest.defines >/dev/null
18265 # Write a limited-size here document to $tmp/defines.sed.
18266 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18267 # Speed up: don't consider the non `#define' lines.
18268 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18269 # Work around the forget-to-reset-the-flag bug.
18270 echo 't clr' >>$CONFIG_STATUS
18271 echo ': clr' >>$CONFIG_STATUS
18272 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18273 echo 'CEOF
18274 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18275 rm -f $tmp/in
18276 mv $tmp/out $tmp/in
18277 ' >>$CONFIG_STATUS
18278 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18279 rm -f conftest.defines
18280 mv conftest.tail conftest.defines
18281 done
18282 rm -f conftest.defines
18283 echo ' fi # grep' >>$CONFIG_STATUS
18284 echo >>$CONFIG_STATUS
18286 # Break up conftest.undefs because some shells have a limit on the size
18287 # of here documents, and old seds have small limits too (100 cmds).
18288 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18289 rm -f conftest.tail
18290 while grep . conftest.undefs >/dev/null
18292 # Write a limited-size here document to $tmp/undefs.sed.
18293 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18294 # Speed up: don't consider the non `#undef'
18295 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18296 # Work around the forget-to-reset-the-flag bug.
18297 echo 't clr' >>$CONFIG_STATUS
18298 echo ': clr' >>$CONFIG_STATUS
18299 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18300 echo 'CEOF
18301 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18302 rm -f $tmp/in
18303 mv $tmp/out $tmp/in
18304 ' >>$CONFIG_STATUS
18305 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18306 rm -f conftest.undefs
18307 mv conftest.tail conftest.undefs
18308 done
18309 rm -f conftest.undefs
18311 cat >>$CONFIG_STATUS <<\_ACEOF
18312 # Let's still pretend it is `configure' which instantiates (i.e., don't
18313 # use $as_me), people would be surprised to read:
18314 # /* config.h. Generated by config.status. */
18315 if test x"$ac_file" = x-; then
18316 echo "/* Generated by configure. */" >$tmp/config.h
18317 else
18318 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18320 cat $tmp/in >>$tmp/config.h
18321 rm -f $tmp/in
18322 if test x"$ac_file" != x-; then
18323 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18324 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18325 echo "$as_me: $ac_file is unchanged" >&6;}
18326 else
18327 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18328 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18329 X"$ac_file" : 'X\(//\)[^/]' \| \
18330 X"$ac_file" : 'X\(//\)$' \| \
18331 X"$ac_file" : 'X\(/\)' \| \
18332 . : '\(.\)' 2>/dev/null ||
18333 echo X"$ac_file" |
18334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18335 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18336 /^X\(\/\/\)$/{ s//\1/; q; }
18337 /^X\(\/\).*/{ s//\1/; q; }
18338 s/.*/./; q'`
18339 { if $as_mkdir_p; then
18340 mkdir -p "$ac_dir"
18341 else
18342 as_dir="$ac_dir"
18343 as_dirs=
18344 while test ! -d "$as_dir"; do
18345 as_dirs="$as_dir $as_dirs"
18346 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18348 X"$as_dir" : 'X\(//\)[^/]' \| \
18349 X"$as_dir" : 'X\(//\)$' \| \
18350 X"$as_dir" : 'X\(/\)' \| \
18351 . : '\(.\)' 2>/dev/null ||
18352 echo X"$as_dir" |
18353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18354 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18355 /^X\(\/\/\)$/{ s//\1/; q; }
18356 /^X\(\/\).*/{ s//\1/; q; }
18357 s/.*/./; q'`
18358 done
18359 test ! -n "$as_dirs" || mkdir $as_dirs
18360 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18361 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18362 { (exit 1); exit 1; }; }; }
18364 rm -f $ac_file
18365 mv $tmp/config.h $ac_file
18367 else
18368 cat $tmp/config.h
18369 rm -f $tmp/config.h
18371 done
18372 _ACEOF
18373 cat >>$CONFIG_STATUS <<\_ACEOF
18376 # CONFIG_COMMANDS section.
18378 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18379 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18380 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18381 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18382 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18383 X"$ac_dest" : 'X\(//\)[^/]' \| \
18384 X"$ac_dest" : 'X\(//\)$' \| \
18385 X"$ac_dest" : 'X\(/\)' \| \
18386 . : '\(.\)' 2>/dev/null ||
18387 echo X"$ac_dest" |
18388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18389 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18390 /^X\(\/\/\)$/{ s//\1/; q; }
18391 /^X\(\/\).*/{ s//\1/; q; }
18392 s/.*/./; q'`
18393 ac_builddir=.
18395 if test "$ac_dir" != .; then
18396 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18397 # A "../" for each directory in $ac_dir_suffix.
18398 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18399 else
18400 ac_dir_suffix= ac_top_builddir=
18403 case $srcdir in
18404 .) # No --srcdir option. We are building in place.
18405 ac_srcdir=.
18406 if test -z "$ac_top_builddir"; then
18407 ac_top_srcdir=.
18408 else
18409 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18410 fi ;;
18411 [\\/]* | ?:[\\/]* ) # Absolute path.
18412 ac_srcdir=$srcdir$ac_dir_suffix;
18413 ac_top_srcdir=$srcdir ;;
18414 *) # Relative path.
18415 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18416 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18417 esac
18418 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18419 # absolute.
18420 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18421 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18422 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18423 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18426 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18427 echo "$as_me: executing $ac_dest commands" >&6;}
18428 case $ac_dest in
18429 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
18430 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
18431 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
18432 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
18433 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
18434 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
18435 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
18436 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
18437 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
18438 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
18439 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
18440 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
18441 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
18442 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
18443 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
18444 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
18445 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
18446 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
18447 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
18448 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
18449 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
18450 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
18451 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
18452 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
18453 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
18454 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
18455 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
18456 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
18457 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
18458 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
18459 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
18460 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
18461 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
18462 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
18463 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
18464 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
18465 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
18466 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
18467 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
18468 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
18469 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
18470 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
18471 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
18472 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
18473 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
18474 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
18475 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
18476 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
18477 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
18478 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
18479 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
18480 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
18481 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
18482 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
18483 esac
18484 done
18485 _ACEOF
18487 cat >>$CONFIG_STATUS <<\_ACEOF
18489 { (exit 0); exit 0; }
18490 _ACEOF
18491 chmod +x $CONFIG_STATUS
18492 ac_clean_files=$ac_clean_files_save
18495 # configure is writing to config.log, and then calls config.status.
18496 # config.status does its own redirection, appending to config.log.
18497 # Unfortunately, on DOS this fails, as config.log is still kept open
18498 # by configure, so config.status won't be able to write to it; its
18499 # output is simply discarded. So we exec the FD to /dev/null,
18500 # effectively closing config.log, so it can be properly (re)opened and
18501 # appended to by config.status. When coming back to configure, we
18502 # need to make the FD available again.
18503 if test "$no_create" != yes; then
18504 ac_cs_success=:
18505 ac_config_status_args=
18506 test "$silent" = yes &&
18507 ac_config_status_args="$ac_config_status_args --quiet"
18508 exec 5>/dev/null
18509 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18510 exec 5>>config.log
18511 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18512 # would make configure fail if this is the last instruction.
18513 $ac_cs_success || { (exit 1); exit 1; }
18517 if test "$have_x" = "no"
18518 then
18519 echo
18520 echo "*** Warning: X development files not found. Wine will be built without"
18521 echo "*** X support, which currently does not work, and would probably not be"
18522 echo "*** what you want anyway. You will need to install devel packages of"
18523 echo "*** Xlib/Xfree86 at the very least."
18526 if test "$wine_cv_opengl_version_OK" = "no"
18527 then
18528 echo
18529 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
18530 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
18533 if test "$wine_cv_msg_freetype" = "yes"
18534 then
18535 echo
18536 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
18537 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
18538 echo "*** freetype-devel package (or its equivalent on your distribution) to"
18539 echo "*** enable Wine to use TrueType fonts."
18542 echo
18543 echo "Configure finished. Do 'make depend && make' to compile Wine."
18544 echo