Moved CreateThread16 to kernel, and made it use WOWCallback16.
[wine] / configure
CommitLineData
e2991ea7 1#! /bin/sh
e2991ea7 2# Guess values for system-dependent variables and create Makefiles.
03e5ce35 3# Generated by GNU Autoconf 2.57 for Wine 20030219.
e2991ea7 4#
daa2886c 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
f5818d2f 6# Free Software Foundation, Inc.
e2991ea7
AJ
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
daa2886c
AJ
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
f5818d2f
AJ
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
11af04e3
AJ
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+"$@"}'='"$@"'
f5818d2f
AJ
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22fi
23
daa2886c
AJ
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
11af04e3
AJ
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
e24bcc77
AJ
39for 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
11af04e3
AJ
43do
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
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
daa2886c
AJ
63
64
f5818d2f 65# Name of the executable.
11af04e3 66as_me=`$as_basename "$0" ||
daa2886c
AJ
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
11af04e3 77
daa2886c
AJ
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
e24bcc77
AJ
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
daa2886c
AJ
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
e24bcc77 96 rm -f conf$$.sh
daa2886c
AJ
97fi
98
99
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
137 /*)
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
11af04e3
AJ
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; }
daa2886c
AJ
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
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 '
166 N
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; }; }
177
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
184}
185
186
187case `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= ;;
192esac
f5818d2f
AJ
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
11af04e3
AJ
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 as_mkdir_p=false
222fi
223
f5818d2f
AJ
224as_executable_p="test -f"
225
daa2886c
AJ
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
f5818d2f 231
f5818d2f
AJ
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" $as_nl"
238
239# CDPATH.
11af04e3 240$as_unset CDPATH
daa2886c 241
f5818d2f
AJ
242
243# Name of the host.
244# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245# so uname gets run too.
246ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248exec 6>&1
249
250#
251# Initializations.
252#
e2991ea7 253ac_default_prefix=/usr/local
11af04e3 254ac_config_libobj_dir=.
f5818d2f
AJ
255cross_compiling=no
256subdirs=
daa2886c
AJ
257MFLAGS=
258MAKEFLAGS=
f5818d2f
AJ
259SHELL=${CONFIG_SHELL-/bin/sh}
260
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}
265
daa2886c
AJ
266# Identity of this package.
267PACKAGE_NAME='Wine'
268PACKAGE_TARNAME='wine'
03e5ce35
AJ
269PACKAGE_VERSION='20030219'
270PACKAGE_STRING='Wine 20030219'
daa2886c
AJ
271PACKAGE_BUGREPORT=''
272
f5818d2f
AJ
273ac_unique_file="server/atom.c"
274# Factoring default headers for most tests.
275ac_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"
e2991ea7 310
728bedcf 311ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS OPTIONS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX 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 C2MAN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP CROSSTEST CROSSCC LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS'
11af04e3 312ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_PROG_RULES'
daa2886c 313
e2991ea7 314# Initialize some variables set by options.
f5818d2f
AJ
315ac_init_help=
316ac_init_version=false
e2991ea7
AJ
317# The variables have the same names as the options, with
318# dashes changed to underlines.
f5818d2f 319cache_file=/dev/null
e2991ea7 320exec_prefix=NONE
e2991ea7 321no_create=
e2991ea7
AJ
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
e2991ea7
AJ
330verbose=
331x_includes=NONE
332x_libraries=NONE
f5818d2f
AJ
333
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.
d7d4fdf8
AJ
339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
e2991ea7 351
e2991ea7
AJ
352ac_prev=
353for ac_option
354do
e2991ea7
AJ
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
360 fi
361
f5818d2f 362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
e2991ea7
AJ
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
f5818d2f 366 case $ac_option in
e2991ea7 367
d7d4fdf8
AJ
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
f5818d2f 371 bindir=$ac_optarg ;;
d7d4fdf8
AJ
372
373 -build | --build | --buil | --bui | --bu)
f5818d2f 374 ac_prev=build_alias ;;
d7d4fdf8 375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
f5818d2f 376 build_alias=$ac_optarg ;;
e2991ea7
AJ
377
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=*)
f5818d2f
AJ
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
e2991ea7 387
d7d4fdf8
AJ
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
f5818d2f 392 datadir=$ac_optarg ;;
d7d4fdf8 393
e2991ea7 394 -disable-* | --disable-*)
f5818d2f 395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
e2991ea7 396 # Reject names that are not valid shell variable names.
f5818d2f
AJ
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" ;;
e2991ea7
AJ
402
403 -enable-* | --enable-*)
f5818d2f 404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
e2991ea7 405 # Reject names that are not valid shell variable names.
f5818d2f
AJ
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"`;;
e2991ea7
AJ
412 *) ac_optarg=yes ;;
413 esac
f5818d2f 414 eval "enable_$ac_feature='$ac_optarg'" ;;
e2991ea7
AJ
415
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=*)
f5818d2f 423 exec_prefix=$ac_optarg ;;
e2991ea7
AJ
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
f5818d2f
AJ
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 ;;
e2991ea7
AJ
435
436 -host | --host | --hos | --ho)
f5818d2f 437 ac_prev=host_alias ;;
e2991ea7 438 -host=* | --host=* | --hos=* | --ho=*)
f5818d2f 439 host_alias=$ac_optarg ;;
e2991ea7 440
d7d4fdf8
AJ
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=*)
f5818d2f 446 includedir=$ac_optarg ;;
d7d4fdf8
AJ
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
f5818d2f 451 infodir=$ac_optarg ;;
d7d4fdf8
AJ
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
f5818d2f 456 libdir=$ac_optarg ;;
d7d4fdf8
AJ
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
f5818d2f 463 libexecdir=$ac_optarg ;;
d7d4fdf8
AJ
464
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=*)
f5818d2f 472 localstatedir=$ac_optarg ;;
d7d4fdf8
AJ
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
f5818d2f 477 mandir=$ac_optarg ;;
d7d4fdf8 478
e2991ea7
AJ
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
daa2886c 484 | --no-cr | --no-c | -n)
e2991ea7
AJ
485 no_create=yes ;;
486
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 ;;
490
d7d4fdf8
AJ
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=*)
f5818d2f 498 oldincludedir=$ac_optarg ;;
d7d4fdf8 499
e2991ea7
AJ
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
f5818d2f 503 prefix=$ac_optarg ;;
e2991ea7
AJ
504
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=*)
f5818d2f 510 program_prefix=$ac_optarg ;;
e2991ea7
AJ
511
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=*)
f5818d2f 517 program_suffix=$ac_optarg ;;
e2991ea7
AJ
518
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=*)
f5818d2f 534 program_transform_name=$ac_optarg ;;
e2991ea7
AJ
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
d7d4fdf8
AJ
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
f5818d2f 544 sbindir=$ac_optarg ;;
d7d4fdf8
AJ
545
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=*)
f5818d2f 555 sharedstatedir=$ac_optarg ;;
d7d4fdf8 556
e2991ea7
AJ
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
f5818d2f 560 site=$ac_optarg ;;
e2991ea7
AJ
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
f5818d2f 565 srcdir=$ac_optarg ;;
e2991ea7 566
d7d4fdf8
AJ
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=*)
f5818d2f 572 sysconfdir=$ac_optarg ;;
d7d4fdf8 573
e2991ea7 574 -target | --target | --targe | --targ | --tar | --ta | --t)
f5818d2f 575 ac_prev=target_alias ;;
e2991ea7 576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
f5818d2f 577 target_alias=$ac_optarg ;;
e2991ea7
AJ
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
f5818d2f
AJ
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
e2991ea7
AJ
584
585 -with-* | --with-*)
f5818d2f 586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
e2991ea7 587 # Reject names that are not valid shell variable names.
f5818d2f
AJ
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; }; }
e2991ea7 591 ac_package=`echo $ac_package| sed 's/-/_/g'`
f5818d2f
AJ
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
e2991ea7
AJ
594 *) ac_optarg=yes ;;
595 esac
f5818d2f 596 eval "with_$ac_package='$ac_optarg'" ;;
e2991ea7
AJ
597
598 -without-* | --without-*)
f5818d2f 599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
e2991ea7 600 # Reject names that are not valid shell variable names.
f5818d2f
AJ
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" ;;
e2991ea7
AJ
606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
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=*)
f5818d2f 616 x_includes=$ac_optarg ;;
e2991ea7
AJ
617
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=*)
f5818d2f 623 x_libraries=$ac_optarg ;;
e2991ea7 624
f5818d2f
AJ
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
e2991ea7
AJ
628 ;;
629
f5818d2f
AJ
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 ;;
639
d7d4fdf8 640 *)
f5818d2f
AJ
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}
e2991ea7
AJ
646 ;;
647
648 esac
649done
650
651if test -n "$ac_prev"; then
f5818d2f
AJ
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; }; }
e2991ea7 655fi
e2991ea7 656
f5818d2f
AJ
657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
659do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
daa2886c 663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
f5818d2f
AJ
664 { (exit 1); exit 1; }; };;
665 esac
666done
e2991ea7 667
f5818d2f
AJ
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
e2991ea7 671do
f5818d2f
AJ
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
daa2886c 675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
f5818d2f 676 { (exit 1); exit 1; }; };;
e2991ea7
AJ
677 esac
678done
679
f5818d2f
AJ
680# There might be people who depend on the old broken behavior: `$host'
681# used to hold the argument of --host etc.
daa2886c 682# FIXME: To remove some day.
f5818d2f
AJ
683build=$build_alias
684host=$host_alias
685target=$target_alias
686
daa2886c 687# FIXME: To remove some day.
f5818d2f
AJ
688if 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
695 fi
696fi
e2991ea7 697
f5818d2f
AJ
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
e2991ea7 700
f5818d2f 701test "$silent" = yes && exec 6>/dev/null
e2991ea7 702
daa2886c 703
e2991ea7
AJ
704# Find the source files, if location was not specified.
705if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
daa2886c
AJ
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 ||
714echo 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'`
e2991ea7
AJ
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724else
725 ac_srcdir_defaulted=no
726fi
727if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
daa2886c 729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
f5818d2f 730 { (exit 1); exit 1; }; }
e2991ea7 731 else
daa2886c 732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
f5818d2f 733 { (exit 1); exit 1; }; }
e2991ea7
AJ
734 fi
735fi
11af04e3
AJ
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; }; }
f5818d2f
AJ
739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
752ac_env_CC_set=${CC+set}
753ac_env_CC_value=$CC
754ac_cv_env_CC_set=${CC+set}
755ac_cv_env_CC_value=$CC
756ac_env_CFLAGS_set=${CFLAGS+set}
757ac_env_CFLAGS_value=$CFLAGS
758ac_cv_env_CFLAGS_set=${CFLAGS+set}
759ac_cv_env_CFLAGS_value=$CFLAGS
760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
764ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765ac_env_CPPFLAGS_value=$CPPFLAGS
766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768ac_env_CPP_set=${CPP+set}
769ac_env_CPP_value=$CPP
770ac_cv_env_CPP_set=${CPP+set}
771ac_cv_env_CPP_value=$CPP
772
773#
774# Report the --help message.
775#
776if 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.
daa2886c 779 cat <<_ACEOF
03e5ce35 780\`configure' configures Wine 20030219 to adapt to many kinds of systems.
f5818d2f
AJ
781
782Usage: $0 [OPTION]... [VAR=VALUE]...
783
784To assign environment variables (e.g., CC, CFLAGS...), specify them as
785VAR=VALUE. See below for descriptions of some of the useful variables.
786
787Defaults for the options are specified in brackets.
788
789Configuration:
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 \`..']
799
daa2886c 800_ACEOF
f5818d2f 801
daa2886c 802 cat <<_ACEOF
f5818d2f
AJ
803Installation 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]
808
809By default, \`make install' will install all the files in
810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812for instance \`--prefix=\$HOME'.
813
814For better control, use the options below.
815
816Fine 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]
daa2886c 829_ACEOF
f5818d2f 830
daa2886c 831 cat <<\_ACEOF
f5818d2f
AJ
832
833X features:
834 --x-includes=DIR X include files are in DIR
835 --x-libraries=DIR X library files are in DIR
836
837System types:
838 --build=BUILD configure for building on BUILD [guessed]
daa2886c 839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
daa2886c 840_ACEOF
f5818d2f
AJ
841fi
842
843if test -n "$ac_init_help"; then
844 case $ac_init_help in
03e5ce35 845 short | recursive ) echo "Configuration of Wine 20030219:";;
f5818d2f 846 esac
daa2886c 847 cat <<\_ACEOF
f5818d2f
AJ
848
849Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c728efc3 852 --disable-win16 do not include Win16 support
f5818d2f
AJ
853 --disable-debug compile out all debugging messages
854 --disable-trace compile out TRACE messages
f5818d2f
AJ
855
856Optional Packages:
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
b8074991 859 --without-opengl do not use OpenGL
f5818d2f 860 --without-curses do not use curses
fc01b729 861 --with-wine-tools=<dir> use Wine tools from directory <dir>
f5818d2f
AJ
862 --with-x use the X Window System
863
864Some influential environment variables:
865 CC C compiler command
866 CFLAGS C compiler flags
867 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
868 nonstandard directory <lib dir>
869 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
870 headers in a nonstandard directory <include dir>
871 CPP C preprocessor
872
873Use these variables to override the choices made by `configure' or to help
874it to find libraries and programs with nonstandard names/locations.
875
daa2886c 876_ACEOF
f5818d2f
AJ
877fi
878
879if test "$ac_init_help" = "recursive"; then
880 # If there are subdirs, report their specific --help.
881 ac_popdir=`pwd`
daa2886c
AJ
882 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
883 test -d $ac_dir || continue
884 ac_builddir=.
885
886if test "$ac_dir" != .; then
887 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
888 # A "../" for each directory in $ac_dir_suffix.
889 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
890else
891 ac_dir_suffix= ac_top_builddir=
892fi
f5818d2f 893
daa2886c
AJ
894case $srcdir in
895 .) # No --srcdir option. We are building in place.
896 ac_srcdir=.
897 if test -z "$ac_top_builddir"; then
898 ac_top_srcdir=.
899 else
900 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
901 fi ;;
902 [\\/]* | ?:[\\/]* ) # Absolute path.
903 ac_srcdir=$srcdir$ac_dir_suffix;
904 ac_top_srcdir=$srcdir ;;
905 *) # Relative path.
906 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
907 ac_top_srcdir=$ac_top_builddir$srcdir ;;
908esac
909# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
910# absolute.
911ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11af04e3 912ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
daa2886c
AJ
913ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
914ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
915
916 cd $ac_dir
f5818d2f 917 # Check for guested configure; otherwise get Cygnus style configure.
daa2886c 918 if test -f $ac_srcdir/configure.gnu; then
f5818d2f 919 echo
daa2886c
AJ
920 $SHELL $ac_srcdir/configure.gnu --help=recursive
921 elif test -f $ac_srcdir/configure; then
f5818d2f 922 echo
daa2886c
AJ
923 $SHELL $ac_srcdir/configure --help=recursive
924 elif test -f $ac_srcdir/configure.ac ||
925 test -f $ac_srcdir/configure.in; then
f5818d2f
AJ
926 echo
927 $ac_configure --help
928 else
daa2886c 929 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
f5818d2f
AJ
930 fi
931 cd $ac_popdir
932 done
933fi
e2991ea7 934
f5818d2f
AJ
935test -n "$ac_init_help" && exit 0
936if $ac_init_version; then
daa2886c 937 cat <<\_ACEOF
03e5ce35 938Wine configure 20030219
e24bcc77 939generated by GNU Autoconf 2.57
f5818d2f 940
daa2886c 941Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
f5818d2f
AJ
942Free Software Foundation, Inc.
943This configure script is free software; the Free Software Foundation
944gives unlimited permission to copy, distribute and modify it.
daa2886c 945_ACEOF
f5818d2f
AJ
946 exit 0
947fi
948exec 5>config.log
daa2886c 949cat >&5 <<_ACEOF
f5818d2f
AJ
950This file contains any messages produced by compilers while
951running configure, to aid debugging if configure makes a mistake.
952
03e5ce35 953It was created by Wine $as_me 20030219, which was
e24bcc77 954generated by GNU Autoconf 2.57. Invocation command line was
f5818d2f
AJ
955
956 $ $0 $@
957
daa2886c 958_ACEOF
f5818d2f
AJ
959{
960cat <<_ASUNAME
daa2886c
AJ
961## --------- ##
962## Platform. ##
963## --------- ##
f5818d2f
AJ
964
965hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
966uname -m = `(uname -m) 2>/dev/null || echo unknown`
967uname -r = `(uname -r) 2>/dev/null || echo unknown`
968uname -s = `(uname -s) 2>/dev/null || echo unknown`
969uname -v = `(uname -v) 2>/dev/null || echo unknown`
970
971/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
972/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
973
974/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
975/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
976/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
977hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
978/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
979/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
980/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
981
f5818d2f 982_ASUNAME
daa2886c
AJ
983
984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
985for as_dir in $PATH
986do
987 IFS=$as_save_IFS
988 test -z "$as_dir" && as_dir=.
989 echo "PATH: $as_dir"
990done
991
f5818d2f
AJ
992} >&5
993
daa2886c
AJ
994cat >&5 <<_ACEOF
995
996
997## ----------- ##
998## Core tests. ##
999## ----------- ##
1000
1001_ACEOF
f5818d2f 1002
f5818d2f
AJ
1003
1004# Keep a trace of the command line.
1005# Strip out --no-create and --no-recursion so they do not pile up.
e24bcc77 1006# Strip out --silent because we don't want to record it for future runs.
f5818d2f 1007# Also quote any args containing shell meta-characters.
e24bcc77 1008# Make two passes to allow for proper duplicate-argument suppression.
f5818d2f 1009ac_configure_args=
e24bcc77
AJ
1010ac_configure_args0=
1011ac_configure_args1=
f5818d2f 1012ac_sep=
e24bcc77
AJ
1013ac_must_keep_next=false
1014for ac_pass in 1 2
f5818d2f 1015do
e24bcc77
AJ
1016 for ac_arg
1017 do
1018 case $ac_arg in
1019 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021 | -silent | --silent | --silen | --sile | --sil)
1022 continue ;;
1023 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1024 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1025 esac
1026 case $ac_pass in
1027 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1028 2)
1029 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1030 if test $ac_must_keep_next = true; then
1031 ac_must_keep_next=false # Got value, back to normal.
1032 else
1033 case $ac_arg in
1034 *=* | --config-cache | -C | -disable-* | --disable-* \
1035 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1036 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1037 | -with-* | --with-* | -without-* | --without-* | --x)
1038 case "$ac_configure_args0 " in
1039 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1040 esac
1041 ;;
1042 -* ) ac_must_keep_next=true ;;
1043 esac
1044 fi
1045 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1046 # Get rid of the leading space.
1047 ac_sep=" "
1048 ;;
1049 esac
1050 done
f5818d2f 1051done
e24bcc77
AJ
1052$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1053$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
f5818d2f
AJ
1054
1055# When interrupted or exit'd, cleanup temporary files, and complete
1056# config.log. We remove comments because anyway the quotes in there
1057# would cause problems or look ugly.
daa2886c
AJ
1058# WARNING: Be sure not to use single quotes in there, as some shells,
1059# such as our DU 5.0 friend, will then `close' the trap.
f5818d2f
AJ
1060trap 'exit_status=$?
1061 # Save into config.log some information that might help in debugging.
daa2886c
AJ
1062 {
1063 echo
11af04e3 1064
daa2886c
AJ
1065 cat <<\_ASBOX
1066## ---------------- ##
1067## Cache variables. ##
1068## ---------------- ##
1069_ASBOX
1070 echo
1071 # The following way of writing the cache mishandles newlines in values,
f5818d2f
AJ
1072{
1073 (set) 2>&1 |
1074 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1075 *ac_space=\ *)
1076 sed -n \
1077 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1079 ;;
1080 *)
1081 sed -n \
1082 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1083 ;;
1084 esac;
daa2886c
AJ
1085}
1086 echo
11af04e3
AJ
1087
1088 cat <<\_ASBOX
1089## ----------------- ##
1090## Output variables. ##
1091## ----------------- ##
1092_ASBOX
1093 echo
1094 for ac_var in $ac_subst_vars
1095 do
1096 eval ac_val=$`echo $ac_var`
1097 echo "$ac_var='"'"'$ac_val'"'"'"
1098 done | sort
1099 echo
1100
1101 if test -n "$ac_subst_files"; then
1102 cat <<\_ASBOX
1103## ------------- ##
1104## Output files. ##
1105## ------------- ##
1106_ASBOX
1107 echo
1108 for ac_var in $ac_subst_files
1109 do
1110 eval ac_val=$`echo $ac_var`
1111 echo "$ac_var='"'"'$ac_val'"'"'"
1112 done | sort
1113 echo
1114 fi
1115
daa2886c
AJ
1116 if test -s confdefs.h; then
1117 cat <<\_ASBOX
1118## ----------- ##
1119## confdefs.h. ##
1120## ----------- ##
1121_ASBOX
1122 echo
11af04e3 1123 sed "/^$/d" confdefs.h | sort
daa2886c
AJ
1124 echo
1125 fi
1126 test "$ac_signal" != 0 &&
1127 echo "$as_me: caught signal $ac_signal"
1128 echo "$as_me: exit $exit_status"
1129 } >&5
1130 rm -f core core.* *.core &&
1131 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
f5818d2f
AJ
1132 exit $exit_status
1133 ' 0
1134for ac_signal in 1 2 13 15; do
1135 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1136done
1137ac_signal=0
1138
1139# confdefs.h avoids OS command line length limits that DEFS can exceed.
1140rm -rf conftest* confdefs.h
1141# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1142echo >confdefs.h
1143
daa2886c
AJ
1144# Predefined preprocessor variables.
1145
1146cat >>confdefs.h <<_ACEOF
1147#define PACKAGE_NAME "$PACKAGE_NAME"
1148_ACEOF
1149
1150
1151cat >>confdefs.h <<_ACEOF
1152#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1153_ACEOF
1154
1155
1156cat >>confdefs.h <<_ACEOF
1157#define PACKAGE_VERSION "$PACKAGE_VERSION"
1158_ACEOF
1159
1160
1161cat >>confdefs.h <<_ACEOF
1162#define PACKAGE_STRING "$PACKAGE_STRING"
1163_ACEOF
1164
1165
1166cat >>confdefs.h <<_ACEOF
1167#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1168_ACEOF
1169
1170
f5818d2f 1171# Let the site file select an alternate cache file if it wants to.
e2991ea7
AJ
1172# Prefer explicitly selected file to automatically selected ones.
1173if test -z "$CONFIG_SITE"; then
1174 if test "x$prefix" != xNONE; then
1175 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1176 else
1177 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1178 fi
1179fi
1180for ac_site_file in $CONFIG_SITE; do
1181 if test -r "$ac_site_file"; then
daa2886c 1182 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
f5818d2f 1183echo "$as_me: loading site script $ac_site_file" >&6;}
daa2886c 1184 sed 's/^/| /' "$ac_site_file" >&5
e2991ea7
AJ
1185 . "$ac_site_file"
1186 fi
1187done
1188
1189if test -r "$cache_file"; then
f5818d2f
AJ
1190 # Some versions of bash will fail to source /dev/null (special
1191 # files actually), so we avoid doing that.
1192 if test -f "$cache_file"; then
daa2886c 1193 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
f5818d2f
AJ
1194echo "$as_me: loading cache $cache_file" >&6;}
1195 case $cache_file in
1196 [\\/]* | ?:[\\/]* ) . $cache_file;;
1197 *) . ./$cache_file;;
1198 esac
1199 fi
e2991ea7 1200else
daa2886c 1201 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
f5818d2f
AJ
1202echo "$as_me: creating cache $cache_file" >&6;}
1203 >$cache_file
1204fi
1205
1206# Check that the precious variables saved in the cache have kept the same
1207# value.
1208ac_cache_corrupted=false
1209for ac_var in `(set) 2>&1 |
1210 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1211 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1212 eval ac_new_set=\$ac_env_${ac_var}_set
1213 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1214 eval ac_new_val="\$ac_env_${ac_var}_value"
1215 case $ac_old_set,$ac_new_set in
1216 set,)
daa2886c 1217 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
f5818d2f
AJ
1218echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1219 ac_cache_corrupted=: ;;
1220 ,set)
daa2886c 1221 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
f5818d2f
AJ
1222echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1223 ac_cache_corrupted=: ;;
1224 ,);;
1225 *)
1226 if test "x$ac_old_val" != "x$ac_new_val"; then
daa2886c 1227 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
f5818d2f 1228echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
daa2886c 1229 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
f5818d2f 1230echo "$as_me: former value: $ac_old_val" >&2;}
daa2886c 1231 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
f5818d2f
AJ
1232echo "$as_me: current value: $ac_new_val" >&2;}
1233 ac_cache_corrupted=:
1234 fi;;
1235 esac
daa2886c 1236 # Pass precious variables to config.status.
f5818d2f
AJ
1237 if test "$ac_new_set" = set; then
1238 case $ac_new_val in
1239 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
daa2886c
AJ
1240 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1241 *) ac_arg=$ac_var=$ac_new_val ;;
1242 esac
1243 case " $ac_configure_args " in
1244 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1245 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
f5818d2f
AJ
1246 esac
1247 fi
1248done
1249if $ac_cache_corrupted; then
daa2886c 1250 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
f5818d2f 1251echo "$as_me: error: changes in the environment can compromise the build" >&2;}
daa2886c 1252 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
f5818d2f
AJ
1253echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1254 { (exit 1); exit 1; }; }
e2991ea7
AJ
1255fi
1256
1257ac_ext=c
b817f4fb 1258ac_cpp='$CPP $CPPFLAGS'
f5818d2f
AJ
1259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1261ac_compiler_gnu=$ac_cv_c_compiler_gnu
1262
daa2886c
AJ
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
e2991ea7 1288
11af04e3
AJ
1289
1290 ac_config_headers="$ac_config_headers include/config.h"
18f92e76 1291
d7d4fdf8
AJ
1292ac_aux_dir=
1293for ac_dir in tools $srcdir/tools; do
1294 if test -f $ac_dir/install-sh; then
1295 ac_aux_dir=$ac_dir
1296 ac_install_sh="$ac_aux_dir/install-sh -c"
1297 break
1298 elif test -f $ac_dir/install.sh; then
1299 ac_aux_dir=$ac_dir
1300 ac_install_sh="$ac_aux_dir/install.sh -c"
1301 break
f5818d2f
AJ
1302 elif test -f $ac_dir/shtool; then
1303 ac_aux_dir=$ac_dir
1304 ac_install_sh="$ac_aux_dir/shtool install -c"
1305 break
d7d4fdf8
AJ
1306 fi
1307done
1308if test -z "$ac_aux_dir"; then
daa2886c 1309 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
f5818d2f
AJ
1310echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1311 { (exit 1); exit 1; }; }
d7d4fdf8 1312fi
f5818d2f
AJ
1313ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1314ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1315ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
ff8331ea 1316
daa2886c
AJ
1317
1318
c728efc3
AJ
1319# Check whether --enable-win16 or --disable-win16 was given.
1320if test "${enable_win16+set}" = set; then
1321 enableval="$enable_win16"
1322
1323fi;
f90efa9c
AJ
1324# Check whether --enable-debug or --disable-debug was given.
1325if test "${enable_debug+set}" = set; then
1326 enableval="$enable_debug"
f90efa9c 1327
f5818d2f
AJ
1328fi;
1329# Check whether --enable-trace or --disable-trace was given.
1330if test "${enable_trace+set}" = set; then
1331 enableval="$enable_trace"
f90efa9c 1332
f5818d2f 1333fi;
b8074991
AJ
1334
1335
1336# Check whether --with-opengl or --without-opengl was given.
1337if test "${with_opengl+set}" = set; then
1338 withval="$with_opengl"
f90efa9c 1339
f5818d2f 1340fi;
f90efa9c 1341
5e5ad531
PS
1342# Check whether --with-curses or --without-curses was given.
1343if test "${with_curses+set}" = set; then
1344 withval="$with_curses"
5e5ad531 1345
f5818d2f 1346fi;
5e5ad531 1347
fc01b729
AJ
1348# Check whether --with-wine-tools or --without-wine-tools was given.
1349if test "${with_wine_tools+set}" = set; then
1350 withval="$with_wine_tools"
1351
1352fi;
1353
daa2886c 1354
c728efc3
AJ
1355WIN16_FILES="\$(WIN16_FILES)"
1356
1357WIN16_INSTALL="\$(WIN16_INSTALL)"
1358
1359if test "x$enable_win16" = "xno"
1360then
1361 WIN16_FILES=""
1362 WIN16_INSTALL=""
1363fi
f5818d2f
AJ
1364if test "x$enable_debug" = "xno"
1365then
b7258bef 1366
daa2886c 1367cat >>confdefs.h <<\_ACEOF
f5818d2f 1368#define NO_DEBUG_MSGS 1
daa2886c 1369_ACEOF
b7258bef 1370
ed2f19a6 1371fi
f5818d2f 1372if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
ed2f19a6 1373then
a0b2b1d0 1374
daa2886c 1375cat >>confdefs.h <<\_ACEOF
f5818d2f 1376#define NO_TRACE_MSGS 1
daa2886c 1377_ACEOF
f5818d2f
AJ
1378
1379fi
1380
daa2886c 1381
f5818d2f
AJ
1382# Make sure we can run config.sub.
1383$ac_config_sub sun4 >/dev/null 2>&1 ||
daa2886c 1384 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
f5818d2f
AJ
1385echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1386 { (exit 1); exit 1; }; }
1387
daa2886c 1388echo "$as_me:$LINENO: checking build system type" >&5
f5818d2f
AJ
1389echo $ECHO_N "checking build system type... $ECHO_C" >&6
1390if test "${ac_cv_build+set}" = set; then
1391 echo $ECHO_N "(cached) $ECHO_C" >&6
1392else
1393 ac_cv_build_alias=$build_alias
1394test -z "$ac_cv_build_alias" &&
1395 ac_cv_build_alias=`$ac_config_guess`
1396test -z "$ac_cv_build_alias" &&
daa2886c 1397 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
f5818d2f
AJ
1398echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1399 { (exit 1); exit 1; }; }
1400ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
daa2886c
AJ
1401 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1402echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
f5818d2f
AJ
1403 { (exit 1); exit 1; }; }
1404
1405fi
daa2886c 1406echo "$as_me:$LINENO: result: $ac_cv_build" >&5
f5818d2f
AJ
1407echo "${ECHO_T}$ac_cv_build" >&6
1408build=$ac_cv_build
1409build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1410build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1411build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1412
daa2886c
AJ
1413
1414echo "$as_me:$LINENO: checking host system type" >&5
f5818d2f
AJ
1415echo $ECHO_N "checking host system type... $ECHO_C" >&6
1416if test "${ac_cv_host+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1418else
1419 ac_cv_host_alias=$host_alias
1420test -z "$ac_cv_host_alias" &&
1421 ac_cv_host_alias=$ac_cv_build_alias
1422ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
daa2886c 1423 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
f5818d2f
AJ
1424echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1425 { (exit 1); exit 1; }; }
1426
1427fi
daa2886c 1428echo "$as_me:$LINENO: result: $ac_cv_host" >&5
f5818d2f
AJ
1429echo "${ECHO_T}$ac_cv_host" >&6
1430host=$ac_cv_host
1431host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1432host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1433host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1434
daa2886c 1435
e24bcc77
AJ
1436echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1437echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
f5818d2f
AJ
1438set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1439if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1441else
daa2886c 1442 cat >conftest.make <<\_ACEOF
e2991ea7 1443all:
e24bcc77 1444 @echo 'ac_maketemp="$(MAKE)"'
daa2886c 1445_ACEOF
e2991ea7 1446# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
f5818d2f 1447eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
e2991ea7
AJ
1448if test -n "$ac_maketemp"; then
1449 eval ac_cv_prog_make_${ac_make}_set=yes
1450else
1451 eval ac_cv_prog_make_${ac_make}_set=no
1452fi
f5818d2f 1453rm -f conftest.make
e2991ea7
AJ
1454fi
1455if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
daa2886c 1456 echo "$as_me:$LINENO: result: yes" >&5
f5818d2f 1457echo "${ECHO_T}yes" >&6
e2991ea7
AJ
1458 SET_MAKE=
1459else
daa2886c 1460 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 1461echo "${ECHO_T}no" >&6
e2991ea7
AJ
1462 SET_MAKE="MAKE=${MAKE-make}"
1463fi
1464
f5818d2f
AJ
1465ac_ext=c
1466ac_cpp='$CPP $CPPFLAGS'
1467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470if test -n "$ac_tool_prefix"; then
1471 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1472set dummy ${ac_tool_prefix}gcc; ac_word=$2
daa2886c 1473echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
1474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475if test "${ac_cv_prog_CC+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1477else
1478 if test -n "$CC"; then
1479 ac_cv_prog_CC="$CC" # Let the user override the test.
1480else
daa2886c
AJ
1481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482for as_dir in $PATH
1483do
1484 IFS=$as_save_IFS
1485 test -z "$as_dir" && as_dir=.
1486 for ac_exec_ext in '' $ac_executable_extensions; do
1487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490 break 2
1491 fi
1492done
f5818d2f
AJ
1493done
1494
1495fi
1496fi
1497CC=$ac_cv_prog_CC
1498if test -n "$CC"; then
daa2886c 1499 echo "$as_me:$LINENO: result: $CC" >&5
f5818d2f
AJ
1500echo "${ECHO_T}$CC" >&6
1501else
daa2886c 1502 echo "$as_me:$LINENO: result: no" >&5
f5818d2f
AJ
1503echo "${ECHO_T}no" >&6
1504fi
1505
1506fi
1507if test -z "$ac_cv_prog_CC"; then
1508 ac_ct_CC=$CC
1509 # Extract the first word of "gcc", so it can be a program name with args.
e2991ea7 1510set dummy gcc; ac_word=$2
daa2886c 1511echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
1512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1514 echo $ECHO_N "(cached) $ECHO_C" >&6
1515else
1516 if test -n "$ac_ct_CC"; then
1517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1518else
daa2886c
AJ
1519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1520for as_dir in $PATH
1521do
1522 IFS=$as_save_IFS
1523 test -z "$as_dir" && as_dir=.
1524 for ac_exec_ext in '' $ac_executable_extensions; do
1525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1526 ac_cv_prog_ac_ct_CC="gcc"
1527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1528 break 2
1529 fi
1530done
f5818d2f
AJ
1531done
1532
1533fi
1534fi
1535ac_ct_CC=$ac_cv_prog_ac_ct_CC
1536if test -n "$ac_ct_CC"; then
daa2886c 1537 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
f5818d2f
AJ
1538echo "${ECHO_T}$ac_ct_CC" >&6
1539else
daa2886c 1540 echo "$as_me:$LINENO: result: no" >&5
f5818d2f
AJ
1541echo "${ECHO_T}no" >&6
1542fi
1543
1544 CC=$ac_ct_CC
1545else
1546 CC="$ac_cv_prog_CC"
1547fi
1548
1549if test -z "$CC"; then
1550 if test -n "$ac_tool_prefix"; then
1551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1552set dummy ${ac_tool_prefix}cc; ac_word=$2
daa2886c 1553echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
1554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555if test "${ac_cv_prog_CC+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7
AJ
1557else
1558 if test -n "$CC"; then
1559 ac_cv_prog_CC="$CC" # Let the user override the test.
1560else
daa2886c
AJ
1561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562for as_dir in $PATH
1563do
1564 IFS=$as_save_IFS
1565 test -z "$as_dir" && as_dir=.
1566 for ac_exec_ext in '' $ac_executable_extensions; do
1567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568 ac_cv_prog_CC="${ac_tool_prefix}cc"
1569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570 break 2
1571 fi
1572done
f5818d2f
AJ
1573done
1574
e2991ea7
AJ
1575fi
1576fi
f5818d2f 1577CC=$ac_cv_prog_CC
e2991ea7 1578if test -n "$CC"; then
daa2886c 1579 echo "$as_me:$LINENO: result: $CC" >&5
f5818d2f
AJ
1580echo "${ECHO_T}$CC" >&6
1581else
daa2886c 1582 echo "$as_me:$LINENO: result: no" >&5
f5818d2f
AJ
1583echo "${ECHO_T}no" >&6
1584fi
1585
1586fi
1587if test -z "$ac_cv_prog_CC"; then
1588 ac_ct_CC=$CC
1589 # Extract the first word of "cc", so it can be a program name with args.
1590set dummy cc; ac_word=$2
daa2886c 1591echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
1592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1595else
1596 if test -n "$ac_ct_CC"; then
1597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1598else
daa2886c
AJ
1599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600for as_dir in $PATH
1601do
1602 IFS=$as_save_IFS
1603 test -z "$as_dir" && as_dir=.
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606 ac_cv_prog_ac_ct_CC="cc"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 break 2
1609 fi
1610done
f5818d2f
AJ
1611done
1612
1613fi
1614fi
1615ac_ct_CC=$ac_cv_prog_ac_ct_CC
1616if test -n "$ac_ct_CC"; then
daa2886c 1617 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
f5818d2f
AJ
1618echo "${ECHO_T}$ac_ct_CC" >&6
1619else
daa2886c 1620 echo "$as_me:$LINENO: result: no" >&5
f5818d2f
AJ
1621echo "${ECHO_T}no" >&6
1622fi
1623
1624 CC=$ac_ct_CC
e2991ea7 1625else
f5818d2f 1626 CC="$ac_cv_prog_CC"
e2991ea7
AJ
1627fi
1628
f5818d2f 1629fi
b817f4fb
AJ
1630if test -z "$CC"; then
1631 # Extract the first word of "cc", so it can be a program name with args.
1632set dummy cc; ac_word=$2
daa2886c 1633echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
1634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635if test "${ac_cv_prog_CC+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
b817f4fb
AJ
1637else
1638 if test -n "$CC"; then
1639 ac_cv_prog_CC="$CC" # Let the user override the test.
1640else
b817f4fb 1641 ac_prog_rejected=no
daa2886c
AJ
1642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643for as_dir in $PATH
1644do
1645 IFS=$as_save_IFS
1646 test -z "$as_dir" && as_dir=.
1647 for ac_exec_ext in '' $ac_executable_extensions; do
1648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1650 ac_prog_rejected=yes
1651 continue
1652 fi
1653 ac_cv_prog_CC="cc"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 break 2
1656 fi
1657done
f5818d2f
AJ
1658done
1659
b817f4fb
AJ
1660if test $ac_prog_rejected = yes; then
1661 # We found a bogon in the path, so make sure we never use it.
1662 set dummy $ac_cv_prog_CC
1663 shift
f5818d2f 1664 if test $# != 0; then
b817f4fb
AJ
1665 # We chose a different compiler from the bogus one.
1666 # However, it has the same basename, so the bogon will be chosen
1667 # first if we set CC to just the basename; use the full file name.
1668 shift
11af04e3 1669 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
b817f4fb
AJ
1670 fi
1671fi
1672fi
1673fi
f5818d2f 1674CC=$ac_cv_prog_CC
b817f4fb 1675if test -n "$CC"; then
daa2886c 1676 echo "$as_me:$LINENO: result: $CC" >&5
f5818d2f 1677echo "${ECHO_T}$CC" >&6
b817f4fb 1678else
daa2886c 1679 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 1680echo "${ECHO_T}no" >&6
b817f4fb
AJ
1681fi
1682
f5818d2f
AJ
1683fi
1684if test -z "$CC"; then
1685 if test -n "$ac_tool_prefix"; then
1686 for ac_prog in cl
1687 do
1688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1689set dummy $ac_tool_prefix$ac_prog; ac_word=$2
daa2886c 1690echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
1691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692if test "${ac_cv_prog_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1694else
1695 if test -n "$CC"; then
18ad24a7
EP
1696 ac_cv_prog_CC="$CC" # Let the user override the test.
1697else
daa2886c
AJ
1698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699for as_dir in $PATH
1700do
1701 IFS=$as_save_IFS
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 break 2
1708 fi
1709done
f5818d2f
AJ
1710done
1711
18ad24a7
EP
1712fi
1713fi
f5818d2f 1714CC=$ac_cv_prog_CC
18ad24a7 1715if test -n "$CC"; then
daa2886c 1716 echo "$as_me:$LINENO: result: $CC" >&5
f5818d2f 1717echo "${ECHO_T}$CC" >&6
18ad24a7 1718else
daa2886c 1719 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 1720echo "${ECHO_T}no" >&6
b817f4fb 1721fi
e2991ea7 1722
f5818d2f
AJ
1723 test -n "$CC" && break
1724 done
1725fi
1726if test -z "$CC"; then
1727 ac_ct_CC=$CC
1728 for ac_prog in cl
1729do
1730 # Extract the first word of "$ac_prog", so it can be a program name with args.
1731set dummy $ac_prog; ac_word=$2
daa2886c 1732echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
1733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1736else
1737 if test -n "$ac_ct_CC"; then
1738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1739else
daa2886c
AJ
1740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741for as_dir in $PATH
1742do
1743 IFS=$as_save_IFS
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_ac_ct_CC="$ac_prog"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749 break 2
1750 fi
1751done
f5818d2f 1752done
da0cfb36 1753
f5818d2f
AJ
1754fi
1755fi
1756ac_ct_CC=$ac_cv_prog_ac_ct_CC
1757if test -n "$ac_ct_CC"; then
daa2886c 1758 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
f5818d2f
AJ
1759echo "${ECHO_T}$ac_ct_CC" >&6
1760else
daa2886c 1761 echo "$as_me:$LINENO: result: no" >&5
f5818d2f
AJ
1762echo "${ECHO_T}no" >&6
1763fi
da0cfb36 1764
f5818d2f
AJ
1765 test -n "$ac_ct_CC" && break
1766done
18ad24a7 1767
f5818d2f
AJ
1768 CC=$ac_ct_CC
1769fi
1770
1771fi
1772
daa2886c 1773
e24bcc77
AJ
1774test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1775See \`config.log' for more details." >&5
1776echo "$as_me: error: no acceptable C compiler found in \$PATH
1777See \`config.log' for more details." >&2;}
f5818d2f
AJ
1778 { (exit 1); exit 1; }; }
1779
1780# Provide some information about the compiler.
daa2886c 1781echo "$as_me:$LINENO:" \
f5818d2f
AJ
1782 "checking for C compiler version" >&5
1783ac_compiler=`set X $ac_compile; echo $2`
daa2886c 1784{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
f5818d2f
AJ
1785 (eval $ac_compiler --version </dev/null >&5) 2>&5
1786 ac_status=$?
daa2886c 1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 1788 (exit $ac_status); }
daa2886c 1789{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
f5818d2f
AJ
1790 (eval $ac_compiler -v </dev/null >&5) 2>&5
1791 ac_status=$?
daa2886c 1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 1793 (exit $ac_status); }
daa2886c 1794{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
f5818d2f
AJ
1795 (eval $ac_compiler -V </dev/null >&5) 2>&5
1796 ac_status=$?
daa2886c 1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
1798 (exit $ac_status); }
1799
1800cat >conftest.$ac_ext <<_ACEOF
daa2886c 1801#line $LINENO "configure"
e24bcc77
AJ
1802/* confdefs.h. */
1803_ACEOF
1804cat confdefs.h >>conftest.$ac_ext
1805cat >>conftest.$ac_ext <<_ACEOF
1806/* end confdefs.h. */
18ad24a7 1807
f5818d2f
AJ
1808int
1809main ()
1810{
1811
1812 ;
1813 return 0;
1814}
1815_ACEOF
1816ac_clean_files_save=$ac_clean_files
e24bcc77 1817ac_clean_files="$ac_clean_files a.out a.exe b.out"
f5818d2f
AJ
1818# Try to create an executable without -o first, disregard a.out.
1819# It will help us diagnose broken compilers, and finding out an intuition
1820# of exeext.
daa2886c 1821echo "$as_me:$LINENO: checking for C compiler default output" >&5
f5818d2f
AJ
1822echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1823ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
daa2886c 1824if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
f5818d2f
AJ
1825 (eval $ac_link_default) 2>&5
1826 ac_status=$?
daa2886c 1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
1828 (exit $ac_status); }; then
1829 # Find the output, starting from the most likely. This scheme is
1830# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1831# resort.
daa2886c
AJ
1832
1833# Be careful to initialize this variable, since it used to be cached.
1834# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1835ac_cv_exeext=
e24bcc77
AJ
1836# b.out is created by i960 compilers.
1837for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1838do
11af04e3 1839 test -f "$ac_file" || continue
f5818d2f 1840 case $ac_file in
e24bcc77
AJ
1841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1842 ;;
1843 conftest.$ac_ext )
1844 # This is the source file.
1845 ;;
1846 [ab].out )
1847 # We found the default executable, but exeext='' is most
1848 # certainly right.
1849 break;;
1850 *.* )
1851 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1852 # FIXME: I believe we export ac_cv_exeext for Libtool,
1853 # but it would be cool to find out if it's true. Does anybody
1854 # maintain Libtool? --akim.
1855 export ac_cv_exeext
1856 break;;
1857 * )
1858 break;;
f5818d2f
AJ
1859 esac
1860done
1861else
1862 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
1863sed 's/^/| /' conftest.$ac_ext >&5
1864
11af04e3 1865{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
e24bcc77 1866See \`config.log' for more details." >&5
11af04e3 1867echo "$as_me: error: C compiler cannot create executables
e24bcc77 1868See \`config.log' for more details." >&2;}
f5818d2f
AJ
1869 { (exit 77); exit 77; }; }
1870fi
1871
1872ac_exeext=$ac_cv_exeext
daa2886c 1873echo "$as_me:$LINENO: result: $ac_file" >&5
f5818d2f
AJ
1874echo "${ECHO_T}$ac_file" >&6
1875
1876# Check the compiler produces executables we can run. If not, either
1877# the compiler is broken, or we cross compile.
daa2886c 1878echo "$as_me:$LINENO: checking whether the C compiler works" >&5
f5818d2f
AJ
1879echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1880# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1881# If not cross compiling, check that we can run a simple program.
1882if test "$cross_compiling" != yes; then
1883 if { ac_try='./$ac_file'
daa2886c 1884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
1885 (eval $ac_try) 2>&5
1886 ac_status=$?
daa2886c 1887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
1888 (exit $ac_status); }; }; then
1889 cross_compiling=no
7e6ae4ba 1890 else
f5818d2f
AJ
1891 if test "$cross_compiling" = maybe; then
1892 cross_compiling=yes
1893 else
daa2886c 1894 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
e24bcc77
AJ
1895If you meant to cross compile, use \`--host'.
1896See \`config.log' for more details." >&5
f5818d2f 1897echo "$as_me: error: cannot run C compiled programs.
e24bcc77
AJ
1898If you meant to cross compile, use \`--host'.
1899See \`config.log' for more details." >&2;}
f5818d2f
AJ
1900 { (exit 1); exit 1; }; }
1901 fi
7e6ae4ba 1902 fi
f5818d2f 1903fi
daa2886c 1904echo "$as_me:$LINENO: result: yes" >&5
f5818d2f
AJ
1905echo "${ECHO_T}yes" >&6
1906
e24bcc77 1907rm -f a.out a.exe conftest$ac_cv_exeext b.out
f5818d2f
AJ
1908ac_clean_files=$ac_clean_files_save
1909# Check the compiler produces executables we can run. If not, either
1910# the compiler is broken, or we cross compile.
daa2886c 1911echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
f5818d2f 1912echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
daa2886c 1913echo "$as_me:$LINENO: result: $cross_compiling" >&5
f5818d2f
AJ
1914echo "${ECHO_T}$cross_compiling" >&6
1915
daa2886c
AJ
1916echo "$as_me:$LINENO: checking for suffix of executables" >&5
1917echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
1919 (eval $ac_link) 2>&5
1920 ac_status=$?
daa2886c 1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
1922 (exit $ac_status); }; then
1923 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1924# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1925# work properly (i.e., refer to `conftest.exe'), while it won't with
1926# `rm'.
11af04e3
AJ
1927for ac_file in conftest.exe conftest conftest.*; do
1928 test -f "$ac_file" || continue
f5818d2f 1929 case $ac_file in
11af04e3 1930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
f5818d2f
AJ
1931 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1932 export ac_cv_exeext
1933 break;;
1934 * ) break;;
1935 esac
1936done
da0cfb36 1937else
e24bcc77
AJ
1938 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1939See \`config.log' for more details." >&5
1940echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1941See \`config.log' for more details." >&2;}
f5818d2f 1942 { (exit 1); exit 1; }; }
da0cfb36 1943fi
da0cfb36 1944
f5818d2f 1945rm -f conftest$ac_cv_exeext
daa2886c 1946echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
f5818d2f 1947echo "${ECHO_T}$ac_cv_exeext" >&6
da0cfb36 1948
f5818d2f
AJ
1949rm -f conftest.$ac_ext
1950EXEEXT=$ac_cv_exeext
1951ac_exeext=$EXEEXT
daa2886c
AJ
1952echo "$as_me:$LINENO: checking for suffix of object files" >&5
1953echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
f5818d2f
AJ
1954if test "${ac_cv_objext+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7 1956else
f5818d2f 1957 cat >conftest.$ac_ext <<_ACEOF
daa2886c 1958#line $LINENO "configure"
e24bcc77
AJ
1959/* confdefs.h. */
1960_ACEOF
1961cat confdefs.h >>conftest.$ac_ext
1962cat >>conftest.$ac_ext <<_ACEOF
1963/* end confdefs.h. */
d7d4fdf8 1964
f5818d2f
AJ
1965int
1966main ()
1967{
da0cfb36 1968
f5818d2f
AJ
1969 ;
1970 return 0;
1971}
1972_ACEOF
1973rm -f conftest.o conftest.obj
daa2886c 1974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
1975 (eval $ac_compile) 2>&5
1976 ac_status=$?
daa2886c 1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
1978 (exit $ac_status); }; then
1979 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1980 case $ac_file in
11af04e3 1981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
f5818d2f
AJ
1982 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1983 break;;
1984 esac
1985done
18ad24a7 1986else
f5818d2f 1987 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
1988sed 's/^/| /' conftest.$ac_ext >&5
1989
1990{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1991See \`config.log' for more details." >&5
1992echo "$as_me: error: cannot compute suffix of object files: cannot compile
1993See \`config.log' for more details." >&2;}
f5818d2f 1994 { (exit 1); exit 1; }; }
18ad24a7
EP
1995fi
1996
f5818d2f
AJ
1997rm -f conftest.$ac_cv_objext conftest.$ac_ext
1998fi
daa2886c 1999echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
f5818d2f
AJ
2000echo "${ECHO_T}$ac_cv_objext" >&6
2001OBJEXT=$ac_cv_objext
2002ac_objext=$OBJEXT
daa2886c 2003echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
f5818d2f
AJ
2004echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2005if test "${ac_cv_c_compiler_gnu+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7 2007else
f5818d2f 2008 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2009#line $LINENO "configure"
e24bcc77
AJ
2010/* confdefs.h. */
2011_ACEOF
2012cat confdefs.h >>conftest.$ac_ext
2013cat >>conftest.$ac_ext <<_ACEOF
2014/* end confdefs.h. */
f5818d2f
AJ
2015
2016int
2017main ()
2018{
2019#ifndef __GNUC__
2020 choke me
2021#endif
2022
2023 ;
2024 return 0;
2025}
2026_ACEOF
2027rm -f conftest.$ac_objext
daa2886c 2028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
2029 (eval $ac_compile) 2>&5
2030 ac_status=$?
daa2886c 2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2032 (exit $ac_status); } &&
2033 { ac_try='test -s conftest.$ac_objext'
daa2886c 2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2035 (eval $ac_try) 2>&5
2036 ac_status=$?
daa2886c 2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2038 (exit $ac_status); }; }; then
2039 ac_compiler_gnu=yes
2040else
2041 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2042sed 's/^/| /' conftest.$ac_ext >&5
2043
f5818d2f
AJ
2044ac_compiler_gnu=no
2045fi
2046rm -f conftest.$ac_objext conftest.$ac_ext
2047ac_cv_c_compiler_gnu=$ac_compiler_gnu
2048
2049fi
daa2886c 2050echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
f5818d2f
AJ
2051echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2052GCC=`test $ac_compiler_gnu = yes && echo yes`
2053ac_test_CFLAGS=${CFLAGS+set}
2054ac_save_CFLAGS=$CFLAGS
2055CFLAGS="-g"
daa2886c 2056echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
f5818d2f
AJ
2057echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2058if test "${ac_cv_prog_cc_g+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2060else
2061 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2062#line $LINENO "configure"
e24bcc77
AJ
2063/* confdefs.h. */
2064_ACEOF
2065cat confdefs.h >>conftest.$ac_ext
2066cat >>conftest.$ac_ext <<_ACEOF
2067/* end confdefs.h. */
f5818d2f
AJ
2068
2069int
2070main ()
2071{
2072
2073 ;
2074 return 0;
2075}
2076_ACEOF
2077rm -f conftest.$ac_objext
daa2886c 2078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
2079 (eval $ac_compile) 2>&5
2080 ac_status=$?
daa2886c 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2082 (exit $ac_status); } &&
2083 { ac_try='test -s conftest.$ac_objext'
daa2886c 2084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2085 (eval $ac_try) 2>&5
2086 ac_status=$?
daa2886c 2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2088 (exit $ac_status); }; }; then
7e6ae4ba 2089 ac_cv_prog_cc_g=yes
e2991ea7 2090else
f5818d2f 2091 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2092sed 's/^/| /' conftest.$ac_ext >&5
2093
f5818d2f 2094ac_cv_prog_cc_g=no
e2991ea7 2095fi
f5818d2f 2096rm -f conftest.$ac_objext conftest.$ac_ext
e2991ea7 2097fi
daa2886c 2098echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
f5818d2f 2099echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
18ad24a7 2100if test "$ac_test_CFLAGS" = set; then
f5818d2f 2101 CFLAGS=$ac_save_CFLAGS
18ad24a7
EP
2102elif test $ac_cv_prog_cc_g = yes; then
2103 if test "$GCC" = yes; then
da0cfb36
AJ
2104 CFLAGS="-g -O2"
2105 else
18ad24a7 2106 CFLAGS="-g"
e2991ea7
AJ
2107 fi
2108else
18ad24a7
EP
2109 if test "$GCC" = yes; then
2110 CFLAGS="-O2"
2111 else
2112 CFLAGS=
2113 fi
e2991ea7 2114fi
11af04e3
AJ
2115echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2116echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2117if test "${ac_cv_prog_cc_stdc+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2119else
2120 ac_cv_prog_cc_stdc=no
2121ac_save_CC=$CC
2122cat >conftest.$ac_ext <<_ACEOF
2123#line $LINENO "configure"
e24bcc77
AJ
2124/* confdefs.h. */
2125_ACEOF
2126cat confdefs.h >>conftest.$ac_ext
2127cat >>conftest.$ac_ext <<_ACEOF
2128/* end confdefs.h. */
11af04e3
AJ
2129#include <stdarg.h>
2130#include <stdio.h>
2131#include <sys/types.h>
2132#include <sys/stat.h>
2133/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2134struct buf { int x; };
2135FILE * (*rcsopen) (struct buf *, struct stat *, int);
2136static char *e (p, i)
2137 char **p;
2138 int i;
2139{
2140 return p[i];
2141}
2142static char *f (char * (*g) (char **, int), char **p, ...)
2143{
2144 char *s;
2145 va_list v;
2146 va_start (v,p);
2147 s = g (p, va_arg (v,int));
2148 va_end (v);
2149 return s;
2150}
2151int test (int i, double x);
2152struct s1 {int (*f) (int a);};
2153struct s2 {int (*f) (double a);};
2154int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2155int argc;
2156char **argv;
2157int
2158main ()
2159{
2160return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2161 ;
2162 return 0;
2163}
2164_ACEOF
2165# Don't try gcc -ansi; that turns off useful extensions and
2166# breaks some systems' header files.
2167# AIX -qlanglvl=ansi
2168# Ultrix and OSF/1 -std1
2169# HP-UX 10.20 and later -Ae
2170# HP-UX older versions -Aa -D_HPUX_SOURCE
2171# SVR4 -Xc -D__EXTENSIONS__
2172for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2173do
2174 CC="$ac_save_CC $ac_arg"
2175 rm -f conftest.$ac_objext
2176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2177 (eval $ac_compile) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); } &&
2181 { ac_try='test -s conftest.$ac_objext'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2187 ac_cv_prog_cc_stdc=$ac_arg
2188break
2189else
2190 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2191sed 's/^/| /' conftest.$ac_ext >&5
2192
11af04e3
AJ
2193fi
2194rm -f conftest.$ac_objext
2195done
2196rm -f conftest.$ac_ext conftest.$ac_objext
2197CC=$ac_save_CC
2198
2199fi
2200
2201case "x$ac_cv_prog_cc_stdc" in
2202 x|xno)
2203 echo "$as_me:$LINENO: result: none needed" >&5
2204echo "${ECHO_T}none needed" >&6 ;;
2205 *)
2206 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2207echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2208 CC="$CC $ac_cv_prog_cc_stdc" ;;
2209esac
2210
f5818d2f
AJ
2211# Some people use a C++ compiler to compile C. Since we use `exit',
2212# in C++ we need to declare it. In case someone uses the same compiler
2213# for both compiling C and C++ we need to have the C++ compiler decide
2214# the declaration of exit, since it's the most demanding environment.
2215cat >conftest.$ac_ext <<_ACEOF
2216#ifndef __cplusplus
2217 choke me
2218#endif
2219_ACEOF
2220rm -f conftest.$ac_objext
daa2886c 2221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
2222 (eval $ac_compile) 2>&5
2223 ac_status=$?
daa2886c 2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2225 (exit $ac_status); } &&
2226 { ac_try='test -s conftest.$ac_objext'
daa2886c 2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2228 (eval $ac_try) 2>&5
2229 ac_status=$?
daa2886c 2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2231 (exit $ac_status); }; }; then
2232 for ac_declaration in \
2233 ''\
2234 '#include <stdlib.h>' \
2235 'extern "C" void std::exit (int) throw (); using std::exit;' \
2236 'extern "C" void std::exit (int); using std::exit;' \
2237 'extern "C" void exit (int) throw ();' \
2238 'extern "C" void exit (int);' \
2239 'void exit (int);'
2240do
2241 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2242#line $LINENO "configure"
e24bcc77
AJ
2243/* confdefs.h. */
2244_ACEOF
2245cat confdefs.h >>conftest.$ac_ext
2246cat >>conftest.$ac_ext <<_ACEOF
2247/* end confdefs.h. */
f5818d2f
AJ
2248#include <stdlib.h>
2249$ac_declaration
2250int
2251main ()
2252{
2253exit (42);
2254 ;
2255 return 0;
2256}
2257_ACEOF
2258rm -f conftest.$ac_objext
daa2886c 2259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
2260 (eval $ac_compile) 2>&5
2261 ac_status=$?
daa2886c 2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2263 (exit $ac_status); } &&
2264 { ac_try='test -s conftest.$ac_objext'
daa2886c 2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2266 (eval $ac_try) 2>&5
2267 ac_status=$?
daa2886c 2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2269 (exit $ac_status); }; }; then
2270 :
2271else
2272 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2273sed 's/^/| /' conftest.$ac_ext >&5
2274
f5818d2f
AJ
2275continue
2276fi
2277rm -f conftest.$ac_objext conftest.$ac_ext
2278 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2279#line $LINENO "configure"
e24bcc77
AJ
2280/* confdefs.h. */
2281_ACEOF
2282cat confdefs.h >>conftest.$ac_ext
2283cat >>conftest.$ac_ext <<_ACEOF
2284/* end confdefs.h. */
f5818d2f
AJ
2285$ac_declaration
2286int
2287main ()
2288{
2289exit (42);
2290 ;
2291 return 0;
2292}
2293_ACEOF
2294rm -f conftest.$ac_objext
daa2886c 2295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
2296 (eval $ac_compile) 2>&5
2297 ac_status=$?
daa2886c 2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2299 (exit $ac_status); } &&
2300 { ac_try='test -s conftest.$ac_objext'
daa2886c 2301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2302 (eval $ac_try) 2>&5
2303 ac_status=$?
daa2886c 2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2305 (exit $ac_status); }; }; then
2306 break
2307else
2308 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2309sed 's/^/| /' conftest.$ac_ext >&5
2310
f5818d2f
AJ
2311fi
2312rm -f conftest.$ac_objext conftest.$ac_ext
2313done
2314rm -f conftest*
2315if test -n "$ac_declaration"; then
2316 echo '#ifdef __cplusplus' >>confdefs.h
2317 echo $ac_declaration >>confdefs.h
2318 echo '#endif' >>confdefs.h
2319fi
2320
2321else
2322 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2323sed 's/^/| /' conftest.$ac_ext >&5
2324
f5818d2f
AJ
2325fi
2326rm -f conftest.$ac_objext conftest.$ac_ext
2327ac_ext=c
2328ac_cpp='$CPP $CPPFLAGS'
2329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331ac_compiler_gnu=$ac_cv_c_compiler_gnu
e2991ea7 2332
f5818d2f
AJ
2333ac_ext=c
2334ac_cpp='$CPP $CPPFLAGS'
2335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2337ac_compiler_gnu=$ac_cv_c_compiler_gnu
daa2886c 2338echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
f5818d2f 2339echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
e2991ea7
AJ
2340# On Suns, sometimes $CPP names a directory.
2341if test -n "$CPP" && test -d "$CPP"; then
2342 CPP=
2343fi
2344if test -z "$CPP"; then
f5818d2f
AJ
2345 if test "${ac_cv_prog_CPP+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2347else
2348 # Double quotes because CPP needs to be expanded
2349 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2350 do
2351 ac_preproc_ok=false
2352for ac_c_preproc_warn_flag in '' yes
2353do
2354 # Use a header file that comes with gcc, so configuring glibc
2355 # with a fresh cross-compiler works.
e24bcc77
AJ
2356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2357 # <limits.h> exists even on freestanding compilers.
e2991ea7 2358 # On the NeXT, cc -E runs the code through the compiler's parser,
f5818d2f
AJ
2359 # not just through cpp. "Syntax error" is here to catch this case.
2360 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2361#line $LINENO "configure"
e24bcc77
AJ
2362/* confdefs.h. */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h. */
2367#ifdef __STDC__
2368# include <limits.h>
2369#else
2370# include <assert.h>
2371#endif
f5818d2f
AJ
2372 Syntax error
2373_ACEOF
daa2886c 2374if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
2375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2376 ac_status=$?
11af04e3 2377 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
2378 rm -f conftest.er1
2379 cat conftest.err >&5
daa2886c 2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2381 (exit $ac_status); } >/dev/null; then
2382 if test -s conftest.err; then
2383 ac_cpp_err=$ac_c_preproc_warn_flag
2384 else
2385 ac_cpp_err=
2386 fi
2387else
2388 ac_cpp_err=yes
2389fi
2390if test -z "$ac_cpp_err"; then
e2991ea7
AJ
2391 :
2392else
f5818d2f 2393 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2394sed 's/^/| /' conftest.$ac_ext >&5
2395
f5818d2f
AJ
2396 # Broken: fails on valid input.
2397continue
2398fi
2399rm -f conftest.err conftest.$ac_ext
2400
2401 # OK, works on sane cases. Now check whether non-existent headers
2402 # can be detected and how.
2403 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2404#line $LINENO "configure"
e24bcc77
AJ
2405/* confdefs.h. */
2406_ACEOF
2407cat confdefs.h >>conftest.$ac_ext
2408cat >>conftest.$ac_ext <<_ACEOF
2409/* end confdefs.h. */
f5818d2f
AJ
2410#include <ac_nonexistent.h>
2411_ACEOF
daa2886c 2412if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
2413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2414 ac_status=$?
11af04e3 2415 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
2416 rm -f conftest.er1
2417 cat conftest.err >&5
daa2886c 2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2419 (exit $ac_status); } >/dev/null; then
2420 if test -s conftest.err; then
2421 ac_cpp_err=$ac_c_preproc_warn_flag
2422 else
2423 ac_cpp_err=
2424 fi
2425else
2426 ac_cpp_err=yes
2427fi
2428if test -z "$ac_cpp_err"; then
2429 # Broken: success on invalid input.
2430continue
18ad24a7 2431else
f5818d2f 2432 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2433sed 's/^/| /' conftest.$ac_ext >&5
2434
f5818d2f
AJ
2435 # Passes both tests.
2436ac_preproc_ok=:
2437break
2438fi
2439rm -f conftest.err conftest.$ac_ext
2440
2441done
2442# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2443rm -f conftest.err conftest.$ac_ext
2444if $ac_preproc_ok; then
2445 break
2446fi
2447
2448 done
2449 ac_cv_prog_CPP=$CPP
2450
2451fi
2452 CPP=$ac_cv_prog_CPP
2453else
2454 ac_cv_prog_CPP=$CPP
2455fi
daa2886c 2456echo "$as_me:$LINENO: result: $CPP" >&5
f5818d2f
AJ
2457echo "${ECHO_T}$CPP" >&6
2458ac_preproc_ok=false
2459for ac_c_preproc_warn_flag in '' yes
2460do
2461 # Use a header file that comes with gcc, so configuring glibc
2462 # with a fresh cross-compiler works.
e24bcc77
AJ
2463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2464 # <limits.h> exists even on freestanding compilers.
f5818d2f
AJ
2465 # On the NeXT, cc -E runs the code through the compiler's parser,
2466 # not just through cpp. "Syntax error" is here to catch this case.
2467 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2468#line $LINENO "configure"
e24bcc77
AJ
2469/* confdefs.h. */
2470_ACEOF
2471cat confdefs.h >>conftest.$ac_ext
2472cat >>conftest.$ac_ext <<_ACEOF
2473/* end confdefs.h. */
2474#ifdef __STDC__
2475# include <limits.h>
2476#else
2477# include <assert.h>
2478#endif
f5818d2f
AJ
2479 Syntax error
2480_ACEOF
daa2886c 2481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
2482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2483 ac_status=$?
11af04e3 2484 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
2485 rm -f conftest.er1
2486 cat conftest.err >&5
daa2886c 2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2488 (exit $ac_status); } >/dev/null; then
2489 if test -s conftest.err; then
2490 ac_cpp_err=$ac_c_preproc_warn_flag
2491 else
2492 ac_cpp_err=
2493 fi
2494else
2495 ac_cpp_err=yes
2496fi
2497if test -z "$ac_cpp_err"; then
e2991ea7
AJ
2498 :
2499else
f5818d2f 2500 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2501sed 's/^/| /' conftest.$ac_ext >&5
2502
f5818d2f
AJ
2503 # Broken: fails on valid input.
2504continue
e2991ea7 2505fi
f5818d2f
AJ
2506rm -f conftest.err conftest.$ac_ext
2507
2508 # OK, works on sane cases. Now check whether non-existent headers
2509 # can be detected and how.
2510 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2511#line $LINENO "configure"
e24bcc77
AJ
2512/* confdefs.h. */
2513_ACEOF
2514cat confdefs.h >>conftest.$ac_ext
2515cat >>conftest.$ac_ext <<_ACEOF
2516/* end confdefs.h. */
f5818d2f
AJ
2517#include <ac_nonexistent.h>
2518_ACEOF
daa2886c 2519if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
2520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2521 ac_status=$?
11af04e3 2522 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
2523 rm -f conftest.er1
2524 cat conftest.err >&5
daa2886c 2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2526 (exit $ac_status); } >/dev/null; then
2527 if test -s conftest.err; then
2528 ac_cpp_err=$ac_c_preproc_warn_flag
2529 else
2530 ac_cpp_err=
2531 fi
2532else
2533 ac_cpp_err=yes
18ad24a7 2534fi
f5818d2f
AJ
2535if test -z "$ac_cpp_err"; then
2536 # Broken: success on invalid input.
2537continue
2538else
2539 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2540sed 's/^/| /' conftest.$ac_ext >&5
2541
f5818d2f
AJ
2542 # Passes both tests.
2543ac_preproc_ok=:
2544break
e2991ea7 2545fi
f5818d2f
AJ
2546rm -f conftest.err conftest.$ac_ext
2547
2548done
2549# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2550rm -f conftest.err conftest.$ac_ext
2551if $ac_preproc_ok; then
2552 :
e2991ea7 2553else
e24bcc77
AJ
2554 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2555See \`config.log' for more details." >&5
2556echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2557See \`config.log' for more details." >&2;}
f5818d2f 2558 { (exit 1); exit 1; }; }
e2991ea7 2559fi
e2991ea7 2560
f5818d2f
AJ
2561ac_ext=c
2562ac_cpp='$CPP $CPPFLAGS'
2563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566
daa2886c 2567
fc01b729
AJ
2568echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2569echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2570if test "${wine_cv_toolsdir+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2572else
2573 if test -z "$with_wine_tools"; then
2574 if test "$cross_compiling" = "yes"; then
2575 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2576echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2577 { (exit 1); exit 1; }; }
2578 else
2579 wine_cv_toolsdir="\$(TOPOBJDIR)"
2580 fi
2581 elif test -d "$with_wine_tools/tools/winebuild"; then
2582 case $with_wine_tools in
2583 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2584 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2585 esac
2586 else
2587 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2588echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2589 { (exit 1); exit 1; }; }
2590 fi
2591fi
2592echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2593echo "${ECHO_T}$wine_cv_toolsdir" >&6
2594TOOLSDIR=$wine_cv_toolsdir
2595
2596
2597
daa2886c
AJ
2598
2599echo "$as_me:$LINENO: checking for X" >&5
f5818d2f 2600echo $ECHO_N "checking for X... $ECHO_C" >&6
e2991ea7 2601
daa2886c 2602
e2991ea7 2603# Check whether --with-x or --without-x was given.
d7d4fdf8
AJ
2604if test "${with_x+set}" = set; then
2605 withval="$with_x"
e2991ea7 2606
f5818d2f 2607fi;
b817f4fb 2608# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
e2991ea7 2609if test "x$with_x" = xno; then
b817f4fb
AJ
2610 # The user explicitly disabled X.
2611 have_x=disabled
e2991ea7
AJ
2612else
2613 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
b817f4fb
AJ
2614 # Both variables are already set.
2615 have_x=yes
e2991ea7 2616 else
f5818d2f
AJ
2617 if test "${ac_cv_have_x+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7
AJ
2619else
2620 # One or both of the vars are not set, and there is no cached value.
f5818d2f
AJ
2621ac_x_includes=no ac_x_libraries=no
2622rm -fr conftest.dir
2623if mkdir conftest.dir; then
2624 cd conftest.dir
e2991ea7 2625 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
daa2886c 2626 cat >Imakefile <<'_ACEOF'
e2991ea7
AJ
2627acfindx:
2628 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
daa2886c 2629_ACEOF
e2991ea7 2630 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
e2991ea7 2631 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
d7d4fdf8 2632 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
e2991ea7
AJ
2633 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2634 for ac_extension in a so sl; do
2635 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
f5818d2f 2636 test -f $ac_im_libdir/libX11.$ac_extension; then
e2991ea7
AJ
2637 ac_im_usrlibdir=$ac_im_libdir; break
2638 fi
2639 done
da0cfb36
AJ
2640 # Screen out bogus values from the imake configuration. They are
2641 # bogus both because they are the default anyway, and because
2642 # using them would break gcc on systems where it needs fixed includes.
f5818d2f 2643 case $ac_im_incroot in
e2991ea7 2644 /usr/include) ;;
f5818d2f 2645 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
e2991ea7 2646 esac
f5818d2f 2647 case $ac_im_usrlibdir in
e2991ea7 2648 /usr/lib | /lib) ;;
f5818d2f 2649 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
e2991ea7
AJ
2650 esac
2651 fi
2652 cd ..
f5818d2f 2653 rm -fr conftest.dir
e2991ea7
AJ
2654fi
2655
f5818d2f
AJ
2656# Standard set of common directories for X headers.
2657# Check X11 before X11Rn because it is often a symlink to the current release.
2658ac_x_header_dirs='
2659/usr/X11/include
2660/usr/X11R6/include
2661/usr/X11R5/include
2662/usr/X11R4/include
2663
2664/usr/include/X11
2665/usr/include/X11R6
2666/usr/include/X11R5
2667/usr/include/X11R4
2668
2669/usr/local/X11/include
2670/usr/local/X11R6/include
2671/usr/local/X11R5/include
2672/usr/local/X11R4/include
2673
2674/usr/local/include/X11
2675/usr/local/include/X11R6
2676/usr/local/include/X11R5
2677/usr/local/include/X11R4
2678
2679/usr/X386/include
2680/usr/x386/include
2681/usr/XFree86/include/X11
2682
2683/usr/include
2684/usr/local/include
2685/usr/unsupported/include
2686/usr/athena/include
2687/usr/local/x11r5/include
2688/usr/lpp/Xamples/include
2689
2690/usr/openwin/include
2691/usr/openwin/share/include'
2692
2693if test "$ac_x_includes" = no; then
2694 # Guess where to find include files, by looking for Intrinsic.h.
b817f4fb 2695 # First, try using that file with no special directory specified.
f5818d2f 2696 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2697#line $LINENO "configure"
e24bcc77
AJ
2698/* confdefs.h. */
2699_ACEOF
2700cat confdefs.h >>conftest.$ac_ext
2701cat >>conftest.$ac_ext <<_ACEOF
2702/* end confdefs.h. */
f5818d2f
AJ
2703#include <X11/Intrinsic.h>
2704_ACEOF
daa2886c 2705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
2706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2707 ac_status=$?
11af04e3 2708 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
2709 rm -f conftest.er1
2710 cat conftest.err >&5
daa2886c 2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2712 (exit $ac_status); } >/dev/null; then
2713 if test -s conftest.err; then
2714 ac_cpp_err=$ac_c_preproc_warn_flag
2715 else
2716 ac_cpp_err=
2717 fi
2718else
2719 ac_cpp_err=yes
2720fi
2721if test -z "$ac_cpp_err"; then
b817f4fb
AJ
2722 # We can compile using X headers with no special include directory.
2723ac_x_includes=
e2991ea7 2724else
f5818d2f 2725 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2726sed 's/^/| /' conftest.$ac_ext >&5
2727
f5818d2f
AJ
2728 for ac_dir in $ac_x_header_dirs; do
2729 if test -r "$ac_dir/X11/Intrinsic.h"; then
2730 ac_x_includes=$ac_dir
2731 break
2732 fi
2733done
e2991ea7 2734fi
f5818d2f
AJ
2735rm -f conftest.err conftest.$ac_ext
2736fi # $ac_x_includes = no
b817f4fb 2737
f5818d2f 2738if test "$ac_x_libraries" = no; then
b817f4fb 2739 # Check for the libraries.
b817f4fb
AJ
2740 # See if we find them without any special options.
2741 # Don't add to $LIBS permanently.
f5818d2f
AJ
2742 ac_save_LIBS=$LIBS
2743 LIBS="-lXt $LIBS"
2744 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2745#line $LINENO "configure"
e24bcc77
AJ
2746/* confdefs.h. */
2747_ACEOF
2748cat confdefs.h >>conftest.$ac_ext
2749cat >>conftest.$ac_ext <<_ACEOF
2750/* end confdefs.h. */
f5818d2f
AJ
2751#include <X11/Intrinsic.h>
2752int
2753main ()
2754{
2755XtMalloc (0)
2756 ;
2757 return 0;
2758}
2759_ACEOF
2760rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 2761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
2762 (eval $ac_link) 2>&5
2763 ac_status=$?
daa2886c 2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2765 (exit $ac_status); } &&
2766 { ac_try='test -s conftest$ac_exeext'
daa2886c 2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
daa2886c 2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2771 (exit $ac_status); }; }; then
2772 LIBS=$ac_save_LIBS
b817f4fb
AJ
2773# We can link X programs with no special library path.
2774ac_x_libraries=
e2991ea7 2775else
f5818d2f 2776 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2777sed 's/^/| /' conftest.$ac_ext >&5
2778
f5818d2f
AJ
2779LIBS=$ac_save_LIBS
2780for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
e2991ea7 2781do
f5818d2f 2782 # Don't even attempt the hair of trying to link an X program!
e2991ea7 2783 for ac_extension in a so sl; do
f5818d2f 2784 if test -r $ac_dir/libXt.$ac_extension; then
b817f4fb 2785 ac_x_libraries=$ac_dir
e2991ea7
AJ
2786 break 2
2787 fi
2788 done
2789done
2790fi
f5818d2f
AJ
2791rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2792fi # $ac_x_libraries = no
b817f4fb 2793
f5818d2f 2794if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
b817f4fb
AJ
2795 # Didn't find X anywhere. Cache the known absence of X.
2796 ac_cv_have_x="have_x=no"
e2991ea7 2797else
b817f4fb
AJ
2798 # Record where we found X for the cache.
2799 ac_cv_have_x="have_x=yes \
2800 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
e2991ea7
AJ
2801fi
2802fi
f5818d2f 2803
e2991ea7 2804 fi
b817f4fb 2805 eval "$ac_cv_have_x"
e2991ea7
AJ
2806fi # $with_x != no
2807
b817f4fb 2808if test "$have_x" != yes; then
daa2886c 2809 echo "$as_me:$LINENO: result: $have_x" >&5
f5818d2f 2810echo "${ECHO_T}$have_x" >&6
b817f4fb 2811 no_x=yes
e2991ea7 2812else
b817f4fb 2813 # If each of the values was on the command line, it overrides each guess.
e2991ea7
AJ
2814 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2815 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
b817f4fb
AJ
2816 # Update the cache value to reflect the command line values.
2817 ac_cv_have_x="have_x=yes \
2818 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
daa2886c 2819 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
f5818d2f 2820echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
e2991ea7
AJ
2821fi
2822
b817f4fb 2823if test "$no_x" = yes; then
ff8331ea 2824 # Not all programs may use this symbol, but it does not hurt to define it.
f5818d2f 2825
daa2886c 2826cat >>confdefs.h <<\_ACEOF
da0cfb36 2827#define X_DISPLAY_MISSING 1
daa2886c 2828_ACEOF
da0cfb36
AJ
2829
2830 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
ff8331ea
AJ
2831else
2832 if test -n "$x_includes"; then
2833 X_CFLAGS="$X_CFLAGS -I$x_includes"
2834 fi
2835
ff8331ea
AJ
2836 # It would also be nice to do this for all -L options, not just this one.
2837 if test -n "$x_libraries"; then
2838 X_LIBS="$X_LIBS -L$x_libraries"
da0cfb36
AJ
2839 # For Solaris; some versions of Sun CC require a space after -R and
2840 # others require no space. Words are not sufficient . . . .
f5818d2f 2841 case `(uname -sr) 2>/dev/null` in
da0cfb36 2842 "SunOS 5"*)
daa2886c 2843 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
f5818d2f
AJ
2844echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2845 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2846 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2847#line $LINENO "configure"
e24bcc77
AJ
2848/* confdefs.h. */
2849_ACEOF
2850cat confdefs.h >>conftest.$ac_ext
2851cat >>conftest.$ac_ext <<_ACEOF
2852/* end confdefs.h. */
ff8331ea 2853
f5818d2f
AJ
2854int
2855main ()
2856{
da0cfb36 2857
f5818d2f
AJ
2858 ;
2859 return 0;
2860}
2861_ACEOF
2862rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 2863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
2864 (eval $ac_link) 2>&5
2865 ac_status=$?
daa2886c 2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2867 (exit $ac_status); } &&
2868 { ac_try='test -s conftest$ac_exeext'
daa2886c 2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2870 (eval $ac_try) 2>&5
2871 ac_status=$?
daa2886c 2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2873 (exit $ac_status); }; }; then
da0cfb36 2874 ac_R_nospace=yes
ff8331ea 2875else
f5818d2f 2876 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2877sed 's/^/| /' conftest.$ac_ext >&5
2878
f5818d2f 2879ac_R_nospace=no
ff8331ea 2880fi
f5818d2f 2881rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
da0cfb36 2882 if test $ac_R_nospace = yes; then
daa2886c 2883 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 2884echo "${ECHO_T}no" >&6
da0cfb36
AJ
2885 X_LIBS="$X_LIBS -R$x_libraries"
2886 else
2887 LIBS="$ac_xsave_LIBS -R $x_libraries"
f5818d2f 2888 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2889#line $LINENO "configure"
e24bcc77
AJ
2890/* confdefs.h. */
2891_ACEOF
2892cat confdefs.h >>conftest.$ac_ext
2893cat >>conftest.$ac_ext <<_ACEOF
2894/* end confdefs.h. */
da0cfb36 2895
f5818d2f
AJ
2896int
2897main ()
2898{
da0cfb36 2899
f5818d2f
AJ
2900 ;
2901 return 0;
2902}
2903_ACEOF
2904rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 2905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
2906 (eval $ac_link) 2>&5
2907 ac_status=$?
daa2886c 2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2909 (exit $ac_status); } &&
2910 { ac_try='test -s conftest$ac_exeext'
daa2886c 2911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2912 (eval $ac_try) 2>&5
2913 ac_status=$?
daa2886c 2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2915 (exit $ac_status); }; }; then
da0cfb36 2916 ac_R_space=yes
ff8331ea 2917else
f5818d2f 2918 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2919sed 's/^/| /' conftest.$ac_ext >&5
2920
f5818d2f 2921ac_R_space=no
ff8331ea 2922fi
f5818d2f 2923rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
da0cfb36 2924 if test $ac_R_space = yes; then
daa2886c 2925 echo "$as_me:$LINENO: result: yes" >&5
f5818d2f 2926echo "${ECHO_T}yes" >&6
da0cfb36
AJ
2927 X_LIBS="$X_LIBS -R $x_libraries"
2928 else
daa2886c 2929 echo "$as_me:$LINENO: result: neither works" >&5
f5818d2f 2930echo "${ECHO_T}neither works" >&6
da0cfb36
AJ
2931 fi
2932 fi
f5818d2f 2933 LIBS=$ac_xsave_LIBS
da0cfb36
AJ
2934 esac
2935 fi
ff8331ea
AJ
2936
2937 # Check for system-dependent libraries X programs must link with.
da0cfb36
AJ
2938 # Do this before checking for the system-independent R6 libraries
2939 # (-lICE), since we may need -lsocket or whatever for X linking.
ff8331ea
AJ
2940
2941 if test "$ISC" = yes; then
2942 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2943 else
f5818d2f
AJ
2944 # Martyn Johnson says this is needed for Ultrix, if the X
2945 # libraries were built with DECnet support. And Karl Berry says
ff8331ea 2946 # the Alpha needs dnet_stub (dnet does not exist).
f5818d2f
AJ
2947 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2948 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2949#line $LINENO "configure"
e24bcc77
AJ
2950/* confdefs.h. */
2951_ACEOF
2952cat confdefs.h >>conftest.$ac_ext
2953cat >>conftest.$ac_ext <<_ACEOF
2954/* end confdefs.h. */
f5818d2f 2955
59730ae1 2956/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
2957#ifdef __cplusplus
2958extern "C"
2959#endif
e2bfa4c7 2960/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
2961 builtin and then its argument prototype would still apply. */
2962char XOpenDisplay ();
2963int
2964main ()
2965{
2966XOpenDisplay ();
2967 ;
2968 return 0;
2969}
2970_ACEOF
2971rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 2972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
2973 (eval $ac_link) 2>&5
2974 ac_status=$?
daa2886c 2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2976 (exit $ac_status); } &&
2977 { ac_try='test -s conftest$ac_exeext'
daa2886c 2978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2979 (eval $ac_try) 2>&5
2980 ac_status=$?
daa2886c 2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2982 (exit $ac_status); }; }; then
2983 :
ff8331ea 2984else
f5818d2f 2985 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2986sed 's/^/| /' conftest.$ac_ext >&5
2987
daa2886c 2988echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
f5818d2f
AJ
2989echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2990if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2992else
2993 ac_check_lib_save_LIBS=$LIBS
2994LIBS="-ldnet $LIBS"
2995cat >conftest.$ac_ext <<_ACEOF
daa2886c 2996#line $LINENO "configure"
e24bcc77
AJ
2997/* confdefs.h. */
2998_ACEOF
2999cat confdefs.h >>conftest.$ac_ext
3000cat >>conftest.$ac_ext <<_ACEOF
3001/* end confdefs.h. */
ff8331ea 3002
f5818d2f
AJ
3003/* Override any gcc2 internal prototype to avoid an error. */
3004#ifdef __cplusplus
3005extern "C"
3006#endif
3007/* We use char because int might match the return type of a gcc2
3008 builtin and then its argument prototype would still apply. */
3009char dnet_ntoa ();
3010int
3011main ()
3012{
3013dnet_ntoa ();
3014 ;
3015 return 0;
3016}
3017_ACEOF
3018rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3020 (eval $ac_link) 2>&5
3021 ac_status=$?
daa2886c 3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3023 (exit $ac_status); } &&
3024 { ac_try='test -s conftest$ac_exeext'
daa2886c 3025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3026 (eval $ac_try) 2>&5
3027 ac_status=$?
daa2886c 3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3029 (exit $ac_status); }; }; then
3030 ac_cv_lib_dnet_dnet_ntoa=yes
3031else
3032 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3033sed 's/^/| /' conftest.$ac_ext >&5
3034
f5818d2f
AJ
3035ac_cv_lib_dnet_dnet_ntoa=no
3036fi
3037rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3038LIBS=$ac_check_lib_save_LIBS
3039fi
daa2886c 3040echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
f5818d2f
AJ
3041echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3042if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
ff8331ea 3043 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
ff8331ea
AJ
3044fi
3045
59730ae1 3046 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
daa2886c 3047 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
f5818d2f
AJ
3048echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3049if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 3051else
f5818d2f 3052 ac_check_lib_save_LIBS=$LIBS
ff8331ea 3053LIBS="-ldnet_stub $LIBS"
f5818d2f 3054cat >conftest.$ac_ext <<_ACEOF
daa2886c 3055#line $LINENO "configure"
e24bcc77
AJ
3056/* confdefs.h. */
3057_ACEOF
3058cat confdefs.h >>conftest.$ac_ext
3059cat >>conftest.$ac_ext <<_ACEOF
3060/* end confdefs.h. */
f5818d2f 3061
59730ae1 3062/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3063#ifdef __cplusplus
3064extern "C"
3065#endif
e2bfa4c7 3066/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3067 builtin and then its argument prototype would still apply. */
3068char dnet_ntoa ();
3069int
3070main ()
3071{
3072dnet_ntoa ();
3073 ;
3074 return 0;
3075}
3076_ACEOF
3077rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3079 (eval $ac_link) 2>&5
3080 ac_status=$?
daa2886c 3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3082 (exit $ac_status); } &&
3083 { ac_try='test -s conftest$ac_exeext'
daa2886c 3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3085 (eval $ac_try) 2>&5
3086 ac_status=$?
daa2886c 3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3088 (exit $ac_status); }; }; then
3089 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3090else
3091 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3092sed 's/^/| /' conftest.$ac_ext >&5
3093
f5818d2f
AJ
3094ac_cv_lib_dnet_stub_dnet_ntoa=no
3095fi
3096rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3097LIBS=$ac_check_lib_save_LIBS
3098fi
daa2886c 3099echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
f5818d2f
AJ
3100echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3101if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
ff8331ea 3102 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
ff8331ea
AJ
3103fi
3104
3105 fi
f5818d2f
AJ
3106fi
3107rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3108 LIBS="$ac_xsave_LIBS"
ff8331ea
AJ
3109
3110 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3111 # to get the SysV transport functions.
f5818d2f 3112 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
da0cfb36
AJ
3113 # needs -lnsl.
3114 # The nsl library prevents programs from opening the X display
f5818d2f
AJ
3115 # on Irix 5.2, according to T.E. Dickey.
3116 # The functions gethostbyname, getservbyname, and inet_addr are
3117 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
daa2886c 3118 echo "$as_me:$LINENO: checking for gethostbyname" >&5
f5818d2f
AJ
3119echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3120if test "${ac_cv_func_gethostbyname+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3122else
3123 cat >conftest.$ac_ext <<_ACEOF
daa2886c 3124#line $LINENO "configure"
e24bcc77
AJ
3125/* confdefs.h. */
3126_ACEOF
3127cat confdefs.h >>conftest.$ac_ext
3128cat >>conftest.$ac_ext <<_ACEOF
3129/* end confdefs.h. */
da0cfb36 3130/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
3131 which can conflict with char gethostbyname (); below.
3132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3133 <limits.h> exists even on freestanding compilers. */
3134#ifdef __STDC__
3135# include <limits.h>
3136#else
3137# include <assert.h>
3138#endif
da0cfb36 3139/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3140#ifdef __cplusplus
3141extern "C"
e24bcc77 3142{
f5818d2f 3143#endif
da0cfb36 3144/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3145 builtin and then its argument prototype would still apply. */
3146char gethostbyname ();
da0cfb36
AJ
3147/* The GNU C library defines this for functions which it implements
3148 to always fail with ENOSYS. Some functions are actually named
3149 something starting with __ and the normal name is an alias. */
3150#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3151choke me
3152#else
e24bcc77
AJ
3153char (*f) () = gethostbyname;
3154#endif
3155#ifdef __cplusplus
3156}
da0cfb36
AJ
3157#endif
3158
e24bcc77
AJ
3159int
3160main ()
3161{
3162return f != gethostbyname;
f5818d2f
AJ
3163 ;
3164 return 0;
3165}
3166_ACEOF
3167rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3169 (eval $ac_link) 2>&5
3170 ac_status=$?
daa2886c 3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3172 (exit $ac_status); } &&
3173 { ac_try='test -s conftest$ac_exeext'
daa2886c 3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3175 (eval $ac_try) 2>&5
3176 ac_status=$?
daa2886c 3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3178 (exit $ac_status); }; }; then
3179 ac_cv_func_gethostbyname=yes
3180else
3181 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3182sed 's/^/| /' conftest.$ac_ext >&5
3183
f5818d2f
AJ
3184ac_cv_func_gethostbyname=no
3185fi
3186rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3187fi
daa2886c 3188echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
f5818d2f 3189echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
da0cfb36
AJ
3190
3191 if test $ac_cv_func_gethostbyname = no; then
daa2886c 3192 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
f5818d2f
AJ
3193echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3194if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 3196else
f5818d2f 3197 ac_check_lib_save_LIBS=$LIBS
ff8331ea 3198LIBS="-lnsl $LIBS"
f5818d2f 3199cat >conftest.$ac_ext <<_ACEOF
daa2886c 3200#line $LINENO "configure"
e24bcc77
AJ
3201/* confdefs.h. */
3202_ACEOF
3203cat confdefs.h >>conftest.$ac_ext
3204cat >>conftest.$ac_ext <<_ACEOF
3205/* end confdefs.h. */
f5818d2f 3206
59730ae1 3207/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3208#ifdef __cplusplus
3209extern "C"
3210#endif
e2bfa4c7 3211/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3212 builtin and then its argument prototype would still apply. */
3213char gethostbyname ();
3214int
3215main ()
3216{
3217gethostbyname ();
3218 ;
3219 return 0;
3220}
3221_ACEOF
3222rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3224 (eval $ac_link) 2>&5
3225 ac_status=$?
daa2886c 3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3227 (exit $ac_status); } &&
3228 { ac_try='test -s conftest$ac_exeext'
daa2886c 3229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3230 (eval $ac_try) 2>&5
3231 ac_status=$?
daa2886c 3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3233 (exit $ac_status); }; }; then
3234 ac_cv_lib_nsl_gethostbyname=yes
3235else
3236 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3237sed 's/^/| /' conftest.$ac_ext >&5
3238
f5818d2f
AJ
3239ac_cv_lib_nsl_gethostbyname=no
3240fi
3241rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3242LIBS=$ac_check_lib_save_LIBS
3243fi
daa2886c 3244echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
f5818d2f
AJ
3245echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3246if test $ac_cv_lib_nsl_gethostbyname = yes; then
3247 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3248fi
ff8331ea 3249
f5818d2f 3250 if test $ac_cv_lib_nsl_gethostbyname = no; then
daa2886c 3251 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
f5818d2f
AJ
3252echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3253if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 3255else
f5818d2f
AJ
3256 ac_check_lib_save_LIBS=$LIBS
3257LIBS="-lbsd $LIBS"
3258cat >conftest.$ac_ext <<_ACEOF
daa2886c 3259#line $LINENO "configure"
e24bcc77
AJ
3260/* confdefs.h. */
3261_ACEOF
3262cat confdefs.h >>conftest.$ac_ext
3263cat >>conftest.$ac_ext <<_ACEOF
3264/* end confdefs.h. */
ff8331ea 3265
f5818d2f
AJ
3266/* Override any gcc2 internal prototype to avoid an error. */
3267#ifdef __cplusplus
3268extern "C"
3269#endif
3270/* We use char because int might match the return type of a gcc2
3271 builtin and then its argument prototype would still apply. */
3272char gethostbyname ();
3273int
3274main ()
3275{
3276gethostbyname ();
3277 ;
3278 return 0;
3279}
3280_ACEOF
3281rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3283 (eval $ac_link) 2>&5
3284 ac_status=$?
daa2886c 3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3286 (exit $ac_status); } &&
3287 { ac_try='test -s conftest$ac_exeext'
daa2886c 3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
daa2886c 3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3292 (exit $ac_status); }; }; then
3293 ac_cv_lib_bsd_gethostbyname=yes
3294else
3295 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
f5818d2f
AJ
3298ac_cv_lib_bsd_gethostbyname=no
3299fi
3300rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3301LIBS=$ac_check_lib_save_LIBS
3302fi
daa2886c 3303echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
f5818d2f
AJ
3304echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3305if test $ac_cv_lib_bsd_gethostbyname = yes; then
3306 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
ff8331ea
AJ
3307fi
3308
f5818d2f 3309 fi
da0cfb36 3310 fi
ff8331ea
AJ
3311
3312 # lieder@skyler.mavd.honeywell.com says without -lsocket,
da0cfb36
AJ
3313 # socket/setsockopt and other routines are undefined under SCO ODT
3314 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
f5818d2f 3315 # on later versions), says Simon Leinen: it contains gethostby*
11af04e3 3316 # variants that don't use the name server (or something). -lsocket
f5818d2f
AJ
3317 # must be given before -lnsl if both are needed. We assume that
3318 # if connect needs -lnsl, so does gethostbyname.
daa2886c 3319 echo "$as_me:$LINENO: checking for connect" >&5
f5818d2f
AJ
3320echo $ECHO_N "checking for connect... $ECHO_C" >&6
3321if test "${ac_cv_func_connect+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3323else
3324 cat >conftest.$ac_ext <<_ACEOF
daa2886c 3325#line $LINENO "configure"
e24bcc77
AJ
3326/* confdefs.h. */
3327_ACEOF
3328cat confdefs.h >>conftest.$ac_ext
3329cat >>conftest.$ac_ext <<_ACEOF
3330/* end confdefs.h. */
da0cfb36 3331/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
3332 which can conflict with char connect (); below.
3333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3334 <limits.h> exists even on freestanding compilers. */
3335#ifdef __STDC__
3336# include <limits.h>
3337#else
3338# include <assert.h>
3339#endif
da0cfb36 3340/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3341#ifdef __cplusplus
3342extern "C"
e24bcc77 3343{
f5818d2f 3344#endif
da0cfb36 3345/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3346 builtin and then its argument prototype would still apply. */
3347char connect ();
da0cfb36
AJ
3348/* The GNU C library defines this for functions which it implements
3349 to always fail with ENOSYS. Some functions are actually named
3350 something starting with __ and the normal name is an alias. */
3351#if defined (__stub_connect) || defined (__stub___connect)
3352choke me
3353#else
e24bcc77
AJ
3354char (*f) () = connect;
3355#endif
3356#ifdef __cplusplus
3357}
da0cfb36
AJ
3358#endif
3359
e24bcc77
AJ
3360int
3361main ()
3362{
3363return f != connect;
f5818d2f
AJ
3364 ;
3365 return 0;
3366}
3367_ACEOF
3368rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3370 (eval $ac_link) 2>&5
3371 ac_status=$?
daa2886c 3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3373 (exit $ac_status); } &&
3374 { ac_try='test -s conftest$ac_exeext'
daa2886c 3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3376 (eval $ac_try) 2>&5
3377 ac_status=$?
daa2886c 3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3379 (exit $ac_status); }; }; then
3380 ac_cv_func_connect=yes
3381else
3382 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3383sed 's/^/| /' conftest.$ac_ext >&5
3384
f5818d2f
AJ
3385ac_cv_func_connect=no
3386fi
3387rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3388fi
daa2886c 3389echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
f5818d2f 3390echo "${ECHO_T}$ac_cv_func_connect" >&6
da0cfb36
AJ
3391
3392 if test $ac_cv_func_connect = no; then
daa2886c 3393 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
f5818d2f
AJ
3394echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3395if test "${ac_cv_lib_socket_connect+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 3397else
f5818d2f 3398 ac_check_lib_save_LIBS=$LIBS
da0cfb36 3399LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
f5818d2f 3400cat >conftest.$ac_ext <<_ACEOF
daa2886c 3401#line $LINENO "configure"
e24bcc77
AJ
3402/* confdefs.h. */
3403_ACEOF
3404cat confdefs.h >>conftest.$ac_ext
3405cat >>conftest.$ac_ext <<_ACEOF
3406/* end confdefs.h. */
f5818d2f 3407
59730ae1 3408/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3409#ifdef __cplusplus
3410extern "C"
3411#endif
e2bfa4c7 3412/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3413 builtin and then its argument prototype would still apply. */
3414char connect ();
3415int
3416main ()
3417{
3418connect ();
3419 ;
3420 return 0;
3421}
3422_ACEOF
3423rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3425 (eval $ac_link) 2>&5
3426 ac_status=$?
daa2886c 3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3428 (exit $ac_status); } &&
3429 { ac_try='test -s conftest$ac_exeext'
daa2886c 3430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3431 (eval $ac_try) 2>&5
3432 ac_status=$?
daa2886c 3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3434 (exit $ac_status); }; }; then
3435 ac_cv_lib_socket_connect=yes
3436else
3437 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3438sed 's/^/| /' conftest.$ac_ext >&5
3439
f5818d2f
AJ
3440ac_cv_lib_socket_connect=no
3441fi
3442rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3443LIBS=$ac_check_lib_save_LIBS
3444fi
daa2886c 3445echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
f5818d2f
AJ
3446echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3447if test $ac_cv_lib_socket_connect = yes; then
da0cfb36 3448 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
ff8331ea
AJ
3449fi
3450
da0cfb36
AJ
3451 fi
3452
f5818d2f 3453 # Guillermo Gomez says -lposix is necessary on A/UX.
daa2886c 3454 echo "$as_me:$LINENO: checking for remove" >&5
f5818d2f
AJ
3455echo $ECHO_N "checking for remove... $ECHO_C" >&6
3456if test "${ac_cv_func_remove+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
da0cfb36 3458else
f5818d2f 3459 cat >conftest.$ac_ext <<_ACEOF
daa2886c 3460#line $LINENO "configure"
e24bcc77
AJ
3461/* confdefs.h. */
3462_ACEOF
3463cat confdefs.h >>conftest.$ac_ext
3464cat >>conftest.$ac_ext <<_ACEOF
3465/* end confdefs.h. */
da0cfb36 3466/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
3467 which can conflict with char remove (); below.
3468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3469 <limits.h> exists even on freestanding compilers. */
3470#ifdef __STDC__
3471# include <limits.h>
3472#else
3473# include <assert.h>
3474#endif
da0cfb36 3475/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3476#ifdef __cplusplus
3477extern "C"
e24bcc77 3478{
f5818d2f 3479#endif
da0cfb36 3480/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3481 builtin and then its argument prototype would still apply. */
3482char remove ();
da0cfb36
AJ
3483/* The GNU C library defines this for functions which it implements
3484 to always fail with ENOSYS. Some functions are actually named
3485 something starting with __ and the normal name is an alias. */
3486#if defined (__stub_remove) || defined (__stub___remove)
3487choke me
3488#else
e24bcc77
AJ
3489char (*f) () = remove;
3490#endif
3491#ifdef __cplusplus
3492}
da0cfb36
AJ
3493#endif
3494
e24bcc77
AJ
3495int
3496main ()
3497{
3498return f != remove;
f5818d2f
AJ
3499 ;
3500 return 0;
3501}
3502_ACEOF
3503rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3505 (eval $ac_link) 2>&5
3506 ac_status=$?
daa2886c 3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3508 (exit $ac_status); } &&
3509 { ac_try='test -s conftest$ac_exeext'
daa2886c 3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3511 (eval $ac_try) 2>&5
3512 ac_status=$?
daa2886c 3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3514 (exit $ac_status); }; }; then
3515 ac_cv_func_remove=yes
3516else
3517 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3518sed 's/^/| /' conftest.$ac_ext >&5
3519
f5818d2f
AJ
3520ac_cv_func_remove=no
3521fi
3522rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3523fi
daa2886c 3524echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
f5818d2f 3525echo "${ECHO_T}$ac_cv_func_remove" >&6
da0cfb36
AJ
3526
3527 if test $ac_cv_func_remove = no; then
daa2886c 3528 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
f5818d2f
AJ
3529echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3530if test "${ac_cv_lib_posix_remove+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
e2bfa4c7 3532else
f5818d2f 3533 ac_check_lib_save_LIBS=$LIBS
da0cfb36 3534LIBS="-lposix $LIBS"
f5818d2f 3535cat >conftest.$ac_ext <<_ACEOF
daa2886c 3536#line $LINENO "configure"
e24bcc77
AJ
3537/* confdefs.h. */
3538_ACEOF
3539cat confdefs.h >>conftest.$ac_ext
3540cat >>conftest.$ac_ext <<_ACEOF
3541/* end confdefs.h. */
f5818d2f 3542
e2bfa4c7 3543/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3544#ifdef __cplusplus
3545extern "C"
3546#endif
e2bfa4c7 3547/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3548 builtin and then its argument prototype would still apply. */
3549char remove ();
3550int
3551main ()
3552{
3553remove ();
3554 ;
3555 return 0;
3556}
3557_ACEOF
3558rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3560 (eval $ac_link) 2>&5
3561 ac_status=$?
daa2886c 3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3563 (exit $ac_status); } &&
3564 { ac_try='test -s conftest$ac_exeext'
daa2886c 3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3566 (eval $ac_try) 2>&5
3567 ac_status=$?
daa2886c 3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3569 (exit $ac_status); }; }; then
3570 ac_cv_lib_posix_remove=yes
3571else
3572 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
f5818d2f
AJ
3575ac_cv_lib_posix_remove=no
3576fi
3577rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3578LIBS=$ac_check_lib_save_LIBS
3579fi
daa2886c 3580echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
f5818d2f
AJ
3581echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3582if test $ac_cv_lib_posix_remove = yes; then
da0cfb36 3583 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
da0cfb36
AJ
3584fi
3585
3586 fi
3587
3588 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
daa2886c 3589 echo "$as_me:$LINENO: checking for shmat" >&5
f5818d2f
AJ
3590echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3591if test "${ac_cv_func_shmat+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
da0cfb36 3593else
f5818d2f 3594 cat >conftest.$ac_ext <<_ACEOF
daa2886c 3595#line $LINENO "configure"
e24bcc77
AJ
3596/* confdefs.h. */
3597_ACEOF
3598cat confdefs.h >>conftest.$ac_ext
3599cat >>conftest.$ac_ext <<_ACEOF
3600/* end confdefs.h. */
da0cfb36 3601/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
3602 which can conflict with char shmat (); below.
3603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3604 <limits.h> exists even on freestanding compilers. */
3605#ifdef __STDC__
3606# include <limits.h>
3607#else
3608# include <assert.h>
3609#endif
da0cfb36 3610/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3611#ifdef __cplusplus
3612extern "C"
e24bcc77 3613{
f5818d2f 3614#endif
da0cfb36 3615/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3616 builtin and then its argument prototype would still apply. */
3617char shmat ();
da0cfb36
AJ
3618/* The GNU C library defines this for functions which it implements
3619 to always fail with ENOSYS. Some functions are actually named
3620 something starting with __ and the normal name is an alias. */
3621#if defined (__stub_shmat) || defined (__stub___shmat)
3622choke me
3623#else
e24bcc77
AJ
3624char (*f) () = shmat;
3625#endif
3626#ifdef __cplusplus
3627}
da0cfb36
AJ
3628#endif
3629
e24bcc77
AJ
3630int
3631main ()
3632{
3633return f != shmat;
f5818d2f
AJ
3634 ;
3635 return 0;
3636}
3637_ACEOF
3638rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3640 (eval $ac_link) 2>&5
3641 ac_status=$?
daa2886c 3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3643 (exit $ac_status); } &&
3644 { ac_try='test -s conftest$ac_exeext'
daa2886c 3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3646 (eval $ac_try) 2>&5
3647 ac_status=$?
daa2886c 3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3649 (exit $ac_status); }; }; then
3650 ac_cv_func_shmat=yes
3651else
3652 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3653sed 's/^/| /' conftest.$ac_ext >&5
3654
f5818d2f
AJ
3655ac_cv_func_shmat=no
3656fi
3657rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3658fi
daa2886c 3659echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
f5818d2f 3660echo "${ECHO_T}$ac_cv_func_shmat" >&6
da0cfb36
AJ
3661
3662 if test $ac_cv_func_shmat = no; then
daa2886c 3663 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
f5818d2f
AJ
3664echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3665if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
da0cfb36 3667else
f5818d2f 3668 ac_check_lib_save_LIBS=$LIBS
da0cfb36 3669LIBS="-lipc $LIBS"
f5818d2f 3670cat >conftest.$ac_ext <<_ACEOF
daa2886c 3671#line $LINENO "configure"
e24bcc77
AJ
3672/* confdefs.h. */
3673_ACEOF
3674cat confdefs.h >>conftest.$ac_ext
3675cat >>conftest.$ac_ext <<_ACEOF
3676/* end confdefs.h. */
f5818d2f 3677
da0cfb36 3678/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3679#ifdef __cplusplus
3680extern "C"
3681#endif
da0cfb36 3682/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3683 builtin and then its argument prototype would still apply. */
3684char shmat ();
3685int
3686main ()
3687{
3688shmat ();
3689 ;
3690 return 0;
3691}
3692_ACEOF
3693rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3695 (eval $ac_link) 2>&5
3696 ac_status=$?
daa2886c 3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3698 (exit $ac_status); } &&
3699 { ac_try='test -s conftest$ac_exeext'
daa2886c 3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3701 (eval $ac_try) 2>&5
3702 ac_status=$?
daa2886c 3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3704 (exit $ac_status); }; }; then
3705 ac_cv_lib_ipc_shmat=yes
3706else
3707 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3708sed 's/^/| /' conftest.$ac_ext >&5
3709
f5818d2f
AJ
3710ac_cv_lib_ipc_shmat=no
3711fi
3712rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3713LIBS=$ac_check_lib_save_LIBS
3714fi
daa2886c 3715echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
f5818d2f
AJ
3716echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3717if test $ac_cv_lib_ipc_shmat = yes; then
da0cfb36 3718 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
e2bfa4c7
AJ
3719fi
3720
ff8331ea
AJ
3721 fi
3722 fi
da0cfb36
AJ
3723
3724 # Check for libraries that X11R6 Xt/Xaw programs need.
f5818d2f 3725 ac_save_LDFLAGS=$LDFLAGS
da0cfb36
AJ
3726 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3727 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3728 # check for ICE first), but we must link in the order -lSM -lICE or
3729 # we get undefined symbols. So assume we have SM if we have ICE.
3730 # These have to be linked with before -lX11, unlike the other
3731 # libraries we check for below, so use a different variable.
f5818d2f 3732 # John Interrante, Karl Berry
daa2886c 3733 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
f5818d2f
AJ
3734echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3735if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737else
3738 ac_check_lib_save_LIBS=$LIBS
18ad24a7 3739LIBS="-lICE $X_EXTRA_LIBS $LIBS"
f5818d2f 3740cat >conftest.$ac_ext <<_ACEOF
daa2886c 3741#line $LINENO "configure"
e24bcc77
AJ
3742/* confdefs.h. */
3743_ACEOF
3744cat confdefs.h >>conftest.$ac_ext
3745cat >>conftest.$ac_ext <<_ACEOF
3746/* end confdefs.h. */
f5818d2f 3747
da0cfb36 3748/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3749#ifdef __cplusplus
3750extern "C"
3751#endif
da0cfb36 3752/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3753 builtin and then its argument prototype would still apply. */
3754char IceConnectionNumber ();
3755int
3756main ()
3757{
3758IceConnectionNumber ();
3759 ;
3760 return 0;
3761}
3762_ACEOF
3763rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3765 (eval $ac_link) 2>&5
3766 ac_status=$?
daa2886c 3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3768 (exit $ac_status); } &&
3769 { ac_try='test -s conftest$ac_exeext'
daa2886c 3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3771 (eval $ac_try) 2>&5
3772 ac_status=$?
daa2886c 3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3774 (exit $ac_status); }; }; then
3775 ac_cv_lib_ICE_IceConnectionNumber=yes
3776else
3777 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3778sed 's/^/| /' conftest.$ac_ext >&5
3779
f5818d2f
AJ
3780ac_cv_lib_ICE_IceConnectionNumber=no
3781fi
3782rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3783LIBS=$ac_check_lib_save_LIBS
3784fi
daa2886c 3785echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
f5818d2f
AJ
3786echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3787if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
da0cfb36 3788 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
da0cfb36
AJ
3789fi
3790
f5818d2f 3791 LDFLAGS=$ac_save_LDFLAGS
da0cfb36 3792
ff8331ea
AJ
3793fi
3794
e2991ea7
AJ
3795for ac_prog in 'bison -y' byacc
3796do
f5818d2f 3797 # Extract the first word of "$ac_prog", so it can be a program name with args.
e2991ea7 3798set dummy $ac_prog; ac_word=$2
daa2886c 3799echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
3800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3801if test "${ac_cv_prog_YACC+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7
AJ
3803else
3804 if test -n "$YACC"; then
3805 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3806else
daa2886c
AJ
3807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808for as_dir in $PATH
3809do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3814 ac_cv_prog_YACC="$ac_prog"
3815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 break 2
3817 fi
3818done
f5818d2f
AJ
3819done
3820
e2991ea7
AJ
3821fi
3822fi
f5818d2f 3823YACC=$ac_cv_prog_YACC
e2991ea7 3824if test -n "$YACC"; then
daa2886c 3825 echo "$as_me:$LINENO: result: $YACC" >&5
f5818d2f 3826echo "${ECHO_T}$YACC" >&6
e2991ea7 3827else
daa2886c 3828 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 3829echo "${ECHO_T}no" >&6
e2991ea7
AJ
3830fi
3831
f5818d2f 3832 test -n "$YACC" && break
e2991ea7
AJ
3833done
3834test -n "$YACC" || YACC="yacc"
3835
f5818d2f
AJ
3836for ac_prog in flex lex
3837do
3838 # Extract the first word of "$ac_prog", so it can be a program name with args.
3839set dummy $ac_prog; ac_word=$2
daa2886c 3840echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
3841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3842if test "${ac_cv_prog_LEX+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7
AJ
3844else
3845 if test -n "$LEX"; then
3846 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3847else
daa2886c
AJ
3848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849for as_dir in $PATH
3850do
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_exec_ext in '' $ac_executable_extensions; do
3854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855 ac_cv_prog_LEX="$ac_prog"
3856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3857 break 2
3858 fi
3859done
f5818d2f
AJ
3860done
3861
e2991ea7
AJ
3862fi
3863fi
f5818d2f 3864LEX=$ac_cv_prog_LEX
e2991ea7 3865if test -n "$LEX"; then
daa2886c 3866 echo "$as_me:$LINENO: result: $LEX" >&5
f5818d2f 3867echo "${ECHO_T}$LEX" >&6
e2991ea7 3868else
daa2886c 3869 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 3870echo "${ECHO_T}no" >&6
e2991ea7
AJ
3871fi
3872
f5818d2f
AJ
3873 test -n "$LEX" && break
3874done
3875test -n "$LEX" || LEX=":"
3876
e2991ea7
AJ
3877if test -z "$LEXLIB"
3878then
daa2886c 3879 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
f5818d2f
AJ
3880echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3881if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883else
3884 ac_check_lib_save_LIBS=$LIBS
3885LIBS="-lfl $LIBS"
3886cat >conftest.$ac_ext <<_ACEOF
daa2886c 3887#line $LINENO "configure"
e24bcc77
AJ
3888/* confdefs.h. */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h. */
f5818d2f 3893
59730ae1 3894/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3895#ifdef __cplusplus
3896extern "C"
3897#endif
e2bfa4c7 3898/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3899 builtin and then its argument prototype would still apply. */
3900char yywrap ();
3901int
3902main ()
3903{
3904yywrap ();
3905 ;
3906 return 0;
3907}
3908_ACEOF
3909rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3911 (eval $ac_link) 2>&5
3912 ac_status=$?
daa2886c 3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3914 (exit $ac_status); } &&
3915 { ac_try='test -s conftest$ac_exeext'
daa2886c 3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3917 (eval $ac_try) 2>&5
3918 ac_status=$?
daa2886c 3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3920 (exit $ac_status); }; }; then
3921 ac_cv_lib_fl_yywrap=yes
3922else
3923 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3924sed 's/^/| /' conftest.$ac_ext >&5
3925
f5818d2f
AJ
3926ac_cv_lib_fl_yywrap=no
3927fi
3928rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3929LIBS=$ac_check_lib_save_LIBS
3930fi
daa2886c 3931echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
f5818d2f
AJ
3932echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3933if test $ac_cv_lib_fl_yywrap = yes; then
3934 LEXLIB="-lfl"
3935else
daa2886c 3936 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
f5818d2f
AJ
3937echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3938if test "${ac_cv_lib_l_yywrap+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3940else
3941 ac_check_lib_save_LIBS=$LIBS
3942LIBS="-ll $LIBS"
3943cat >conftest.$ac_ext <<_ACEOF
daa2886c 3944#line $LINENO "configure"
e24bcc77
AJ
3945/* confdefs.h. */
3946_ACEOF
3947cat confdefs.h >>conftest.$ac_ext
3948cat >>conftest.$ac_ext <<_ACEOF
3949/* end confdefs.h. */
e2991ea7 3950
f5818d2f
AJ
3951/* Override any gcc2 internal prototype to avoid an error. */
3952#ifdef __cplusplus
3953extern "C"
3954#endif
3955/* We use char because int might match the return type of a gcc2
3956 builtin and then its argument prototype would still apply. */
3957char yywrap ();
3958int
3959main ()
3960{
3961yywrap ();
3962 ;
3963 return 0;
3964}
3965_ACEOF
3966rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3968 (eval $ac_link) 2>&5
3969 ac_status=$?
daa2886c 3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3971 (exit $ac_status); } &&
3972 { ac_try='test -s conftest$ac_exeext'
daa2886c 3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3974 (eval $ac_try) 2>&5
3975 ac_status=$?
daa2886c 3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3977 (exit $ac_status); }; }; then
3978 ac_cv_lib_l_yywrap=yes
e2991ea7 3979else
f5818d2f 3980 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3981sed 's/^/| /' conftest.$ac_ext >&5
3982
f5818d2f
AJ
3983ac_cv_lib_l_yywrap=no
3984fi
3985rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3986LIBS=$ac_check_lib_save_LIBS
3987fi
daa2886c 3988echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
f5818d2f
AJ
3989echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3990if test $ac_cv_lib_l_yywrap = yes; then
3991 LEXLIB="-ll"
3992fi
3993
e2991ea7 3994fi
e2991ea7
AJ
3995
3996fi
f5818d2f
AJ
3997
3998if test "x$LEX" != "x:"; then
daa2886c 3999 echo "$as_me:$LINENO: checking lex output file root" >&5
f5818d2f
AJ
4000echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4001if test "${ac_cv_prog_lex_root+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4003else
4004 # The minimal lex program is just a single line: %%. But some broken lexes
4005# (Solaris, I think it was) want two %% lines, so accommodate them.
daa2886c
AJ
4006cat >conftest.l <<_ACEOF
4007%%
4008%%
4009_ACEOF
4010{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4011 (eval $LEX conftest.l) 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }
f5818d2f
AJ
4015if test -f lex.yy.c; then
4016 ac_cv_prog_lex_root=lex.yy
4017elif test -f lexyy.c; then
4018 ac_cv_prog_lex_root=lexyy
4019else
daa2886c 4020 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
f5818d2f
AJ
4021echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4022 { (exit 1); exit 1; }; }
4023fi
4024fi
daa2886c 4025echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
f5818d2f 4026echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
daa2886c 4027rm -f conftest.l
f5818d2f
AJ
4028LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4029
daa2886c 4030echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
f5818d2f
AJ
4031echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4032if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7 4034else
f5818d2f
AJ
4035 # POSIX says lex can declare yytext either as a pointer or an array; the
4036# default is implementation-dependent. Figure out which it is, since
4037# not all implementations provide the %pointer and %array declarations.
4038ac_cv_prog_lex_yytext_pointer=no
4039echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4040ac_save_LIBS=$LIBS
4041LIBS="$LIBS $LEXLIB"
4042cat >conftest.$ac_ext <<_ACEOF
4043`cat $LEX_OUTPUT_ROOT.c`
4044_ACEOF
4045rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 4046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
4047 (eval $ac_link) 2>&5
4048 ac_status=$?
daa2886c 4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4050 (exit $ac_status); } &&
4051 { ac_try='test -s conftest$ac_exeext'
daa2886c 4052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
4053 (eval $ac_try) 2>&5
4054 ac_status=$?
daa2886c 4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4056 (exit $ac_status); }; }; then
4057 ac_cv_prog_lex_yytext_pointer=yes
4058else
4059 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4060sed 's/^/| /' conftest.$ac_ext >&5
4061
f5818d2f
AJ
4062fi
4063rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4064LIBS=$ac_save_LIBS
4065rm -f "${LEX_OUTPUT_ROOT}.c"
4066
e2991ea7 4067fi
daa2886c 4068echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
f5818d2f
AJ
4069echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4070if test $ac_cv_prog_lex_yytext_pointer = yes; then
4071
daa2886c 4072cat >>confdefs.h <<\_ACEOF
f5818d2f 4073#define YYTEXT_POINTER 1
daa2886c 4074_ACEOF
e2991ea7
AJ
4075
4076fi
4077
f5818d2f 4078fi
5c5a6217
MM
4079
4080for ac_prog in $YACC bison yacc
4081do
f5818d2f 4082 # Extract the first word of "$ac_prog", so it can be a program name with args.
5c5a6217 4083set dummy $ac_prog; ac_word=$2
daa2886c 4084echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
4085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086if test "${ac_cv_prog_XYACC+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
5c5a6217
MM
4088else
4089 if test -n "$XYACC"; then
4090 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4091else
daa2886c
AJ
4092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093for as_dir in $PATH
4094do
4095 IFS=$as_save_IFS
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099 ac_cv_prog_XYACC="$ac_prog"
4100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101 break 2
4102 fi
4103done
f5818d2f
AJ
4104done
4105
5c5a6217
MM
4106fi
4107fi
f5818d2f 4108XYACC=$ac_cv_prog_XYACC
5c5a6217 4109if test -n "$XYACC"; then
daa2886c 4110 echo "$as_me:$LINENO: result: $XYACC" >&5
f5818d2f 4111echo "${ECHO_T}$XYACC" >&6
5c5a6217 4112else
daa2886c 4113 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 4114echo "${ECHO_T}no" >&6
5c5a6217
MM
4115fi
4116
f5818d2f 4117 test -n "$XYACC" && break
5c5a6217
MM
4118done
4119test -n "$XYACC" || XYACC="none"
4120
4121if test "$XYACC" = "none"
4122then
daa2886c 4123 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
f5818d2f
AJ
4124echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4125 { (exit 1); exit 1; }; }
5c5a6217 4126fi
b53bb419
MM
4127for ac_prog in $LEX flex lex
4128do
f5818d2f 4129 # Extract the first word of "$ac_prog", so it can be a program name with args.
b53bb419 4130set dummy $ac_prog; ac_word=$2
daa2886c 4131echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
4132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4133if test "${ac_cv_prog_XLEX+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
b53bb419
MM
4135else
4136 if test -n "$XLEX"; then
4137 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4138else
daa2886c
AJ
4139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140for as_dir in $PATH
4141do
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4146 ac_cv_prog_XLEX="$ac_prog"
4147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 break 2
4149 fi
4150done
f5818d2f
AJ
4151done
4152
b53bb419
MM
4153fi
4154fi
f5818d2f 4155XLEX=$ac_cv_prog_XLEX
b53bb419 4156if test -n "$XLEX"; then
daa2886c 4157 echo "$as_me:$LINENO: result: $XLEX" >&5
f5818d2f 4158echo "${ECHO_T}$XLEX" >&6
b53bb419 4159else
daa2886c 4160 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 4161echo "${ECHO_T}no" >&6
b53bb419
MM
4162fi
4163
f5818d2f 4164 test -n "$XLEX" && break
b53bb419
MM
4165done
4166test -n "$XLEX" || XLEX="none"
4167
4168if test "$XLEX" = "none"
4169then
daa2886c 4170 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
f5818d2f
AJ
4171echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4172 { (exit 1); exit 1; }; }
4173fi
fc01b729 4174
1d4db787
MM
4175if test -n "$ac_tool_prefix"; then
4176 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4177set dummy ${ac_tool_prefix}as; ac_word=$2
4178echo "$as_me:$LINENO: checking for $ac_word" >&5
4179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180if test "${ac_cv_prog_AS+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4182else
4183 if test -n "$AS"; then
4184 ac_cv_prog_AS="$AS" # Let the user override the test.
4185else
4186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187for as_dir in $PATH
4188do
4189 IFS=$as_save_IFS
4190 test -z "$as_dir" && as_dir=.
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193 ac_cv_prog_AS="${ac_tool_prefix}as"
4194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4195 break 2
4196 fi
4197done
4198done
4199
4200fi
4201fi
4202AS=$ac_cv_prog_AS
4203if test -n "$AS"; then
4204 echo "$as_me:$LINENO: result: $AS" >&5
4205echo "${ECHO_T}$AS" >&6
4206else
4207 echo "$as_me:$LINENO: result: no" >&5
4208echo "${ECHO_T}no" >&6
4209fi
4210
4211fi
4212if test -z "$ac_cv_prog_AS"; then
4213 ac_ct_AS=$AS
4214 # Extract the first word of "as", so it can be a program name with args.
4215set dummy as; ac_word=$2
4216echo "$as_me:$LINENO: checking for $ac_word" >&5
4217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220else
4221 if test -n "$ac_ct_AS"; then
4222 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4223else
4224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225for as_dir in $PATH
4226do
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_prog_ac_ct_AS="as"
4232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 break 2
4234 fi
4235done
4236done
4237
4238 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="as"
4239fi
4240fi
4241ac_ct_AS=$ac_cv_prog_ac_ct_AS
4242if test -n "$ac_ct_AS"; then
4243 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4244echo "${ECHO_T}$ac_ct_AS" >&6
4245else
4246 echo "$as_me:$LINENO: result: no" >&5
4247echo "${ECHO_T}no" >&6
4248fi
4249
4250 AS=$ac_ct_AS
4251else
4252 AS="$ac_cv_prog_AS"
4253fi
4254
eb5f89c5
AJ
4255if test -n "$ac_tool_prefix"; then
4256 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4257set dummy ${ac_tool_prefix}ld; ac_word=$2
4258echo "$as_me:$LINENO: checking for $ac_word" >&5
4259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260if test "${ac_cv_prog_LD+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4262else
4263 if test -n "$LD"; then
4264 ac_cv_prog_LD="$LD" # Let the user override the test.
4265else
4266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH
4268do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273 ac_cv_prog_LD="${ac_tool_prefix}ld"
4274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4276 fi
4277done
4278done
4279
4280fi
4281fi
4282LD=$ac_cv_prog_LD
4283if test -n "$LD"; then
4284 echo "$as_me:$LINENO: result: $LD" >&5
4285echo "${ECHO_T}$LD" >&6
4286else
4287 echo "$as_me:$LINENO: result: no" >&5
4288echo "${ECHO_T}no" >&6
4289fi
4290
4291fi
4292if test -z "$ac_cv_prog_LD"; then
4293 ac_ct_LD=$LD
4294 # Extract the first word of "ld", so it can be a program name with args.
4295set dummy ld; ac_word=$2
4296echo "$as_me:$LINENO: checking for $ac_word" >&5
4297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300else
4301 if test -n "$ac_ct_LD"; then
4302 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4303else
4304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305for as_dir in $PATH
4306do
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_ac_ct_LD="ld"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4314 fi
4315done
4316done
4317
4318 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4319fi
4320fi
4321ac_ct_LD=$ac_cv_prog_ac_ct_LD
4322if test -n "$ac_ct_LD"; then
4323 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4324echo "${ECHO_T}$ac_ct_LD" >&6
4325else
4326 echo "$as_me:$LINENO: result: no" >&5
4327echo "${ECHO_T}no" >&6
4328fi
4329
4330 LD=$ac_ct_LD
4331else
4332 LD="$ac_cv_prog_LD"
4333fi
4334
fc01b729
AJ
4335if test -n "$ac_tool_prefix"; then
4336 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4337set dummy ${ac_tool_prefix}ar; ac_word=$2
4338echo "$as_me:$LINENO: checking for $ac_word" >&5
4339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4340if test "${ac_cv_prog_AR+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4342else
4343 if test -n "$AR"; then
4344 ac_cv_prog_AR="$AR" # Let the user override the test.
4345else
4346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347for as_dir in $PATH
4348do
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4353 ac_cv_prog_AR="${ac_tool_prefix}ar"
4354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 break 2
4356 fi
4357done
4358done
4359
4360fi
4361fi
4362AR=$ac_cv_prog_AR
4363if test -n "$AR"; then
4364 echo "$as_me:$LINENO: result: $AR" >&5
4365echo "${ECHO_T}$AR" >&6
4366else
4367 echo "$as_me:$LINENO: result: no" >&5
4368echo "${ECHO_T}no" >&6
4369fi
4370
4371fi
4372if test -z "$ac_cv_prog_AR"; then
4373 ac_ct_AR=$AR
4374 # Extract the first word of "ar", so it can be a program name with args.
4375set dummy ar; ac_word=$2
4376echo "$as_me:$LINENO: checking for $ac_word" >&5
4377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4378if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4380else
4381 if test -n "$ac_ct_AR"; then
4382 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4383else
4384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385for as_dir in $PATH
4386do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391 ac_cv_prog_ac_ct_AR="ar"
4392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4393 break 2
4394 fi
4395done
4396done
4397
4398 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4399fi
4400fi
4401ac_ct_AR=$ac_cv_prog_ac_ct_AR
4402if test -n "$ac_ct_AR"; then
4403 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4404echo "${ECHO_T}$ac_ct_AR" >&6
4405else
4406 echo "$as_me:$LINENO: result: no" >&5
4407echo "${ECHO_T}no" >&6
4408fi
4409
4410 AR=$ac_ct_AR
4411else
4412 AR="$ac_cv_prog_AR"
4413fi
4414
f5818d2f
AJ
4415if test -n "$ac_tool_prefix"; then
4416 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4417set dummy ${ac_tool_prefix}ranlib; ac_word=$2
daa2886c 4418echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
4419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4420if test "${ac_cv_prog_RANLIB+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea
AJ
4422else
4423 if test -n "$RANLIB"; then
4424 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4425else
daa2886c
AJ
4426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427for as_dir in $PATH
4428do
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4433 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 break 2
4436 fi
4437done
f5818d2f
AJ
4438done
4439
e2991ea7 4440fi
e2991ea7 4441fi
f5818d2f 4442RANLIB=$ac_cv_prog_RANLIB
ff8331ea 4443if test -n "$RANLIB"; then
daa2886c 4444 echo "$as_me:$LINENO: result: $RANLIB" >&5
f5818d2f
AJ
4445echo "${ECHO_T}$RANLIB" >&6
4446else
daa2886c 4447 echo "$as_me:$LINENO: result: no" >&5
f5818d2f
AJ
4448echo "${ECHO_T}no" >&6
4449fi
4450
4451fi
4452if test -z "$ac_cv_prog_RANLIB"; then
4453 ac_ct_RANLIB=$RANLIB
4454 # Extract the first word of "ranlib", so it can be a program name with args.
4455set dummy ranlib; ac_word=$2
daa2886c 4456echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
4457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4458if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460else
4461 if test -n "$ac_ct_RANLIB"; then
4462 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4463else
daa2886c
AJ
4464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465for as_dir in $PATH
4466do
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471 ac_cv_prog_ac_ct_RANLIB="ranlib"
4472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4474 fi
4475done
f5818d2f
AJ
4476done
4477
4478 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4479fi
4480fi
4481ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4482if test -n "$ac_ct_RANLIB"; then
daa2886c 4483 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
f5818d2f
AJ
4484echo "${ECHO_T}$ac_ct_RANLIB" >&6
4485else
daa2886c 4486 echo "$as_me:$LINENO: result: no" >&5
f5818d2f
AJ
4487echo "${ECHO_T}no" >&6
4488fi
4489
4490 RANLIB=$ac_ct_RANLIB
ff8331ea 4491else
f5818d2f 4492 RANLIB="$ac_cv_prog_RANLIB"
ff8331ea 4493fi
e2991ea7 4494
fc01b729
AJ
4495if test -n "$ac_tool_prefix"; then
4496 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4497set dummy ${ac_tool_prefix}strip; ac_word=$2
4498echo "$as_me:$LINENO: checking for $ac_word" >&5
4499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4500if test "${ac_cv_prog_STRIP+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502else
4503 if test -n "$STRIP"; then
4504 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4505else
4506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507for as_dir in $PATH
4508do
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 break 2
4516 fi
4517done
4518done
4519
4520fi
4521fi
4522STRIP=$ac_cv_prog_STRIP
4523if test -n "$STRIP"; then
4524 echo "$as_me:$LINENO: result: $STRIP" >&5
4525echo "${ECHO_T}$STRIP" >&6
4526else
4527 echo "$as_me:$LINENO: result: no" >&5
4528echo "${ECHO_T}no" >&6
4529fi
4530
4531fi
4532if test -z "$ac_cv_prog_STRIP"; then
4533 ac_ct_STRIP=$STRIP
4534 # Extract the first word of "strip", so it can be a program name with args.
4535set dummy strip; ac_word=$2
4536echo "$as_me:$LINENO: checking for $ac_word" >&5
4537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540else
4541 if test -n "$ac_ct_STRIP"; then
4542 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4543else
4544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545for as_dir in $PATH
4546do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551 ac_cv_prog_ac_ct_STRIP="strip"
4552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 break 2
4554 fi
4555done
4556done
4557
4558 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4559fi
4560fi
4561ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4562if test -n "$ac_ct_STRIP"; then
4563 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4564echo "${ECHO_T}$ac_ct_STRIP" >&6
4565else
4566 echo "$as_me:$LINENO: result: no" >&5
4567echo "${ECHO_T}no" >&6
4568fi
4569
4570 STRIP=$ac_ct_STRIP
4571else
4572 STRIP="$ac_cv_prog_STRIP"
4573fi
4574
4575if test -n "$ac_tool_prefix"; then
4576 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4577set dummy ${ac_tool_prefix}windres; ac_word=$2
4578echo "$as_me:$LINENO: checking for $ac_word" >&5
4579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4580if test "${ac_cv_prog_WINDRES+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582else
4583 if test -n "$WINDRES"; then
4584 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4585else
4586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587for as_dir in $PATH
4588do
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4596 fi
4597done
4598done
4599
4600fi
4601fi
4602WINDRES=$ac_cv_prog_WINDRES
4603if test -n "$WINDRES"; then
4604 echo "$as_me:$LINENO: result: $WINDRES" >&5
4605echo "${ECHO_T}$WINDRES" >&6
4606else
4607 echo "$as_me:$LINENO: result: no" >&5
4608echo "${ECHO_T}no" >&6
4609fi
4610
4611fi
4612if test -z "$ac_cv_prog_WINDRES"; then
4613 ac_ct_WINDRES=$WINDRES
4614 # Extract the first word of "windres", so it can be a program name with args.
4615set dummy windres; ac_word=$2
4616echo "$as_me:$LINENO: checking for $ac_word" >&5
4617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4618if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4620else
4621 if test -n "$ac_ct_WINDRES"; then
4622 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4623else
4624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625for as_dir in $PATH
4626do
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4631 ac_cv_prog_ac_ct_WINDRES="windres"
4632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 break 2
4634 fi
4635done
4636done
4637
4638 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4639fi
4640fi
4641ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4642if test -n "$ac_ct_WINDRES"; then
4643 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4644echo "${ECHO_T}$ac_ct_WINDRES" >&6
4645else
4646 echo "$as_me:$LINENO: result: no" >&5
4647echo "${ECHO_T}no" >&6
4648fi
4649
4650 WINDRES=$ac_ct_WINDRES
4651else
4652 WINDRES="$ac_cv_prog_WINDRES"
4653fi
4654
daa2886c 4655echo "$as_me:$LINENO: checking whether ln -s works" >&5
f5818d2f
AJ
4656echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4657LN_S=$as_ln_s
4658if test "$LN_S" = "ln -s"; then
daa2886c 4659 echo "$as_me:$LINENO: result: yes" >&5
f5818d2f 4660echo "${ECHO_T}yes" >&6
641ee76a 4661else
daa2886c 4662 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
f5818d2f 4663echo "${ECHO_T}no, using $LN_S" >&6
641ee76a
AJ
4664fi
4665
df234a9f
AJ
4666echo "$as_me:$LINENO: checking whether ln works" >&5
4667echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4668rm -f conf$$ conf$$.file
4669echo >conf$$.file
4670if ln conf$$.file conf$$ 2>/dev/null; then
4671 LN=ln
4672
4673 echo "$as_me:$LINENO: result: yes" >&5
4674echo "${ECHO_T}yes" >&6
4675else
4676 LN="cp -p"
4677
4678 echo "$as_me:$LINENO: result: no, using $LN" >&5
4679echo "${ECHO_T}no, using $LN" >&6
4680fi
4681rm -f conf$$ conf$$.file
c7c217b3
AJ
4682# Extract the first word of "c2man", so it can be a program name with args.
4683set dummy c2man; ac_word=$2
daa2886c 4684echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
4685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4686if test "${ac_cv_prog_C2MAN+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
c7c217b3
AJ
4688else
4689 if test -n "$C2MAN"; then
4690 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4691else
daa2886c
AJ
4692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693for as_dir in $PATH
4694do
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4699 ac_cv_prog_C2MAN="c2man"
4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4702 fi
4703done
f5818d2f
AJ
4704done
4705
e0df32ff 4706 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
c7c217b3
AJ
4707fi
4708fi
f5818d2f 4709C2MAN=$ac_cv_prog_C2MAN
c7c217b3 4710if test -n "$C2MAN"; then
daa2886c 4711 echo "$as_me:$LINENO: result: $C2MAN" >&5
f5818d2f 4712echo "${ECHO_T}$C2MAN" >&6
c7c217b3 4713else
daa2886c 4714 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 4715echo "${ECHO_T}no" >&6
c7c217b3
AJ
4716fi
4717
ffe6b767
JJ
4718# Extract the first word of "ldconfig", so it can be a program name with args.
4719set dummy ldconfig; ac_word=$2
daa2886c 4720echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
4721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4722if test "${ac_cv_path_LDCONFIG+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
ffe6b767 4724else
f5818d2f
AJ
4725 case $LDCONFIG in
4726 [\\/]* | ?:[\\/]*)
ffe6b767
JJ
4727 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4728 ;;
4729 *)
daa2886c 4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
91372b39 4731for as_dir in /sbin /usr/sbin $PATH
daa2886c
AJ
4732do
4733 IFS=$as_save_IFS
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4737 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 break 2
4740 fi
4741done
f5818d2f
AJ
4742done
4743
318f4cef 4744 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
ffe6b767
JJ
4745 ;;
4746esac
4747fi
f5818d2f 4748LDCONFIG=$ac_cv_path_LDCONFIG
79e44abe 4749
f5818d2f 4750if test -n "$LDCONFIG"; then
daa2886c 4751 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
f5818d2f 4752echo "${ECHO_T}$LDCONFIG" >&6
d48ca948 4753else
daa2886c 4754 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 4755echo "${ECHO_T}no" >&6
d48ca948
HT
4756fi
4757
e24bcc77
AJ
4758# Find a good install program. We prefer a C program (faster),
4759# so one script is as good as another. But avoid the broken or
4760# incompatible versions:
4761# SysV /etc/install, /usr/sbin/install
4762# SunOS /usr/etc/install
4763# IRIX /sbin/install
4764# AIX /bin/install
4765# AmigaOS /C/install, which installs bootblocks on floppy discs
4766# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4767# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4768# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4769# ./install, which can be erroneously created by make from ./install.sh.
4770echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4771echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4772if test -z "$INSTALL"; then
4773if test "${ac_cv_path_install+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4775else
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777for as_dir in $PATH
4778do
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 # Account for people who put trailing slashes in PATH elements.
4782case $as_dir/ in
4783 ./ | .// | /cC/* | \
4784 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4785 /usr/ucb/* ) ;;
4786 *)
4787 # OSF1 and SCO ODT 3.0 have their own names for install.
4788 # Don't use installbsd from OSF since it installs stuff as root
4789 # by default.
4790 for ac_prog in ginstall scoinst install; do
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4793 if test $ac_prog = install &&
4794 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4795 # AIX install. It has an incompatible calling convention.
4796 :
4797 elif test $ac_prog = install &&
4798 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4799 # program-specific install script used by HP pwplus--don't use.
4800 :
4801 else
4802 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4803 break 3
4804 fi
4805 fi
4806 done
4807 done
4808 ;;
4809esac
4810done
4811
4812
4813fi
4814 if test "${ac_cv_path_install+set}" = set; then
4815 INSTALL=$ac_cv_path_install
4816 else
4817 # As a last resort, use the slow shell script. We don't cache a
4818 # path for INSTALL within a source directory, because that will
4819 # break other packages using the cache if that directory is
4820 # removed, or if the path is relative.
4821 INSTALL=$ac_install_sh
4822 fi
4823fi
4824echo "$as_me:$LINENO: result: $INSTALL" >&5
4825echo "${ECHO_T}$INSTALL" >&6
4826
4827# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4828# It thinks the first close brace ends the variable substitution.
4829test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4830
4831test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4832
4833test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4834
4835case "$INSTALL" in
8418d8f3 4836 [\\/$]* | ?:[\\/]* ) ;;
e24bcc77
AJ
4837 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4838esac
daa2886c 4839
a9be64e2
PS
4840for ac_prog in lclint lint
4841do
f5818d2f 4842 # Extract the first word of "$ac_prog", so it can be a program name with args.
a9be64e2 4843set dummy $ac_prog; ac_word=$2
daa2886c 4844echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
4845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4846if test "${ac_cv_prog_LINT+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
a9be64e2
PS
4848else
4849 if test -n "$LINT"; then
4850 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4851else
daa2886c
AJ
4852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853for as_dir in $PATH
4854do
4855 IFS=$as_save_IFS
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859 ac_cv_prog_LINT="$ac_prog"
4860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 break 2
4862 fi
4863done
f5818d2f
AJ
4864done
4865
a9be64e2
PS
4866fi
4867fi
f5818d2f 4868LINT=$ac_cv_prog_LINT
a9be64e2 4869if test -n "$LINT"; then
daa2886c 4870 echo "$as_me:$LINENO: result: $LINT" >&5
f5818d2f 4871echo "${ECHO_T}$LINT" >&6
a9be64e2 4872else
daa2886c 4873 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 4874echo "${ECHO_T}no" >&6
a9be64e2
PS
4875fi
4876
f5818d2f 4877 test -n "$LINT" && break
a9be64e2
PS
4878done
4879
4880if test "$LINT" = "lint"
4881then
4882 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4883 fi
4884
daa2886c
AJ
4885
4886
1d8cb6ef
VB
4887for ac_prog in docbook2html db2html
4888do
4889 # Extract the first word of "$ac_prog", so it can be a program name with args.
4890set dummy $ac_prog; ac_word=$2
4891echo "$as_me:$LINENO: checking for $ac_word" >&5
4892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893if test "${ac_cv_prog_DB2HTML+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4895else
4896 if test -n "$DB2HTML"; then
4897 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4898else
4899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900for as_dir in $PATH
4901do
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4906 ac_cv_prog_DB2HTML="$ac_prog"
4907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 break 2
4909 fi
4910done
4911done
4912
4913fi
4914fi
4915DB2HTML=$ac_cv_prog_DB2HTML
4916if test -n "$DB2HTML"; then
4917 echo "$as_me:$LINENO: result: $DB2HTML" >&5
4918echo "${ECHO_T}$DB2HTML" >&6
4919else
4920 echo "$as_me:$LINENO: result: no" >&5
4921echo "${ECHO_T}no" >&6
4922fi
4923
4924 test -n "$DB2HTML" && break
4925done
4926test -n "$DB2HTML" || DB2HTML="false"
4927
4928
4929
4930for ac_prog in docbook2pdf db2pdf
4931do
4932 # Extract the first word of "$ac_prog", so it can be a program name with args.
4933set dummy $ac_prog; ac_word=$2
4934echo "$as_me:$LINENO: checking for $ac_word" >&5
4935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4936if test "${ac_cv_prog_DB2PDF+set}" = set; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4938else
4939 if test -n "$DB2PDF"; then
4940 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4941else
4942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943for as_dir in $PATH
4944do
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4949 ac_cv_prog_DB2PDF="$ac_prog"
4950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 break 2
4952 fi
4953done
4954done
4955
4956fi
4957fi
4958DB2PDF=$ac_cv_prog_DB2PDF
4959if test -n "$DB2PDF"; then
4960 echo "$as_me:$LINENO: result: $DB2PDF" >&5
4961echo "${ECHO_T}$DB2PDF" >&6
4962else
4963 echo "$as_me:$LINENO: result: no" >&5
4964echo "${ECHO_T}no" >&6
4965fi
4966
4967 test -n "$DB2PDF" && break
4968done
4969test -n "$DB2PDF" || DB2PDF="false"
4970
4971
4972
4973for ac_prog in docbook2ps db2ps
4974do
4975 # Extract the first word of "$ac_prog", so it can be a program name with args.
4976set dummy $ac_prog; ac_word=$2
4977echo "$as_me:$LINENO: checking for $ac_word" >&5
4978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979if test "${ac_cv_prog_DB2PS+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4981else
4982 if test -n "$DB2PS"; then
4983 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4984else
4985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986for as_dir in $PATH
4987do
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992 ac_cv_prog_DB2PS="$ac_prog"
4993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4995 fi
4996done
4997done
4998
4999fi
5000fi
5001DB2PS=$ac_cv_prog_DB2PS
5002if test -n "$DB2PS"; then
5003 echo "$as_me:$LINENO: result: $DB2PS" >&5
5004echo "${ECHO_T}$DB2PS" >&6
5005else
5006 echo "$as_me:$LINENO: result: no" >&5
5007echo "${ECHO_T}no" >&6
5008fi
5009
5010 test -n "$DB2PS" && break
5011done
5012test -n "$DB2PS" || DB2PS="false"
5013
5014
5015
daa2886c
AJ
5016
5017
5018echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
f5818d2f
AJ
5019echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5020if test "${ac_cv_lib_m_sqrt+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
13277480 5022else
f5818d2f 5023 ac_check_lib_save_LIBS=$LIBS
13277480 5024LIBS="-lm $LIBS"
f5818d2f 5025cat >conftest.$ac_ext <<_ACEOF
daa2886c 5026#line $LINENO "configure"
e24bcc77
AJ
5027/* confdefs.h. */
5028_ACEOF
5029cat confdefs.h >>conftest.$ac_ext
5030cat >>conftest.$ac_ext <<_ACEOF
5031/* end confdefs.h. */
f5818d2f 5032
13277480 5033/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5034#ifdef __cplusplus
5035extern "C"
5036#endif
13277480 5037/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5038 builtin and then its argument prototype would still apply. */
5039char sqrt ();
5040int
5041main ()
5042{
5043sqrt ();
5044 ;
5045 return 0;
5046}
5047_ACEOF
5048rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5050 (eval $ac_link) 2>&5
5051 ac_status=$?
daa2886c 5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5053 (exit $ac_status); } &&
5054 { ac_try='test -s conftest$ac_exeext'
daa2886c 5055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5056 (eval $ac_try) 2>&5
5057 ac_status=$?
daa2886c 5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5059 (exit $ac_status); }; }; then
5060 ac_cv_lib_m_sqrt=yes
5061else
5062 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5063sed 's/^/| /' conftest.$ac_ext >&5
5064
f5818d2f
AJ
5065ac_cv_lib_m_sqrt=no
5066fi
5067rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5068LIBS=$ac_check_lib_save_LIBS
5069fi
daa2886c 5070echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
f5818d2f
AJ
5071echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5072if test $ac_cv_lib_m_sqrt = yes; then
daa2886c 5073 cat >>confdefs.h <<_ACEOF
f5818d2f 5074#define HAVE_LIBM 1
daa2886c 5075_ACEOF
f5818d2f
AJ
5076
5077 LIBS="-lm $LIBS"
13277480
HA
5078
5079fi
13277480 5080
daa2886c
AJ
5081
5082echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
f5818d2f
AJ
5083echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5084if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
902da699 5086else
f5818d2f 5087 ac_check_lib_save_LIBS=$LIBS
902da699 5088LIBS="-li386 $LIBS"
f5818d2f 5089cat >conftest.$ac_ext <<_ACEOF
daa2886c 5090#line $LINENO "configure"
e24bcc77
AJ
5091/* confdefs.h. */
5092_ACEOF
5093cat confdefs.h >>conftest.$ac_ext
5094cat >>conftest.$ac_ext <<_ACEOF
5095/* end confdefs.h. */
f5818d2f 5096
59730ae1 5097/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5098#ifdef __cplusplus
5099extern "C"
5100#endif
e2bfa4c7 5101/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5102 builtin and then its argument prototype would still apply. */
5103char i386_set_ldt ();
5104int
5105main ()
5106{
5107i386_set_ldt ();
5108 ;
5109 return 0;
5110}
5111_ACEOF
5112rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5114 (eval $ac_link) 2>&5
5115 ac_status=$?
daa2886c 5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5117 (exit $ac_status); } &&
5118 { ac_try='test -s conftest$ac_exeext'
daa2886c 5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5120 (eval $ac_try) 2>&5
5121 ac_status=$?
daa2886c 5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5123 (exit $ac_status); }; }; then
5124 ac_cv_lib_i386_i386_set_ldt=yes
5125else
5126 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5127sed 's/^/| /' conftest.$ac_ext >&5
5128
f5818d2f
AJ
5129ac_cv_lib_i386_i386_set_ldt=no
5130fi
5131rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5132LIBS=$ac_check_lib_save_LIBS
5133fi
daa2886c 5134echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
f5818d2f
AJ
5135echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5136if test $ac_cv_lib_i386_i386_set_ldt = yes; then
daa2886c 5137 cat >>confdefs.h <<_ACEOF
f5818d2f 5138#define HAVE_LIBI386 1
daa2886c 5139_ACEOF
02e90087
AJ
5140
5141 LIBS="-li386 $LIBS"
5142
02e90087
AJ
5143fi
5144
daa2886c
AJ
5145
5146echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
f5818d2f
AJ
5147echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5148if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
ecc7669d 5150else
f5818d2f 5151 ac_check_lib_save_LIBS=$LIBS
ecc7669d 5152LIBS="-lossaudio $LIBS"
f5818d2f 5153cat >conftest.$ac_ext <<_ACEOF
daa2886c 5154#line $LINENO "configure"
e24bcc77
AJ
5155/* confdefs.h. */
5156_ACEOF
5157cat confdefs.h >>conftest.$ac_ext
5158cat >>conftest.$ac_ext <<_ACEOF
5159/* end confdefs.h. */
f5818d2f 5160
ecc7669d 5161/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5162#ifdef __cplusplus
5163extern "C"
5164#endif
ecc7669d 5165/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5166 builtin and then its argument prototype would still apply. */
5167char _oss_ioctl ();
5168int
5169main ()
5170{
5171_oss_ioctl ();
5172 ;
5173 return 0;
5174}
5175_ACEOF
5176rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5178 (eval $ac_link) 2>&5
5179 ac_status=$?
daa2886c 5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5181 (exit $ac_status); } &&
5182 { ac_try='test -s conftest$ac_exeext'
daa2886c 5183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5184 (eval $ac_try) 2>&5
5185 ac_status=$?
daa2886c 5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5187 (exit $ac_status); }; }; then
5188 ac_cv_lib_ossaudio__oss_ioctl=yes
5189else
5190 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5191sed 's/^/| /' conftest.$ac_ext >&5
5192
f5818d2f
AJ
5193ac_cv_lib_ossaudio__oss_ioctl=no
5194fi
5195rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5196LIBS=$ac_check_lib_save_LIBS
5197fi
daa2886c 5198echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
f5818d2f
AJ
5199echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5200if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
daa2886c 5201 cat >>confdefs.h <<_ACEOF
f5818d2f 5202#define HAVE_LIBOSSAUDIO 1
daa2886c 5203_ACEOF
ecc7669d
TV
5204
5205 LIBS="-lossaudio $LIBS"
5206
ecc7669d
TV
5207fi
5208
daa2886c 5209
2e8e2334
UW
5210for ac_func in iswalnum
5211do
f5818d2f 5212as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
daa2886c 5213echo "$as_me:$LINENO: checking for $ac_func" >&5
f5818d2f
AJ
5214echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5215if eval "test \"\${$as_ac_var+set}\" = set"; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217else
5218 cat >conftest.$ac_ext <<_ACEOF
daa2886c 5219#line $LINENO "configure"
e24bcc77
AJ
5220/* confdefs.h. */
5221_ACEOF
5222cat confdefs.h >>conftest.$ac_ext
5223cat >>conftest.$ac_ext <<_ACEOF
5224/* end confdefs.h. */
2e8e2334 5225/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
5226 which can conflict with char $ac_func (); below.
5227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5228 <limits.h> exists even on freestanding compilers. */
5229#ifdef __STDC__
5230# include <limits.h>
5231#else
5232# include <assert.h>
5233#endif
2e8e2334 5234/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5235#ifdef __cplusplus
5236extern "C"
e24bcc77 5237{
f5818d2f 5238#endif
2e8e2334 5239/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5240 builtin and then its argument prototype would still apply. */
5241char $ac_func ();
2e8e2334
UW
5242/* The GNU C library defines this for functions which it implements
5243 to always fail with ENOSYS. Some functions are actually named
5244 something starting with __ and the normal name is an alias. */
5245#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5246choke me
5247#else
e24bcc77
AJ
5248char (*f) () = $ac_func;
5249#endif
5250#ifdef __cplusplus
5251}
2e8e2334
UW
5252#endif
5253
e24bcc77
AJ
5254int
5255main ()
5256{
5257return f != $ac_func;
f5818d2f
AJ
5258 ;
5259 return 0;
5260}
5261_ACEOF
5262rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5264 (eval $ac_link) 2>&5
5265 ac_status=$?
daa2886c 5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5267 (exit $ac_status); } &&
5268 { ac_try='test -s conftest$ac_exeext'
daa2886c 5269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5270 (eval $ac_try) 2>&5
5271 ac_status=$?
daa2886c 5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5273 (exit $ac_status); }; }; then
5274 eval "$as_ac_var=yes"
5275else
5276 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5277sed 's/^/| /' conftest.$ac_ext >&5
5278
f5818d2f
AJ
5279eval "$as_ac_var=no"
5280fi
5281rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5282fi
daa2886c 5283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f5818d2f
AJ
5284echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5285if test `eval echo '${'$as_ac_var'}'` = yes; then
daa2886c 5286 cat >>confdefs.h <<_ACEOF
f5818d2f 5287#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 5288_ACEOF
f5818d2f
AJ
5289
5290else
5291
daa2886c 5292echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
f5818d2f
AJ
5293echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5294if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5296else
5297 ac_check_lib_save_LIBS=$LIBS
02e90087 5298LIBS="-lw $LIBS"
f5818d2f 5299cat >conftest.$ac_ext <<_ACEOF
daa2886c 5300#line $LINENO "configure"
e24bcc77
AJ
5301/* confdefs.h. */
5302_ACEOF
5303cat confdefs.h >>conftest.$ac_ext
5304cat >>conftest.$ac_ext <<_ACEOF
5305/* end confdefs.h. */
f5818d2f 5306
02e90087 5307/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5308#ifdef __cplusplus
5309extern "C"
5310#endif
02e90087 5311/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5312 builtin and then its argument prototype would still apply. */
5313char iswalnum ();
5314int
5315main ()
5316{
5317iswalnum ();
5318 ;
5319 return 0;
5320}
5321_ACEOF
5322rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5324 (eval $ac_link) 2>&5
5325 ac_status=$?
daa2886c 5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5327 (exit $ac_status); } &&
5328 { ac_try='test -s conftest$ac_exeext'
daa2886c 5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5330 (eval $ac_try) 2>&5
5331 ac_status=$?
daa2886c 5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5333 (exit $ac_status); }; }; then
5334 ac_cv_lib_w_iswalnum=yes
5335else
5336 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5337sed 's/^/| /' conftest.$ac_ext >&5
5338
f5818d2f
AJ
5339ac_cv_lib_w_iswalnum=no
5340fi
5341rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5342LIBS=$ac_check_lib_save_LIBS
5343fi
daa2886c 5344echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
f5818d2f
AJ
5345echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5346if test $ac_cv_lib_w_iswalnum = yes; then
daa2886c 5347 cat >>confdefs.h <<_ACEOF
f5818d2f 5348#define HAVE_LIBW 1
daa2886c 5349_ACEOF
02e90087
AJ
5350
5351 LIBS="-lw $LIBS"
5352
02e90087
AJ
5353fi
5354
2e8e2334
UW
5355fi
5356done
5357
daa2886c 5358
ea584724
PS
5359for ac_func in gethostbyname
5360do
f5818d2f 5361as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
daa2886c 5362echo "$as_me:$LINENO: checking for $ac_func" >&5
f5818d2f
AJ
5363echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5364if eval "test \"\${$as_ac_var+set}\" = set"; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366else
5367 cat >conftest.$ac_ext <<_ACEOF
daa2886c 5368#line $LINENO "configure"
e24bcc77
AJ
5369/* confdefs.h. */
5370_ACEOF
5371cat confdefs.h >>conftest.$ac_ext
5372cat >>conftest.$ac_ext <<_ACEOF
5373/* end confdefs.h. */
ea584724 5374/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
5375 which can conflict with char $ac_func (); below.
5376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5377 <limits.h> exists even on freestanding compilers. */
5378#ifdef __STDC__
5379# include <limits.h>
5380#else
5381# include <assert.h>
5382#endif
ea584724 5383/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5384#ifdef __cplusplus
5385extern "C"
e24bcc77 5386{
f5818d2f 5387#endif
ea584724 5388/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5389 builtin and then its argument prototype would still apply. */
5390char $ac_func ();
ea584724
PS
5391/* The GNU C library defines this for functions which it implements
5392 to always fail with ENOSYS. Some functions are actually named
5393 something starting with __ and the normal name is an alias. */
5394#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5395choke me
5396#else
e24bcc77
AJ
5397char (*f) () = $ac_func;
5398#endif
5399#ifdef __cplusplus
5400}
ea584724
PS
5401#endif
5402
e24bcc77
AJ
5403int
5404main ()
5405{
5406return f != $ac_func;
f5818d2f
AJ
5407 ;
5408 return 0;
5409}
5410_ACEOF
5411rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5413 (eval $ac_link) 2>&5
5414 ac_status=$?
daa2886c 5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5416 (exit $ac_status); } &&
5417 { ac_try='test -s conftest$ac_exeext'
daa2886c 5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5419 (eval $ac_try) 2>&5
5420 ac_status=$?
daa2886c 5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5422 (exit $ac_status); }; }; then
5423 eval "$as_ac_var=yes"
5424else
5425 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5426sed 's/^/| /' conftest.$ac_ext >&5
5427
f5818d2f
AJ
5428eval "$as_ac_var=no"
5429fi
5430rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5431fi
daa2886c 5432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f5818d2f
AJ
5433echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5434if test `eval echo '${'$as_ac_var'}'` = yes; then
daa2886c 5435 cat >>confdefs.h <<_ACEOF
f5818d2f 5436#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 5437_ACEOF
f5818d2f
AJ
5438
5439else
5440
daa2886c 5441echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
f5818d2f
AJ
5442echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5443if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5445else
5446 ac_check_lib_save_LIBS=$LIBS
2e8e2334 5447LIBS="-lnsl $LIBS"
f5818d2f 5448cat >conftest.$ac_ext <<_ACEOF
daa2886c 5449#line $LINENO "configure"
e24bcc77
AJ
5450/* confdefs.h. */
5451_ACEOF
5452cat confdefs.h >>conftest.$ac_ext
5453cat >>conftest.$ac_ext <<_ACEOF
5454/* end confdefs.h. */
f5818d2f 5455
ea584724 5456/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5457#ifdef __cplusplus
5458extern "C"
5459#endif
ea584724 5460/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5461 builtin and then its argument prototype would still apply. */
5462char gethostbyname ();
5463int
5464main ()
5465{
5466gethostbyname ();
5467 ;
5468 return 0;
5469}
5470_ACEOF
5471rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5473 (eval $ac_link) 2>&5
5474 ac_status=$?
daa2886c 5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5476 (exit $ac_status); } &&
5477 { ac_try='test -s conftest$ac_exeext'
daa2886c 5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5479 (eval $ac_try) 2>&5
5480 ac_status=$?
daa2886c 5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5482 (exit $ac_status); }; }; then
5483 ac_cv_lib_nsl_gethostbyname=yes
5484else
5485 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5486sed 's/^/| /' conftest.$ac_ext >&5
5487
f5818d2f
AJ
5488ac_cv_lib_nsl_gethostbyname=no
5489fi
5490rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5491LIBS=$ac_check_lib_save_LIBS
5492fi
daa2886c 5493echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
f5818d2f
AJ
5494echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5495if test $ac_cv_lib_nsl_gethostbyname = yes; then
daa2886c 5496 cat >>confdefs.h <<_ACEOF
f5818d2f 5497#define HAVE_LIBNSL 1
daa2886c 5498_ACEOF
ea584724 5499
2e8e2334
UW
5500 LIBS="-lnsl $LIBS"
5501
ea584724
PS
5502fi
5503
715a55e7 5504fi
f070fda2
MM
5505done
5506
daa2886c 5507
715a55e7
UW
5508for ac_func in connect
5509do
f5818d2f 5510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
daa2886c 5511echo "$as_me:$LINENO: checking for $ac_func" >&5
f5818d2f
AJ
5512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5513if eval "test \"\${$as_ac_var+set}\" = set"; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515else
5516 cat >conftest.$ac_ext <<_ACEOF
daa2886c 5517#line $LINENO "configure"
e24bcc77
AJ
5518/* confdefs.h. */
5519_ACEOF
5520cat confdefs.h >>conftest.$ac_ext
5521cat >>conftest.$ac_ext <<_ACEOF
5522/* end confdefs.h. */
715a55e7 5523/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
5524 which can conflict with char $ac_func (); below.
5525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5526 <limits.h> exists even on freestanding compilers. */
5527#ifdef __STDC__
5528# include <limits.h>
5529#else
5530# include <assert.h>
5531#endif
715a55e7 5532/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5533#ifdef __cplusplus
5534extern "C"
e24bcc77 5535{
f5818d2f 5536#endif
715a55e7 5537/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5538 builtin and then its argument prototype would still apply. */
5539char $ac_func ();
715a55e7
UW
5540/* The GNU C library defines this for functions which it implements
5541 to always fail with ENOSYS. Some functions are actually named
5542 something starting with __ and the normal name is an alias. */
5543#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5544choke me
5545#else
e24bcc77
AJ
5546char (*f) () = $ac_func;
5547#endif
5548#ifdef __cplusplus
5549}
715a55e7
UW
5550#endif
5551
e24bcc77
AJ
5552int
5553main ()
5554{
5555return f != $ac_func;
f5818d2f
AJ
5556 ;
5557 return 0;
5558}
5559_ACEOF
5560rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5562 (eval $ac_link) 2>&5
5563 ac_status=$?
daa2886c 5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5565 (exit $ac_status); } &&
5566 { ac_try='test -s conftest$ac_exeext'
daa2886c 5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
daa2886c 5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5571 (exit $ac_status); }; }; then
5572 eval "$as_ac_var=yes"
5573else
5574 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5575sed 's/^/| /' conftest.$ac_ext >&5
5576
f5818d2f
AJ
5577eval "$as_ac_var=no"
5578fi
5579rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5580fi
daa2886c 5581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f5818d2f
AJ
5582echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5583if test `eval echo '${'$as_ac_var'}'` = yes; then
daa2886c 5584 cat >>confdefs.h <<_ACEOF
f5818d2f 5585#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 5586_ACEOF
f5818d2f
AJ
5587
5588else
5589
daa2886c 5590echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
f5818d2f
AJ
5591echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5592if test "${ac_cv_lib_socket_connect+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594else
5595 ac_check_lib_save_LIBS=$LIBS
715a55e7 5596LIBS="-lsocket $LIBS"
f5818d2f 5597cat >conftest.$ac_ext <<_ACEOF
daa2886c 5598#line $LINENO "configure"
e24bcc77
AJ
5599/* confdefs.h. */
5600_ACEOF
5601cat confdefs.h >>conftest.$ac_ext
5602cat >>conftest.$ac_ext <<_ACEOF
5603/* end confdefs.h. */
f5818d2f 5604
715a55e7 5605/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5606#ifdef __cplusplus
5607extern "C"
5608#endif
715a55e7 5609/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5610 builtin and then its argument prototype would still apply. */
5611char connect ();
5612int
5613main ()
5614{
5615connect ();
5616 ;
5617 return 0;
5618}
5619_ACEOF
5620rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5622 (eval $ac_link) 2>&5
5623 ac_status=$?
daa2886c 5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5625 (exit $ac_status); } &&
5626 { ac_try='test -s conftest$ac_exeext'
daa2886c 5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5628 (eval $ac_try) 2>&5
5629 ac_status=$?
daa2886c 5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5631 (exit $ac_status); }; }; then
5632 ac_cv_lib_socket_connect=yes
5633else
5634 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5635sed 's/^/| /' conftest.$ac_ext >&5
5636
f5818d2f
AJ
5637ac_cv_lib_socket_connect=no
5638fi
5639rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5640LIBS=$ac_check_lib_save_LIBS
5641fi
daa2886c 5642echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
f5818d2f
AJ
5643echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5644if test $ac_cv_lib_socket_connect = yes; then
daa2886c 5645 cat >>confdefs.h <<_ACEOF
f5818d2f 5646#define HAVE_LIBSOCKET 1
daa2886c 5647_ACEOF
715a55e7
UW
5648
5649 LIBS="-lsocket $LIBS"
5650
715a55e7
UW
5651fi
5652
ea584724 5653fi
f070fda2
MM
5654done
5655
daa2886c 5656
c555274d
AJ
5657for ac_func in inet_aton
5658do
5659as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
daa2886c 5660echo "$as_me:$LINENO: checking for $ac_func" >&5
c555274d
AJ
5661echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5662if eval "test \"\${$as_ac_var+set}\" = set"; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5664else
5665 cat >conftest.$ac_ext <<_ACEOF
daa2886c 5666#line $LINENO "configure"
e24bcc77
AJ
5667/* confdefs.h. */
5668_ACEOF
5669cat confdefs.h >>conftest.$ac_ext
5670cat >>conftest.$ac_ext <<_ACEOF
5671/* end confdefs.h. */
c555274d 5672/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
5673 which can conflict with char $ac_func (); below.
5674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5675 <limits.h> exists even on freestanding compilers. */
5676#ifdef __STDC__
5677# include <limits.h>
5678#else
5679# include <assert.h>
5680#endif
c555274d
AJ
5681/* Override any gcc2 internal prototype to avoid an error. */
5682#ifdef __cplusplus
5683extern "C"
e24bcc77 5684{
c555274d
AJ
5685#endif
5686/* We use char because int might match the return type of a gcc2
5687 builtin and then its argument prototype would still apply. */
5688char $ac_func ();
c555274d
AJ
5689/* The GNU C library defines this for functions which it implements
5690 to always fail with ENOSYS. Some functions are actually named
5691 something starting with __ and the normal name is an alias. */
5692#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5693choke me
5694#else
e24bcc77
AJ
5695char (*f) () = $ac_func;
5696#endif
5697#ifdef __cplusplus
5698}
c555274d
AJ
5699#endif
5700
e24bcc77
AJ
5701int
5702main ()
5703{
5704return f != $ac_func;
c555274d
AJ
5705 ;
5706 return 0;
5707}
5708_ACEOF
5709rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c555274d
AJ
5711 (eval $ac_link) 2>&5
5712 ac_status=$?
daa2886c 5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
c555274d
AJ
5714 (exit $ac_status); } &&
5715 { ac_try='test -s conftest$ac_exeext'
daa2886c 5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
c555274d
AJ
5717 (eval $ac_try) 2>&5
5718 ac_status=$?
daa2886c 5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
c555274d
AJ
5720 (exit $ac_status); }; }; then
5721 eval "$as_ac_var=yes"
5722else
5723 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5724sed 's/^/| /' conftest.$ac_ext >&5
5725
c555274d
AJ
5726eval "$as_ac_var=no"
5727fi
5728rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5729fi
daa2886c 5730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
c555274d
AJ
5731echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5732if test `eval echo '${'$as_ac_var'}'` = yes; then
daa2886c 5733 cat >>confdefs.h <<_ACEOF
c555274d 5734#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 5735_ACEOF
c555274d
AJ
5736
5737else
5738
daa2886c 5739echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
3b943bca
FG
5740echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5741if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
f5818d2f 5742 echo $ECHO_N "(cached) $ECHO_C" >&6
d30dfd24 5743else
f5818d2f 5744 ac_check_lib_save_LIBS=$LIBS
3b943bca 5745LIBS="-lresolv $LIBS"
f5818d2f 5746cat >conftest.$ac_ext <<_ACEOF
daa2886c 5747#line $LINENO "configure"
e24bcc77
AJ
5748/* confdefs.h. */
5749_ACEOF
5750cat confdefs.h >>conftest.$ac_ext
5751cat >>conftest.$ac_ext <<_ACEOF
5752/* end confdefs.h. */
f5818d2f 5753
d30dfd24 5754/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5755#ifdef __cplusplus
5756extern "C"
5757#endif
d30dfd24 5758/* We use char because int might match the return type of a gcc2
f5818d2f 5759 builtin and then its argument prototype would still apply. */
3b943bca 5760char inet_aton ();
f5818d2f
AJ
5761int
5762main ()
5763{
3b943bca 5764inet_aton ();
f5818d2f
AJ
5765 ;
5766 return 0;
5767}
5768_ACEOF
5769rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5771 (eval $ac_link) 2>&5
5772 ac_status=$?
daa2886c 5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5774 (exit $ac_status); } &&
5775 { ac_try='test -s conftest$ac_exeext'
daa2886c 5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
daa2886c 5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 5780 (exit $ac_status); }; }; then
3b943bca
FG
5781 ac_cv_lib_resolv_inet_aton=yes
5782else
5783 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5784sed 's/^/| /' conftest.$ac_ext >&5
5785
3b943bca
FG
5786ac_cv_lib_resolv_inet_aton=no
5787fi
5788rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5789LIBS=$ac_check_lib_save_LIBS
5790fi
daa2886c 5791echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
3b943bca
FG
5792echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5793if test $ac_cv_lib_resolv_inet_aton = yes; then
daa2886c 5794 cat >>confdefs.h <<_ACEOF
3b943bca 5795#define HAVE_LIBRESOLV 1
daa2886c 5796_ACEOF
3b943bca
FG
5797
5798 LIBS="-lresolv $LIBS"
5799
5800fi
5801
c555274d
AJ
5802fi
5803done
5804
daa2886c
AJ
5805
5806echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
3b943bca
FG
5807echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5808if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810else
5811 ac_check_lib_save_LIBS=$LIBS
5812LIBS="-lxpg4 $LIBS"
5813cat >conftest.$ac_ext <<_ACEOF
daa2886c 5814#line $LINENO "configure"
e24bcc77
AJ
5815/* confdefs.h. */
5816_ACEOF
5817cat confdefs.h >>conftest.$ac_ext
5818cat >>conftest.$ac_ext <<_ACEOF
5819/* end confdefs.h. */
3b943bca
FG
5820
5821/* Override any gcc2 internal prototype to avoid an error. */
5822#ifdef __cplusplus
5823extern "C"
5824#endif
5825/* We use char because int might match the return type of a gcc2
5826 builtin and then its argument prototype would still apply. */
5827char _xpg4_setrunelocale ();
5828int
5829main ()
5830{
5831_xpg4_setrunelocale ();
5832 ;
5833 return 0;
5834}
5835_ACEOF
5836rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3b943bca
FG
5838 (eval $ac_link) 2>&5
5839 ac_status=$?
daa2886c 5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3b943bca
FG
5841 (exit $ac_status); } &&
5842 { ac_try='test -s conftest$ac_exeext'
daa2886c 5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3b943bca
FG
5844 (eval $ac_try) 2>&5
5845 ac_status=$?
daa2886c 5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3b943bca 5847 (exit $ac_status); }; }; then
f5818d2f
AJ
5848 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5849else
5850 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5851sed 's/^/| /' conftest.$ac_ext >&5
5852
f5818d2f
AJ
5853ac_cv_lib_xpg4__xpg4_setrunelocale=no
5854fi
5855rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5856LIBS=$ac_check_lib_save_LIBS
5857fi
daa2886c 5858echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
f5818d2f
AJ
5859echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5860if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
daa2886c 5861 cat >>confdefs.h <<_ACEOF
f5818d2f 5862#define HAVE_LIBXPG4 1
daa2886c 5863_ACEOF
d30dfd24
AJ
5864
5865 LIBS="-lxpg4 $LIBS"
5866
d30dfd24
AJ
5867fi
5868
daa2886c
AJ
5869
5870echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
f5818d2f
AJ
5871echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5872if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
0e7bd08c 5874else
f5818d2f 5875 ac_check_lib_save_LIBS=$LIBS
0e7bd08c 5876LIBS="-lmmap $LIBS"
f5818d2f 5877cat >conftest.$ac_ext <<_ACEOF
daa2886c 5878#line $LINENO "configure"
e24bcc77
AJ
5879/* confdefs.h. */
5880_ACEOF
5881cat confdefs.h >>conftest.$ac_ext
5882cat >>conftest.$ac_ext <<_ACEOF
5883/* end confdefs.h. */
f5818d2f 5884
0e7bd08c 5885/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5886#ifdef __cplusplus
5887extern "C"
5888#endif
0e7bd08c 5889/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5890 builtin and then its argument prototype would still apply. */
5891char mmap ();
5892int
5893main ()
5894{
5895mmap ();
5896 ;
5897 return 0;
5898}
5899_ACEOF
5900rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5902 (eval $ac_link) 2>&5
5903 ac_status=$?
daa2886c 5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5905 (exit $ac_status); } &&
5906 { ac_try='test -s conftest$ac_exeext'
daa2886c 5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5908 (eval $ac_try) 2>&5
5909 ac_status=$?
daa2886c 5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5911 (exit $ac_status); }; }; then
5912 ac_cv_lib_mmap_mmap=yes
5913else
5914 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5915sed 's/^/| /' conftest.$ac_ext >&5
5916
f5818d2f
AJ
5917ac_cv_lib_mmap_mmap=no
5918fi
5919rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5920LIBS=$ac_check_lib_save_LIBS
5921fi
daa2886c 5922echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
f5818d2f
AJ
5923echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5924if test $ac_cv_lib_mmap_mmap = yes; then
daa2886c 5925 cat >>confdefs.h <<_ACEOF
f5818d2f 5926#define HAVE_LIBMMAP 1
daa2886c 5927_ACEOF
0e7bd08c
AJ
5928
5929 LIBS="-lmmap $LIBS"
5930
0e7bd08c
AJ
5931fi
5932
daa2886c 5933
fa3a5360 5934JPEGLIB=""
562089b5 5935
11af04e3
AJ
5936echo "$as_me:$LINENO: checking for egrep" >&5
5937echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5938if test "${ac_cv_prog_egrep+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5940else
5941 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5942 then ac_cv_prog_egrep='grep -E'
5943 else ac_cv_prog_egrep='egrep'
5944 fi
5945fi
5946echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5947echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5948 EGREP=$ac_cv_prog_egrep
5949
5950
daa2886c
AJ
5951echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5952echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5953if test "${ac_cv_header_stdc+set}" = set; then
f5818d2f
AJ
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5955else
5956 cat >conftest.$ac_ext <<_ACEOF
daa2886c 5957#line $LINENO "configure"
e24bcc77
AJ
5958/* confdefs.h. */
5959_ACEOF
5960cat confdefs.h >>conftest.$ac_ext
5961cat >>conftest.$ac_ext <<_ACEOF
5962/* end confdefs.h. */
daa2886c
AJ
5963#include <stdlib.h>
5964#include <stdarg.h>
5965#include <string.h>
5966#include <float.h>
5967
e24bcc77
AJ
5968int
5969main ()
5970{
5971
5972 ;
5973 return 0;
5974}
f5818d2f 5975_ACEOF
e24bcc77
AJ
5976rm -f conftest.$ac_objext
5977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5978 (eval $ac_compile) 2>&5
f5818d2f 5979 ac_status=$?
daa2886c 5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
e24bcc77
AJ
5981 (exit $ac_status); } &&
5982 { ac_try='test -s conftest.$ac_objext'
5983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 (eval $ac_try) 2>&5
5985 ac_status=$?
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; }; then
daa2886c 5988 ac_cv_header_stdc=yes
f5818d2f
AJ
5989else
5990 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5991sed 's/^/| /' conftest.$ac_ext >&5
5992
5993ac_cv_header_stdc=no
f070fda2 5994fi
e24bcc77 5995rm -f conftest.$ac_objext conftest.$ac_ext
f5818d2f 5996
daa2886c
AJ
5997if test $ac_cv_header_stdc = yes; then
5998 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
f5818d2f 5999 cat >conftest.$ac_ext <<_ACEOF
daa2886c 6000#line $LINENO "configure"
e24bcc77
AJ
6001/* confdefs.h. */
6002_ACEOF
6003cat confdefs.h >>conftest.$ac_ext
6004cat >>conftest.$ac_ext <<_ACEOF
6005/* end confdefs.h. */
daa2886c 6006#include <string.h>
f070fda2 6007
f5818d2f 6008_ACEOF
daa2886c 6009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 6010 $EGREP "memchr" >/dev/null 2>&1; then
daa2886c 6011 :
f5818d2f 6012else
daa2886c 6013 ac_cv_header_stdc=no
f5818d2f 6014fi
daa2886c
AJ
6015rm -f conftest*
6016
f5818d2f 6017fi
f5818d2f 6018
daa2886c
AJ
6019if test $ac_cv_header_stdc = yes; then
6020 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6021 cat >conftest.$ac_ext <<_ACEOF
6022#line $LINENO "configure"
e24bcc77
AJ
6023/* confdefs.h. */
6024_ACEOF
6025cat confdefs.h >>conftest.$ac_ext
6026cat >>conftest.$ac_ext <<_ACEOF
6027/* end confdefs.h. */
daa2886c 6028#include <stdlib.h>
f5818d2f 6029
daa2886c
AJ
6030_ACEOF
6031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 6032 $EGREP "free" >/dev/null 2>&1; then
daa2886c
AJ
6033 :
6034else
6035 ac_cv_header_stdc=no
6036fi
6037rm -f conftest*
6038
6039fi
6040
6041if test $ac_cv_header_stdc = yes; then
6042 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6043 if test "$cross_compiling" = yes; then
6044 :
6045else
6046 cat >conftest.$ac_ext <<_ACEOF
6047#line $LINENO "configure"
e24bcc77
AJ
6048/* confdefs.h. */
6049_ACEOF
6050cat confdefs.h >>conftest.$ac_ext
6051cat >>conftest.$ac_ext <<_ACEOF
6052/* end confdefs.h. */
daa2886c
AJ
6053#include <ctype.h>
6054#if ((' ' & 0x0FF) == 0x020)
6055# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6056# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6057#else
e24bcc77
AJ
6058# define ISLOWER(c) \
6059 (('a' <= (c) && (c) <= 'i') \
daa2886c
AJ
6060 || ('j' <= (c) && (c) <= 'r') \
6061 || ('s' <= (c) && (c) <= 'z'))
6062# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6063#endif
6064
6065#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6066int
6067main ()
6068{
6069 int i;
6070 for (i = 0; i < 256; i++)
6071 if (XOR (islower (i), ISLOWER (i))
6072 || toupper (i) != TOUPPER (i))
6073 exit(2);
6074 exit (0);
6075}
6076_ACEOF
6077rm -f conftest$ac_exeext
6078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6079 (eval $ac_link) 2>&5
6080 ac_status=$?
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 (eval $ac_try) 2>&5
6085 ac_status=$?
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; }; then
6088 :
6089else
6090 echo "$as_me: program exited with status $ac_status" >&5
6091echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6092sed 's/^/| /' conftest.$ac_ext >&5
6093
daa2886c
AJ
6094( exit $ac_status )
6095ac_cv_header_stdc=no
6096fi
11af04e3 6097rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
daa2886c
AJ
6098fi
6099fi
6100fi
6101echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6102echo "${ECHO_T}$ac_cv_header_stdc" >&6
6103if test $ac_cv_header_stdc = yes; then
6104
6105cat >>confdefs.h <<\_ACEOF
6106#define STDC_HEADERS 1
6107_ACEOF
6108
6109fi
6110
6111# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6122 inttypes.h stdint.h unistd.h
6123do
6124as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6125echo "$as_me:$LINENO: checking for $ac_header" >&5
6126echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6127if eval "test \"\${$as_ac_Header+set}\" = set"; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6129else
6130 cat >conftest.$ac_ext <<_ACEOF
6131#line $LINENO "configure"
e24bcc77
AJ
6132/* confdefs.h. */
6133_ACEOF
6134cat confdefs.h >>conftest.$ac_ext
6135cat >>conftest.$ac_ext <<_ACEOF
6136/* end confdefs.h. */
daa2886c
AJ
6137$ac_includes_default
6138
6139#include <$ac_header>
6140_ACEOF
6141rm -f conftest.$ac_objext
6142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6143 (eval $ac_compile) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } &&
6147 { ac_try='test -s conftest.$ac_objext'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6153 eval "$as_ac_Header=yes"
6154else
6155 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6156sed 's/^/| /' conftest.$ac_ext >&5
6157
daa2886c
AJ
6158eval "$as_ac_Header=no"
6159fi
6160rm -f conftest.$ac_objext conftest.$ac_ext
6161fi
6162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6163echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6164if test `eval echo '${'$as_ac_Header'}'` = yes; then
6165 cat >>confdefs.h <<_ACEOF
6166#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6167_ACEOF
6168
6169fi
6170
6171done
6172
6173
6174
f5818d2f 6175for ac_header in jpeglib.h
252b0fe0 6176do
f5818d2f 6177as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c
AJ
6178if eval "test \"\${$as_ac_Header+set}\" = set"; then
6179 echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
6180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6181if eval "test \"\${$as_ac_Header+set}\" = set"; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c
AJ
6183fi
6184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6185echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f5818d2f 6186else
daa2886c
AJ
6187 # Is the header compilable?
6188echo "$as_me:$LINENO: checking $ac_header usability" >&5
6189echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6190cat >conftest.$ac_ext <<_ACEOF
6191#line $LINENO "configure"
e24bcc77
AJ
6192/* confdefs.h. */
6193_ACEOF
6194cat confdefs.h >>conftest.$ac_ext
6195cat >>conftest.$ac_ext <<_ACEOF
6196/* end confdefs.h. */
daa2886c
AJ
6197$ac_includes_default
6198#include <$ac_header>
6199_ACEOF
6200rm -f conftest.$ac_objext
6201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6202 (eval $ac_compile) 2>&5
6203 ac_status=$?
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } &&
6206 { ac_try='test -s conftest.$ac_objext'
6207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 (eval $ac_try) 2>&5
6209 ac_status=$?
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }; }; then
6212 ac_header_compiler=yes
6213else
6214 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6215sed 's/^/| /' conftest.$ac_ext >&5
6216
daa2886c
AJ
6217ac_header_compiler=no
6218fi
6219rm -f conftest.$ac_objext conftest.$ac_ext
6220echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6221echo "${ECHO_T}$ac_header_compiler" >&6
6222
6223# Is the header present?
6224echo "$as_me:$LINENO: checking $ac_header presence" >&5
6225echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6226cat >conftest.$ac_ext <<_ACEOF
6227#line $LINENO "configure"
e24bcc77
AJ
6228/* confdefs.h. */
6229_ACEOF
6230cat confdefs.h >>conftest.$ac_ext
6231cat >>conftest.$ac_ext <<_ACEOF
6232/* end confdefs.h. */
f5818d2f
AJ
6233#include <$ac_header>
6234_ACEOF
daa2886c 6235if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
6236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6237 ac_status=$?
11af04e3 6238 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
6239 rm -f conftest.er1
6240 cat conftest.err >&5
daa2886c 6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6242 (exit $ac_status); } >/dev/null; then
6243 if test -s conftest.err; then
6244 ac_cpp_err=$ac_c_preproc_warn_flag
6245 else
6246 ac_cpp_err=
6247 fi
6248else
6249 ac_cpp_err=yes
6250fi
6251if test -z "$ac_cpp_err"; then
daa2886c 6252 ac_header_preproc=yes
f5818d2f
AJ
6253else
6254 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6255sed 's/^/| /' conftest.$ac_ext >&5
6256
daa2886c 6257 ac_header_preproc=no
252b0fe0 6258fi
f5818d2f 6259rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
6260echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6261echo "${ECHO_T}$ac_header_preproc" >&6
6262
6263# So? What about this header?
6264case $ac_header_compiler:$ac_header_preproc in
6265 yes:no )
6266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6267echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
6269echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6270 (
6271 cat <<\_ASBOX
6272## ------------------------------------ ##
6273## Report this to bug-autoconf@gnu.org. ##
6274## ------------------------------------ ##
6275_ASBOX
6276 ) |
6277 sed "s/^/$as_me: WARNING: /" >&2
6278 ;;
daa2886c
AJ
6279 no:yes )
6280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6281echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6283echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
6285echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6286 (
6287 cat <<\_ASBOX
6288## ------------------------------------ ##
6289## Report this to bug-autoconf@gnu.org. ##
6290## ------------------------------------ ##
6291_ASBOX
6292 ) |
6293 sed "s/^/$as_me: WARNING: /" >&2
6294 ;;
daa2886c
AJ
6295esac
6296echo "$as_me:$LINENO: checking for $ac_header" >&5
6297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6298if eval "test \"\${$as_ac_Header+set}\" = set"; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6300else
6301 eval "$as_ac_Header=$ac_header_preproc"
252b0fe0 6302fi
daa2886c 6303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 6304echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
6305
6306fi
f5818d2f 6307if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 6308 cat >>confdefs.h <<_ACEOF
f5818d2f 6309#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
6310_ACEOF
6311 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
f5818d2f
AJ
6312echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6313if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
252b0fe0 6315else
f5818d2f 6316 ac_check_lib_save_LIBS=$LIBS
252b0fe0 6317LIBS="-ljpeg $LIBS"
f5818d2f 6318cat >conftest.$ac_ext <<_ACEOF
daa2886c 6319#line $LINENO "configure"
e24bcc77
AJ
6320/* confdefs.h. */
6321_ACEOF
6322cat confdefs.h >>conftest.$ac_ext
6323cat >>conftest.$ac_ext <<_ACEOF
6324/* end confdefs.h. */
f5818d2f 6325
252b0fe0 6326/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
6327#ifdef __cplusplus
6328extern "C"
6329#endif
252b0fe0 6330/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
6331 builtin and then its argument prototype would still apply. */
6332char jpeg_start_decompress ();
6333int
6334main ()
6335{
6336jpeg_start_decompress ();
6337 ;
6338 return 0;
6339}
6340_ACEOF
6341rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 6342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
6343 (eval $ac_link) 2>&5
6344 ac_status=$?
daa2886c 6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6346 (exit $ac_status); } &&
6347 { ac_try='test -s conftest$ac_exeext'
daa2886c 6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
6349 (eval $ac_try) 2>&5
6350 ac_status=$?
daa2886c 6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6352 (exit $ac_status); }; }; then
6353 ac_cv_lib_jpeg_jpeg_start_decompress=yes
6354else
6355 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6356sed 's/^/| /' conftest.$ac_ext >&5
6357
f5818d2f
AJ
6358ac_cv_lib_jpeg_jpeg_start_decompress=no
6359fi
6360rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6361LIBS=$ac_check_lib_save_LIBS
6362fi
daa2886c 6363echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
f5818d2f
AJ
6364echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6365if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
6366
daa2886c 6367cat >>confdefs.h <<\_ACEOF
252b0fe0 6368#define HAVE_LIBJPEG 1
daa2886c 6369_ACEOF
252b0fe0
MM
6370
6371 JPEGLIB="-ljpeg"
252b0fe0 6372
f5818d2f 6373fi
252b0fe0 6374
daa2886c 6375
252b0fe0 6376fi
daa2886c 6377
252b0fe0
MM
6378done
6379
daa2886c 6380
728bedcf
MM
6381GIFLIB=""
6382
6383
6384for ac_header in gif_lib.h
6385do
6386as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6387if eval "test \"\${$as_ac_Header+set}\" = set"; then
6388 echo "$as_me:$LINENO: checking for $ac_header" >&5
6389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6390if eval "test \"\${$as_ac_Header+set}\" = set"; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6392fi
6393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6395else
6396 # Is the header compilable?
6397echo "$as_me:$LINENO: checking $ac_header usability" >&5
6398echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6399cat >conftest.$ac_ext <<_ACEOF
6400#line $LINENO "configure"
6401/* confdefs.h. */
6402_ACEOF
6403cat confdefs.h >>conftest.$ac_ext
6404cat >>conftest.$ac_ext <<_ACEOF
6405/* end confdefs.h. */
6406$ac_includes_default
6407#include <$ac_header>
6408_ACEOF
6409rm -f conftest.$ac_objext
6410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411 (eval $ac_compile) 2>&5
6412 ac_status=$?
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } &&
6415 { ac_try='test -s conftest.$ac_objext'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 (eval $ac_try) 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6421 ac_header_compiler=yes
6422else
6423 echo "$as_me: failed program was:" >&5
6424sed 's/^/| /' conftest.$ac_ext >&5
6425
6426ac_header_compiler=no
6427fi
6428rm -f conftest.$ac_objext conftest.$ac_ext
6429echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6430echo "${ECHO_T}$ac_header_compiler" >&6
6431
6432# Is the header present?
6433echo "$as_me:$LINENO: checking $ac_header presence" >&5
6434echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6435cat >conftest.$ac_ext <<_ACEOF
6436#line $LINENO "configure"
6437/* confdefs.h. */
6438_ACEOF
6439cat confdefs.h >>conftest.$ac_ext
6440cat >>conftest.$ac_ext <<_ACEOF
6441/* end confdefs.h. */
6442#include <$ac_header>
6443_ACEOF
6444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6446 ac_status=$?
6447 grep -v '^ *+' conftest.er1 >conftest.err
6448 rm -f conftest.er1
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } >/dev/null; then
6452 if test -s conftest.err; then
6453 ac_cpp_err=$ac_c_preproc_warn_flag
6454 else
6455 ac_cpp_err=
6456 fi
6457else
6458 ac_cpp_err=yes
6459fi
6460if test -z "$ac_cpp_err"; then
6461 ac_header_preproc=yes
6462else
6463 echo "$as_me: failed program was:" >&5
6464sed 's/^/| /' conftest.$ac_ext >&5
6465
6466 ac_header_preproc=no
6467fi
6468rm -f conftest.err conftest.$ac_ext
6469echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6470echo "${ECHO_T}$ac_header_preproc" >&6
6471
6472# So? What about this header?
6473case $ac_header_compiler:$ac_header_preproc in
6474 yes:no )
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6476echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6478echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6479 (
6480 cat <<\_ASBOX
6481## ------------------------------------ ##
6482## Report this to bug-autoconf@gnu.org. ##
6483## ------------------------------------ ##
6484_ASBOX
6485 ) |
6486 sed "s/^/$as_me: WARNING: /" >&2
6487 ;;
6488 no:yes )
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6492echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6494echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6495 (
6496 cat <<\_ASBOX
6497## ------------------------------------ ##
6498## Report this to bug-autoconf@gnu.org. ##
6499## ------------------------------------ ##
6500_ASBOX
6501 ) |
6502 sed "s/^/$as_me: WARNING: /" >&2
6503 ;;
6504esac
6505echo "$as_me:$LINENO: checking for $ac_header" >&5
6506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6507if eval "test \"\${$as_ac_Header+set}\" = set"; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6509else
6510 eval "$as_ac_Header=$ac_header_preproc"
6511fi
6512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6514
6515fi
6516if test `eval echo '${'$as_ac_Header'}'` = yes; then
6517 cat >>confdefs.h <<_ACEOF
6518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6519_ACEOF
6520 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
6521echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
6522if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6524else
6525 ac_check_lib_save_LIBS=$LIBS
6526LIBS="-lungif $LIBS"
6527cat >conftest.$ac_ext <<_ACEOF
6528#line $LINENO "configure"
6529/* confdefs.h. */
6530_ACEOF
6531cat confdefs.h >>conftest.$ac_ext
6532cat >>conftest.$ac_ext <<_ACEOF
6533/* end confdefs.h. */
6534
6535/* Override any gcc2 internal prototype to avoid an error. */
6536#ifdef __cplusplus
6537extern "C"
6538#endif
6539/* We use char because int might match the return type of a gcc2
6540 builtin and then its argument prototype would still apply. */
6541char DGifOpen ();
6542int
6543main ()
6544{
6545DGifOpen ();
6546 ;
6547 return 0;
6548}
6549_ACEOF
6550rm -f conftest.$ac_objext conftest$ac_exeext
6551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6552 (eval $ac_link) 2>&5
6553 ac_status=$?
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } &&
6556 { ac_try='test -s conftest$ac_exeext'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 (eval $ac_try) 2>&5
6559 ac_status=$?
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
6562 ac_cv_lib_ungif_DGifOpen=yes
6563else
6564 echo "$as_me: failed program was:" >&5
6565sed 's/^/| /' conftest.$ac_ext >&5
6566
6567ac_cv_lib_ungif_DGifOpen=no
6568fi
6569rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6570LIBS=$ac_check_lib_save_LIBS
6571fi
6572echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
6573echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
6574if test $ac_cv_lib_ungif_DGifOpen = yes; then
6575
6576cat >>confdefs.h <<\_ACEOF
6577#define HAVE_LIBGIF 1
6578_ACEOF
6579
6580 GIFLIB="-lungif"
6581else
6582 echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
6583echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
6584if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586else
6587 ac_check_lib_save_LIBS=$LIBS
6588LIBS="-lgif $LIBS"
6589cat >conftest.$ac_ext <<_ACEOF
6590#line $LINENO "configure"
6591/* confdefs.h. */
6592_ACEOF
6593cat confdefs.h >>conftest.$ac_ext
6594cat >>conftest.$ac_ext <<_ACEOF
6595/* end confdefs.h. */
6596
6597/* Override any gcc2 internal prototype to avoid an error. */
6598#ifdef __cplusplus
6599extern "C"
6600#endif
6601/* We use char because int might match the return type of a gcc2
6602 builtin and then its argument prototype would still apply. */
6603char DGifOpen ();
6604int
6605main ()
6606{
6607DGifOpen ();
6608 ;
6609 return 0;
6610}
6611_ACEOF
6612rm -f conftest.$ac_objext conftest$ac_exeext
6613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6614 (eval $ac_link) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } &&
6618 { ac_try='test -s conftest$ac_exeext'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 (eval $ac_try) 2>&5
6621 ac_status=$?
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; }; then
6624 ac_cv_lib_gif_DGifOpen=yes
6625else
6626 echo "$as_me: failed program was:" >&5
6627sed 's/^/| /' conftest.$ac_ext >&5
6628
6629ac_cv_lib_gif_DGifOpen=no
6630fi
6631rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6632LIBS=$ac_check_lib_save_LIBS
6633fi
6634echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
6635echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
6636if test $ac_cv_lib_gif_DGifOpen = yes; then
6637 cat >>confdefs.h <<\_ACEOF
6638#define HAVE_LIBGIF 1
6639_ACEOF
6640
6641 GIFLIB="-lgif"
6642fi
6643
6644fi
6645
6646fi
6647
6648done
6649
6650
daa2886c
AJ
6651
6652
6653
2941a212 6654XFILES=""
10ad97c8 6655
bedf40b5
LU
6656OPENGLFILES=""
6657
b63ab445 6658GLU32FILES=""
56ab2b3e
LU
6659
6660OPENGL_LIBS=""
ea584724
PS
6661if test "$have_x" = "yes"
6662then
24110288 6663 XLIB="-lXext -lX11"
1eb593cb
OK
6664 ac_save_CPPFLAGS="$CPPFLAGS"
6665 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
24110288 6666
daa2886c 6667
f5818d2f 6668for ac_header in X11/Xlib.h
24110288 6669do
f5818d2f 6670as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c
AJ
6671if eval "test \"\${$as_ac_Header+set}\" = set"; then
6672 echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
6673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6674if eval "test \"\${$as_ac_Header+set}\" = set"; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c
AJ
6676fi
6677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6678echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f5818d2f 6679else
daa2886c
AJ
6680 # Is the header compilable?
6681echo "$as_me:$LINENO: checking $ac_header usability" >&5
6682echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6683cat >conftest.$ac_ext <<_ACEOF
6684#line $LINENO "configure"
e24bcc77
AJ
6685/* confdefs.h. */
6686_ACEOF
6687cat confdefs.h >>conftest.$ac_ext
6688cat >>conftest.$ac_ext <<_ACEOF
6689/* end confdefs.h. */
daa2886c 6690$ac_includes_default
f5818d2f
AJ
6691#include <$ac_header>
6692_ACEOF
daa2886c
AJ
6693rm -f conftest.$ac_objext
6694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6695 (eval $ac_compile) 2>&5
6696 ac_status=$?
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); } &&
6699 { ac_try='test -s conftest.$ac_objext'
6700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 (eval $ac_try) 2>&5
6702 ac_status=$?
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; }; then
6705 ac_header_compiler=yes
6706else
6707 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6708sed 's/^/| /' conftest.$ac_ext >&5
6709
daa2886c
AJ
6710ac_header_compiler=no
6711fi
6712rm -f conftest.$ac_objext conftest.$ac_ext
6713echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6714echo "${ECHO_T}$ac_header_compiler" >&6
6715
6716# Is the header present?
6717echo "$as_me:$LINENO: checking $ac_header presence" >&5
6718echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6719cat >conftest.$ac_ext <<_ACEOF
6720#line $LINENO "configure"
e24bcc77
AJ
6721/* confdefs.h. */
6722_ACEOF
6723cat confdefs.h >>conftest.$ac_ext
6724cat >>conftest.$ac_ext <<_ACEOF
6725/* end confdefs.h. */
daa2886c
AJ
6726#include <$ac_header>
6727_ACEOF
6728if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
6729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6730 ac_status=$?
11af04e3 6731 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
6732 rm -f conftest.er1
6733 cat conftest.err >&5
daa2886c 6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6735 (exit $ac_status); } >/dev/null; then
6736 if test -s conftest.err; then
6737 ac_cpp_err=$ac_c_preproc_warn_flag
6738 else
6739 ac_cpp_err=
6740 fi
6741else
6742 ac_cpp_err=yes
6743fi
6744if test -z "$ac_cpp_err"; then
daa2886c 6745 ac_header_preproc=yes
f5818d2f
AJ
6746else
6747 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6748sed 's/^/| /' conftest.$ac_ext >&5
6749
daa2886c 6750 ac_header_preproc=no
24110288 6751fi
f5818d2f 6752rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
6753echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6754echo "${ECHO_T}$ac_header_preproc" >&6
6755
6756# So? What about this header?
6757case $ac_header_compiler:$ac_header_preproc in
6758 yes:no )
6759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6760echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
6762echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6763 (
6764 cat <<\_ASBOX
6765## ------------------------------------ ##
6766## Report this to bug-autoconf@gnu.org. ##
6767## ------------------------------------ ##
6768_ASBOX
6769 ) |
6770 sed "s/^/$as_me: WARNING: /" >&2
6771 ;;
daa2886c
AJ
6772 no:yes )
6773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6774echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6776echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
6778echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6779 (
6780 cat <<\_ASBOX
6781## ------------------------------------ ##
6782## Report this to bug-autoconf@gnu.org. ##
6783## ------------------------------------ ##
6784_ASBOX
6785 ) |
6786 sed "s/^/$as_me: WARNING: /" >&2
6787 ;;
daa2886c
AJ
6788esac
6789echo "$as_me:$LINENO: checking for $ac_header" >&5
6790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6791if eval "test \"\${$as_ac_Header+set}\" = set"; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6793else
6794 eval "$as_ac_Header=$ac_header_preproc"
24110288 6795fi
daa2886c 6796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 6797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
6798
6799fi
f5818d2f 6800if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 6801 cat >>confdefs.h <<_ACEOF
f5818d2f 6802#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
6803_ACEOF
6804
f5818d2f
AJ
6805
6806for ac_header in X11/XKBlib.h
f2b77ccb 6807do
f5818d2f 6808as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
044b5c41 6809echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
6810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6811if eval "test \"\${$as_ac_Header+set}\" = set"; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6813else
044b5c41 6814 cat >conftest.$ac_ext <<_ACEOF
daa2886c 6815#line $LINENO "configure"
e24bcc77
AJ
6816/* confdefs.h. */
6817_ACEOF
6818cat confdefs.h >>conftest.$ac_ext
6819cat >>conftest.$ac_ext <<_ACEOF
6820/* end confdefs.h. */
044b5c41
GM
6821#include <X11/Xlib.h>
6822
daa2886c
AJ
6823#include <$ac_header>
6824_ACEOF
6825rm -f conftest.$ac_objext
6826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6827 (eval $ac_compile) 2>&5
6828 ac_status=$?
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } &&
6831 { ac_try='test -s conftest.$ac_objext'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 (eval $ac_try) 2>&5
6834 ac_status=$?
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; }; then
044b5c41 6837 eval "$as_ac_Header=yes"
daa2886c
AJ
6838else
6839 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6840sed 's/^/| /' conftest.$ac_ext >&5
6841
044b5c41 6842eval "$as_ac_Header=no"
daa2886c
AJ
6843fi
6844rm -f conftest.$ac_objext conftest.$ac_ext
f2b77ccb 6845fi
daa2886c 6846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f
AJ
6847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6848if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 6849 cat >>confdefs.h <<_ACEOF
f5818d2f 6850#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
6851_ACEOF
6852 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
f5818d2f
AJ
6853echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6854if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
c90fb25c 6856else
f5818d2f 6857 ac_check_lib_save_LIBS=$LIBS
c90fb25c 6858LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
f5818d2f 6859cat >conftest.$ac_ext <<_ACEOF
daa2886c 6860#line $LINENO "configure"
e24bcc77
AJ
6861/* confdefs.h. */
6862_ACEOF
6863cat confdefs.h >>conftest.$ac_ext
6864cat >>conftest.$ac_ext <<_ACEOF
6865/* end confdefs.h. */
f5818d2f 6866
c90fb25c 6867/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
6868#ifdef __cplusplus
6869extern "C"
6870#endif
c90fb25c 6871/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
6872 builtin and then its argument prototype would still apply. */
6873char XkbQueryExtension ();
6874int
6875main ()
6876{
6877XkbQueryExtension ();
6878 ;
6879 return 0;
6880}
6881_ACEOF
6882rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 6883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
6884 (eval $ac_link) 2>&5
6885 ac_status=$?
daa2886c 6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6887 (exit $ac_status); } &&
6888 { ac_try='test -s conftest$ac_exeext'
daa2886c 6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
6890 (eval $ac_try) 2>&5
6891 ac_status=$?
daa2886c 6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6893 (exit $ac_status); }; }; then
6894 ac_cv_lib_X11_XkbQueryExtension=yes
6895else
6896 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6897sed 's/^/| /' conftest.$ac_ext >&5
6898
f5818d2f
AJ
6899ac_cv_lib_X11_XkbQueryExtension=no
6900fi
6901rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6902LIBS=$ac_check_lib_save_LIBS
6903fi
daa2886c 6904echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
f5818d2f
AJ
6905echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6906if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6907
daa2886c 6908cat >>confdefs.h <<\_ACEOF
c90fb25c 6909#define HAVE_XKB 1
daa2886c 6910_ACEOF
c90fb25c 6911
c90fb25c
OK
6912fi
6913
daa2886c 6914
c90fb25c 6915else
daa2886c 6916 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
f5818d2f 6917echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
c90fb25c 6918fi
daa2886c 6919
c90fb25c
OK
6920done
6921
daa2886c
AJ
6922
6923
f5818d2f 6924for ac_header in X11/extensions/XShm.h
c90fb25c 6925do
f5818d2f 6926as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c 6927echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
6928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6929if eval "test \"\${$as_ac_Header+set}\" = set"; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931else
6932 cat >conftest.$ac_ext <<_ACEOF
daa2886c 6933#line $LINENO "configure"
e24bcc77
AJ
6934/* confdefs.h. */
6935_ACEOF
6936cat confdefs.h >>conftest.$ac_ext
6937cat >>conftest.$ac_ext <<_ACEOF
6938/* end confdefs.h. */
daa2886c
AJ
6939#include <X11/Xlib.h>
6940
f5818d2f
AJ
6941#include <$ac_header>
6942_ACEOF
daa2886c
AJ
6943rm -f conftest.$ac_objext
6944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6945 (eval $ac_compile) 2>&5
f5818d2f 6946 ac_status=$?
daa2886c
AJ
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } &&
6949 { ac_try='test -s conftest.$ac_objext'
6950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 (eval $ac_try) 2>&5
6952 ac_status=$?
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); }; }; then
f5818d2f
AJ
6955 eval "$as_ac_Header=yes"
6956else
6957 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6958sed 's/^/| /' conftest.$ac_ext >&5
6959
daa2886c 6960eval "$as_ac_Header=no"
c90fb25c 6961fi
daa2886c 6962rm -f conftest.$ac_objext conftest.$ac_ext
c90fb25c 6963fi
daa2886c 6964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f
AJ
6965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6966if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 6967 cat >>confdefs.h <<_ACEOF
f5818d2f 6968#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
6969_ACEOF
6970 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
f5818d2f
AJ
6971echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6972if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
ea584724 6974else
f5818d2f 6975 ac_check_lib_save_LIBS=$LIBS
376ec88e 6976LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
f5818d2f 6977cat >conftest.$ac_ext <<_ACEOF
daa2886c 6978#line $LINENO "configure"
e24bcc77
AJ
6979/* confdefs.h. */
6980_ACEOF
6981cat confdefs.h >>conftest.$ac_ext
6982cat >>conftest.$ac_ext <<_ACEOF
6983/* end confdefs.h. */
f5818d2f 6984
ea584724 6985/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
6986#ifdef __cplusplus
6987extern "C"
6988#endif
ea584724 6989/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
6990 builtin and then its argument prototype would still apply. */
6991char XShmQueryExtension ();
6992int
6993main ()
6994{
6995XShmQueryExtension ();
6996 ;
6997 return 0;
6998}
6999_ACEOF
7000rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7002 (eval $ac_link) 2>&5
7003 ac_status=$?
daa2886c 7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7005 (exit $ac_status); } &&
7006 { ac_try='test -s conftest$ac_exeext'
daa2886c 7007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7008 (eval $ac_try) 2>&5
7009 ac_status=$?
daa2886c 7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7011 (exit $ac_status); }; }; then
7012 ac_cv_lib_Xext_XShmQueryExtension=yes
7013else
7014 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7015sed 's/^/| /' conftest.$ac_ext >&5
7016
f5818d2f
AJ
7017ac_cv_lib_Xext_XShmQueryExtension=no
7018fi
7019rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7020LIBS=$ac_check_lib_save_LIBS
7021fi
daa2886c 7022echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
f5818d2f
AJ
7023echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7024if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7025
daa2886c 7026cat >>confdefs.h <<\_ACEOF
ea584724 7027#define HAVE_LIBXXSHM 1
daa2886c 7028_ACEOF
ea584724 7029
ea584724
PS
7030fi
7031
daa2886c 7032
f2b77ccb 7033else
daa2886c 7034 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
f5818d2f 7035echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
f2b77ccb 7036fi
daa2886c 7037
f2b77ccb
JS
7038done
7039
daa2886c
AJ
7040
7041
044b5c41
GM
7042for ac_header in X11/Xutil.h
7043do
7044as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7045echo "$as_me:$LINENO: checking for $ac_header" >&5
7046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7047if eval "test \"\${$as_ac_Header+set}\" = set"; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7049else
7050 cat >conftest.$ac_ext <<_ACEOF
7051#line $LINENO "configure"
e24bcc77
AJ
7052/* confdefs.h. */
7053_ACEOF
7054cat confdefs.h >>conftest.$ac_ext
7055cat >>conftest.$ac_ext <<_ACEOF
7056/* end confdefs.h. */
044b5c41
GM
7057#include <X11/Xlib.h>
7058
7059#include <$ac_header>
7060_ACEOF
7061rm -f conftest.$ac_objext
7062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7063 (eval $ac_compile) 2>&5
7064 ac_status=$?
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } &&
7067 { ac_try='test -s conftest.$ac_objext'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069 (eval $ac_try) 2>&5
7070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; }; then
7073 eval "$as_ac_Header=yes"
7074else
7075 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7076sed 's/^/| /' conftest.$ac_ext >&5
7077
044b5c41
GM
7078eval "$as_ac_Header=no"
7079fi
7080rm -f conftest.$ac_objext conftest.$ac_ext
7081fi
7082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7083echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7084if test `eval echo '${'$as_ac_Header'}'` = yes; then
7085 cat >>confdefs.h <<_ACEOF
7086#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7087_ACEOF
7088
7089fi
7090
7091done
7092
7093
7094
f5818d2f 7095for ac_header in X11/extensions/shape.h
24110288 7096do
f5818d2f 7097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c 7098echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
7099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7100if eval "test \"\${$as_ac_Header+set}\" = set"; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7102else
7103 cat >conftest.$ac_ext <<_ACEOF
daa2886c 7104#line $LINENO "configure"
e24bcc77
AJ
7105/* confdefs.h. */
7106_ACEOF
7107cat confdefs.h >>conftest.$ac_ext
7108cat >>conftest.$ac_ext <<_ACEOF
7109/* end confdefs.h. */
daa2886c 7110#include <X11/Xlib.h>
044b5c41
GM
7111 #ifdef HAVE_X11_XUTIL_H
7112 # include <X11/Xutil.h>
7113 #endif
daa2886c 7114
f5818d2f
AJ
7115#include <$ac_header>
7116_ACEOF
daa2886c
AJ
7117rm -f conftest.$ac_objext
7118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7119 (eval $ac_compile) 2>&5
f5818d2f 7120 ac_status=$?
daa2886c
AJ
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } &&
7123 { ac_try='test -s conftest.$ac_objext'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 (eval $ac_try) 2>&5
7126 ac_status=$?
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; }; then
f5818d2f
AJ
7129 eval "$as_ac_Header=yes"
7130else
7131 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7132sed 's/^/| /' conftest.$ac_ext >&5
7133
daa2886c 7134eval "$as_ac_Header=no"
24110288 7135fi
daa2886c 7136rm -f conftest.$ac_objext conftest.$ac_ext
24110288 7137fi
daa2886c 7138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f
AJ
7139echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7140if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 7141 cat >>confdefs.h <<_ACEOF
f5818d2f 7142#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
7143_ACEOF
7144 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
f5818d2f
AJ
7145echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7146if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
5b6879c5 7148else
f5818d2f 7149 ac_check_lib_save_LIBS=$LIBS
5b6879c5 7150LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
f5818d2f 7151cat >conftest.$ac_ext <<_ACEOF
daa2886c 7152#line $LINENO "configure"
e24bcc77
AJ
7153/* confdefs.h. */
7154_ACEOF
7155cat confdefs.h >>conftest.$ac_ext
7156cat >>conftest.$ac_ext <<_ACEOF
7157/* end confdefs.h. */
f5818d2f 7158
5b6879c5 7159/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
7160#ifdef __cplusplus
7161extern "C"
7162#endif
5b6879c5 7163/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
7164 builtin and then its argument prototype would still apply. */
7165char XShapeQueryExtension ();
7166int
7167main ()
7168{
7169XShapeQueryExtension ();
7170 ;
7171 return 0;
7172}
7173_ACEOF
7174rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7176 (eval $ac_link) 2>&5
7177 ac_status=$?
daa2886c 7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7179 (exit $ac_status); } &&
7180 { ac_try='test -s conftest$ac_exeext'
daa2886c 7181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7182 (eval $ac_try) 2>&5
7183 ac_status=$?
daa2886c 7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7185 (exit $ac_status); }; }; then
7186 ac_cv_lib_Xext_XShapeQueryExtension=yes
7187else
7188 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7189sed 's/^/| /' conftest.$ac_ext >&5
7190
f5818d2f
AJ
7191ac_cv_lib_Xext_XShapeQueryExtension=no
7192fi
7193rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7194LIBS=$ac_check_lib_save_LIBS
7195fi
daa2886c 7196echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
f5818d2f
AJ
7197echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7198if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7199
daa2886c 7200cat >>confdefs.h <<\_ACEOF
5b6879c5 7201#define HAVE_LIBXSHAPE 1
daa2886c 7202_ACEOF
5b6879c5 7203
5b6879c5
FJ
7204fi
7205
daa2886c 7206
5b6879c5 7207else
daa2886c 7208 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
f5818d2f 7209echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
5b6879c5 7210fi
daa2886c 7211
5b6879c5
FJ
7212done
7213
daa2886c
AJ
7214
7215
f5818d2f 7216for ac_header in X11/extensions/xf86dga.h
5b6879c5 7217do
f5818d2f 7218as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c 7219echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
7220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7221if eval "test \"\${$as_ac_Header+set}\" = set"; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7223else
7224 cat >conftest.$ac_ext <<_ACEOF
daa2886c 7225#line $LINENO "configure"
e24bcc77
AJ
7226/* confdefs.h. */
7227_ACEOF
7228cat confdefs.h >>conftest.$ac_ext
7229cat >>conftest.$ac_ext <<_ACEOF
7230/* end confdefs.h. */
daa2886c
AJ
7231#include <X11/Xlib.h>
7232
f5818d2f
AJ
7233#include <$ac_header>
7234_ACEOF
daa2886c
AJ
7235rm -f conftest.$ac_objext
7236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7237 (eval $ac_compile) 2>&5
f5818d2f 7238 ac_status=$?
daa2886c
AJ
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } &&
7241 { ac_try='test -s conftest.$ac_objext'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 (eval $ac_try) 2>&5
7244 ac_status=$?
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; }; then
f5818d2f
AJ
7247 eval "$as_ac_Header=yes"
7248else
7249 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7250sed 's/^/| /' conftest.$ac_ext >&5
7251
daa2886c 7252eval "$as_ac_Header=no"
5b6879c5 7253fi
daa2886c 7254rm -f conftest.$ac_objext conftest.$ac_ext
5b6879c5 7255fi
daa2886c 7256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f
AJ
7257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7258if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 7259 cat >>confdefs.h <<_ACEOF
f5818d2f 7260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
7261_ACEOF
7262 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
f5818d2f
AJ
7263echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7264if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
d94475bd 7266else
f5818d2f 7267 ac_check_lib_save_LIBS=$LIBS
10ad97c8 7268LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
f2b77ccb 7269 $LIBS"
f5818d2f 7270cat >conftest.$ac_ext <<_ACEOF
daa2886c 7271#line $LINENO "configure"
e24bcc77
AJ
7272/* confdefs.h. */
7273_ACEOF
7274cat confdefs.h >>conftest.$ac_ext
7275cat >>conftest.$ac_ext <<_ACEOF
7276/* end confdefs.h. */
f5818d2f 7277
d94475bd 7278/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
7279#ifdef __cplusplus
7280extern "C"
7281#endif
d94475bd 7282/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
7283 builtin and then its argument prototype would still apply. */
7284char XDGAQueryExtension ();
7285int
7286main ()
7287{
7288XDGAQueryExtension ();
7289 ;
7290 return 0;
7291}
7292_ACEOF
7293rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7295 (eval $ac_link) 2>&5
7296 ac_status=$?
daa2886c 7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7298 (exit $ac_status); } &&
7299 { ac_try='test -s conftest$ac_exeext'
daa2886c 7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7301 (eval $ac_try) 2>&5
7302 ac_status=$?
daa2886c 7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7304 (exit $ac_status); }; }; then
7305 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7306else
7307 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7308sed 's/^/| /' conftest.$ac_ext >&5
7309
f5818d2f
AJ
7310ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7311fi
7312rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7313LIBS=$ac_check_lib_save_LIBS
7314fi
daa2886c 7315echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
f5818d2f
AJ
7316echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7317if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7318
daa2886c 7319cat >>confdefs.h <<\_ACEOF
d94475bd 7320#define HAVE_LIBXXF86DGA2 1
daa2886c 7321_ACEOF
10ad97c8 7322
f2b77ccb 7323 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
f5818d2f 7324
d94475bd 7325else
daa2886c 7326 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
f5818d2f
AJ
7327echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7328if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
02e90087 7330else
f5818d2f 7331 ac_check_lib_save_LIBS=$LIBS
f2b77ccb
JS
7332LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7333 $LIBS"
f5818d2f 7334cat >conftest.$ac_ext <<_ACEOF
daa2886c 7335#line $LINENO "configure"
e24bcc77
AJ
7336/* confdefs.h. */
7337_ACEOF
7338cat confdefs.h >>conftest.$ac_ext
7339cat >>conftest.$ac_ext <<_ACEOF
7340/* end confdefs.h. */
f5818d2f 7341
02e90087 7342/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
7343#ifdef __cplusplus
7344extern "C"
7345#endif
02e90087 7346/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
7347 builtin and then its argument prototype would still apply. */
7348char XF86DGAQueryExtension ();
7349int
7350main ()
7351{
7352XF86DGAQueryExtension ();
7353 ;
7354 return 0;
7355}
7356_ACEOF
7357rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7359 (eval $ac_link) 2>&5
7360 ac_status=$?
daa2886c 7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7362 (exit $ac_status); } &&
7363 { ac_try='test -s conftest$ac_exeext'
daa2886c 7364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7365 (eval $ac_try) 2>&5
7366 ac_status=$?
daa2886c 7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7368 (exit $ac_status); }; }; then
7369 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7370else
7371 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7372sed 's/^/| /' conftest.$ac_ext >&5
7373
f5818d2f
AJ
7374ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7375fi
7376rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7377LIBS=$ac_check_lib_save_LIBS
7378fi
daa2886c 7379echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
f5818d2f
AJ
7380echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7381if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7382
daa2886c 7383cat >>confdefs.h <<\_ACEOF
0623a6f3 7384#define HAVE_LIBXXF86DGA 1
daa2886c 7385_ACEOF
10ad97c8 7386
f2b77ccb 7387 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
f5818d2f 7388
0623a6f3
AJ
7389fi
7390
daa2886c 7391
f2b77ccb
JS
7392fi
7393
daa2886c 7394
f2b77ccb 7395else
daa2886c 7396 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
f5818d2f 7397echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
f2b77ccb 7398fi
daa2886c 7399
f2b77ccb
JS
7400done
7401
daa2886c
AJ
7402
7403
f5818d2f 7404for ac_header in X11/extensions/xf86vmode.h
24110288 7405do
f5818d2f 7406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c 7407echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
7408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7409if eval "test \"\${$as_ac_Header+set}\" = set"; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7411else
7412 cat >conftest.$ac_ext <<_ACEOF
daa2886c 7413#line $LINENO "configure"
e24bcc77
AJ
7414/* confdefs.h. */
7415_ACEOF
7416cat confdefs.h >>conftest.$ac_ext
7417cat >>conftest.$ac_ext <<_ACEOF
7418/* end confdefs.h. */
daa2886c
AJ
7419#include <X11/Xlib.h>
7420
f5818d2f
AJ
7421#include <$ac_header>
7422_ACEOF
daa2886c
AJ
7423rm -f conftest.$ac_objext
7424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7425 (eval $ac_compile) 2>&5
f5818d2f 7426 ac_status=$?
daa2886c
AJ
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } &&
7429 { ac_try='test -s conftest.$ac_objext'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 (eval $ac_try) 2>&5
7432 ac_status=$?
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; }; then
f5818d2f
AJ
7435 eval "$as_ac_Header=yes"
7436else
7437 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7438sed 's/^/| /' conftest.$ac_ext >&5
7439
daa2886c 7440eval "$as_ac_Header=no"
24110288 7441fi
daa2886c 7442rm -f conftest.$ac_objext conftest.$ac_ext
24110288 7443fi
daa2886c 7444echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f
AJ
7445echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7446if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 7447 cat >>confdefs.h <<_ACEOF
f5818d2f 7448#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
7449_ACEOF
7450 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
f5818d2f
AJ
7451echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7452if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
399931a2 7454else
f5818d2f 7455 ac_check_lib_save_LIBS=$LIBS
f2b77ccb
JS
7456LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7457 $LIBS"
f5818d2f 7458cat >conftest.$ac_ext <<_ACEOF
daa2886c 7459#line $LINENO "configure"
e24bcc77
AJ
7460/* confdefs.h. */
7461_ACEOF
7462cat confdefs.h >>conftest.$ac_ext
7463cat >>conftest.$ac_ext <<_ACEOF
7464/* end confdefs.h. */
f5818d2f 7465
399931a2 7466/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
7467#ifdef __cplusplus
7468extern "C"
7469#endif
399931a2 7470/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
7471 builtin and then its argument prototype would still apply. */
7472char XF86VidModeQueryExtension ();
7473int
7474main ()
7475{
7476XF86VidModeQueryExtension ();
7477 ;
7478 return 0;
7479}
7480_ACEOF
7481rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7483 (eval $ac_link) 2>&5
7484 ac_status=$?
daa2886c 7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7486 (exit $ac_status); } &&
7487 { ac_try='test -s conftest$ac_exeext'
daa2886c 7488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7489 (eval $ac_try) 2>&5
7490 ac_status=$?
daa2886c 7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7492 (exit $ac_status); }; }; then
7493 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7494else
7495 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7496sed 's/^/| /' conftest.$ac_ext >&5
7497
f5818d2f
AJ
7498ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7499fi
7500rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7501LIBS=$ac_check_lib_save_LIBS
7502fi
daa2886c 7503echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
f5818d2f
AJ
7504echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7505if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7506
daa2886c 7507cat >>confdefs.h <<\_ACEOF
399931a2 7508#define HAVE_LIBXXF86VM 1
daa2886c 7509_ACEOF
f2b77ccb
JS
7510
7511 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
f5818d2f 7512
399931a2
SC
7513fi
7514
daa2886c 7515
f2b77ccb 7516else
daa2886c 7517 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
f5818d2f 7518echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
f2b77ccb 7519fi
daa2886c 7520
f2b77ccb 7521done
5c085704 7522
daa2886c
AJ
7523
7524
f5818d2f 7525for ac_header in X11/extensions/Xvlib.h
3d2f32dc 7526do
f5818d2f 7527as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c 7528echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
7529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7530if eval "test \"\${$as_ac_Header+set}\" = set"; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7532else
7533 cat >conftest.$ac_ext <<_ACEOF
daa2886c 7534#line $LINENO "configure"
e24bcc77
AJ
7535/* confdefs.h. */
7536_ACEOF
7537cat confdefs.h >>conftest.$ac_ext
7538cat >>conftest.$ac_ext <<_ACEOF
7539/* end confdefs.h. */
daa2886c
AJ
7540#include <X11/Xlib.h>
7541
f5818d2f
AJ
7542#include <$ac_header>
7543_ACEOF
daa2886c
AJ
7544rm -f conftest.$ac_objext
7545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7546 (eval $ac_compile) 2>&5
f5818d2f 7547 ac_status=$?
daa2886c
AJ
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } &&
7550 { ac_try='test -s conftest.$ac_objext'
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552 (eval $ac_try) 2>&5
7553 ac_status=$?
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; }; then
f5818d2f
AJ
7556 eval "$as_ac_Header=yes"
7557else
7558 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7559sed 's/^/| /' conftest.$ac_ext >&5
7560
daa2886c 7561eval "$as_ac_Header=no"
3d2f32dc 7562fi
daa2886c 7563rm -f conftest.$ac_objext conftest.$ac_ext
3d2f32dc 7564fi
daa2886c 7565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f
AJ
7566echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7567if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 7568 cat >>confdefs.h <<_ACEOF
f5818d2f 7569#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
7570_ACEOF
7571 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
f5818d2f
AJ
7572echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7573if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
3d2f32dc 7575else
f5818d2f 7576 ac_check_lib_save_LIBS=$LIBS
3d2f32dc
LU
7577LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7578 $LIBS"
f5818d2f 7579cat >conftest.$ac_ext <<_ACEOF
daa2886c 7580#line $LINENO "configure"
e24bcc77
AJ
7581/* confdefs.h. */
7582_ACEOF
7583cat confdefs.h >>conftest.$ac_ext
7584cat >>conftest.$ac_ext <<_ACEOF
7585/* end confdefs.h. */
f5818d2f 7586
3d2f32dc 7587/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
7588#ifdef __cplusplus
7589extern "C"
7590#endif
3d2f32dc 7591/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
7592 builtin and then its argument prototype would still apply. */
7593char XvShmCreateImage ();
7594int
7595main ()
7596{
7597XvShmCreateImage ();
7598 ;
7599 return 0;
7600}
7601_ACEOF
7602rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7604 (eval $ac_link) 2>&5
7605 ac_status=$?
daa2886c 7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7607 (exit $ac_status); } &&
7608 { ac_try='test -s conftest$ac_exeext'
daa2886c 7609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7610 (eval $ac_try) 2>&5
7611 ac_status=$?
daa2886c 7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7613 (exit $ac_status); }; }; then
7614 ac_cv_lib_Xv_XvShmCreateImage=yes
7615else
7616 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7617sed 's/^/| /' conftest.$ac_ext >&5
7618
f5818d2f
AJ
7619ac_cv_lib_Xv_XvShmCreateImage=no
7620fi
7621rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7622LIBS=$ac_check_lib_save_LIBS
7623fi
daa2886c 7624echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
f5818d2f
AJ
7625echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7626if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
7627
daa2886c 7628cat >>confdefs.h <<\_ACEOF
3d2f32dc 7629#define HAVE_XVIDEO 1
daa2886c 7630_ACEOF
3d2f32dc
LU
7631
7632 X_PRE_LIBS="$X_PRE_LIBS -lXv"
f5818d2f 7633
3d2f32dc
LU
7634fi
7635
daa2886c 7636
3d2f32dc 7637else
daa2886c 7638 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
f5818d2f 7639echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
3d2f32dc 7640fi
daa2886c 7641
3d2f32dc
LU
7642done
7643
daa2886c
AJ
7644
7645
f5818d2f 7646for ac_header in X11/extensions/Xrender.h
ff453fcd 7647do
f5818d2f 7648as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c 7649echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
7650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7651if eval "test \"\${$as_ac_Header+set}\" = set"; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653else
7654 cat >conftest.$ac_ext <<_ACEOF
daa2886c 7655#line $LINENO "configure"
e24bcc77
AJ
7656/* confdefs.h. */
7657_ACEOF
7658cat confdefs.h >>conftest.$ac_ext
7659cat >>conftest.$ac_ext <<_ACEOF
7660/* end confdefs.h. */
daa2886c
AJ
7661#include <X11/Xlib.h>
7662
f5818d2f
AJ
7663#include <$ac_header>
7664_ACEOF
daa2886c
AJ
7665rm -f conftest.$ac_objext
7666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7667 (eval $ac_compile) 2>&5
f5818d2f 7668 ac_status=$?
daa2886c
AJ
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } &&
7671 { ac_try='test -s conftest.$ac_objext'
7672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 (eval $ac_try) 2>&5
7674 ac_status=$?
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }; }; then
f5818d2f
AJ
7677 eval "$as_ac_Header=yes"
7678else
7679 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7680sed 's/^/| /' conftest.$ac_ext >&5
7681
daa2886c 7682eval "$as_ac_Header=no"
ff453fcd 7683fi
daa2886c 7684rm -f conftest.$ac_objext conftest.$ac_ext
ff453fcd 7685fi
daa2886c 7686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f
AJ
7687echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7688if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 7689 cat >>confdefs.h <<_ACEOF
f5818d2f 7690#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 7691_ACEOF
f5818d2f 7692
ff453fcd 7693fi
daa2886c 7694
ff453fcd
HD
7695done
7696
daa2886c
AJ
7697
7698
f2b77ccb 7699fi
daa2886c 7700
f2b77ccb 7701done
f5818d2f 7702
b8074991 7703 if test "x$with_opengl" != "xno"
fbc15b17 7704 then
42dcd97e 7705 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
b508a1da 7706 then
daa2886c 7707 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
f5818d2f
AJ
7708This prevents linking to OpenGL. Delete the file and restart configure." >&5
7709echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7710This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7711 { (exit 1); exit 1; }; }
b508a1da
AJ
7712 fi
7713
daa2886c
AJ
7714
7715
7716for ac_header in GL/gl.h GL/glx.h
24110288 7717do
f5818d2f 7718as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c
AJ
7719if eval "test \"\${$as_ac_Header+set}\" = set"; then
7720 echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
7721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7722if eval "test \"\${$as_ac_Header+set}\" = set"; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c
AJ
7724fi
7725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7726echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f5818d2f 7727else
daa2886c
AJ
7728 # Is the header compilable?
7729echo "$as_me:$LINENO: checking $ac_header usability" >&5
7730echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7731cat >conftest.$ac_ext <<_ACEOF
7732#line $LINENO "configure"
e24bcc77
AJ
7733/* confdefs.h. */
7734_ACEOF
7735cat confdefs.h >>conftest.$ac_ext
7736cat >>conftest.$ac_ext <<_ACEOF
7737/* end confdefs.h. */
daa2886c
AJ
7738$ac_includes_default
7739#include <$ac_header>
7740_ACEOF
7741rm -f conftest.$ac_objext
7742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7743 (eval $ac_compile) 2>&5
7744 ac_status=$?
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); } &&
7747 { ac_try='test -s conftest.$ac_objext'
7748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749 (eval $ac_try) 2>&5
7750 ac_status=$?
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); }; }; then
7753 ac_header_compiler=yes
7754else
7755 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7756sed 's/^/| /' conftest.$ac_ext >&5
7757
daa2886c
AJ
7758ac_header_compiler=no
7759fi
7760rm -f conftest.$ac_objext conftest.$ac_ext
7761echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7762echo "${ECHO_T}$ac_header_compiler" >&6
7763
7764# Is the header present?
7765echo "$as_me:$LINENO: checking $ac_header presence" >&5
7766echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7767cat >conftest.$ac_ext <<_ACEOF
7768#line $LINENO "configure"
e24bcc77
AJ
7769/* confdefs.h. */
7770_ACEOF
7771cat confdefs.h >>conftest.$ac_ext
7772cat >>conftest.$ac_ext <<_ACEOF
7773/* end confdefs.h. */
f5818d2f
AJ
7774#include <$ac_header>
7775_ACEOF
daa2886c 7776if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
7777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7778 ac_status=$?
11af04e3 7779 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
7780 rm -f conftest.er1
7781 cat conftest.err >&5
daa2886c 7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7783 (exit $ac_status); } >/dev/null; then
7784 if test -s conftest.err; then
7785 ac_cpp_err=$ac_c_preproc_warn_flag
7786 else
7787 ac_cpp_err=
7788 fi
7789else
7790 ac_cpp_err=yes
7791fi
7792if test -z "$ac_cpp_err"; then
daa2886c 7793 ac_header_preproc=yes
f5818d2f
AJ
7794else
7795 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7796sed 's/^/| /' conftest.$ac_ext >&5
7797
daa2886c 7798 ac_header_preproc=no
24110288 7799fi
f5818d2f 7800rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
7801echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7802echo "${ECHO_T}$ac_header_preproc" >&6
7803
7804# So? What about this header?
7805case $ac_header_compiler:$ac_header_preproc in
7806 yes:no )
7807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7808echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
7810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7811 (
7812 cat <<\_ASBOX
7813## ------------------------------------ ##
7814## Report this to bug-autoconf@gnu.org. ##
7815## ------------------------------------ ##
7816_ASBOX
7817 ) |
7818 sed "s/^/$as_me: WARNING: /" >&2
7819 ;;
daa2886c
AJ
7820 no:yes )
7821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7822echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7824echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
7826echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7827 (
7828 cat <<\_ASBOX
7829## ------------------------------------ ##
7830## Report this to bug-autoconf@gnu.org. ##
7831## ------------------------------------ ##
7832_ASBOX
7833 ) |
7834 sed "s/^/$as_me: WARNING: /" >&2
7835 ;;
daa2886c
AJ
7836esac
7837echo "$as_me:$LINENO: checking for $ac_header" >&5
7838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7839if eval "test \"\${$as_ac_Header+set}\" = set"; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7841else
7842 eval "$as_ac_Header=$ac_header_preproc"
24110288 7843fi
daa2886c 7844echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 7845echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
7846
7847fi
f5818d2f 7848if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 7849 cat >>confdefs.h <<_ACEOF
f5818d2f 7850#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 7851_ACEOF
f5818d2f 7852
24110288 7853fi
daa2886c 7854
24110288
PS
7855done
7856
22a969ba 7857 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
fbc15b17 7858 then
daa2886c
AJ
7859
7860for ac_header in GL/glext.h
7861do
7862as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7863echo "$as_me:$LINENO: checking for $ac_header" >&5
7864echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7865if eval "test \"\${$as_ac_Header+set}\" = set"; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7867else
7868 cat >conftest.$ac_ext <<_ACEOF
7869#line $LINENO "configure"
e24bcc77
AJ
7870/* confdefs.h. */
7871_ACEOF
7872cat confdefs.h >>conftest.$ac_ext
7873cat >>conftest.$ac_ext <<_ACEOF
7874/* end confdefs.h. */
daa2886c
AJ
7875#include <GL/glx.h>
7876
7877#include <$ac_header>
7878_ACEOF
7879rm -f conftest.$ac_objext
7880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7881 (eval $ac_compile) 2>&5
7882 ac_status=$?
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } &&
7885 { ac_try='test -s conftest.$ac_objext'
7886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887 (eval $ac_try) 2>&5
7888 ac_status=$?
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; }; then
7891 eval "$as_ac_Header=yes"
7892else
7893 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7894sed 's/^/| /' conftest.$ac_ext >&5
7895
daa2886c
AJ
7896eval "$as_ac_Header=no"
7897fi
7898rm -f conftest.$ac_objext conftest.$ac_ext
7899fi
7900echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7901echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7902if test `eval echo '${'$as_ac_Header'}'` = yes; then
7903 cat >>confdefs.h <<_ACEOF
7904#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7905_ACEOF
7906
7907fi
7908
7909done
7910
7911 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
f5818d2f
AJ
7912echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7913if test "${wine_cv_opengl_version_OK+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
5c085704 7915else
f5818d2f 7916 cat >conftest.$ac_ext <<_ACEOF
daa2886c 7917#line $LINENO "configure"
e24bcc77
AJ
7918/* confdefs.h. */
7919_ACEOF
7920cat confdefs.h >>conftest.$ac_ext
7921cat >>conftest.$ac_ext <<_ACEOF
7922/* end confdefs.h. */
5c085704 7923#include <GL/gl.h>
f5818d2f
AJ
7924int
7925main ()
7926{
5c085704 7927GLenum test = GL_UNSIGNED_SHORT_5_6_5;
f5818d2f
AJ
7928 ;
7929 return 0;
7930}
7931_ACEOF
7932rm -f conftest.$ac_objext
daa2886c 7933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
7934 (eval $ac_compile) 2>&5
7935 ac_status=$?
daa2886c 7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7937 (exit $ac_status); } &&
7938 { ac_try='test -s conftest.$ac_objext'
daa2886c 7939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7940 (eval $ac_try) 2>&5
7941 ac_status=$?
daa2886c 7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 7943 (exit $ac_status); }; }; then
bedf40b5 7944 wine_cv_opengl_version_OK="yes"
5c085704 7945else
f5818d2f 7946 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7947sed 's/^/| /' conftest.$ac_ext >&5
7948
f5818d2f
AJ
7949wine_cv_opengl_version_OK="no"
7950
5c085704 7951fi
f5818d2f 7952rm -f conftest.$ac_objext conftest.$ac_ext
5c085704 7953
f5818d2f 7954fi
daa2886c 7955echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
f5818d2f 7956echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
5c085704 7957
b8074991 7958 if test "$wine_cv_opengl_version_OK" = "yes"
fbc15b17 7959 then
daa2886c 7960 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
f5818d2f
AJ
7961echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7962if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
5ff00774 7964else
f5818d2f 7965 ac_check_lib_save_LIBS=$LIBS
376ec88e 7966LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
f5818d2f 7967cat >conftest.$ac_ext <<_ACEOF
daa2886c 7968#line $LINENO "configure"
e24bcc77
AJ
7969/* confdefs.h. */
7970_ACEOF
7971cat confdefs.h >>conftest.$ac_ext
7972cat >>conftest.$ac_ext <<_ACEOF
7973/* end confdefs.h. */
f5818d2f 7974
5ff00774 7975/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
7976#ifdef __cplusplus
7977extern "C"
7978#endif
5ff00774 7979/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
7980 builtin and then its argument prototype would still apply. */
7981char glXCreateContext ();
7982int
7983main ()
7984{
7985glXCreateContext ();
7986 ;
7987 return 0;
7988}
7989_ACEOF
7990rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7992 (eval $ac_link) 2>&5
7993 ac_status=$?
daa2886c 7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7995 (exit $ac_status); } &&
7996 { ac_try='test -s conftest$ac_exeext'
daa2886c 7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7998 (eval $ac_try) 2>&5
7999 ac_status=$?
daa2886c 8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8001 (exit $ac_status); }; }; then
8002 ac_cv_lib_GL_glXCreateContext=yes
8003else
8004 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8005sed 's/^/| /' conftest.$ac_ext >&5
8006
f5818d2f
AJ
8007ac_cv_lib_GL_glXCreateContext=no
8008fi
8009rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8010LIBS=$ac_check_lib_save_LIBS
8011fi
daa2886c 8012echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
f5818d2f
AJ
8013echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8014if test $ac_cv_lib_GL_glXCreateContext = yes; then
56ab2b3e 8015 OPENGL_LIBS="-lGL"
5d68f79a 8016
f5818d2f 8017fi
fbc15b17 8018
daa2886c 8019
b508a1da 8020 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
bd8ede1b 8021 then
bd8ede1b 8022 OPENGLFILES='$(OPENGLFILES)'
f5818d2f 8023
daa2886c 8024cat >>confdefs.h <<\_ACEOF
6bb6d4c2 8025#define HAVE_OPENGL 1
daa2886c 8026_ACEOF
6bb6d4c2 8027
daa2886c
AJ
8028
8029 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
f5818d2f
AJ
8030echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8031if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8032 echo $ECHO_N "(cached) $ECHO_C" >&6
48c08164 8033else
f5818d2f 8034 ac_check_lib_save_LIBS=$LIBS
376ec88e 8035LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
f5818d2f 8036cat >conftest.$ac_ext <<_ACEOF
daa2886c 8037#line $LINENO "configure"
e24bcc77
AJ
8038/* confdefs.h. */
8039_ACEOF
8040cat confdefs.h >>conftest.$ac_ext
8041cat >>conftest.$ac_ext <<_ACEOF
8042/* end confdefs.h. */
f5818d2f 8043
48c08164 8044/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
8045#ifdef __cplusplus
8046extern "C"
8047#endif
48c08164 8048/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
8049 builtin and then its argument prototype would still apply. */
8050char glXGetProcAddressARB ();
8051int
8052main ()
8053{
8054glXGetProcAddressARB ();
8055 ;
8056 return 0;
8057}
8058_ACEOF
8059rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 8060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
8061 (eval $ac_link) 2>&5
8062 ac_status=$?
daa2886c 8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8064 (exit $ac_status); } &&
8065 { ac_try='test -s conftest$ac_exeext'
daa2886c 8066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
8067 (eval $ac_try) 2>&5
8068 ac_status=$?
daa2886c 8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8070 (exit $ac_status); }; }; then
8071 ac_cv_lib_GL_glXGetProcAddressARB=yes
8072else
8073 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8074sed 's/^/| /' conftest.$ac_ext >&5
8075
f5818d2f
AJ
8076ac_cv_lib_GL_glXGetProcAddressARB=no
8077fi
8078rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8079LIBS=$ac_check_lib_save_LIBS
8080fi
daa2886c 8081echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
f5818d2f
AJ
8082echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8083if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8084
daa2886c 8085cat >>confdefs.h <<\_ACEOF
bedf40b5 8086#define HAVE_GLX_GETPROCADDRESS 1
daa2886c 8087_ACEOF
48c08164 8088
5ff00774
LU
8089fi
8090
daa2886c 8091
b508a1da 8092 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
bedf40b5 8093 then
daa2886c 8094 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
f5818d2f
AJ
8095echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8096if test "${wine_cv_extension_prototypes+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
1434d875 8098else
f5818d2f 8099 cat >conftest.$ac_ext <<_ACEOF
daa2886c 8100#line $LINENO "configure"
e24bcc77
AJ
8101/* confdefs.h. */
8102_ACEOF
8103cat confdefs.h >>conftest.$ac_ext
8104cat >>conftest.$ac_ext <<_ACEOF
8105/* end confdefs.h. */
1434d875 8106#include <GL/gl.h>
6bb6d4c2
MM
8107 #ifdef HAVE_GL_GLEXT_H
8108 # include <GL/glext.h>
8109 #endif
f5818d2f
AJ
8110
8111int
8112main ()
8113{
8114PFNGLCOLORTABLEEXTPROC test_proc;
8115 ;
8116 return 0;
8117}
8118_ACEOF
8119rm -f conftest.$ac_objext
daa2886c 8120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
8121 (eval $ac_compile) 2>&5
8122 ac_status=$?
daa2886c 8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8124 (exit $ac_status); } &&
8125 { ac_try='test -s conftest.$ac_objext'
daa2886c 8126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
8127 (eval $ac_try) 2>&5
8128 ac_status=$?
daa2886c 8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 8130 (exit $ac_status); }; }; then
fe210ef3 8131 wine_cv_extension_prototypes="yes"
1434d875 8132else
f5818d2f 8133 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8134sed 's/^/| /' conftest.$ac_ext >&5
8135
f5818d2f
AJ
8136wine_cv_extension_prototypes="no"
8137
1434d875 8138fi
f5818d2f 8139rm -f conftest.$ac_objext conftest.$ac_ext
1434d875 8140
f5818d2f 8141fi
daa2886c 8142echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
f5818d2f 8143echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
b508a1da 8144 if test "$wine_cv_extension_prototypes" = "yes"
fe210ef3 8145 then
f5818d2f 8146
daa2886c 8147cat >>confdefs.h <<\_ACEOF
fe210ef3 8148#define HAVE_GLEXT_PROTOTYPES 1
daa2886c 8149_ACEOF
fe210ef3
LU
8150
8151 fi
bedf40b5 8152 fi
d6c0f9f7 8153
fbc15b17 8154 fi
daa2886c 8155 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
f5818d2f
AJ
8156echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8157if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
b63ab445 8159else
f5818d2f 8160 ac_check_lib_save_LIBS=$LIBS
56ab2b3e 8161LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
b63ab445 8162 $LIBS"
f5818d2f 8163cat >conftest.$ac_ext <<_ACEOF
daa2886c 8164#line $LINENO "configure"
e24bcc77
AJ
8165/* confdefs.h. */
8166_ACEOF
8167cat confdefs.h >>conftest.$ac_ext
8168cat >>conftest.$ac_ext <<_ACEOF
8169/* end confdefs.h. */
f5818d2f 8170
b63ab445 8171/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
8172#ifdef __cplusplus
8173extern "C"
8174#endif
b63ab445 8175/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
8176 builtin and then its argument prototype would still apply. */
8177char gluLookAt ();
8178int
8179main ()
8180{
8181gluLookAt ();
8182 ;
8183 return 0;
8184}
8185_ACEOF
8186rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 8187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
8188 (eval $ac_link) 2>&5
8189 ac_status=$?
daa2886c 8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8191 (exit $ac_status); } &&
8192 { ac_try='test -s conftest$ac_exeext'
daa2886c 8193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
8194 (eval $ac_try) 2>&5
8195 ac_status=$?
daa2886c 8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8197 (exit $ac_status); }; }; then
8198 ac_cv_lib_GLU_gluLookAt=yes
8199else
8200 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8201sed 's/^/| /' conftest.$ac_ext >&5
8202
f5818d2f
AJ
8203ac_cv_lib_GLU_gluLookAt=no
8204fi
8205rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8206LIBS=$ac_check_lib_save_LIBS
8207fi
daa2886c 8208echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
f5818d2f
AJ
8209echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8210if test $ac_cv_lib_GLU_gluLookAt = yes; then
56ab2b3e 8211 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
b63ab445 8212 GLU32FILES='$(GLU32FILES)'
f5818d2f 8213
b63ab445
MM
8214fi
8215
fbc15b17
LU
8216 fi
8217 fi
24110288 8218 fi
1eb593cb 8219
6f670b13
FG
8220 NASLIBS=""
8221
8222
8223for ac_header in audio/audiolib.h
8224do
8225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8226if eval "test \"\${$as_ac_Header+set}\" = set"; then
8227 echo "$as_me:$LINENO: checking for $ac_header" >&5
8228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8229if eval "test \"\${$as_ac_Header+set}\" = set"; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8231fi
8232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8233echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8234else
8235 # Is the header compilable?
8236echo "$as_me:$LINENO: checking $ac_header usability" >&5
8237echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8238cat >conftest.$ac_ext <<_ACEOF
8239#line $LINENO "configure"
e24bcc77
AJ
8240/* confdefs.h. */
8241_ACEOF
8242cat confdefs.h >>conftest.$ac_ext
8243cat >>conftest.$ac_ext <<_ACEOF
8244/* end confdefs.h. */
6f670b13
FG
8245$ac_includes_default
8246#include <$ac_header>
8247_ACEOF
8248rm -f conftest.$ac_objext
8249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8250 (eval $ac_compile) 2>&5
8251 ac_status=$?
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try='test -s conftest.$ac_objext'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 (eval $ac_try) 2>&5
8257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
8260 ac_header_compiler=yes
8261else
8262 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8263sed 's/^/| /' conftest.$ac_ext >&5
8264
6f670b13
FG
8265ac_header_compiler=no
8266fi
8267rm -f conftest.$ac_objext conftest.$ac_ext
8268echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8269echo "${ECHO_T}$ac_header_compiler" >&6
8270
8271# Is the header present?
8272echo "$as_me:$LINENO: checking $ac_header presence" >&5
8273echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8274cat >conftest.$ac_ext <<_ACEOF
8275#line $LINENO "configure"
e24bcc77
AJ
8276/* confdefs.h. */
8277_ACEOF
8278cat confdefs.h >>conftest.$ac_ext
8279cat >>conftest.$ac_ext <<_ACEOF
8280/* end confdefs.h. */
6f670b13
FG
8281#include <$ac_header>
8282_ACEOF
8283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8285 ac_status=$?
8286 grep -v '^ *+' conftest.er1 >conftest.err
8287 rm -f conftest.er1
8288 cat conftest.err >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } >/dev/null; then
8291 if test -s conftest.err; then
8292 ac_cpp_err=$ac_c_preproc_warn_flag
8293 else
8294 ac_cpp_err=
8295 fi
8296else
8297 ac_cpp_err=yes
8298fi
8299if test -z "$ac_cpp_err"; then
8300 ac_header_preproc=yes
8301else
8302 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8303sed 's/^/| /' conftest.$ac_ext >&5
8304
6f670b13
FG
8305 ac_header_preproc=no
8306fi
8307rm -f conftest.err conftest.$ac_ext
8308echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8309echo "${ECHO_T}$ac_header_preproc" >&6
8310
8311# So? What about this header?
8312case $ac_header_compiler:$ac_header_preproc in
8313 yes:no )
8314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8315echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
8317echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8318 (
8319 cat <<\_ASBOX
8320## ------------------------------------ ##
8321## Report this to bug-autoconf@gnu.org. ##
8322## ------------------------------------ ##
8323_ASBOX
8324 ) |
8325 sed "s/^/$as_me: WARNING: /" >&2
8326 ;;
6f670b13
FG
8327 no:yes )
8328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8329echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8331echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
8333echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8334 (
8335 cat <<\_ASBOX
8336## ------------------------------------ ##
8337## Report this to bug-autoconf@gnu.org. ##
8338## ------------------------------------ ##
8339_ASBOX
8340 ) |
8341 sed "s/^/$as_me: WARNING: /" >&2
8342 ;;
6f670b13
FG
8343esac
8344echo "$as_me:$LINENO: checking for $ac_header" >&5
8345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8346if eval "test \"\${$as_ac_Header+set}\" = set"; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8348else
8349 eval "$as_ac_Header=$ac_header_preproc"
8350fi
8351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8353
8354fi
8355if test `eval echo '${'$as_ac_Header'}'` = yes; then
8356 cat >>confdefs.h <<_ACEOF
8357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8358_ACEOF
8359
8360for ac_header in audio/soundlib.h
8361do
8362as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8363echo "$as_me:$LINENO: checking for $ac_header" >&5
8364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8365if eval "test \"\${$as_ac_Header+set}\" = set"; then
8366 echo $ECHO_N "(cached) $ECHO_C" >&6
8367else
8368 cat >conftest.$ac_ext <<_ACEOF
8369#line $LINENO "configure"
e24bcc77
AJ
8370/* confdefs.h. */
8371_ACEOF
8372cat confdefs.h >>conftest.$ac_ext
8373cat >>conftest.$ac_ext <<_ACEOF
8374/* end confdefs.h. */
6f670b13
FG
8375#include <audio/audiolib.h>
8376
8377#include <$ac_header>
8378_ACEOF
8379rm -f conftest.$ac_objext
8380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8381 (eval $ac_compile) 2>&5
8382 ac_status=$?
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } &&
8385 { ac_try='test -s conftest.$ac_objext'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 (eval $ac_try) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; }; then
8391 eval "$as_ac_Header=yes"
8392else
8393 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8394sed 's/^/| /' conftest.$ac_ext >&5
8395
6f670b13
FG
8396eval "$as_ac_Header=no"
8397fi
8398rm -f conftest.$ac_objext conftest.$ac_ext
8399fi
8400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8401echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8402if test `eval echo '${'$as_ac_Header'}'` = yes; then
8403 cat >>confdefs.h <<_ACEOF
8404#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8405_ACEOF
8406
8407fi
8408
8409done
8410
8411 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8412echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8413if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8415else
8416 ac_check_lib_save_LIBS=$LIBS
8417LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8418cat >conftest.$ac_ext <<_ACEOF
8419#line $LINENO "configure"
e24bcc77
AJ
8420/* confdefs.h. */
8421_ACEOF
8422cat confdefs.h >>conftest.$ac_ext
8423cat >>conftest.$ac_ext <<_ACEOF
8424/* end confdefs.h. */
6f670b13
FG
8425
8426/* Override any gcc2 internal prototype to avoid an error. */
8427#ifdef __cplusplus
8428extern "C"
8429#endif
8430/* We use char because int might match the return type of a gcc2
8431 builtin and then its argument prototype would still apply. */
8432char AuCreateFlow ();
8433int
8434main ()
8435{
8436AuCreateFlow ();
8437 ;
8438 return 0;
8439}
8440_ACEOF
8441rm -f conftest.$ac_objext conftest$ac_exeext
8442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8443 (eval $ac_link) 2>&5
8444 ac_status=$?
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } &&
8447 { ac_try='test -s conftest$ac_exeext'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 (eval $ac_try) 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; }; then
8453 ac_cv_lib_audio_AuCreateFlow=yes
8454else
8455 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8456sed 's/^/| /' conftest.$ac_ext >&5
8457
6f670b13
FG
8458ac_cv_lib_audio_AuCreateFlow=no
8459fi
8460rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8461LIBS=$ac_check_lib_save_LIBS
8462fi
8463echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8464echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8465if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8466
8467cat >>confdefs.h <<\_ACEOF
8468#define HAVE_NAS 1
8469_ACEOF
8470
8471 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8472fi
8473
8474fi
8475
8476done
8477
8478
1eb593cb 8479 CPPFLAGS="$ac_save_CPPFLAGS"
2941a212 8480 XFILES='$(XFILES)'
24110288 8481else
daa2886c
AJ
8482 XLIB=""
8483 X_CFLAGS=""
8484 X_LIBS=""
8485fi
8486
8487CURSESLIBS=""
8488if test "x$with_curses" != "xno"
8489then
8490
8491for ac_header in ncurses.h
8492do
8493as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8494if eval "test \"\${$as_ac_Header+set}\" = set"; then
8495 echo "$as_me:$LINENO: checking for $ac_header" >&5
8496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8497if eval "test \"\${$as_ac_Header+set}\" = set"; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8499fi
8500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8501echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8502else
8503 # Is the header compilable?
8504echo "$as_me:$LINENO: checking $ac_header usability" >&5
8505echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8506cat >conftest.$ac_ext <<_ACEOF
8507#line $LINENO "configure"
e24bcc77
AJ
8508/* confdefs.h. */
8509_ACEOF
8510cat confdefs.h >>conftest.$ac_ext
8511cat >>conftest.$ac_ext <<_ACEOF
8512/* end confdefs.h. */
daa2886c
AJ
8513$ac_includes_default
8514#include <$ac_header>
8515_ACEOF
8516rm -f conftest.$ac_objext
8517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8518 (eval $ac_compile) 2>&5
8519 ac_status=$?
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } &&
8522 { ac_try='test -s conftest.$ac_objext'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 (eval $ac_try) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; }; then
8528 ac_header_compiler=yes
8529else
8530 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8531sed 's/^/| /' conftest.$ac_ext >&5
8532
daa2886c 8533ac_header_compiler=no
24110288 8534fi
daa2886c
AJ
8535rm -f conftest.$ac_objext conftest.$ac_ext
8536echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8537echo "${ECHO_T}$ac_header_compiler" >&6
24110288 8538
daa2886c
AJ
8539# Is the header present?
8540echo "$as_me:$LINENO: checking $ac_header presence" >&5
8541echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8542cat >conftest.$ac_ext <<_ACEOF
8543#line $LINENO "configure"
e24bcc77
AJ
8544/* confdefs.h. */
8545_ACEOF
8546cat confdefs.h >>conftest.$ac_ext
8547cat >>conftest.$ac_ext <<_ACEOF
8548/* end confdefs.h. */
f5818d2f
AJ
8549#include <$ac_header>
8550_ACEOF
daa2886c 8551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
8552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8553 ac_status=$?
11af04e3 8554 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
8555 rm -f conftest.er1
8556 cat conftest.err >&5
daa2886c 8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8558 (exit $ac_status); } >/dev/null; then
8559 if test -s conftest.err; then
8560 ac_cpp_err=$ac_c_preproc_warn_flag
8561 else
8562 ac_cpp_err=
8563 fi
8564else
8565 ac_cpp_err=yes
8566fi
8567if test -z "$ac_cpp_err"; then
daa2886c 8568 ac_header_preproc=yes
f5818d2f
AJ
8569else
8570 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8571sed 's/^/| /' conftest.$ac_ext >&5
8572
daa2886c 8573 ac_header_preproc=no
a1d6d247 8574fi
f5818d2f 8575rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
8576echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8577echo "${ECHO_T}$ac_header_preproc" >&6
8578
8579# So? What about this header?
8580case $ac_header_compiler:$ac_header_preproc in
8581 yes:no )
8582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8583echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
8585echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8586 (
8587 cat <<\_ASBOX
8588## ------------------------------------ ##
8589## Report this to bug-autoconf@gnu.org. ##
8590## ------------------------------------ ##
8591_ASBOX
8592 ) |
8593 sed "s/^/$as_me: WARNING: /" >&2
8594 ;;
daa2886c
AJ
8595 no:yes )
8596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8597echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8599echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
8601echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8602 (
8603 cat <<\_ASBOX
8604## ------------------------------------ ##
8605## Report this to bug-autoconf@gnu.org. ##
8606## ------------------------------------ ##
8607_ASBOX
8608 ) |
8609 sed "s/^/$as_me: WARNING: /" >&2
8610 ;;
daa2886c
AJ
8611esac
8612echo "$as_me:$LINENO: checking for $ac_header" >&5
8613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8614if eval "test \"\${$as_ac_Header+set}\" = set"; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8616else
8617 eval "$as_ac_Header=$ac_header_preproc"
a1d6d247 8618fi
daa2886c 8619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 8620echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
8621
8622fi
f5818d2f 8623if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 8624 cat >>confdefs.h <<_ACEOF
f5818d2f 8625#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
8626_ACEOF
8627 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
f5818d2f
AJ
8628echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8629if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
e884f9ca 8631else
f5818d2f 8632 ac_check_lib_save_LIBS=$LIBS
e884f9ca 8633LIBS="-lncurses $LIBS"
f5818d2f 8634cat >conftest.$ac_ext <<_ACEOF
daa2886c 8635#line $LINENO "configure"
e24bcc77
AJ
8636/* confdefs.h. */
8637_ACEOF
8638cat confdefs.h >>conftest.$ac_ext
8639cat >>conftest.$ac_ext <<_ACEOF
8640/* end confdefs.h. */
f5818d2f 8641
e884f9ca 8642/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
8643#ifdef __cplusplus
8644extern "C"
8645#endif
e884f9ca 8646/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
8647 builtin and then its argument prototype would still apply. */
8648char waddch ();
8649int
8650main ()
8651{
8652waddch ();
8653 ;
8654 return 0;
8655}
8656_ACEOF
8657rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 8658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
8659 (eval $ac_link) 2>&5
8660 ac_status=$?
daa2886c 8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8662 (exit $ac_status); } &&
8663 { ac_try='test -s conftest$ac_exeext'
daa2886c 8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
8665 (eval $ac_try) 2>&5
8666 ac_status=$?
daa2886c 8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8668 (exit $ac_status); }; }; then
8669 ac_cv_lib_ncurses_waddch=yes
8670else
8671 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8672sed 's/^/| /' conftest.$ac_ext >&5
8673
f5818d2f
AJ
8674ac_cv_lib_ncurses_waddch=no
8675fi
8676rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8677LIBS=$ac_check_lib_save_LIBS
8678fi
daa2886c 8679echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
f5818d2f
AJ
8680echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8681if test $ac_cv_lib_ncurses_waddch = yes; then
8682
daa2886c 8683cat >>confdefs.h <<\_ACEOF
48957684 8684#define HAVE_LIBNCURSES 1
daa2886c 8685_ACEOF
e884f9ca 8686
48957684 8687 CURSESLIBS="-lncurses"
f544507b 8688else
f5818d2f
AJ
8689
8690for ac_header in curses.h
24110288 8691do
f5818d2f 8692as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c
AJ
8693if eval "test \"\${$as_ac_Header+set}\" = set"; then
8694 echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
8695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8696if eval "test \"\${$as_ac_Header+set}\" = set"; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c
AJ
8698fi
8699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f5818d2f 8701else
daa2886c
AJ
8702 # Is the header compilable?
8703echo "$as_me:$LINENO: checking $ac_header usability" >&5
8704echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8705cat >conftest.$ac_ext <<_ACEOF
8706#line $LINENO "configure"
e24bcc77
AJ
8707/* confdefs.h. */
8708_ACEOF
8709cat confdefs.h >>conftest.$ac_ext
8710cat >>conftest.$ac_ext <<_ACEOF
8711/* end confdefs.h. */
daa2886c
AJ
8712$ac_includes_default
8713#include <$ac_header>
8714_ACEOF
8715rm -f conftest.$ac_objext
8716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8717 (eval $ac_compile) 2>&5
8718 ac_status=$?
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try='test -s conftest.$ac_objext'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723 (eval $ac_try) 2>&5
8724 ac_status=$?
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; }; then
8727 ac_header_compiler=yes
8728else
8729 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8730sed 's/^/| /' conftest.$ac_ext >&5
8731
daa2886c
AJ
8732ac_header_compiler=no
8733fi
8734rm -f conftest.$ac_objext conftest.$ac_ext
8735echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8736echo "${ECHO_T}$ac_header_compiler" >&6
8737
8738# Is the header present?
8739echo "$as_me:$LINENO: checking $ac_header presence" >&5
8740echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8741cat >conftest.$ac_ext <<_ACEOF
8742#line $LINENO "configure"
e24bcc77
AJ
8743/* confdefs.h. */
8744_ACEOF
8745cat confdefs.h >>conftest.$ac_ext
8746cat >>conftest.$ac_ext <<_ACEOF
8747/* end confdefs.h. */
f5818d2f
AJ
8748#include <$ac_header>
8749_ACEOF
daa2886c 8750if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
8751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8752 ac_status=$?
11af04e3 8753 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
8754 rm -f conftest.er1
8755 cat conftest.err >&5
daa2886c 8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8757 (exit $ac_status); } >/dev/null; then
8758 if test -s conftest.err; then
8759 ac_cpp_err=$ac_c_preproc_warn_flag
8760 else
8761 ac_cpp_err=
8762 fi
8763else
8764 ac_cpp_err=yes
8765fi
8766if test -z "$ac_cpp_err"; then
daa2886c 8767 ac_header_preproc=yes
f5818d2f
AJ
8768else
8769 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8770sed 's/^/| /' conftest.$ac_ext >&5
8771
daa2886c 8772 ac_header_preproc=no
24110288 8773fi
f5818d2f 8774rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
8775echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8776echo "${ECHO_T}$ac_header_preproc" >&6
8777
8778# So? What about this header?
8779case $ac_header_compiler:$ac_header_preproc in
8780 yes:no )
8781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8782echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
8784echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8785 (
8786 cat <<\_ASBOX
8787## ------------------------------------ ##
8788## Report this to bug-autoconf@gnu.org. ##
8789## ------------------------------------ ##
8790_ASBOX
8791 ) |
8792 sed "s/^/$as_me: WARNING: /" >&2
8793 ;;
daa2886c
AJ
8794 no:yes )
8795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8796echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8798echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
8800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8801 (
8802 cat <<\_ASBOX
8803## ------------------------------------ ##
8804## Report this to bug-autoconf@gnu.org. ##
8805## ------------------------------------ ##
8806_ASBOX
8807 ) |
8808 sed "s/^/$as_me: WARNING: /" >&2
8809 ;;
daa2886c
AJ
8810esac
8811echo "$as_me:$LINENO: checking for $ac_header" >&5
8812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8813if eval "test \"\${$as_ac_Header+set}\" = set"; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8815else
8816 eval "$as_ac_Header=$ac_header_preproc"
24110288 8817fi
daa2886c 8818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 8819echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
8820
8821fi
f5818d2f 8822if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 8823 cat >>confdefs.h <<_ACEOF
f5818d2f 8824#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
8825_ACEOF
8826 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
f5818d2f
AJ
8827echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8828if test "${ac_cv_lib_curses_waddch+set}" = set; then
8829 echo $ECHO_N "(cached) $ECHO_C" >&6
e884f9ca 8830else
f5818d2f 8831 ac_check_lib_save_LIBS=$LIBS
e884f9ca 8832LIBS="-lcurses $LIBS"
f5818d2f 8833cat >conftest.$ac_ext <<_ACEOF
daa2886c 8834#line $LINENO "configure"
e24bcc77
AJ
8835/* confdefs.h. */
8836_ACEOF
8837cat confdefs.h >>conftest.$ac_ext
8838cat >>conftest.$ac_ext <<_ACEOF
8839/* end confdefs.h. */
f5818d2f 8840
e884f9ca 8841/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
8842#ifdef __cplusplus
8843extern "C"
8844#endif
e884f9ca 8845/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
8846 builtin and then its argument prototype would still apply. */
8847char waddch ();
8848int
8849main ()
8850{
8851waddch ();
8852 ;
8853 return 0;
8854}
8855_ACEOF
8856rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 8857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
8858 (eval $ac_link) 2>&5
8859 ac_status=$?
daa2886c 8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8861 (exit $ac_status); } &&
8862 { ac_try='test -s conftest$ac_exeext'
daa2886c 8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
8864 (eval $ac_try) 2>&5
8865 ac_status=$?
daa2886c 8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8867 (exit $ac_status); }; }; then
8868 ac_cv_lib_curses_waddch=yes
8869else
8870 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8871sed 's/^/| /' conftest.$ac_ext >&5
8872
f5818d2f
AJ
8873ac_cv_lib_curses_waddch=no
8874fi
8875rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8876LIBS=$ac_check_lib_save_LIBS
8877fi
daa2886c 8878echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
f5818d2f
AJ
8879echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
8880if test $ac_cv_lib_curses_waddch = yes; then
8881
daa2886c 8882cat >>confdefs.h <<\_ACEOF
48957684 8883#define HAVE_LIBCURSES 1
daa2886c 8884_ACEOF
e884f9ca 8885
48957684 8886 CURSESLIBS="-lcurses"
638f169b
AJ
8887fi
8888
638f169b 8889fi
daa2886c 8890
ed2f19a6 8891done
638f169b
AJ
8892
8893fi
48957684 8894
48957684 8895fi
daa2886c 8896
ed2f19a6 8897done
f544507b 8898
48957684
AJ
8899 saved_libs="$LIBS"
8900 LIBS="$CURSESLIBS $LIBS"
f5818d2f 8901
daa2886c 8902
f5818d2f 8903for ac_func in getbkgd resizeterm
ed2f19a6 8904do
f5818d2f 8905as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
daa2886c 8906echo "$as_me:$LINENO: checking for $ac_func" >&5
f5818d2f
AJ
8907echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8908if eval "test \"\${$as_ac_var+set}\" = set"; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8910else
8911 cat >conftest.$ac_ext <<_ACEOF
daa2886c 8912#line $LINENO "configure"
e24bcc77
AJ
8913/* confdefs.h. */
8914_ACEOF
8915cat confdefs.h >>conftest.$ac_ext
8916cat >>conftest.$ac_ext <<_ACEOF
8917/* end confdefs.h. */
ed2f19a6 8918/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
8919 which can conflict with char $ac_func (); below.
8920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8921 <limits.h> exists even on freestanding compilers. */
8922#ifdef __STDC__
8923# include <limits.h>
8924#else
8925# include <assert.h>
8926#endif
f544507b 8927/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
8928#ifdef __cplusplus
8929extern "C"
e24bcc77 8930{
f5818d2f 8931#endif
f544507b 8932/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
8933 builtin and then its argument prototype would still apply. */
8934char $ac_func ();
ed2f19a6
AJ
8935/* The GNU C library defines this for functions which it implements
8936 to always fail with ENOSYS. Some functions are actually named
8937 something starting with __ and the normal name is an alias. */
8938#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8939choke me
8940#else
e24bcc77
AJ
8941char (*f) () = $ac_func;
8942#endif
8943#ifdef __cplusplus
8944}
ed2f19a6
AJ
8945#endif
8946
e24bcc77
AJ
8947int
8948main ()
8949{
8950return f != $ac_func;
f5818d2f
AJ
8951 ;
8952 return 0;
8953}
8954_ACEOF
8955rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 8956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
8957 (eval $ac_link) 2>&5
8958 ac_status=$?
daa2886c 8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8960 (exit $ac_status); } &&
8961 { ac_try='test -s conftest$ac_exeext'
daa2886c 8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
8963 (eval $ac_try) 2>&5
8964 ac_status=$?
daa2886c 8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8966 (exit $ac_status); }; }; then
8967 eval "$as_ac_var=yes"
8968else
8969 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8970sed 's/^/| /' conftest.$ac_ext >&5
8971
f5818d2f
AJ
8972eval "$as_ac_var=no"
8973fi
8974rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8975fi
daa2886c 8976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f5818d2f
AJ
8977echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8978if test `eval echo '${'$as_ac_var'}'` = yes; then
daa2886c 8979 cat >>confdefs.h <<_ACEOF
f5818d2f 8980#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 8981_ACEOF
ed2f19a6 8982
e884f9ca 8983fi
ed2f19a6 8984done
e884f9ca 8985
48957684 8986 LIBS="$saved_libs"
e884f9ca
JP
8987fi
8988
daa2886c 8989
6b0720f5
SQH
8990# Extract the first word of "sane-config", so it can be a program name with args.
8991set dummy sane-config; ac_word=$2
daa2886c 8992echo "$as_me:$LINENO: checking for $ac_word" >&5
6b0720f5
SQH
8993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8994if test "${ac_cv_prog_sane_devel+set}" = set; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8996else
8997 if test -n "$sane_devel"; then
8998 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8999else
daa2886c
AJ
9000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001for as_dir in $PATH
9002do
9003 IFS=$as_save_IFS
9004 test -z "$as_dir" && as_dir=.
9005 for ac_exec_ext in '' $ac_executable_extensions; do
9006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9007 ac_cv_prog_sane_devel="sane-config"
9008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9009 break 2
9010 fi
9011done
6b0720f5
SQH
9012done
9013
9014 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9015fi
9016fi
9017sane_devel=$ac_cv_prog_sane_devel
9018if test -n "$sane_devel"; then
daa2886c 9019 echo "$as_me:$LINENO: result: $sane_devel" >&5
6b0720f5
SQH
9020echo "${ECHO_T}$sane_devel" >&6
9021else
daa2886c 9022 echo "$as_me:$LINENO: result: no" >&5
6b0720f5
SQH
9023echo "${ECHO_T}no" >&6
9024fi
9025
9026if test "$sane_devel" = "no"
9027then
9028 SANELIBS=""
9029 SANEINCL=""
9030else
9031 SANELIBS="`$sane_devel --libs`"
9032 SANEINCL="`$sane_devel --cflags`"
9033 ac_save_CPPFLAGS="$CPPFLAGS"
9034 ac_save_LIBS="$LIBS"
9035 CPPFLAGS="$CPPFLAGS $SANEINCL"
9036 LIBS="$LIBS $SANELIBS"
daa2886c
AJ
9037 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9038 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
6b0720f5
SQH
9039echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9040if test "${ac_cv_header_sane_sane_h+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c
AJ
9042fi
9043echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9044echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
6b0720f5 9045else
daa2886c
AJ
9046 # Is the header compilable?
9047echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9048echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9049cat >conftest.$ac_ext <<_ACEOF
9050#line $LINENO "configure"
e24bcc77
AJ
9051/* confdefs.h. */
9052_ACEOF
9053cat confdefs.h >>conftest.$ac_ext
9054cat >>conftest.$ac_ext <<_ACEOF
9055/* end confdefs.h. */
daa2886c
AJ
9056$ac_includes_default
9057#include <sane/sane.h>
9058_ACEOF
9059rm -f conftest.$ac_objext
9060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9061 (eval $ac_compile) 2>&5
9062 ac_status=$?
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); } &&
9065 { ac_try='test -s conftest.$ac_objext'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 (eval $ac_try) 2>&5
9068 ac_status=$?
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; }; then
9071 ac_header_compiler=yes
9072else
9073 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9074sed 's/^/| /' conftest.$ac_ext >&5
9075
daa2886c
AJ
9076ac_header_compiler=no
9077fi
9078rm -f conftest.$ac_objext conftest.$ac_ext
9079echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9080echo "${ECHO_T}$ac_header_compiler" >&6
9081
9082# Is the header present?
9083echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9084echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9085cat >conftest.$ac_ext <<_ACEOF
9086#line $LINENO "configure"
e24bcc77
AJ
9087/* confdefs.h. */
9088_ACEOF
9089cat confdefs.h >>conftest.$ac_ext
9090cat >>conftest.$ac_ext <<_ACEOF
9091/* end confdefs.h. */
6b0720f5
SQH
9092#include <sane/sane.h>
9093_ACEOF
daa2886c 9094if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6b0720f5
SQH
9095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9096 ac_status=$?
11af04e3 9097 grep -v '^ *+' conftest.er1 >conftest.err
6b0720f5
SQH
9098 rm -f conftest.er1
9099 cat conftest.err >&5
daa2886c 9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6b0720f5
SQH
9101 (exit $ac_status); } >/dev/null; then
9102 if test -s conftest.err; then
9103 ac_cpp_err=$ac_c_preproc_warn_flag
9104 else
9105 ac_cpp_err=
9106 fi
9107else
9108 ac_cpp_err=yes
9109fi
9110if test -z "$ac_cpp_err"; then
daa2886c 9111 ac_header_preproc=yes
6b0720f5
SQH
9112else
9113 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9114sed 's/^/| /' conftest.$ac_ext >&5
9115
daa2886c 9116 ac_header_preproc=no
6b0720f5
SQH
9117fi
9118rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
9119echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9120echo "${ECHO_T}$ac_header_preproc" >&6
9121
9122# So? What about this header?
9123case $ac_header_compiler:$ac_header_preproc in
9124 yes:no )
9125 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9126echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9127 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
9128echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9129 (
9130 cat <<\_ASBOX
9131## ------------------------------------ ##
9132## Report this to bug-autoconf@gnu.org. ##
9133## ------------------------------------ ##
9134_ASBOX
9135 ) |
9136 sed "s/^/$as_me: WARNING: /" >&2
9137 ;;
daa2886c
AJ
9138 no:yes )
9139 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9140echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9141 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
9142echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
9143 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
9144echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9145 (
9146 cat <<\_ASBOX
9147## ------------------------------------ ##
9148## Report this to bug-autoconf@gnu.org. ##
9149## ------------------------------------ ##
9150_ASBOX
9151 ) |
9152 sed "s/^/$as_me: WARNING: /" >&2
9153 ;;
daa2886c
AJ
9154esac
9155echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9156echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9157if test "${ac_cv_header_sane_sane_h+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9159else
9160 ac_cv_header_sane_sane_h=$ac_header_preproc
6b0720f5 9161fi
daa2886c 9162echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
6b0720f5 9163echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
daa2886c
AJ
9164
9165fi
6b0720f5 9166if test $ac_cv_header_sane_sane_h = yes; then
daa2886c 9167 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
6b0720f5
SQH
9168echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9169if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9171else
9172 ac_check_lib_save_LIBS=$LIBS
9173LIBS="-lsane $LIBS"
9174cat >conftest.$ac_ext <<_ACEOF
daa2886c 9175#line $LINENO "configure"
e24bcc77
AJ
9176/* confdefs.h. */
9177_ACEOF
9178cat confdefs.h >>conftest.$ac_ext
9179cat >>conftest.$ac_ext <<_ACEOF
9180/* end confdefs.h. */
6b0720f5
SQH
9181
9182/* Override any gcc2 internal prototype to avoid an error. */
9183#ifdef __cplusplus
9184extern "C"
9185#endif
9186/* We use char because int might match the return type of a gcc2
9187 builtin and then its argument prototype would still apply. */
9188char sane_open ();
9189int
9190main ()
9191{
9192sane_open ();
9193 ;
9194 return 0;
9195}
9196_ACEOF
9197rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 9198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6b0720f5
SQH
9199 (eval $ac_link) 2>&5
9200 ac_status=$?
daa2886c 9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6b0720f5
SQH
9202 (exit $ac_status); } &&
9203 { ac_try='test -s conftest$ac_exeext'
daa2886c 9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6b0720f5
SQH
9205 (eval $ac_try) 2>&5
9206 ac_status=$?
daa2886c 9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6b0720f5
SQH
9208 (exit $ac_status); }; }; then
9209 ac_cv_lib_sane_sane_open=yes
9210else
9211 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9212sed 's/^/| /' conftest.$ac_ext >&5
9213
6b0720f5
SQH
9214ac_cv_lib_sane_sane_open=no
9215fi
9216rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9217LIBS=$ac_check_lib_save_LIBS
9218fi
daa2886c 9219echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
6b0720f5
SQH
9220echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9221if test $ac_cv_lib_sane_sane_open = yes; then
9222
daa2886c 9223cat >>confdefs.h <<\_ACEOF
6b0720f5 9224#define HAVE_SANE 1
daa2886c 9225_ACEOF
6b0720f5
SQH
9226
9227else
9228 SANELIBS=""
96328b37 9229 SANEINCL=""
6b0720f5
SQH
9230fi
9231
96328b37
AJ
9232else
9233 SANELIBS=""
9234 SANEINCL=""
6b0720f5
SQH
9235fi
9236
daa2886c 9237
6b0720f5
SQH
9238 LIBS="$ac_save_LIBS"
9239 CPPFLAGS="$ac_save_CPPFLAGS"
9240fi
9241
daa2886c
AJ
9242
9243
9244echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
f5818d2f
AJ
9245echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9246if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9247 echo $ECHO_N "(cached) $ECHO_C" >&6
563598d4 9248else
f5818d2f 9249 ac_check_lib_save_LIBS=$LIBS
8871a11b 9250LIBS="-lfreetype $X_LIBS $LIBS"
f5818d2f 9251cat >conftest.$ac_ext <<_ACEOF
daa2886c 9252#line $LINENO "configure"
e24bcc77
AJ
9253/* confdefs.h. */
9254_ACEOF
9255cat confdefs.h >>conftest.$ac_ext
9256cat >>conftest.$ac_ext <<_ACEOF
9257/* end confdefs.h. */
f5818d2f 9258
563598d4 9259/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
9260#ifdef __cplusplus
9261extern "C"
9262#endif
563598d4 9263/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
9264 builtin and then its argument prototype would still apply. */
9265char FT_Init_FreeType ();
9266int
9267main ()
9268{
9269FT_Init_FreeType ();
9270 ;
9271 return 0;
9272}
9273_ACEOF
9274rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 9275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
9276 (eval $ac_link) 2>&5
9277 ac_status=$?
daa2886c 9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
9279 (exit $ac_status); } &&
9280 { ac_try='test -s conftest$ac_exeext'
daa2886c 9281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
9282 (eval $ac_try) 2>&5
9283 ac_status=$?
daa2886c 9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
9285 (exit $ac_status); }; }; then
9286 ac_cv_lib_freetype_FT_Init_FreeType=yes
9287else
9288 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9289sed 's/^/| /' conftest.$ac_ext >&5
9290
f5818d2f
AJ
9291ac_cv_lib_freetype_FT_Init_FreeType=no
9292fi
9293rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9294LIBS=$ac_check_lib_save_LIBS
9295fi
daa2886c 9296echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
f5818d2f
AJ
9297echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
9298if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
563598d4
IP
9299 ft_lib=yes
9300else
f5818d2f 9301 ft_lib=no
563598d4
IP
9302fi
9303
9304if test "$ft_lib" = "no"
9305then
563598d4
IP
9306 FREETYPEINCL=""
9307 wine_cv_msg_freetype=no
9308else
9309 # Extract the first word of "freetype-config", so it can be a program name with args.
9310set dummy freetype-config; ac_word=$2
daa2886c 9311echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
9312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9313if test "${ac_cv_prog_ft_devel+set}" = set; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
563598d4
IP
9315else
9316 if test -n "$ft_devel"; then
9317 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9318else
daa2886c
AJ
9319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9320for as_dir in $PATH
9321do
9322 IFS=$as_save_IFS
9323 test -z "$as_dir" && as_dir=.
9324 for ac_exec_ext in '' $ac_executable_extensions; do
9325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9326 ac_cv_prog_ft_devel="freetype-config"
9327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9328 break 2
9329 fi
9330done
f5818d2f
AJ
9331done
9332
563598d4
IP
9333 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
9334fi
9335fi
f5818d2f 9336ft_devel=$ac_cv_prog_ft_devel
563598d4 9337if test -n "$ft_devel"; then
daa2886c 9338 echo "$as_me:$LINENO: result: $ft_devel" >&5
f5818d2f 9339echo "${ECHO_T}$ft_devel" >&6
563598d4 9340else
daa2886c 9341 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 9342echo "${ECHO_T}no" >&6
563598d4
IP
9343fi
9344
d28955d8
MM
9345 if test "$ft_devel" = "no"
9346 then
9347 # Extract the first word of "freetype2-config", so it can be a program name with args.
9348set dummy freetype2-config; ac_word=$2
daa2886c 9349echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
9350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9351if test "${ac_cv_prog_ft_devel2+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
d28955d8
MM
9353else
9354 if test -n "$ft_devel2"; then
9355 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9356else
daa2886c
AJ
9357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358for as_dir in $PATH
9359do
9360 IFS=$as_save_IFS
9361 test -z "$as_dir" && as_dir=.
9362 for ac_exec_ext in '' $ac_executable_extensions; do
9363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9364 ac_cv_prog_ft_devel2="freetype2-config"
9365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9366 break 2
9367 fi
9368done
f5818d2f
AJ
9369done
9370
d28955d8
MM
9371 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9372fi
9373fi
f5818d2f 9374ft_devel2=$ac_cv_prog_ft_devel2
d28955d8 9375if test -n "$ft_devel2"; then
daa2886c 9376 echo "$as_me:$LINENO: result: $ft_devel2" >&5
f5818d2f 9377echo "${ECHO_T}$ft_devel2" >&6
d28955d8 9378else
daa2886c 9379 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 9380echo "${ECHO_T}no" >&6
d28955d8
MM
9381fi
9382
9383 if test "$ft_devel2" = "freetype2-config"
9384 then
9385 ft_devel=$ft_devel2
9386 fi
9387 fi
563598d4
IP
9388 if test "$ft_devel" = "no"
9389 then
563598d4
IP
9390 FREETYPEINCL=""
9391 wine_cv_msg_freetype=yes
9392 else
d28955d8 9393 FREETYPEINCL=`$ft_devel --cflags`
40432fef
IP
9394 ac_save_CPPFLAGS="$CPPFLAGS"
9395 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
f5818d2f 9396
daa2886c
AJ
9397
9398
9399
9400
9401
9402
9403
f5818d2f 9404for ac_header in freetype/freetype.h \
40432fef
IP
9405 freetype/ftglyph.h \
9406 freetype/tttables.h \
9407 freetype/ftnames.h \
9408 freetype/ftsnames.h \
814654ef 9409 freetype/ttnameid.h \
4e2024e8
HD
9410 freetype/ftoutln.h \
9411 freetype/internal/sfnt.h
40432fef 9412do
f5818d2f 9413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c
AJ
9414if eval "test \"\${$as_ac_Header+set}\" = set"; then
9415 echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
9416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9417if eval "test \"\${$as_ac_Header+set}\" = set"; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c
AJ
9419fi
9420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9421echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f5818d2f 9422else
daa2886c
AJ
9423 # Is the header compilable?
9424echo "$as_me:$LINENO: checking $ac_header usability" >&5
9425echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9426cat >conftest.$ac_ext <<_ACEOF
9427#line $LINENO "configure"
e24bcc77
AJ
9428/* confdefs.h. */
9429_ACEOF
9430cat confdefs.h >>conftest.$ac_ext
9431cat >>conftest.$ac_ext <<_ACEOF
9432/* end confdefs.h. */
daa2886c
AJ
9433$ac_includes_default
9434#include <$ac_header>
9435_ACEOF
9436rm -f conftest.$ac_objext
9437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9438 (eval $ac_compile) 2>&5
9439 ac_status=$?
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } &&
9442 { ac_try='test -s conftest.$ac_objext'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 (eval $ac_try) 2>&5
9445 ac_status=$?
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; }; then
9448 ac_header_compiler=yes
9449else
9450 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9451sed 's/^/| /' conftest.$ac_ext >&5
9452
daa2886c
AJ
9453ac_header_compiler=no
9454fi
9455rm -f conftest.$ac_objext conftest.$ac_ext
9456echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9457echo "${ECHO_T}$ac_header_compiler" >&6
9458
9459# Is the header present?
9460echo "$as_me:$LINENO: checking $ac_header presence" >&5
9461echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9462cat >conftest.$ac_ext <<_ACEOF
9463#line $LINENO "configure"
e24bcc77
AJ
9464/* confdefs.h. */
9465_ACEOF
9466cat confdefs.h >>conftest.$ac_ext
9467cat >>conftest.$ac_ext <<_ACEOF
9468/* end confdefs.h. */
f5818d2f
AJ
9469#include <$ac_header>
9470_ACEOF
daa2886c 9471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
9472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9473 ac_status=$?
11af04e3 9474 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
9475 rm -f conftest.er1
9476 cat conftest.err >&5
daa2886c 9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
9478 (exit $ac_status); } >/dev/null; then
9479 if test -s conftest.err; then
9480 ac_cpp_err=$ac_c_preproc_warn_flag
9481 else
9482 ac_cpp_err=
9483 fi
9484else
9485 ac_cpp_err=yes
9486fi
9487if test -z "$ac_cpp_err"; then
daa2886c 9488 ac_header_preproc=yes
f5818d2f
AJ
9489else
9490 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9491sed 's/^/| /' conftest.$ac_ext >&5
9492
daa2886c 9493 ac_header_preproc=no
40432fef 9494fi
f5818d2f 9495rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
9496echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9497echo "${ECHO_T}$ac_header_preproc" >&6
9498
9499# So? What about this header?
9500case $ac_header_compiler:$ac_header_preproc in
9501 yes:no )
9502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9503echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
9505echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9506 (
9507 cat <<\_ASBOX
9508## ------------------------------------ ##
9509## Report this to bug-autoconf@gnu.org. ##
9510## ------------------------------------ ##
9511_ASBOX
9512 ) |
9513 sed "s/^/$as_me: WARNING: /" >&2
9514 ;;
daa2886c
AJ
9515 no:yes )
9516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9517echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9519echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
9521echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9522 (
9523 cat <<\_ASBOX
9524## ------------------------------------ ##
9525## Report this to bug-autoconf@gnu.org. ##
9526## ------------------------------------ ##
9527_ASBOX
9528 ) |
9529 sed "s/^/$as_me: WARNING: /" >&2
9530 ;;
daa2886c
AJ
9531esac
9532echo "$as_me:$LINENO: checking for $ac_header" >&5
9533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9534if eval "test \"\${$as_ac_Header+set}\" = set"; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9536else
9537 eval "$as_ac_Header=$ac_header_preproc"
40432fef 9538fi
daa2886c 9539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 9540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
9541
9542fi
f5818d2f 9543if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 9544 cat >>confdefs.h <<_ACEOF
f5818d2f 9545#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 9546_ACEOF
f5818d2f 9547
40432fef 9548fi
daa2886c 9549
40432fef
IP
9550done
9551
f5818d2f 9552 cat >conftest.$ac_ext <<_ACEOF
daa2886c 9553#line $LINENO "configure"
e24bcc77
AJ
9554/* confdefs.h. */
9555_ACEOF
9556cat confdefs.h >>conftest.$ac_ext
9557cat >>conftest.$ac_ext <<_ACEOF
9558/* end confdefs.h. */
18d7573c
AJ
9559#include <ft2build.h>
9560 #include <freetype/fttrigon.h>
f5818d2f 9561_ACEOF
daa2886c 9562if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
9563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9564 ac_status=$?
11af04e3 9565 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
9566 rm -f conftest.er1
9567 cat conftest.err >&5
daa2886c 9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
9569 (exit $ac_status); } >/dev/null; then
9570 if test -s conftest.err; then
9571 ac_cpp_err=$ac_c_preproc_warn_flag
9572 else
9573 ac_cpp_err=
9574 fi
9575else
9576 ac_cpp_err=yes
9577fi
9578if test -z "$ac_cpp_err"; then
9579
daa2886c 9580cat >>confdefs.h <<\_ACEOF
18d7573c 9581#define HAVE_FREETYPE_FTTRIGON_H 1
daa2886c 9582_ACEOF
18d7573c 9583
c1d38132 9584 wine_cv_fttrigon=yes
18d7573c 9585else
f5818d2f 9586 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9587sed 's/^/| /' conftest.$ac_ext >&5
9588
c1d38132 9589 wine_cv_fttrigon=no
18d7573c 9590fi
f5818d2f 9591rm -f conftest.err conftest.$ac_ext
40432fef 9592 CPPFLAGS="$ac_save_CPPFLAGS"
c1d38132 9593 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
9b1d3726 9594 then
f5818d2f 9595
daa2886c 9596cat >>confdefs.h <<\_ACEOF
9b1d3726 9597#define HAVE_FREETYPE 1
daa2886c 9598_ACEOF
9b1d3726
HD
9599
9600 wine_cv_msg_freetype=no
9601 else
9b1d3726
HD
9602 FREETYPEINCL=""
9603 wine_cv_msg_freetype=yes
9604 fi
563598d4
IP
9605 fi
9606fi
9607
daa2886c
AJ
9608
9609echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
f5818d2f
AJ
9610echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9611if test "${ac_cv_c_ppdev+set}" = set; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
6509fa93 9613else
f5818d2f 9614 cat >conftest.$ac_ext <<_ACEOF
daa2886c 9615#line $LINENO "configure"
e24bcc77
AJ
9616/* confdefs.h. */
9617_ACEOF
9618cat confdefs.h >>conftest.$ac_ext
9619cat >>conftest.$ac_ext <<_ACEOF
9620/* end confdefs.h. */
6509fa93 9621#include <linux/ppdev.h>
f5818d2f
AJ
9622int
9623main ()
9624{
6509fa93 9625ioctl (1,PPCLAIM,0)
f5818d2f
AJ
9626 ;
9627 return 0;
9628}
9629_ACEOF
9630rm -f conftest.$ac_objext
daa2886c 9631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
9632 (eval $ac_compile) 2>&5
9633 ac_status=$?
daa2886c 9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
9635 (exit $ac_status); } &&
9636 { ac_try='test -s conftest.$ac_objext'
daa2886c 9637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
9638 (eval $ac_try) 2>&5
9639 ac_status=$?
daa2886c 9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 9641 (exit $ac_status); }; }; then
6509fa93
UB
9642 ac_cv_c_ppdev="yes"
9643else
f5818d2f 9644 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9645sed 's/^/| /' conftest.$ac_ext >&5
9646
f5818d2f 9647ac_cv_c_ppdev="no"
6509fa93 9648fi
f5818d2f 9649rm -f conftest.$ac_objext conftest.$ac_ext
6509fa93 9650
f5818d2f 9651fi
daa2886c 9652echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
f5818d2f 9653echo "${ECHO_T}$ac_cv_c_ppdev" >&6
6509fa93
UB
9654if test "$ac_cv_c_ppdev" = "yes"
9655then
f5818d2f 9656
daa2886c 9657cat >>confdefs.h <<\_ACEOF
6509fa93 9658#define HAVE_PPDEV 1
daa2886c 9659_ACEOF
6509fa93
UB
9660
9661fi
9662
5ee517ac
MM
9663echo "$as_me:$LINENO: checking for va_copy" >&5
9664echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9665if test "${ac_cv_c_va_copy+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667else
9668 cat >conftest.$ac_ext <<_ACEOF
9669#line $LINENO "configure"
e24bcc77
AJ
9670/* confdefs.h. */
9671_ACEOF
9672cat confdefs.h >>conftest.$ac_ext
9673cat >>conftest.$ac_ext <<_ACEOF
9674/* end confdefs.h. */
5ee517ac 9675#include <stdarg.h>
5ee517ac
MM
9676int
9677main ()
9678{
9679va_list ap1, ap2;
9680 va_copy(ap1,ap2);
9681
9682 ;
9683 return 0;
9684}
9685_ACEOF
9686rm -f conftest.$ac_objext conftest$ac_exeext
9687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9688 (eval $ac_link) 2>&5
9689 ac_status=$?
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
9692 { ac_try='test -s conftest$ac_exeext'
9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694 (eval $ac_try) 2>&5
9695 ac_status=$?
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; }; then
9698 ac_cv_c_va_copy="yes"
9699else
9700 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9701sed 's/^/| /' conftest.$ac_ext >&5
9702
5ee517ac
MM
9703ac_cv_c_va_copy="no"
9704fi
9705rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9706
9707fi
9708echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
9709echo "${ECHO_T}$ac_cv_c_va_copy" >&6
9710if test "$ac_cv_c_va_copy" = "yes"
9711then
9712
9713cat >>confdefs.h <<\_ACEOF
9714#define HAVE_VA_COPY 1
9715_ACEOF
9716
9717fi
9718echo "$as_me:$LINENO: checking for __va_copy" >&5
9719echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9720if test "${ac_cv_c___va_copy+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9722else
9723 cat >conftest.$ac_ext <<_ACEOF
9724#line $LINENO "configure"
e24bcc77
AJ
9725/* confdefs.h. */
9726_ACEOF
9727cat confdefs.h >>conftest.$ac_ext
9728cat >>conftest.$ac_ext <<_ACEOF
9729/* end confdefs.h. */
5ee517ac 9730#include <stdarg.h>
5ee517ac
MM
9731int
9732main ()
9733{
9734va_list ap1, ap2;
9735 __va_copy(ap1,ap2);
9736
9737 ;
9738 return 0;
9739}
9740_ACEOF
9741rm -f conftest.$ac_objext conftest$ac_exeext
9742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9743 (eval $ac_link) 2>&5
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } &&
9747 { ac_try='test -s conftest$ac_exeext'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 (eval $ac_try) 2>&5
9750 ac_status=$?
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
9753 ac_cv_c___va_copy="yes"
9754else
9755 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9756sed 's/^/| /' conftest.$ac_ext >&5
9757
5ee517ac
MM
9758ac_cv_c___va_copy="no"
9759fi
9760rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9761
9762fi
9763echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
9764echo "${ECHO_T}$ac_cv_c___va_copy" >&6
9765if test "$ac_cv_c___va_copy" = "yes"
9766then
9767
9768cat >>confdefs.h <<\_ACEOF
9769#define HAVE___VA_COPY 1
9770_ACEOF
9771
9772fi
9773
daa2886c
AJ
9774
9775
9776
9777for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
9778do
9779as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9780if eval "test \"\${$as_ac_Header+set}\" = set"; then
9781 echo "$as_me:$LINENO: checking for $ac_header" >&5
9782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9783if eval "test \"\${$as_ac_Header+set}\" = set"; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9785fi
9786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9787echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9788else
9789 # Is the header compilable?
9790echo "$as_me:$LINENO: checking $ac_header usability" >&5
9791echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9792cat >conftest.$ac_ext <<_ACEOF
9793#line $LINENO "configure"
e24bcc77
AJ
9794/* confdefs.h. */
9795_ACEOF
9796cat confdefs.h >>conftest.$ac_ext
9797cat >>conftest.$ac_ext <<_ACEOF
9798/* end confdefs.h. */
daa2886c
AJ
9799$ac_includes_default
9800#include <$ac_header>
9801_ACEOF
9802rm -f conftest.$ac_objext
9803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9804 (eval $ac_compile) 2>&5
9805 ac_status=$?
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } &&
9808 { ac_try='test -s conftest.$ac_objext'
9809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810 (eval $ac_try) 2>&5
9811 ac_status=$?
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9814 ac_header_compiler=yes
9815else
9816 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9817sed 's/^/| /' conftest.$ac_ext >&5
9818
daa2886c
AJ
9819ac_header_compiler=no
9820fi
9821rm -f conftest.$ac_objext conftest.$ac_ext
9822echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9823echo "${ECHO_T}$ac_header_compiler" >&6
9824
9825# Is the header present?
9826echo "$as_me:$LINENO: checking $ac_header presence" >&5
9827echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9828cat >conftest.$ac_ext <<_ACEOF
9829#line $LINENO "configure"
e24bcc77
AJ
9830/* confdefs.h. */
9831_ACEOF
9832cat confdefs.h >>conftest.$ac_ext
9833cat >>conftest.$ac_ext <<_ACEOF
9834/* end confdefs.h. */
f5818d2f
AJ
9835#include <$ac_header>
9836_ACEOF
daa2886c 9837if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
9838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9839 ac_status=$?
11af04e3 9840 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
9841 rm -f conftest.er1
9842 cat conftest.err >&5
daa2886c 9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
9844 (exit $ac_status); } >/dev/null; then
9845 if test -s conftest.err; then
9846 ac_cpp_err=$ac_c_preproc_warn_flag
9847 else
9848 ac_cpp_err=
9849 fi
9850else
9851 ac_cpp_err=yes
9852fi
9853if test -z "$ac_cpp_err"; then
daa2886c 9854 ac_header_preproc=yes
f5818d2f
AJ
9855else
9856 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9857sed 's/^/| /' conftest.$ac_ext >&5
9858
daa2886c 9859 ac_header_preproc=no
0623a6f3 9860fi
f5818d2f 9861rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
9862echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9863echo "${ECHO_T}$ac_header_preproc" >&6
9864
9865# So? What about this header?
9866case $ac_header_compiler:$ac_header_preproc in
9867 yes:no )
9868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9869echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
9871echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9872 (
9873 cat <<\_ASBOX
9874## ------------------------------------ ##
9875## Report this to bug-autoconf@gnu.org. ##
9876## ------------------------------------ ##
9877_ASBOX
9878 ) |
9879 sed "s/^/$as_me: WARNING: /" >&2
9880 ;;
daa2886c
AJ
9881 no:yes )
9882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
9887echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9888 (
9889 cat <<\_ASBOX
9890## ------------------------------------ ##
9891## Report this to bug-autoconf@gnu.org. ##
9892## ------------------------------------ ##
9893_ASBOX
9894 ) |
9895 sed "s/^/$as_me: WARNING: /" >&2
9896 ;;
daa2886c
AJ
9897esac
9898echo "$as_me:$LINENO: checking for $ac_header" >&5
9899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9900if eval "test \"\${$as_ac_Header+set}\" = set"; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9902else
9903 eval "$as_ac_Header=$ac_header_preproc"
0623a6f3 9904fi
daa2886c 9905echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 9906echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
9907
9908fi
f5818d2f 9909if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 9910 cat >>confdefs.h <<_ACEOF
f5818d2f 9911#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 9912_ACEOF
ecc7669d 9913 break
c7c217b3 9914fi
daa2886c 9915
c7c217b3 9916done
0623a6f3 9917
daa2886c
AJ
9918
9919echo "$as_me:$LINENO: checking for Open Sound System" >&5
f5818d2f
AJ
9920echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
9921if test "${ac_cv_c_opensoundsystem+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
a69b88b2 9923else
f5818d2f 9924 cat >conftest.$ac_ext <<_ACEOF
daa2886c 9925#line $LINENO "configure"
e24bcc77
AJ
9926/* confdefs.h. */
9927_ACEOF
9928cat confdefs.h >>conftest.$ac_ext
9929cat >>conftest.$ac_ext <<_ACEOF
9930/* end confdefs.h. */
c7c217b3 9931
ecc7669d 9932 #if defined(HAVE_SYS_SOUNDCARD_H)
c7c217b3 9933 #include <sys/soundcard.h>
ecc7669d 9934 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
c7c217b3 9935 #include <machine/soundcard.h>
ecc7669d
TV
9936 #elif defined(HAVE_SOUNDCARD_H)
9937 #include <soundcard.h>
c7c217b3 9938 #endif
a69b88b2 9939
f5818d2f
AJ
9940int
9941main ()
9942{
c7c217b3 9943
daa2886c 9944
a69b88b2
AJ
9945/* check for one of the Open Sound System specific SNDCTL_ defines */
9946#if !defined(SNDCTL_DSP_STEREO)
9947#error No open sound system
9948#endif
9949
f5818d2f
AJ
9950 ;
9951 return 0;
9952}
9953_ACEOF
9954rm -f conftest.$ac_objext
daa2886c 9955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
9956 (eval $ac_compile) 2>&5
9957 ac_status=$?
daa2886c 9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
9959 (exit $ac_status); } &&
9960 { ac_try='test -s conftest.$ac_objext'
daa2886c 9961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
9962 (eval $ac_try) 2>&5
9963 ac_status=$?
daa2886c 9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 9965 (exit $ac_status); }; }; then
c7c217b3 9966 ac_cv_c_opensoundsystem="yes"
a69b88b2 9967else
f5818d2f 9968 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9969sed 's/^/| /' conftest.$ac_ext >&5
9970
f5818d2f 9971ac_cv_c_opensoundsystem="no"
a69b88b2 9972fi
f5818d2f 9973rm -f conftest.$ac_objext conftest.$ac_ext
a69b88b2 9974fi
daa2886c 9975echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
f5818d2f 9976echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
0623a6f3 9977
dadf78ff
AJ
9978if test "$ac_cv_c_opensoundsystem" = "yes"
9979then
f5818d2f 9980
daa2886c 9981cat >>confdefs.h <<\_ACEOF
dadf78ff 9982#define HAVE_OSS 1
daa2886c 9983_ACEOF
dadf78ff
AJ
9984
9985fi
9986
daa2886c 9987echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
f5818d2f
AJ
9988echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
9989if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
338d3b2d 9991else
f5818d2f 9992 cat >conftest.$ac_ext <<_ACEOF
daa2886c 9993#line $LINENO "configure"
e24bcc77
AJ
9994/* confdefs.h. */
9995_ACEOF
9996cat confdefs.h >>conftest.$ac_ext
9997cat >>conftest.$ac_ext <<_ACEOF
9998/* end confdefs.h. */
338d3b2d
EP
9999
10000 #if defined(HAVE_SYS_SOUNDCARD_H)
10001 #include <sys/soundcard.h>
10002 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10003 #include <machine/soundcard.h>
10004 #elif defined(HAVE_SOUNDCARD_H)
10005 #include <soundcard.h>
10006 #endif
338d3b2d 10007
f5818d2f
AJ
10008int
10009main ()
10010{
338d3b2d 10011
daa2886c 10012
338d3b2d
EP
10013/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
10014#if !defined(SNDCTL_SEQ_SYNC)
10015#error No open sound system MIDI interface
10016#endif
10017
f5818d2f
AJ
10018 ;
10019 return 0;
10020}
10021_ACEOF
10022rm -f conftest.$ac_objext
daa2886c 10023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
10024 (eval $ac_compile) 2>&5
10025 ac_status=$?
daa2886c 10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
10027 (exit $ac_status); } &&
10028 { ac_try='test -s conftest.$ac_objext'
daa2886c 10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
10030 (eval $ac_try) 2>&5
10031 ac_status=$?
daa2886c 10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10033 (exit $ac_status); }; }; then
338d3b2d
EP
10034 ac_cv_c_opensoundsystem_midi="yes"
10035else
f5818d2f 10036 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10037sed 's/^/| /' conftest.$ac_ext >&5
10038
f5818d2f 10039ac_cv_c_opensoundsystem_midi="no"
338d3b2d 10040fi
f5818d2f 10041rm -f conftest.$ac_objext conftest.$ac_ext
338d3b2d 10042fi
daa2886c 10043echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
f5818d2f 10044echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
338d3b2d
EP
10045
10046if test "$ac_cv_c_opensoundsystem_midi" = "yes"
10047then
f5818d2f 10048
daa2886c 10049cat >>confdefs.h <<\_ACEOF
338d3b2d 10050#define HAVE_OSS_MIDI 1
daa2886c 10051_ACEOF
338d3b2d
EP
10052
10053fi
10054
9b0ba7ca
CM
10055# Extract the first word of "artsc-config", so it can be a program name with args.
10056set dummy artsc-config; ac_word=$2
daa2886c 10057echo "$as_me:$LINENO: checking for $ac_word" >&5
9b0ba7ca
CM
10058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10059if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10061else
10062 case $ARTSCCONFIG in
10063 [\\/]* | ?:[\\/]*)
10064 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
10065 ;;
10066 *)
daa2886c
AJ
10067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10068for as_dir in $PATH
10069do
10070 IFS=$as_save_IFS
10071 test -z "$as_dir" && as_dir=.
10072 for ac_exec_ext in '' $ac_executable_extensions; do
10073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10074 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
10075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10076 break 2
10077 fi
10078done
9b0ba7ca
CM
10079done
10080
10081 ;;
10082esac
10083fi
10084ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
10085
10086if test -n "$ARTSCCONFIG"; then
daa2886c 10087 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
9b0ba7ca
CM
10088echo "${ECHO_T}$ARTSCCONFIG" >&6
10089else
daa2886c 10090 echo "$as_me:$LINENO: result: no" >&5
9b0ba7ca
CM
10091echo "${ECHO_T}no" >&6
10092fi
10093
daa2886c 10094echo "$as_me:$LINENO: checking for aRts Sound server" >&5
9b0ba7ca
CM
10095echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
10096if test "${ac_cv_c_artsserver+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10098else
10099 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
10100 then
10101 ac_cv_c_artsserver=no
10102 else
10103 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
10104 ARTSC_LIBS=`$ARTSCCONFIG --libs`
10105 ac_cv_c_artsserver=no
10106 save_CFLAGS="$CFLAGS"
10107 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
10108 cat >conftest.$ac_ext <<_ACEOF
daa2886c 10109#line $LINENO "configure"
e24bcc77
AJ
10110/* confdefs.h. */
10111_ACEOF
10112cat confdefs.h >>conftest.$ac_ext
10113cat >>conftest.$ac_ext <<_ACEOF
10114/* end confdefs.h. */
9b0ba7ca
CM
10115
10116 #include <artsc.h>
10117
10118int
10119main ()
10120{
10121
10122 arts_stream_t stream;
10123
10124 ;
10125 return 0;
10126}
10127_ACEOF
10128rm -f conftest.$ac_objext
daa2886c 10129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9b0ba7ca
CM
10130 (eval $ac_compile) 2>&5
10131 ac_status=$?
daa2886c 10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9b0ba7ca
CM
10133 (exit $ac_status); } &&
10134 { ac_try='test -s conftest.$ac_objext'
daa2886c 10135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9b0ba7ca
CM
10136 (eval $ac_try) 2>&5
10137 ac_status=$?
daa2886c 10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9b0ba7ca
CM
10139 (exit $ac_status); }; }; then
10140
10141 ac_cv_c_artsserver=yes
10142
10143else
10144 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10145sed 's/^/| /' conftest.$ac_ext >&5
10146
9b0ba7ca
CM
10147fi
10148rm -f conftest.$ac_objext conftest.$ac_ext
10149 CFLAGS="$save_CFLAGS"
10150 fi
10151fi
daa2886c 10152echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
9b0ba7ca
CM
10153echo "${ECHO_T}$ac_cv_c_artsserver" >&6
10154
10155if test "$ac_cv_c_artsserver" = "yes"
10156then
10157 ARTSLIBS=$ARTSC_LIBS
10158
10159 ARTSINCL=$ARTSC_CFLAGS
10160
daa2886c
AJ
10161
10162
10163cat >>confdefs.h <<\_ACEOF
9b0ba7ca 10164#define HAVE_ARTS 1
daa2886c 10165_ACEOF
9b0ba7ca
CM
10166
10167fi
10168
f92b7c06
AJ
10169ALSALIBS=""
10170
10171
0e79a412
MP
10172
10173for ac_header in alsa/asoundlib.h sys/asoundlib.h
f92b7c06
AJ
10174do
10175as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10176if eval "test \"\${$as_ac_Header+set}\" = set"; then
10177 echo "$as_me:$LINENO: checking for $ac_header" >&5
10178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10179if eval "test \"\${$as_ac_Header+set}\" = set"; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10181fi
10182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10183echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10184else
10185 # Is the header compilable?
10186echo "$as_me:$LINENO: checking $ac_header usability" >&5
10187echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10188cat >conftest.$ac_ext <<_ACEOF
10189#line $LINENO "configure"
e24bcc77
AJ
10190/* confdefs.h. */
10191_ACEOF
10192cat confdefs.h >>conftest.$ac_ext
10193cat >>conftest.$ac_ext <<_ACEOF
10194/* end confdefs.h. */
f92b7c06
AJ
10195$ac_includes_default
10196#include <$ac_header>
10197_ACEOF
10198rm -f conftest.$ac_objext
10199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10200 (eval $ac_compile) 2>&5
10201 ac_status=$?
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } &&
10204 { ac_try='test -s conftest.$ac_objext'
10205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10206 (eval $ac_try) 2>&5
10207 ac_status=$?
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; }; then
10210 ac_header_compiler=yes
10211else
10212 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10213sed 's/^/| /' conftest.$ac_ext >&5
10214
f92b7c06
AJ
10215ac_header_compiler=no
10216fi
10217rm -f conftest.$ac_objext conftest.$ac_ext
10218echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10219echo "${ECHO_T}$ac_header_compiler" >&6
10220
10221# Is the header present?
10222echo "$as_me:$LINENO: checking $ac_header presence" >&5
10223echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10224cat >conftest.$ac_ext <<_ACEOF
10225#line $LINENO "configure"
e24bcc77
AJ
10226/* confdefs.h. */
10227_ACEOF
10228cat confdefs.h >>conftest.$ac_ext
10229cat >>conftest.$ac_ext <<_ACEOF
10230/* end confdefs.h. */
f92b7c06
AJ
10231#include <$ac_header>
10232_ACEOF
10233if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10235 ac_status=$?
11af04e3 10236 grep -v '^ *+' conftest.er1 >conftest.err
f92b7c06
AJ
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } >/dev/null; then
10241 if test -s conftest.err; then
10242 ac_cpp_err=$ac_c_preproc_warn_flag
10243 else
10244 ac_cpp_err=
10245 fi
10246else
10247 ac_cpp_err=yes
10248fi
10249if test -z "$ac_cpp_err"; then
10250 ac_header_preproc=yes
10251else
10252 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10253sed 's/^/| /' conftest.$ac_ext >&5
10254
f92b7c06
AJ
10255 ac_header_preproc=no
10256fi
10257rm -f conftest.err conftest.$ac_ext
10258echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10259echo "${ECHO_T}$ac_header_preproc" >&6
10260
10261# So? What about this header?
10262case $ac_header_compiler:$ac_header_preproc in
10263 yes:no )
10264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10265echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
10267echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10268 (
10269 cat <<\_ASBOX
10270## ------------------------------------ ##
10271## Report this to bug-autoconf@gnu.org. ##
10272## ------------------------------------ ##
10273_ASBOX
10274 ) |
10275 sed "s/^/$as_me: WARNING: /" >&2
10276 ;;
f92b7c06
AJ
10277 no:yes )
10278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10279echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10281echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
10283echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10284 (
10285 cat <<\_ASBOX
10286## ------------------------------------ ##
10287## Report this to bug-autoconf@gnu.org. ##
10288## ------------------------------------ ##
10289_ASBOX
10290 ) |
10291 sed "s/^/$as_me: WARNING: /" >&2
10292 ;;
f92b7c06
AJ
10293esac
10294echo "$as_me:$LINENO: checking for $ac_header" >&5
10295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10296if eval "test \"\${$as_ac_Header+set}\" = set"; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10298else
10299 eval "$as_ac_Header=$ac_header_preproc"
10300fi
10301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10302echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10303
10304fi
10305if test `eval echo '${'$as_ac_Header'}'` = yes; then
10306 cat >>confdefs.h <<_ACEOF
10307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10308_ACEOF
0e79a412 10309 break
f92b7c06
AJ
10310fi
10311
10312done
10313
0e79a412 10314if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
f92b7c06
AJ
10315then
10316 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
10317echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
10318if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10320else
10321 ac_check_lib_save_LIBS=$LIBS
10322LIBS="-lasound $LIBS"
10323cat >conftest.$ac_ext <<_ACEOF
10324#line $LINENO "configure"
e24bcc77
AJ
10325/* confdefs.h. */
10326_ACEOF
10327cat confdefs.h >>conftest.$ac_ext
10328cat >>conftest.$ac_ext <<_ACEOF
10329/* end confdefs.h. */
f92b7c06
AJ
10330
10331/* Override any gcc2 internal prototype to avoid an error. */
10332#ifdef __cplusplus
10333extern "C"
10334#endif
10335/* We use char because int might match the return type of a gcc2
10336 builtin and then its argument prototype would still apply. */
10337char snd_pcm_open ();
f92b7c06
AJ
10338int
10339main ()
10340{
10341snd_pcm_open ();
10342 ;
10343 return 0;
10344}
10345_ACEOF
10346rm -f conftest.$ac_objext conftest$ac_exeext
10347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10348 (eval $ac_link) 2>&5
10349 ac_status=$?
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } &&
10352 { ac_try='test -s conftest$ac_exeext'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10355 ac_status=$?
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; }; then
10358 ac_cv_lib_asound_snd_pcm_open=yes
10359else
10360 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10361sed 's/^/| /' conftest.$ac_ext >&5
10362
f92b7c06
AJ
10363ac_cv_lib_asound_snd_pcm_open=no
10364fi
10365rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10366LIBS=$ac_check_lib_save_LIBS
10367fi
10368echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
10369echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
10370if test $ac_cv_lib_asound_snd_pcm_open = yes; then
10371
10372cat >>confdefs.h <<\_ACEOF
10373#define HAVE_ALSA 1
10374_ACEOF
10375
10376 ALSALIBS="-lasound"
10377fi
10378
10379fi
10380
daa2886c 10381
2a91e3f9
RL
10382AUDIOIOLIBS=""
10383
10384
10385for ac_header in libaudioio.h
10386do
10387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10388if eval "test \"\${$as_ac_Header+set}\" = set"; then
10389 echo "$as_me:$LINENO: checking for $ac_header" >&5
10390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10391if eval "test \"\${$as_ac_Header+set}\" = set"; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10393fi
10394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10396else
10397 # Is the header compilable?
10398echo "$as_me:$LINENO: checking $ac_header usability" >&5
10399echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10400cat >conftest.$ac_ext <<_ACEOF
10401#line $LINENO "configure"
e24bcc77
AJ
10402/* confdefs.h. */
10403_ACEOF
10404cat confdefs.h >>conftest.$ac_ext
10405cat >>conftest.$ac_ext <<_ACEOF
10406/* end confdefs.h. */
2a91e3f9
RL
10407$ac_includes_default
10408#include <$ac_header>
10409_ACEOF
10410rm -f conftest.$ac_objext
10411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10412 (eval $ac_compile) 2>&5
10413 ac_status=$?
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } &&
10416 { ac_try='test -s conftest.$ac_objext'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; }; then
10422 ac_header_compiler=yes
10423else
10424 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10425sed 's/^/| /' conftest.$ac_ext >&5
10426
2a91e3f9
RL
10427ac_header_compiler=no
10428fi
10429rm -f conftest.$ac_objext conftest.$ac_ext
10430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10431echo "${ECHO_T}$ac_header_compiler" >&6
10432
10433# Is the header present?
10434echo "$as_me:$LINENO: checking $ac_header presence" >&5
10435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10436cat >conftest.$ac_ext <<_ACEOF
10437#line $LINENO "configure"
e24bcc77
AJ
10438/* confdefs.h. */
10439_ACEOF
10440cat confdefs.h >>conftest.$ac_ext
10441cat >>conftest.$ac_ext <<_ACEOF
10442/* end confdefs.h. */
2a91e3f9
RL
10443#include <$ac_header>
10444_ACEOF
10445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10447 ac_status=$?
11af04e3 10448 grep -v '^ *+' conftest.er1 >conftest.err
2a91e3f9
RL
10449 rm -f conftest.er1
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } >/dev/null; then
10453 if test -s conftest.err; then
10454 ac_cpp_err=$ac_c_preproc_warn_flag
10455 else
10456 ac_cpp_err=
10457 fi
10458else
10459 ac_cpp_err=yes
10460fi
10461if test -z "$ac_cpp_err"; then
10462 ac_header_preproc=yes
10463else
10464 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10465sed 's/^/| /' conftest.$ac_ext >&5
10466
2a91e3f9
RL
10467 ac_header_preproc=no
10468fi
10469rm -f conftest.err conftest.$ac_ext
10470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10471echo "${ECHO_T}$ac_header_preproc" >&6
10472
10473# So? What about this header?
10474case $ac_header_compiler:$ac_header_preproc in
10475 yes:no )
10476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
10479echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10480 (
10481 cat <<\_ASBOX
10482## ------------------------------------ ##
10483## Report this to bug-autoconf@gnu.org. ##
10484## ------------------------------------ ##
10485_ASBOX
10486 ) |
10487 sed "s/^/$as_me: WARNING: /" >&2
10488 ;;
2a91e3f9
RL
10489 no:yes )
10490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10491echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10493echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
10495echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10496 (
10497 cat <<\_ASBOX
10498## ------------------------------------ ##
10499## Report this to bug-autoconf@gnu.org. ##
10500## ------------------------------------ ##
10501_ASBOX
10502 ) |
10503 sed "s/^/$as_me: WARNING: /" >&2
10504 ;;
2a91e3f9
RL
10505esac
10506echo "$as_me:$LINENO: checking for $ac_header" >&5
10507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10508if eval "test \"\${$as_ac_Header+set}\" = set"; then
10509 echo $ECHO_N "(cached) $ECHO_C" >&6
10510else
10511 eval "$as_ac_Header=$ac_header_preproc"
10512fi
10513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10515
10516fi
10517if test `eval echo '${'$as_ac_Header'}'` = yes; then
10518 cat >>confdefs.h <<_ACEOF
10519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10520_ACEOF
10521 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10522echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10523if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10525else
10526 ac_check_lib_save_LIBS=$LIBS
10527LIBS="-laudioio $LIBS"
10528cat >conftest.$ac_ext <<_ACEOF
10529#line $LINENO "configure"
e24bcc77
AJ
10530/* confdefs.h. */
10531_ACEOF
10532cat confdefs.h >>conftest.$ac_ext
10533cat >>conftest.$ac_ext <<_ACEOF
10534/* end confdefs.h. */
2a91e3f9
RL
10535
10536/* Override any gcc2 internal prototype to avoid an error. */
10537#ifdef __cplusplus
10538extern "C"
10539#endif
10540/* We use char because int might match the return type of a gcc2
10541 builtin and then its argument prototype would still apply. */
10542char AudioIOGetVersion ();
2a91e3f9
RL
10543int
10544main ()
10545{
10546AudioIOGetVersion ();
10547 ;
10548 return 0;
10549}
10550_ACEOF
10551rm -f conftest.$ac_objext conftest$ac_exeext
10552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10553 (eval $ac_link) 2>&5
10554 ac_status=$?
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } &&
10557 { ac_try='test -s conftest$ac_exeext'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10560 ac_status=$?
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; }; then
10563 ac_cv_lib_audioio_AudioIOGetVersion=yes
10564else
10565 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10566sed 's/^/| /' conftest.$ac_ext >&5
10567
2a91e3f9
RL
10568ac_cv_lib_audioio_AudioIOGetVersion=no
10569fi
10570rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10571LIBS=$ac_check_lib_save_LIBS
10572fi
10573echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10574echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
10575if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
10576 AUDIOIOLIBS="-laudioio"
10577
10578cat >>confdefs.h <<\_ACEOF
10579#define HAVE_LIBAUDIOIO 1
10580_ACEOF
10581
10582fi
10583
10584fi
10585
10586done
10587
10588
10589
daa2886c 10590echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
f5818d2f
AJ
10591echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
10592if test "${ac_cv_mmap64_works+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
0f6cfbc7
MM
10594else
10595 if test "$cross_compiling" = yes; then
10596 ac_cv_mmap64_works="no"
10597else
f5818d2f 10598 cat >conftest.$ac_ext <<_ACEOF
daa2886c 10599#line $LINENO "configure"
e24bcc77
AJ
10600/* confdefs.h. */
10601_ACEOF
10602cat confdefs.h >>conftest.$ac_ext
10603cat >>conftest.$ac_ext <<_ACEOF
10604/* end confdefs.h. */
0f6cfbc7
MM
10605
10606 #define _FILE_OFFSET_BITS 64
10607 #include <stdio.h>
10608 #include <unistd.h>
10609 #include <fcntl.h>
10610 #include <sys/mman.h>
10611 #include <errno.h>
10612
10613 int main(int argc,char **argv) {
10614 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
10615 if (fd == -1) exit(1);
10616
10617 unlink("conftest.map");
10618
10619 write(fd,"test",4);
10620
10621 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
10622 (errno == EINVAL)
10623 ) {
10624 exit(1);
10625 }
10626 close(fd);
10627 fprintf(stderr,"success!\n");
10628 exit(0);
10629 }
10630
daa2886c 10631
f5818d2f
AJ
10632_ACEOF
10633rm -f conftest$ac_exeext
daa2886c 10634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
10635 (eval $ac_link) 2>&5
10636 ac_status=$?
daa2886c 10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
daa2886c 10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
10640 (eval $ac_try) 2>&5
10641 ac_status=$?
daa2886c 10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10643 (exit $ac_status); }; }; then
0f6cfbc7
MM
10644 ac_cv_mmap64_works="yes"
10645else
f5818d2f
AJ
10646 echo "$as_me: program exited with status $ac_status" >&5
10647echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10648sed 's/^/| /' conftest.$ac_ext >&5
10649
daa2886c 10650( exit $ac_status )
f5818d2f 10651ac_cv_mmap64_works="no"
0f6cfbc7 10652fi
11af04e3 10653rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
0f6cfbc7 10654fi
0f6cfbc7 10655fi
daa2886c 10656echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
f5818d2f 10657echo "${ECHO_T}$ac_cv_mmap64_works" >&6
0f6cfbc7
MM
10658
10659if test "$ac_cv_mmap64_works" = "yes"
10660then
f5818d2f 10661
daa2886c 10662cat >>confdefs.h <<\_ACEOF
0f6cfbc7 10663#define _FILE_OFFSET_BITS 64
daa2886c 10664_ACEOF
0f6cfbc7
MM
10665
10666fi
10667
daa2886c 10668
4f8c37b4
AJ
10669if test "x${GCC}" = "xyes"
10670then
c509bc4d
MM
10671 CFLAGS="$CFLAGS -Wall"
10672
10673 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
f5818d2f
AJ
10674echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
10675if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
10676 echo $ECHO_N "(cached) $ECHO_C" >&6
4f8c37b4
AJ
10677else
10678 if test "$cross_compiling" = yes; then
10679 ac_cv_c_gcc_strength_bug="yes"
10680else
f5818d2f 10681 cat >conftest.$ac_ext <<_ACEOF
daa2886c 10682#line $LINENO "configure"
e24bcc77
AJ
10683/* confdefs.h. */
10684_ACEOF
10685cat confdefs.h >>conftest.$ac_ext
10686cat >>conftest.$ac_ext <<_ACEOF
10687/* end confdefs.h. */
4f8c37b4 10688
5aee80f6 10689int L[4] = {0,1,2,3};
4f8c37b4 10690int main(void) {
d2e1c1a4 10691 static int Array[3];
4f8c37b4
AJ
10692 unsigned int B = 3;
10693 int i;
d2e1c1a4 10694 for(i=0; i<B; i++) Array[i] = i - 3;
5aee80f6
EP
10695 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
10696 L[i] = 4;
f5818d2f 10697
5aee80f6 10698 exit( Array[1] != -2 || L[2] != 3);
4f8c37b4 10699}
f5818d2f
AJ
10700_ACEOF
10701rm -f conftest$ac_exeext
daa2886c 10702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
10703 (eval $ac_link) 2>&5
10704 ac_status=$?
daa2886c 10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
daa2886c 10707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
10708 (eval $ac_try) 2>&5
10709 ac_status=$?
daa2886c 10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10711 (exit $ac_status); }; }; then
4f8c37b4
AJ
10712 ac_cv_c_gcc_strength_bug="no"
10713else
f5818d2f
AJ
10714 echo "$as_me: program exited with status $ac_status" >&5
10715echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10716sed 's/^/| /' conftest.$ac_ext >&5
10717
daa2886c 10718( exit $ac_status )
f5818d2f 10719ac_cv_c_gcc_strength_bug="yes"
4f8c37b4 10720fi
11af04e3 10721rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4f8c37b4 10722fi
4f8c37b4 10723fi
daa2886c 10724echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
f5818d2f 10725echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
4f8c37b4
AJ
10726 if test "$ac_cv_c_gcc_strength_bug" = "yes"
10727 then
10728 CFLAGS="$CFLAGS -fno-strength-reduce"
10729 fi
f9b94cb9 10730
daa2886c 10731 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
f5818d2f
AJ
10732echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
10733if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
f9b94cb9 10735else
67e8dc68
AJ
10736 ac_wine_try_cflags_saved=$CFLAGS
10737CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10738cat >conftest.$ac_ext <<_ACEOF
daa2886c 10739#line $LINENO "configure"
e24bcc77
AJ
10740/* confdefs.h. */
10741_ACEOF
10742cat confdefs.h >>conftest.$ac_ext
10743cat >>conftest.$ac_ext <<_ACEOF
10744/* end confdefs.h. */
f9b94cb9 10745
f5818d2f
AJ
10746int
10747main ()
10748{
67e8dc68 10749
f5818d2f
AJ
10750 ;
10751 return 0;
10752}
10753_ACEOF
67e8dc68
AJ
10754rm -f conftest.$ac_objext conftest$ac_exeext
10755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10756 (eval $ac_link) 2>&5
f5818d2f 10757 ac_status=$?
daa2886c 10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10759 (exit $ac_status); } &&
67e8dc68 10760 { ac_try='test -s conftest$ac_exeext'
daa2886c 10761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
10762 (eval $ac_try) 2>&5
10763 ac_status=$?
daa2886c 10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10765 (exit $ac_status); }; }; then
f9b94cb9
AJ
10766 ac_cv_c_gcc_stack_boundary="yes"
10767else
f5818d2f 10768 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10769sed 's/^/| /' conftest.$ac_ext >&5
10770
f5818d2f 10771ac_cv_c_gcc_stack_boundary="no"
f9b94cb9 10772fi
67e8dc68
AJ
10773rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10774CFLAGS=$ac_wine_try_cflags_saved
f5818d2f 10775fi
daa2886c 10776echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
f5818d2f 10777echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
f9b94cb9
AJ
10778 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
10779 then
10780 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10781 fi
14bd120e
AJ
10782
10783 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
10784echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
10785if test "${ac_cv_c_gcc_gstabs+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10787else
10788 ac_wine_try_cflags_saved=$CFLAGS
10789CFLAGS="$CFLAGS -gstabs+"
10790cat >conftest.$ac_ext <<_ACEOF
10791#line $LINENO "configure"
10792/* confdefs.h. */
10793_ACEOF
10794cat confdefs.h >>conftest.$ac_ext
10795cat >>conftest.$ac_ext <<_ACEOF
10796/* end confdefs.h. */
10797
10798int
10799main ()
10800{
10801
10802 ;
10803 return 0;
10804}
10805_ACEOF
10806rm -f conftest.$ac_objext conftest$ac_exeext
10807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10808 (eval $ac_link) 2>&5
10809 ac_status=$?
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } &&
10812 { ac_try='test -s conftest$ac_exeext'
10813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814 (eval $ac_try) 2>&5
10815 ac_status=$?
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); }; }; then
10818 ac_cv_c_gcc_gstabs="yes"
10819else
10820 echo "$as_me: failed program was:" >&5
10821sed 's/^/| /' conftest.$ac_ext >&5
10822
10823ac_cv_c_gcc_gstabs="no"
10824fi
10825rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10826CFLAGS=$ac_wine_try_cflags_saved
10827fi
10828echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
10829echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
10830 if test "$ac_cv_c_gcc_gstabs" = "yes"
10831 then
10832 CFLAGS="$CFLAGS -gstabs+"
10833 fi
c509bc4d
MM
10834
10835 saved_CFLAGS=$CFLAGS
10836 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
10837 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
10838echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
10839if test "${ac_cv_c_string_h_warnings+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10841else
10842 cat >conftest.$ac_ext <<_ACEOF
10843#line $LINENO "configure"
10844/* confdefs.h. */
10845_ACEOF
10846cat confdefs.h >>conftest.$ac_ext
10847cat >>conftest.$ac_ext <<_ACEOF
10848/* end confdefs.h. */
10849#include <string.h>
10850int
10851main ()
10852{
10853
10854 ;
10855 return 0;
10856}
10857_ACEOF
10858rm -f conftest.$ac_objext
10859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10860 (eval $ac_compile) 2>&5
10861 ac_status=$?
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } &&
10864 { ac_try='test -s conftest.$ac_objext'
10865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866 (eval $ac_try) 2>&5
10867 ac_status=$?
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; }; then
10870 ac_cv_c_string_h_warnings=no
10871else
10872 echo "$as_me: failed program was:" >&5
10873sed 's/^/| /' conftest.$ac_ext >&5
10874
10875ac_cv_c_string_h_warnings=yes
10876fi
10877rm -f conftest.$ac_objext conftest.$ac_ext
10878fi
10879echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
10880echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
10881 CFLAGS=$saved_CFLAGS
10882 if test "$ac_cv_c_string_h_warnings" = "no"
10883 then
10884 CFLAGS="$CFLAGS -Wpointer-arith"
10885 fi
4f8c37b4
AJ
10886fi
10887
daa2886c 10888
84555cc7
AJ
10889echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
10890echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
10891if test "${ac_cv_asm_func_def+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10893else
10894 cat >conftest.$ac_ext <<_ACEOF
daa2886c 10895#line $LINENO "configure"
e24bcc77
AJ
10896/* confdefs.h. */
10897_ACEOF
10898cat confdefs.h >>conftest.$ac_ext
10899cat >>conftest.$ac_ext <<_ACEOF
10900/* end confdefs.h. */
520852c7 10901void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); }
c77cbbcd 10902
f5818d2f
AJ
10903int
10904main ()
10905{
c77cbbcd 10906
f5818d2f
AJ
10907 ;
10908 return 0;
10909}
10910_ACEOF
10911rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 10912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
10913 (eval $ac_link) 2>&5
10914 ac_status=$?
daa2886c 10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
10916 (exit $ac_status); } &&
10917 { ac_try='test -s conftest$ac_exeext'
daa2886c 10918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
10919 (eval $ac_try) 2>&5
10920 ac_status=$?
daa2886c 10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10922 (exit $ac_status); }; }; then
84555cc7 10923 ac_cv_asm_func_def=".def"
c77cbbcd 10924else
f5818d2f 10925 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10926sed 's/^/| /' conftest.$ac_ext >&5
10927
84555cc7
AJ
10928cat >conftest.$ac_ext <<_ACEOF
10929#line $LINENO "configure"
e24bcc77
AJ
10930/* confdefs.h. */
10931_ACEOF
10932cat confdefs.h >>conftest.$ac_ext
10933cat >>conftest.$ac_ext <<_ACEOF
10934/* end confdefs.h. */
520852c7 10935void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
c77cbbcd 10936
84555cc7
AJ
10937int
10938main ()
10939{
daa2886c 10940
84555cc7
AJ
10941 ;
10942 return 0;
10943}
10944_ACEOF
10945rm -f conftest.$ac_objext conftest$ac_exeext
10946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10947 (eval $ac_link) 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } &&
10951 { ac_try='test -s conftest$ac_exeext'
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; }; then
10957 ac_cv_asm_func_def=".type @function"
57807fa1 10958else
84555cc7 10959 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10960sed 's/^/| /' conftest.$ac_ext >&5
10961
57807fa1
GM
10962cat >conftest.$ac_ext <<_ACEOF
10963#line $LINENO "configure"
e24bcc77
AJ
10964/* confdefs.h. */
10965_ACEOF
10966cat confdefs.h >>conftest.$ac_ext
10967cat >>conftest.$ac_ext <<_ACEOF
10968/* end confdefs.h. */
520852c7 10969void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
57807fa1 10970
57807fa1
GM
10971int
10972main ()
10973{
10974
10975 ;
10976 return 0;
10977}
10978_ACEOF
10979rm -f conftest.$ac_objext conftest$ac_exeext
10980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10981 (eval $ac_link) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); } &&
10985 { ac_try='test -s conftest$ac_exeext'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; }; then
84555cc7 10991 ac_cv_asm_func_def=".type 2"
57807fa1
GM
10992else
10993 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10994sed 's/^/| /' conftest.$ac_ext >&5
10995
84555cc7 10996ac_cv_asm_func_def="unknown"
57807fa1
GM
10997fi
10998rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57807fa1 10999fi
84555cc7
AJ
11000rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11001fi
11002rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11003fi
11004echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
11005echo "${ECHO_T}$ac_cv_asm_func_def" >&6
57807fa1 11006
57807fa1 11007
84555cc7
AJ
11008
11009case "$ac_cv_asm_func_def" in
11010 ".def")
11011 cat >>confdefs.h <<\_ACEOF
11012#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
11013_ACEOF
11014 ;;
11015 ".type @function")
11016 cat >>confdefs.h <<\_ACEOF
11017#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
11018_ACEOF
11019 ;;
11020 ".type 2")
11021 cat >>confdefs.h <<\_ACEOF
11022#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
11023_ACEOF
11024 ;;
11025 *)
11026 cat >>confdefs.h <<\_ACEOF
11027#define __ASM_FUNC(name) ""
11028_ACEOF
11029 ;;
11030esac
57807fa1
GM
11031
11032
daa2886c 11033echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
f5818d2f
AJ
11034echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
11035if test "${ac_cv_c_extern_prefix+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
8cc3a5e4 11037else
84555cc7 11038 cat >conftest.$ac_ext <<_ACEOF
daa2886c 11039#line $LINENO "configure"
e24bcc77
AJ
11040/* confdefs.h. */
11041_ACEOF
11042cat confdefs.h >>conftest.$ac_ext
11043cat >>conftest.$ac_ext <<_ACEOF
11044/* end confdefs.h. */
520852c7 11045void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
8cc3a5e4 11046extern int ac_test;
f5818d2f
AJ
11047int
11048main ()
11049{
8cc3a5e4 11050if (ac_test) return 1
f5818d2f
AJ
11051 ;
11052 return 0;
11053}
11054_ACEOF
fa3a5360
AJ
11055rm -f conftest.$ac_objext conftest$ac_exeext
11056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11057 (eval $ac_link) 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } &&
11061 { ac_try='test -s conftest$ac_exeext'
11062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063 (eval $ac_try) 2>&5
11064 ac_status=$?
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }; }; then
11067 ac_cv_c_extern_prefix="yes"
11068else
11069 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11070sed 's/^/| /' conftest.$ac_ext >&5
11071
fa3a5360
AJ
11072ac_cv_c_extern_prefix="no"
11073fi
11074rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fa3a5360
AJ
11075fi
11076echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
11077echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
84555cc7
AJ
11078
11079
11080
fa3a5360
AJ
11081if test "$ac_cv_c_extern_prefix" = "yes"
11082then
84555cc7
AJ
11083 cat >>confdefs.h <<\_ACEOF
11084#define __ASM_NAME(name) "_" name
11085_ACEOF
fa3a5360 11086
84555cc7
AJ
11087else
11088 cat >>confdefs.h <<\_ACEOF
11089#define __ASM_NAME(name) name
fa3a5360
AJ
11090_ACEOF
11091
11092fi
11093
11094
fa3a5360
AJ
11095echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
11096echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
11097if test "${ac_cv_c_asm_string+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11099else
84555cc7 11100 cat >conftest.$ac_ext <<_ACEOF
fa3a5360 11101#line $LINENO "configure"
e24bcc77
AJ
11102/* confdefs.h. */
11103_ACEOF
11104cat confdefs.h >>conftest.$ac_ext
11105cat >>conftest.$ac_ext <<_ACEOF
11106/* end confdefs.h. */
49163d5e 11107void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
fa3a5360 11108
fa3a5360
AJ
11109int
11110main ()
11111{
11112
11113 ;
11114 return 0;
11115}
11116_ACEOF
11117rm -f conftest.$ac_objext conftest$ac_exeext
11118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11119 (eval $ac_link) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); } &&
11123 { ac_try='test -s conftest$ac_exeext'
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11126 ac_status=$?
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; }; then
11129 ac_cv_c_asm_string="yes"
11130else
11131 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11132sed 's/^/| /' conftest.$ac_ext >&5
11133
fa3a5360
AJ
11134ac_cv_c_asm_string="no"
11135fi
11136rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fa3a5360
AJ
11137fi
11138echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
11139echo "${ECHO_T}$ac_cv_c_asm_string" >&6
11140if test "$ac_cv_c_asm_string" = "yes"
11141then
11142
11143cat >>confdefs.h <<\_ACEOF
11144#define HAVE_ASM_STRING 1
11145_ACEOF
11146
11147fi
11148
11149
7bf07d15
AJ
11150DLLEXT=""
11151
11152DLLFLAGS=""
11153
fa3a5360
AJ
11154DLLIBS=""
11155
7bf07d15
AJ
11156LDDLLFLAGS=""
11157
11158LDSHARED=""
11159
ada5e652
AJ
11160LIBEXT="so"
11161
11162IMPLIBEXT="def"
11163
7bf07d15 11164
fc01b729
AJ
11165case $host_os in
11166 cygwin*|mingw32*)
ada5e652
AJ
11167 if test -n "$ac_tool_prefix"; then
11168 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11169set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11170echo "$as_me:$LINENO: checking for $ac_word" >&5
11171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11172if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11174else
11175 if test -n "$DLLTOOL"; then
11176 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11177else
11178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11179for as_dir in $PATH
11180do
11181 IFS=$as_save_IFS
11182 test -z "$as_dir" && as_dir=.
11183 for ac_exec_ext in '' $ac_executable_extensions; do
11184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11185 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11187 break 2
11188 fi
11189done
11190done
11191
11192fi
11193fi
11194DLLTOOL=$ac_cv_prog_DLLTOOL
11195if test -n "$DLLTOOL"; then
11196 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11197echo "${ECHO_T}$DLLTOOL" >&6
11198else
11199 echo "$as_me:$LINENO: result: no" >&5
11200echo "${ECHO_T}no" >&6
11201fi
11202
11203fi
11204if test -z "$ac_cv_prog_DLLTOOL"; then
11205 ac_ct_DLLTOOL=$DLLTOOL
11206 # Extract the first word of "dlltool", so it can be a program name with args.
11207set dummy dlltool; ac_word=$2
11208echo "$as_me:$LINENO: checking for $ac_word" >&5
11209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11210if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11212else
11213 if test -n "$ac_ct_DLLTOOL"; then
11214 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11215else
11216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217for as_dir in $PATH
11218do
11219 IFS=$as_save_IFS
11220 test -z "$as_dir" && as_dir=.
11221 for ac_exec_ext in '' $ac_executable_extensions; do
11222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11223 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11225 break 2
11226 fi
11227done
11228done
11229
11230 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
11231fi
11232fi
11233ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11234if test -n "$ac_ct_DLLTOOL"; then
11235 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11236echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
11237else
11238 echo "$as_me:$LINENO: result: no" >&5
11239echo "${ECHO_T}no" >&6
11240fi
11241
11242 DLLTOOL=$ac_ct_DLLTOOL
11243else
11244 DLLTOOL="$ac_cv_prog_DLLTOOL"
11245fi
11246
fc01b729
AJ
11247 if test -n "$ac_tool_prefix"; then
11248 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
11249set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
fa3a5360
AJ
11250echo "$as_me:$LINENO: checking for $ac_word" >&5
11251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11252if test "${ac_cv_prog_DLLWRAP+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11254else
11255 if test -n "$DLLWRAP"; then
11256 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
11257else
11258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11259for as_dir in $PATH
11260do
11261 IFS=$as_save_IFS
11262 test -z "$as_dir" && as_dir=.
11263 for ac_exec_ext in '' $ac_executable_extensions; do
11264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fc01b729 11265 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
fa3a5360
AJ
11266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11267 break 2
11268 fi
11269done
11270done
11271
fa3a5360
AJ
11272fi
11273fi
11274DLLWRAP=$ac_cv_prog_DLLWRAP
11275if test -n "$DLLWRAP"; then
11276 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
11277echo "${ECHO_T}$DLLWRAP" >&6
11278else
11279 echo "$as_me:$LINENO: result: no" >&5
11280echo "${ECHO_T}no" >&6
11281fi
11282
fc01b729
AJ
11283fi
11284if test -z "$ac_cv_prog_DLLWRAP"; then
11285 ac_ct_DLLWRAP=$DLLWRAP
11286 # Extract the first word of "dllwrap", so it can be a program name with args.
11287set dummy dllwrap; ac_word=$2
11288echo "$as_me:$LINENO: checking for $ac_word" >&5
11289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11290if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11292else
11293 if test -n "$ac_ct_DLLWRAP"; then
11294 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
11295else
11296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297for as_dir in $PATH
11298do
11299 IFS=$as_save_IFS
11300 test -z "$as_dir" && as_dir=.
11301 for ac_exec_ext in '' $ac_executable_extensions; do
11302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11303 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
11304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11305 break 2
11306 fi
11307done
11308done
11309
11310 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
11311fi
11312fi
11313ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
11314if test -n "$ac_ct_DLLWRAP"; then
11315 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
11316echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
11317else
11318 echo "$as_me:$LINENO: result: no" >&5
11319echo "${ECHO_T}no" >&6
11320fi
11321
11322 DLLWRAP=$ac_ct_DLLWRAP
11323else
11324 DLLWRAP="$ac_cv_prog_DLLWRAP"
11325fi
11326
11327 if test "$DLLWRAP" = "false"; then
fa3a5360 11328 LIBEXT="a"
fc01b729
AJ
11329 else
11330 LIBEXT="dll"
fa3a5360 11331 fi
ada5e652 11332 IMPLIBEXT="a"
fa3a5360
AJ
11333 ;;
11334 *)
11335
11336for ac_header in dlfcn.h
11337do
11338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11339if eval "test \"\${$as_ac_Header+set}\" = set"; then
11340 echo "$as_me:$LINENO: checking for $ac_header" >&5
11341echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11342if eval "test \"\${$as_ac_Header+set}\" = set"; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11344fi
11345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11346echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11347else
11348 # Is the header compilable?
11349echo "$as_me:$LINENO: checking $ac_header usability" >&5
11350echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11351cat >conftest.$ac_ext <<_ACEOF
11352#line $LINENO "configure"
e24bcc77
AJ
11353/* confdefs.h. */
11354_ACEOF
11355cat confdefs.h >>conftest.$ac_ext
11356cat >>conftest.$ac_ext <<_ACEOF
11357/* end confdefs.h. */
fa3a5360
AJ
11358$ac_includes_default
11359#include <$ac_header>
11360_ACEOF
11361rm -f conftest.$ac_objext
11362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11363 (eval $ac_compile) 2>&5
f5818d2f 11364 ac_status=$?
daa2886c 11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 11366 (exit $ac_status); } &&
fa3a5360 11367 { ac_try='test -s conftest.$ac_objext'
daa2886c 11368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
11369 (eval $ac_try) 2>&5
11370 ac_status=$?
daa2886c 11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 11372 (exit $ac_status); }; }; then
fa3a5360 11373 ac_header_compiler=yes
8cc3a5e4 11374else
f5818d2f 11375 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11376sed 's/^/| /' conftest.$ac_ext >&5
11377
fa3a5360 11378ac_header_compiler=no
8cc3a5e4 11379fi
fa3a5360
AJ
11380rm -f conftest.$ac_objext conftest.$ac_ext
11381echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11382echo "${ECHO_T}$ac_header_compiler" >&6
f5818d2f 11383
fa3a5360
AJ
11384# Is the header present?
11385echo "$as_me:$LINENO: checking $ac_header presence" >&5
11386echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11387cat >conftest.$ac_ext <<_ACEOF
11388#line $LINENO "configure"
e24bcc77
AJ
11389/* confdefs.h. */
11390_ACEOF
11391cat confdefs.h >>conftest.$ac_ext
11392cat >>conftest.$ac_ext <<_ACEOF
11393/* end confdefs.h. */
fa3a5360 11394#include <$ac_header>
daa2886c 11395_ACEOF
fa3a5360
AJ
11396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11398 ac_status=$?
11af04e3 11399 grep -v '^ *+' conftest.er1 >conftest.err
fa3a5360
AJ
11400 rm -f conftest.er1
11401 cat conftest.err >&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); } >/dev/null; then
11404 if test -s conftest.err; then
11405 ac_cpp_err=$ac_c_preproc_warn_flag
11406 else
11407 ac_cpp_err=
11408 fi
11409else
11410 ac_cpp_err=yes
11411fi
11412if test -z "$ac_cpp_err"; then
11413 ac_header_preproc=yes
11414else
11415 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11416sed 's/^/| /' conftest.$ac_ext >&5
11417
fa3a5360
AJ
11418 ac_header_preproc=no
11419fi
11420rm -f conftest.err conftest.$ac_ext
11421echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11422echo "${ECHO_T}$ac_header_preproc" >&6
8cc3a5e4 11423
fa3a5360
AJ
11424# So? What about this header?
11425case $ac_header_compiler:$ac_header_preproc in
11426 yes:no )
11427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11428echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
11430echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11431 (
11432 cat <<\_ASBOX
11433## ------------------------------------ ##
11434## Report this to bug-autoconf@gnu.org. ##
11435## ------------------------------------ ##
11436_ASBOX
11437 ) |
11438 sed "s/^/$as_me: WARNING: /" >&2
11439 ;;
fa3a5360
AJ
11440 no:yes )
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11442echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11444echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
11446echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11447 (
11448 cat <<\_ASBOX
11449## ------------------------------------ ##
11450## Report this to bug-autoconf@gnu.org. ##
11451## ------------------------------------ ##
11452_ASBOX
11453 ) |
11454 sed "s/^/$as_me: WARNING: /" >&2
11455 ;;
fa3a5360
AJ
11456esac
11457echo "$as_me:$LINENO: checking for $ac_header" >&5
11458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11459if eval "test \"\${$as_ac_Header+set}\" = set"; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11461else
11462 eval "$as_ac_Header=$ac_header_preproc"
8cc3a5e4 11463fi
fa3a5360
AJ
11464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8cc3a5e4 11466
fa3a5360
AJ
11467fi
11468if test `eval echo '${'$as_ac_Header'}'` = yes; then
11469 cat >>confdefs.h <<_ACEOF
11470#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11471_ACEOF
daa2886c 11472
fa3a5360
AJ
11473for ac_func in dlopen
11474do
11475as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11476echo "$as_me:$LINENO: checking for $ac_func" >&5
11477echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11478if eval "test \"\${$as_ac_var+set}\" = set"; then
f5818d2f 11479 echo $ECHO_N "(cached) $ECHO_C" >&6
93a5b868 11480else
fa3a5360 11481 cat >conftest.$ac_ext <<_ACEOF
daa2886c 11482#line $LINENO "configure"
e24bcc77
AJ
11483/* confdefs.h. */
11484_ACEOF
11485cat confdefs.h >>conftest.$ac_ext
11486cat >>conftest.$ac_ext <<_ACEOF
11487/* end confdefs.h. */
fa3a5360 11488/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
11489 which can conflict with char $ac_func (); below.
11490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11491 <limits.h> exists even on freestanding compilers. */
11492#ifdef __STDC__
11493# include <limits.h>
11494#else
11495# include <assert.h>
11496#endif
fa3a5360
AJ
11497/* Override any gcc2 internal prototype to avoid an error. */
11498#ifdef __cplusplus
11499extern "C"
e24bcc77 11500{
fa3a5360
AJ
11501#endif
11502/* We use char because int might match the return type of a gcc2
11503 builtin and then its argument prototype would still apply. */
11504char $ac_func ();
fa3a5360
AJ
11505/* The GNU C library defines this for functions which it implements
11506 to always fail with ENOSYS. Some functions are actually named
11507 something starting with __ and the normal name is an alias. */
11508#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11509choke me
11510#else
e24bcc77
AJ
11511char (*f) () = $ac_func;
11512#endif
11513#ifdef __cplusplus
11514}
fa3a5360
AJ
11515#endif
11516
e24bcc77
AJ
11517int
11518main ()
11519{
11520return f != $ac_func;
f5818d2f
AJ
11521 ;
11522 return 0;
11523}
11524_ACEOF
11525rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 11526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
11527 (eval $ac_link) 2>&5
11528 ac_status=$?
daa2886c 11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
11530 (exit $ac_status); } &&
11531 { ac_try='test -s conftest$ac_exeext'
daa2886c 11532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
11533 (eval $ac_try) 2>&5
11534 ac_status=$?
daa2886c 11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 11536 (exit $ac_status); }; }; then
fa3a5360 11537 eval "$as_ac_var=yes"
93a5b868 11538else
f5818d2f 11539 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11540sed 's/^/| /' conftest.$ac_ext >&5
11541
fa3a5360 11542eval "$as_ac_var=no"
93a5b868 11543fi
f5818d2f 11544rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
93a5b868 11545fi
fa3a5360
AJ
11546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11547echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11548if test `eval echo '${'$as_ac_var'}'` = yes; then
11549 cat >>confdefs.h <<_ACEOF
11550#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 11551_ACEOF
93a5b868 11552
fa3a5360
AJ
11553else
11554 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11555echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11556if test "${ac_cv_lib_dl_dlopen+set}" = set; then
f5818d2f 11557 echo $ECHO_N "(cached) $ECHO_C" >&6
0623a6f3 11558else
fa3a5360
AJ
11559 ac_check_lib_save_LIBS=$LIBS
11560LIBS="-ldl $LIBS"
f5818d2f 11561cat >conftest.$ac_ext <<_ACEOF
daa2886c 11562#line $LINENO "configure"
e24bcc77
AJ
11563/* confdefs.h. */
11564_ACEOF
11565cat confdefs.h >>conftest.$ac_ext
11566cat >>conftest.$ac_ext <<_ACEOF
11567/* end confdefs.h. */
0623a6f3 11568
fa3a5360
AJ
11569/* Override any gcc2 internal prototype to avoid an error. */
11570#ifdef __cplusplus
11571extern "C"
11572#endif
11573/* We use char because int might match the return type of a gcc2
11574 builtin and then its argument prototype would still apply. */
11575char dlopen ();
f5818d2f
AJ
11576int
11577main ()
11578{
fa3a5360 11579dlopen ();
f5818d2f
AJ
11580 ;
11581 return 0;
11582}
11583_ACEOF
11584rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 11585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
11586 (eval $ac_link) 2>&5
11587 ac_status=$?
daa2886c 11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
11589 (exit $ac_status); } &&
11590 { ac_try='test -s conftest$ac_exeext'
daa2886c 11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
11592 (eval $ac_try) 2>&5
11593 ac_status=$?
daa2886c 11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 11595 (exit $ac_status); }; }; then
fa3a5360 11596 ac_cv_lib_dl_dlopen=yes
0623a6f3 11597else
f5818d2f 11598 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11599sed 's/^/| /' conftest.$ac_ext >&5
11600
fa3a5360 11601ac_cv_lib_dl_dlopen=no
0623a6f3 11602fi
f5818d2f 11603rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fa3a5360 11604LIBS=$ac_check_lib_save_LIBS
0623a6f3 11605fi
fa3a5360
AJ
11606echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11607echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11608if test $ac_cv_lib_dl_dlopen = yes; then
f5818d2f 11609
daa2886c 11610cat >>confdefs.h <<\_ACEOF
fa3a5360 11611#define HAVE_DLOPEN 1
daa2886c 11612_ACEOF
0623a6f3 11613
fa3a5360
AJ
11614 DLLIBS="-ldl"
11615else
11616 LIBEXT="a"
0623a6f3
AJ
11617fi
11618
fa3a5360 11619fi
466ae143
AJ
11620done
11621
466ae143 11622else
fa3a5360 11623 LIBEXT="a"
466ae143
AJ
11624fi
11625
fa3a5360
AJ
11626done
11627
11628
11629 if test "$LIBEXT" = "so"
11630 then
7bf07d15
AJ
11631 DLLFLAGS="-fPIC"
11632 DLLEXT=".so"
466ae143 11633 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
f5818d2f
AJ
11634echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
11635if test "${ac_cv_c_dll_gnuelf+set}" = set; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
7e6ae4ba 11637else
67e8dc68
AJ
11638 ac_wine_try_cflags_saved=$CFLAGS
11639CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
11640cat >conftest.$ac_ext <<_ACEOF
daa2886c 11641#line $LINENO "configure"
e24bcc77
AJ
11642/* confdefs.h. */
11643_ACEOF
11644cat confdefs.h >>conftest.$ac_ext
11645cat >>conftest.$ac_ext <<_ACEOF
11646/* end confdefs.h. */
7e6ae4ba 11647
f5818d2f
AJ
11648int
11649main ()
11650{
67e8dc68 11651
f5818d2f
AJ
11652 ;
11653 return 0;
11654}
11655_ACEOF
11656rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 11657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
11658 (eval $ac_link) 2>&5
11659 ac_status=$?
daa2886c 11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
11661 (exit $ac_status); } &&
11662 { ac_try='test -s conftest$ac_exeext'
daa2886c 11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
11664 (eval $ac_try) 2>&5
11665 ac_status=$?
daa2886c 11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 11667 (exit $ac_status); }; }; then
37e5e7f4 11668 ac_cv_c_dll_gnuelf="yes"
7e6ae4ba 11669else
f5818d2f 11670 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11671sed 's/^/| /' conftest.$ac_ext >&5
11672
f5818d2f 11673ac_cv_c_dll_gnuelf="no"
7e6ae4ba 11674fi
f5818d2f 11675rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
67e8dc68 11676CFLAGS=$ac_wine_try_cflags_saved
f5818d2f 11677fi
daa2886c 11678echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
f5818d2f 11679echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
466ae143
AJ
11680 if test "$ac_cv_c_dll_gnuelf" = "yes"
11681 then
11682 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
11683 LDDLLFLAGS="-Wl,-Bsymbolic"
f2abe47d
AJ
11684 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
11685echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
11686if test "${ac_cv_c_dll_zdefs+set}" = set; then
11687 echo $ECHO_N "(cached) $ECHO_C" >&6
11688else
11689 ac_wine_try_cflags_saved=$CFLAGS
11690CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
11691cat >conftest.$ac_ext <<_ACEOF
11692#line $LINENO "configure"
e24bcc77
AJ
11693/* confdefs.h. */
11694_ACEOF
11695cat confdefs.h >>conftest.$ac_ext
11696cat >>conftest.$ac_ext <<_ACEOF
11697/* end confdefs.h. */
f2abe47d
AJ
11698
11699int
11700main ()
11701{
11702
11703 ;
11704 return 0;
11705}
11706_ACEOF
11707rm -f conftest.$ac_objext conftest$ac_exeext
11708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11709 (eval $ac_link) 2>&5
11710 ac_status=$?
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } &&
11713 { ac_try='test -s conftest$ac_exeext'
11714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715 (eval $ac_try) 2>&5
11716 ac_status=$?
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; }; then
11719 ac_cv_c_dll_zdefs="yes"
11720else
11721 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11722sed 's/^/| /' conftest.$ac_ext >&5
11723
f2abe47d
AJ
11724ac_cv_c_dll_zdefs="no"
11725fi
11726rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11727CFLAGS=$ac_wine_try_cflags_saved
11728fi
11729echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
11730echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
11731 if test "$ac_cv_c_dll_zdefs" = "yes"
11732 then
11733 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
11734 fi
466ae143
AJ
11735 else
11736 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
f5818d2f
AJ
11737echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
11738if test "${ac_cv_c_dll_unixware+set}" = set; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
4b992b0f 11740else
67e8dc68
AJ
11741 ac_wine_try_cflags_saved=$CFLAGS
11742CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
11743cat >conftest.$ac_ext <<_ACEOF
daa2886c 11744#line $LINENO "configure"
e24bcc77
AJ
11745/* confdefs.h. */
11746_ACEOF
11747cat confdefs.h >>conftest.$ac_ext
11748cat >>conftest.$ac_ext <<_ACEOF
11749/* end confdefs.h. */
4b992b0f 11750
f5818d2f
AJ
11751int
11752main ()
11753{
67e8dc68 11754
f5818d2f
AJ
11755 ;
11756 return 0;
11757}
11758_ACEOF
11759rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 11760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
11761 (eval $ac_link) 2>&5
11762 ac_status=$?
daa2886c 11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
11764 (exit $ac_status); } &&
11765 { ac_try='test -s conftest$ac_exeext'
daa2886c 11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
11767 (eval $ac_try) 2>&5
11768 ac_status=$?
daa2886c 11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 11770 (exit $ac_status); }; }; then
e977d6ca 11771 ac_cv_c_dll_unixware="yes"
4b992b0f 11772else
f5818d2f 11773 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11774sed 's/^/| /' conftest.$ac_ext >&5
11775
f5818d2f 11776ac_cv_c_dll_unixware="no"
4b992b0f 11777fi
f5818d2f 11778rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
67e8dc68 11779CFLAGS=$ac_wine_try_cflags_saved
f5818d2f 11780fi
daa2886c 11781echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
f5818d2f 11782echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
466ae143
AJ
11783 if test "$ac_cv_c_dll_unixware" = "yes"
11784 then
11785 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
11786 LDDLLFLAGS="-Wl,-B,symbolic"
11787 fi
11788 fi
fa3a5360 11789 fi
c3c587eb
AJ
11790
11791 CROSSTEST=""
11792
11793 if test "$cross_compiling" = "no"
11794 then
11795 for ac_prog in i586-mingw32msvc-gcc
11796do
11797 # Extract the first word of "$ac_prog", so it can be a program name with args.
11798set dummy $ac_prog; ac_word=$2
11799echo "$as_me:$LINENO: checking for $ac_word" >&5
11800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11801if test "${ac_cv_prog_CROSSCC+set}" = set; then
11802 echo $ECHO_N "(cached) $ECHO_C" >&6
11803else
11804 if test -n "$CROSSCC"; then
11805 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
11806else
11807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11808for as_dir in $PATH
11809do
11810 IFS=$as_save_IFS
11811 test -z "$as_dir" && as_dir=.
11812 for ac_exec_ext in '' $ac_executable_extensions; do
11813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11814 ac_cv_prog_CROSSCC="$ac_prog"
11815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11816 break 2
11817 fi
11818done
11819done
11820
11821fi
11822fi
11823CROSSCC=$ac_cv_prog_CROSSCC
11824if test -n "$CROSSCC"; then
11825 echo "$as_me:$LINENO: result: $CROSSCC" >&5
11826echo "${ECHO_T}$CROSSCC" >&6
11827else
11828 echo "$as_me:$LINENO: result: no" >&5
11829echo "${ECHO_T}no" >&6
11830fi
11831
11832 test -n "$CROSSCC" && break
11833done
11834test -n "$CROSSCC" || CROSSCC="false"
11835
11836 for ac_prog in i586-mingw32msvc-dlltool
11837do
11838 # Extract the first word of "$ac_prog", so it can be a program name with args.
11839set dummy $ac_prog; ac_word=$2
11840echo "$as_me:$LINENO: checking for $ac_word" >&5
11841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11842if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11843 echo $ECHO_N "(cached) $ECHO_C" >&6
11844else
11845 if test -n "$DLLTOOL"; then
11846 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11847else
11848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11849for as_dir in $PATH
11850do
11851 IFS=$as_save_IFS
11852 test -z "$as_dir" && as_dir=.
11853 for ac_exec_ext in '' $ac_executable_extensions; do
11854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11855 ac_cv_prog_DLLTOOL="$ac_prog"
11856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11857 break 2
11858 fi
11859done
11860done
11861
11862fi
11863fi
11864DLLTOOL=$ac_cv_prog_DLLTOOL
11865if test -n "$DLLTOOL"; then
11866 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11867echo "${ECHO_T}$DLLTOOL" >&6
11868else
11869 echo "$as_me:$LINENO: result: no" >&5
11870echo "${ECHO_T}no" >&6
11871fi
11872
11873 test -n "$DLLTOOL" && break
11874done
11875test -n "$DLLTOOL" || DLLTOOL="false"
11876
11877 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
11878 fi
fa3a5360
AJ
11879 ;;
11880esac
7e6ae4ba 11881
d48ca948 11882if test "$LIBEXT" = "a"; then
daa2886c 11883 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
f5818d2f
AJ
11884It is currently not possible to build Wine without shared library
11885(.so) support to allow transparent switch between .so and .dll files.
11886If you are using Linux, you will need a newer binutils.
11887" >&5
11888echo "$as_me: error: could not find a way to build shared libraries.
11889It is currently not possible to build Wine without shared library
11890(.so) support to allow transparent switch between .so and .dll files.
11891If you are using Linux, you will need a newer binutils.
11892" >&2;}
11893 { (exit 1); exit 1; }; }
d48ca948
HT
11894fi
11895
fc01b729
AJ
11896case $build_os in
11897 cygwin*|mingw32*)
7bf07d15
AJ
11898 LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\""
11899 ;;
fc01b729 11900 *)
7bf07d15
AJ
11901 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\""
11902 ;;
fc01b729
AJ
11903esac
11904
7bf07d15 11905CRTLIBS=""
daa2886c 11906
7bf07d15
AJ
11907case $host_os in
11908 mingw32*)
11909 CRTLIBS="-lmsvcrt" ;;
11910esac
daa2886c
AJ
11911
11912
67e8dc68
AJ
11913if test "$LIBEXT" = "so"
11914then
11915 # Extract the first word of "ldd", so it can be a program name with args.
11916set dummy ldd; ac_word=$2
11917echo "$as_me:$LINENO: checking for $ac_word" >&5
11918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11919if test "${ac_cv_path_LDD+set}" = set; then
11920 echo $ECHO_N "(cached) $ECHO_C" >&6
11921else
11922 case $LDD in
11923 [\\/]* | ?:[\\/]*)
11924 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
11925 ;;
11926 *)
11927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11af04e3
AJ
11928as_dummy="/sbin:/usr/sbin:$PATH"
11929for as_dir in $as_dummy
67e8dc68
AJ
11930do
11931 IFS=$as_save_IFS
11932 test -z "$as_dir" && as_dir=.
11933 for ac_exec_ext in '' $ac_executable_extensions; do
11934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11935 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
11936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11937 break 2
11938 fi
11939done
11940done
11941
11942 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
11943 ;;
11944esac
11945fi
11946LDD=$ac_cv_path_LDD
11947
11948if test -n "$LDD"; then
11949 echo "$as_me:$LINENO: result: $LDD" >&5
11950echo "${ECHO_T}$LDD" >&6
11951else
11952 echo "$as_me:$LINENO: result: no" >&5
11953echo "${ECHO_T}no" >&6
11954fi
11955
daa2886c 11956
67e8dc68
AJ
11957echo "$as_me:$LINENO: checking for -lX11 soname" >&5
11958echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
11959if test "${ac_cv_lib_soname_X11+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11961else
11962 ac_get_soname_save_LIBS=$LIBS
11963LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
11964 cat >conftest.$ac_ext <<_ACEOF
11965#line $LINENO "configure"
e24bcc77
AJ
11966/* confdefs.h. */
11967_ACEOF
11968cat confdefs.h >>conftest.$ac_ext
11969cat >>conftest.$ac_ext <<_ACEOF
11970/* end confdefs.h. */
fa3a5360 11971
67e8dc68
AJ
11972/* Override any gcc2 internal prototype to avoid an error. */
11973#ifdef __cplusplus
11974extern "C"
11975#endif
11976/* We use char because int might match the return type of a gcc2
11977 builtin and then its argument prototype would still apply. */
11978char XCreateWindow ();
67e8dc68
AJ
11979int
11980main ()
11981{
11982XCreateWindow ();
11983 ;
11984 return 0;
11985}
11986_ACEOF
11987rm -f conftest.$ac_objext conftest$ac_exeext
11988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11989 (eval $ac_link) 2>&5
11990 ac_status=$?
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } &&
11993 { ac_try='test -s conftest$ac_exeext'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; }; then
11999 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12000 if test "x$ac_cv_lib_soname_X11" = "x"
12001 then
12002 ac_cv_lib_soname_X11="libX11.so"
12003 fi
12004else
12005 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12006sed 's/^/| /' conftest.$ac_ext >&5
12007
67e8dc68
AJ
12008ac_cv_lib_soname_X11="libX11.so"
12009fi
12010rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12011 LIBS=$ac_get_soname_save_LIBS
12012fi
12013echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
12014echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
12015if test "x$ac_cv_lib_soname_X11" != xNONE
12016then
12017cat >>confdefs.h <<_ACEOF
12018#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
12019_ACEOF
12020fi
0adad95d 12021
67e8dc68
AJ
12022echo "$as_me:$LINENO: checking for -lXext soname" >&5
12023echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
12024if test "${ac_cv_lib_soname_Xext+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12026else
12027 ac_get_soname_save_LIBS=$LIBS
12028LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
12029 cat >conftest.$ac_ext <<_ACEOF
12030#line $LINENO "configure"
e24bcc77
AJ
12031/* confdefs.h. */
12032_ACEOF
12033cat confdefs.h >>conftest.$ac_ext
12034cat >>conftest.$ac_ext <<_ACEOF
12035/* end confdefs.h. */
67e8dc68
AJ
12036
12037/* Override any gcc2 internal prototype to avoid an error. */
12038#ifdef __cplusplus
12039extern "C"
12040#endif
12041/* We use char because int might match the return type of a gcc2
12042 builtin and then its argument prototype would still apply. */
12043char XextCreateExtension ();
67e8dc68
AJ
12044int
12045main ()
12046{
12047XextCreateExtension ();
12048 ;
12049 return 0;
12050}
12051_ACEOF
12052rm -f conftest.$ac_objext conftest$ac_exeext
12053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12054 (eval $ac_link) 2>&5
12055 ac_status=$?
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } &&
12058 { ac_try='test -s conftest$ac_exeext'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
12064 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12065 if test "x$ac_cv_lib_soname_Xext" = "x"
12066 then
12067 ac_cv_lib_soname_Xext="libXext.so"
12068 fi
12069else
12070 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12071sed 's/^/| /' conftest.$ac_ext >&5
12072
67e8dc68
AJ
12073ac_cv_lib_soname_Xext="libXext.so"
12074fi
12075rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12076 LIBS=$ac_get_soname_save_LIBS
12077fi
12078echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
12079echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
12080if test "x$ac_cv_lib_soname_Xext" != xNONE
12081then
12082cat >>confdefs.h <<_ACEOF
12083#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
12084_ACEOF
12085fi
12086
12087echo "$as_me:$LINENO: checking for -lXrender soname" >&5
12088echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
12089if test "${ac_cv_lib_soname_Xrender+set}" = set; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12091else
12092 ac_get_soname_save_LIBS=$LIBS
12093LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
12094 cat >conftest.$ac_ext <<_ACEOF
12095#line $LINENO "configure"
e24bcc77
AJ
12096/* confdefs.h. */
12097_ACEOF
12098cat confdefs.h >>conftest.$ac_ext
12099cat >>conftest.$ac_ext <<_ACEOF
12100/* end confdefs.h. */
67e8dc68
AJ
12101
12102/* Override any gcc2 internal prototype to avoid an error. */
12103#ifdef __cplusplus
12104extern "C"
12105#endif
12106/* We use char because int might match the return type of a gcc2
12107 builtin and then its argument prototype would still apply. */
12108char XRenderQueryExtension ();
67e8dc68
AJ
12109int
12110main ()
12111{
12112XRenderQueryExtension ();
12113 ;
12114 return 0;
12115}
12116_ACEOF
12117rm -f conftest.$ac_objext conftest$ac_exeext
12118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12119 (eval $ac_link) 2>&5
12120 ac_status=$?
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } &&
12123 { ac_try='test -s conftest$ac_exeext'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then
12129 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12130 if test "x$ac_cv_lib_soname_Xrender" = "x"
12131 then
12132 ac_cv_lib_soname_Xrender="libXrender.so"
12133 fi
12134else
12135 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12136sed 's/^/| /' conftest.$ac_ext >&5
12137
67e8dc68
AJ
12138ac_cv_lib_soname_Xrender="libXrender.so"
12139fi
12140rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12141 LIBS=$ac_get_soname_save_LIBS
12142fi
12143echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
12144echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
12145if test "x$ac_cv_lib_soname_Xrender" != xNONE
12146then
12147cat >>confdefs.h <<_ACEOF
12148#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
12149_ACEOF
12150fi
12151
12152echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
12153echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
12154if test "${ac_cv_lib_soname_freetype+set}" = set; then
12155 echo $ECHO_N "(cached) $ECHO_C" >&6
12156else
12157 ac_get_soname_save_LIBS=$LIBS
12158LIBS="-lfreetype $X_LIBS $LIBS"
12159 cat >conftest.$ac_ext <<_ACEOF
12160#line $LINENO "configure"
e24bcc77
AJ
12161/* confdefs.h. */
12162_ACEOF
12163cat confdefs.h >>conftest.$ac_ext
12164cat >>conftest.$ac_ext <<_ACEOF
12165/* end confdefs.h. */
67e8dc68
AJ
12166
12167/* Override any gcc2 internal prototype to avoid an error. */
12168#ifdef __cplusplus
12169extern "C"
12170#endif
12171/* We use char because int might match the return type of a gcc2
12172 builtin and then its argument prototype would still apply. */
12173char FT_Init_FreeType ();
67e8dc68
AJ
12174int
12175main ()
12176{
12177FT_Init_FreeType ();
12178 ;
12179 return 0;
12180}
12181_ACEOF
12182rm -f conftest.$ac_objext conftest$ac_exeext
12183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12184 (eval $ac_link) 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } &&
12188 { ac_try='test -s conftest$ac_exeext'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; }; then
12194 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12195 if test "x$ac_cv_lib_soname_freetype" = "x"
12196 then
12197 ac_cv_lib_soname_freetype="libfreetype.so"
12198 fi
12199else
12200 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12201sed 's/^/| /' conftest.$ac_ext >&5
12202
67e8dc68
AJ
12203ac_cv_lib_soname_freetype="libfreetype.so"
12204fi
12205rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12206 LIBS=$ac_get_soname_save_LIBS
12207fi
12208echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
12209echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
12210if test "x$ac_cv_lib_soname_freetype" != xNONE
12211then
12212cat >>confdefs.h <<_ACEOF
12213#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
12214_ACEOF
12215fi
f061f767 12216
56ab2b3e
LU
12217echo "$as_me:$LINENO: checking for -lGL soname" >&5
12218echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
12219if test "${ac_cv_lib_soname_GL+set}" = set; then
12220 echo $ECHO_N "(cached) $ECHO_C" >&6
12221else
12222 ac_get_soname_save_LIBS=$LIBS
12223LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
12224 cat >conftest.$ac_ext <<_ACEOF
12225#line $LINENO "configure"
e24bcc77
AJ
12226/* confdefs.h. */
12227_ACEOF
12228cat confdefs.h >>conftest.$ac_ext
12229cat >>conftest.$ac_ext <<_ACEOF
12230/* end confdefs.h. */
56ab2b3e
LU
12231
12232/* Override any gcc2 internal prototype to avoid an error. */
12233#ifdef __cplusplus
12234extern "C"
12235#endif
12236/* We use char because int might match the return type of a gcc2
12237 builtin and then its argument prototype would still apply. */
12238char glXQueryExtension ();
12239int
12240main ()
12241{
12242glXQueryExtension ();
12243 ;
12244 return 0;
12245}
12246_ACEOF
12247rm -f conftest.$ac_objext conftest$ac_exeext
12248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12249 (eval $ac_link) 2>&5
12250 ac_status=$?
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); } &&
12253 { ac_try='test -s conftest$ac_exeext'
12254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255 (eval $ac_try) 2>&5
12256 ac_status=$?
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; }; then
12259 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12260 if test "x$ac_cv_lib_soname_GL" = "x"
12261 then
12262 ac_cv_lib_soname_GL="libGL.so"
12263 fi
12264else
12265 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12266sed 's/^/| /' conftest.$ac_ext >&5
12267
56ab2b3e
LU
12268ac_cv_lib_soname_GL="libGL.so"
12269fi
12270rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12271 LIBS=$ac_get_soname_save_LIBS
12272fi
12273echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
12274echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
12275if test "x$ac_cv_lib_soname_GL" != xNONE
12276then
12277cat >>confdefs.h <<_ACEOF
12278#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
12279_ACEOF
12280fi
12281
f061f767
MM
12282echo "$as_me:$LINENO: checking for -lcups soname" >&5
12283echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
12284if test "${ac_cv_lib_soname_cups+set}" = set; then
12285 echo $ECHO_N "(cached) $ECHO_C" >&6
12286else
12287 ac_get_soname_save_LIBS=$LIBS
12288LIBS="-lcups $LIBS"
12289 cat >conftest.$ac_ext <<_ACEOF
12290#line $LINENO "configure"
e24bcc77
AJ
12291/* confdefs.h. */
12292_ACEOF
12293cat confdefs.h >>conftest.$ac_ext
12294cat >>conftest.$ac_ext <<_ACEOF
12295/* end confdefs.h. */
f061f767
MM
12296
12297/* Override any gcc2 internal prototype to avoid an error. */
12298#ifdef __cplusplus
12299extern "C"
12300#endif
12301/* We use char because int might match the return type of a gcc2
12302 builtin and then its argument prototype would still apply. */
12303char cupsGetDefault ();
12304int
12305main ()
12306{
12307cupsGetDefault ();
12308 ;
12309 return 0;
12310}
12311_ACEOF
12312rm -f conftest.$ac_objext conftest$ac_exeext
12313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12314 (eval $ac_link) 2>&5
12315 ac_status=$?
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } &&
12318 { ac_try='test -s conftest$ac_exeext'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12321 ac_status=$?
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; }; then
12324 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12325 if test "x$ac_cv_lib_soname_cups" = "x"
12326 then
12327 ac_cv_lib_soname_cups="libcups.so"
12328 fi
12329else
12330 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12331sed 's/^/| /' conftest.$ac_ext >&5
12332
f061f767
MM
12333ac_cv_lib_soname_cups="libcups.so"
12334fi
12335rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12336 LIBS=$ac_get_soname_save_LIBS
12337fi
12338echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
12339echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
12340if test "x$ac_cv_lib_soname_cups" != xNONE
12341then
12342cat >>confdefs.h <<_ACEOF
12343#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12344_ACEOF
12345fi
4691b185
CM
12346
12347echo "$as_me:$LINENO: checking for -ljack soname" >&5
12348echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
12349if test "${ac_cv_lib_soname_jack+set}" = set; then
12350 echo $ECHO_N "(cached) $ECHO_C" >&6
12351else
12352 ac_get_soname_save_LIBS=$LIBS
12353LIBS="-ljack $LIBS"
12354 cat >conftest.$ac_ext <<_ACEOF
12355#line $LINENO "configure"
e24bcc77
AJ
12356/* confdefs.h. */
12357_ACEOF
12358cat confdefs.h >>conftest.$ac_ext
12359cat >>conftest.$ac_ext <<_ACEOF
12360/* end confdefs.h. */
4691b185
CM
12361
12362/* Override any gcc2 internal prototype to avoid an error. */
12363#ifdef __cplusplus
12364extern "C"
12365#endif
12366/* We use char because int might match the return type of a gcc2
12367 builtin and then its argument prototype would still apply. */
12368char jack_client_new ();
12369int
12370main ()
12371{
12372jack_client_new ();
12373 ;
12374 return 0;
12375}
12376_ACEOF
12377rm -f conftest.$ac_objext conftest$ac_exeext
12378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12379 (eval $ac_link) 2>&5
12380 ac_status=$?
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } &&
12383 { ac_try='test -s conftest$ac_exeext'
12384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385 (eval $ac_try) 2>&5
12386 ac_status=$?
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; }; then
12389 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12390 if test "x$ac_cv_lib_soname_jack" = "x"
12391 then
12392 ac_cv_lib_soname_jack="libjack.so"
12393 fi
12394else
12395 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12396sed 's/^/| /' conftest.$ac_ext >&5
12397
4691b185
CM
12398ac_cv_lib_soname_jack="libjack.so"
12399fi
12400rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12401 LIBS=$ac_get_soname_save_LIBS
12402fi
12403echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
12404echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
12405if test "x$ac_cv_lib_soname_jack" != xNONE
12406then
12407cat >>confdefs.h <<_ACEOF
12408#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
12409_ACEOF
12410fi
67e8dc68
AJ
12411fi
12412
12413
12414
12415wine_cv_libc_reentrant=no
12416echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
f5818d2f
AJ
12417echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
12418if test "${wine_cv_libc_r___errno_location+set}" = set; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
d30dfd24
AJ
12420else
12421 if test "$cross_compiling" = yes; then
f5818d2f 12422 wine_cv_libc_r___errno_location=yes
d30dfd24 12423else
f5818d2f 12424 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12425#line $LINENO "configure"
e24bcc77
AJ
12426/* confdefs.h. */
12427_ACEOF
12428cat confdefs.h >>conftest.$ac_ext
12429cat >>conftest.$ac_ext <<_ACEOF
12430/* end confdefs.h. */
d30dfd24 12431int myerrno = 0;
d30dfd24 12432int *__errno_location(){return &myerrno;}
770c33f6 12433main(){close(333); close(333); exit(!myerrno);}
f5818d2f
AJ
12434_ACEOF
12435rm -f conftest$ac_exeext
daa2886c 12436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
12437 (eval $ac_link) 2>&5
12438 ac_status=$?
daa2886c 12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
daa2886c 12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12442 (eval $ac_try) 2>&5
12443 ac_status=$?
daa2886c 12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12445 (exit $ac_status); }; }; then
598412ed 12446 wine_cv_libc_r___errno_location=yes
d30dfd24 12447else
f5818d2f
AJ
12448 echo "$as_me: program exited with status $ac_status" >&5
12449echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12450sed 's/^/| /' conftest.$ac_ext >&5
12451
daa2886c 12452( exit $ac_status )
f5818d2f 12453wine_cv_libc_r___errno_location=no
d30dfd24 12454fi
11af04e3 12455rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d30dfd24 12456fi
715a55e7 12457fi
daa2886c 12458echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
f5818d2f 12459echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
67e8dc68
AJ
12460if test "$wine_cv_libc_r___errno_location" = "yes"; then
12461 wine_cv_libc_reentrant=__errno_location
12462else
12463 echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
f5818d2f
AJ
12464echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
12465if test "${wine_cv_libc_r___error+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
715a55e7
UW
12467else
12468 if test "$cross_compiling" = yes; then
f5818d2f 12469 wine_cv_libc_r___error=yes
c2606381 12470else
f5818d2f 12471 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12472#line $LINENO "configure"
e24bcc77
AJ
12473/* confdefs.h. */
12474_ACEOF
12475cat confdefs.h >>conftest.$ac_ext
12476cat >>conftest.$ac_ext <<_ACEOF
12477/* end confdefs.h. */
c2606381 12478int myerrno = 0;
c2606381 12479int *__error(){return &myerrno;}
770c33f6 12480main(){close(333); close(333); exit(!myerrno);}
f5818d2f
AJ
12481_ACEOF
12482rm -f conftest$ac_exeext
daa2886c 12483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
12484 (eval $ac_link) 2>&5
12485 ac_status=$?
daa2886c 12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
daa2886c 12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12489 (eval $ac_try) 2>&5
12490 ac_status=$?
daa2886c 12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12492 (exit $ac_status); }; }; then
598412ed 12493 wine_cv_libc_r___error=yes
c2606381 12494else
f5818d2f
AJ
12495 echo "$as_me: program exited with status $ac_status" >&5
12496echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12497sed 's/^/| /' conftest.$ac_ext >&5
12498
daa2886c 12499( exit $ac_status )
f5818d2f 12500wine_cv_libc_r___error=no
c2606381 12501fi
11af04e3 12502rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c2606381 12503fi
d30dfd24 12504fi
daa2886c 12505echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
f5818d2f 12506echo "${ECHO_T}$wine_cv_libc_r___error" >&6
67e8dc68
AJ
12507if test "$wine_cv_libc_r___error" = "yes"; then
12508 wine_cv_libc_reentrant=__error
12509else
12510 echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
f5818d2f
AJ
12511echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
12512if test "${wine_cv_libc_r____errno+set}" = set; then
12513 echo $ECHO_N "(cached) $ECHO_C" >&6
715a55e7
UW
12514else
12515 if test "$cross_compiling" = yes; then
f5818d2f 12516 wine_cv_libc_r____errno=yes
715a55e7 12517else
f5818d2f 12518 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12519#line $LINENO "configure"
e24bcc77
AJ
12520/* confdefs.h. */
12521_ACEOF
12522cat confdefs.h >>conftest.$ac_ext
12523cat >>conftest.$ac_ext <<_ACEOF
12524/* end confdefs.h. */
715a55e7 12525int myerrno = 0;
715a55e7 12526int *___errno(){return &myerrno;}
770c33f6 12527main(){close(333); close(333); exit(!myerrno);}
f5818d2f
AJ
12528_ACEOF
12529rm -f conftest$ac_exeext
daa2886c 12530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
12531 (eval $ac_link) 2>&5
12532 ac_status=$?
daa2886c 12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
daa2886c 12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12536 (eval $ac_try) 2>&5
12537 ac_status=$?
daa2886c 12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12539 (exit $ac_status); }; }; then
598412ed 12540 wine_cv_libc_r____errno=yes
715a55e7 12541else
f5818d2f
AJ
12542 echo "$as_me: program exited with status $ac_status" >&5
12543echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12544sed 's/^/| /' conftest.$ac_ext >&5
12545
daa2886c 12546( exit $ac_status )
f5818d2f 12547wine_cv_libc_r____errno=no
715a55e7 12548fi
11af04e3 12549rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
715a55e7 12550fi
715a55e7 12551fi
daa2886c 12552echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
f5818d2f 12553echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
67e8dc68
AJ
12554if test "$wine_cv_libc_r____errno" = "yes"; then
12555 wine_cv_libc_reentrant=___errno
12556else
12557 echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
f5818d2f
AJ
12558echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
12559if test "${wine_cv_libc_r___thr_errno+set}" = set; then
12560 echo $ECHO_N "(cached) $ECHO_C" >&6
e977d6ca
RR
12561else
12562 if test "$cross_compiling" = yes; then
f5818d2f 12563 wine_cv_libc_r___thr_errno=yes
e977d6ca 12564else
f5818d2f 12565 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12566#line $LINENO "configure"
e24bcc77
AJ
12567/* confdefs.h. */
12568_ACEOF
12569cat confdefs.h >>conftest.$ac_ext
12570cat >>conftest.$ac_ext <<_ACEOF
12571/* end confdefs.h. */
e977d6ca 12572int myerrno = 0;
e977d6ca 12573int *__thr_errno(){return &myerrno;}
770c33f6 12574main(){close(333); close(333); exit(!myerrno);}
f5818d2f
AJ
12575_ACEOF
12576rm -f conftest$ac_exeext
daa2886c 12577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
12578 (eval $ac_link) 2>&5
12579 ac_status=$?
daa2886c 12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
daa2886c 12582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12583 (eval $ac_try) 2>&5
12584 ac_status=$?
daa2886c 12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12586 (exit $ac_status); }; }; then
598412ed 12587 wine_cv_libc_r___thr_errno=yes
e977d6ca 12588else
f5818d2f
AJ
12589 echo "$as_me: program exited with status $ac_status" >&5
12590echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12591sed 's/^/| /' conftest.$ac_ext >&5
12592
daa2886c 12593( exit $ac_status )
f5818d2f 12594wine_cv_libc_r___thr_errno=no
e977d6ca 12595fi
11af04e3 12596rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e977d6ca 12597fi
e977d6ca 12598fi
daa2886c 12599echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
f5818d2f 12600echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
67e8dc68
AJ
12601if test "$wine_cv_libc_r___thr_errno" = "yes"; then
12602 wine_cv_libc_reentrant=__thr_errno
12603else
12604 echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
f5818d2f
AJ
12605echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
12606if test "${wine_cv_libc_r___errno+set}" = set; then
12607 echo $ECHO_N "(cached) $ECHO_C" >&6
33dff344
BJY
12608else
12609 if test "$cross_compiling" = yes; then
f5818d2f 12610 wine_cv_libc_r___errno=yes
33dff344 12611else
f5818d2f 12612 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12613#line $LINENO "configure"
e24bcc77
AJ
12614/* confdefs.h. */
12615_ACEOF
12616cat confdefs.h >>conftest.$ac_ext
12617cat >>conftest.$ac_ext <<_ACEOF
12618/* end confdefs.h. */
33dff344 12619int myerrno = 0;
33dff344 12620int *__errno(){return &myerrno;}
770c33f6 12621main(){close(333); close(333); exit(!myerrno);}
f5818d2f
AJ
12622_ACEOF
12623rm -f conftest$ac_exeext
daa2886c 12624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
12625 (eval $ac_link) 2>&5
12626 ac_status=$?
daa2886c 12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
daa2886c 12629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12630 (eval $ac_try) 2>&5
12631 ac_status=$?
daa2886c 12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12633 (exit $ac_status); }; }; then
33dff344
BJY
12634 wine_cv_libc_r___errno=yes
12635else
f5818d2f
AJ
12636 echo "$as_me: program exited with status $ac_status" >&5
12637echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12638sed 's/^/| /' conftest.$ac_ext >&5
12639
daa2886c 12640( exit $ac_status )
f5818d2f 12641wine_cv_libc_r___errno=no
33dff344 12642fi
11af04e3 12643rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33dff344 12644fi
33dff344 12645fi
daa2886c 12646echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
f5818d2f 12647echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
67e8dc68
AJ
12648if test "$wine_cv_libc_r___errno" = "yes"; then
12649 wine_cv_libc_reentrant=__errno
12650fi
12651
12652
12653fi
12654
12655fi
12656
12657fi
12658
33dff344
BJY
12659fi
12660
daa2886c 12661
f5818d2f 12662if test "$wine_cv_libc_reentrant" != "no"
d30dfd24 12663then
f5818d2f 12664
daa2886c 12665cat >>confdefs.h <<_ACEOF
598412ed 12666#define ERRNO_LOCATION $wine_cv_libc_reentrant
daa2886c 12667_ACEOF
d30dfd24
AJ
12668
12669fi
12670
daa2886c 12671
867fb9d7 12672if test "$have_x" = "yes"
24110288 12673then
daa2886c 12674echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
f5818d2f
AJ
12675echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
12676if test "${wine_cv_x_reentrant+set}" = set; then
12677 echo $ECHO_N "(cached) $ECHO_C" >&6
a11d7b1a 12678else
867fb9d7
AJ
12679 libX11_check=none
12680 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
12681 if test -r $dir/libX11.so; then
12682 libX11_check="-D $dir/libX11.so"
12683 break
12684 fi
12685 if test -r $dir/libX11.a; then
12686 libX11_check="$dir/libX11.a"
12687 break
12688 fi
12689 done
12690 if test "$libX11_check" != "none"; then
12691 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
12692 then
12693 wine_cv_x_reentrant=yes
12694 else
12695 wine_cv_x_reentrant=no
12696 fi
a11d7b1a 12697 else
867fb9d7 12698 wine_cv_x_reentrant=unknown
f5818d2f 12699 fi
a11d7b1a 12700fi
daa2886c 12701echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
f5818d2f 12702echo "${ECHO_T}$wine_cv_x_reentrant" >&6
a11d7b1a
AJ
12703fi
12704
daa2886c 12705
1bb94039
PS
12706# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12707# for constant arguments. Useless!
daa2886c 12708echo "$as_me:$LINENO: checking for working alloca.h" >&5
f5818d2f
AJ
12709echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12710if test "${ac_cv_working_alloca_h+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
1bb94039 12712else
f5818d2f 12713 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12714#line $LINENO "configure"
e24bcc77
AJ
12715/* confdefs.h. */
12716_ACEOF
12717cat confdefs.h >>conftest.$ac_ext
12718cat >>conftest.$ac_ext <<_ACEOF
12719/* end confdefs.h. */
1bb94039 12720#include <alloca.h>
f5818d2f
AJ
12721int
12722main ()
12723{
12724char *p = (char *) alloca (2 * sizeof (int));
12725 ;
12726 return 0;
12727}
12728_ACEOF
12729rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 12730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
12731 (eval $ac_link) 2>&5
12732 ac_status=$?
daa2886c 12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12734 (exit $ac_status); } &&
12735 { ac_try='test -s conftest$ac_exeext'
daa2886c 12736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12737 (eval $ac_try) 2>&5
12738 ac_status=$?
daa2886c 12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12740 (exit $ac_status); }; }; then
12741 ac_cv_working_alloca_h=yes
12742else
12743 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12744sed 's/^/| /' conftest.$ac_ext >&5
12745
f5818d2f
AJ
12746ac_cv_working_alloca_h=no
12747fi
12748rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12749fi
daa2886c 12750echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
f5818d2f
AJ
12751echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12752if test $ac_cv_working_alloca_h = yes; then
12753
daa2886c 12754cat >>confdefs.h <<\_ACEOF
1bb94039 12755#define HAVE_ALLOCA_H 1
daa2886c 12756_ACEOF
1bb94039
PS
12757
12758fi
12759
daa2886c 12760echo "$as_me:$LINENO: checking for alloca" >&5
f5818d2f
AJ
12761echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12762if test "${ac_cv_func_alloca_works+set}" = set; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
1bb94039 12764else
f5818d2f 12765 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12766#line $LINENO "configure"
e24bcc77
AJ
12767/* confdefs.h. */
12768_ACEOF
12769cat confdefs.h >>conftest.$ac_ext
12770cat >>conftest.$ac_ext <<_ACEOF
12771/* end confdefs.h. */
1bb94039
PS
12772#ifdef __GNUC__
12773# define alloca __builtin_alloca
12774#else
18ad24a7
EP
12775# ifdef _MSC_VER
12776# include <malloc.h>
12777# define alloca _alloca
1bb94039 12778# else
18ad24a7
EP
12779# if HAVE_ALLOCA_H
12780# include <alloca.h>
1bb94039 12781# else
18ad24a7
EP
12782# ifdef _AIX
12783 #pragma alloca
12784# else
12785# ifndef alloca /* predefined by HP cc +Olibcalls */
1bb94039 12786char *alloca ();
18ad24a7 12787# endif
1bb94039
PS
12788# endif
12789# endif
12790# endif
12791#endif
12792
f5818d2f
AJ
12793int
12794main ()
12795{
12796char *p = (char *) alloca (1);
12797 ;
12798 return 0;
12799}
12800_ACEOF
12801rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 12802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
12803 (eval $ac_link) 2>&5
12804 ac_status=$?
daa2886c 12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12806 (exit $ac_status); } &&
12807 { ac_try='test -s conftest$ac_exeext'
daa2886c 12808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12809 (eval $ac_try) 2>&5
12810 ac_status=$?
daa2886c 12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12812 (exit $ac_status); }; }; then
1bb94039
PS
12813 ac_cv_func_alloca_works=yes
12814else
f5818d2f 12815 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12816sed 's/^/| /' conftest.$ac_ext >&5
12817
f5818d2f 12818ac_cv_func_alloca_works=no
1bb94039 12819fi
f5818d2f 12820rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1bb94039 12821fi
daa2886c 12822echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
f5818d2f 12823echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
1bb94039 12824
1bb94039 12825if test $ac_cv_func_alloca_works = yes; then
f5818d2f 12826
daa2886c 12827cat >>confdefs.h <<\_ACEOF
1bb94039 12828#define HAVE_ALLOCA 1
daa2886c 12829_ACEOF
1bb94039 12830
f5818d2f 12831else
1bb94039 12832 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
f5818d2f
AJ
12833# that cause trouble. Some versions do not even contain alloca or
12834# contain a buggy version. If you still want to use their alloca,
12835# use ar to extract alloca.o from them instead of compiling alloca.c.
12836
12837ALLOCA=alloca.$ac_objext
12838
daa2886c 12839cat >>confdefs.h <<\_ACEOF
1bb94039 12840#define C_ALLOCA 1
daa2886c
AJ
12841_ACEOF
12842
1bb94039 12843
daa2886c 12844echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
f5818d2f
AJ
12845echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12846if test "${ac_cv_os_cray+set}" = set; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
1bb94039 12848else
f5818d2f 12849 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12850#line $LINENO "configure"
e24bcc77
AJ
12851/* confdefs.h. */
12852_ACEOF
12853cat confdefs.h >>conftest.$ac_ext
12854cat >>conftest.$ac_ext <<_ACEOF
12855/* end confdefs.h. */
1bb94039
PS
12856#if defined(CRAY) && ! defined(CRAY2)
12857webecray
12858#else
12859wenotbecray
12860#endif
12861
f5818d2f 12862_ACEOF
1bb94039 12863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 12864 $EGREP "webecray" >/dev/null 2>&1; then
1bb94039
PS
12865 ac_cv_os_cray=yes
12866else
1bb94039
PS
12867 ac_cv_os_cray=no
12868fi
12869rm -f conftest*
12870
12871fi
daa2886c 12872echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
f5818d2f 12873echo "${ECHO_T}$ac_cv_os_cray" >&6
1bb94039 12874if test $ac_cv_os_cray = yes; then
f5818d2f
AJ
12875 for ac_func in _getb67 GETB67 getb67; do
12876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
daa2886c 12877echo "$as_me:$LINENO: checking for $ac_func" >&5
f5818d2f
AJ
12878echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12879if eval "test \"\${$as_ac_var+set}\" = set"; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
12881else
12882 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12883#line $LINENO "configure"
e24bcc77
AJ
12884/* confdefs.h. */
12885_ACEOF
12886cat confdefs.h >>conftest.$ac_ext
12887cat >>conftest.$ac_ext <<_ACEOF
12888/* end confdefs.h. */
1bb94039 12889/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
12890 which can conflict with char $ac_func (); below.
12891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12892 <limits.h> exists even on freestanding compilers. */
12893#ifdef __STDC__
12894# include <limits.h>
12895#else
12896# include <assert.h>
12897#endif
1bb94039 12898/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
12899#ifdef __cplusplus
12900extern "C"
e24bcc77 12901{
f5818d2f 12902#endif
1bb94039 12903/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
12904 builtin and then its argument prototype would still apply. */
12905char $ac_func ();
1bb94039
PS
12906/* The GNU C library defines this for functions which it implements
12907 to always fail with ENOSYS. Some functions are actually named
12908 something starting with __ and the normal name is an alias. */
12909#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12910choke me
12911#else
e24bcc77
AJ
12912char (*f) () = $ac_func;
12913#endif
12914#ifdef __cplusplus
12915}
1bb94039
PS
12916#endif
12917
e24bcc77
AJ
12918int
12919main ()
12920{
12921return f != $ac_func;
f5818d2f
AJ
12922 ;
12923 return 0;
12924}
12925_ACEOF
12926rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 12927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
12928 (eval $ac_link) 2>&5
12929 ac_status=$?
daa2886c 12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12931 (exit $ac_status); } &&
12932 { ac_try='test -s conftest$ac_exeext'
daa2886c 12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12934 (eval $ac_try) 2>&5
12935 ac_status=$?
daa2886c 12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12937 (exit $ac_status); }; }; then
12938 eval "$as_ac_var=yes"
12939else
12940 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12941sed 's/^/| /' conftest.$ac_ext >&5
12942
f5818d2f
AJ
12943eval "$as_ac_var=no"
12944fi
12945rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12946fi
daa2886c 12947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f5818d2f
AJ
12948echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12949if test `eval echo '${'$as_ac_var'}'` = yes; then
12950
daa2886c 12951cat >>confdefs.h <<_ACEOF
1bb94039 12952#define CRAY_STACKSEG_END $ac_func
daa2886c 12953_ACEOF
1bb94039 12954
f5818d2f 12955 break
1bb94039
PS
12956fi
12957
f5818d2f 12958 done
1bb94039
PS
12959fi
12960
daa2886c 12961echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
f5818d2f
AJ
12962echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12963if test "${ac_cv_c_stack_direction+set}" = set; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
1bb94039
PS
12965else
12966 if test "$cross_compiling" = yes; then
12967 ac_cv_c_stack_direction=0
12968else
f5818d2f 12969 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12970#line $LINENO "configure"
e24bcc77
AJ
12971/* confdefs.h. */
12972_ACEOF
12973cat confdefs.h >>conftest.$ac_ext
12974cat >>conftest.$ac_ext <<_ACEOF
12975/* end confdefs.h. */
f5818d2f 12976int
1bb94039
PS
12977find_stack_direction ()
12978{
12979 static char *addr = 0;
12980 auto char dummy;
12981 if (addr == 0)
12982 {
12983 addr = &dummy;
12984 return find_stack_direction ();
12985 }
12986 else
12987 return (&dummy > addr) ? 1 : -1;
12988}
f5818d2f
AJ
12989
12990int
1bb94039
PS
12991main ()
12992{
f5818d2f 12993 exit (find_stack_direction () < 0);
1bb94039 12994}
f5818d2f
AJ
12995_ACEOF
12996rm -f conftest$ac_exeext
daa2886c 12997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
12998 (eval $ac_link) 2>&5
12999 ac_status=$?
daa2886c 13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 13001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
daa2886c 13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
13003 (eval $ac_try) 2>&5
13004 ac_status=$?
daa2886c 13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 13006 (exit $ac_status); }; }; then
1bb94039
PS
13007 ac_cv_c_stack_direction=1
13008else
f5818d2f
AJ
13009 echo "$as_me: program exited with status $ac_status" >&5
13010echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13011sed 's/^/| /' conftest.$ac_ext >&5
13012
daa2886c 13013( exit $ac_status )
f5818d2f 13014ac_cv_c_stack_direction=-1
1bb94039 13015fi
11af04e3 13016rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1bb94039 13017fi
1bb94039 13018fi
daa2886c 13019echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
f5818d2f 13020echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
1bb94039 13021
daa2886c 13022cat >>confdefs.h <<_ACEOF
1bb94039 13023#define STACK_DIRECTION $ac_cv_c_stack_direction
daa2886c
AJ
13024_ACEOF
13025
1bb94039
PS
13026
13027fi
13028
daa2886c
AJ
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
b9627c14
SE
13068
13069
6caeb721
PS
13070
13071
13072
13073
13074
0a8e15ab
SE
13075
13076
daa2886c 13077
142dab8c 13078
5ac2a538
BC
13079
13080
be514b90
SE
13081
13082
647c1a33 13083
daa2886c
AJ
13084
13085
2487ccea
AJ
13086for ac_func in \
13087 _lwp_create \
81ecb52c
PS
13088 _pclose \
13089 _popen \
0a8e15ab 13090 _snprintf \
81ecb52c
PS
13091 _stricmp \
13092 _strnicmp \
be514b90 13093 _vsnprintf \
b9627c14 13094 chsize \
2487ccea 13095 clone \
a7ca2ba7 13096 ecvt \
5ac2a538 13097 fcvt \
d6deb6db
JG
13098 finite \
13099 fpclass \
b9627c14 13100 ftruncate \
3f1ed52d 13101 ftruncate64 \
5ac2a538 13102 gcvt \
b9010214
PS
13103 getnetbyaddr \
13104 getnetbyname \
647c1a33 13105 getopt_long \
2487ccea 13106 getpagesize \
b9010214
PS
13107 getprotobyname \
13108 getprotobynumber \
142dab8c 13109 getpwuid \
b9010214
PS
13110 getservbyport \
13111 getsockopt \
13112 inet_network \
3f1ed52d 13113 lseek64 \
27bb311d 13114 lstat \
2487ccea 13115 memmove \
786d2490 13116 mkstemp \
a85b0a6d 13117 mmap \
81ecb52c 13118 pclose \
81ecb52c 13119 popen \
b9627c14 13120 pread \
6caeb721
PS
13121 pthread_getspecific \
13122 pthread_key_create \
13123 pthread_mutex_lock \
13124 pthread_mutex_unlock \
13125 pthread_setspecific \
f1a0de99 13126 pwrite \
2487ccea 13127 rfork \
b9010214 13128 select \
2487ccea 13129 sendmsg \
b9010214 13130 settimeofday \
2487ccea 13131 sigaltstack \
0a8e15ab 13132 snprintf \
b9010214 13133 statfs \
3b96efc0 13134 strcasecmp \
2487ccea 13135 strerror \
3b96efc0 13136 strncasecmp \
2487ccea
AJ
13137 tcgetattr \
13138 timegm \
13139 usleep \
13140 vfscanf \
be514b90 13141 vsnprintf \
2487ccea
AJ
13142 wait4 \
13143 waitpid \
13144
e2991ea7 13145do
f5818d2f 13146as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
daa2886c 13147echo "$as_me:$LINENO: checking for $ac_func" >&5
f5818d2f
AJ
13148echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13149if eval "test \"\${$as_ac_var+set}\" = set"; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13151else
13152 cat >conftest.$ac_ext <<_ACEOF
daa2886c 13153#line $LINENO "configure"
e24bcc77
AJ
13154/* confdefs.h. */
13155_ACEOF
13156cat confdefs.h >>conftest.$ac_ext
13157cat >>conftest.$ac_ext <<_ACEOF
13158/* end confdefs.h. */
e2991ea7 13159/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
13160 which can conflict with char $ac_func (); below.
13161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13162 <limits.h> exists even on freestanding compilers. */
13163#ifdef __STDC__
13164# include <limits.h>
13165#else
13166# include <assert.h>
13167#endif
e2991ea7 13168/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
13169#ifdef __cplusplus
13170extern "C"
e24bcc77 13171{
f5818d2f 13172#endif
e2bfa4c7 13173/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
13174 builtin and then its argument prototype would still apply. */
13175char $ac_func ();
e2991ea7
AJ
13176/* The GNU C library defines this for functions which it implements
13177 to always fail with ENOSYS. Some functions are actually named
13178 something starting with __ and the normal name is an alias. */
13179#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13180choke me
13181#else
e24bcc77
AJ
13182char (*f) () = $ac_func;
13183#endif
13184#ifdef __cplusplus
13185}
e2991ea7
AJ
13186#endif
13187
e24bcc77
AJ
13188int
13189main ()
13190{
13191return f != $ac_func;
f5818d2f
AJ
13192 ;
13193 return 0;
13194}
13195_ACEOF
13196rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 13197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
13198 (eval $ac_link) 2>&5
13199 ac_status=$?
daa2886c 13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
13201 (exit $ac_status); } &&
13202 { ac_try='test -s conftest$ac_exeext'
daa2886c 13203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
13204 (eval $ac_try) 2>&5
13205 ac_status=$?
daa2886c 13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
13207 (exit $ac_status); }; }; then
13208 eval "$as_ac_var=yes"
13209else
13210 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13211sed 's/^/| /' conftest.$ac_ext >&5
13212
f5818d2f
AJ
13213eval "$as_ac_var=no"
13214fi
13215rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13216fi
daa2886c 13217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f5818d2f
AJ
13218echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13219if test `eval echo '${'$as_ac_var'}'` = yes; then
daa2886c 13220 cat >>confdefs.h <<_ACEOF
f5818d2f 13221#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 13222_ACEOF
7e6ae4ba 13223
e2991ea7
AJ
13224fi
13225done
13226
daa2886c
AJ
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
e7c6d17b
RZ
13285
13286
13287
daa2886c 13288
127ec92b 13289
57bf4506
PS
13290
13291
13292
ff4525ce 13293
647c1a33 13294
4691b185 13295
b6938952 13296
daa2886c
AJ
13297
13298
f5818d2f 13299for ac_header in \
96336324 13300 arpa/inet.h \
2487ccea 13301 arpa/nameser.h \
f061f767 13302 cups/cups.h \
81ecb52c 13303 direct.h \
2487ccea
AJ
13304 elf.h \
13305 float.h \
647c1a33 13306 getopt.h \
2e8e2334 13307 ieeefp.h \
81ecb52c 13308 io.h \
4691b185 13309 jack/jack.h \
2487ccea 13310 libio.h \
01f78aaa 13311 libutil.h \
96336324 13312 link.h \
2487ccea 13313 linux/cdrom.h \
e7c6d17b 13314 linux/hdreg.h \
c9b3b2e8 13315 linux/input.h \
028e9a17 13316 linux/joystick.h \
e7c6d17b 13317 linux/major.h \
0314a65a 13318 linux/param.h \
533e7eea 13319 linux/serial.h \
2487ccea 13320 linux/ucdrom.h \
5d1a6385 13321 netdb.h \
2487ccea 13322 netinet/in.h \
7a4e5997 13323 netinet/in_systm.h \
96336324 13324 netinet/tcp.h \
2d7be870 13325 pty.h \
ff4525ce 13326 pwd.h \
b6938952 13327 regex.h \
96336324 13328 sched.h \
e7c6d17b 13329 scsi/sg.h \
96336324 13330 socket.h \
eda758eb 13331 stdint.h \
2487ccea
AJ
13332 strings.h \
13333 sys/cdio.h \
13277480 13334 sys/errno.h \
2487ccea
AJ
13335 sys/file.h \
13336 sys/filio.h \
6098399a 13337 sys/inttypes.h \
c3e06df9 13338 sys/ioctl.h \
96336324 13339 sys/ipc.h \
624cbd7c 13340 sys/link.h \
2487ccea 13341 sys/lwp.h \
13277480 13342 sys/mman.h \
2487ccea 13343 sys/modem.h \
96336324 13344 sys/msg.h \
2487ccea 13345 sys/param.h \
57bf4506 13346 sys/poll.h \
2af03e45 13347 sys/ptrace.h \
8a1bdb30 13348 sys/reg.h \
96336324 13349 sys/shm.h \
e7c6d17b 13350 sys/signal.h \
96336324 13351 sys/socket.h \
2487ccea
AJ
13352 sys/sockio.h \
13353 sys/statfs.h \
13354 sys/strtio.h \
13355 sys/syscall.h \
127ec92b 13356 sys/sysctl.h \
81ecb52c 13357 sys/time.h \
57bf4506 13358 sys/times.h \
45e56818
SE
13359 sys/uio.h \
13360 sys/un.h \
96336324
PS
13361 sys/v86.h \
13362 sys/v86intr.h \
2487ccea 13363 sys/vfs.h \
96336324 13364 sys/vm86.h \
e7c6d17b 13365 sys/wait.h \
2487ccea 13366 syscall.h \
c3e06df9 13367 termios.h \
81ecb52c 13368 unistd.h \
57bf4506 13369 utime.h \
2487ccea 13370
02e90087 13371do
f5818d2f 13372as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c
AJ
13373if eval "test \"\${$as_ac_Header+set}\" = set"; then
13374 echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
13375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13376if eval "test \"\${$as_ac_Header+set}\" = set"; then
13377 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c
AJ
13378fi
13379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f5818d2f 13381else
daa2886c
AJ
13382 # Is the header compilable?
13383echo "$as_me:$LINENO: checking $ac_header usability" >&5
13384echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13385cat >conftest.$ac_ext <<_ACEOF
13386#line $LINENO "configure"
e24bcc77
AJ
13387/* confdefs.h. */
13388_ACEOF
13389cat confdefs.h >>conftest.$ac_ext
13390cat >>conftest.$ac_ext <<_ACEOF
13391/* end confdefs.h. */
daa2886c
AJ
13392$ac_includes_default
13393#include <$ac_header>
13394_ACEOF
13395rm -f conftest.$ac_objext
13396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13397 (eval $ac_compile) 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } &&
13401 { ac_try='test -s conftest.$ac_objext'
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 ac_header_compiler=yes
13408else
13409 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13410sed 's/^/| /' conftest.$ac_ext >&5
13411
daa2886c
AJ
13412ac_header_compiler=no
13413fi
13414rm -f conftest.$ac_objext conftest.$ac_ext
13415echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13416echo "${ECHO_T}$ac_header_compiler" >&6
13417
13418# Is the header present?
13419echo "$as_me:$LINENO: checking $ac_header presence" >&5
13420echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13421cat >conftest.$ac_ext <<_ACEOF
13422#line $LINENO "configure"
e24bcc77
AJ
13423/* confdefs.h. */
13424_ACEOF
13425cat confdefs.h >>conftest.$ac_ext
13426cat >>conftest.$ac_ext <<_ACEOF
13427/* end confdefs.h. */
f5818d2f
AJ
13428#include <$ac_header>
13429_ACEOF
daa2886c 13430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
13431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13432 ac_status=$?
11af04e3 13433 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
13434 rm -f conftest.er1
13435 cat conftest.err >&5
daa2886c 13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
13437 (exit $ac_status); } >/dev/null; then
13438 if test -s conftest.err; then
13439 ac_cpp_err=$ac_c_preproc_warn_flag
13440 else
13441 ac_cpp_err=
13442 fi
13443else
13444 ac_cpp_err=yes
13445fi
13446if test -z "$ac_cpp_err"; then
daa2886c 13447 ac_header_preproc=yes
f5818d2f
AJ
13448else
13449 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13450sed 's/^/| /' conftest.$ac_ext >&5
13451
daa2886c 13452 ac_header_preproc=no
02e90087 13453fi
f5818d2f 13454rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
13455echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13456echo "${ECHO_T}$ac_header_preproc" >&6
13457
13458# So? What about this header?
13459case $ac_header_compiler:$ac_header_preproc in
13460 yes:no )
13461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13462echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
13464echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13465 (
13466 cat <<\_ASBOX
13467## ------------------------------------ ##
13468## Report this to bug-autoconf@gnu.org. ##
13469## ------------------------------------ ##
13470_ASBOX
13471 ) |
13472 sed "s/^/$as_me: WARNING: /" >&2
13473 ;;
daa2886c
AJ
13474 no:yes )
13475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13476echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13478echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
13480echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13481 (
13482 cat <<\_ASBOX
13483## ------------------------------------ ##
13484## Report this to bug-autoconf@gnu.org. ##
13485## ------------------------------------ ##
13486_ASBOX
13487 ) |
13488 sed "s/^/$as_me: WARNING: /" >&2
13489 ;;
daa2886c
AJ
13490esac
13491echo "$as_me:$LINENO: checking for $ac_header" >&5
13492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13493if eval "test \"\${$as_ac_Header+set}\" = set"; then
13494 echo $ECHO_N "(cached) $ECHO_C" >&6
13495else
13496 eval "$as_ac_Header=$ac_header_preproc"
02e90087 13497fi
daa2886c 13498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 13499echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
13500
13501fi
f5818d2f 13502if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 13503 cat >>confdefs.h <<_ACEOF
f5818d2f 13504#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 13505_ACEOF
f5818d2f 13506
02e90087 13507fi
daa2886c 13508
02e90087
AJ
13509done
13510
daa2886c 13511echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
f5818d2f
AJ
13512echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13513if test "${ac_cv_header_stat_broken+set}" = set; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7 13515else
f5818d2f 13516 cat >conftest.$ac_ext <<_ACEOF
daa2886c 13517#line $LINENO "configure"
e24bcc77
AJ
13518/* confdefs.h. */
13519_ACEOF
13520cat confdefs.h >>conftest.$ac_ext
13521cat >>conftest.$ac_ext <<_ACEOF
13522/* end confdefs.h. */
e2991ea7
AJ
13523#include <sys/types.h>
13524#include <sys/stat.h>
13525
13526#if defined(S_ISBLK) && defined(S_IFDIR)
13527# if S_ISBLK (S_IFDIR)
13528You lose.
13529# endif
13530#endif
13531
13532#if defined(S_ISBLK) && defined(S_IFCHR)
13533# if S_ISBLK (S_IFCHR)
13534You lose.
13535# endif
13536#endif
13537
13538#if defined(S_ISLNK) && defined(S_IFREG)
13539# if S_ISLNK (S_IFREG)
13540You lose.
13541# endif
13542#endif
13543
13544#if defined(S_ISSOCK) && defined(S_IFREG)
13545# if S_ISSOCK (S_IFREG)
13546You lose.
13547# endif
13548#endif
13549
f5818d2f 13550_ACEOF
e2991ea7 13551if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 13552 $EGREP "You lose" >/dev/null 2>&1; then
e2991ea7
AJ
13553 ac_cv_header_stat_broken=yes
13554else
e2991ea7
AJ
13555 ac_cv_header_stat_broken=no
13556fi
13557rm -f conftest*
13558
13559fi
daa2886c 13560echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
f5818d2f 13561echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
e2991ea7 13562if test $ac_cv_header_stat_broken = yes; then
f5818d2f 13563
daa2886c 13564cat >>confdefs.h <<\_ACEOF
e2991ea7 13565#define STAT_MACROS_BROKEN 1
daa2886c 13566_ACEOF
e2991ea7
AJ
13567
13568fi
13569
daa2886c
AJ
13570
13571
6cef4cdc
GP
13572
13573
13574for ac_header in sys/mount.h sys/user.h
13575do
13576as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13577echo "$as_me:$LINENO: checking for $ac_header" >&5
13578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13579if eval "test \"\${$as_ac_Header+set}\" = set"; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13581else
13582 cat >conftest.$ac_ext <<_ACEOF
13583#line $LINENO "configure"
e24bcc77
AJ
13584/* confdefs.h. */
13585_ACEOF
13586cat confdefs.h >>conftest.$ac_ext
13587cat >>conftest.$ac_ext <<_ACEOF
13588/* end confdefs.h. */
63ae7fee
PS
13589#include <sys/types.h>
13590 #if HAVE_SYS_PARAM_H
13591 # include <sys/param.h>
6cef4cdc
GP
13592 #endif
13593
13594#include <$ac_header>
13595_ACEOF
13596rm -f conftest.$ac_objext
13597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13598 (eval $ac_compile) 2>&5
13599 ac_status=$?
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); } &&
13602 { ac_try='test -s conftest.$ac_objext'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; }; then
13608 eval "$as_ac_Header=yes"
13609else
13610 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13611sed 's/^/| /' conftest.$ac_ext >&5
13612
6cef4cdc
GP
13613eval "$as_ac_Header=no"
13614fi
13615rm -f conftest.$ac_objext conftest.$ac_ext
13616fi
13617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13618echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13619if test `eval echo '${'$as_ac_Header'}'` = yes; then
13620 cat >>confdefs.h <<_ACEOF
13621#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13622_ACEOF
13623
13624fi
13625
13626done
13627
13628
13629
044b5c41
GM
13630for ac_header in net/if.h
13631do
13632as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13633echo "$as_me:$LINENO: checking for $ac_header" >&5
13634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13635if eval "test \"\${$as_ac_Header+set}\" = set"; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13637else
13638 cat >conftest.$ac_ext <<_ACEOF
13639#line $LINENO "configure"
e24bcc77
AJ
13640/* confdefs.h. */
13641_ACEOF
13642cat confdefs.h >>conftest.$ac_ext
13643cat >>conftest.$ac_ext <<_ACEOF
13644/* end confdefs.h. */
63ae7fee 13645#include <sys/types.h>
87c369df 13646 #if HAVE_SYS_SOCKET_H
044b5c41
GM
13647 # include <sys/socket.h>
13648 #endif
13649
13650#include <$ac_header>
13651_ACEOF
13652rm -f conftest.$ac_objext
13653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13654 (eval $ac_compile) 2>&5
13655 ac_status=$?
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); } &&
13658 { ac_try='test -s conftest.$ac_objext'
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13661 ac_status=$?
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13664 eval "$as_ac_Header=yes"
13665else
13666 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13667sed 's/^/| /' conftest.$ac_ext >&5
13668
044b5c41
GM
13669eval "$as_ac_Header=no"
13670fi
13671rm -f conftest.$ac_objext conftest.$ac_ext
13672fi
13673echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13674echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13675if test `eval echo '${'$as_ac_Header'}'` = yes; then
13676 cat >>confdefs.h <<_ACEOF
13677#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13678_ACEOF
13679
13680fi
13681
13682done
13683
13684
13685
13686for ac_header in netinet/ip.h
13687do
13688as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13689echo "$as_me:$LINENO: checking for $ac_header" >&5
13690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13691if eval "test \"\${$as_ac_Header+set}\" = set"; then
13692 echo $ECHO_N "(cached) $ECHO_C" >&6
13693else
13694 cat >conftest.$ac_ext <<_ACEOF
13695#line $LINENO "configure"
e24bcc77
AJ
13696/* confdefs.h. */
13697_ACEOF
13698cat confdefs.h >>conftest.$ac_ext
13699cat >>conftest.$ac_ext <<_ACEOF
13700/* end confdefs.h. */
63ae7fee
PS
13701#include <sys/types.h>
13702 #if HAVE_SYS_SOCKET_H
044b5c41
GM
13703 # include <sys/socket.h>
13704 #endif
13705 #if HAVE_NETINET_IN_SYSTM_H
13706 # include <netinet/in_systm.h>
13707 #endif
13708
13709#include <$ac_header>
13710_ACEOF
13711rm -f conftest.$ac_objext
13712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13713 (eval $ac_compile) 2>&5
13714 ac_status=$?
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); } &&
13717 { ac_try='test -s conftest.$ac_objext'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13720 ac_status=$?
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; }; then
13723 eval "$as_ac_Header=yes"
13724else
13725 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13726sed 's/^/| /' conftest.$ac_ext >&5
13727
044b5c41
GM
13728eval "$as_ac_Header=no"
13729fi
13730rm -f conftest.$ac_objext conftest.$ac_ext
13731fi
13732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13734if test `eval echo '${'$as_ac_Header'}'` = yes; then
13735 cat >>confdefs.h <<_ACEOF
13736#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13737_ACEOF
13738
13739fi
13740
13741done
13742
13743
13744
13745for ac_header in resolv.h
13746do
13747as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13748echo "$as_me:$LINENO: checking for $ac_header" >&5
13749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13750if eval "test \"\${$as_ac_Header+set}\" = set"; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13752else
13753 cat >conftest.$ac_ext <<_ACEOF
13754#line $LINENO "configure"
e24bcc77
AJ
13755/* confdefs.h. */
13756_ACEOF
13757cat confdefs.h >>conftest.$ac_ext
13758cat >>conftest.$ac_ext <<_ACEOF
13759/* end confdefs.h. */
63ae7fee
PS
13760#include <sys/types.h>
13761 #if HAVE_SYS_SOCKET_H
044b5c41
GM
13762 # include <sys/socket.h>
13763 #endif
13764
d2033a59
GP
13765#include <$ac_header>
13766_ACEOF
13767rm -f conftest.$ac_objext
13768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13769 (eval $ac_compile) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } &&
13773 { ac_try='test -s conftest.$ac_objext'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
13779 eval "$as_ac_Header=yes"
13780else
13781 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13782sed 's/^/| /' conftest.$ac_ext >&5
13783
d2033a59
GP
13784eval "$as_ac_Header=no"
13785fi
13786rm -f conftest.$ac_objext conftest.$ac_ext
13787fi
13788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13790if test `eval echo '${'$as_ac_Header'}'` = yes; then
13791 cat >>confdefs.h <<_ACEOF
13792#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13793_ACEOF
13794
13795fi
13796
13797done
13798
13799
13800
13801for ac_header in ucontext.h
13802do
13803as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13804echo "$as_me:$LINENO: checking for $ac_header" >&5
13805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13806if eval "test \"\${$as_ac_Header+set}\" = set"; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13808else
13809 cat >conftest.$ac_ext <<_ACEOF
13810#line $LINENO "configure"
e24bcc77
AJ
13811/* confdefs.h. */
13812_ACEOF
13813cat confdefs.h >>conftest.$ac_ext
13814cat >>conftest.$ac_ext <<_ACEOF
13815/* end confdefs.h. */
d2033a59
GP
13816#include <signal.h>
13817
044b5c41
GM
13818#include <$ac_header>
13819_ACEOF
13820rm -f conftest.$ac_objext
13821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13822 (eval $ac_compile) 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } &&
13826 { ac_try='test -s conftest.$ac_objext'
13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828 (eval $ac_try) 2>&5
13829 ac_status=$?
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); }; }; then
13832 eval "$as_ac_Header=yes"
13833else
13834 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13835sed 's/^/| /' conftest.$ac_ext >&5
13836
044b5c41
GM
13837eval "$as_ac_Header=no"
13838fi
13839rm -f conftest.$ac_objext conftest.$ac_ext
13840fi
13841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13843if test `eval echo '${'$as_ac_Header'}'` = yes; then
13844 cat >>confdefs.h <<_ACEOF
13845#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13846_ACEOF
13847
13848fi
13849
13850done
13851
13852
13853
b38b4c2c
AJ
13854echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
13855echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
13856if test "${ac_cv_c_ipx_gnu+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13858else
13859 cat >conftest.$ac_ext <<_ACEOF
13860#line $LINENO "configure"
13861/* confdefs.h. */
13862_ACEOF
13863cat confdefs.h >>conftest.$ac_ext
13864cat >>conftest.$ac_ext <<_ACEOF
13865/* end confdefs.h. */
13866#include <sys/types.h>
13867 #ifdef HAVE_SYS_SOCKET_H
13868 # include <sys/socket.h>
13869 #endif
13870 #include <netipx/ipx.h>
13871int
13872main ()
13873{
13874((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
13875 ;
13876 return 0;
13877}
13878_ACEOF
13879rm -f conftest.$ac_objext
13880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13881 (eval $ac_compile) 2>&5
13882 ac_status=$?
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); } &&
13885 { ac_try='test -s conftest.$ac_objext'
13886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887 (eval $ac_try) 2>&5
13888 ac_status=$?
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); }; }; then
13891 ac_cv_c_ipx_gnu="yes"
13892else
13893 echo "$as_me: failed program was:" >&5
13894sed 's/^/| /' conftest.$ac_ext >&5
13895
13896ac_cv_c_ipx_gnu="no"
13897fi
13898rm -f conftest.$ac_objext conftest.$ac_ext
13899
13900fi
13901echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
13902echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
13903if test "$ac_cv_c_ipx_gnu" = "yes"
13904then
13905
13906cat >>confdefs.h <<\_ACEOF
13907#define HAVE_IPX_GNU 1
13908_ACEOF
13909
13910fi
13911
13912if test "$ac_cv_c_ipx_gnu" = "no"
13913then
13914 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
13915echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
13916if test "${ac_cv_c_ipx_linux+set}" = set; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13918else
13919 cat >conftest.$ac_ext <<_ACEOF
13920#line $LINENO "configure"
13921/* confdefs.h. */
13922_ACEOF
13923cat confdefs.h >>conftest.$ac_ext
13924cat >>conftest.$ac_ext <<_ACEOF
13925/* end confdefs.h. */
13926#include <sys/types.h>
13927 #ifdef HAVE_SYS_SOCKET_H
13928 # include <sys/socket.h>
13929 #endif
13930 #include <asm/types.h>
13931 #include <linux/ipx.h>
13932int
13933main ()
13934{
13935((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
13936 ;
13937 return 0;
13938}
13939_ACEOF
13940rm -f conftest.$ac_objext
13941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13942 (eval $ac_compile) 2>&5
13943 ac_status=$?
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try='test -s conftest.$ac_objext'
13947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13949 ac_status=$?
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; }; then
13952 ac_cv_c_ipx_linux="yes"
13953else
13954 echo "$as_me: failed program was:" >&5
13955sed 's/^/| /' conftest.$ac_ext >&5
13956
13957ac_cv_c_ipx_linux="no"
13958fi
13959rm -f conftest.$ac_objext conftest.$ac_ext
13960
13961fi
13962echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
13963echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
13964 if test "$ac_cv_c_ipx_linux" = "yes"
13965 then
13966
13967cat >>confdefs.h <<\_ACEOF
13968#define HAVE_IPX_LINUX 1
13969_ACEOF
13970
13971 fi
13972fi
13973
13974
daa2886c 13975echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
f5818d2f
AJ
13976echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13977if test "${ac_cv_c_const+set}" = set; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7 13979else
f5818d2f 13980 cat >conftest.$ac_ext <<_ACEOF
daa2886c 13981#line $LINENO "configure"
e24bcc77
AJ
13982/* confdefs.h. */
13983_ACEOF
13984cat confdefs.h >>conftest.$ac_ext
13985cat >>conftest.$ac_ext <<_ACEOF
13986/* end confdefs.h. */
e2991ea7 13987
f5818d2f
AJ
13988int
13989main ()
13990{
13991/* FIXME: Include the comments suggested by Paul. */
13992#ifndef __cplusplus
13993 /* Ultrix mips cc rejects this. */
13994 typedef int charset[2];
13995 const charset x;
13996 /* SunOS 4.1.1 cc rejects this. */
13997 char const *const *ccp;
13998 char **p;
13999 /* NEC SVR4.0.2 mips cc rejects this. */
14000 struct point {int x, y;};
14001 static struct point const zero = {0,0};
14002 /* AIX XL C 1.02.0.0 rejects this.
14003 It does not let you subtract one const X* pointer from another in
14004 an arm of an if-expression whose if-part is not a constant
14005 expression */
14006 const char *g = "string";
14007 ccp = &g + (g ? g-g : 0);
14008 /* HPUX 7.0 cc rejects these. */
14009 ++ccp;
14010 p = (char**) ccp;
14011 ccp = (char const *const *) p;
14012 { /* SCO 3.2v4 cc rejects this. */
14013 char *t;
14014 char const *s = 0 ? (char *) 0 : (char const *) 0;
14015
14016 *t++ = 0;
14017 }
14018 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14019 int x[] = {25, 17};
14020 const int *foo = &x[0];
14021 ++foo;
14022 }
14023 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14024 typedef const int *iptr;
14025 iptr p = 0;
14026 ++p;
14027 }
14028 { /* AIX XL C 1.02.0.0 rejects this saying
14029 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14030 struct s { int j; const int *ap[3]; };
14031 struct s *b; b->j = 5;
14032 }
14033 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14034 const int foo = 10;
14035 }
14036#endif
e2991ea7 14037
f5818d2f
AJ
14038 ;
14039 return 0;
e2991ea7 14040}
f5818d2f
AJ
14041_ACEOF
14042rm -f conftest.$ac_objext
daa2886c 14043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
14044 (eval $ac_compile) 2>&5
14045 ac_status=$?
daa2886c 14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14047 (exit $ac_status); } &&
14048 { ac_try='test -s conftest.$ac_objext'
daa2886c 14049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
14050 (eval $ac_try) 2>&5
14051 ac_status=$?
daa2886c 14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 14053 (exit $ac_status); }; }; then
e2991ea7
AJ
14054 ac_cv_c_const=yes
14055else
f5818d2f 14056 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14057sed 's/^/| /' conftest.$ac_ext >&5
14058
f5818d2f 14059ac_cv_c_const=no
e2991ea7 14060fi
f5818d2f 14061rm -f conftest.$ac_objext conftest.$ac_ext
e2991ea7 14062fi
daa2886c 14063echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
f5818d2f 14064echo "${ECHO_T}$ac_cv_c_const" >&6
e2991ea7 14065if test $ac_cv_c_const = no; then
f5818d2f 14066
daa2886c 14067cat >>confdefs.h <<\_ACEOF
f5818d2f 14068#define const
daa2886c 14069_ACEOF
e2991ea7
AJ
14070
14071fi
14072
daa2886c 14073echo "$as_me:$LINENO: checking for inline" >&5
f5818d2f
AJ
14074echo $ECHO_N "checking for inline... $ECHO_C" >&6
14075if test "${ac_cv_c_inline+set}" = set; then
14076 echo $ECHO_N "(cached) $ECHO_C" >&6
1a8bbd7c
MM
14077else
14078 ac_cv_c_inline=no
14079for ac_kw in inline __inline__ __inline; do
f5818d2f 14080 cat >conftest.$ac_ext <<_ACEOF
daa2886c 14081#line $LINENO "configure"
e24bcc77
AJ
14082/* confdefs.h. */
14083_ACEOF
14084cat confdefs.h >>conftest.$ac_ext
14085cat >>conftest.$ac_ext <<_ACEOF
14086/* end confdefs.h. */
f5818d2f 14087#ifndef __cplusplus
11af04e3
AJ
14088typedef int foo_t;
14089static $ac_kw foo_t static_foo () {return 0; }
14090$ac_kw foo_t foo () {return 0; }
f5818d2f 14091#endif
1a8bbd7c 14092
f5818d2f
AJ
14093_ACEOF
14094rm -f conftest.$ac_objext
daa2886c 14095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
14096 (eval $ac_compile) 2>&5
14097 ac_status=$?
daa2886c 14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14099 (exit $ac_status); } &&
14100 { ac_try='test -s conftest.$ac_objext'
daa2886c 14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
14102 (eval $ac_try) 2>&5
14103 ac_status=$?
daa2886c 14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 14105 (exit $ac_status); }; }; then
1a8bbd7c
MM
14106 ac_cv_c_inline=$ac_kw; break
14107else
f5818d2f 14108 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14109sed 's/^/| /' conftest.$ac_ext >&5
14110
1a8bbd7c 14111fi
f5818d2f 14112rm -f conftest.$ac_objext conftest.$ac_ext
1a8bbd7c
MM
14113done
14114
14115fi
daa2886c 14116echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
f5818d2f
AJ
14117echo "${ECHO_T}$ac_cv_c_inline" >&6
14118case $ac_cv_c_inline in
1a8bbd7c 14119 inline | yes) ;;
f5818d2f 14120 no)
daa2886c 14121cat >>confdefs.h <<\_ACEOF
f5818d2f 14122#define inline
daa2886c 14123_ACEOF
1a8bbd7c 14124 ;;
daa2886c 14125 *) cat >>confdefs.h <<_ACEOF
1a8bbd7c 14126#define inline $ac_cv_c_inline
daa2886c 14127_ACEOF
1a8bbd7c
MM
14128 ;;
14129esac
14130
daa2886c 14131echo "$as_me:$LINENO: checking for mode_t" >&5
f5818d2f
AJ
14132echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
14133if test "${ac_cv_type_mode_t+set}" = set; then
14134 echo $ECHO_N "(cached) $ECHO_C" >&6
c7c217b3 14135else
f5818d2f 14136 cat >conftest.$ac_ext <<_ACEOF
daa2886c 14137#line $LINENO "configure"
e24bcc77
AJ
14138/* confdefs.h. */
14139_ACEOF
14140cat confdefs.h >>conftest.$ac_ext
14141cat >>conftest.$ac_ext <<_ACEOF
14142/* end confdefs.h. */
f5818d2f
AJ
14143$ac_includes_default
14144int
14145main ()
c7c217b3 14146{
f5818d2f
AJ
14147if ((mode_t *) 0)
14148 return 0;
14149if (sizeof (mode_t))
14150 return 0;
14151 ;
14152 return 0;
c7c217b3 14153}
f5818d2f
AJ
14154_ACEOF
14155rm -f conftest.$ac_objext
daa2886c 14156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
14157 (eval $ac_compile) 2>&5
14158 ac_status=$?
daa2886c 14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14160 (exit $ac_status); } &&
14161 { ac_try='test -s conftest.$ac_objext'
daa2886c 14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
14163 (eval $ac_try) 2>&5
14164 ac_status=$?
daa2886c 14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14166 (exit $ac_status); }; }; then
14167 ac_cv_type_mode_t=yes
14168else
14169 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14170sed 's/^/| /' conftest.$ac_ext >&5
14171
f5818d2f
AJ
14172ac_cv_type_mode_t=no
14173fi
14174rm -f conftest.$ac_objext conftest.$ac_ext
14175fi
daa2886c 14176echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
f5818d2f
AJ
14177echo "${ECHO_T}$ac_cv_type_mode_t" >&6
14178if test $ac_cv_type_mode_t = yes; then
f5818d2f 14179
daa2886c 14180cat >>confdefs.h <<_ACEOF
5769d1de 14181#define HAVE_MODE_T 1
daa2886c 14182_ACEOF
f5818d2f 14183
f5818d2f 14184
5769d1de 14185fi
daa2886c 14186echo "$as_me:$LINENO: checking for off_t" >&5
f5818d2f
AJ
14187echo $ECHO_N "checking for off_t... $ECHO_C" >&6
14188if test "${ac_cv_type_off_t+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
c7c217b3 14190else
f5818d2f 14191 cat >conftest.$ac_ext <<_ACEOF
daa2886c 14192#line $LINENO "configure"
e24bcc77
AJ
14193/* confdefs.h. */
14194_ACEOF
14195cat confdefs.h >>conftest.$ac_ext
14196cat >>conftest.$ac_ext <<_ACEOF
14197/* end confdefs.h. */
f5818d2f
AJ
14198$ac_includes_default
14199int
14200main ()
14201{
14202if ((off_t *) 0)
14203 return 0;
14204if (sizeof (off_t))
14205 return 0;
14206 ;
14207 return 0;
14208}
14209_ACEOF
14210rm -f conftest.$ac_objext
daa2886c 14211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
14212 (eval $ac_compile) 2>&5
14213 ac_status=$?
daa2886c 14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14215 (exit $ac_status); } &&
14216 { ac_try='test -s conftest.$ac_objext'
daa2886c 14217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
14218 (eval $ac_try) 2>&5
14219 ac_status=$?
daa2886c 14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14221 (exit $ac_status); }; }; then
14222 ac_cv_type_off_t=yes
14223else
14224 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14225sed 's/^/| /' conftest.$ac_ext >&5
14226
f5818d2f
AJ
14227ac_cv_type_off_t=no
14228fi
14229rm -f conftest.$ac_objext conftest.$ac_ext
14230fi
daa2886c 14231echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
f5818d2f
AJ
14232echo "${ECHO_T}$ac_cv_type_off_t" >&6
14233if test $ac_cv_type_off_t = yes; then
f5818d2f 14234
daa2886c 14235cat >>confdefs.h <<_ACEOF
5769d1de 14236#define HAVE_OFF_T 1
daa2886c 14237_ACEOF
f5818d2f 14238
f5818d2f 14239
5769d1de 14240fi
daa2886c 14241echo "$as_me:$LINENO: checking for pid_t" >&5
f5818d2f
AJ
14242echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14243if test "${ac_cv_type_pid_t+set}" = set; then
14244 echo $ECHO_N "(cached) $ECHO_C" >&6
14245else
14246 cat >conftest.$ac_ext <<_ACEOF
daa2886c 14247#line $LINENO "configure"
e24bcc77
AJ
14248/* confdefs.h. */
14249_ACEOF
14250cat confdefs.h >>conftest.$ac_ext
14251cat >>conftest.$ac_ext <<_ACEOF
14252/* end confdefs.h. */
f5818d2f
AJ
14253$ac_includes_default
14254int
14255main ()
14256{
14257if ((pid_t *) 0)
14258 return 0;
14259if (sizeof (pid_t))
14260 return 0;
14261 ;
14262 return 0;
14263}
14264_ACEOF
14265rm -f conftest.$ac_objext
daa2886c 14266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
14267 (eval $ac_compile) 2>&5
14268 ac_status=$?
daa2886c 14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14270 (exit $ac_status); } &&
14271 { ac_try='test -s conftest.$ac_objext'
daa2886c 14272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
14273 (eval $ac_try) 2>&5
14274 ac_status=$?
daa2886c 14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14276 (exit $ac_status); }; }; then
14277 ac_cv_type_pid_t=yes
14278else
14279 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14280sed 's/^/| /' conftest.$ac_ext >&5
14281
f5818d2f
AJ
14282ac_cv_type_pid_t=no
14283fi
14284rm -f conftest.$ac_objext conftest.$ac_ext
14285fi
daa2886c 14286echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
f5818d2f
AJ
14287echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14288if test $ac_cv_type_pid_t = yes; then
f5818d2f 14289
daa2886c 14290cat >>confdefs.h <<_ACEOF
5769d1de 14291#define HAVE_PID_T 1
daa2886c 14292_ACEOF
f5818d2f 14293
c7c217b3 14294
5769d1de 14295fi
daa2886c 14296echo "$as_me:$LINENO: checking for size_t" >&5
f5818d2f
AJ
14297echo $ECHO_N "checking for size_t... $ECHO_C" >&6
14298if test "${ac_cv_type_size_t+set}" = set; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14300else
14301 cat >conftest.$ac_ext <<_ACEOF
daa2886c 14302#line $LINENO "configure"
e24bcc77
AJ
14303/* confdefs.h. */
14304_ACEOF
14305cat confdefs.h >>conftest.$ac_ext
14306cat >>conftest.$ac_ext <<_ACEOF
14307/* end confdefs.h. */
f5818d2f
AJ
14308$ac_includes_default
14309int
14310main ()
14311{
14312if ((size_t *) 0)
14313 return 0;
14314if (sizeof (size_t))
14315 return 0;
14316 ;
14317 return 0;
14318}
14319_ACEOF
14320rm -f conftest.$ac_objext
daa2886c 14321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
14322 (eval $ac_compile) 2>&5
14323 ac_status=$?
daa2886c 14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14325 (exit $ac_status); } &&
14326 { ac_try='test -s conftest.$ac_objext'
daa2886c 14327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
14328 (eval $ac_try) 2>&5
14329 ac_status=$?
daa2886c 14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14331 (exit $ac_status); }; }; then
14332 ac_cv_type_size_t=yes
14333else
14334 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14335sed 's/^/| /' conftest.$ac_ext >&5
14336
f5818d2f 14337ac_cv_type_size_t=no
c7c217b3 14338fi
f5818d2f
AJ
14339rm -f conftest.$ac_objext conftest.$ac_ext
14340fi
daa2886c 14341echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
f5818d2f
AJ
14342echo "${ECHO_T}$ac_cv_type_size_t" >&6
14343if test $ac_cv_type_size_t = yes; then
5769d1de
AJ
14344
14345cat >>confdefs.h <<_ACEOF
14346#define HAVE_SIZE_T 1
14347_ACEOF
14348
14349
14350fi
14351echo "$as_me:$LINENO: checking for ssize_t" >&5
14352echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14353if test "${ac_cv_type_ssize_t+set}" = set; then
14354 echo $ECHO_N "(cached) $ECHO_C" >&6
14355else
14356 cat >conftest.$ac_ext <<_ACEOF
14357#line $LINENO "configure"
e24bcc77
AJ
14358/* confdefs.h. */
14359_ACEOF
14360cat confdefs.h >>conftest.$ac_ext
14361cat >>conftest.$ac_ext <<_ACEOF
14362/* end confdefs.h. */
5769d1de 14363$ac_includes_default
5769d1de
AJ
14364int
14365main ()
14366{
14367if ((ssize_t *) 0)
14368 return 0;
14369if (sizeof (ssize_t))
14370 return 0;
14371 ;
14372 return 0;
14373}
14374_ACEOF
14375rm -f conftest.$ac_objext
14376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377 (eval $ac_compile) 2>&5
14378 ac_status=$?
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } &&
14381 { ac_try='test -s conftest.$ac_objext'
14382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383 (eval $ac_try) 2>&5
14384 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; }; then
14387 ac_cv_type_ssize_t=yes
f5818d2f 14388else
5769d1de 14389 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14390sed 's/^/| /' conftest.$ac_ext >&5
14391
5769d1de
AJ
14392ac_cv_type_ssize_t=no
14393fi
14394rm -f conftest.$ac_objext conftest.$ac_ext
14395fi
14396echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14397echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14398if test $ac_cv_type_ssize_t = yes; then
f5818d2f 14399
daa2886c 14400cat >>confdefs.h <<_ACEOF
5769d1de 14401#define HAVE_SSIZE_T 1
daa2886c 14402_ACEOF
c7c217b3 14403
5769d1de 14404
f5818d2f 14405fi
c7c217b3 14406
daa2886c 14407echo "$as_me:$LINENO: checking for long long" >&5
f5818d2f
AJ
14408echo $ECHO_N "checking for long long... $ECHO_C" >&6
14409if test "${ac_cv_type_long_long+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14411else
14412 cat >conftest.$ac_ext <<_ACEOF
daa2886c 14413#line $LINENO "configure"
e24bcc77
AJ
14414/* confdefs.h. */
14415_ACEOF
14416cat confdefs.h >>conftest.$ac_ext
14417cat >>conftest.$ac_ext <<_ACEOF
14418/* end confdefs.h. */
f5818d2f
AJ
14419$ac_includes_default
14420int
14421main ()
14422{
14423if ((long long *) 0)
14424 return 0;
14425if (sizeof (long long))
14426 return 0;
14427 ;
14428 return 0;
14429}
14430_ACEOF
14431rm -f conftest.$ac_objext
daa2886c 14432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
14433 (eval $ac_compile) 2>&5
14434 ac_status=$?
daa2886c 14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14436 (exit $ac_status); } &&
14437 { ac_try='test -s conftest.$ac_objext'
daa2886c 14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
14439 (eval $ac_try) 2>&5
14440 ac_status=$?
daa2886c 14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14442 (exit $ac_status); }; }; then
14443 ac_cv_type_long_long=yes
14444else
14445 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14446sed 's/^/| /' conftest.$ac_ext >&5
14447
f5818d2f
AJ
14448ac_cv_type_long_long=no
14449fi
14450rm -f conftest.$ac_objext conftest.$ac_ext
14451fi
daa2886c 14452echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
f5818d2f
AJ
14453echo "${ECHO_T}$ac_cv_type_long_long" >&6
14454
daa2886c 14455echo "$as_me:$LINENO: checking size of long long" >&5
f5818d2f
AJ
14456echo $ECHO_N "checking size of long long... $ECHO_C" >&6
14457if test "${ac_cv_sizeof_long_long+set}" = set; then
14458 echo $ECHO_N "(cached) $ECHO_C" >&6
14459else
14460 if test "$ac_cv_type_long_long" = yes; then
daa2886c
AJ
14461 # The cast to unsigned long works around a bug in the HP C Compiler
14462 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14463 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14464 # This bug is HP SR number 8606223364.
f5818d2f
AJ
14465 if test "$cross_compiling" = yes; then
14466 # Depending upon the size, compute the lo and hi bounds.
14467cat >conftest.$ac_ext <<_ACEOF
daa2886c 14468#line $LINENO "configure"
e24bcc77
AJ
14469/* confdefs.h. */
14470_ACEOF
14471cat confdefs.h >>conftest.$ac_ext
14472cat >>conftest.$ac_ext <<_ACEOF
14473/* end confdefs.h. */
f5818d2f
AJ
14474$ac_includes_default
14475int
14476main ()
14477{
daa2886c
AJ
14478static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
14479test_array [0] = 0
14480
f5818d2f
AJ
14481 ;
14482 return 0;
14483}
14484_ACEOF
14485rm -f conftest.$ac_objext
daa2886c 14486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
14487 (eval $ac_compile) 2>&5
14488 ac_status=$?
daa2886c 14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14490 (exit $ac_status); } &&
14491 { ac_try='test -s conftest.$ac_objext'
daa2886c 14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
14493 (eval $ac_try) 2>&5
14494 ac_status=$?
daa2886c 14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14496 (exit $ac_status); }; }; then
14497 ac_lo=0 ac_mid=0
14498 while :; do
14499 cat >conftest.$ac_ext <<_ACEOF
daa2886c 14500#line $LINENO "configure"
e24bcc77
AJ
14501/* confdefs.h. */
14502_ACEOF
14503cat confdefs.h >>conftest.$ac_ext
14504cat >>conftest.$ac_ext <<_ACEOF
14505/* end confdefs.h. */
f5818d2f
AJ
14506$ac_includes_default
14507int
14508main ()
14509{
daa2886c
AJ
14510static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14511test_array [0] = 0
14512
f5818d2f
AJ
14513 ;
14514 return 0;
14515}
14516_ACEOF
14517rm -f conftest.$ac_objext
daa2886c 14518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
14519 (eval $ac_compile) 2>&5
14520 ac_status=$?
daa2886c 14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14522 (exit $ac_status); } &&
14523 { ac_try='test -s conftest.$ac_objext'
daa2886c 14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
14525 (eval $ac_try) 2>&5
14526 ac_status=$?
daa2886c 14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14528 (exit $ac_status); }; }; then
14529 ac_hi=$ac_mid; break
14530else
14531 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14532sed 's/^/| /' conftest.$ac_ext >&5
14533
daa2886c
AJ
14534ac_lo=`expr $ac_mid + 1`
14535 if test $ac_lo -le $ac_mid; then
14536 ac_lo= ac_hi=
14537 break
14538 fi
14539 ac_mid=`expr 2 '*' $ac_mid + 1`
f5818d2f
AJ
14540fi
14541rm -f conftest.$ac_objext conftest.$ac_ext
14542 done
14543else
14544 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14545sed 's/^/| /' conftest.$ac_ext >&5
14546
daa2886c
AJ
14547cat >conftest.$ac_ext <<_ACEOF
14548#line $LINENO "configure"
e24bcc77
AJ
14549/* confdefs.h. */
14550_ACEOF
14551cat confdefs.h >>conftest.$ac_ext
14552cat >>conftest.$ac_ext <<_ACEOF
14553/* end confdefs.h. */
daa2886c 14554$ac_includes_default
daa2886c
AJ
14555int
14556main ()
14557{
14558static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
14559test_array [0] = 0
14560
14561 ;
14562 return 0;
14563}
14564_ACEOF
14565rm -f conftest.$ac_objext
14566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14567 (eval $ac_compile) 2>&5
14568 ac_status=$?
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); } &&
14571 { ac_try='test -s conftest.$ac_objext'
14572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14573 (eval $ac_try) 2>&5
14574 ac_status=$?
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; }; then
14577 ac_hi=-1 ac_mid=-1
f5818d2f
AJ
14578 while :; do
14579 cat >conftest.$ac_ext <<_ACEOF
daa2886c 14580#line $LINENO "configure"
e24bcc77
AJ
14581/* confdefs.h. */
14582_ACEOF
14583cat confdefs.h >>conftest.$ac_ext
14584cat >>conftest.$ac_ext <<_ACEOF
14585/* end confdefs.h. */
f5818d2f
AJ
14586$ac_includes_default
14587int
14588main ()
14589{
daa2886c
AJ
14590static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
14591test_array [0] = 0
14592
f5818d2f
AJ
14593 ;
14594 return 0;
14595}
14596_ACEOF
14597rm -f conftest.$ac_objext
daa2886c 14598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
14599 (eval $ac_compile) 2>&5
14600 ac_status=$?
daa2886c 14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14602 (exit $ac_status); } &&
14603 { ac_try='test -s conftest.$ac_objext'
daa2886c 14604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
14605 (eval $ac_try) 2>&5
14606 ac_status=$?
daa2886c 14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14608 (exit $ac_status); }; }; then
14609 ac_lo=$ac_mid; break
14610else
14611 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14612sed 's/^/| /' conftest.$ac_ext >&5
14613
daa2886c
AJ
14614ac_hi=`expr '(' $ac_mid ')' - 1`
14615 if test $ac_mid -le $ac_hi; then
14616 ac_lo= ac_hi=
14617 break
14618 fi
14619 ac_mid=`expr 2 '*' $ac_mid`
f5818d2f
AJ
14620fi
14621rm -f conftest.$ac_objext conftest.$ac_ext
14622 done
daa2886c
AJ
14623else
14624 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14625sed 's/^/| /' conftest.$ac_ext >&5
14626
daa2886c
AJ
14627ac_lo= ac_hi=
14628fi
14629rm -f conftest.$ac_objext conftest.$ac_ext
f5818d2f
AJ
14630fi
14631rm -f conftest.$ac_objext conftest.$ac_ext
14632# Binary search between lo and hi bounds.
14633while test "x$ac_lo" != "x$ac_hi"; do
14634 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14635 cat >conftest.$ac_ext <<_ACEOF
daa2886c 14636#line $LINENO "configure"
e24bcc77
AJ
14637/* confdefs.h. */
14638_ACEOF
14639cat confdefs.h >>conftest.$ac_ext
14640cat >>conftest.$ac_ext <<_ACEOF
14641/* end confdefs.h. */
f5818d2f
AJ
14642$ac_includes_default
14643int
14644main ()
14645{
daa2886c
AJ
14646static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14647test_array [0] = 0
14648
f5818d2f
AJ
14649 ;
14650 return 0;
14651}
14652_ACEOF
14653rm -f conftest.$ac_objext
daa2886c 14654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
14655 (eval $ac_compile) 2>&5
14656 ac_status=$?
daa2886c 14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14658 (exit $ac_status); } &&
14659 { ac_try='test -s conftest.$ac_objext'
daa2886c 14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
14661 (eval $ac_try) 2>&5
14662 ac_status=$?
daa2886c 14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14664 (exit $ac_status); }; }; then
14665 ac_hi=$ac_mid
14666else
14667 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14668sed 's/^/| /' conftest.$ac_ext >&5
14669
daa2886c 14670ac_lo=`expr '(' $ac_mid ')' + 1`
f5818d2f
AJ
14671fi
14672rm -f conftest.$ac_objext conftest.$ac_ext
14673done
daa2886c
AJ
14674case $ac_lo in
14675?*) ac_cv_sizeof_long_long=$ac_lo;;
e24bcc77
AJ
14676'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14677See \`config.log' for more details." >&5
14678echo "$as_me: error: cannot compute sizeof (long long), 77
14679See \`config.log' for more details." >&2;}
daa2886c
AJ
14680 { (exit 1); exit 1; }; } ;;
14681esac
f5818d2f
AJ
14682else
14683 if test "$cross_compiling" = yes; then
e24bcc77
AJ
14684 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14685See \`config.log' for more details." >&5
14686echo "$as_me: error: cannot run test program while cross compiling
14687See \`config.log' for more details." >&2;}
f5818d2f
AJ
14688 { (exit 1); exit 1; }; }
14689else
14690 cat >conftest.$ac_ext <<_ACEOF
daa2886c 14691#line $LINENO "configure"
e24bcc77
AJ
14692/* confdefs.h. */
14693_ACEOF
14694cat confdefs.h >>conftest.$ac_ext
14695cat >>conftest.$ac_ext <<_ACEOF
14696/* end confdefs.h. */
f5818d2f 14697$ac_includes_default
daa2886c
AJ
14698long longval () { return (long) (sizeof (long long)); }
14699unsigned long ulongval () { return (long) (sizeof (long long)); }
14700#include <stdio.h>
14701#include <stdlib.h>
f5818d2f
AJ
14702int
14703main ()
14704{
daa2886c
AJ
14705
14706 FILE *f = fopen ("conftest.val", "w");
14707 if (! f)
14708 exit (1);
14709 if (((long) (sizeof (long long))) < 0)
14710 {
14711 long i = longval ();
14712 if (i != ((long) (sizeof (long long))))
14713 exit (1);
14714 fprintf (f, "%ld\n", i);
14715 }
14716 else
14717 {
14718 unsigned long i = ulongval ();
14719 if (i != ((long) (sizeof (long long))))
14720 exit (1);
14721 fprintf (f, "%lu\n", i);
14722 }
14723 exit (ferror (f) || fclose (f) != 0);
14724
f5818d2f
AJ
14725 ;
14726 return 0;
14727}
14728_ACEOF
14729rm -f conftest$ac_exeext
daa2886c 14730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
14731 (eval $ac_link) 2>&5
14732 ac_status=$?
daa2886c 14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 14734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
daa2886c 14735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
14736 (eval $ac_try) 2>&5
14737 ac_status=$?
daa2886c 14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14739 (exit $ac_status); }; }; then
14740 ac_cv_sizeof_long_long=`cat conftest.val`
14741else
14742 echo "$as_me: program exited with status $ac_status" >&5
14743echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14744sed 's/^/| /' conftest.$ac_ext >&5
14745
daa2886c 14746( exit $ac_status )
e24bcc77
AJ
14747{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14748See \`config.log' for more details." >&5
14749echo "$as_me: error: cannot compute sizeof (long long), 77
14750See \`config.log' for more details." >&2;}
daa2886c 14751 { (exit 1); exit 1; }; }
f5818d2f 14752fi
11af04e3 14753rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f5818d2f
AJ
14754fi
14755fi
14756rm -f conftest.val
14757else
14758 ac_cv_sizeof_long_long=0
14759fi
14760fi
daa2886c 14761echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
f5818d2f 14762echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
daa2886c 14763cat >>confdefs.h <<_ACEOF
f5818d2f 14764#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
daa2886c
AJ
14765_ACEOF
14766
14767
c7c217b3 14768
daa2886c 14769echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
f5818d2f
AJ
14770echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
14771if test "${wine_cv_linux_input_h+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
74f2b4b2 14773else
f5818d2f 14774 cat >conftest.$ac_ext <<_ACEOF
daa2886c 14775#line $LINENO "configure"
e24bcc77
AJ
14776/* confdefs.h. */
14777_ACEOF
14778cat confdefs.h >>conftest.$ac_ext
14779cat >>conftest.$ac_ext <<_ACEOF
14780/* end confdefs.h. */
74f2b4b2
MM
14781
14782 #include <linux/input.h>
f5818d2f
AJ
14783
14784int
14785main ()
14786{
74f2b4b2
MM
14787
14788 int foo = EVIOCGBIT(EV_ABS,42);
14789 int bar = BTN_PINKIE;
14790 int fortytwo = 42;
f5818d2f
AJ
14791
14792 ;
14793 return 0;
14794}
14795_ACEOF
14796rm -f conftest.$ac_objext
daa2886c 14797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
14798 (eval $ac_compile) 2>&5
14799 ac_status=$?
daa2886c 14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14801 (exit $ac_status); } &&
14802 { ac_try='test -s conftest.$ac_objext'
daa2886c 14803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
14804 (eval $ac_try) 2>&5
14805 ac_status=$?
daa2886c 14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 14807 (exit $ac_status); }; }; then
74f2b4b2
MM
14808 wine_cv_linux_input_h=yes
14809else
f5818d2f 14810 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14811sed 's/^/| /' conftest.$ac_ext >&5
14812
f5818d2f 14813wine_cv_linux_input_h=no
74f2b4b2 14814fi
f5818d2f 14815rm -f conftest.$ac_objext conftest.$ac_ext
74f2b4b2 14816
f5818d2f 14817fi
daa2886c 14818echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
f5818d2f 14819echo "${ECHO_T}$wine_cv_linux_input_h" >&6
74f2b4b2
MM
14820 if test "$wine_cv_linux_input_h" = "yes"
14821 then
f5818d2f 14822
daa2886c 14823cat >>confdefs.h <<\_ACEOF
74f2b4b2 14824#define HAVE_CORRECT_LINUXINPUT_H 1
daa2886c 14825_ACEOF
74f2b4b2
MM
14826
14827 fi
14828
daa2886c
AJ
14829
14830echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
f5818d2f
AJ
14831echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
14832if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
ff7a61f8 14834else
f5818d2f 14835 cat >conftest.$ac_ext <<_ACEOF
daa2886c 14836#line $LINENO "configure"
e24bcc77
AJ
14837/* confdefs.h. */
14838_ACEOF
14839cat confdefs.h >>conftest.$ac_ext
14840cat >>conftest.$ac_ext <<_ACEOF
14841/* end confdefs.h. */
ff7a61f8
RK
14842
14843#include <netdb.h>
f5818d2f
AJ
14844
14845int
14846main ()
14847{
ff7a61f8
RK
14848
14849 char *name=NULL;
14850 struct hostent he;
14851 struct hostent *result;
14852 char *buf=NULL;
14853 int bufsize=0;
14854 int res,errnr;
14855 char *addr=NULL;
14856 int addrlen=0;
14857 int addrtype=0;
14858 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14859 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
f5818d2f
AJ
14860
14861 ;
14862 return 0;
14863}
14864_ACEOF
14865rm -f conftest.$ac_objext
daa2886c 14866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
14867 (eval $ac_compile) 2>&5
14868 ac_status=$?
daa2886c 14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14870 (exit $ac_status); } &&
14871 { ac_try='test -s conftest.$ac_objext'
daa2886c 14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
14873 (eval $ac_try) 2>&5
14874 ac_status=$?
daa2886c 14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 14876 (exit $ac_status); }; }; then
ff7a61f8
RK
14877 wine_cv_linux_gethostbyname_r_6=yes
14878else
f5818d2f 14879 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14880sed 's/^/| /' conftest.$ac_ext >&5
14881
f5818d2f
AJ
14882wine_cv_linux_gethostbyname_r_6=no
14883
ff7a61f8 14884fi
f5818d2f 14885rm -f conftest.$ac_objext conftest.$ac_ext
ff7a61f8 14886
f5818d2f 14887fi
daa2886c 14888echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
f5818d2f 14889echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
ff7a61f8
RK
14890 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14891 then
f5818d2f 14892
daa2886c 14893cat >>confdefs.h <<\_ACEOF
ff7a61f8 14894#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
daa2886c 14895_ACEOF
ff7a61f8
RK
14896
14897 fi
14898
028e9a17
MM
14899if test "$ac_cv_header_linux_joystick_h" = "yes"
14900then
daa2886c 14901 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
f5818d2f
AJ
14902echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
14903if test "${wine_cv_linux_joystick_22_api+set}" = set; then
14904 echo $ECHO_N "(cached) $ECHO_C" >&6
028e9a17 14905else
f5818d2f 14906 cat >conftest.$ac_ext <<_ACEOF
daa2886c 14907#line $LINENO "configure"
e24bcc77
AJ
14908/* confdefs.h. */
14909_ACEOF
14910cat confdefs.h >>conftest.$ac_ext
14911cat >>conftest.$ac_ext <<_ACEOF
14912/* end confdefs.h. */
028e9a17
MM
14913
14914 #include <sys/ioctl.h>
14915 #include <linux/joystick.h>
14916
14917 struct js_event blub;
605a9c39
MM
14918 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14919 #error "no 2.2 header"
14920 #endif
f5818d2f
AJ
14921
14922int
14923main ()
14924{
028e9a17 14925/*empty*/
f5818d2f
AJ
14926 ;
14927 return 0;
14928}
14929_ACEOF
14930rm -f conftest.$ac_objext
daa2886c 14931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
14932 (eval $ac_compile) 2>&5
14933 ac_status=$?
daa2886c 14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14935 (exit $ac_status); } &&
14936 { ac_try='test -s conftest.$ac_objext'
daa2886c 14937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
14938 (eval $ac_try) 2>&5
14939 ac_status=$?
daa2886c 14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 14941 (exit $ac_status); }; }; then
028e9a17
MM
14942 wine_cv_linux_joystick_22_api=yes
14943else
f5818d2f 14944 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14945sed 's/^/| /' conftest.$ac_ext >&5
14946
f5818d2f 14947wine_cv_linux_joystick_22_api=no
028e9a17 14948fi
f5818d2f 14949rm -f conftest.$ac_objext conftest.$ac_ext
028e9a17 14950
f5818d2f 14951fi
daa2886c 14952echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
f5818d2f 14953echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
87d224ac 14954 if test "$wine_cv_linux_joystick_22_api" = "yes"
028e9a17 14955 then
f5818d2f 14956
daa2886c 14957cat >>confdefs.h <<\_ACEOF
028e9a17 14958#define HAVE_LINUX_22_JOYSTICK_API 1
daa2886c 14959_ACEOF
028e9a17
MM
14960
14961 fi
14962fi
14963
daa2886c 14964
dadf78ff
AJ
14965if test "$ac_cv_header_sys_vfs_h" = "yes"
14966then
daa2886c 14967 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
f5818d2f
AJ
14968echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
14969if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
14970 echo $ECHO_N "(cached) $ECHO_C" >&6
c7c217b3 14971else
f5818d2f 14972 cat >conftest.$ac_ext <<_ACEOF
daa2886c 14973#line $LINENO "configure"
e24bcc77
AJ
14974/* confdefs.h. */
14975_ACEOF
14976cat confdefs.h >>conftest.$ac_ext
14977cat >>conftest.$ac_ext <<_ACEOF
14978/* end confdefs.h. */
c7c217b3 14979
46ea8b3f 14980 #include <sys/types.h>
c7c217b3
AJ
14981 #ifdef HAVE_SYS_PARAM_H
14982 # include <sys/param.h>
14983 #endif
dadf78ff 14984 #include <sys/vfs.h>
f5818d2f
AJ
14985
14986int
14987main ()
14988{
c7c217b3
AJ
14989
14990 struct statfs stfs;
14991
dadf78ff 14992 memset(&stfs,0,sizeof(stfs));
f5818d2f
AJ
14993
14994 ;
14995 return 0;
14996}
14997_ACEOF
14998rm -f conftest.$ac_objext
daa2886c 14999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
15000 (eval $ac_compile) 2>&5
15001 ac_status=$?
daa2886c 15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15003 (exit $ac_status); } &&
15004 { ac_try='test -s conftest.$ac_objext'
daa2886c 15005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15006 (eval $ac_try) 2>&5
15007 ac_status=$?
daa2886c 15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 15009 (exit $ac_status); }; }; then
dadf78ff 15010 wine_cv_sys_vfs_has_statfs=yes
c7c217b3 15011else
f5818d2f 15012 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15013sed 's/^/| /' conftest.$ac_ext >&5
15014
f5818d2f
AJ
15015wine_cv_sys_vfs_has_statfs=no
15016
c7c217b3 15017fi
f5818d2f 15018rm -f conftest.$ac_objext conftest.$ac_ext
c7c217b3 15019
f5818d2f 15020fi
daa2886c 15021echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
f5818d2f 15022echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
dadf78ff
AJ
15023 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
15024 then
f5818d2f 15025
daa2886c 15026cat >>confdefs.h <<\_ACEOF
dadf78ff 15027#define STATFS_DEFINED_BY_SYS_VFS 1
daa2886c 15028_ACEOF
dadf78ff
AJ
15029
15030 fi
15031fi
15032
15033if test "$ac_cv_header_sys_statfs_h" = "yes"
c7c217b3 15034then
daa2886c 15035 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
f5818d2f
AJ
15036echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
15037if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
15038 echo $ECHO_N "(cached) $ECHO_C" >&6
dadf78ff 15039else
f5818d2f 15040 cat >conftest.$ac_ext <<_ACEOF
daa2886c 15041#line $LINENO "configure"
e24bcc77
AJ
15042/* confdefs.h. */
15043_ACEOF
15044cat confdefs.h >>conftest.$ac_ext
15045cat >>conftest.$ac_ext <<_ACEOF
15046/* end confdefs.h. */
dadf78ff
AJ
15047
15048 #include <sys/types.h>
15049 #ifdef HAVE_SYS_PARAM_H
15050 # include <sys/param.h>
15051 #endif
15052 #include <sys/statfs.h>
f5818d2f
AJ
15053
15054int
15055main ()
15056{
dadf78ff
AJ
15057
15058 struct statfs stfs;
f5818d2f
AJ
15059
15060 ;
15061 return 0;
15062}
15063_ACEOF
15064rm -f conftest.$ac_objext
daa2886c 15065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
15066 (eval $ac_compile) 2>&5
15067 ac_status=$?
daa2886c 15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15069 (exit $ac_status); } &&
15070 { ac_try='test -s conftest.$ac_objext'
daa2886c 15071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15072 (eval $ac_try) 2>&5
15073 ac_status=$?
daa2886c 15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 15075 (exit $ac_status); }; }; then
dadf78ff
AJ
15076 wine_cv_sys_statfs_has_statfs=yes
15077else
f5818d2f 15078 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15079sed 's/^/| /' conftest.$ac_ext >&5
15080
f5818d2f
AJ
15081wine_cv_sys_statfs_has_statfs=no
15082
dadf78ff 15083fi
f5818d2f 15084rm -f conftest.$ac_objext conftest.$ac_ext
dadf78ff 15085
f5818d2f 15086fi
daa2886c 15087echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
f5818d2f 15088echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
dadf78ff
AJ
15089 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
15090 then
f5818d2f 15091
daa2886c 15092cat >>confdefs.h <<\_ACEOF
dadf78ff 15093#define STATFS_DEFINED_BY_SYS_STATFS 1
daa2886c 15094_ACEOF
dadf78ff
AJ
15095
15096 fi
15097fi
15098
15099if test "$ac_cv_header_sys_mount_h" = "yes"
15100then
daa2886c 15101 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
f5818d2f
AJ
15102echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
15103if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
15104 echo $ECHO_N "(cached) $ECHO_C" >&6
dadf78ff 15105else
f5818d2f 15106 cat >conftest.$ac_ext <<_ACEOF
daa2886c 15107#line $LINENO "configure"
e24bcc77
AJ
15108/* confdefs.h. */
15109_ACEOF
15110cat confdefs.h >>conftest.$ac_ext
15111cat >>conftest.$ac_ext <<_ACEOF
15112/* end confdefs.h. */
dadf78ff
AJ
15113
15114 #include <sys/types.h>
15115 #ifdef HAVE_SYS_PARAM_H
15116 # include <sys/param.h>
15117 #endif
15118 #include <sys/mount.h>
f5818d2f
AJ
15119
15120int
15121main ()
15122{
dadf78ff
AJ
15123
15124 struct statfs stfs;
f5818d2f
AJ
15125
15126 ;
15127 return 0;
15128}
15129_ACEOF
15130rm -f conftest.$ac_objext
daa2886c 15131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
15132 (eval $ac_compile) 2>&5
15133 ac_status=$?
daa2886c 15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15135 (exit $ac_status); } &&
15136 { ac_try='test -s conftest.$ac_objext'
daa2886c 15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15138 (eval $ac_try) 2>&5
15139 ac_status=$?
daa2886c 15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 15141 (exit $ac_status); }; }; then
dadf78ff
AJ
15142 wine_cv_sys_mount_has_statfs=yes
15143else
f5818d2f 15144 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15145sed 's/^/| /' conftest.$ac_ext >&5
15146
f5818d2f
AJ
15147wine_cv_sys_mount_has_statfs=no
15148
dadf78ff 15149fi
f5818d2f 15150rm -f conftest.$ac_objext conftest.$ac_ext
dadf78ff 15151
f5818d2f 15152fi
daa2886c 15153echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
f5818d2f 15154echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
dadf78ff
AJ
15155 if test "$wine_cv_sys_mount_has_statfs" = "yes"
15156 then
f5818d2f 15157
daa2886c 15158cat >>confdefs.h <<\_ACEOF
dadf78ff 15159#define STATFS_DEFINED_BY_SYS_MOUNT 1
daa2886c 15160_ACEOF
c7c217b3 15161
dadf78ff 15162 fi
c7c217b3
AJ
15163fi
15164
daa2886c 15165
daa2886c 15166echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
f5818d2f
AJ
15167echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
15168if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
15169 echo $ECHO_N "(cached) $ECHO_C" >&6
c7c217b3 15170else
f5818d2f 15171 cat >conftest.$ac_ext <<_ACEOF
daa2886c 15172#line $LINENO "configure"
e24bcc77
AJ
15173/* confdefs.h. */
15174_ACEOF
15175cat confdefs.h >>conftest.$ac_ext
15176cat >>conftest.$ac_ext <<_ACEOF
15177/* end confdefs.h. */
f5818d2f
AJ
15178#include <sys/types.h>
15179#ifdef HAVE_SYS_PARAM_H
15180# include <sys/param.h>
15181#endif
15182#ifdef STATFS_DEFINED_BY_SYS_MOUNT
15183# include <sys/mount.h>
15184#else
15185# ifdef STATFS_DEFINED_BY_SYS_VFS
15186# include <sys/vfs.h>
15187# else
15188# ifdef STATFS_DEFINED_BY_SYS_STATFS
15189# include <sys/statfs.h>
15190# endif
15191# endif
15192#endif
15193int
15194main ()
15195{
15196struct statfs s; s.f_bfree = 0
15197 ;
15198 return 0;
15199}
15200_ACEOF
15201rm -f conftest.$ac_objext
daa2886c 15202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
15203 (eval $ac_compile) 2>&5
15204 ac_status=$?
daa2886c 15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15206 (exit $ac_status); } &&
15207 { ac_try='test -s conftest.$ac_objext'
daa2886c 15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15209 (eval $ac_try) 2>&5
15210 ac_status=$?
daa2886c 15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15212 (exit $ac_status); }; }; then
15213 ac_cv_c_statfs_f_bfree="yes"
15214else
15215 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15216sed 's/^/| /' conftest.$ac_ext >&5
15217
f5818d2f
AJ
15218ac_cv_c_statfs_f_bfree="no"
15219fi
15220rm -f conftest.$ac_objext conftest.$ac_ext
15221fi
daa2886c 15222echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
f5818d2f
AJ
15223echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
15224if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
15225
daa2886c 15226cat >>confdefs.h <<\_ACEOF
c7c217b3 15227#define STATFS_HAS_BFREE 1
daa2886c 15228_ACEOF
c7c217b3
AJ
15229
15230fi
15231
daa2886c
AJ
15232
15233
15234echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
f5818d2f
AJ
15235echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
15236if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
15237 echo $ECHO_N "(cached) $ECHO_C" >&6
dadf78ff 15238else
f5818d2f 15239 cat >conftest.$ac_ext <<_ACEOF
daa2886c 15240#line $LINENO "configure"
e24bcc77
AJ
15241/* confdefs.h. */
15242_ACEOF
15243cat confdefs.h >>conftest.$ac_ext
15244cat >>conftest.$ac_ext <<_ACEOF
15245/* end confdefs.h. */
f5818d2f
AJ
15246#include <sys/types.h>
15247#ifdef HAVE_SYS_PARAM_H
15248# include <sys/param.h>
15249#endif
15250#ifdef STATFS_DEFINED_BY_SYS_MOUNT
15251# include <sys/mount.h>
15252#else
15253# ifdef STATFS_DEFINED_BY_SYS_VFS
15254# include <sys/vfs.h>
15255# else
15256# ifdef STATFS_DEFINED_BY_SYS_STATFS
15257# include <sys/statfs.h>
15258# endif
15259# endif
15260#endif
15261int
15262main ()
15263{
15264struct statfs s; s.f_bavail = 0
15265 ;
15266 return 0;
15267}
15268_ACEOF
15269rm -f conftest.$ac_objext
daa2886c 15270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
15271 (eval $ac_compile) 2>&5
15272 ac_status=$?
daa2886c 15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15274 (exit $ac_status); } &&
15275 { ac_try='test -s conftest.$ac_objext'
daa2886c 15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15277 (eval $ac_try) 2>&5
15278 ac_status=$?
daa2886c 15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15280 (exit $ac_status); }; }; then
15281 ac_cv_c_statfs_f_bavail="yes"
15282else
15283 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15284sed 's/^/| /' conftest.$ac_ext >&5
15285
f5818d2f
AJ
15286ac_cv_c_statfs_f_bavail="no"
15287fi
15288rm -f conftest.$ac_objext conftest.$ac_ext
15289fi
daa2886c 15290echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
f5818d2f
AJ
15291echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
15292if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
15293
daa2886c 15294cat >>confdefs.h <<\_ACEOF
dadf78ff 15295#define STATFS_HAS_BAVAIL 1
daa2886c 15296_ACEOF
dadf78ff
AJ
15297
15298fi
15299
daa2886c
AJ
15300
15301
15302echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
f5818d2f
AJ
15303echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
15304if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
15305 echo $ECHO_N "(cached) $ECHO_C" >&6
829fe323 15306else
f5818d2f 15307 cat >conftest.$ac_ext <<_ACEOF
daa2886c 15308#line $LINENO "configure"
e24bcc77
AJ
15309/* confdefs.h. */
15310_ACEOF
15311cat confdefs.h >>conftest.$ac_ext
15312cat >>conftest.$ac_ext <<_ACEOF
15313/* end confdefs.h. */
829fe323 15314#include <sys/types.h>
63ae7fee
PS
15315#ifdef HAVE_SYS_SOCKET_H
15316# include <sys/socket.h>
15317#endif
f5818d2f
AJ
15318int
15319main ()
15320{
15321struct msghdr s; s.msg_accrights = 0
15322 ;
15323 return 0;
15324}
15325_ACEOF
15326rm -f conftest.$ac_objext
daa2886c 15327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
15328 (eval $ac_compile) 2>&5
15329 ac_status=$?
daa2886c 15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15331 (exit $ac_status); } &&
15332 { ac_try='test -s conftest.$ac_objext'
daa2886c 15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15334 (eval $ac_try) 2>&5
15335 ac_status=$?
daa2886c 15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15337 (exit $ac_status); }; }; then
15338 ac_cv_c_msghdr_msg_accrights="yes"
15339else
15340 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15341sed 's/^/| /' conftest.$ac_ext >&5
15342
f5818d2f
AJ
15343ac_cv_c_msghdr_msg_accrights="no"
15344fi
15345rm -f conftest.$ac_objext conftest.$ac_ext
15346fi
daa2886c 15347echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
f5818d2f
AJ
15348echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
15349if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
15350
daa2886c 15351cat >>confdefs.h <<\_ACEOF
829fe323 15352#define HAVE_MSGHDR_ACCRIGHTS 1
daa2886c 15353_ACEOF
829fe323
AJ
15354
15355fi
15356
daa2886c
AJ
15357
15358
15359echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
f5818d2f
AJ
15360echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
15361if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
15362 echo $ECHO_N "(cached) $ECHO_C" >&6
2d33ab91 15363else
f5818d2f 15364 cat >conftest.$ac_ext <<_ACEOF
daa2886c 15365#line $LINENO "configure"
e24bcc77
AJ
15366/* confdefs.h. */
15367_ACEOF
15368cat confdefs.h >>conftest.$ac_ext
15369cat >>conftest.$ac_ext <<_ACEOF
15370/* end confdefs.h. */
2d33ab91 15371#include <sys/types.h>
63ae7fee
PS
15372#ifdef HAVE_SYS_SOCKET_H
15373# include <sys/socket.h>
15374#endif
f5818d2f
AJ
15375int
15376main ()
15377{
15378struct sockaddr s; s.sa_len = 0
15379 ;
15380 return 0;
15381}
15382_ACEOF
15383rm -f conftest.$ac_objext
daa2886c 15384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
15385 (eval $ac_compile) 2>&5
15386 ac_status=$?
daa2886c 15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15388 (exit $ac_status); } &&
15389 { ac_try='test -s conftest.$ac_objext'
daa2886c 15390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15391 (eval $ac_try) 2>&5
15392 ac_status=$?
daa2886c 15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 15394 (exit $ac_status); }; }; then
09da966c
PS
15395 ac_cv_c_sockaddr_sa_len="yes"
15396else
f5818d2f 15397 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15398sed 's/^/| /' conftest.$ac_ext >&5
15399
f5818d2f 15400ac_cv_c_sockaddr_sa_len="no"
09da966c 15401fi
f5818d2f 15402rm -f conftest.$ac_objext conftest.$ac_ext
09da966c 15403fi
daa2886c 15404echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
f5818d2f
AJ
15405echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
15406if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
09da966c 15407
daa2886c 15408cat >>confdefs.h <<\_ACEOF
09da966c 15409#define HAVE_SOCKADDR_SA_LEN 1
daa2886c 15410_ACEOF
09da966c
PS
15411
15412fi
15413
daa2886c
AJ
15414
15415
15416echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
f5818d2f
AJ
15417echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
15418if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
09da966c 15420else
f5818d2f 15421 cat >conftest.$ac_ext <<_ACEOF
daa2886c 15422#line $LINENO "configure"
e24bcc77
AJ
15423/* confdefs.h. */
15424_ACEOF
15425cat confdefs.h >>conftest.$ac_ext
15426cat >>conftest.$ac_ext <<_ACEOF
15427/* end confdefs.h. */
09da966c 15428#include <sys/types.h>
63ae7fee
PS
15429#ifdef HAVE_SYS_SOCKET_H
15430# include <sys/socket.h>
15431#endif
15432#ifdef HAVE_SYS_UN_H
15433# include <sys/un.h>
15434#endif
f5818d2f
AJ
15435int
15436main ()
15437{
15438struct sockaddr_un s; s.sun_len = 0
15439 ;
15440 return 0;
15441}
15442_ACEOF
15443rm -f conftest.$ac_objext
daa2886c 15444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
15445 (eval $ac_compile) 2>&5
15446 ac_status=$?
daa2886c 15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15448 (exit $ac_status); } &&
15449 { ac_try='test -s conftest.$ac_objext'
daa2886c 15450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15451 (eval $ac_try) 2>&5
15452 ac_status=$?
daa2886c 15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15454 (exit $ac_status); }; }; then
15455 ac_cv_c_sockaddr_un_sun_len="yes"
15456else
15457 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15458sed 's/^/| /' conftest.$ac_ext >&5
15459
f5818d2f
AJ
15460ac_cv_c_sockaddr_un_sun_len="no"
15461fi
15462rm -f conftest.$ac_objext conftest.$ac_ext
15463fi
daa2886c 15464echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
f5818d2f
AJ
15465echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
15466if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
15467
daa2886c 15468cat >>confdefs.h <<\_ACEOF
2d33ab91 15469#define HAVE_SOCKADDR_SUN_LEN 1
daa2886c 15470_ACEOF
2d33ab91
JL
15471
15472fi
15473
daa2886c
AJ
15474
15475
15476
fc01b729 15477case $host_cpu in
05783b55 15478 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
f5818d2f 15479echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
05783b55 15480if test "${ac_cv_cpp_def___i386__+set}" = set; then
f5818d2f 15481 echo $ECHO_N "(cached) $ECHO_C" >&6
51d46ba9 15482else
f5818d2f 15483 cat >conftest.$ac_ext <<_ACEOF
daa2886c 15484#line $LINENO "configure"
e24bcc77
AJ
15485/* confdefs.h. */
15486_ACEOF
15487cat confdefs.h >>conftest.$ac_ext
15488cat >>conftest.$ac_ext <<_ACEOF
15489/* end confdefs.h. */
f5818d2f 15490#ifndef __i386__
51d46ba9
AJ
15491yes
15492#endif
f5818d2f 15493_ACEOF
51d46ba9 15494if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 15495 $EGREP "yes" >/dev/null 2>&1; then
05783b55 15496 ac_cv_cpp_def___i386__=yes
51d46ba9 15497else
05783b55 15498 ac_cv_cpp_def___i386__=no
51d46ba9
AJ
15499fi
15500rm -f conftest*
15501
15502fi
05783b55
AJ
15503echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
15504echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
15505if test $ac_cv_cpp_def___i386__ = yes; then
15506 CFLAGS="$CFLAGS -D__i386__"
15507 LINTFLAGS="$LINTFLAGS -D__i386__"
51d46ba9 15508fi
05783b55
AJ
15509 ;;
15510 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
69b67861 15511echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
05783b55 15512if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
69b67861
SE
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15514else
15515 cat >conftest.$ac_ext <<_ACEOF
15516#line $LINENO "configure"
e24bcc77
AJ
15517/* confdefs.h. */
15518_ACEOF
15519cat confdefs.h >>conftest.$ac_ext
15520cat >>conftest.$ac_ext <<_ACEOF
15521/* end confdefs.h. */
69b67861
SE
15522#ifndef __ALPHA__
15523yes
15524#endif
15525_ACEOF
15526if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15527 $EGREP "yes" >/dev/null 2>&1; then
05783b55 15528 ac_cv_cpp_def___ALPHA__=yes
69b67861 15529else
05783b55 15530 ac_cv_cpp_def___ALPHA__=no
69b67861
SE
15531fi
15532rm -f conftest*
15533
15534fi
05783b55
AJ
15535echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
15536echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
15537if test $ac_cv_cpp_def___ALPHA__ = yes; then
15538 CFLAGS="$CFLAGS -D__ALPHA__"
15539 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
69b67861 15540fi
05783b55
AJ
15541 ;;
15542 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
57807fa1 15543echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
05783b55 15544if test "${ac_cv_cpp_def___sparc__+set}" = set; then
57807fa1
GM
15545 echo $ECHO_N "(cached) $ECHO_C" >&6
15546else
15547 cat >conftest.$ac_ext <<_ACEOF
15548#line $LINENO "configure"
e24bcc77
AJ
15549/* confdefs.h. */
15550_ACEOF
15551cat confdefs.h >>conftest.$ac_ext
15552cat >>conftest.$ac_ext <<_ACEOF
15553/* end confdefs.h. */
57807fa1
GM
15554#ifndef __sparc__
15555yes
15556#endif
15557_ACEOF
15558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 15559 $EGREP "yes" >/dev/null 2>&1; then
05783b55 15560 ac_cv_cpp_def___sparc__=yes
57807fa1 15561else
05783b55 15562 ac_cv_cpp_def___sparc__=no
57807fa1
GM
15563fi
15564rm -f conftest*
15565
15566fi
05783b55
AJ
15567echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
15568echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
15569if test $ac_cv_cpp_def___sparc__ = yes; then
15570 CFLAGS="$CFLAGS -D__sparc__"
15571 LINTFLAGS="$LINTFLAGS -D__sparc__"
57807fa1 15572fi
05783b55
AJ
15573 ;;
15574esac
57807fa1
GM
15575
15576case $host_vendor in
05783b55 15577 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
57807fa1 15578echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
05783b55 15579if test "${ac_cv_cpp_def___sun__+set}" = set; then
57807fa1
GM
15580 echo $ECHO_N "(cached) $ECHO_C" >&6
15581else
15582 cat >conftest.$ac_ext <<_ACEOF
15583#line $LINENO "configure"
e24bcc77
AJ
15584/* confdefs.h. */
15585_ACEOF
15586cat confdefs.h >>conftest.$ac_ext
15587cat >>conftest.$ac_ext <<_ACEOF
15588/* end confdefs.h. */
57807fa1
GM
15589#ifndef __sun__
15590yes
15591#endif
15592_ACEOF
15593if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 15594 $EGREP "yes" >/dev/null 2>&1; then
05783b55 15595 ac_cv_cpp_def___sun__=yes
57807fa1 15596else
05783b55 15597 ac_cv_cpp_def___sun__=no
57807fa1
GM
15598fi
15599rm -f conftest*
15600
15601fi
05783b55
AJ
15602echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
15603echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
15604if test $ac_cv_cpp_def___sun__ = yes; then
15605 CFLAGS="$CFLAGS -D__sun__"
15606 LINTFLAGS="$LINTFLAGS -D__sun__"
57807fa1 15607fi
05783b55
AJ
15608 ;;
15609esac
57807fa1
GM
15610
15611
daa2886c
AJ
15612
15613
15614
11af04e3 15615 ac_config_commands="$ac_config_commands controls"
9bb05fc4 15616
11af04e3 15617 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
a7f5cb5b 15618
11af04e3 15619 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
a7f5cb5b 15620
11af04e3 15621 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
829fe323 15622
11af04e3 15623 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
1425941e 15624
11af04e3 15625 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
1425941e 15626
11af04e3 15627 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
87a2f8df 15628
11af04e3 15629 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
87a2f8df 15630
11af04e3 15631 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
e2991ea7 15632
11af04e3 15633 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
e2991ea7 15634
11af04e3 15635 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
89118568 15636
11af04e3 15637 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
89118568 15638
11af04e3 15639 ac_config_commands="$ac_config_commands dlls/kernel/messages"
f5818d2f 15640
11af04e3 15641 ac_config_commands="$ac_config_commands dlls/user/dde"
d0edc5fe 15642
11af04e3 15643 ac_config_commands="$ac_config_commands dlls/user/resources"
f5818d2f 15644
11af04e3 15645 ac_config_commands="$ac_config_commands dlls/wineps/data"
f5818d2f 15646
11af04e3 15647 ac_config_commands="$ac_config_commands files"
9bb05fc4 15648
11af04e3 15649 ac_config_commands="$ac_config_commands graphics"
9bb05fc4 15650
11af04e3 15651 ac_config_commands="$ac_config_commands graphics/x11drv"
9bb05fc4 15652
11af04e3 15653 ac_config_commands="$ac_config_commands if1632"
9bb05fc4 15654
11af04e3 15655 ac_config_commands="$ac_config_commands include/wine"
f5818d2f 15656
11af04e3 15657 ac_config_commands="$ac_config_commands loader"
9bb05fc4 15658
11af04e3 15659 ac_config_commands="$ac_config_commands loader/ne"
9bb05fc4 15660
11af04e3 15661 ac_config_commands="$ac_config_commands memory"
9bb05fc4 15662
11af04e3 15663 ac_config_commands="$ac_config_commands misc"
9bb05fc4 15664
11af04e3 15665 ac_config_commands="$ac_config_commands msdos"
9bb05fc4 15666
11af04e3 15667 ac_config_commands="$ac_config_commands objects"
9bb05fc4 15668
11af04e3 15669 ac_config_commands="$ac_config_commands programs/regapi/tests"
c72f0b21 15670
11af04e3 15671 ac_config_commands="$ac_config_commands programs/regedit/tests"
f5aad769 15672
11af04e3 15673 ac_config_commands="$ac_config_commands relay32"
9bb05fc4 15674
11af04e3 15675 ac_config_commands="$ac_config_commands scheduler"
9bb05fc4 15676
11af04e3 15677 ac_config_commands="$ac_config_commands win32"
9bb05fc4 15678
11af04e3 15679 ac_config_commands="$ac_config_commands windows"
9bb05fc4 15680
f5818d2f
AJ
15681
15682MAKE_RULES=Make.rules
15683
daa2886c 15684
f5818d2f 15685MAKE_DLL_RULES=dlls/Makedll.rules
d0edc5fe 15686
daa2886c 15687
edeee89c
AJ
15688MAKE_TEST_RULES=dlls/Maketest.rules
15689
15690
626f425b
AJ
15691MAKE_PROG_RULES=programs/Makeprog.rules
15692
daa2886c 15693
eaae7050 15694 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3dim/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/winejack/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile library/Makefile miscemu/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wpp/Makefile tools/wrc/Makefile unicode/Makefile"
daa2886c 15695
626f425b 15696
f5818d2f 15697cat >confcache <<\_ACEOF
e2991ea7
AJ
15698# This file is a shell script that caches the results of configure
15699# tests run on this system so they can be shared between configure
f5818d2f
AJ
15700# scripts and configure runs, see configure's option --config-cache.
15701# It is not useful on other systems. If it contains results you don't
15702# want to keep, you may remove or edit it.
e2991ea7 15703#
f5818d2f
AJ
15704# config.status only pays attention to the cache file if you give it
15705# the --recheck option to rerun configure.
e2991ea7 15706#
11af04e3 15707# `ac_cv_env_foo' variables (set or unset) will be overridden when
f5818d2f
AJ
15708# loading this file, other *unset* `ac_cv_foo' will be assigned the
15709# following values.
15710
15711_ACEOF
15712
7e6ae4ba
AJ
15713# The following way of writing the cache mishandles newlines in values,
15714# but we know of no workaround that is simple, portable, and efficient.
15715# So, don't put newlines in cache variables' values.
e2991ea7
AJ
15716# Ultrix sh set writes to stderr and can't be redirected directly,
15717# and sets the high bit in the cache file unless we assign to the vars.
f5818d2f
AJ
15718{
15719 (set) 2>&1 |
15720 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15721 *ac_space=\ *)
15722 # `set' does not quote correctly, so add quotes (double-quote
15723 # substitution turns \\\\ into \\, and sed turns \\ into \).
15724 sed -n \
15725 "s/'/'\\\\''/g;
15726 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15727 ;;
15728 *)
15729 # `set' quotes correctly as required by POSIX, so do not add quotes.
15730 sed -n \
15731 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15732 ;;
15733 esac;
15734} |
15735 sed '
15736 t clear
15737 : clear
15738 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15739 t end
15740 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15741 : end' >>confcache
e24bcc77 15742if diff $cache_file confcache >/dev/null 2>&1; then :; else
e2991ea7 15743 if test -w $cache_file; then
f5818d2f
AJ
15744 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15745 cat confcache >$cache_file
e2991ea7
AJ
15746 else
15747 echo "not updating unwritable cache $cache_file"
15748 fi
15749fi
15750rm -f confcache
15751
e2991ea7
AJ
15752test "x$prefix" = xNONE && prefix=$ac_default_prefix
15753# Let make expand exec_prefix.
15754test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15755
f5818d2f
AJ
15756# VPATH may cause trouble with some makes, so we remove $(srcdir),
15757# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15758# trailing colons and then remove the whole line if VPATH becomes empty
15759# (actually we leave an empty line to preserve line numbers).
e2991ea7 15760if test "x$srcdir" = x.; then
f5818d2f
AJ
15761 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15762s/:*\$(srcdir):*/:/;
15763s/:*\${srcdir}:*/:/;
15764s/:*@srcdir@:*/:/;
15765s/^\([^=]*=[ ]*\):*/\1/;
15766s/:*$//;
15767s/^[^=]*=[ ]*$//;
15768}'
e2991ea7
AJ
15769fi
15770
18f92e76 15771DEFS=-DHAVE_CONFIG_H
e2991ea7 15772
11af04e3
AJ
15773ac_libobjs=
15774ac_ltlibobjs=
15775for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15776 # 1. Remove the extension, and $U if already installed.
15777 ac_i=`echo "$ac_i" |
15778 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15779 # 2. Add them.
15780 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15781 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15782done
15783LIBOBJS=$ac_libobjs
15784
15785LTLIBOBJS=$ac_ltlibobjs
15786
15787
daa2886c 15788
e2991ea7 15789: ${CONFIG_STATUS=./config.status}
f5818d2f
AJ
15790ac_clean_files_save=$ac_clean_files
15791ac_clean_files="$ac_clean_files $CONFIG_STATUS"
daa2886c 15792{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
f5818d2f
AJ
15793echo "$as_me: creating $CONFIG_STATUS" >&6;}
15794cat >$CONFIG_STATUS <<_ACEOF
15795#! $SHELL
daa2886c 15796# Generated by $as_me.
e2991ea7 15797# Run this file to recreate the current configuration.
e2991ea7 15798# Compiler output produced by configure, useful for debugging
f5818d2f 15799# configure, is in config.log if it exists.
e2991ea7 15800
f5818d2f 15801debug=false
e24bcc77
AJ
15802ac_cs_recheck=false
15803ac_cs_silent=false
f5818d2f 15804SHELL=\${CONFIG_SHELL-$SHELL}
f5818d2f
AJ
15805_ACEOF
15806
15807cat >>$CONFIG_STATUS <<\_ACEOF
daa2886c
AJ
15808## --------------------- ##
15809## M4sh Initialization. ##
15810## --------------------- ##
15811
f5818d2f
AJ
15812# Be Bourne compatible
15813if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15814 emulate sh
15815 NULLCMD=:
11af04e3
AJ
15816 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15817 # is contrary to our usage. Disable this feature.
15818 alias -g '${1+"$@"}'='"$@"'
f5818d2f
AJ
15819elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15820 set -o posix
15821fi
15822
daa2886c
AJ
15823# Support unset when possible.
15824if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15825 as_unset=unset
15826else
15827 as_unset=false
15828fi
15829
11af04e3
AJ
15830
15831# Work around bugs in pre-3.0 UWIN ksh.
15832$as_unset ENV MAIL MAILPATH
15833PS1='$ '
15834PS2='> '
15835PS4='+ '
15836
15837# NLS nuisances.
e24bcc77
AJ
15838for as_var in \
15839 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15840 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15841 LC_TELEPHONE LC_TIME
11af04e3
AJ
15842do
15843 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15844 eval $as_var=C; export $as_var
15845 else
15846 $as_unset $as_var
15847 fi
15848done
15849
15850# Required to use basename.
15851if expr a : '\(a\)' >/dev/null 2>&1; then
15852 as_expr=expr
15853else
15854 as_expr=false
15855fi
15856
15857if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15858 as_basename=basename
15859else
15860 as_basename=false
15861fi
daa2886c
AJ
15862
15863
f5818d2f 15864# Name of the executable.
11af04e3 15865as_me=`$as_basename "$0" ||
daa2886c
AJ
15866$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15867 X"$0" : 'X\(//\)$' \| \
15868 X"$0" : 'X\(/\)$' \| \
15869 . : '\(.\)' 2>/dev/null ||
15870echo X/"$0" |
15871 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15872 /^X\/\(\/\/\)$/{ s//\1/; q; }
15873 /^X\/\(\/\).*/{ s//\1/; q; }
15874 s/.*/./; q'`
15875
11af04e3 15876
daa2886c
AJ
15877# PATH needs CR, and LINENO needs CR and PATH.
15878# Avoid depending upon Character Ranges.
15879as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15880as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15881as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15882as_cr_digits='0123456789'
15883as_cr_alnum=$as_cr_Letters$as_cr_digits
15884
15885# The user is always right.
15886if test "${PATH_SEPARATOR+set}" != set; then
e24bcc77
AJ
15887 echo "#! /bin/sh" >conf$$.sh
15888 echo "exit 0" >>conf$$.sh
15889 chmod +x conf$$.sh
15890 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
daa2886c
AJ
15891 PATH_SEPARATOR=';'
15892 else
15893 PATH_SEPARATOR=:
15894 fi
e24bcc77 15895 rm -f conf$$.sh
daa2886c
AJ
15896fi
15897
15898
15899 as_lineno_1=$LINENO
15900 as_lineno_2=$LINENO
15901 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15902 test "x$as_lineno_1" != "x$as_lineno_2" &&
15903 test "x$as_lineno_3" = "x$as_lineno_2" || {
15904 # Find who we are. Look in the path if we contain no path at all
15905 # relative or not.
15906 case $0 in
15907 *[\\/]* ) as_myself=$0 ;;
15908 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15909for as_dir in $PATH
15910do
15911 IFS=$as_save_IFS
15912 test -z "$as_dir" && as_dir=.
15913 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15914done
15915
15916 ;;
15917 esac
15918 # We did not find ourselves, most probably we were run as `sh COMMAND'
15919 # in which case we are not to be found in the path.
15920 if test "x$as_myself" = x; then
15921 as_myself=$0
15922 fi
15923 if test ! -f "$as_myself"; then
15924 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15925echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15926 { (exit 1); exit 1; }; }
15927 fi
15928 case $CONFIG_SHELL in
15929 '')
15930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15931for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15932do
15933 IFS=$as_save_IFS
15934 test -z "$as_dir" && as_dir=.
15935 for as_base in sh bash ksh sh5; do
15936 case $as_dir in
15937 /*)
15938 if ("$as_dir/$as_base" -c '
15939 as_lineno_1=$LINENO
15940 as_lineno_2=$LINENO
15941 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15942 test "x$as_lineno_1" != "x$as_lineno_2" &&
15943 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11af04e3
AJ
15944 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15945 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
daa2886c
AJ
15946 CONFIG_SHELL=$as_dir/$as_base
15947 export CONFIG_SHELL
15948 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15949 fi;;
15950 esac
15951 done
15952done
15953;;
15954 esac
15955
15956 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15957 # uniformly replaced by the line number. The first 'sed' inserts a
15958 # line-number line before each line; the second 'sed' does the real
15959 # work. The second script uses 'N' to pair each line-number line
15960 # with the numbered line, and appends trailing '-' during
15961 # substitution so that $LINENO is not a special case at line end.
15962 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15963 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15964 sed '=' <$as_myself |
15965 sed '
15966 N
15967 s,$,-,
15968 : loop
15969 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15970 t loop
15971 s,-$,,
15972 s,^['$as_cr_digits']*\n,,
15973 ' >$as_me.lineno &&
15974 chmod +x $as_me.lineno ||
15975 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15976echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15977 { (exit 1); exit 1; }; }
15978
15979 # Don't try to exec as it changes $[0], causing all sort of problems
15980 # (the dirname of $[0] is not the place where we might find the
15981 # original and so on. Autoconf is especially sensible to this).
15982 . ./$as_me.lineno
15983 # Exit status is that of the last command.
15984 exit
15985}
15986
15987
15988case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15989 *c*,-n*) ECHO_N= ECHO_C='
15990' ECHO_T=' ' ;;
15991 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15992 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15993esac
f5818d2f
AJ
15994
15995if expr a : '\(a\)' >/dev/null 2>&1; then
15996 as_expr=expr
15997else
15998 as_expr=false
15999fi
16000
16001rm -f conf$$ conf$$.exe conf$$.file
16002echo >conf$$.file
16003if ln -s conf$$.file conf$$ 2>/dev/null; then
16004 # We could just check for DJGPP; but this test a) works b) is more generic
16005 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16006 if test -f conf$$.exe; then
16007 # Don't use ln at all; we don't have any links
16008 as_ln_s='cp -p'
16009 else
16010 as_ln_s='ln -s'
16011 fi
16012elif ln conf$$.file conf$$ 2>/dev/null; then
16013 as_ln_s=ln
16014else
16015 as_ln_s='cp -p'
16016fi
16017rm -f conf$$ conf$$.exe conf$$.file
16018
11af04e3
AJ
16019if mkdir -p . 2>/dev/null; then
16020 as_mkdir_p=:
16021else
16022 as_mkdir_p=false
16023fi
16024
f5818d2f
AJ
16025as_executable_p="test -f"
16026
daa2886c
AJ
16027# Sed expression to map a string onto a valid CPP name.
16028as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16029
16030# Sed expression to map a string onto a valid variable name.
16031as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
f5818d2f 16032
f5818d2f
AJ
16033
16034# IFS
16035# We need space, tab and new line, in precisely that order.
16036as_nl='
16037'
16038IFS=" $as_nl"
16039
16040# CDPATH.
11af04e3 16041$as_unset CDPATH
f5818d2f
AJ
16042
16043exec 6>&1
16044
daa2886c
AJ
16045# Open the log real soon, to keep \$[0] and so on meaningful, and to
16046# report actual input values of CONFIG_FILES etc. instead of their
16047# values after options handling. Logging --version etc. is OK.
16048exec 5>>config.log
16049{
16050 echo
16051 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16052## Running $as_me. ##
16053_ASBOX
16054} >&5
16055cat >&5 <<_CSEOF
16056
03e5ce35 16057This file was extended by Wine $as_me 20030219, which was
e24bcc77 16058generated by GNU Autoconf 2.57. Invocation command line was
daa2886c
AJ
16059
16060 CONFIG_FILES = $CONFIG_FILES
16061 CONFIG_HEADERS = $CONFIG_HEADERS
16062 CONFIG_LINKS = $CONFIG_LINKS
16063 CONFIG_COMMANDS = $CONFIG_COMMANDS
16064 $ $0 $@
16065
16066_CSEOF
16067echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16068echo >&5
f5818d2f
AJ
16069_ACEOF
16070
16071# Files that config.status was made for.
16072if test -n "$ac_config_files"; then
16073 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16074fi
16075
16076if test -n "$ac_config_headers"; then
16077 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16078fi
16079
16080if test -n "$ac_config_links"; then
16081 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16082fi
16083
16084if test -n "$ac_config_commands"; then
16085 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16086fi
16087
daa2886c 16088cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
16089
16090ac_cs_usage="\
16091\`$as_me' instantiates files from templates according to the
16092current configuration.
16093
16094Usage: $0 [OPTIONS] [FILE]...
16095
16096 -h, --help print this help, then exit
16097 -V, --version print version number, then exit
e24bcc77 16098 -q, --quiet do not print progress messages
f5818d2f
AJ
16099 -d, --debug don't remove temporary files
16100 --recheck update $as_me by reconfiguring in the same conditions
16101 --file=FILE[:TEMPLATE]
16102 instantiate the configuration file FILE
16103 --header=FILE[:TEMPLATE]
16104 instantiate the configuration header FILE
16105
16106Configuration files:
16107$config_files
16108
16109Configuration headers:
16110$config_headers
16111
16112Configuration commands:
16113$config_commands
16114
16115Report bugs to <bug-autoconf@gnu.org>."
daa2886c 16116_ACEOF
f5818d2f 16117
daa2886c 16118cat >>$CONFIG_STATUS <<_ACEOF
f5818d2f 16119ac_cs_version="\\
03e5ce35 16120Wine config.status 20030219
e24bcc77 16121configured by $0, generated by GNU Autoconf 2.57,
f5818d2f
AJ
16122 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16123
16124Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16125Free Software Foundation, Inc.
16126This config.status script is free software; the Free Software Foundation
16127gives unlimited permission to copy, distribute and modify it."
16128srcdir=$srcdir
16129INSTALL="$INSTALL"
daa2886c 16130_ACEOF
f5818d2f 16131
daa2886c 16132cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
16133# If no file are specified by the user, then we need to provide default
16134# value. By we need to know if files were specified by the user.
16135ac_need_defaults=:
16136while test $# != 0
e2991ea7 16137do
f5818d2f
AJ
16138 case $1 in
16139 --*=*)
16140 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16141 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11af04e3
AJ
16142 ac_shift=:
16143 ;;
16144 -*)
16145 ac_option=$1
16146 ac_optarg=$2
16147 ac_shift=shift
f5818d2f 16148 ;;
f5818d2f
AJ
16149 *) # This is not an option, so the user has probably given explicit
16150 # arguments.
11af04e3 16151 ac_option=$1
f5818d2f
AJ
16152 ac_need_defaults=false;;
16153 esac
16154
11af04e3 16155 case $ac_option in
f5818d2f 16156 # Handling of the options.
daa2886c 16157_ACEOF
daa2886c 16158cat >>$CONFIG_STATUS <<\_ACEOF
e24bcc77
AJ
16159 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16160 ac_cs_recheck=: ;;
f5818d2f
AJ
16161 --version | --vers* | -V )
16162 echo "$ac_cs_version"; exit 0 ;;
16163 --he | --h)
16164 # Conflict between --help and --header
daa2886c 16165 { { echo "$as_me:$LINENO: error: ambiguous option: $1
f5818d2f
AJ
16166Try \`$0 --help' for more information." >&5
16167echo "$as_me: error: ambiguous option: $1
16168Try \`$0 --help' for more information." >&2;}
16169 { (exit 1); exit 1; }; };;
16170 --help | --hel | -h )
16171 echo "$ac_cs_usage"; exit 0 ;;
16172 --debug | --d* | -d )
16173 debug=: ;;
16174 --file | --fil | --fi | --f )
11af04e3
AJ
16175 $ac_shift
16176 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
f5818d2f
AJ
16177 ac_need_defaults=false;;
16178 --header | --heade | --head | --hea )
11af04e3
AJ
16179 $ac_shift
16180 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
f5818d2f 16181 ac_need_defaults=false;;
e24bcc77
AJ
16182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16183 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16184 ac_cs_silent=: ;;
f5818d2f
AJ
16185
16186 # This is an error.
daa2886c 16187 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
f5818d2f
AJ
16188Try \`$0 --help' for more information." >&5
16189echo "$as_me: error: unrecognized option: $1
16190Try \`$0 --help' for more information." >&2;}
16191 { (exit 1); exit 1; }; } ;;
16192
16193 *) ac_config_targets="$ac_config_targets $1" ;;
16194
e2991ea7 16195 esac
f5818d2f 16196 shift
e2991ea7
AJ
16197done
16198
e24bcc77
AJ
16199ac_configure_extra_args=
16200
16201if $ac_cs_silent; then
16202 exec 6>/dev/null
16203 ac_configure_extra_args="$ac_configure_extra_args --silent"
16204fi
16205
16206_ACEOF
16207cat >>$CONFIG_STATUS <<_ACEOF
16208if \$ac_cs_recheck; then
16209 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16210 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16211fi
16212
f5818d2f 16213_ACEOF
e2991ea7 16214
f5818d2f 16215
f5818d2f 16216
f5818d2f 16217
daa2886c
AJ
16218
16219cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
16220for ac_config_target in $ac_config_targets
16221do
16222 case "$ac_config_target" in
16223 # Handling of arguments.
16224 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16225 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
edeee89c 16226 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
f5818d2f
AJ
16227 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16228 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
f5818d2f
AJ
16229 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
16230 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
edeee89c 16231 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
f5818d2f
AJ
16232 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
16233 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
d1447faa 16234 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
34909c20 16235 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
f5818d2f
AJ
16236 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
16237 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
16238 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
16239 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
5a23a001 16240 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
3a99d8ba 16241 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
eaae7050 16242 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
e31ae926 16243 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
f5818d2f
AJ
16244 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
16245 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
16246 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
16247 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
d2d08f0c 16248 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
f5818d2f
AJ
16249 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
16250 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
16251 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
d523a45b 16252 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
f5818d2f 16253 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
928ecb48 16254 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
f5818d2f
AJ
16255 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
16256 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
16257 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
16258 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
16259 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
edeee89c 16260 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
f5818d2f
AJ
16261 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
16262 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
16263 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
16264 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
0307f6dc 16265 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
bed67fc9 16266 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
bcb9c46c 16267 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
b706b23a 16268 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
f5818d2f
AJ
16269 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
16270 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
f6be044d 16271 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
f5818d2f 16272 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
f5818d2f 16273 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
a768fa31 16274 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
f5818d2f
AJ
16275 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
16276 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
288b8ee1 16277 "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
f5818d2f 16278 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
b812c90c 16279 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
f5818d2f 16280 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
1da29717 16281 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
f5818d2f
AJ
16282 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
16283 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
16284 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
edeee89c 16285 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
f5818d2f
AJ
16286 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
16287 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
16288 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
16289 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
16290 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
16291 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
16292 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
16293 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
16294 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
16295 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
16296 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
ac89cc28 16297 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
f5818d2f
AJ
16298 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
16299 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
16300 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
16301 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
5b5bea03 16302 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
f5818d2f
AJ
16303 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
16304 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
edeee89c 16305 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
4c692b9b 16306 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
f5818d2f
AJ
16307 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
16308 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
16309 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
6b0720f5 16310 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
f5818d2f
AJ
16311 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
16312 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
9398d9c1 16313 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
f5818d2f 16314 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
edeee89c 16315 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
f5818d2f
AJ
16316 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
16317 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
16318 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
16319 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
16320 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
16321 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
edeee89c 16322 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
f5818d2f
AJ
16323 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
16324 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
16325 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
16326 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
16327 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
16328 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
16329 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
16330 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
4ce28377 16331 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
f5818d2f 16332 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
a120ce01 16333 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
9b0ba7ca 16334 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
2a91e3f9
RL
16335 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
16336 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
4691b185 16337 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
f5818d2f
AJ
16338 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
16339 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
16340 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
edeee89c 16341 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
f5818d2f 16342 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
88b11064 16343 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
5caddc78 16344 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
f5818d2f
AJ
16345 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
16346 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
16347 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
16348 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
16349 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
f5818d2f
AJ
16350 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16351 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
f5818d2f 16352 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
f5818d2f
AJ
16353 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
16354 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
16355 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
16356 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
16357 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
16358 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
acfda14a 16359 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
f5818d2f
AJ
16360 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
16361 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
16362 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
16363 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
4e2e176c 16364 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
2f0d85c2 16365 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
f5818d2f 16366 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
d77294a8 16367 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
15e8e0a2 16368 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
ba02ae41 16369 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
f5818d2f
AJ
16370 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
16371 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
16372 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
175d0595 16373 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
f5818d2f 16374 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
f264bd32 16375 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
65a42168 16376 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
f5818d2f 16377 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
0d8a9fac 16378 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
f5818d2f
AJ
16379 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
16380 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
f5818d2f
AJ
16381 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
16382 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
7d4ee77c 16383 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
f5818d2f
AJ
16384 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
16385 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
16386 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
16387 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
b7d3c79b 16388 "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
f5818d2f 16389 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
f5818d2f 16390 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
9bb05fc4 16391 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
f5818d2f
AJ
16392 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
16393 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
16394 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
16395 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
16396 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
16397 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
16398 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
16399 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
16400 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
89118568
AJ
16401 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
16402 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
f5818d2f
AJ
16403 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
16404 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
16405 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
16406 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
9bb05fc4
AJ
16407 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
16408 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
16409 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
16410 "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
f5818d2f 16411 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
9bb05fc4
AJ
16412 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
16413 "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
16414 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
16415 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
16416 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
16417 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
c72f0b21 16418 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
f5aad769 16419 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
9bb05fc4
AJ
16420 "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
16421 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
16422 "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
16423 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
f5818d2f 16424 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
daa2886c 16425 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
f5818d2f
AJ
16426echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16427 { (exit 1); exit 1; }; };;
16428 esac
16429done
16430
16431# If the user did not use the arguments to specify the items to instantiate,
16432# then the envvar interface is used. Set only those that are not.
16433# We use the long form for the default assignment because of an extremely
16434# bizarre bug on SunOS 4.1.3.
16435if $ac_need_defaults; then
16436 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16437 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16438 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16439fi
16440
e24bcc77
AJ
16441# Have a temporary directory for convenience. Make it in the build tree
16442# simply because there is no reason to put it here, and in addition,
16443# creating and moving files from /tmp can sometimes cause problems.
f5818d2f
AJ
16444# Create a temporary directory, and hook for its removal unless debugging.
16445$debug ||
16446{
16447 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16448 trap '{ (exit 1); exit 1; }' 1 2 13 15
16449}
16450
16451# Create a (secure) tmp directory for tmp files.
e24bcc77 16452
f5818d2f 16453{
e24bcc77 16454 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
f5818d2f
AJ
16455 test -n "$tmp" && test -d "$tmp"
16456} ||
16457{
e24bcc77 16458 tmp=./confstat$$-$RANDOM
f5818d2f
AJ
16459 (umask 077 && mkdir $tmp)
16460} ||
16461{
e24bcc77 16462 echo "$me: cannot create a temporary directory in ." >&2
f5818d2f
AJ
16463 { (exit 1); exit 1; }
16464}
16465
daa2886c 16466_ACEOF
f5818d2f 16467
daa2886c 16468cat >>$CONFIG_STATUS <<_ACEOF
f5818d2f
AJ
16469
16470#
16471# CONFIG_FILES section.
16472#
16473
16474# No need to generate the scripts if there are no CONFIG_FILES.
16475# This happens for instance when ./config.status config.h
16476if test -n "\$CONFIG_FILES"; then
16477 # Protect against being on the right side of a sed subst in config.status.
16478 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16479 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16480s,@SHELL@,$SHELL,;t t
daa2886c
AJ
16481s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16482s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16483s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16484s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16485s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16486s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
f5818d2f
AJ
16487s,@exec_prefix@,$exec_prefix,;t t
16488s,@prefix@,$prefix,;t t
16489s,@program_transform_name@,$program_transform_name,;t t
16490s,@bindir@,$bindir,;t t
16491s,@sbindir@,$sbindir,;t t
16492s,@libexecdir@,$libexecdir,;t t
16493s,@datadir@,$datadir,;t t
16494s,@sysconfdir@,$sysconfdir,;t t
16495s,@sharedstatedir@,$sharedstatedir,;t t
16496s,@localstatedir@,$localstatedir,;t t
16497s,@libdir@,$libdir,;t t
16498s,@includedir@,$includedir,;t t
16499s,@oldincludedir@,$oldincludedir,;t t
16500s,@infodir@,$infodir,;t t
16501s,@mandir@,$mandir,;t t
f5818d2f
AJ
16502s,@build_alias@,$build_alias,;t t
16503s,@host_alias@,$host_alias,;t t
16504s,@target_alias@,$target_alias,;t t
daa2886c 16505s,@DEFS@,$DEFS,;t t
f5818d2f
AJ
16506s,@ECHO_C@,$ECHO_C,;t t
16507s,@ECHO_N@,$ECHO_N,;t t
16508s,@ECHO_T@,$ECHO_T,;t t
f5818d2f
AJ
16509s,@LIBS@,$LIBS,;t t
16510s,@OPTIONS@,$OPTIONS,;t t
c728efc3
AJ
16511s,@WIN16_FILES@,$WIN16_FILES,;t t
16512s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
f5818d2f
AJ
16513s,@build@,$build,;t t
16514s,@build_cpu@,$build_cpu,;t t
16515s,@build_vendor@,$build_vendor,;t t
16516s,@build_os@,$build_os,;t t
16517s,@host@,$host,;t t
16518s,@host_cpu@,$host_cpu,;t t
16519s,@host_vendor@,$host_vendor,;t t
16520s,@host_os@,$host_os,;t t
f5818d2f
AJ
16521s,@SET_MAKE@,$SET_MAKE,;t t
16522s,@CC@,$CC,;t t
16523s,@CFLAGS@,$CFLAGS,;t t
16524s,@LDFLAGS@,$LDFLAGS,;t t
16525s,@CPPFLAGS@,$CPPFLAGS,;t t
16526s,@ac_ct_CC@,$ac_ct_CC,;t t
16527s,@EXEEXT@,$EXEEXT,;t t
16528s,@OBJEXT@,$OBJEXT,;t t
16529s,@CPP@,$CPP,;t t
fc01b729 16530s,@TOOLSDIR@,$TOOLSDIR,;t t
f5818d2f
AJ
16531s,@X_CFLAGS@,$X_CFLAGS,;t t
16532s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16533s,@X_LIBS@,$X_LIBS,;t t
16534s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16535s,@YACC@,$YACC,;t t
16536s,@LEX@,$LEX,;t t
16537s,@LEXLIB@,$LEXLIB,;t t
16538s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
16539s,@XYACC@,$XYACC,;t t
16540s,@XLEX@,$XLEX,;t t
1d4db787
MM
16541s,@AS@,$AS,;t t
16542s,@ac_ct_AS@,$ac_ct_AS,;t t
eb5f89c5
AJ
16543s,@LD@,$LD,;t t
16544s,@ac_ct_LD@,$ac_ct_LD,;t t
fc01b729
AJ
16545s,@AR@,$AR,;t t
16546s,@ac_ct_AR@,$ac_ct_AR,;t t
f5818d2f
AJ
16547s,@RANLIB@,$RANLIB,;t t
16548s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
fc01b729
AJ
16549s,@STRIP@,$STRIP,;t t
16550s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16551s,@WINDRES@,$WINDRES,;t t
16552s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
f5818d2f 16553s,@LN_S@,$LN_S,;t t
df234a9f 16554s,@LN@,$LN,;t t
f5818d2f
AJ
16555s,@C2MAN@,$C2MAN,;t t
16556s,@LDCONFIG@,$LDCONFIG,;t t
e24bcc77
AJ
16557s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16558s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16559s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5818d2f
AJ
16560s,@LINT@,$LINT,;t t
16561s,@LINTFLAGS@,$LINTFLAGS,;t t
1d8cb6ef
VB
16562s,@DB2HTML@,$DB2HTML,;t t
16563s,@DB2PDF@,$DB2PDF,;t t
16564s,@DB2PS@,$DB2PS,;t t
f5818d2f 16565s,@JPEGLIB@,$JPEGLIB,;t t
11af04e3 16566s,@EGREP@,$EGREP,;t t
728bedcf 16567s,@GIFLIB@,$GIFLIB,;t t
f5818d2f
AJ
16568s,@XLIB@,$XLIB,;t t
16569s,@XFILES@,$XFILES,;t t
16570s,@OPENGLFILES@,$OPENGLFILES,;t t
16571s,@GLU32FILES@,$GLU32FILES,;t t
56ab2b3e 16572s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
6f670b13 16573s,@NASLIBS@,$NASLIBS,;t t
f5818d2f 16574s,@CURSESLIBS@,$CURSESLIBS,;t t
6b0720f5
SQH
16575s,@sane_devel@,$sane_devel,;t t
16576s,@SANELIBS@,$SANELIBS,;t t
16577s,@SANEINCL@,$SANEINCL,;t t
f5818d2f
AJ
16578s,@ft_devel@,$ft_devel,;t t
16579s,@ft_devel2@,$ft_devel2,;t t
f5818d2f 16580s,@FREETYPEINCL@,$FREETYPEINCL,;t t
9b0ba7ca
CM
16581s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
16582s,@ARTSLIBS@,$ARTSLIBS,;t t
16583s,@ARTSINCL@,$ARTSINCL,;t t
f92b7c06 16584s,@ALSALIBS@,$ALSALIBS,;t t
2a91e3f9 16585s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
c1bfca04 16586s,@DLLEXT@,$DLLEXT,;t t
7bf07d15
AJ
16587s,@DLLFLAGS@,$DLLFLAGS,;t t
16588s,@DLLIBS@,$DLLIBS,;t t
f5818d2f 16589s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
7bf07d15 16590s,@LDSHARED@,$LDSHARED,;t t
ada5e652
AJ
16591s,@LIBEXT@,$LIBEXT,;t t
16592s,@IMPLIBEXT@,$IMPLIBEXT,;t t
16593s,@DLLTOOL@,$DLLTOOL,;t t
16594s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
7bf07d15
AJ
16595s,@DLLWRAP@,$DLLWRAP,;t t
16596s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
c3c587eb
AJ
16597s,@CROSSTEST@,$CROSSTEST,;t t
16598s,@CROSSCC@,$CROSSCC,;t t
f5818d2f 16599s,@LDPATH@,$LDPATH,;t t
7bf07d15 16600s,@CRTLIBS@,$CRTLIBS,;t t
67e8dc68 16601s,@LDD@,$LDD,;t t
f5818d2f 16602s,@ALLOCA@,$ALLOCA,;t t
11af04e3
AJ
16603s,@LIBOBJS@,$LIBOBJS,;t t
16604s,@LTLIBOBJS@,$LTLIBOBJS,;t t
ff8331ea 16605/@MAKE_RULES@/r $MAKE_RULES
f5818d2f 16606s,@MAKE_RULES@,,;t t
d0edc5fe 16607/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
f5818d2f 16608s,@MAKE_DLL_RULES@,,;t t
edeee89c
AJ
16609/@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
16610s,@MAKE_TEST_RULES@,,;t t
626f425b 16611/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
f5818d2f 16612s,@MAKE_PROG_RULES@,,;t t
e2991ea7 16613CEOF
f5818d2f 16614
daa2886c 16615_ACEOF
da0cfb36 16616
daa2886c 16617 cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
16618 # Split the substitutions into bite-sized pieces for seds with
16619 # small command number limits, like on Digital OSF/1 and HP-UX.
16620 ac_max_sed_lines=48
16621 ac_sed_frag=1 # Number of current file.
16622 ac_beg=1 # First line for current file.
16623 ac_end=$ac_max_sed_lines # Line after last line for current file.
16624 ac_more_lines=:
16625 ac_sed_cmds=
16626 while $ac_more_lines; do
16627 if test $ac_beg -gt 1; then
16628 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16629 else
16630 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16631 fi
16632 if test ! -s $tmp/subs.frag; then
16633 ac_more_lines=false
da0cfb36 16634 else
f5818d2f
AJ
16635 # The purpose of the label and of the branching condition is to
16636 # speed up the sed processing (if there are no `@' at all, there
16637 # is no need to browse any of the substitutions).
16638 # These are the two extra sed commands mentioned above.
16639 (echo ':t
16640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16641 if test -z "$ac_sed_cmds"; then
16642 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16643 else
16644 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16645 fi
16646 ac_sed_frag=`expr $ac_sed_frag + 1`
16647 ac_beg=$ac_end
16648 ac_end=`expr $ac_end + $ac_max_sed_lines`
da0cfb36 16649 fi
f5818d2f
AJ
16650 done
16651 if test -z "$ac_sed_cmds"; then
16652 ac_sed_cmds=cat
da0cfb36 16653 fi
f5818d2f 16654fi # test -n "$CONFIG_FILES"
da0cfb36 16655
daa2886c
AJ
16656_ACEOF
16657cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f 16658for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7e6ae4ba 16659 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
f5818d2f
AJ
16660 case $ac_file in
16661 - | *:- | *:-:* ) # input from stdin
16662 cat >$tmp/stdin
16663 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16664 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16665 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16666 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16667 * ) ac_file_in=$ac_file.in ;;
e2991ea7
AJ
16668 esac
16669
f5818d2f 16670 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
daa2886c
AJ
16671 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16672$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f5818d2f
AJ
16673 X"$ac_file" : 'X\(//\)[^/]' \| \
16674 X"$ac_file" : 'X\(//\)$' \| \
16675 X"$ac_file" : 'X\(/\)' \| \
16676 . : '\(.\)' 2>/dev/null ||
16677echo X"$ac_file" |
16678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16680 /^X\(\/\/\)$/{ s//\1/; q; }
16681 /^X\(\/\).*/{ s//\1/; q; }
16682 s/.*/./; q'`
11af04e3
AJ
16683 { if $as_mkdir_p; then
16684 mkdir -p "$ac_dir"
16685 else
16686 as_dir="$ac_dir"
16687 as_dirs=
16688 while test ! -d "$as_dir"; do
16689 as_dirs="$as_dir $as_dirs"
16690 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16691$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16692 X"$as_dir" : 'X\(//\)[^/]' \| \
16693 X"$as_dir" : 'X\(//\)$' \| \
16694 X"$as_dir" : 'X\(/\)' \| \
16695 . : '\(.\)' 2>/dev/null ||
16696echo X"$as_dir" |
16697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16698 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16699 /^X\(\/\/\)$/{ s//\1/; q; }
16700 /^X\(\/\).*/{ s//\1/; q; }
16701 s/.*/./; q'`
16702 done
16703 test ! -n "$as_dirs" || mkdir $as_dirs
16704 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16705echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16706 { (exit 1); exit 1; }; }; }
f5818d2f 16707
daa2886c 16708 ac_builddir=.
e2991ea7 16709
daa2886c
AJ
16710if test "$ac_dir" != .; then
16711 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16712 # A "../" for each directory in $ac_dir_suffix.
16713 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16714else
16715 ac_dir_suffix= ac_top_builddir=
16716fi
16717
16718case $srcdir in
16719 .) # No --srcdir option. We are building in place.
16720 ac_srcdir=.
16721 if test -z "$ac_top_builddir"; then
16722 ac_top_srcdir=.
16723 else
16724 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16725 fi ;;
16726 [\\/]* | ?:[\\/]* ) # Absolute path.
16727 ac_srcdir=$srcdir$ac_dir_suffix;
16728 ac_top_srcdir=$srcdir ;;
e2991ea7 16729 *) # Relative path.
daa2886c
AJ
16730 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16731 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16732esac
16733# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16734# absolute.
16735ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11af04e3 16736ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
daa2886c
AJ
16737ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16738ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16739
e2991ea7 16740
f5818d2f
AJ
16741 case $INSTALL in
16742 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
daa2886c 16743 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d7d4fdf8 16744 esac
da0cfb36 16745
f5818d2f 16746 if test x"$ac_file" != x-; then
daa2886c 16747 { echo "$as_me:$LINENO: creating $ac_file" >&5
f5818d2f
AJ
16748echo "$as_me: creating $ac_file" >&6;}
16749 rm -f "$ac_file"
16750 fi
16751 # Let's still pretend it is `configure' which instantiates (i.e., don't
16752 # use $as_me), people would be surprised to read:
daa2886c
AJ
16753 # /* config.h. Generated by config.status. */
16754 if test x"$ac_file" = x-; then
16755 configure_input=
16756 else
16757 configure_input="$ac_file. "
16758 fi
16759 configure_input=$configure_input"Generated from `echo $ac_file_in |
16760 sed 's,.*/,,'` by configure."
f5818d2f
AJ
16761
16762 # First look for the input files in the build tree, otherwise in the
16763 # src tree.
16764 ac_file_inputs=`IFS=:
16765 for f in $ac_file_in; do
16766 case $f in
16767 -) echo $tmp/stdin ;;
16768 [\\/$]*)
16769 # Absolute (can't be DOS-style, as IFS=:)
daa2886c 16770 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
f5818d2f
AJ
16771echo "$as_me: error: cannot find input file: $f" >&2;}
16772 { (exit 1); exit 1; }; }
16773 echo $f;;
16774 *) # Relative
16775 if test -f "$f"; then
16776 # Build tree
16777 echo $f
16778 elif test -f "$srcdir/$f"; then
16779 # Source tree
16780 echo $srcdir/$f
16781 else
16782 # /dev/null tree
daa2886c 16783 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
f5818d2f
AJ
16784echo "$as_me: error: cannot find input file: $f" >&2;}
16785 { (exit 1); exit 1; }; }
16786 fi;;
16787 esac
16788 done` || { (exit 1); exit 1; }
daa2886c
AJ
16789_ACEOF
16790cat >>$CONFIG_STATUS <<_ACEOF
f5818d2f
AJ
16791 sed "$ac_vpsub
16792$extrasub
daa2886c
AJ
16793_ACEOF
16794cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
16795:t
16796/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16797s,@configure_input@,$configure_input,;t t
16798s,@srcdir@,$ac_srcdir,;t t
daa2886c 16799s,@abs_srcdir@,$ac_abs_srcdir,;t t
f5818d2f 16800s,@top_srcdir@,$ac_top_srcdir,;t t
daa2886c
AJ
16801s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16802s,@builddir@,$ac_builddir,;t t
16803s,@abs_builddir@,$ac_abs_builddir,;t t
16804s,@top_builddir@,$ac_top_builddir,;t t
16805s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
f5818d2f
AJ
16806s,@INSTALL@,$ac_INSTALL,;t t
16807" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16808 rm -f $tmp/stdin
16809 if test x"$ac_file" != x-; then
16810 mv $tmp/out $ac_file
16811 else
16812 cat $tmp/out
16813 rm -f $tmp/out
16814 fi
7e6ae4ba 16815
f5818d2f 16816done
daa2886c
AJ
16817_ACEOF
16818cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
16819
16820#
16821# CONFIG_HEADER section.
16822#
e2991ea7 16823
18f92e76
AJ
16824# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16825# NAME is the cpp macro being defined and VALUE is the value it is being given.
16826#
16827# ac_d sets the value in "#define NAME VALUE" lines.
f5818d2f
AJ
16828ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16829ac_dB='[ ].*$,\1#\2'
16830ac_dC=' '
16831ac_dD=',;t'
16832# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16833ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16834ac_uB='$,\1#\2define\3'
18f92e76 16835ac_uC=' '
f5818d2f
AJ
16836ac_uD=',;t'
16837
16838for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7e6ae4ba 16839 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
f5818d2f
AJ
16840 case $ac_file in
16841 - | *:- | *:-:* ) # input from stdin
16842 cat >$tmp/stdin
16843 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16844 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16845 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16846 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16847 * ) ac_file_in=$ac_file.in ;;
18f92e76
AJ
16848 esac
16849
daa2886c 16850 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
f5818d2f
AJ
16851echo "$as_me: creating $ac_file" >&6;}
16852
16853 # First look for the input files in the build tree, otherwise in the
16854 # src tree.
16855 ac_file_inputs=`IFS=:
16856 for f in $ac_file_in; do
16857 case $f in
16858 -) echo $tmp/stdin ;;
16859 [\\/$]*)
16860 # Absolute (can't be DOS-style, as IFS=:)
daa2886c 16861 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
f5818d2f
AJ
16862echo "$as_me: error: cannot find input file: $f" >&2;}
16863 { (exit 1); exit 1; }; }
16864 echo $f;;
16865 *) # Relative
16866 if test -f "$f"; then
16867 # Build tree
16868 echo $f
16869 elif test -f "$srcdir/$f"; then
16870 # Source tree
16871 echo $srcdir/$f
16872 else
16873 # /dev/null tree
daa2886c 16874 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
f5818d2f
AJ
16875echo "$as_me: error: cannot find input file: $f" >&2;}
16876 { (exit 1); exit 1; }; }
16877 fi;;
16878 esac
16879 done` || { (exit 1); exit 1; }
16880 # Remove the trailing spaces.
16881 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16882
daa2886c 16883_ACEOF
f5818d2f
AJ
16884
16885# Transform confdefs.h into two sed scripts, `conftest.defines' and
16886# `conftest.undefs', that substitutes the proper values into
16887# config.h.in to produce config.h. The first handles `#define'
16888# templates, and the second `#undef' templates.
16889# And first: Protect against being on the right side of a sed subst in
16890# config.status. Protect against being in an unquoted here document
16891# in config.status.
16892rm -f conftest.defines conftest.undefs
16893# Using a here document instead of a string reduces the quoting nightmare.
16894# Putting comments in sed scripts is not portable.
16895#
16896# `end' is used to avoid that the second main sed command (meant for
16897# 0-ary CPP macros) applies to n-ary macro definitions.
16898# See the Autoconf documentation for `clear'.
daa2886c 16899cat >confdef2sed.sed <<\_ACEOF
f5818d2f
AJ
16900s/[\\&,]/\\&/g
16901s,[\\$`],\\&,g
16902t clear
16903: clear
daa2886c 16904s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
f5818d2f
AJ
16905t end
16906s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16907: end
daa2886c 16908_ACEOF
f5818d2f
AJ
16909# If some macros were called several times there might be several times
16910# the same #defines, which is useless. Nevertheless, we may not want to
16911# sort them, since we want the *last* AC-DEFINE to be honored.
16912uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16913sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16914rm -f confdef2sed.sed
18f92e76
AJ
16915
16916# This sed command replaces #undef with comments. This is necessary, for
16917# example, in the case of _POSIX_SOURCE, which is predefined and required
16918# on some systems where configure will not decide to define it.
daa2886c 16919cat >>conftest.undefs <<\_ACEOF
f5818d2f 16920s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
daa2886c 16921_ACEOF
18f92e76 16922
f5818d2f
AJ
16923# Break up conftest.defines because some shells have a limit on the size
16924# of here documents, and old seds have small limits too (100 cmds).
16925echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11af04e3 16926echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
f5818d2f
AJ
16927echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16928echo ' :' >>$CONFIG_STATUS
16929rm -f conftest.tail
16930while grep . conftest.defines >/dev/null
16931do
16932 # Write a limited-size here document to $tmp/defines.sed.
16933 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16934 # Speed up: don't consider the non `#define' lines.
16935 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16936 # Work around the forget-to-reset-the-flag bug.
16937 echo 't clr' >>$CONFIG_STATUS
16938 echo ': clr' >>$CONFIG_STATUS
16939 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16940 echo 'CEOF
16941 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16942 rm -f $tmp/in
16943 mv $tmp/out $tmp/in
16944' >>$CONFIG_STATUS
16945 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16946 rm -f conftest.defines
16947 mv conftest.tail conftest.defines
16948done
16949rm -f conftest.defines
11af04e3 16950echo ' fi # grep' >>$CONFIG_STATUS
f5818d2f 16951echo >>$CONFIG_STATUS
18f92e76 16952
f5818d2f
AJ
16953# Break up conftest.undefs because some shells have a limit on the size
16954# of here documents, and old seds have small limits too (100 cmds).
16955echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18f92e76 16956rm -f conftest.tail
f5818d2f 16957while grep . conftest.undefs >/dev/null
18f92e76 16958do
f5818d2f
AJ
16959 # Write a limited-size here document to $tmp/undefs.sed.
16960 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16961 # Speed up: don't consider the non `#undef'
16962 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16963 # Work around the forget-to-reset-the-flag bug.
16964 echo 't clr' >>$CONFIG_STATUS
16965 echo ': clr' >>$CONFIG_STATUS
16966 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18f92e76 16967 echo 'CEOF
f5818d2f
AJ
16968 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16969 rm -f $tmp/in
16970 mv $tmp/out $tmp/in
16971' >>$CONFIG_STATUS
16972 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16973 rm -f conftest.undefs
16974 mv conftest.tail conftest.undefs
18f92e76 16975done
f5818d2f
AJ
16976rm -f conftest.undefs
16977
daa2886c 16978cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
16979 # Let's still pretend it is `configure' which instantiates (i.e., don't
16980 # use $as_me), people would be surprised to read:
daa2886c 16981 # /* config.h. Generated by config.status. */
f5818d2f 16982 if test x"$ac_file" = x-; then
daa2886c 16983 echo "/* Generated by configure. */" >$tmp/config.h
18f92e76 16984 else
daa2886c 16985 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
f5818d2f
AJ
16986 fi
16987 cat $tmp/in >>$tmp/config.h
16988 rm -f $tmp/in
16989 if test x"$ac_file" != x-; then
e24bcc77 16990 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
daa2886c 16991 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
f5818d2f
AJ
16992echo "$as_me: $ac_file is unchanged" >&6;}
16993 else
daa2886c
AJ
16994 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16995$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f5818d2f
AJ
16996 X"$ac_file" : 'X\(//\)[^/]' \| \
16997 X"$ac_file" : 'X\(//\)$' \| \
16998 X"$ac_file" : 'X\(/\)' \| \
16999 . : '\(.\)' 2>/dev/null ||
17000echo X"$ac_file" |
17001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17002 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17003 /^X\(\/\/\)$/{ s//\1/; q; }
17004 /^X\(\/\).*/{ s//\1/; q; }
17005 s/.*/./; q'`
11af04e3
AJ
17006 { if $as_mkdir_p; then
17007 mkdir -p "$ac_dir"
17008 else
17009 as_dir="$ac_dir"
17010 as_dirs=
17011 while test ! -d "$as_dir"; do
17012 as_dirs="$as_dir $as_dirs"
17013 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17014$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17015 X"$as_dir" : 'X\(//\)[^/]' \| \
17016 X"$as_dir" : 'X\(//\)$' \| \
17017 X"$as_dir" : 'X\(/\)' \| \
17018 . : '\(.\)' 2>/dev/null ||
17019echo X"$as_dir" |
17020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17021 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17022 /^X\(\/\/\)$/{ s//\1/; q; }
17023 /^X\(\/\).*/{ s//\1/; q; }
17024 s/.*/./; q'`
17025 done
17026 test ! -n "$as_dirs" || mkdir $as_dirs
17027 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17028echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17029 { (exit 1); exit 1; }; }; }
f5818d2f 17030
f5818d2f
AJ
17031 rm -f $ac_file
17032 mv $tmp/config.h $ac_file
18f92e76 17033 fi
f5818d2f
AJ
17034 else
17035 cat $tmp/config.h
17036 rm -f $tmp/config.h
18f92e76 17037 fi
f5818d2f 17038done
daa2886c
AJ
17039_ACEOF
17040cat >>$CONFIG_STATUS <<\_ACEOF
18f92e76 17041
f5818d2f
AJ
17042#
17043# CONFIG_COMMANDS section.
17044#
17045for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17046 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17047 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
daa2886c
AJ
17048 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17049$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17050 X"$ac_dest" : 'X\(//\)[^/]' \| \
17051 X"$ac_dest" : 'X\(//\)$' \| \
17052 X"$ac_dest" : 'X\(/\)' \| \
17053 . : '\(.\)' 2>/dev/null ||
17054echo X"$ac_dest" |
17055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17056 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17057 /^X\(\/\/\)$/{ s//\1/; q; }
17058 /^X\(\/\).*/{ s//\1/; q; }
17059 s/.*/./; q'`
17060 ac_builddir=.
f5818d2f 17061
daa2886c
AJ
17062if test "$ac_dir" != .; then
17063 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17064 # A "../" for each directory in $ac_dir_suffix.
17065 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17066else
17067 ac_dir_suffix= ac_top_builddir=
17068fi
17069
17070case $srcdir in
17071 .) # No --srcdir option. We are building in place.
17072 ac_srcdir=.
17073 if test -z "$ac_top_builddir"; then
17074 ac_top_srcdir=.
17075 else
17076 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17077 fi ;;
17078 [\\/]* | ?:[\\/]* ) # Absolute path.
17079 ac_srcdir=$srcdir$ac_dir_suffix;
17080 ac_top_srcdir=$srcdir ;;
17081 *) # Relative path.
17082 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17083 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17084esac
17085# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17086# absolute.
17087ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11af04e3 17088ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
daa2886c
AJ
17089ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17090ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17091
17092
17093 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17094echo "$as_me: executing $ac_dest commands" >&6;}
f5818d2f 17095 case $ac_dest in
9bb05fc4
AJ
17096 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
17097echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
daa2886c 17098 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
f5818d2f 17099echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
daa2886c 17100 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
f5818d2f 17101echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
daa2886c 17102 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
f5818d2f 17103echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
daa2886c 17104 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
f5818d2f 17105echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
daa2886c 17106 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
f5818d2f 17107echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
daa2886c 17108 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
f5818d2f 17109echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
daa2886c 17110 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
f5818d2f 17111echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
daa2886c 17112 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
f5818d2f 17113echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
daa2886c 17114 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
f5818d2f 17115echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
daa2886c 17116 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
89118568 17117echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
daa2886c 17118 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
89118568 17119echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
daa2886c 17120 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
f5818d2f 17121echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
daa2886c 17122 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
f5818d2f 17123echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
daa2886c 17124 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
f5818d2f 17125echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
daa2886c 17126 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
f5818d2f 17127echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
9bb05fc4
AJ
17128 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
17129echo "$as_me: creating files" >&6;} && mkdir "files") ;;
17130 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
17131echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
17132 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
17133echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
17134 if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
17135echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
daa2886c 17136 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
f5818d2f 17137echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
9bb05fc4
AJ
17138 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
17139echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
17140 loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
17141echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
17142 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
17143echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
17144 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
17145echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
17146 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
17147echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
17148 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
17149echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
daa2886c 17150 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
c72f0b21 17151echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
f5aad769
AP
17152 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
17153echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
9bb05fc4
AJ
17154 relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
17155echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
17156 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
17157echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
17158 win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
17159echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
17160 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
17161echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
f5818d2f
AJ
17162 esac
17163done
daa2886c 17164_ACEOF
e2991ea7 17165
daa2886c 17166cat >>$CONFIG_STATUS <<\_ACEOF
87a2f8df 17167
f5818d2f 17168{ (exit 0); exit 0; }
daa2886c 17169_ACEOF
e2991ea7 17170chmod +x $CONFIG_STATUS
f5818d2f
AJ
17171ac_clean_files=$ac_clean_files_save
17172
daa2886c 17173
f5818d2f
AJ
17174# configure is writing to config.log, and then calls config.status.
17175# config.status does its own redirection, appending to config.log.
17176# Unfortunately, on DOS this fails, as config.log is still kept open
17177# by configure, so config.status won't be able to write to it; its
17178# output is simply discarded. So we exec the FD to /dev/null,
17179# effectively closing config.log, so it can be properly (re)opened and
17180# appended to by config.status. When coming back to configure, we
17181# need to make the FD available again.
17182if test "$no_create" != yes; then
17183 ac_cs_success=:
e24bcc77
AJ
17184 ac_config_status_args=
17185 test "$silent" = yes &&
17186 ac_config_status_args="$ac_config_status_args --quiet"
f5818d2f 17187 exec 5>/dev/null
e24bcc77 17188 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
f5818d2f
AJ
17189 exec 5>>config.log
17190 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17191 # would make configure fail if this is the last instruction.
17192 $ac_cs_success || { (exit 1); exit 1; }
17193fi
e2991ea7 17194
daa2886c 17195
8b4431f1
OK
17196if test "$have_x" = "no"
17197then
17198 echo
17199 echo "*** Warning: X development files not found. Wine will be built without"
17200 echo "*** X support, which currently does not work, and would probably not be"
17201 echo "*** what you want anyway. You will need to install devel packages of"
18e4b5e2 17202 echo "*** Xlib/Xfree86 at the very least."
8b4431f1
OK
17203fi
17204
638f169b
AJ
17205if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
17206then
17207 echo
17208 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
17209 echo "*** terminal resize support. Consider upgrading ncurses."
638f169b
AJ
17210fi
17211
f5818d2f 17212if test "$wine_cv_libc_reentrant" = "no"
d30dfd24
AJ
17213then
17214 echo
f5818d2f
AJ
17215 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
17216 echo "*** threading support. Consider upgrading libc to a more recent"
d30dfd24 17217 echo "*** reentrant version of libc."
d30dfd24
AJ
17218fi
17219
867fb9d7
AJ
17220if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
17221then
17222 echo
17223 echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
17224 echo "*** applications won't work properly. You should upgrade your X11 library."
17225fi
17226
bedf40b5 17227if test "$wine_cv_opengl_version_OK" = "no"
5c085704
LU
17228then
17229 echo
17230 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
5eee0bff
LU
17231 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
17232fi
17233
563598d4
IP
17234if test "$wine_cv_msg_freetype" = "yes"
17235then
17236 echo
17237 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
f5818d2f
AJ
17238 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
17239 echo "*** freetype-devel package (or its equivalent on your distribution) to"
17240 echo "*** enable Wine to use TrueType fonts."
563598d4
IP
17241fi
17242
e2991ea7 17243echo
1511bae7 17244echo "Configure finished. Do 'make depend && make' to compile Wine."
e2991ea7
AJ
17245echo
17246