blob: c8e01fac549da542f06a430156a0e145a58ce939 [file] [log] [blame]
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001#! /bin/sh
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002# Guess values for system-dependent variables and create Makefiles.
Alexandre Julliarde8d0f972002-11-01 02:30:46 +00003# Generated by GNU Autoconf 2.54 for Wine 20021031.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004#
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006# Free Software Foundation, Inc.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017 # 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+"$@"}'='"$@"'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22fi
23
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024# 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
Alexandre Julliard11af04e2002-10-10 03:48:04 +000031
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
40do
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
43 else
44 $as_unset $as_var
45 fi
46done
47
48# Required to use basename.
49if expr a : '\(a\)' >/dev/null 2>&1; then
50 as_expr=expr
51else
52 as_expr=false
53fi
54
55if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56 as_basename=basename
57else
58 as_basename=false
59fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000060
61
Alexandre Julliardf5818d22002-02-14 19:47:29 +000062# Name of the executable.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000063as_me=`$as_basename "$0" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000064$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
68echo X/"$0" |
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
72 s/.*/./; q'`
73
Alexandre Julliard11af04e2002-10-10 03:48:04 +000074
Alexandre Julliarddaa28862002-04-11 21:54:01 +000075# PATH needs CR, and LINENO needs CR and PATH.
76# Avoid depending upon Character Ranges.
77as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80as_cr_digits='0123456789'
81as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83# The user is always right.
84if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
Alexandre Julliard11af04e2002-10-10 03:48:04 +000088 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000089 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
92 fi
93 rm -f conftest.sh
94fi
95
96
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107for as_dir in $PATH
108do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112done
113
114 ;;
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
120 fi
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
124 fi
125 case $CONFIG_SHELL in
126 '')
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129do
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
134 /*)
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000143 CONFIG_SHELL=$as_dir/$as_base
144 export CONFIG_SHELL
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146 fi;;
147 esac
148 done
149done
150;;
151 esac
152
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
162 sed '
163 N
164 s,$,-,
165 : loop
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 t loop
168 s,-$,,
169 s,^['$as_cr_digits']*\n,,
170 ' >$as_me.lineno &&
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
174
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
178 . ./$as_me.lineno
179 # Exit status is that of the last command.
180 exit
181}
182
183
184case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
186' ECHO_T=' ' ;;
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000190
191if expr a : '\(a\)' >/dev/null 2>&1; then
192 as_expr=expr
193else
194 as_expr=false
195fi
196
197rm -f conf$$ conf$$.exe conf$$.file
198echo >conf$$.file
199if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
204 as_ln_s='cp -p'
205 else
206 as_ln_s='ln -s'
207 fi
208elif ln conf$$.file conf$$ 2>/dev/null; then
209 as_ln_s=ln
210else
211 as_ln_s='cp -p'
212fi
213rm -f conf$$ conf$$.exe conf$$.file
214
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000215if mkdir -p . 2>/dev/null; then
216 as_mkdir_p=:
217else
218 as_mkdir_p=false
219fi
220
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000221as_executable_p="test -f"
222
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000223# Sed expression to map a string onto a valid CPP name.
224as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000225
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000226# Sed expression to map a string onto a valid variable name.
227as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
228
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000229
230# IFS
231# We need space, tab and new line, in precisely that order.
232as_nl='
233'
234IFS=" $as_nl"
235
236# CDPATH.
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000237$as_unset CDPATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000238
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000239
240# Name of the host.
241# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242# so uname gets run too.
243ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
244
245exec 6>&1
246
247#
248# Initializations.
249#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000250ac_default_prefix=/usr/local
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000251ac_config_libobj_dir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000252cross_compiling=no
253subdirs=
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000254MFLAGS=
255MAKEFLAGS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000256SHELL=${CONFIG_SHELL-/bin/sh}
257
258# Maximum number of lines to put in a shell here document.
259# This variable seems obsolete. It should probably be removed, and
260# only ac_max_sed_lines should be used.
261: ${ac_max_here_lines=38}
262
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000263# Identity of this package.
264PACKAGE_NAME='Wine'
265PACKAGE_TARNAME='wine'
Alexandre Julliarde8d0f972002-11-01 02:30:46 +0000266PACKAGE_VERSION='20021031'
267PACKAGE_STRING='Wine 20021031'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000268PACKAGE_BUGREPORT=''
269
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000270ac_unique_file="server/atom.c"
271# Factoring default headers for most tests.
272ac_includes_default="\
273#include <stdio.h>
274#if HAVE_SYS_TYPES_H
275# include <sys/types.h>
276#endif
277#if HAVE_SYS_STAT_H
278# include <sys/stat.h>
279#endif
280#if STDC_HEADERS
281# include <stdlib.h>
282# include <stddef.h>
283#else
284# if HAVE_STDLIB_H
285# include <stdlib.h>
286# endif
287#endif
288#if HAVE_STRING_H
289# if !STDC_HEADERS && HAVE_MEMORY_H
290# include <memory.h>
291# endif
292# include <string.h>
293#endif
294#if HAVE_STRINGS_H
295# include <strings.h>
296#endif
297#if HAVE_INTTYPES_H
298# include <inttypes.h>
299#else
300# if HAVE_STDINT_H
301# include <stdint.h>
302# endif
303#endif
304#if HAVE_UNISTD_H
305# include <unistd.h>
306#endif"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000307
Vincent Béron1d8cb6e2002-11-23 01:20:02 +0000308ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LIBEXT OPTIONS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S LN C2MAN LDCONFIG LINT LINTFLAGS DB2HTML DB2PDF DB2PS JPEGLIB EGREP XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED DLLWRAP ac_ct_DLLWRAP CROSSTEST CROSSCC DLLTOOL LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS'
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000309ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_PROG_RULES'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000310
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000311# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000312ac_init_help=
313ac_init_version=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000314# The variables have the same names as the options, with
315# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000316cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000317exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000318no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000319no_recursion=
320prefix=NONE
321program_prefix=NONE
322program_suffix=NONE
323program_transform_name=s,x,x,
324silent=
325site=
326srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000327verbose=
328x_includes=NONE
329x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000330
331# Installation directory options.
332# These are left unexpanded so users can "make install exec_prefix=/foo"
333# and all the variables that are supposed to be based on exec_prefix
334# by default will actually change.
335# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000336bindir='${exec_prefix}/bin'
337sbindir='${exec_prefix}/sbin'
338libexecdir='${exec_prefix}/libexec'
339datadir='${prefix}/share'
340sysconfdir='${prefix}/etc'
341sharedstatedir='${prefix}/com'
342localstatedir='${prefix}/var'
343libdir='${exec_prefix}/lib'
344includedir='${prefix}/include'
345oldincludedir='/usr/include'
346infodir='${prefix}/info'
347mandir='${prefix}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000348
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000349ac_prev=
350for ac_option
351do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000352 # If the previous option needs an argument, assign it.
353 if test -n "$ac_prev"; then
354 eval "$ac_prev=\$ac_option"
355 ac_prev=
356 continue
357 fi
358
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000359 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000360
361 # Accept the important Cygnus configure options, so we can diagnose typos.
362
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000363 case $ac_option in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000364
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000365 -bindir | --bindir | --bindi | --bind | --bin | --bi)
366 ac_prev=bindir ;;
367 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000368 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000369
370 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000371 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000372 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000373 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000374
375 -cache-file | --cache-file | --cache-fil | --cache-fi \
376 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
377 ac_prev=cache_file ;;
378 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
379 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000380 cache_file=$ac_optarg ;;
381
382 --config-cache | -C)
383 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000384
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000385 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
386 ac_prev=datadir ;;
387 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
388 | --da=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000389 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000390
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000391 -disable-* | --disable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000392 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000393 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000394 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396 { (exit 1); exit 1; }; }
397 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398 eval "enable_$ac_feature=no" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000399
400 -enable-* | --enable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000401 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000402 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 case $ac_option in
408 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000409 *) ac_optarg=yes ;;
410 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000411 eval "enable_$ac_feature='$ac_optarg'" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000412
413 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
414 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
415 | --exec | --exe | --ex)
416 ac_prev=exec_prefix ;;
417 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
418 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
419 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000420 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000421
422 -gas | --gas | --ga | --g)
423 # Obsolete; use --with-gas.
424 with_gas=yes ;;
425
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000426 -help | --help | --hel | --he | -h)
427 ac_init_help=long ;;
428 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
429 ac_init_help=recursive ;;
430 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
431 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000432
433 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000434 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000435 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000436 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000437
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000438 -includedir | --includedir | --includedi | --included | --include \
439 | --includ | --inclu | --incl | --inc)
440 ac_prev=includedir ;;
441 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
442 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000443 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000444
445 -infodir | --infodir | --infodi | --infod | --info | --inf)
446 ac_prev=infodir ;;
447 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000448 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000449
450 -libdir | --libdir | --libdi | --libd)
451 ac_prev=libdir ;;
452 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000453 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000454
455 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
456 | --libexe | --libex | --libe)
457 ac_prev=libexecdir ;;
458 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
459 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000460 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000461
462 -localstatedir | --localstatedir | --localstatedi | --localstated \
463 | --localstate | --localstat | --localsta | --localst \
464 | --locals | --local | --loca | --loc | --lo)
465 ac_prev=localstatedir ;;
466 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
467 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
468 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000469 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000470
471 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
472 ac_prev=mandir ;;
473 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000474 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000475
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000476 -nfp | --nfp | --nf)
477 # Obsolete; use --without-fp.
478 with_fp=no ;;
479
480 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000481 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000482 no_create=yes ;;
483
484 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
485 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
486 no_recursion=yes ;;
487
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000488 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
489 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
490 | --oldin | --oldi | --old | --ol | --o)
491 ac_prev=oldincludedir ;;
492 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
493 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
494 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000495 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000496
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000497 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
498 ac_prev=prefix ;;
499 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000500 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000501
502 -program-prefix | --program-prefix | --program-prefi | --program-pref \
503 | --program-pre | --program-pr | --program-p)
504 ac_prev=program_prefix ;;
505 -program-prefix=* | --program-prefix=* | --program-prefi=* \
506 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000507 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000508
509 -program-suffix | --program-suffix | --program-suffi | --program-suff \
510 | --program-suf | --program-su | --program-s)
511 ac_prev=program_suffix ;;
512 -program-suffix=* | --program-suffix=* | --program-suffi=* \
513 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000514 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000515
516 -program-transform-name | --program-transform-name \
517 | --program-transform-nam | --program-transform-na \
518 | --program-transform-n | --program-transform- \
519 | --program-transform | --program-transfor \
520 | --program-transfo | --program-transf \
521 | --program-trans | --program-tran \
522 | --progr-tra | --program-tr | --program-t)
523 ac_prev=program_transform_name ;;
524 -program-transform-name=* | --program-transform-name=* \
525 | --program-transform-nam=* | --program-transform-na=* \
526 | --program-transform-n=* | --program-transform-=* \
527 | --program-transform=* | --program-transfor=* \
528 | --program-transfo=* | --program-transf=* \
529 | --program-trans=* | --program-tran=* \
530 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000531 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000532
533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
534 | -silent | --silent | --silen | --sile | --sil)
535 silent=yes ;;
536
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000537 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
538 ac_prev=sbindir ;;
539 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
540 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000541 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000542
543 -sharedstatedir | --sharedstatedir | --sharedstatedi \
544 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
545 | --sharedst | --shareds | --shared | --share | --shar \
546 | --sha | --sh)
547 ac_prev=sharedstatedir ;;
548 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
549 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
550 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
551 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000552 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000553
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000554 -site | --site | --sit)
555 ac_prev=site ;;
556 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000557 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000558
559 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
560 ac_prev=srcdir ;;
561 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000562 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000563
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000564 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
565 | --syscon | --sysco | --sysc | --sys | --sy)
566 ac_prev=sysconfdir ;;
567 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
568 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000569 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000570
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000571 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000572 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000573 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000574 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000575
576 -v | -verbose | --verbose | --verbos | --verbo | --verb)
577 verbose=yes ;;
578
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000579 -version | --version | --versio | --versi | --vers | -V)
580 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000581
582 -with-* | --with-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000583 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000584 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000585 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
586 { echo "$as_me: error: invalid package name: $ac_package" >&2
587 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000588 ac_package=`echo $ac_package| sed 's/-/_/g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000589 case $ac_option in
590 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000591 *) ac_optarg=yes ;;
592 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000593 eval "with_$ac_package='$ac_optarg'" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000594
595 -without-* | --without-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000596 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000597 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000598 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid package name: $ac_package" >&2
600 { (exit 1); exit 1; }; }
601 ac_package=`echo $ac_package | sed 's/-/_/g'`
602 eval "with_$ac_package=no" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000603
604 --x)
605 # Obsolete; use --with-x.
606 with_x=yes ;;
607
608 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
609 | --x-incl | --x-inc | --x-in | --x-i)
610 ac_prev=x_includes ;;
611 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
612 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000613 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000614
615 -x-libraries | --x-libraries | --x-librarie | --x-librari \
616 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
617 ac_prev=x_libraries ;;
618 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
619 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000620 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000621
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000622 -*) { echo "$as_me: error: unrecognized option: $ac_option
623Try \`$0 --help' for more information." >&2
624 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000625 ;;
626
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000627 *=*)
628 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
629 # Reject names that are not valid shell variable names.
630 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
631 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
632 { (exit 1); exit 1; }; }
633 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
634 eval "$ac_envvar='$ac_optarg'"
635 export $ac_envvar ;;
636
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000637 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000638 # FIXME: should be removed in autoconf 3.0.
639 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
640 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
641 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
642 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000643 ;;
644
645 esac
646done
647
648if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000649 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
650 { echo "$as_me: error: missing argument to $ac_option" >&2
651 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000652fi
653
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000654# Be sure to have absolute paths.
655for ac_var in exec_prefix prefix
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000656do
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000657 eval ac_val=$`echo $ac_var`
658 case $ac_val in
659 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000660 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000661 { (exit 1); exit 1; }; };;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000662 esac
663done
664
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000665# Be sure to have absolute paths.
666for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
667 localstatedir libdir includedir oldincludedir infodir mandir
668do
669 eval ac_val=$`echo $ac_var`
670 case $ac_val in
671 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000672 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000673 { (exit 1); exit 1; }; };;
674 esac
675done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000676
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000677# There might be people who depend on the old broken behavior: `$host'
678# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000679# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000680build=$build_alias
681host=$host_alias
682target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000683
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000684# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000685if test "x$host_alias" != x; then
686 if test "x$build_alias" = x; then
687 cross_compiling=maybe
688 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
689 If a cross compiler is detected then cross compile mode will be used." >&2
690 elif test "x$build_alias" != "x$host_alias"; then
691 cross_compiling=yes
692 fi
693fi
694
695ac_tool_prefix=
696test -n "$host_alias" && ac_tool_prefix=$host_alias-
697
698test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000699
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000700
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000701# Find the source files, if location was not specified.
702if test -z "$srcdir"; then
703 ac_srcdir_defaulted=yes
704 # Try the directory containing this script, then its parent.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000705 ac_confdir=`(dirname "$0") 2>/dev/null ||
706$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
707 X"$0" : 'X\(//\)[^/]' \| \
708 X"$0" : 'X\(//\)$' \| \
709 X"$0" : 'X\(/\)' \| \
710 . : '\(.\)' 2>/dev/null ||
711echo X"$0" |
712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
714 /^X\(\/\/\)$/{ s//\1/; q; }
715 /^X\(\/\).*/{ s//\1/; q; }
716 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000717 srcdir=$ac_confdir
718 if test ! -r $srcdir/$ac_unique_file; then
719 srcdir=..
720 fi
721else
722 ac_srcdir_defaulted=no
723fi
724if test ! -r $srcdir/$ac_unique_file; then
725 if test "$ac_srcdir_defaulted" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000726 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000727 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000728 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000730 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000731 fi
732fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000733(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
734 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
735 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000736srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
737ac_env_build_alias_set=${build_alias+set}
738ac_env_build_alias_value=$build_alias
739ac_cv_env_build_alias_set=${build_alias+set}
740ac_cv_env_build_alias_value=$build_alias
741ac_env_host_alias_set=${host_alias+set}
742ac_env_host_alias_value=$host_alias
743ac_cv_env_host_alias_set=${host_alias+set}
744ac_cv_env_host_alias_value=$host_alias
745ac_env_target_alias_set=${target_alias+set}
746ac_env_target_alias_value=$target_alias
747ac_cv_env_target_alias_set=${target_alias+set}
748ac_cv_env_target_alias_value=$target_alias
749ac_env_CC_set=${CC+set}
750ac_env_CC_value=$CC
751ac_cv_env_CC_set=${CC+set}
752ac_cv_env_CC_value=$CC
753ac_env_CFLAGS_set=${CFLAGS+set}
754ac_env_CFLAGS_value=$CFLAGS
755ac_cv_env_CFLAGS_set=${CFLAGS+set}
756ac_cv_env_CFLAGS_value=$CFLAGS
757ac_env_LDFLAGS_set=${LDFLAGS+set}
758ac_env_LDFLAGS_value=$LDFLAGS
759ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
760ac_cv_env_LDFLAGS_value=$LDFLAGS
761ac_env_CPPFLAGS_set=${CPPFLAGS+set}
762ac_env_CPPFLAGS_value=$CPPFLAGS
763ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
764ac_cv_env_CPPFLAGS_value=$CPPFLAGS
765ac_env_CPP_set=${CPP+set}
766ac_env_CPP_value=$CPP
767ac_cv_env_CPP_set=${CPP+set}
768ac_cv_env_CPP_value=$CPP
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000769
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000770#
771# Report the --help message.
772#
773if test "$ac_init_help" = "long"; then
774 # Omit some internal or obsolete options to make the list less imposing.
775 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000776 cat <<_ACEOF
Alexandre Julliarde8d0f972002-11-01 02:30:46 +0000777\`configure' configures Wine 20021031 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000778
779Usage: $0 [OPTION]... [VAR=VALUE]...
780
781To assign environment variables (e.g., CC, CFLAGS...), specify them as
782VAR=VALUE. See below for descriptions of some of the useful variables.
783
784Defaults for the options are specified in brackets.
785
786Configuration:
787 -h, --help display this help and exit
788 --help=short display options specific to this package
789 --help=recursive display the short help of all the included packages
790 -V, --version display version information and exit
791 -q, --quiet, --silent do not print \`checking...' messages
792 --cache-file=FILE cache test results in FILE [disabled]
793 -C, --config-cache alias for \`--cache-file=config.cache'
794 -n, --no-create do not create output files
795 --srcdir=DIR find the sources in DIR [configure dir or \`..']
796
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000797_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000798
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000799 cat <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000800Installation directories:
801 --prefix=PREFIX install architecture-independent files in PREFIX
802 [$ac_default_prefix]
803 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
804 [PREFIX]
805
806By default, \`make install' will install all the files in
807\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
808an installation prefix other than \`$ac_default_prefix' using \`--prefix',
809for instance \`--prefix=\$HOME'.
810
811For better control, use the options below.
812
813Fine tuning of the installation directories:
814 --bindir=DIR user executables [EPREFIX/bin]
815 --sbindir=DIR system admin executables [EPREFIX/sbin]
816 --libexecdir=DIR program executables [EPREFIX/libexec]
817 --datadir=DIR read-only architecture-independent data [PREFIX/share]
818 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
819 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
820 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
821 --libdir=DIR object code libraries [EPREFIX/lib]
822 --includedir=DIR C header files [PREFIX/include]
823 --oldincludedir=DIR C header files for non-gcc [/usr/include]
824 --infodir=DIR info documentation [PREFIX/info]
825 --mandir=DIR man documentation [PREFIX/man]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000826_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000827
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000828 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000829
830X features:
831 --x-includes=DIR X include files are in DIR
832 --x-libraries=DIR X library files are in DIR
833
834System types:
835 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000837_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000838fi
839
840if test -n "$ac_init_help"; then
841 case $ac_init_help in
Alexandre Julliarde8d0f972002-11-01 02:30:46 +0000842 short | recursive ) echo "Configuration of Wine 20021031:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000843 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000844 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000845
846Optional Features:
847 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
848 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Alexandre Julliardc728efc2002-10-02 02:34:09 +0000849 --disable-win16 do not include Win16 support
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000850 --disable-debug compile out all debugging messages
851 --disable-trace compile out TRACE messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000852
853Optional Packages:
854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Alexandre Julliardb8074992002-11-21 21:51:24 +0000856 --without-opengl do not use OpenGL
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000857 --without-curses do not use curses
Alexandre Julliardfc01b722002-05-12 03:16:39 +0000858 --with-wine-tools=<dir> use Wine tools from directory <dir>
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000859 --with-x use the X Window System
860
861Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
868 CPP C preprocessor
869
870Use these variables to override the choices made by `configure' or to help
871it to find libraries and programs with nonstandard names/locations.
872
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000873_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000874fi
875
876if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
878 ac_popdir=`pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
881 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000882
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000883if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887else
888 ac_dir_suffix= ac_top_builddir=
889fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000890
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000891case $srcdir in
892 .) # No --srcdir option. We are building in place.
893 ac_srcdir=.
894 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=.
896 else
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 fi ;;
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
902 *) # Relative path.
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
905esac
906# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
907# absolute.
908ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000909ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000910ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
911ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
912
913 cd $ac_dir
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000914 # Check for guested configure; otherwise get Cygnus style configure.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000915 if test -f $ac_srcdir/configure.gnu; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000916 echo
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000917 $SHELL $ac_srcdir/configure.gnu --help=recursive
918 elif test -f $ac_srcdir/configure; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000919 echo
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000920 $SHELL $ac_srcdir/configure --help=recursive
921 elif test -f $ac_srcdir/configure.ac ||
922 test -f $ac_srcdir/configure.in; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000923 echo
924 $ac_configure --help
925 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000926 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000927 fi
928 cd $ac_popdir
929 done
930fi
931
932test -n "$ac_init_help" && exit 0
933if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000934 cat <<\_ACEOF
Alexandre Julliarde8d0f972002-11-01 02:30:46 +0000935Wine configure 20021031
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000936generated by GNU Autoconf 2.54
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000937
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000938Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000939Free Software Foundation, Inc.
940This configure script is free software; the Free Software Foundation
941gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000942_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000943 exit 0
944fi
945exec 5>config.log
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000946cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000947This file contains any messages produced by compilers while
948running configure, to aid debugging if configure makes a mistake.
949
Alexandre Julliarde8d0f972002-11-01 02:30:46 +0000950It was created by Wine $as_me 20021031, which was
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000951generated by GNU Autoconf 2.54. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000952
953 $ $0 $@
954
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000955_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000956{
957cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000958## --------- ##
959## Platform. ##
960## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000961
962hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
963uname -m = `(uname -m) 2>/dev/null || echo unknown`
964uname -r = `(uname -r) 2>/dev/null || echo unknown`
965uname -s = `(uname -s) 2>/dev/null || echo unknown`
966uname -v = `(uname -v) 2>/dev/null || echo unknown`
967
968/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
969/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
970
971/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
972/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
973/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
974hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
975/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
976/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
977/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
978
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000979_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000980
981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
982for as_dir in $PATH
983do
984 IFS=$as_save_IFS
985 test -z "$as_dir" && as_dir=.
986 echo "PATH: $as_dir"
987done
988
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000989} >&5
990
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000991cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000992
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000993
994## ----------- ##
995## Core tests. ##
996## ----------- ##
997
998_ACEOF
999
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001000
1001# Keep a trace of the command line.
1002# Strip out --no-create and --no-recursion so they do not pile up.
1003# Also quote any args containing shell meta-characters.
1004ac_configure_args=
1005ac_sep=
1006for ac_arg
1007do
1008 case $ac_arg in
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001010 | --no-cr | --no-c | -n ) continue ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 continue ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001014 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001015 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1016 esac
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001017 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001018 # Get rid of the leading space.
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001019 ac_sep=" "
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001020done
1021
1022# When interrupted or exit'd, cleanup temporary files, and complete
1023# config.log. We remove comments because anyway the quotes in there
1024# would cause problems or look ugly.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001025# WARNING: Be sure not to use single quotes in there, as some shells,
1026# such as our DU 5.0 friend, will then `close' the trap.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001027trap 'exit_status=$?
1028 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001029 {
1030 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001031
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001032 cat <<\_ASBOX
1033## ---------------- ##
1034## Cache variables. ##
1035## ---------------- ##
1036_ASBOX
1037 echo
1038 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001039{
1040 (set) 2>&1 |
1041 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1042 *ac_space=\ *)
1043 sed -n \
1044 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1046 ;;
1047 *)
1048 sed -n \
1049 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1050 ;;
1051 esac;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001052}
1053 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001054
1055 cat <<\_ASBOX
1056## ----------------- ##
1057## Output variables. ##
1058## ----------------- ##
1059_ASBOX
1060 echo
1061 for ac_var in $ac_subst_vars
1062 do
1063 eval ac_val=$`echo $ac_var`
1064 echo "$ac_var='"'"'$ac_val'"'"'"
1065 done | sort
1066 echo
1067
1068 if test -n "$ac_subst_files"; then
1069 cat <<\_ASBOX
1070## ------------- ##
1071## Output files. ##
1072## ------------- ##
1073_ASBOX
1074 echo
1075 for ac_var in $ac_subst_files
1076 do
1077 eval ac_val=$`echo $ac_var`
1078 echo "$ac_var='"'"'$ac_val'"'"'"
1079 done | sort
1080 echo
1081 fi
1082
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001083 if test -s confdefs.h; then
1084 cat <<\_ASBOX
1085## ----------- ##
1086## confdefs.h. ##
1087## ----------- ##
1088_ASBOX
1089 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001090 sed "/^$/d" confdefs.h | sort
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001091 echo
1092 fi
1093 test "$ac_signal" != 0 &&
1094 echo "$as_me: caught signal $ac_signal"
1095 echo "$as_me: exit $exit_status"
1096 } >&5
1097 rm -f core core.* *.core &&
1098 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001099 exit $exit_status
1100 ' 0
1101for ac_signal in 1 2 13 15; do
1102 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1103done
1104ac_signal=0
1105
1106# confdefs.h avoids OS command line length limits that DEFS can exceed.
1107rm -rf conftest* confdefs.h
1108# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1109echo >confdefs.h
1110
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001111# Predefined preprocessor variables.
1112
1113cat >>confdefs.h <<_ACEOF
1114#define PACKAGE_NAME "$PACKAGE_NAME"
1115_ACEOF
1116
1117
1118cat >>confdefs.h <<_ACEOF
1119#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1120_ACEOF
1121
1122
1123cat >>confdefs.h <<_ACEOF
1124#define PACKAGE_VERSION "$PACKAGE_VERSION"
1125_ACEOF
1126
1127
1128cat >>confdefs.h <<_ACEOF
1129#define PACKAGE_STRING "$PACKAGE_STRING"
1130_ACEOF
1131
1132
1133cat >>confdefs.h <<_ACEOF
1134#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1135_ACEOF
1136
1137
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001138# Let the site file select an alternate cache file if it wants to.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001139# Prefer explicitly selected file to automatically selected ones.
1140if test -z "$CONFIG_SITE"; then
1141 if test "x$prefix" != xNONE; then
1142 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1143 else
1144 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1145 fi
1146fi
1147for ac_site_file in $CONFIG_SITE; do
1148 if test -r "$ac_site_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001149 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001150echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001151 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001152 . "$ac_site_file"
1153 fi
1154done
1155
1156if test -r "$cache_file"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001157 # Some versions of bash will fail to source /dev/null (special
1158 # files actually), so we avoid doing that.
1159 if test -f "$cache_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001160 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001161echo "$as_me: loading cache $cache_file" >&6;}
1162 case $cache_file in
1163 [\\/]* | ?:[\\/]* ) . $cache_file;;
1164 *) . ./$cache_file;;
1165 esac
1166 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001167else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001168 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001169echo "$as_me: creating cache $cache_file" >&6;}
1170 >$cache_file
1171fi
1172
1173# Check that the precious variables saved in the cache have kept the same
1174# value.
1175ac_cache_corrupted=false
1176for ac_var in `(set) 2>&1 |
1177 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1178 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1179 eval ac_new_set=\$ac_env_${ac_var}_set
1180 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1181 eval ac_new_val="\$ac_env_${ac_var}_value"
1182 case $ac_old_set,$ac_new_set in
1183 set,)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001184 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001185echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1186 ac_cache_corrupted=: ;;
1187 ,set)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001188 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001189echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1190 ac_cache_corrupted=: ;;
1191 ,);;
1192 *)
1193 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001194 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001195echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001196 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001197echo "$as_me: former value: $ac_old_val" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001198 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001199echo "$as_me: current value: $ac_new_val" >&2;}
1200 ac_cache_corrupted=:
1201 fi;;
1202 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001203 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001204 if test "$ac_new_set" = set; then
1205 case $ac_new_val in
1206 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001207 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1208 *) ac_arg=$ac_var=$ac_new_val ;;
1209 esac
1210 case " $ac_configure_args " in
1211 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1212 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001213 esac
1214 fi
1215done
1216if $ac_cache_corrupted; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001217 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001218echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001219 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001220echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1221 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001222fi
1223
1224ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001225ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1228ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001229
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001255
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001256
1257 ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001258
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001259ac_aux_dir=
1260for ac_dir in tools $srcdir/tools; do
1261 if test -f $ac_dir/install-sh; then
1262 ac_aux_dir=$ac_dir
1263 ac_install_sh="$ac_aux_dir/install-sh -c"
1264 break
1265 elif test -f $ac_dir/install.sh; then
1266 ac_aux_dir=$ac_dir
1267 ac_install_sh="$ac_aux_dir/install.sh -c"
1268 break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001269 elif test -f $ac_dir/shtool; then
1270 ac_aux_dir=$ac_dir
1271 ac_install_sh="$ac_aux_dir/shtool install -c"
1272 break
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001273 fi
1274done
1275if test -z "$ac_aux_dir"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001276 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001277echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1278 { (exit 1); exit 1; }; }
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001279fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001280ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1281ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1282ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Howard Abrams13277481999-07-10 13:16:29 +00001283
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001284
1285
Alexandre Julliard7bf07d12002-08-03 00:25:59 +00001286LIBEXT="so"
1287
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001288
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001289# Check whether --enable-win16 or --disable-win16 was given.
1290if test "${enable_win16+set}" = set; then
1291 enableval="$enable_win16"
1292
1293fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001294# Check whether --enable-debug or --disable-debug was given.
1295if test "${enable_debug+set}" = set; then
1296 enableval="$enable_debug"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001297
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001298fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001299# Check whether --enable-trace or --disable-trace was given.
1300if test "${enable_trace+set}" = set; then
1301 enableval="$enable_trace"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001302
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001303fi;
Alexandre Julliardb8074992002-11-21 21:51:24 +00001304
1305
1306# Check whether --with-opengl or --without-opengl was given.
1307if test "${with_opengl+set}" = set; then
1308 withval="$with_opengl"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001309
1310fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001311
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001312# Check whether --with-curses or --without-curses was given.
1313if test "${with_curses+set}" = set; then
1314 withval="$with_curses"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001315
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001316fi;
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001317
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001318# Check whether --with-wine-tools or --without-wine-tools was given.
1319if test "${with_wine_tools+set}" = set; then
1320 withval="$with_wine_tools"
1321
1322fi;
1323
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001324
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001325WIN16_FILES="\$(WIN16_FILES)"
1326
1327WIN16_INSTALL="\$(WIN16_INSTALL)"
1328
1329if test "x$enable_win16" = "xno"
1330then
1331 WIN16_FILES=""
1332 WIN16_INSTALL=""
1333fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001334if test "x$enable_debug" = "xno"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001335then
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001336
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001337cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001338#define NO_DEBUG_MSGS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001339_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001340
1341fi
1342if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001343then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001344
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001345cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001346#define NO_TRACE_MSGS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001347_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001348
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001349fi
1350
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001351
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001352# Make sure we can run config.sub.
1353$ac_config_sub sun4 >/dev/null 2>&1 ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001354 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001355echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1356 { (exit 1); exit 1; }; }
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001357
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001358echo "$as_me:$LINENO: checking build system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001359echo $ECHO_N "checking build system type... $ECHO_C" >&6
1360if test "${ac_cv_build+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001362else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001363 ac_cv_build_alias=$build_alias
1364test -z "$ac_cv_build_alias" &&
1365 ac_cv_build_alias=`$ac_config_guess`
1366test -z "$ac_cv_build_alias" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001367 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001368echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1369 { (exit 1); exit 1; }; }
1370ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001371 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1372echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001373 { (exit 1); exit 1; }; }
1374
1375fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001376echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001377echo "${ECHO_T}$ac_cv_build" >&6
1378build=$ac_cv_build
1379build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1382
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001383
1384echo "$as_me:$LINENO: checking host system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001385echo $ECHO_N "checking host system type... $ECHO_C" >&6
1386if test "${ac_cv_host+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1388else
1389 ac_cv_host_alias=$host_alias
1390test -z "$ac_cv_host_alias" &&
1391 ac_cv_host_alias=$ac_cv_build_alias
1392ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001393 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001394echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1395 { (exit 1); exit 1; }; }
1396
1397fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001398echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001399echo "${ECHO_T}$ac_cv_host" >&6
1400host=$ac_cv_host
1401host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1404
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001405
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001406echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001407echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1408set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1409if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1411else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001412 cat >conftest.make <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001413all:
1414 @echo 'ac_maketemp="${MAKE}"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001415_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001416# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001417eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001418if test -n "$ac_maketemp"; then
1419 eval ac_cv_prog_make_${ac_make}_set=yes
1420else
1421 eval ac_cv_prog_make_${ac_make}_set=no
1422fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001423rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001424fi
1425if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001426 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001427echo "${ECHO_T}yes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001428 SET_MAKE=
1429else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001430 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001431echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001432 SET_MAKE="MAKE=${MAKE-make}"
1433fi
1434
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001435ac_ext=c
1436ac_cpp='$CPP $CPPFLAGS'
1437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1439ac_compiler_gnu=$ac_cv_c_compiler_gnu
1440if test -n "$ac_tool_prefix"; then
1441 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1442set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001443echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445if test "${ac_cv_prog_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001447else
1448 if test -n "$CC"; then
1449 ac_cv_prog_CC="$CC" # Let the user override the test.
1450else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452for as_dir in $PATH
1453do
1454 IFS=$as_save_IFS
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460 break 2
1461 fi
1462done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001463done
1464
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001465fi
1466fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001467CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001468if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001469 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001470echo "${ECHO_T}$CC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001471else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001472 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001473echo "${ECHO_T}no" >&6
1474fi
1475
1476fi
1477if test -z "$ac_cv_prog_CC"; then
1478 ac_ct_CC=$CC
1479 # Extract the first word of "gcc", so it can be a program name with args.
1480set dummy gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001481echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1485else
1486 if test -n "$ac_ct_CC"; then
1487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1488else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490for as_dir in $PATH
1491do
1492 IFS=$as_save_IFS
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496 ac_cv_prog_ac_ct_CC="gcc"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 break 2
1499 fi
1500done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001501done
1502
1503fi
1504fi
1505ac_ct_CC=$ac_cv_prog_ac_ct_CC
1506if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001507 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001508echo "${ECHO_T}$ac_ct_CC" >&6
1509else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001510 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001511echo "${ECHO_T}no" >&6
1512fi
1513
1514 CC=$ac_ct_CC
1515else
1516 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001517fi
1518
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001519if test -z "$CC"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001520 if test -n "$ac_tool_prefix"; then
1521 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1522set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001523echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525if test "${ac_cv_prog_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001527else
1528 if test -n "$CC"; then
1529 ac_cv_prog_CC="$CC" # Let the user override the test.
1530else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532for as_dir in $PATH
1533do
1534 IFS=$as_save_IFS
1535 test -z "$as_dir" && as_dir=.
1536 for ac_exec_ext in '' $ac_executable_extensions; do
1537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538 ac_cv_prog_CC="${ac_tool_prefix}cc"
1539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540 break 2
1541 fi
1542done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001543done
1544
1545fi
1546fi
1547CC=$ac_cv_prog_CC
1548if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001549 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001550echo "${ECHO_T}$CC" >&6
1551else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001552 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001553echo "${ECHO_T}no" >&6
1554fi
1555
1556fi
1557if test -z "$ac_cv_prog_CC"; then
1558 ac_ct_CC=$CC
1559 # Extract the first word of "cc", so it can be a program name with args.
1560set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001561echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1565else
1566 if test -n "$ac_ct_CC"; then
1567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1568else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570for as_dir in $PATH
1571do
1572 IFS=$as_save_IFS
1573 test -z "$as_dir" && as_dir=.
1574 for ac_exec_ext in '' $ac_executable_extensions; do
1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576 ac_cv_prog_ac_ct_CC="cc"
1577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 break 2
1579 fi
1580done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001581done
1582
1583fi
1584fi
1585ac_ct_CC=$ac_cv_prog_ac_ct_CC
1586if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001587 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001588echo "${ECHO_T}$ac_ct_CC" >&6
1589else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001590 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001591echo "${ECHO_T}no" >&6
1592fi
1593
1594 CC=$ac_ct_CC
1595else
1596 CC="$ac_cv_prog_CC"
1597fi
1598
1599fi
1600if test -z "$CC"; then
1601 # Extract the first word of "cc", so it can be a program name with args.
1602set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001603echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605if test "${ac_cv_prog_CC+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607else
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1610else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001611 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613for as_dir in $PATH
1614do
1615 IFS=$as_save_IFS
1616 test -z "$as_dir" && as_dir=.
1617 for ac_exec_ext in '' $ac_executable_extensions; do
1618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1619 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1620 ac_prog_rejected=yes
1621 continue
1622 fi
1623 ac_cv_prog_CC="cc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 break 2
1626 fi
1627done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001628done
1629
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001630if test $ac_prog_rejected = yes; then
1631 # We found a bogon in the path, so make sure we never use it.
1632 set dummy $ac_cv_prog_CC
1633 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001634 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001635 # We chose a different compiler from the bogus one.
1636 # However, it has the same basename, so the bogon will be chosen
1637 # first if we set CC to just the basename; use the full file name.
1638 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001639 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001640 fi
1641fi
1642fi
1643fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001644CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001645if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001646 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001647echo "${ECHO_T}$CC" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001648else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001649 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001650echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001651fi
1652
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001653fi
1654if test -z "$CC"; then
1655 if test -n "$ac_tool_prefix"; then
1656 for ac_prog in cl
1657 do
1658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1659set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001660echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662if test "${ac_cv_prog_CC+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001664else
1665 if test -n "$CC"; then
1666 ac_cv_prog_CC="$CC" # Let the user override the test.
1667else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669for as_dir in $PATH
1670do
1671 IFS=$as_save_IFS
1672 test -z "$as_dir" && as_dir=.
1673 for ac_exec_ext in '' $ac_executable_extensions; do
1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 break 2
1678 fi
1679done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001680done
1681
Eric Pouech18ad24a2000-01-16 22:16:33 +00001682fi
1683fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001684CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00001685if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001686 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001687echo "${ECHO_T}$CC" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001688else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001689 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001690echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001691fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001692
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001693 test -n "$CC" && break
1694 done
1695fi
1696if test -z "$CC"; then
1697 ac_ct_CC=$CC
1698 for ac_prog in cl
1699do
1700 # Extract the first word of "$ac_prog", so it can be a program name with args.
1701set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001702echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706else
1707 if test -n "$ac_ct_CC"; then
1708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1709else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711for as_dir in $PATH
1712do
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 for ac_exec_ext in '' $ac_executable_extensions; do
1716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717 ac_cv_prog_ac_ct_CC="$ac_prog"
1718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719 break 2
1720 fi
1721done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001722done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001723
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001724fi
1725fi
1726ac_ct_CC=$ac_cv_prog_ac_ct_CC
1727if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001728 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001729echo "${ECHO_T}$ac_ct_CC" >&6
1730else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001731 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001732echo "${ECHO_T}no" >&6
1733fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001734
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001735 test -n "$ac_ct_CC" && break
1736done
Eric Pouech18ad24a2000-01-16 22:16:33 +00001737
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001738 CC=$ac_ct_CC
1739fi
1740
1741fi
1742
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001743
1744test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1745echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001746 { (exit 1); exit 1; }; }
1747
1748# Provide some information about the compiler.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001749echo "$as_me:$LINENO:" \
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001750 "checking for C compiler version" >&5
1751ac_compiler=`set X $ac_compile; echo $2`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001752{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001753 (eval $ac_compiler --version </dev/null >&5) 2>&5
1754 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001756 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001757{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001758 (eval $ac_compiler -v </dev/null >&5) 2>&5
1759 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001761 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001762{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001763 (eval $ac_compiler -V </dev/null >&5) 2>&5
1764 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001766 (exit $ac_status); }
1767
1768cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001769#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001770#include "confdefs.h"
Eric Pouech18ad24a2000-01-16 22:16:33 +00001771
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001772int
1773main ()
1774{
1775
1776 ;
1777 return 0;
1778}
1779_ACEOF
1780ac_clean_files_save=$ac_clean_files
1781ac_clean_files="$ac_clean_files a.out a.exe"
1782# Try to create an executable without -o first, disregard a.out.
1783# It will help us diagnose broken compilers, and finding out an intuition
1784# of exeext.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001785echo "$as_me:$LINENO: checking for C compiler default output" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001786echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1787ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001788if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001789 (eval $ac_link_default) 2>&5
1790 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001792 (exit $ac_status); }; then
1793 # Find the output, starting from the most likely. This scheme is
1794# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1795# resort.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001796
1797# Be careful to initialize this variable, since it used to be cached.
1798# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799ac_cv_exeext=
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001800for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1801 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001802 case $ac_file in
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001804 a.out ) # We found the default executable, but exeext='' is most
1805 # certainly right.
1806 break;;
1807 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1808 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1809 export ac_cv_exeext
1810 break;;
1811 * ) break;;
1812 esac
1813done
1814else
1815 echo "$as_me: failed program was:" >&5
1816cat conftest.$ac_ext >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001817{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1818check \`config.log' for details." >&5
1819echo "$as_me: error: C compiler cannot create executables
1820check \`config.log' for details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001821 { (exit 77); exit 77; }; }
1822fi
1823
1824ac_exeext=$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001825echo "$as_me:$LINENO: result: $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001826echo "${ECHO_T}$ac_file" >&6
1827
1828# Check the compiler produces executables we can run. If not, either
1829# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001830echo "$as_me:$LINENO: checking whether the C compiler works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001831echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1832# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1833# If not cross compiling, check that we can run a simple program.
1834if test "$cross_compiling" != yes; then
1835 if { ac_try='./$ac_file'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001837 (eval $ac_try) 2>&5
1838 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001840 (exit $ac_status); }; }; then
1841 cross_compiling=no
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001842 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001843 if test "$cross_compiling" = maybe; then
1844 cross_compiling=yes
1845 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001846 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001847If you meant to cross compile, use \`--host'." >&5
1848echo "$as_me: error: cannot run C compiled programs.
1849If you meant to cross compile, use \`--host'." >&2;}
1850 { (exit 1); exit 1; }; }
1851 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001852 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001853fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001854echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001855echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001856
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001857rm -f a.out a.exe conftest$ac_cv_exeext
1858ac_clean_files=$ac_clean_files_save
1859# Check the compiler produces executables we can run. If not, either
1860# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001861echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001862echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001863echo "$as_me:$LINENO: result: $cross_compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001864echo "${ECHO_T}$cross_compiling" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001865
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001866echo "$as_me:$LINENO: checking for suffix of executables" >&5
1867echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001869 (eval $ac_link) 2>&5
1870 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001872 (exit $ac_status); }; then
1873 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1874# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1875# work properly (i.e., refer to `conftest.exe'), while it won't with
1876# `rm'.
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001877for ac_file in conftest.exe conftest conftest.*; do
1878 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001879 case $ac_file in
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001881 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1882 export ac_cv_exeext
1883 break;;
1884 * ) break;;
1885 esac
1886done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001887else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001888 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1889echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001890 { (exit 1); exit 1; }; }
1891fi
1892
1893rm -f conftest$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001894echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001895echo "${ECHO_T}$ac_cv_exeext" >&6
1896
1897rm -f conftest.$ac_ext
1898EXEEXT=$ac_cv_exeext
1899ac_exeext=$EXEEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001900echo "$as_me:$LINENO: checking for suffix of object files" >&5
1901echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001902if test "${ac_cv_objext+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1904else
1905 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001906#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001907#include "confdefs.h"
1908
1909int
1910main ()
1911{
1912
1913 ;
1914 return 0;
1915}
1916_ACEOF
1917rm -f conftest.o conftest.obj
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001919 (eval $ac_compile) 2>&5
1920 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001922 (exit $ac_status); }; then
1923 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1924 case $ac_file in
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001926 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1927 break;;
1928 esac
1929done
1930else
1931 echo "$as_me: failed program was:" >&5
1932cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001933{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1934echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001935 { (exit 1); exit 1; }; }
1936fi
1937
1938rm -f conftest.$ac_cv_objext conftest.$ac_ext
1939fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001940echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001941echo "${ECHO_T}$ac_cv_objext" >&6
1942OBJEXT=$ac_cv_objext
1943ac_objext=$OBJEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001944echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001945echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1946if test "${ac_cv_c_compiler_gnu+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1948else
1949 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001950#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001951#include "confdefs.h"
1952
1953int
1954main ()
1955{
1956#ifndef __GNUC__
1957 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001958#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001959
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001960 ;
1961 return 0;
1962}
1963_ACEOF
1964rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001966 (eval $ac_compile) 2>&5
1967 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001969 (exit $ac_status); } &&
1970 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001972 (eval $ac_try) 2>&5
1973 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001975 (exit $ac_status); }; }; then
1976 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00001977else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001978 echo "$as_me: failed program was:" >&5
1979cat conftest.$ac_ext >&5
1980ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00001981fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001982rm -f conftest.$ac_objext conftest.$ac_ext
1983ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00001984
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001985fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001986echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001987echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1988GCC=`test $ac_compiler_gnu = yes && echo yes`
1989ac_test_CFLAGS=${CFLAGS+set}
1990ac_save_CFLAGS=$CFLAGS
1991CFLAGS="-g"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001992echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001993echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1994if test "${ac_cv_prog_cc_g+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001996else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001997 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001998#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001999#include "confdefs.h"
2000
2001int
2002main ()
2003{
2004
2005 ;
2006 return 0;
2007}
2008_ACEOF
2009rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002011 (eval $ac_compile) 2>&5
2012 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002014 (exit $ac_status); } &&
2015 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002017 (eval $ac_try) 2>&5
2018 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002020 (exit $ac_status); }; }; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002021 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002022else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002023 echo "$as_me: failed program was:" >&5
2024cat conftest.$ac_ext >&5
2025ac_cv_prog_cc_g=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002026fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002027rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002028fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002029echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002030echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00002031if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002032 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00002033elif test $ac_cv_prog_cc_g = yes; then
2034 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002035 CFLAGS="-g -O2"
2036 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002037 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002038 fi
2039else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002040 if test "$GCC" = yes; then
2041 CFLAGS="-O2"
2042 else
2043 CFLAGS=
2044 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002045fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002046echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2047echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2048if test "${ac_cv_prog_cc_stdc+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050else
2051 ac_cv_prog_cc_stdc=no
2052ac_save_CC=$CC
2053cat >conftest.$ac_ext <<_ACEOF
2054#line $LINENO "configure"
2055#include "confdefs.h"
2056#include <stdarg.h>
2057#include <stdio.h>
2058#include <sys/types.h>
2059#include <sys/stat.h>
2060/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2061struct buf { int x; };
2062FILE * (*rcsopen) (struct buf *, struct stat *, int);
2063static char *e (p, i)
2064 char **p;
2065 int i;
2066{
2067 return p[i];
2068}
2069static char *f (char * (*g) (char **, int), char **p, ...)
2070{
2071 char *s;
2072 va_list v;
2073 va_start (v,p);
2074 s = g (p, va_arg (v,int));
2075 va_end (v);
2076 return s;
2077}
2078int test (int i, double x);
2079struct s1 {int (*f) (int a);};
2080struct s2 {int (*f) (double a);};
2081int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2082int argc;
2083char **argv;
2084int
2085main ()
2086{
2087return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2088 ;
2089 return 0;
2090}
2091_ACEOF
2092# Don't try gcc -ansi; that turns off useful extensions and
2093# breaks some systems' header files.
2094# AIX -qlanglvl=ansi
2095# Ultrix and OSF/1 -std1
2096# HP-UX 10.20 and later -Ae
2097# HP-UX older versions -Aa -D_HPUX_SOURCE
2098# SVR4 -Xc -D__EXTENSIONS__
2099for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2100do
2101 CC="$ac_save_CC $ac_arg"
2102 rm -f conftest.$ac_objext
2103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2104 (eval $ac_compile) 2>&5
2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); } &&
2108 { ac_try='test -s conftest.$ac_objext'
2109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110 (eval $ac_try) 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; }; then
2114 ac_cv_prog_cc_stdc=$ac_arg
2115break
2116else
2117 echo "$as_me: failed program was:" >&5
2118cat conftest.$ac_ext >&5
2119fi
2120rm -f conftest.$ac_objext
2121done
2122rm -f conftest.$ac_ext conftest.$ac_objext
2123CC=$ac_save_CC
2124
2125fi
2126
2127case "x$ac_cv_prog_cc_stdc" in
2128 x|xno)
2129 echo "$as_me:$LINENO: result: none needed" >&5
2130echo "${ECHO_T}none needed" >&6 ;;
2131 *)
2132 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2133echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2134 CC="$CC $ac_cv_prog_cc_stdc" ;;
2135esac
2136
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002137# Some people use a C++ compiler to compile C. Since we use `exit',
2138# in C++ we need to declare it. In case someone uses the same compiler
2139# for both compiling C and C++ we need to have the C++ compiler decide
2140# the declaration of exit, since it's the most demanding environment.
2141cat >conftest.$ac_ext <<_ACEOF
2142#ifndef __cplusplus
2143 choke me
2144#endif
2145_ACEOF
2146rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002148 (eval $ac_compile) 2>&5
2149 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002151 (exit $ac_status); } &&
2152 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002154 (eval $ac_try) 2>&5
2155 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002157 (exit $ac_status); }; }; then
2158 for ac_declaration in \
2159 ''\
2160 '#include <stdlib.h>' \
2161 'extern "C" void std::exit (int) throw (); using std::exit;' \
2162 'extern "C" void std::exit (int); using std::exit;' \
2163 'extern "C" void exit (int) throw ();' \
2164 'extern "C" void exit (int);' \
2165 'void exit (int);'
2166do
2167 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002168#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002169#include "confdefs.h"
2170#include <stdlib.h>
2171$ac_declaration
2172int
2173main ()
2174{
2175exit (42);
2176 ;
2177 return 0;
2178}
2179_ACEOF
2180rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002182 (eval $ac_compile) 2>&5
2183 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002185 (exit $ac_status); } &&
2186 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002188 (eval $ac_try) 2>&5
2189 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002191 (exit $ac_status); }; }; then
2192 :
2193else
2194 echo "$as_me: failed program was:" >&5
2195cat conftest.$ac_ext >&5
2196continue
2197fi
2198rm -f conftest.$ac_objext conftest.$ac_ext
2199 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002200#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002201#include "confdefs.h"
2202$ac_declaration
2203int
2204main ()
2205{
2206exit (42);
2207 ;
2208 return 0;
2209}
2210_ACEOF
2211rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002213 (eval $ac_compile) 2>&5
2214 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002216 (exit $ac_status); } &&
2217 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002219 (eval $ac_try) 2>&5
2220 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002222 (exit $ac_status); }; }; then
2223 break
2224else
2225 echo "$as_me: failed program was:" >&5
2226cat conftest.$ac_ext >&5
2227fi
2228rm -f conftest.$ac_objext conftest.$ac_ext
2229done
2230rm -f conftest*
2231if test -n "$ac_declaration"; then
2232 echo '#ifdef __cplusplus' >>confdefs.h
2233 echo $ac_declaration >>confdefs.h
2234 echo '#endif' >>confdefs.h
2235fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002236
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002237else
2238 echo "$as_me: failed program was:" >&5
2239cat conftest.$ac_ext >&5
2240fi
2241rm -f conftest.$ac_objext conftest.$ac_ext
2242ac_ext=c
2243ac_cpp='$CPP $CPPFLAGS'
2244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246ac_compiler_gnu=$ac_cv_c_compiler_gnu
2247
2248ac_ext=c
2249ac_cpp='$CPP $CPPFLAGS'
2250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2252ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002253echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002254echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002255# On Suns, sometimes $CPP names a directory.
2256if test -n "$CPP" && test -d "$CPP"; then
2257 CPP=
2258fi
2259if test -z "$CPP"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002260 if test "${ac_cv_prog_CPP+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002262else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002263 # Double quotes because CPP needs to be expanded
2264 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2265 do
2266 ac_preproc_ok=false
2267for ac_c_preproc_warn_flag in '' yes
2268do
2269 # Use a header file that comes with gcc, so configuring glibc
2270 # with a fresh cross-compiler works.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002271 # On the NeXT, cc -E runs the code through the compiler's parser,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002272 # not just through cpp. "Syntax error" is here to catch this case.
2273 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002274#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002275#include "confdefs.h"
2276#include <assert.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002277 Syntax error
2278_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002279if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2281 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002282 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002283 rm -f conftest.er1
2284 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002286 (exit $ac_status); } >/dev/null; then
2287 if test -s conftest.err; then
2288 ac_cpp_err=$ac_c_preproc_warn_flag
2289 else
2290 ac_cpp_err=
2291 fi
2292else
2293 ac_cpp_err=yes
2294fi
2295if test -z "$ac_cpp_err"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002296 :
2297else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002298 echo "$as_me: failed program was:" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002299 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002300 # Broken: fails on valid input.
2301continue
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002302fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002303rm -f conftest.err conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002304
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002305 # OK, works on sane cases. Now check whether non-existent headers
2306 # can be detected and how.
2307 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002308#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002309#include "confdefs.h"
2310#include <ac_nonexistent.h>
2311_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2314 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002315 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002316 rm -f conftest.er1
2317 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002319 (exit $ac_status); } >/dev/null; then
2320 if test -s conftest.err; then
2321 ac_cpp_err=$ac_c_preproc_warn_flag
2322 else
2323 ac_cpp_err=
2324 fi
2325else
2326 ac_cpp_err=yes
2327fi
2328if test -z "$ac_cpp_err"; then
2329 # Broken: success on invalid input.
2330continue
2331else
2332 echo "$as_me: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2334 # Passes both tests.
2335ac_preproc_ok=:
2336break
2337fi
2338rm -f conftest.err conftest.$ac_ext
2339
2340done
2341# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2342rm -f conftest.err conftest.$ac_ext
2343if $ac_preproc_ok; then
2344 break
2345fi
2346
2347 done
2348 ac_cv_prog_CPP=$CPP
2349
2350fi
2351 CPP=$ac_cv_prog_CPP
2352else
2353 ac_cv_prog_CPP=$CPP
2354fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002355echo "$as_me:$LINENO: result: $CPP" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002356echo "${ECHO_T}$CPP" >&6
2357ac_preproc_ok=false
2358for ac_c_preproc_warn_flag in '' yes
2359do
2360 # Use a header file that comes with gcc, so configuring glibc
2361 # with a fresh cross-compiler works.
2362 # On the NeXT, cc -E runs the code through the compiler's parser,
2363 # not just through cpp. "Syntax error" is here to catch this case.
2364 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002365#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002366#include "confdefs.h"
2367#include <assert.h>
2368 Syntax error
2369_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002370if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2372 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002373 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002374 rm -f conftest.er1
2375 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002377 (exit $ac_status); } >/dev/null; then
2378 if test -s conftest.err; then
2379 ac_cpp_err=$ac_c_preproc_warn_flag
2380 else
2381 ac_cpp_err=
2382 fi
2383else
2384 ac_cpp_err=yes
2385fi
2386if test -z "$ac_cpp_err"; then
2387 :
2388else
2389 echo "$as_me: failed program was:" >&5
2390 cat conftest.$ac_ext >&5
2391 # Broken: fails on valid input.
2392continue
2393fi
2394rm -f conftest.err conftest.$ac_ext
2395
2396 # OK, works on sane cases. Now check whether non-existent headers
2397 # can be detected and how.
2398 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002399#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002400#include "confdefs.h"
2401#include <ac_nonexistent.h>
2402_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002403if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2405 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002406 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002407 rm -f conftest.er1
2408 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002410 (exit $ac_status); } >/dev/null; then
2411 if test -s conftest.err; then
2412 ac_cpp_err=$ac_c_preproc_warn_flag
2413 else
2414 ac_cpp_err=
2415 fi
2416else
2417 ac_cpp_err=yes
2418fi
2419if test -z "$ac_cpp_err"; then
2420 # Broken: success on invalid input.
2421continue
2422else
2423 echo "$as_me: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2425 # Passes both tests.
2426ac_preproc_ok=:
2427break
2428fi
2429rm -f conftest.err conftest.$ac_ext
2430
2431done
2432# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2433rm -f conftest.err conftest.$ac_ext
2434if $ac_preproc_ok; then
2435 :
2436else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002437 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002438echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2439 { (exit 1); exit 1; }; }
2440fi
2441
2442ac_ext=c
2443ac_cpp='$CPP $CPPFLAGS'
2444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446ac_compiler_gnu=$ac_cv_c_compiler_gnu
2447
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002448
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002449echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2450echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2451if test "${wine_cv_toolsdir+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2453else
2454 if test -z "$with_wine_tools"; then
2455 if test "$cross_compiling" = "yes"; then
2456 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2457echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2458 { (exit 1); exit 1; }; }
2459 else
2460 wine_cv_toolsdir="\$(TOPOBJDIR)"
2461 fi
2462 elif test -d "$with_wine_tools/tools/winebuild"; then
2463 case $with_wine_tools in
2464 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2465 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2466 esac
2467 else
2468 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2469echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2470 { (exit 1); exit 1; }; }
2471 fi
2472fi
2473echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2474echo "${ECHO_T}$wine_cv_toolsdir" >&6
2475TOOLSDIR=$wine_cv_toolsdir
2476
2477
2478
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002479
2480echo "$as_me:$LINENO: checking for X" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002481echo $ECHO_N "checking for X... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002482
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002483
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002484# Check whether --with-x or --without-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002485if test "${with_x+set}" = set; then
2486 withval="$with_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002487
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002488fi;
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002489# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002490if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002491 # The user explicitly disabled X.
2492 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002493else
2494 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002495 # Both variables are already set.
2496 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002497 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002498 if test "${ac_cv_have_x+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002500else
2501 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002502ac_x_includes=no ac_x_libraries=no
2503rm -fr conftest.dir
2504if mkdir conftest.dir; then
2505 cd conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002506 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002507 cat >Imakefile <<'_ACEOF'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002508acfindx:
2509 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002510_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002511 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002512 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002513 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002514 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2515 for ac_extension in a so sl; do
2516 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002517 test -f $ac_im_libdir/libX11.$ac_extension; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002518 ac_im_usrlibdir=$ac_im_libdir; break
2519 fi
2520 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002521 # Screen out bogus values from the imake configuration. They are
2522 # bogus both because they are the default anyway, and because
2523 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002524 case $ac_im_incroot in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002525 /usr/include) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002526 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002527 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002528 case $ac_im_usrlibdir in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002529 /usr/lib | /lib) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002530 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002531 esac
2532 fi
2533 cd ..
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002534 rm -fr conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002535fi
2536
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002537# Standard set of common directories for X headers.
2538# Check X11 before X11Rn because it is often a symlink to the current release.
2539ac_x_header_dirs='
2540/usr/X11/include
2541/usr/X11R6/include
2542/usr/X11R5/include
2543/usr/X11R4/include
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002544
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002545/usr/include/X11
2546/usr/include/X11R6
2547/usr/include/X11R5
2548/usr/include/X11R4
2549
2550/usr/local/X11/include
2551/usr/local/X11R6/include
2552/usr/local/X11R5/include
2553/usr/local/X11R4/include
2554
2555/usr/local/include/X11
2556/usr/local/include/X11R6
2557/usr/local/include/X11R5
2558/usr/local/include/X11R4
2559
2560/usr/X386/include
2561/usr/x386/include
2562/usr/XFree86/include/X11
2563
2564/usr/include
2565/usr/local/include
2566/usr/unsupported/include
2567/usr/athena/include
2568/usr/local/x11r5/include
2569/usr/lpp/Xamples/include
2570
2571/usr/openwin/include
2572/usr/openwin/share/include'
2573
2574if test "$ac_x_includes" = no; then
2575 # Guess where to find include files, by looking for Intrinsic.h.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002576 # First, try using that file with no special directory specified.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002577 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002578#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002579#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002580#include <X11/Intrinsic.h>
2581_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002582if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2584 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002585 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002586 rm -f conftest.er1
2587 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002589 (exit $ac_status); } >/dev/null; then
2590 if test -s conftest.err; then
2591 ac_cpp_err=$ac_c_preproc_warn_flag
2592 else
2593 ac_cpp_err=
2594 fi
2595else
2596 ac_cpp_err=yes
2597fi
2598if test -z "$ac_cpp_err"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002599 # We can compile using X headers with no special include directory.
2600ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002601else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002602 echo "$as_me: failed program was:" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002603 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002604 for ac_dir in $ac_x_header_dirs; do
2605 if test -r "$ac_dir/X11/Intrinsic.h"; then
2606 ac_x_includes=$ac_dir
2607 break
2608 fi
2609done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002610fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002611rm -f conftest.err conftest.$ac_ext
2612fi # $ac_x_includes = no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002613
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002614if test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002615 # Check for the libraries.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002616 # See if we find them without any special options.
2617 # Don't add to $LIBS permanently.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002618 ac_save_LIBS=$LIBS
2619 LIBS="-lXt $LIBS"
2620 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002621#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002622#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002623#include <X11/Intrinsic.h>
2624int
2625main ()
2626{
2627XtMalloc (0)
2628 ;
2629 return 0;
2630}
2631_ACEOF
2632rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002634 (eval $ac_link) 2>&5
2635 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002637 (exit $ac_status); } &&
2638 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002640 (eval $ac_try) 2>&5
2641 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002643 (exit $ac_status); }; }; then
2644 LIBS=$ac_save_LIBS
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002645# We can link X programs with no special library path.
2646ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002647else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002648 echo "$as_me: failed program was:" >&5
2649cat conftest.$ac_ext >&5
2650LIBS=$ac_save_LIBS
2651for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002652do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002653 # Don't even attempt the hair of trying to link an X program!
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002654 for ac_extension in a so sl; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002655 if test -r $ac_dir/libXt.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002656 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002657 break 2
2658 fi
2659 done
2660done
2661fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002662rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2663fi # $ac_x_libraries = no
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002664
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002665if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002666 # Didn't find X anywhere. Cache the known absence of X.
2667 ac_cv_have_x="have_x=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002668else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002669 # Record where we found X for the cache.
2670 ac_cv_have_x="have_x=yes \
2671 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002672fi
2673fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002674
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002675 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002676 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002677fi # $with_x != no
2678
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002679if test "$have_x" != yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002680 echo "$as_me:$LINENO: result: $have_x" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002681echo "${ECHO_T}$have_x" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002682 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002683else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002684 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002685 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2686 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002687 # Update the cache value to reflect the command line values.
2688 ac_cv_have_x="have_x=yes \
2689 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002690 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002691echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002692fi
2693
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002694if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002695 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002696
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002697cat >>confdefs.h <<\_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002698#define X_DISPLAY_MISSING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002699_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002700
2701 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002702else
2703 if test -n "$x_includes"; then
2704 X_CFLAGS="$X_CFLAGS -I$x_includes"
2705 fi
2706
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002707 # It would also be nice to do this for all -L options, not just this one.
2708 if test -n "$x_libraries"; then
2709 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002710 # For Solaris; some versions of Sun CC require a space after -R and
2711 # others require no space. Words are not sufficient . . . .
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002712 case `(uname -sr) 2>/dev/null` in
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002713 "SunOS 5"*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002714 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002715echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2716 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2717 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002718#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002719#include "confdefs.h"
2720
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002721int
2722main ()
2723{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002724
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002725 ;
2726 return 0;
2727}
2728_ACEOF
2729rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002731 (eval $ac_link) 2>&5
2732 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002734 (exit $ac_status); } &&
2735 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002737 (eval $ac_try) 2>&5
2738 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002740 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002741 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002742else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002743 echo "$as_me: failed program was:" >&5
2744cat conftest.$ac_ext >&5
2745ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002746fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002747rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002748 if test $ac_R_nospace = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002749 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002750echo "${ECHO_T}no" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002751 X_LIBS="$X_LIBS -R$x_libraries"
2752 else
2753 LIBS="$ac_xsave_LIBS -R $x_libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002754 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002755#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002756#include "confdefs.h"
2757
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002758int
2759main ()
2760{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002761
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002762 ;
2763 return 0;
2764}
2765_ACEOF
2766rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002768 (eval $ac_link) 2>&5
2769 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002771 (exit $ac_status); } &&
2772 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002774 (eval $ac_try) 2>&5
2775 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002777 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002778 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002779else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002780 echo "$as_me: failed program was:" >&5
2781cat conftest.$ac_ext >&5
2782ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002783fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002784rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002785 if test $ac_R_space = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002786 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002787echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002788 X_LIBS="$X_LIBS -R $x_libraries"
2789 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002790 echo "$as_me:$LINENO: result: neither works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002791echo "${ECHO_T}neither works" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002792 fi
2793 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002794 LIBS=$ac_xsave_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002795 esac
2796 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002797
2798 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002799 # Do this before checking for the system-independent R6 libraries
2800 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002801
2802 if test "$ISC" = yes; then
2803 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2804 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002805 # Martyn Johnson says this is needed for Ultrix, if the X
2806 # libraries were built with DECnet support. And Karl Berry says
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002807 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002808 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2809 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002810#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002811#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002812
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002813/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002814#ifdef __cplusplus
2815extern "C"
2816#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002817/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002818 builtin and then its argument prototype would still apply. */
2819char XOpenDisplay ();
2820int
2821main ()
2822{
2823XOpenDisplay ();
2824 ;
2825 return 0;
2826}
2827_ACEOF
2828rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002830 (eval $ac_link) 2>&5
2831 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002833 (exit $ac_status); } &&
2834 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002836 (eval $ac_try) 2>&5
2837 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002839 (exit $ac_status); }; }; then
2840 :
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002841else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002842 echo "$as_me: failed program was:" >&5
2843cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002844echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002845echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2846if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848else
2849 ac_check_lib_save_LIBS=$LIBS
2850LIBS="-ldnet $LIBS"
2851cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002852#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002853#include "confdefs.h"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002854
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002855/* Override any gcc2 internal prototype to avoid an error. */
2856#ifdef __cplusplus
2857extern "C"
2858#endif
2859/* We use char because int might match the return type of a gcc2
2860 builtin and then its argument prototype would still apply. */
2861char dnet_ntoa ();
2862int
2863main ()
2864{
2865dnet_ntoa ();
2866 ;
2867 return 0;
2868}
2869_ACEOF
2870rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002872 (eval $ac_link) 2>&5
2873 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002875 (exit $ac_status); } &&
2876 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002878 (eval $ac_try) 2>&5
2879 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002881 (exit $ac_status); }; }; then
2882 ac_cv_lib_dnet_dnet_ntoa=yes
2883else
2884 echo "$as_me: failed program was:" >&5
2885cat conftest.$ac_ext >&5
2886ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002887fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002888rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2889LIBS=$ac_check_lib_save_LIBS
2890fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002891echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002892echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2893if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002894 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002895fi
2896
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002897 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002898 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002899echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2900if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002902else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002903 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002904LIBS="-ldnet_stub $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002905cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002906#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002907#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002908
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002909/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002910#ifdef __cplusplus
2911extern "C"
2912#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002913/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002914 builtin and then its argument prototype would still apply. */
2915char dnet_ntoa ();
2916int
2917main ()
2918{
2919dnet_ntoa ();
2920 ;
2921 return 0;
2922}
2923_ACEOF
2924rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002926 (eval $ac_link) 2>&5
2927 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002929 (exit $ac_status); } &&
2930 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002932 (eval $ac_try) 2>&5
2933 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002935 (exit $ac_status); }; }; then
2936 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002937else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002938 echo "$as_me: failed program was:" >&5
2939cat conftest.$ac_ext >&5
2940ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002941fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002942rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2943LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002944fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002945echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002946echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2947if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002948 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002949fi
2950
2951 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002952fi
2953rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2954 LIBS="$ac_xsave_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002955
2956 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2957 # to get the SysV transport functions.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002958 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002959 # needs -lnsl.
2960 # The nsl library prevents programs from opening the X display
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002961 # on Irix 5.2, according to T.E. Dickey.
2962 # The functions gethostbyname, getservbyname, and inet_addr are
2963 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002964 echo "$as_me:$LINENO: checking for gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002965echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2966if test "${ac_cv_func_gethostbyname+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002968else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002969 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002970#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002971#include "confdefs.h"
2972/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002973 which can conflict with char gethostbyname (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002974#include <assert.h>
2975/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002976#ifdef __cplusplus
2977extern "C"
2978#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002979/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002980 builtin and then its argument prototype would still apply. */
2981char gethostbyname ();
2982char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002983
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002984int
2985main ()
2986{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002987/* The GNU C library defines this for functions which it implements
2988 to always fail with ENOSYS. Some functions are actually named
2989 something starting with __ and the normal name is an alias. */
2990#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2991choke me
2992#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002993f = gethostbyname;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002994#endif
2995
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002996 ;
2997 return 0;
2998}
2999_ACEOF
3000rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003002 (eval $ac_link) 2>&5
3003 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003005 (exit $ac_status); } &&
3006 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003008 (eval $ac_try) 2>&5
3009 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003011 (exit $ac_status); }; }; then
3012 ac_cv_func_gethostbyname=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003013else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003014 echo "$as_me: failed program was:" >&5
3015cat conftest.$ac_ext >&5
3016ac_cv_func_gethostbyname=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003017fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003018rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003019fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003020echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003021echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003022
3023 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003024 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003025echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3026if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003028else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003029 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003030LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003031cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003032#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003033#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003034
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003035/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003036#ifdef __cplusplus
3037extern "C"
3038#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003039/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003040 builtin and then its argument prototype would still apply. */
3041char gethostbyname ();
3042int
3043main ()
3044{
3045gethostbyname ();
3046 ;
3047 return 0;
3048}
3049_ACEOF
3050rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003052 (eval $ac_link) 2>&5
3053 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003055 (exit $ac_status); } &&
3056 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003058 (eval $ac_try) 2>&5
3059 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003061 (exit $ac_status); }; }; then
3062 ac_cv_lib_nsl_gethostbyname=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003063else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003064 echo "$as_me: failed program was:" >&5
3065cat conftest.$ac_ext >&5
3066ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003067fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003068rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3069LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003070fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003071echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003072echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3073if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003074 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003075fi
3076
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003077 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003078 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003079echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3080if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3082else
3083 ac_check_lib_save_LIBS=$LIBS
3084LIBS="-lbsd $LIBS"
3085cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003086#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003087#include "confdefs.h"
3088
3089/* Override any gcc2 internal prototype to avoid an error. */
3090#ifdef __cplusplus
3091extern "C"
3092#endif
3093/* We use char because int might match the return type of a gcc2
3094 builtin and then its argument prototype would still apply. */
3095char gethostbyname ();
3096int
3097main ()
3098{
3099gethostbyname ();
3100 ;
3101 return 0;
3102}
3103_ACEOF
3104rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003106 (eval $ac_link) 2>&5
3107 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003109 (exit $ac_status); } &&
3110 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003112 (eval $ac_try) 2>&5
3113 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003115 (exit $ac_status); }; }; then
3116 ac_cv_lib_bsd_gethostbyname=yes
3117else
3118 echo "$as_me: failed program was:" >&5
3119cat conftest.$ac_ext >&5
3120ac_cv_lib_bsd_gethostbyname=no
3121fi
3122rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3123LIBS=$ac_check_lib_save_LIBS
3124fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003125echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003126echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3127if test $ac_cv_lib_bsd_gethostbyname = yes; then
3128 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3129fi
3130
3131 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003132 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003133
3134 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003135 # socket/setsockopt and other routines are undefined under SCO ODT
3136 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003137 # on later versions), says Simon Leinen: it contains gethostby*
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003138 # variants that don't use the name server (or something). -lsocket
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003139 # must be given before -lnsl if both are needed. We assume that
3140 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003141 echo "$as_me:$LINENO: checking for connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003142echo $ECHO_N "checking for connect... $ECHO_C" >&6
3143if test "${ac_cv_func_connect+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003145else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003146 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003147#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003148#include "confdefs.h"
3149/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003150 which can conflict with char connect (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003151#include <assert.h>
3152/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003153#ifdef __cplusplus
3154extern "C"
3155#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003156/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003157 builtin and then its argument prototype would still apply. */
3158char connect ();
3159char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003160
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003161int
3162main ()
3163{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003164/* The GNU C library defines this for functions which it implements
3165 to always fail with ENOSYS. Some functions are actually named
3166 something starting with __ and the normal name is an alias. */
3167#if defined (__stub_connect) || defined (__stub___connect)
3168choke me
3169#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003170f = connect;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003171#endif
3172
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003173 ;
3174 return 0;
3175}
3176_ACEOF
3177rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003179 (eval $ac_link) 2>&5
3180 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003182 (exit $ac_status); } &&
3183 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003185 (eval $ac_try) 2>&5
3186 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003188 (exit $ac_status); }; }; then
3189 ac_cv_func_connect=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003190else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003191 echo "$as_me: failed program was:" >&5
3192cat conftest.$ac_ext >&5
3193ac_cv_func_connect=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003194fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003195rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003196fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003197echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003198echo "${ECHO_T}$ac_cv_func_connect" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003199
3200 if test $ac_cv_func_connect = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003201 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003202echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3203if test "${ac_cv_lib_socket_connect+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003205else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003206 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003207LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003208cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003209#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003210#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003211
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003212/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003213#ifdef __cplusplus
3214extern "C"
3215#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003216/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003217 builtin and then its argument prototype would still apply. */
3218char connect ();
3219int
3220main ()
3221{
3222connect ();
3223 ;
3224 return 0;
3225}
3226_ACEOF
3227rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003229 (eval $ac_link) 2>&5
3230 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003232 (exit $ac_status); } &&
3233 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003235 (eval $ac_try) 2>&5
3236 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003238 (exit $ac_status); }; }; then
3239 ac_cv_lib_socket_connect=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003240else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003241 echo "$as_me: failed program was:" >&5
3242cat conftest.$ac_ext >&5
3243ac_cv_lib_socket_connect=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003244fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003245rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3246LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003247fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003248echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003249echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3250if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003251 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003252fi
3253
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003254 fi
3255
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003256 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003257 echo "$as_me:$LINENO: checking for remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003258echo $ECHO_N "checking for remove... $ECHO_C" >&6
3259if test "${ac_cv_func_remove+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003261else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003262 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003263#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003264#include "confdefs.h"
3265/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003266 which can conflict with char remove (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003267#include <assert.h>
3268/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003269#ifdef __cplusplus
3270extern "C"
3271#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003272/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003273 builtin and then its argument prototype would still apply. */
3274char remove ();
3275char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003276
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003277int
3278main ()
3279{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003280/* The GNU C library defines this for functions which it implements
3281 to always fail with ENOSYS. Some functions are actually named
3282 something starting with __ and the normal name is an alias. */
3283#if defined (__stub_remove) || defined (__stub___remove)
3284choke me
3285#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003286f = remove;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003287#endif
3288
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003289 ;
3290 return 0;
3291}
3292_ACEOF
3293rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003295 (eval $ac_link) 2>&5
3296 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003298 (exit $ac_status); } &&
3299 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003301 (eval $ac_try) 2>&5
3302 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003304 (exit $ac_status); }; }; then
3305 ac_cv_func_remove=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003306else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003307 echo "$as_me: failed program was:" >&5
3308cat conftest.$ac_ext >&5
3309ac_cv_func_remove=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003310fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003311rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003312fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003313echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003314echo "${ECHO_T}$ac_cv_func_remove" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003315
3316 if test $ac_cv_func_remove = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003317 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003318echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3319if test "${ac_cv_lib_posix_remove+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003321else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003322 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003323LIBS="-lposix $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003324cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003325#line $LINENO "configure"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003326#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003327
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003328/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003329#ifdef __cplusplus
3330extern "C"
3331#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003332/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003333 builtin and then its argument prototype would still apply. */
3334char remove ();
3335int
3336main ()
3337{
3338remove ();
3339 ;
3340 return 0;
3341}
3342_ACEOF
3343rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003345 (eval $ac_link) 2>&5
3346 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003348 (exit $ac_status); } &&
3349 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003351 (eval $ac_try) 2>&5
3352 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003354 (exit $ac_status); }; }; then
3355 ac_cv_lib_posix_remove=yes
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003356else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003357 echo "$as_me: failed program was:" >&5
3358cat conftest.$ac_ext >&5
3359ac_cv_lib_posix_remove=no
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003360fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003361rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3362LIBS=$ac_check_lib_save_LIBS
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003363fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003364echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003365echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3366if test $ac_cv_lib_posix_remove = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003367 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003368fi
3369
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003370 fi
3371
3372 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003373 echo "$as_me:$LINENO: checking for shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003374echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3375if test "${ac_cv_func_shmat+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003377else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003378 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003379#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003380#include "confdefs.h"
3381/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003382 which can conflict with char shmat (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003383#include <assert.h>
3384/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003385#ifdef __cplusplus
3386extern "C"
3387#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003388/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003389 builtin and then its argument prototype would still apply. */
3390char shmat ();
3391char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003392
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003393int
3394main ()
3395{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003396/* The GNU C library defines this for functions which it implements
3397 to always fail with ENOSYS. Some functions are actually named
3398 something starting with __ and the normal name is an alias. */
3399#if defined (__stub_shmat) || defined (__stub___shmat)
3400choke me
3401#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003402f = shmat;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003403#endif
3404
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003405 ;
3406 return 0;
3407}
3408_ACEOF
3409rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003411 (eval $ac_link) 2>&5
3412 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003414 (exit $ac_status); } &&
3415 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003417 (eval $ac_try) 2>&5
3418 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003420 (exit $ac_status); }; }; then
3421 ac_cv_func_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003422else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003423 echo "$as_me: failed program was:" >&5
3424cat conftest.$ac_ext >&5
3425ac_cv_func_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003426fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003427rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003428fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003429echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003430echo "${ECHO_T}$ac_cv_func_shmat" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003431
3432 if test $ac_cv_func_shmat = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003433 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003434echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3435if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003437else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003438 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003439LIBS="-lipc $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003440cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003441#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003442#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003443
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003444/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003445#ifdef __cplusplus
3446extern "C"
3447#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003448/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003449 builtin and then its argument prototype would still apply. */
3450char shmat ();
3451int
3452main ()
3453{
3454shmat ();
3455 ;
3456 return 0;
3457}
3458_ACEOF
3459rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003461 (eval $ac_link) 2>&5
3462 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003464 (exit $ac_status); } &&
3465 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003467 (eval $ac_try) 2>&5
3468 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003470 (exit $ac_status); }; }; then
3471 ac_cv_lib_ipc_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003472else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003473 echo "$as_me: failed program was:" >&5
3474cat conftest.$ac_ext >&5
3475ac_cv_lib_ipc_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003476fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003477rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3478LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003479fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003480echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003481echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3482if test $ac_cv_lib_ipc_shmat = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003483 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003484fi
3485
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003486 fi
3487 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003488
3489 # Check for libraries that X11R6 Xt/Xaw programs need.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003490 ac_save_LDFLAGS=$LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003491 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3492 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3493 # check for ICE first), but we must link in the order -lSM -lICE or
3494 # we get undefined symbols. So assume we have SM if we have ICE.
3495 # These have to be linked with before -lX11, unlike the other
3496 # libraries we check for below, so use a different variable.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003497 # John Interrante, Karl Berry
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003498 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003499echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3500if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003502else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003503 ac_check_lib_save_LIBS=$LIBS
Eric Pouech18ad24a2000-01-16 22:16:33 +00003504LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003505cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003506#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003507#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003508
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003509/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003510#ifdef __cplusplus
3511extern "C"
3512#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003513/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003514 builtin and then its argument prototype would still apply. */
3515char IceConnectionNumber ();
3516int
3517main ()
3518{
3519IceConnectionNumber ();
3520 ;
3521 return 0;
3522}
3523_ACEOF
3524rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003526 (eval $ac_link) 2>&5
3527 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003529 (exit $ac_status); } &&
3530 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003532 (eval $ac_try) 2>&5
3533 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003535 (exit $ac_status); }; }; then
3536 ac_cv_lib_ICE_IceConnectionNumber=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003537else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003538 echo "$as_me: failed program was:" >&5
3539cat conftest.$ac_ext >&5
3540ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003541fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003542rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3543LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003544fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003545echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003546echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3547if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003548 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003549fi
3550
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003551 LDFLAGS=$ac_save_LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003552
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003553fi
3554
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003555for ac_prog in 'bison -y' byacc
3556do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003557 # Extract the first word of "$ac_prog", so it can be a program name with args.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003558set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003559echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3561if test "${ac_cv_prog_YACC+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003563else
3564 if test -n "$YACC"; then
3565 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3566else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568for as_dir in $PATH
3569do
3570 IFS=$as_save_IFS
3571 test -z "$as_dir" && as_dir=.
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3574 ac_cv_prog_YACC="$ac_prog"
3575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 break 2
3577 fi
3578done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003579done
3580
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003581fi
3582fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003583YACC=$ac_cv_prog_YACC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003584if test -n "$YACC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003585 echo "$as_me:$LINENO: result: $YACC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003586echo "${ECHO_T}$YACC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003587else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003588 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003589echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003590fi
3591
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003592 test -n "$YACC" && break
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003593done
3594test -n "$YACC" || YACC="yacc"
3595
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003596for ac_prog in flex lex
3597do
3598 # Extract the first word of "$ac_prog", so it can be a program name with args.
3599set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003600echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3602if test "${ac_cv_prog_LEX+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003604else
3605 if test -n "$LEX"; then
3606 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3607else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609for as_dir in $PATH
3610do
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3615 ac_cv_prog_LEX="$ac_prog"
3616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 break 2
3618 fi
3619done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003620done
3621
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003622fi
3623fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003624LEX=$ac_cv_prog_LEX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003625if test -n "$LEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003626 echo "$as_me:$LINENO: result: $LEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003627echo "${ECHO_T}$LEX" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003628else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003629 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003630echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003631fi
3632
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003633 test -n "$LEX" && break
3634done
3635test -n "$LEX" || LEX=":"
3636
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003637if test -z "$LEXLIB"
3638then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003639 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003640echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3641if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003643else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003644 ac_check_lib_save_LIBS=$LIBS
3645LIBS="-lfl $LIBS"
3646cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003647#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003648#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003649
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003650/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003651#ifdef __cplusplus
3652extern "C"
3653#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003654/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003655 builtin and then its argument prototype would still apply. */
3656char yywrap ();
3657int
3658main ()
3659{
3660yywrap ();
3661 ;
3662 return 0;
3663}
3664_ACEOF
3665rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003667 (eval $ac_link) 2>&5
3668 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003670 (exit $ac_status); } &&
3671 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003673 (eval $ac_try) 2>&5
3674 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003676 (exit $ac_status); }; }; then
3677 ac_cv_lib_fl_yywrap=yes
3678else
3679 echo "$as_me: failed program was:" >&5
3680cat conftest.$ac_ext >&5
3681ac_cv_lib_fl_yywrap=no
3682fi
3683rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3684LIBS=$ac_check_lib_save_LIBS
3685fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003686echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003687echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3688if test $ac_cv_lib_fl_yywrap = yes; then
3689 LEXLIB="-lfl"
3690else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003691 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003692echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3693if test "${ac_cv_lib_l_yywrap+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695else
3696 ac_check_lib_save_LIBS=$LIBS
3697LIBS="-ll $LIBS"
3698cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003699#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003700#include "confdefs.h"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003701
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003702/* Override any gcc2 internal prototype to avoid an error. */
3703#ifdef __cplusplus
3704extern "C"
3705#endif
3706/* We use char because int might match the return type of a gcc2
3707 builtin and then its argument prototype would still apply. */
3708char yywrap ();
3709int
3710main ()
3711{
3712yywrap ();
3713 ;
3714 return 0;
3715}
3716_ACEOF
3717rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003719 (eval $ac_link) 2>&5
3720 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003722 (exit $ac_status); } &&
3723 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003725 (eval $ac_try) 2>&5
3726 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003728 (exit $ac_status); }; }; then
3729 ac_cv_lib_l_yywrap=yes
3730else
3731 echo "$as_me: failed program was:" >&5
3732cat conftest.$ac_ext >&5
3733ac_cv_lib_l_yywrap=no
3734fi
3735rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3736LIBS=$ac_check_lib_save_LIBS
3737fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003738echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003739echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3740if test $ac_cv_lib_l_yywrap = yes; then
3741 LEXLIB="-ll"
3742fi
3743
3744fi
3745
3746fi
3747
3748if test "x$LEX" != "x:"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003749 echo "$as_me:$LINENO: checking lex output file root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003750echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3751if test "${ac_cv_prog_lex_root+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753else
3754 # The minimal lex program is just a single line: %%. But some broken lexes
3755# (Solaris, I think it was) want two %% lines, so accommodate them.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003756cat >conftest.l <<_ACEOF
3757%%
3758%%
3759_ACEOF
3760{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3761 (eval $LEX conftest.l) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003765if test -f lex.yy.c; then
3766 ac_cv_prog_lex_root=lex.yy
3767elif test -f lexyy.c; then
3768 ac_cv_prog_lex_root=lexyy
3769else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003770 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003771echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3772 { (exit 1); exit 1; }; }
3773fi
3774fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003775echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003776echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003777rm -f conftest.l
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003778LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3779
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003780echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003781echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3782if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3784else
3785 # POSIX says lex can declare yytext either as a pointer or an array; the
3786# default is implementation-dependent. Figure out which it is, since
3787# not all implementations provide the %pointer and %array declarations.
3788ac_cv_prog_lex_yytext_pointer=no
3789echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3790ac_save_LIBS=$LIBS
3791LIBS="$LIBS $LEXLIB"
3792cat >conftest.$ac_ext <<_ACEOF
3793`cat $LEX_OUTPUT_ROOT.c`
3794_ACEOF
3795rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003797 (eval $ac_link) 2>&5
3798 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003800 (exit $ac_status); } &&
3801 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003803 (eval $ac_try) 2>&5
3804 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003806 (exit $ac_status); }; }; then
3807 ac_cv_prog_lex_yytext_pointer=yes
3808else
3809 echo "$as_me: failed program was:" >&5
3810cat conftest.$ac_ext >&5
3811fi
3812rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3813LIBS=$ac_save_LIBS
3814rm -f "${LEX_OUTPUT_ROOT}.c"
3815
3816fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003817echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003818echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3819if test $ac_cv_prog_lex_yytext_pointer = yes; then
3820
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003821cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003822#define YYTEXT_POINTER 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003823_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003824
3825fi
3826
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003827fi
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003828
3829for ac_prog in $YACC bison yacc
3830do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003831 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003832set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003833echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3835if test "${ac_cv_prog_XYACC+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003837else
3838 if test -n "$XYACC"; then
3839 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3840else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842for as_dir in $PATH
3843do
3844 IFS=$as_save_IFS
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848 ac_cv_prog_XYACC="$ac_prog"
3849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3850 break 2
3851 fi
3852done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003853done
3854
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003855fi
3856fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003857XYACC=$ac_cv_prog_XYACC
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003858if test -n "$XYACC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003859 echo "$as_me:$LINENO: result: $XYACC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003860echo "${ECHO_T}$XYACC" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003861else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003862 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003863echo "${ECHO_T}no" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003864fi
3865
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003866 test -n "$XYACC" && break
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003867done
3868test -n "$XYACC" || XYACC="none"
3869
3870if test "$XYACC" = "none"
3871then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003872 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003873echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3874 { (exit 1); exit 1; }; }
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003875fi
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003876for ac_prog in $LEX flex lex
3877do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003878 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003879set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003880echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3882if test "${ac_cv_prog_XLEX+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003884else
3885 if test -n "$XLEX"; then
3886 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3887else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889for as_dir in $PATH
3890do
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3895 ac_cv_prog_XLEX="$ac_prog"
3896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 break 2
3898 fi
3899done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003900done
3901
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003902fi
3903fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003904XLEX=$ac_cv_prog_XLEX
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003905if test -n "$XLEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003906 echo "$as_me:$LINENO: result: $XLEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003907echo "${ECHO_T}$XLEX" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003908else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003909 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003910echo "${ECHO_T}no" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003911fi
3912
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003913 test -n "$XLEX" && break
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003914done
3915test -n "$XLEX" || XLEX="none"
3916
3917if test "$XLEX" = "none"
3918then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003919 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003920echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3921 { (exit 1); exit 1; }; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003922fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00003923
3924if test -n "$ac_tool_prefix"; then
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00003925 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3926set dummy ${ac_tool_prefix}ld; ac_word=$2
3927echo "$as_me:$LINENO: checking for $ac_word" >&5
3928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3929if test "${ac_cv_prog_LD+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3931else
3932 if test -n "$LD"; then
3933 ac_cv_prog_LD="$LD" # Let the user override the test.
3934else
3935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936for as_dir in $PATH
3937do
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3942 ac_cv_prog_LD="${ac_tool_prefix}ld"
3943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 break 2
3945 fi
3946done
3947done
3948
3949fi
3950fi
3951LD=$ac_cv_prog_LD
3952if test -n "$LD"; then
3953 echo "$as_me:$LINENO: result: $LD" >&5
3954echo "${ECHO_T}$LD" >&6
3955else
3956 echo "$as_me:$LINENO: result: no" >&5
3957echo "${ECHO_T}no" >&6
3958fi
3959
3960fi
3961if test -z "$ac_cv_prog_LD"; then
3962 ac_ct_LD=$LD
3963 # Extract the first word of "ld", so it can be a program name with args.
3964set dummy ld; ac_word=$2
3965echo "$as_me:$LINENO: checking for $ac_word" >&5
3966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3967if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3969else
3970 if test -n "$ac_ct_LD"; then
3971 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3972else
3973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974for as_dir in $PATH
3975do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_prog_ac_ct_LD="ld"
3981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 break 2
3983 fi
3984done
3985done
3986
3987 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3988fi
3989fi
3990ac_ct_LD=$ac_cv_prog_ac_ct_LD
3991if test -n "$ac_ct_LD"; then
3992 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3993echo "${ECHO_T}$ac_ct_LD" >&6
3994else
3995 echo "$as_me:$LINENO: result: no" >&5
3996echo "${ECHO_T}no" >&6
3997fi
3998
3999 LD=$ac_ct_LD
4000else
4001 LD="$ac_cv_prog_LD"
4002fi
4003
4004if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004005 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4006set dummy ${ac_tool_prefix}ar; ac_word=$2
4007echo "$as_me:$LINENO: checking for $ac_word" >&5
4008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4009if test "${ac_cv_prog_AR+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4011else
4012 if test -n "$AR"; then
4013 ac_cv_prog_AR="$AR" # Let the user override the test.
4014else
4015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016for as_dir in $PATH
4017do
4018 IFS=$as_save_IFS
4019 test -z "$as_dir" && as_dir=.
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4022 ac_cv_prog_AR="${ac_tool_prefix}ar"
4023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 break 2
4025 fi
4026done
4027done
4028
4029fi
4030fi
4031AR=$ac_cv_prog_AR
4032if test -n "$AR"; then
4033 echo "$as_me:$LINENO: result: $AR" >&5
4034echo "${ECHO_T}$AR" >&6
4035else
4036 echo "$as_me:$LINENO: result: no" >&5
4037echo "${ECHO_T}no" >&6
4038fi
4039
4040fi
4041if test -z "$ac_cv_prog_AR"; then
4042 ac_ct_AR=$AR
4043 # Extract the first word of "ar", so it can be a program name with args.
4044set dummy ar; ac_word=$2
4045echo "$as_me:$LINENO: checking for $ac_word" >&5
4046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4047if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4049else
4050 if test -n "$ac_ct_AR"; then
4051 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4052else
4053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054for as_dir in $PATH
4055do
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_prog_ac_ct_AR="ar"
4061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 break 2
4063 fi
4064done
4065done
4066
4067 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4068fi
4069fi
4070ac_ct_AR=$ac_cv_prog_ac_ct_AR
4071if test -n "$ac_ct_AR"; then
4072 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4073echo "${ECHO_T}$ac_ct_AR" >&6
4074else
4075 echo "$as_me:$LINENO: result: no" >&5
4076echo "${ECHO_T}no" >&6
4077fi
4078
4079 AR=$ac_ct_AR
4080else
4081 AR="$ac_cv_prog_AR"
4082fi
4083
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004084if test -n "$ac_tool_prefix"; then
4085 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4086set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004087echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4089if test "${ac_cv_prog_RANLIB+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004091else
4092 if test -n "$RANLIB"; then
4093 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4094else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096for as_dir in $PATH
4097do
4098 IFS=$as_save_IFS
4099 test -z "$as_dir" && as_dir=.
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4102 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4104 break 2
4105 fi
4106done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004107done
4108
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004109fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004110fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004111RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004112if test -n "$RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004113 echo "$as_me:$LINENO: result: $RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004114echo "${ECHO_T}$RANLIB" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004115else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004116 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004117echo "${ECHO_T}no" >&6
4118fi
4119
4120fi
4121if test -z "$ac_cv_prog_RANLIB"; then
4122 ac_ct_RANLIB=$RANLIB
4123 # Extract the first word of "ranlib", so it can be a program name with args.
4124set dummy ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004125echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4127if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129else
4130 if test -n "$ac_ct_RANLIB"; then
4131 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4132else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134for as_dir in $PATH
4135do
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4140 ac_cv_prog_ac_ct_RANLIB="ranlib"
4141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 break 2
4143 fi
4144done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004145done
4146
4147 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4148fi
4149fi
4150ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4151if test -n "$ac_ct_RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004152 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004153echo "${ECHO_T}$ac_ct_RANLIB" >&6
4154else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004155 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004156echo "${ECHO_T}no" >&6
4157fi
4158
4159 RANLIB=$ac_ct_RANLIB
4160else
4161 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004162fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004163
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004164if test -n "$ac_tool_prefix"; then
4165 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4166set dummy ${ac_tool_prefix}strip; ac_word=$2
4167echo "$as_me:$LINENO: checking for $ac_word" >&5
4168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4169if test "${ac_cv_prog_STRIP+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171else
4172 if test -n "$STRIP"; then
4173 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4174else
4175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176for as_dir in $PATH
4177do
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 break 2
4185 fi
4186done
4187done
4188
4189fi
4190fi
4191STRIP=$ac_cv_prog_STRIP
4192if test -n "$STRIP"; then
4193 echo "$as_me:$LINENO: result: $STRIP" >&5
4194echo "${ECHO_T}$STRIP" >&6
4195else
4196 echo "$as_me:$LINENO: result: no" >&5
4197echo "${ECHO_T}no" >&6
4198fi
4199
4200fi
4201if test -z "$ac_cv_prog_STRIP"; then
4202 ac_ct_STRIP=$STRIP
4203 # Extract the first word of "strip", so it can be a program name with args.
4204set dummy strip; ac_word=$2
4205echo "$as_me:$LINENO: checking for $ac_word" >&5
4206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4207if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4209else
4210 if test -n "$ac_ct_STRIP"; then
4211 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4212else
4213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214for as_dir in $PATH
4215do
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220 ac_cv_prog_ac_ct_STRIP="strip"
4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 break 2
4223 fi
4224done
4225done
4226
4227 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4228fi
4229fi
4230ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4231if test -n "$ac_ct_STRIP"; then
4232 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4233echo "${ECHO_T}$ac_ct_STRIP" >&6
4234else
4235 echo "$as_me:$LINENO: result: no" >&5
4236echo "${ECHO_T}no" >&6
4237fi
4238
4239 STRIP=$ac_ct_STRIP
4240else
4241 STRIP="$ac_cv_prog_STRIP"
4242fi
4243
4244if test -n "$ac_tool_prefix"; then
4245 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4246set dummy ${ac_tool_prefix}windres; ac_word=$2
4247echo "$as_me:$LINENO: checking for $ac_word" >&5
4248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4249if test "${ac_cv_prog_WINDRES+set}" = set; then
4250 echo $ECHO_N "(cached) $ECHO_C" >&6
4251else
4252 if test -n "$WINDRES"; then
4253 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4254else
4255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256for as_dir in $PATH
4257do
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4262 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 break 2
4265 fi
4266done
4267done
4268
4269fi
4270fi
4271WINDRES=$ac_cv_prog_WINDRES
4272if test -n "$WINDRES"; then
4273 echo "$as_me:$LINENO: result: $WINDRES" >&5
4274echo "${ECHO_T}$WINDRES" >&6
4275else
4276 echo "$as_me:$LINENO: result: no" >&5
4277echo "${ECHO_T}no" >&6
4278fi
4279
4280fi
4281if test -z "$ac_cv_prog_WINDRES"; then
4282 ac_ct_WINDRES=$WINDRES
4283 # Extract the first word of "windres", so it can be a program name with args.
4284set dummy windres; ac_word=$2
4285echo "$as_me:$LINENO: checking for $ac_word" >&5
4286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4289else
4290 if test -n "$ac_ct_WINDRES"; then
4291 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4292else
4293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294for as_dir in $PATH
4295do
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_prog_ac_ct_WINDRES="windres"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 break 2
4303 fi
4304done
4305done
4306
4307 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4308fi
4309fi
4310ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4311if test -n "$ac_ct_WINDRES"; then
4312 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4313echo "${ECHO_T}$ac_ct_WINDRES" >&6
4314else
4315 echo "$as_me:$LINENO: result: no" >&5
4316echo "${ECHO_T}no" >&6
4317fi
4318
4319 WINDRES=$ac_ct_WINDRES
4320else
4321 WINDRES="$ac_cv_prog_WINDRES"
4322fi
4323
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004324# Find a good install program. We prefer a C program (faster),
4325# so one script is as good as another. But avoid the broken or
4326# incompatible versions:
4327# SysV /etc/install, /usr/sbin/install
4328# SunOS /usr/etc/install
4329# IRIX /sbin/install
4330# AIX /bin/install
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004331# AmigaOS /C/install, which installs bootblocks on floppy discs
Eric Pouech18ad24a2000-01-16 22:16:33 +00004332# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004333# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4334# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4335# ./install, which can be erroneously created by make from ./install.sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004336echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4337echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004338if test -z "$INSTALL"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004339if test "${ac_cv_path_install+set}" = set; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004341else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343for as_dir in $PATH
4344do
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 # Account for people who put trailing slashes in PATH elements.
4348case $as_dir/ in
4349 ./ | .// | /cC/* | \
4350 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4351 /usr/ucb/* ) ;;
4352 *)
4353 # OSF1 and SCO ODT 3.0 have their own names for install.
4354 # Don't use installbsd from OSF since it installs stuff as root
4355 # by default.
4356 for ac_prog in ginstall scoinst install; do
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4359 if test $ac_prog = install &&
4360 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4361 # AIX install. It has an incompatible calling convention.
4362 :
4363 elif test $ac_prog = install &&
4364 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4365 # program-specific install script used by HP pwplus--don't use.
4366 :
4367 else
4368 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4369 break 3
4370 fi
4371 fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004372 done
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004373 done
4374 ;;
4375esac
4376done
4377
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004378
4379fi
4380 if test "${ac_cv_path_install+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004381 INSTALL=$ac_cv_path_install
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004382 else
4383 # As a last resort, use the slow shell script. We don't cache a
4384 # path for INSTALL within a source directory, because that will
4385 # break other packages using the cache if that directory is
4386 # removed, or if the path is relative.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004387 INSTALL=$ac_install_sh
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004388 fi
4389fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004390echo "$as_me:$LINENO: result: $INSTALL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004391echo "${ECHO_T}$INSTALL" >&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004392
4393# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4394# It thinks the first close brace ends the variable substitution.
4395test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4396
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004397test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Eric Pouech18ad24a2000-01-16 22:16:33 +00004398
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004399test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4400
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004401echo "$as_me:$LINENO: checking whether ln -s works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004402echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4403LN_S=$as_ln_s
4404if test "$LN_S" = "ln -s"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004405 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004406echo "${ECHO_T}yes" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00004407else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004408 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004409echo "${ECHO_T}no, using $LN_S" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00004410fi
4411
Alexandre Julliarddf234a92002-05-22 02:10:39 +00004412echo "$as_me:$LINENO: checking whether ln works" >&5
4413echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4414rm -f conf$$ conf$$.file
4415echo >conf$$.file
4416if ln conf$$.file conf$$ 2>/dev/null; then
4417 LN=ln
4418
4419 echo "$as_me:$LINENO: result: yes" >&5
4420echo "${ECHO_T}yes" >&6
4421else
4422 LN="cp -p"
4423
4424 echo "$as_me:$LINENO: result: no, using $LN" >&5
4425echo "${ECHO_T}no, using $LN" >&6
4426fi
4427rm -f conf$$ conf$$.file
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004428# Extract the first word of "c2man", so it can be a program name with args.
4429set dummy c2man; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004430echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4432if test "${ac_cv_prog_C2MAN+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004434else
4435 if test -n "$C2MAN"; then
4436 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4437else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439for as_dir in $PATH
4440do
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4445 ac_cv_prog_C2MAN="c2man"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4448 fi
4449done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004450done
4451
Mike McCormacke0df32f2000-08-11 21:15:21 +00004452 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004453fi
4454fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004455C2MAN=$ac_cv_prog_C2MAN
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004456if test -n "$C2MAN"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004457 echo "$as_me:$LINENO: result: $C2MAN" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004458echo "${ECHO_T}$C2MAN" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004459else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004460 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004461echo "${ECHO_T}no" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004462fi
4463
James Juranffe6b761999-06-12 08:21:57 +00004464# Extract the first word of "ldconfig", so it can be a program name with args.
4465set dummy ldconfig; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004466echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4468if test "${ac_cv_path_LDCONFIG+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
James Juranffe6b761999-06-12 08:21:57 +00004470else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004471 case $LDCONFIG in
4472 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00004473 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4474 ;;
4475 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00004477for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004478do
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4483 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 break 2
4486 fi
4487done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004488done
4489
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004490 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00004491 ;;
4492esac
4493fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004494LDCONFIG=$ac_cv_path_LDCONFIG
4495
James Juranffe6b761999-06-12 08:21:57 +00004496if test -n "$LDCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004497 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004498echo "${ECHO_T}$LDCONFIG" >&6
James Juranffe6b761999-06-12 08:21:57 +00004499else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004500 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004501echo "${ECHO_T}no" >&6
James Juranffe6b761999-06-12 08:21:57 +00004502fi
4503
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004504
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004505for ac_prog in lclint lint
4506do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004507 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004508set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004509echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4511if test "${ac_cv_prog_LINT+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004513else
4514 if test -n "$LINT"; then
4515 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4516else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518for as_dir in $PATH
4519do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524 ac_cv_prog_LINT="$ac_prog"
4525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4527 fi
4528done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004529done
4530
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004531fi
4532fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004533LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004534if test -n "$LINT"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004535 echo "$as_me:$LINENO: result: $LINT" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004536echo "${ECHO_T}$LINT" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004537else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004538 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004539echo "${ECHO_T}no" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004540fi
4541
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004542 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004543done
4544
4545if test "$LINT" = "lint"
4546then
4547 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4548 fi
4549
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004550
4551
Vincent Béron1d8cb6e2002-11-23 01:20:02 +00004552for ac_prog in docbook2html db2html
4553do
4554 # Extract the first word of "$ac_prog", so it can be a program name with args.
4555set dummy $ac_prog; ac_word=$2
4556echo "$as_me:$LINENO: checking for $ac_word" >&5
4557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4558if test "${ac_cv_prog_DB2HTML+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4560else
4561 if test -n "$DB2HTML"; then
4562 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4563else
4564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565for as_dir in $PATH
4566do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571 ac_cv_prog_DB2HTML="$ac_prog"
4572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4574 fi
4575done
4576done
4577
4578fi
4579fi
4580DB2HTML=$ac_cv_prog_DB2HTML
4581if test -n "$DB2HTML"; then
4582 echo "$as_me:$LINENO: result: $DB2HTML" >&5
4583echo "${ECHO_T}$DB2HTML" >&6
4584else
4585 echo "$as_me:$LINENO: result: no" >&5
4586echo "${ECHO_T}no" >&6
4587fi
4588
4589 test -n "$DB2HTML" && break
4590done
4591test -n "$DB2HTML" || DB2HTML="false"
4592
4593
4594
4595for ac_prog in docbook2pdf db2pdf
4596do
4597 # Extract the first word of "$ac_prog", so it can be a program name with args.
4598set dummy $ac_prog; ac_word=$2
4599echo "$as_me:$LINENO: checking for $ac_word" >&5
4600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4601if test "${ac_cv_prog_DB2PDF+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603else
4604 if test -n "$DB2PDF"; then
4605 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4606else
4607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH
4609do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614 ac_cv_prog_DB2PDF="$ac_prog"
4615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4617 fi
4618done
4619done
4620
4621fi
4622fi
4623DB2PDF=$ac_cv_prog_DB2PDF
4624if test -n "$DB2PDF"; then
4625 echo "$as_me:$LINENO: result: $DB2PDF" >&5
4626echo "${ECHO_T}$DB2PDF" >&6
4627else
4628 echo "$as_me:$LINENO: result: no" >&5
4629echo "${ECHO_T}no" >&6
4630fi
4631
4632 test -n "$DB2PDF" && break
4633done
4634test -n "$DB2PDF" || DB2PDF="false"
4635
4636
4637
4638for ac_prog in docbook2ps db2ps
4639do
4640 # Extract the first word of "$ac_prog", so it can be a program name with args.
4641set dummy $ac_prog; ac_word=$2
4642echo "$as_me:$LINENO: checking for $ac_word" >&5
4643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4644if test "${ac_cv_prog_DB2PS+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4646else
4647 if test -n "$DB2PS"; then
4648 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4649else
4650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH
4652do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_prog_DB2PS="$ac_prog"
4658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4660 fi
4661done
4662done
4663
4664fi
4665fi
4666DB2PS=$ac_cv_prog_DB2PS
4667if test -n "$DB2PS"; then
4668 echo "$as_me:$LINENO: result: $DB2PS" >&5
4669echo "${ECHO_T}$DB2PS" >&6
4670else
4671 echo "$as_me:$LINENO: result: no" >&5
4672echo "${ECHO_T}no" >&6
4673fi
4674
4675 test -n "$DB2PS" && break
4676done
4677test -n "$DB2PS" || DB2PS="false"
4678
4679
4680
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004681
4682
4683echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004684echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4685if test "${ac_cv_lib_m_sqrt+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00004687else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004688 ac_check_lib_save_LIBS=$LIBS
Howard Abrams13277481999-07-10 13:16:29 +00004689LIBS="-lm $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004690cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004691#line $LINENO "configure"
Howard Abrams13277481999-07-10 13:16:29 +00004692#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004693
Howard Abrams13277481999-07-10 13:16:29 +00004694/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004695#ifdef __cplusplus
4696extern "C"
4697#endif
Howard Abrams13277481999-07-10 13:16:29 +00004698/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004699 builtin and then its argument prototype would still apply. */
4700char sqrt ();
4701int
4702main ()
4703{
4704sqrt ();
4705 ;
4706 return 0;
4707}
4708_ACEOF
4709rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004711 (eval $ac_link) 2>&5
4712 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004714 (exit $ac_status); } &&
4715 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004717 (eval $ac_try) 2>&5
4718 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004720 (exit $ac_status); }; }; then
4721 ac_cv_lib_m_sqrt=yes
Howard Abrams13277481999-07-10 13:16:29 +00004722else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004723 echo "$as_me: failed program was:" >&5
4724cat conftest.$ac_ext >&5
4725ac_cv_lib_m_sqrt=no
Howard Abrams13277481999-07-10 13:16:29 +00004726fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004727rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4728LIBS=$ac_check_lib_save_LIBS
Howard Abrams13277481999-07-10 13:16:29 +00004729fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004730echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004731echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4732if test $ac_cv_lib_m_sqrt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004733 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004734#define HAVE_LIBM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004735_ACEOF
Howard Abrams13277481999-07-10 13:16:29 +00004736
4737 LIBS="-lm $LIBS"
4738
Howard Abrams13277481999-07-10 13:16:29 +00004739fi
4740
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004741
4742echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004743echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4744if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00004746else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004747 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00004748LIBS="-li386 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004749cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004750#line $LINENO "configure"
Alexandre Julliard902da691995-11-05 14:39:02 +00004751#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004752
Alexandre Julliard59730ae1996-03-24 16:20:51 +00004753/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004754#ifdef __cplusplus
4755extern "C"
4756#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004757/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004758 builtin and then its argument prototype would still apply. */
4759char i386_set_ldt ();
4760int
4761main ()
4762{
4763i386_set_ldt ();
4764 ;
4765 return 0;
4766}
4767_ACEOF
4768rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004770 (eval $ac_link) 2>&5
4771 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004773 (exit $ac_status); } &&
4774 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004776 (eval $ac_try) 2>&5
4777 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004779 (exit $ac_status); }; }; then
4780 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00004781else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004782 echo "$as_me: failed program was:" >&5
4783cat conftest.$ac_ext >&5
4784ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00004785fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004786rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4787LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00004788fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004789echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004790echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4791if test $ac_cv_lib_i386_i386_set_ldt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004792 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004793#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004794_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00004795
4796 LIBS="-li386 $LIBS"
4797
Alexandre Julliard02e90081998-01-04 17:49:09 +00004798fi
4799
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004800
4801echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004802echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4803if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00004805else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004806 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00004807LIBS="-lossaudio $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004808cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004809#line $LINENO "configure"
Todd Vierlingecc76691998-12-15 17:49:02 +00004810#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004811
Todd Vierlingecc76691998-12-15 17:49:02 +00004812/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004813#ifdef __cplusplus
4814extern "C"
4815#endif
Todd Vierlingecc76691998-12-15 17:49:02 +00004816/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004817 builtin and then its argument prototype would still apply. */
4818char _oss_ioctl ();
4819int
4820main ()
4821{
4822_oss_ioctl ();
4823 ;
4824 return 0;
4825}
4826_ACEOF
4827rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004829 (eval $ac_link) 2>&5
4830 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004832 (exit $ac_status); } &&
4833 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004835 (eval $ac_try) 2>&5
4836 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004838 (exit $ac_status); }; }; then
4839 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00004840else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004841 echo "$as_me: failed program was:" >&5
4842cat conftest.$ac_ext >&5
4843ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00004844fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004845rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4846LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00004847fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004848echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004849echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4850if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004851 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004852#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004853_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00004854
4855 LIBS="-lossaudio $LIBS"
4856
Todd Vierlingecc76691998-12-15 17:49:02 +00004857fi
4858
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004859
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004860for ac_func in iswalnum
Patrik Stridvallea584721998-11-01 16:22:07 +00004861do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004863echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4865if eval "test \"\${$as_ac_var+set}\" = set"; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00004867else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004868 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004869#line $LINENO "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00004870#include "confdefs.h"
4871/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004872 which can conflict with char $ac_func (); below. */
Patrik Stridvallea584721998-11-01 16:22:07 +00004873#include <assert.h>
4874/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004875#ifdef __cplusplus
4876extern "C"
4877#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00004878/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004879 builtin and then its argument prototype would still apply. */
4880char $ac_func ();
4881char (*f) ();
Patrik Stridvallea584721998-11-01 16:22:07 +00004882
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004883int
4884main ()
4885{
Patrik Stridvallea584721998-11-01 16:22:07 +00004886/* The GNU C library defines this for functions which it implements
4887 to always fail with ENOSYS. Some functions are actually named
4888 something starting with __ and the normal name is an alias. */
4889#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4890choke me
4891#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004892f = $ac_func;
Patrik Stridvallea584721998-11-01 16:22:07 +00004893#endif
4894
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004895 ;
4896 return 0;
4897}
4898_ACEOF
4899rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004901 (eval $ac_link) 2>&5
4902 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004904 (exit $ac_status); } &&
4905 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004907 (eval $ac_try) 2>&5
4908 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004910 (exit $ac_status); }; }; then
4911 eval "$as_ac_var=yes"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004912else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004913 echo "$as_me: failed program was:" >&5
4914cat conftest.$ac_ext >&5
4915eval "$as_ac_var=no"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004916fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004917rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004918fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004920echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4921if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004922 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004923#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004924_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004925
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004926else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004927
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004928echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004929echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4930if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004932else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004933 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004934LIBS="-lw $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004935cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004936#line $LINENO "configure"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004937#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004938
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004939/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004940#ifdef __cplusplus
4941extern "C"
4942#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004943/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004944 builtin and then its argument prototype would still apply. */
4945char iswalnum ();
4946int
4947main ()
4948{
4949iswalnum ();
4950 ;
4951 return 0;
4952}
4953_ACEOF
4954rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004956 (eval $ac_link) 2>&5
4957 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004959 (exit $ac_status); } &&
4960 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004962 (eval $ac_try) 2>&5
4963 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004965 (exit $ac_status); }; }; then
4966 ac_cv_lib_w_iswalnum=yes
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004967else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004968 echo "$as_me: failed program was:" >&5
4969cat conftest.$ac_ext >&5
4970ac_cv_lib_w_iswalnum=no
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004971fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004972rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4973LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004974fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004975echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004976echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4977if test $ac_cv_lib_w_iswalnum = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004978 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004979#define HAVE_LIBW 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004980_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004981
4982 LIBS="-lw $LIBS"
4983
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004984fi
4985
4986fi
4987done
4988
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004989
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004990for ac_func in gethostbyname
4991do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004992as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004993echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004994echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4995if eval "test \"\${$as_ac_var+set}\" = set"; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004997else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004998 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004999#line $LINENO "configure"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005000#include "confdefs.h"
5001/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005002 which can conflict with char $ac_func (); below. */
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005003#include <assert.h>
5004/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005005#ifdef __cplusplus
5006extern "C"
5007#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005008/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005009 builtin and then its argument prototype would still apply. */
5010char $ac_func ();
5011char (*f) ();
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005012
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005013int
5014main ()
5015{
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005016/* The GNU C library defines this for functions which it implements
5017 to always fail with ENOSYS. Some functions are actually named
5018 something starting with __ and the normal name is an alias. */
5019#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5020choke me
5021#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005022f = $ac_func;
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005023#endif
5024
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005025 ;
5026 return 0;
5027}
5028_ACEOF
5029rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005031 (eval $ac_link) 2>&5
5032 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005034 (exit $ac_status); } &&
5035 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005037 (eval $ac_try) 2>&5
5038 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005040 (exit $ac_status); }; }; then
5041 eval "$as_ac_var=yes"
Patrik Stridvallea584721998-11-01 16:22:07 +00005042else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005043 echo "$as_me: failed program was:" >&5
5044cat conftest.$ac_ext >&5
5045eval "$as_ac_var=no"
Patrik Stridvallea584721998-11-01 16:22:07 +00005046fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005047rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvallea584721998-11-01 16:22:07 +00005048fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005050echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5051if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005052 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005053#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005054_ACEOF
Patrik Stridvallea584721998-11-01 16:22:07 +00005055
Patrik Stridvallea584721998-11-01 16:22:07 +00005056else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005057
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005058echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005059echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5060if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00005062else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005063 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005064LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005065cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005066#line $LINENO "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00005067#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005068
Patrik Stridvallea584721998-11-01 16:22:07 +00005069/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005070#ifdef __cplusplus
5071extern "C"
5072#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00005073/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005074 builtin and then its argument prototype would still apply. */
5075char gethostbyname ();
5076int
5077main ()
5078{
5079gethostbyname ();
5080 ;
5081 return 0;
5082}
5083_ACEOF
5084rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005086 (eval $ac_link) 2>&5
5087 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005089 (exit $ac_status); } &&
5090 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005092 (eval $ac_try) 2>&5
5093 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005095 (exit $ac_status); }; }; then
5096 ac_cv_lib_nsl_gethostbyname=yes
Patrik Stridvallea584721998-11-01 16:22:07 +00005097else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005098 echo "$as_me: failed program was:" >&5
5099cat conftest.$ac_ext >&5
5100ac_cv_lib_nsl_gethostbyname=no
Patrik Stridvallea584721998-11-01 16:22:07 +00005101fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005102rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5103LIBS=$ac_check_lib_save_LIBS
Patrik Stridvallea584721998-11-01 16:22:07 +00005104fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005105echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005106echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5107if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005108 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005109#define HAVE_LIBNSL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005110_ACEOF
Ron Recorde977d6c1999-09-05 12:32:05 +00005111
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005112 LIBS="-lnsl $LIBS"
5113
Ron Recorde977d6c1999-09-05 12:32:05 +00005114fi
5115
Patrik Stridvallea584721998-11-01 16:22:07 +00005116fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00005117done
5118
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005119
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005120for ac_func in connect
5121do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005123echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5125if eval "test \"\${$as_ac_var+set}\" = set"; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005127else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005128 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005129#line $LINENO "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005130#include "confdefs.h"
5131/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005132 which can conflict with char $ac_func (); below. */
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005133#include <assert.h>
5134/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005135#ifdef __cplusplus
5136extern "C"
5137#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005138/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005139 builtin and then its argument prototype would still apply. */
5140char $ac_func ();
5141char (*f) ();
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005142
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005143int
5144main ()
5145{
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005146/* The GNU C library defines this for functions which it implements
5147 to always fail with ENOSYS. Some functions are actually named
5148 something starting with __ and the normal name is an alias. */
5149#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5150choke me
5151#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005152f = $ac_func;
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005153#endif
5154
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005155 ;
5156 return 0;
5157}
5158_ACEOF
5159rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005161 (eval $ac_link) 2>&5
5162 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005164 (exit $ac_status); } &&
5165 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005167 (eval $ac_try) 2>&5
5168 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005170 (exit $ac_status); }; }; then
5171 eval "$as_ac_var=yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005172else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005173 echo "$as_me: failed program was:" >&5
5174cat conftest.$ac_ext >&5
5175eval "$as_ac_var=no"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005176fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005177rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005178fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005180echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5181if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005182 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005183#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005184_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005185
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005186else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005187
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005188echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005189echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5190if test "${ac_cv_lib_socket_connect+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005192else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005193 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005194LIBS="-lsocket $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005195cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005196#line $LINENO "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005197#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005198
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005199/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005200#ifdef __cplusplus
5201extern "C"
5202#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005203/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005204 builtin and then its argument prototype would still apply. */
5205char connect ();
5206int
5207main ()
5208{
5209connect ();
5210 ;
5211 return 0;
5212}
5213_ACEOF
5214rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005216 (eval $ac_link) 2>&5
5217 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005219 (exit $ac_status); } &&
5220 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005222 (eval $ac_try) 2>&5
5223 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005225 (exit $ac_status); }; }; then
5226 ac_cv_lib_socket_connect=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005227else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005228 echo "$as_me: failed program was:" >&5
5229cat conftest.$ac_ext >&5
5230ac_cv_lib_socket_connect=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005231fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5233LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005234fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005235echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005236echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5237if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005238 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005239#define HAVE_LIBSOCKET 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005240_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005241
5242 LIBS="-lsocket $LIBS"
5243
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005244fi
5245
5246fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00005247done
5248
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005249
Alexandre Julliardc5552742002-04-03 20:24:44 +00005250for ac_func in inet_aton
5251do
5252as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005253echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005254echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5255if eval "test \"\${$as_ac_var+set}\" = set"; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257else
5258 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005259#line $LINENO "configure"
Alexandre Julliardc5552742002-04-03 20:24:44 +00005260#include "confdefs.h"
5261/* System header to define __stub macros and hopefully few prototypes,
5262 which can conflict with char $ac_func (); below. */
5263#include <assert.h>
5264/* Override any gcc2 internal prototype to avoid an error. */
5265#ifdef __cplusplus
5266extern "C"
5267#endif
5268/* We use char because int might match the return type of a gcc2
5269 builtin and then its argument prototype would still apply. */
5270char $ac_func ();
5271char (*f) ();
5272
5273int
5274main ()
5275{
5276/* The GNU C library defines this for functions which it implements
5277 to always fail with ENOSYS. Some functions are actually named
5278 something starting with __ and the normal name is an alias. */
5279#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5280choke me
5281#else
5282f = $ac_func;
5283#endif
5284
5285 ;
5286 return 0;
5287}
5288_ACEOF
5289rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005291 (eval $ac_link) 2>&5
5292 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005294 (exit $ac_status); } &&
5295 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005297 (eval $ac_try) 2>&5
5298 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005300 (exit $ac_status); }; }; then
5301 eval "$as_ac_var=yes"
5302else
5303 echo "$as_me: failed program was:" >&5
5304cat conftest.$ac_ext >&5
5305eval "$as_ac_var=no"
5306fi
5307rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5308fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005310echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5311if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005312 cat >>confdefs.h <<_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00005313#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005314_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00005315
5316else
5317
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005318echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005319echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5320if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5322else
5323 ac_check_lib_save_LIBS=$LIBS
5324LIBS="-lresolv $LIBS"
5325cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005326#line $LINENO "configure"
Francois Gouget3b943bc2002-04-01 21:05:15 +00005327#include "confdefs.h"
5328
5329/* Override any gcc2 internal prototype to avoid an error. */
5330#ifdef __cplusplus
5331extern "C"
5332#endif
5333/* We use char because int might match the return type of a gcc2
5334 builtin and then its argument prototype would still apply. */
5335char inet_aton ();
5336int
5337main ()
5338{
5339inet_aton ();
5340 ;
5341 return 0;
5342}
5343_ACEOF
5344rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005346 (eval $ac_link) 2>&5
5347 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005349 (exit $ac_status); } &&
5350 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005352 (eval $ac_try) 2>&5
5353 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005355 (exit $ac_status); }; }; then
5356 ac_cv_lib_resolv_inet_aton=yes
5357else
5358 echo "$as_me: failed program was:" >&5
5359cat conftest.$ac_ext >&5
5360ac_cv_lib_resolv_inet_aton=no
5361fi
5362rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5363LIBS=$ac_check_lib_save_LIBS
5364fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005365echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005366echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5367if test $ac_cv_lib_resolv_inet_aton = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005368 cat >>confdefs.h <<_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00005369#define HAVE_LIBRESOLV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005370_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00005371
5372 LIBS="-lresolv $LIBS"
5373
5374fi
5375
Alexandre Julliardc5552742002-04-03 20:24:44 +00005376fi
5377done
5378
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005379
5380echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005381echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5382if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005384else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005385 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005386LIBS="-lxpg4 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005387cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005388#line $LINENO "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005389#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005390
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005391/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005392#ifdef __cplusplus
5393extern "C"
5394#endif
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005395/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005396 builtin and then its argument prototype would still apply. */
5397char _xpg4_setrunelocale ();
5398int
5399main ()
5400{
5401_xpg4_setrunelocale ();
5402 ;
5403 return 0;
5404}
5405_ACEOF
5406rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005408 (eval $ac_link) 2>&5
5409 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005411 (exit $ac_status); } &&
5412 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005414 (eval $ac_try) 2>&5
5415 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005417 (exit $ac_status); }; }; then
5418 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005419else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005420 echo "$as_me: failed program was:" >&5
5421cat conftest.$ac_ext >&5
5422ac_cv_lib_xpg4__xpg4_setrunelocale=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005423fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005424rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5425LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005426fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005427echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005428echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5429if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005430 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005431#define HAVE_LIBXPG4 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005432_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005433
5434 LIBS="-lxpg4 $LIBS"
5435
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005436fi
5437
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005438
5439echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005440echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5441if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005443else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005444 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005445LIBS="-lmmap $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005446cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005447#line $LINENO "configure"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005448#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005449
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005450/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005451#ifdef __cplusplus
5452extern "C"
5453#endif
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005454/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005455 builtin and then its argument prototype would still apply. */
5456char mmap ();
5457int
5458main ()
5459{
5460mmap ();
5461 ;
5462 return 0;
5463}
5464_ACEOF
5465rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005467 (eval $ac_link) 2>&5
5468 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005470 (exit $ac_status); } &&
5471 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005473 (eval $ac_try) 2>&5
5474 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005476 (exit $ac_status); }; }; then
5477 ac_cv_lib_mmap_mmap=yes
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005478else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005479 echo "$as_me: failed program was:" >&5
5480cat conftest.$ac_ext >&5
5481ac_cv_lib_mmap_mmap=no
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005482fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005483rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5484LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005485fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005486echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005487echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5488if test $ac_cv_lib_mmap_mmap = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005489 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005490#define HAVE_LIBMMAP 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005491_ACEOF
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005492
5493 LIBS="-lmmap $LIBS"
5494
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005495fi
5496
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005497
Alexandre Julliardfa3a5362002-05-09 01:49:54 +00005498JPEGLIB=""
Alexandre Julliard562089b2001-12-31 22:28:35 +00005499
Alexandre Julliard11af04e2002-10-10 03:48:04 +00005500echo "$as_me:$LINENO: checking for egrep" >&5
5501echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5502if test "${ac_cv_prog_egrep+set}" = set; then
5503 echo $ECHO_N "(cached) $ECHO_C" >&6
5504else
5505 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5506 then ac_cv_prog_egrep='grep -E'
5507 else ac_cv_prog_egrep='egrep'
5508 fi
5509fi
5510echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5511echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5512 EGREP=$ac_cv_prog_egrep
5513
5514
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005515echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5516echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5517if test "${ac_cv_header_stdc+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005518 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00005519else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005520 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005521#line $LINENO "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00005522#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005523#include <stdlib.h>
5524#include <stdarg.h>
5525#include <string.h>
5526#include <float.h>
5527
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005528_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005529if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5531 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00005532 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005533 rm -f conftest.er1
5534 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005536 (exit $ac_status); } >/dev/null; then
5537 if test -s conftest.err; then
5538 ac_cpp_err=$ac_c_preproc_warn_flag
5539 else
5540 ac_cpp_err=
5541 fi
Marcus Meissner2d7be871999-12-05 23:06:40 +00005542else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005543 ac_cpp_err=yes
5544fi
5545if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005546 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005547else
5548 echo "$as_me: failed program was:" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00005549 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005550 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005551fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005552rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005553
5554if test $ac_cv_header_stdc = yes; then
5555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5556 cat >conftest.$ac_ext <<_ACEOF
5557#line $LINENO "configure"
5558#include "confdefs.h"
5559#include <string.h>
5560
5561_ACEOF
5562if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00005563 $EGREP "memchr" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005564 :
5565else
5566 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005567fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005568rm -f conftest*
5569
5570fi
5571
5572if test $ac_cv_header_stdc = yes; then
5573 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5574 cat >conftest.$ac_ext <<_ACEOF
5575#line $LINENO "configure"
5576#include "confdefs.h"
5577#include <stdlib.h>
5578
5579_ACEOF
5580if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00005581 $EGREP "free" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005582 :
5583else
5584 ac_cv_header_stdc=no
5585fi
5586rm -f conftest*
5587
5588fi
5589
5590if test $ac_cv_header_stdc = yes; then
5591 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5592 if test "$cross_compiling" = yes; then
5593 :
5594else
5595 cat >conftest.$ac_ext <<_ACEOF
5596#line $LINENO "configure"
5597#include "confdefs.h"
5598#include <ctype.h>
5599#if ((' ' & 0x0FF) == 0x020)
5600# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5601# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5602#else
5603# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5604 || ('j' <= (c) && (c) <= 'r') \
5605 || ('s' <= (c) && (c) <= 'z'))
5606# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5607#endif
5608
5609#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5610int
5611main ()
5612{
5613 int i;
5614 for (i = 0; i < 256; i++)
5615 if (XOR (islower (i), ISLOWER (i))
5616 || toupper (i) != TOUPPER (i))
5617 exit(2);
5618 exit (0);
5619}
5620_ACEOF
5621rm -f conftest$ac_exeext
5622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5623 (eval $ac_link) 2>&5
5624 ac_status=$?
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628 (eval $ac_try) 2>&5
5629 ac_status=$?
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; }; then
5632 :
5633else
5634 echo "$as_me: program exited with status $ac_status" >&5
5635echo "$as_me: failed program was:" >&5
5636cat conftest.$ac_ext >&5
5637( exit $ac_status )
5638ac_cv_header_stdc=no
5639fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +00005640rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005641fi
5642fi
5643fi
5644echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5645echo "${ECHO_T}$ac_cv_header_stdc" >&6
5646if test $ac_cv_header_stdc = yes; then
5647
5648cat >>confdefs.h <<\_ACEOF
5649#define STDC_HEADERS 1
5650_ACEOF
5651
5652fi
5653
5654# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5665 inttypes.h stdint.h unistd.h
5666do
5667as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5668echo "$as_me:$LINENO: checking for $ac_header" >&5
5669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5670if eval "test \"\${$as_ac_Header+set}\" = set"; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5672else
5673 cat >conftest.$ac_ext <<_ACEOF
5674#line $LINENO "configure"
5675#include "confdefs.h"
5676$ac_includes_default
5677
5678#include <$ac_header>
5679_ACEOF
5680rm -f conftest.$ac_objext
5681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5682 (eval $ac_compile) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } &&
5686 { ac_try='test -s conftest.$ac_objext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 (eval $ac_try) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 eval "$as_ac_Header=yes"
5693else
5694 echo "$as_me: failed program was:" >&5
5695cat conftest.$ac_ext >&5
5696eval "$as_ac_Header=no"
5697fi
5698rm -f conftest.$ac_objext conftest.$ac_ext
5699fi
5700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5702if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005703 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005704#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005705_ACEOF
5706
5707fi
5708
5709done
5710
5711
5712
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005713for ac_header in jpeglib.h
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005714do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005715as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005716if eval "test \"\${$as_ac_Header+set}\" = set"; then
5717 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5719if eval "test \"\${$as_ac_Header+set}\" = set"; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005721fi
5722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5723echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005724else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005725 # Is the header compilable?
5726echo "$as_me:$LINENO: checking $ac_header usability" >&5
5727echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5728cat >conftest.$ac_ext <<_ACEOF
5729#line $LINENO "configure"
5730#include "confdefs.h"
5731$ac_includes_default
5732#include <$ac_header>
5733_ACEOF
5734rm -f conftest.$ac_objext
5735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5736 (eval $ac_compile) 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try='test -s conftest.$ac_objext'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
5746 ac_header_compiler=yes
5747else
5748 echo "$as_me: failed program was:" >&5
5749cat conftest.$ac_ext >&5
5750ac_header_compiler=no
5751fi
5752rm -f conftest.$ac_objext conftest.$ac_ext
5753echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5754echo "${ECHO_T}$ac_header_compiler" >&6
5755
5756# Is the header present?
5757echo "$as_me:$LINENO: checking $ac_header presence" >&5
5758echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5759cat >conftest.$ac_ext <<_ACEOF
5760#line $LINENO "configure"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005761#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005762#include <$ac_header>
5763_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005764if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5766 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00005767 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005768 rm -f conftest.er1
5769 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005771 (exit $ac_status); } >/dev/null; then
5772 if test -s conftest.err; then
5773 ac_cpp_err=$ac_c_preproc_warn_flag
5774 else
5775 ac_cpp_err=
5776 fi
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005777else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005778 ac_cpp_err=yes
5779fi
5780if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005781 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005782else
5783 echo "$as_me: failed program was:" >&5
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005784 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005785 ac_header_preproc=no
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005786fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005787rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005788echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5789echo "${ECHO_T}$ac_header_preproc" >&6
5790
5791# So? What about this header?
5792case $ac_header_compiler:$ac_header_preproc in
5793 yes:no )
5794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5795echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5797echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5798 no:yes )
5799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5800echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5802echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5804echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5805esac
5806echo "$as_me:$LINENO: checking for $ac_header" >&5
5807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5808if eval "test \"\${$as_ac_Header+set}\" = set"; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810else
5811 eval "$as_ac_Header=$ac_header_preproc"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005812fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005814echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005815
5816fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005817if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005818 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005819#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005820_ACEOF
5821 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005822echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5823if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005825else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005826 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005827LIBS="-ljpeg $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005828cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005829#line $LINENO "configure"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005830#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005831
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005832/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005833#ifdef __cplusplus
5834extern "C"
5835#endif
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005836/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005837 builtin and then its argument prototype would still apply. */
5838char jpeg_start_decompress ();
5839int
5840main ()
5841{
5842jpeg_start_decompress ();
5843 ;
5844 return 0;
5845}
5846_ACEOF
5847rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005849 (eval $ac_link) 2>&5
5850 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005852 (exit $ac_status); } &&
5853 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005855 (eval $ac_try) 2>&5
5856 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005858 (exit $ac_status); }; }; then
5859 ac_cv_lib_jpeg_jpeg_start_decompress=yes
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005860else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005861 echo "$as_me: failed program was:" >&5
5862cat conftest.$ac_ext >&5
5863ac_cv_lib_jpeg_jpeg_start_decompress=no
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005864fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005865rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5866LIBS=$ac_check_lib_save_LIBS
5867fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005868echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005869echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5870if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005871
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005872cat >>confdefs.h <<\_ACEOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005873#define HAVE_LIBJPEG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005874_ACEOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005875
5876 JPEGLIB="-ljpeg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005877
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005878fi
5879
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005880
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005881fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005882
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005883done
5884
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005885
5886
5887
5888
Patrik Stridvall2941a212000-04-25 20:34:22 +00005889XFILES=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +00005890
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00005891OPENGLFILES=""
5892
Marcus Meissnerb63ab442001-06-08 19:02:57 +00005893GLU32FILES=""
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00005894
5895OPENGL_LIBS=""
Patrik Stridvallea584721998-11-01 16:22:07 +00005896if test "$have_x" = "yes"
5897then
Patrik Stridvall24110281999-02-04 10:09:54 +00005898 XLIB="-lXext -lX11"
Ove Kaaven1eb593c1999-02-14 09:34:46 +00005899 ac_save_CPPFLAGS="$CPPFLAGS"
5900 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00005901
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005902
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005903for ac_header in X11/Xlib.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005904do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005905as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005906if eval "test \"\${$as_ac_Header+set}\" = set"; then
5907 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5909if eval "test \"\${$as_ac_Header+set}\" = set"; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005911fi
5912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5913echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005914else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005915 # Is the header compilable?
5916echo "$as_me:$LINENO: checking $ac_header usability" >&5
5917echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5918cat >conftest.$ac_ext <<_ACEOF
5919#line $LINENO "configure"
5920#include "confdefs.h"
5921$ac_includes_default
5922#include <$ac_header>
5923_ACEOF
5924rm -f conftest.$ac_objext
5925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5926 (eval $ac_compile) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
5930 { ac_try='test -s conftest.$ac_objext'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 (eval $ac_try) 2>&5
5933 ac_status=$?
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; }; then
5936 ac_header_compiler=yes
5937else
5938 echo "$as_me: failed program was:" >&5
5939cat conftest.$ac_ext >&5
5940ac_header_compiler=no
5941fi
5942rm -f conftest.$ac_objext conftest.$ac_ext
5943echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5944echo "${ECHO_T}$ac_header_compiler" >&6
5945
5946# Is the header present?
5947echo "$as_me:$LINENO: checking $ac_header presence" >&5
5948echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5949cat >conftest.$ac_ext <<_ACEOF
5950#line $LINENO "configure"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005951#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005952#include <$ac_header>
5953_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005954if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5956 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00005957 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005958 rm -f conftest.er1
5959 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005961 (exit $ac_status); } >/dev/null; then
5962 if test -s conftest.err; then
5963 ac_cpp_err=$ac_c_preproc_warn_flag
5964 else
5965 ac_cpp_err=
5966 fi
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005967else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005968 ac_cpp_err=yes
5969fi
5970if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005971 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005972else
5973 echo "$as_me: failed program was:" >&5
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005974 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005975 ac_header_preproc=no
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005976fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005977rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005978echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5979echo "${ECHO_T}$ac_header_preproc" >&6
5980
5981# So? What about this header?
5982case $ac_header_compiler:$ac_header_preproc in
5983 yes:no )
5984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5985echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5987echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5988 no:yes )
5989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5990echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5992echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5994echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5995esac
5996echo "$as_me:$LINENO: checking for $ac_header" >&5
5997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5998if eval "test \"\${$as_ac_Header+set}\" = set"; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6000else
6001 eval "$as_ac_Header=$ac_header_preproc"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00006002fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006003echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006004echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006005
6006fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006007if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006008 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006009#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006010_ACEOF
6011
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006012
6013for ac_header in X11/XKBlib.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006014do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006015as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006016echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6018if eval "test \"\${$as_ac_Header+set}\" = set"; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006020else
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006021 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006022#line $LINENO "configure"
6023#include "confdefs.h"
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006024#include <X11/Xlib.h>
6025
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006026#include <$ac_header>
6027_ACEOF
6028rm -f conftest.$ac_objext
6029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6030 (eval $ac_compile) 2>&5
6031 ac_status=$?
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } &&
6034 { ac_try='test -s conftest.$ac_objext'
6035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 (eval $ac_try) 2>&5
6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; }; then
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006040 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006041else
6042 echo "$as_me: failed program was:" >&5
6043cat conftest.$ac_ext >&5
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006044eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006045fi
6046rm -f conftest.$ac_objext conftest.$ac_ext
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006047fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6050if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006051 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006052#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006053_ACEOF
6054 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006055echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6056if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006058else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006059 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00006060LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006061cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006062#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006063#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006064
Patrik Stridvall24110281999-02-04 10:09:54 +00006065/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006066#ifdef __cplusplus
6067extern "C"
6068#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00006069/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006070 builtin and then its argument prototype would still apply. */
6071char XkbQueryExtension ();
6072int
6073main ()
6074{
6075XkbQueryExtension ();
6076 ;
6077 return 0;
6078}
6079_ACEOF
6080rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006082 (eval $ac_link) 2>&5
6083 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006085 (exit $ac_status); } &&
6086 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006088 (eval $ac_try) 2>&5
6089 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006091 (exit $ac_status); }; }; then
6092 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00006093else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006094 echo "$as_me: failed program was:" >&5
6095cat conftest.$ac_ext >&5
6096ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006097fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006098rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6099LIBS=$ac_check_lib_save_LIBS
6100fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006101echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006102echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6103if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00006104
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006105cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006106#define HAVE_XKB 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006107_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00006108
Patrik Stridvall24110281999-02-04 10:09:54 +00006109fi
6110
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006111
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006112else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006113 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006114echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006115fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006116
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006117done
6118
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006119
6120
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006121for ac_header in X11/extensions/XShm.h
Patrik Stridvall24110281999-02-04 10:09:54 +00006122do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006123as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006124echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6126if eval "test \"\${$as_ac_Header+set}\" = set"; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006128else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006129 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006130#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006131#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006132#include <X11/Xlib.h>
6133
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006134#include <$ac_header>
6135_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006136rm -f conftest.$ac_objext
6137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6138 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006139 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } &&
6142 { ac_try='test -s conftest.$ac_objext'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 (eval $ac_try) 2>&5
6145 ac_status=$?
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006148 eval "$as_ac_Header=yes"
6149else
6150 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006151cat conftest.$ac_ext >&5
6152eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00006153fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006154rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00006155fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006156echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006157echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6158if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006159 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006160#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006161_ACEOF
6162 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006163echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6164if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00006166else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006167 ac_check_lib_save_LIBS=$LIBS
Francois Jacques5b6879c2000-07-28 23:04:54 +00006168LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006169cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006170#line $LINENO "configure"
Francois Jacques5b6879c2000-07-28 23:04:54 +00006171#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006172
Francois Jacques5b6879c2000-07-28 23:04:54 +00006173/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006174#ifdef __cplusplus
6175extern "C"
6176#endif
Francois Jacques5b6879c2000-07-28 23:04:54 +00006177/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006178 builtin and then its argument prototype would still apply. */
6179char XShmQueryExtension ();
6180int
6181main ()
6182{
6183XShmQueryExtension ();
6184 ;
6185 return 0;
6186}
6187_ACEOF
6188rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006190 (eval $ac_link) 2>&5
6191 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006193 (exit $ac_status); } &&
6194 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006196 (eval $ac_try) 2>&5
6197 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006199 (exit $ac_status); }; }; then
6200 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00006201else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006202 echo "$as_me: failed program was:" >&5
6203cat conftest.$ac_ext >&5
6204ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00006205fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006206rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6207LIBS=$ac_check_lib_save_LIBS
6208fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006209echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006210echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6211if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00006212
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006213cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006214#define HAVE_LIBXXSHM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006215_ACEOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00006216
Francois Jacques5b6879c2000-07-28 23:04:54 +00006217fi
6218
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006219
Francois Jacques5b6879c2000-07-28 23:04:54 +00006220else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006221 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006222echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
Francois Jacques5b6879c2000-07-28 23:04:54 +00006223fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006224
Francois Jacques5b6879c2000-07-28 23:04:54 +00006225done
6226
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006227
6228
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006229for ac_header in X11/Xutil.h
6230do
6231as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6232echo "$as_me:$LINENO: checking for $ac_header" >&5
6233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6234if eval "test \"\${$as_ac_Header+set}\" = set"; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6236else
6237 cat >conftest.$ac_ext <<_ACEOF
6238#line $LINENO "configure"
6239#include "confdefs.h"
6240#include <X11/Xlib.h>
6241
6242#include <$ac_header>
6243_ACEOF
6244rm -f conftest.$ac_objext
6245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6246 (eval $ac_compile) 2>&5
6247 ac_status=$?
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } &&
6250 { ac_try='test -s conftest.$ac_objext'
6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252 (eval $ac_try) 2>&5
6253 ac_status=$?
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; }; then
6256 eval "$as_ac_Header=yes"
6257else
6258 echo "$as_me: failed program was:" >&5
6259cat conftest.$ac_ext >&5
6260eval "$as_ac_Header=no"
6261fi
6262rm -f conftest.$ac_objext conftest.$ac_ext
6263fi
6264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6265echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6266if test `eval echo '${'$as_ac_Header'}'` = yes; then
6267 cat >>confdefs.h <<_ACEOF
6268#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6269_ACEOF
6270
6271fi
6272
6273done
6274
6275
6276
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006277for ac_header in X11/extensions/shape.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00006278do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006279as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006280echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6282if eval "test \"\${$as_ac_Header+set}\" = set"; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00006284else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006285 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006286#line $LINENO "configure"
Francois Jacques5b6879c2000-07-28 23:04:54 +00006287#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006288#include <X11/Xlib.h>
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006289 #ifdef HAVE_X11_XUTIL_H
6290 # include <X11/Xutil.h>
6291 #endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006292
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006293#include <$ac_header>
6294_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006295rm -f conftest.$ac_objext
6296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006298 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
6301 { ac_try='test -s conftest.$ac_objext'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303 (eval $ac_try) 2>&5
6304 ac_status=$?
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006307 eval "$as_ac_Header=yes"
6308else
6309 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006310cat conftest.$ac_ext >&5
6311eval "$as_ac_Header=no"
Francois Jacques5b6879c2000-07-28 23:04:54 +00006312fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006313rm -f conftest.$ac_objext conftest.$ac_ext
Francois Jacques5b6879c2000-07-28 23:04:54 +00006314fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006316echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6317if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006318 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006319#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006320_ACEOF
6321 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006322echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6323if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00006325else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006326 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00006327LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006328cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006329#line $LINENO "configure"
Ove Kaavenc90fb252001-01-02 22:39:14 +00006330#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006331
Ove Kaavenc90fb252001-01-02 22:39:14 +00006332/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006333#ifdef __cplusplus
6334extern "C"
6335#endif
Ove Kaavenc90fb252001-01-02 22:39:14 +00006336/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006337 builtin and then its argument prototype would still apply. */
6338char XShapeQueryExtension ();
6339int
6340main ()
6341{
6342XShapeQueryExtension ();
6343 ;
6344 return 0;
6345}
6346_ACEOF
6347rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006349 (eval $ac_link) 2>&5
6350 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006352 (exit $ac_status); } &&
6353 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006355 (eval $ac_try) 2>&5
6356 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006358 (exit $ac_status); }; }; then
6359 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00006360else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006361 echo "$as_me: failed program was:" >&5
6362cat conftest.$ac_ext >&5
6363ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00006364fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006365rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6366LIBS=$ac_check_lib_save_LIBS
6367fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006368echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006369echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6370if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00006371
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006372cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006373#define HAVE_LIBXSHAPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006374_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006375
Ove Kaavenc90fb252001-01-02 22:39:14 +00006376fi
6377
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006378
Ove Kaavenc90fb252001-01-02 22:39:14 +00006379else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006380 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006381echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
Ove Kaavenc90fb252001-01-02 22:39:14 +00006382fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006383
Ove Kaavenc90fb252001-01-02 22:39:14 +00006384done
6385
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006386
6387
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006388for ac_header in X11/extensions/xf86dga.h
Ove Kaavenc90fb252001-01-02 22:39:14 +00006389do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006390as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006391echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6393if eval "test \"\${$as_ac_Header+set}\" = set"; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00006395else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006396 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006397#line $LINENO "configure"
Ove Kaavenc90fb252001-01-02 22:39:14 +00006398#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006399#include <X11/Xlib.h>
6400
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006401#include <$ac_header>
6402_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006403rm -f conftest.$ac_objext
6404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006406 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } &&
6409 { ac_try='test -s conftest.$ac_objext'
6410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411 (eval $ac_try) 2>&5
6412 ac_status=$?
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006415 eval "$as_ac_Header=yes"
6416else
6417 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006418cat conftest.$ac_ext >&5
6419eval "$as_ac_Header=no"
Ove Kaavenc90fb252001-01-02 22:39:14 +00006420fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006421rm -f conftest.$ac_objext conftest.$ac_ext
Ove Kaavenc90fb252001-01-02 22:39:14 +00006422fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006424echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6425if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006426 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006428_ACEOF
6429 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006430echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6431if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006433else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006434 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006435LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006436 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006437cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006438#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006439#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006440
Patrik Stridvall24110281999-02-04 10:09:54 +00006441/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006442#ifdef __cplusplus
6443extern "C"
6444#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00006445/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006446 builtin and then its argument prototype would still apply. */
6447char XDGAQueryExtension ();
6448int
6449main ()
6450{
6451XDGAQueryExtension ();
6452 ;
6453 return 0;
6454}
6455_ACEOF
6456rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006458 (eval $ac_link) 2>&5
6459 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006461 (exit $ac_status); } &&
6462 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006464 (eval $ac_try) 2>&5
6465 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006467 (exit $ac_status); }; }; then
6468 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006469else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006470 echo "$as_me: failed program was:" >&5
6471cat conftest.$ac_ext >&5
6472ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006473fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006474rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6475LIBS=$ac_check_lib_save_LIBS
6476fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006477echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006478echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6479if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006480
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006481cat >>confdefs.h <<\_ACEOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006482#define HAVE_LIBXXF86DGA2 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006483_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006484
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006485 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006486
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006487else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006488 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006489echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6490if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006492else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006493 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006494LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6495 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006496cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006497#line $LINENO "configure"
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006498#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006499
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006500/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006501#ifdef __cplusplus
6502extern "C"
6503#endif
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006504/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006505 builtin and then its argument prototype would still apply. */
6506char XF86DGAQueryExtension ();
6507int
6508main ()
6509{
6510XF86DGAQueryExtension ();
6511 ;
6512 return 0;
6513}
6514_ACEOF
6515rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006517 (eval $ac_link) 2>&5
6518 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006520 (exit $ac_status); } &&
6521 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006523 (eval $ac_try) 2>&5
6524 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006526 (exit $ac_status); }; }; then
6527 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00006528else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006529 echo "$as_me: failed program was:" >&5
6530cat conftest.$ac_ext >&5
6531ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006532fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006533rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6534LIBS=$ac_check_lib_save_LIBS
6535fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006536echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006537echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6538if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00006539
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006540cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00006541#define HAVE_LIBXXF86DGA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006542_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006543
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006544 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006545
Patrik Stridvall24110281999-02-04 10:09:54 +00006546fi
6547
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006548
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006549fi
Patrik Stridvall24110281999-02-04 10:09:54 +00006550
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006551
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006552else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006553 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006554echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006555fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006556
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006557done
6558
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006559
6560
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006561for ac_header in X11/extensions/xf86vmode.h
Patrik Stridvall24110281999-02-04 10:09:54 +00006562do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006563as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006564echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6566if eval "test \"\${$as_ac_Header+set}\" = set"; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006568else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006569 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006570#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006571#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006572#include <X11/Xlib.h>
6573
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006574#include <$ac_header>
6575_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006576rm -f conftest.$ac_objext
6577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6578 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006579 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } &&
6582 { ac_try='test -s conftest.$ac_objext'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 (eval $ac_try) 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006588 eval "$as_ac_Header=yes"
6589else
6590 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006591cat conftest.$ac_ext >&5
6592eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00006593fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006594rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00006595fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006597echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6598if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006599 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006600#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006601_ACEOF
6602 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006603echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6604if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006606else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006607 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006608LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6609 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006610cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006611#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006612#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006613
Patrik Stridvall24110281999-02-04 10:09:54 +00006614/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006615#ifdef __cplusplus
6616extern "C"
6617#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00006618/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006619 builtin and then its argument prototype would still apply. */
6620char XF86VidModeQueryExtension ();
6621int
6622main ()
6623{
6624XF86VidModeQueryExtension ();
6625 ;
6626 return 0;
6627}
6628_ACEOF
6629rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006631 (eval $ac_link) 2>&5
6632 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006634 (exit $ac_status); } &&
6635 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006637 (eval $ac_try) 2>&5
6638 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006640 (exit $ac_status); }; }; then
6641 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00006642else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006643 echo "$as_me: failed program was:" >&5
6644cat conftest.$ac_ext >&5
6645ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006646fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006647rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6648LIBS=$ac_check_lib_save_LIBS
6649fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006650echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006651echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6652if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00006653
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006654cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00006655#define HAVE_LIBXXF86VM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006656_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006657
6658 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006659
Patrik Stridvall24110281999-02-04 10:09:54 +00006660fi
6661
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006662
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006663else
6664 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
6665echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006666fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006667
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006668done
Lionel Ulmer5c085701999-02-28 19:48:53 +00006669
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006670
6671
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006672for ac_header in X11/extensions/Xvlib.h
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006673do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006674as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006675echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006676echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6677if eval "test \"\${$as_ac_Header+set}\" = set"; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006679else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006680 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006681#line $LINENO "configure"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006682#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006683#include <X11/Xlib.h>
6684
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006685#include <$ac_header>
6686_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006687rm -f conftest.$ac_objext
6688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6689 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006690 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } &&
6693 { ac_try='test -s conftest.$ac_objext'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695 (eval $ac_try) 2>&5
6696 ac_status=$?
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006699 eval "$as_ac_Header=yes"
6700else
6701 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006702cat conftest.$ac_ext >&5
6703eval "$as_ac_Header=no"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006704fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006705rm -f conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006706fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006708echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6709if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006710 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006711#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006712_ACEOF
6713 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006714echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6715if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006717else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006718 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006719LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6720 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006721cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006722#line $LINENO "configure"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006723#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006724
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006725/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006726#ifdef __cplusplus
6727extern "C"
6728#endif
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006729/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006730 builtin and then its argument prototype would still apply. */
6731char XvShmCreateImage ();
6732int
6733main ()
6734{
6735XvShmCreateImage ();
6736 ;
6737 return 0;
6738}
6739_ACEOF
6740rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006742 (eval $ac_link) 2>&5
6743 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006745 (exit $ac_status); } &&
6746 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006748 (eval $ac_try) 2>&5
6749 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006751 (exit $ac_status); }; }; then
6752 ac_cv_lib_Xv_XvShmCreateImage=yes
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006753else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006754 echo "$as_me: failed program was:" >&5
6755cat conftest.$ac_ext >&5
6756ac_cv_lib_Xv_XvShmCreateImage=no
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006757fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006758rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6759LIBS=$ac_check_lib_save_LIBS
6760fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006761echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006762echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6763if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006764
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006765cat >>confdefs.h <<\_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006766#define HAVE_XVIDEO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006767_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006768
6769 X_PRE_LIBS="$X_PRE_LIBS -lXv"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006770
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006771fi
6772
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006773
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006774else
6775 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
6776echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006777fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006778
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006779done
6780
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006781
6782
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006783for ac_header in X11/extensions/Xrender.h
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006784do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006785as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006786echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6788if eval "test \"\${$as_ac_Header+set}\" = set"; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006790else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006791 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006792#line $LINENO "configure"
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006793#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006794#include <X11/Xlib.h>
6795
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006796#include <$ac_header>
6797_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006798rm -f conftest.$ac_objext
6799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6800 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006801 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); } &&
6804 { ac_try='test -s conftest.$ac_objext'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 (eval $ac_try) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006810 eval "$as_ac_Header=yes"
6811else
6812 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006813cat conftest.$ac_ext >&5
6814eval "$as_ac_Header=no"
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006815fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006816rm -f conftest.$ac_objext conftest.$ac_ext
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006817fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006819echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6820if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006821 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006822#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006823_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006824
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006825fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006826
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006827done
6828
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006829
6830
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006831fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006832
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006833done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006834
Alexandre Julliardb8074992002-11-21 21:51:24 +00006835 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00006836 then
Francois Gouget42dcd972002-01-29 17:52:28 +00006837 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00006838 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006839 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006840This prevents linking to OpenGL. Delete the file and restart configure." >&5
6841echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6842This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6843 { (exit 1); exit 1; }; }
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00006844 fi
6845
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006846
6847
6848for ac_header in GL/gl.h GL/glx.h
Patrik Stridvall24110281999-02-04 10:09:54 +00006849do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006850as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006851if eval "test \"\${$as_ac_Header+set}\" = set"; then
6852 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6854if eval "test \"\${$as_ac_Header+set}\" = set"; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006856fi
6857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6858echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006859else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006860 # Is the header compilable?
6861echo "$as_me:$LINENO: checking $ac_header usability" >&5
6862echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6863cat >conftest.$ac_ext <<_ACEOF
6864#line $LINENO "configure"
6865#include "confdefs.h"
6866$ac_includes_default
6867#include <$ac_header>
6868_ACEOF
6869rm -f conftest.$ac_objext
6870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6871 (eval $ac_compile) 2>&5
6872 ac_status=$?
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } &&
6875 { ac_try='test -s conftest.$ac_objext'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 (eval $ac_try) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; }; then
6881 ac_header_compiler=yes
6882else
6883 echo "$as_me: failed program was:" >&5
6884cat conftest.$ac_ext >&5
6885ac_header_compiler=no
6886fi
6887rm -f conftest.$ac_objext conftest.$ac_ext
6888echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6889echo "${ECHO_T}$ac_header_compiler" >&6
6890
6891# Is the header present?
6892echo "$as_me:$LINENO: checking $ac_header presence" >&5
6893echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6894cat >conftest.$ac_ext <<_ACEOF
6895#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006896#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006897#include <$ac_header>
6898_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006899if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6901 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006902 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006903 rm -f conftest.er1
6904 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006906 (exit $ac_status); } >/dev/null; then
6907 if test -s conftest.err; then
6908 ac_cpp_err=$ac_c_preproc_warn_flag
6909 else
6910 ac_cpp_err=
6911 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00006912else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006913 ac_cpp_err=yes
6914fi
6915if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006916 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006917else
6918 echo "$as_me: failed program was:" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00006919 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006920 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006921fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006922rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006923echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6924echo "${ECHO_T}$ac_header_preproc" >&6
6925
6926# So? What about this header?
6927case $ac_header_compiler:$ac_header_preproc in
6928 yes:no )
6929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6930echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6932echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6933 no:yes )
6934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6935echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6937echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6939echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6940esac
6941echo "$as_me:$LINENO: checking for $ac_header" >&5
6942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6943if eval "test \"\${$as_ac_Header+set}\" = set"; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6945else
6946 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00006947fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006949echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006950
Patrik Stridvall24110281999-02-04 10:09:54 +00006951fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006952if test `eval echo '${'$as_ac_Header'}'` = yes; then
6953 cat >>confdefs.h <<_ACEOF
6954#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6955_ACEOF
6956
6957fi
6958
Patrik Stridvall24110281999-02-04 10:09:54 +00006959done
6960
Marcus Meissner22a969b2000-08-08 20:46:50 +00006961 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00006962 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006963
6964for ac_header in GL/glext.h
6965do
6966as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6967echo "$as_me:$LINENO: checking for $ac_header" >&5
6968echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6969if eval "test \"\${$as_ac_Header+set}\" = set"; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6971else
6972 cat >conftest.$ac_ext <<_ACEOF
6973#line $LINENO "configure"
6974#include "confdefs.h"
6975#include <GL/glx.h>
6976
6977#include <$ac_header>
6978_ACEOF
6979rm -f conftest.$ac_objext
6980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6981 (eval $ac_compile) 2>&5
6982 ac_status=$?
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } &&
6985 { ac_try='test -s conftest.$ac_objext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 (eval $ac_try) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6991 eval "$as_ac_Header=yes"
6992else
6993 echo "$as_me: failed program was:" >&5
6994cat conftest.$ac_ext >&5
6995eval "$as_ac_Header=no"
6996fi
6997rm -f conftest.$ac_objext conftest.$ac_ext
6998fi
6999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7001if test `eval echo '${'$as_ac_Header'}'` = yes; then
7002 cat >>confdefs.h <<_ACEOF
7003#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7004_ACEOF
7005
7006fi
7007
7008done
7009
7010 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007011echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7012if test "${wine_cv_opengl_version_OK+set}" = set; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00007014else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007015 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007016#line $LINENO "configure"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007017#include "confdefs.h"
7018#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007019int
7020main ()
7021{
Lionel Ulmer5c085701999-02-28 19:48:53 +00007022GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007023 ;
7024 return 0;
7025}
7026_ACEOF
7027rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007029 (eval $ac_compile) 2>&5
7030 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007032 (exit $ac_status); } &&
7033 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007035 (eval $ac_try) 2>&5
7036 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007038 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007039 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007040else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007041 echo "$as_me: failed program was:" >&5
7042cat conftest.$ac_ext >&5
7043wine_cv_opengl_version_OK="no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007044
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007045fi
7046rm -f conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer5c085701999-02-28 19:48:53 +00007047
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007048fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007049echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007050echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7051
Alexandre Julliardb8074992002-11-21 21:51:24 +00007052 if test "$wine_cv_opengl_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007053 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007054 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007055echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7056if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007058else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007059 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner376ec882000-01-05 03:24:52 +00007060LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007061cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007062#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00007063#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007064
Patrik Stridvall24110281999-02-04 10:09:54 +00007065/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007066#ifdef __cplusplus
7067extern "C"
7068#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007069/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007070 builtin and then its argument prototype would still apply. */
7071char glXCreateContext ();
7072int
7073main ()
7074{
7075glXCreateContext ();
7076 ;
7077 return 0;
7078}
7079_ACEOF
7080rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007082 (eval $ac_link) 2>&5
7083 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007085 (exit $ac_status); } &&
7086 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007088 (eval $ac_try) 2>&5
7089 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007091 (exit $ac_status); }; }; then
7092 ac_cv_lib_GL_glXCreateContext=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007093else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007094 echo "$as_me: failed program was:" >&5
7095cat conftest.$ac_ext >&5
7096ac_cv_lib_GL_glXCreateContext=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007097fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007098rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7099LIBS=$ac_check_lib_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00007100fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007101echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007102echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7103if test $ac_cv_lib_GL_glXCreateContext = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00007104 OPENGL_LIBS="-lGL"
Patrik Stridvall24110281999-02-04 10:09:54 +00007105
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007106fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007107
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007108
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007109 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00007110 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00007111 OPENGLFILES='$(OPENGLFILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007112
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007113cat >>confdefs.h <<\_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00007114#define HAVE_OPENGL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007115_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00007116
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007117
7118 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007119echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7120if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007122else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007123 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007124LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007125cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007126#line $LINENO "configure"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007127#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007128
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007129/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007130#ifdef __cplusplus
7131extern "C"
7132#endif
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007133/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007134 builtin and then its argument prototype would still apply. */
7135char glXGetProcAddressARB ();
7136int
7137main ()
7138{
7139glXGetProcAddressARB ();
7140 ;
7141 return 0;
7142}
7143_ACEOF
7144rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007146 (eval $ac_link) 2>&5
7147 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007149 (exit $ac_status); } &&
7150 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007152 (eval $ac_try) 2>&5
7153 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007155 (exit $ac_status); }; }; then
7156 ac_cv_lib_GL_glXGetProcAddressARB=yes
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007157else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007158 echo "$as_me: failed program was:" >&5
7159cat conftest.$ac_ext >&5
7160ac_cv_lib_GL_glXGetProcAddressARB=no
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007161fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007162rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7163LIBS=$ac_check_lib_save_LIBS
7164fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007165echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007166echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7167if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007168
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007169cat >>confdefs.h <<\_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007170#define HAVE_GLX_GETPROCADDRESS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007171_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007172
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007173fi
7174
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007175
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007176 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007177 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007178 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007179echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7180if test "${wine_cv_extension_prototypes+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer1434d872000-07-23 14:23:31 +00007182else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007183 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007184#line $LINENO "configure"
Lionel Ulmer1434d872000-07-23 14:23:31 +00007185#include "confdefs.h"
7186#include <GL/gl.h>
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00007187 #ifdef HAVE_GL_GLEXT_H
7188 # include <GL/glext.h>
7189 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007190
7191int
7192main ()
7193{
Lionel Ulmer1434d872000-07-23 14:23:31 +00007194PFNGLCOLORTABLEEXTPROC test_proc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007195 ;
7196 return 0;
7197}
7198_ACEOF
7199rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007201 (eval $ac_compile) 2>&5
7202 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007204 (exit $ac_status); } &&
7205 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007207 (eval $ac_try) 2>&5
7208 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007210 (exit $ac_status); }; }; then
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007211 wine_cv_extension_prototypes="yes"
Lionel Ulmer1434d872000-07-23 14:23:31 +00007212else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007213 echo "$as_me: failed program was:" >&5
7214cat conftest.$ac_ext >&5
7215wine_cv_extension_prototypes="no"
Lionel Ulmer1434d872000-07-23 14:23:31 +00007216
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007217fi
7218rm -f conftest.$ac_objext conftest.$ac_ext
7219
7220fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007221echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007222echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007223 if test "$wine_cv_extension_prototypes" = "yes"
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007224 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007225
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007226cat >>confdefs.h <<\_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007227#define HAVE_GLEXT_PROTOTYPES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007228_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007229
7230 fi
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007231 fi
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00007232
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007233 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007234 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007235echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7236if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007238else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007239 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00007240LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007241 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007242cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007243#line $LINENO "configure"
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007244#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007245
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007246/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007247#ifdef __cplusplus
7248extern "C"
7249#endif
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007250/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007251 builtin and then its argument prototype would still apply. */
7252char gluLookAt ();
7253int
7254main ()
7255{
7256gluLookAt ();
7257 ;
7258 return 0;
7259}
7260_ACEOF
7261rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007263 (eval $ac_link) 2>&5
7264 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007266 (exit $ac_status); } &&
7267 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007269 (eval $ac_try) 2>&5
7270 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007272 (exit $ac_status); }; }; then
7273 ac_cv_lib_GLU_gluLookAt=yes
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007274else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007275 echo "$as_me: failed program was:" >&5
7276cat conftest.$ac_ext >&5
7277ac_cv_lib_GLU_gluLookAt=no
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007278fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007279rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7280LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007281fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007282echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007283echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7284if test $ac_cv_lib_GLU_gluLookAt = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00007285 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007286 GLU32FILES='$(GLU32FILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007287
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007288fi
7289
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007290 fi
7291 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007292 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00007293
Francois Gouget6f670b12002-10-10 17:54:27 +00007294 NASLIBS=""
7295
7296
7297for ac_header in audio/audiolib.h
7298do
7299as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7300if eval "test \"\${$as_ac_Header+set}\" = set"; then
7301 echo "$as_me:$LINENO: checking for $ac_header" >&5
7302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7303if eval "test \"\${$as_ac_Header+set}\" = set"; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305fi
7306echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7307echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7308else
7309 # Is the header compilable?
7310echo "$as_me:$LINENO: checking $ac_header usability" >&5
7311echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7312cat >conftest.$ac_ext <<_ACEOF
7313#line $LINENO "configure"
7314#include "confdefs.h"
7315$ac_includes_default
7316#include <$ac_header>
7317_ACEOF
7318rm -f conftest.$ac_objext
7319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7320 (eval $ac_compile) 2>&5
7321 ac_status=$?
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } &&
7324 { ac_try='test -s conftest.$ac_objext'
7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326 (eval $ac_try) 2>&5
7327 ac_status=$?
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); }; }; then
7330 ac_header_compiler=yes
7331else
7332 echo "$as_me: failed program was:" >&5
7333cat conftest.$ac_ext >&5
7334ac_header_compiler=no
7335fi
7336rm -f conftest.$ac_objext conftest.$ac_ext
7337echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7338echo "${ECHO_T}$ac_header_compiler" >&6
7339
7340# Is the header present?
7341echo "$as_me:$LINENO: checking $ac_header presence" >&5
7342echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7343cat >conftest.$ac_ext <<_ACEOF
7344#line $LINENO "configure"
7345#include "confdefs.h"
7346#include <$ac_header>
7347_ACEOF
7348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7350 ac_status=$?
7351 grep -v '^ *+' conftest.er1 >conftest.err
7352 rm -f conftest.er1
7353 cat conftest.err >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } >/dev/null; then
7356 if test -s conftest.err; then
7357 ac_cpp_err=$ac_c_preproc_warn_flag
7358 else
7359 ac_cpp_err=
7360 fi
7361else
7362 ac_cpp_err=yes
7363fi
7364if test -z "$ac_cpp_err"; then
7365 ac_header_preproc=yes
7366else
7367 echo "$as_me: failed program was:" >&5
7368 cat conftest.$ac_ext >&5
7369 ac_header_preproc=no
7370fi
7371rm -f conftest.err conftest.$ac_ext
7372echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7373echo "${ECHO_T}$ac_header_preproc" >&6
7374
7375# So? What about this header?
7376case $ac_header_compiler:$ac_header_preproc in
7377 yes:no )
7378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7379echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7381echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7382 no:yes )
7383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7384echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7386echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7388echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7389esac
7390echo "$as_me:$LINENO: checking for $ac_header" >&5
7391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7392if eval "test \"\${$as_ac_Header+set}\" = set"; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394else
7395 eval "$as_ac_Header=$ac_header_preproc"
7396fi
7397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7398echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7399
7400fi
7401if test `eval echo '${'$as_ac_Header'}'` = yes; then
7402 cat >>confdefs.h <<_ACEOF
7403#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7404_ACEOF
7405
7406for ac_header in audio/soundlib.h
7407do
7408as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7409echo "$as_me:$LINENO: checking for $ac_header" >&5
7410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7411if eval "test \"\${$as_ac_Header+set}\" = set"; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7413else
7414 cat >conftest.$ac_ext <<_ACEOF
7415#line $LINENO "configure"
7416#include "confdefs.h"
7417#include <audio/audiolib.h>
7418
7419#include <$ac_header>
7420_ACEOF
7421rm -f conftest.$ac_objext
7422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7423 (eval $ac_compile) 2>&5
7424 ac_status=$?
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } &&
7427 { ac_try='test -s conftest.$ac_objext'
7428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429 (eval $ac_try) 2>&5
7430 ac_status=$?
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); }; }; then
7433 eval "$as_ac_Header=yes"
7434else
7435 echo "$as_me: failed program was:" >&5
7436cat conftest.$ac_ext >&5
7437eval "$as_ac_Header=no"
7438fi
7439rm -f conftest.$ac_objext conftest.$ac_ext
7440fi
7441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7442echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7443if test `eval echo '${'$as_ac_Header'}'` = yes; then
7444 cat >>confdefs.h <<_ACEOF
7445#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7446_ACEOF
7447
7448fi
7449
7450done
7451
7452 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
7453echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
7454if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7456else
7457 ac_check_lib_save_LIBS=$LIBS
7458LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7459cat >conftest.$ac_ext <<_ACEOF
7460#line $LINENO "configure"
7461#include "confdefs.h"
7462
7463/* Override any gcc2 internal prototype to avoid an error. */
7464#ifdef __cplusplus
7465extern "C"
7466#endif
7467/* We use char because int might match the return type of a gcc2
7468 builtin and then its argument prototype would still apply. */
7469char AuCreateFlow ();
7470int
7471main ()
7472{
7473AuCreateFlow ();
7474 ;
7475 return 0;
7476}
7477_ACEOF
7478rm -f conftest.$ac_objext conftest$ac_exeext
7479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7480 (eval $ac_link) 2>&5
7481 ac_status=$?
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } &&
7484 { ac_try='test -s conftest$ac_exeext'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 (eval $ac_try) 2>&5
7487 ac_status=$?
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_cv_lib_audio_AuCreateFlow=yes
7491else
7492 echo "$as_me: failed program was:" >&5
7493cat conftest.$ac_ext >&5
7494ac_cv_lib_audio_AuCreateFlow=no
7495fi
7496rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7497LIBS=$ac_check_lib_save_LIBS
7498fi
7499echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
7500echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
7501if test $ac_cv_lib_audio_AuCreateFlow = yes; then
7502
7503cat >>confdefs.h <<\_ACEOF
7504#define HAVE_NAS 1
7505_ACEOF
7506
7507 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
7508fi
7509
7510fi
7511
7512done
7513
7514
Ove Kaaven1eb593c1999-02-14 09:34:46 +00007515 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00007516 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00007517else
7518 XLIB=""
7519 X_CFLAGS=""
7520 X_LIBS=""
7521fi
Alexandre Julliard902da691995-11-05 14:39:02 +00007522
Alexandre Julliard48957682001-12-26 23:08:31 +00007523CURSESLIBS=""
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007524if test "x$with_curses" != "xno"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00007525then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007526
7527for ac_header in ncurses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00007528do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007529as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007530if eval "test \"\${$as_ac_Header+set}\" = set"; then
7531 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7533if eval "test \"\${$as_ac_Header+set}\" = set"; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007535fi
7536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007538else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007539 # Is the header compilable?
7540echo "$as_me:$LINENO: checking $ac_header usability" >&5
7541echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7542cat >conftest.$ac_ext <<_ACEOF
7543#line $LINENO "configure"
7544#include "confdefs.h"
7545$ac_includes_default
7546#include <$ac_header>
7547_ACEOF
7548rm -f conftest.$ac_objext
7549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7550 (eval $ac_compile) 2>&5
7551 ac_status=$?
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); } &&
7554 { ac_try='test -s conftest.$ac_objext'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 (eval $ac_try) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; }; then
7560 ac_header_compiler=yes
7561else
7562 echo "$as_me: failed program was:" >&5
7563cat conftest.$ac_ext >&5
7564ac_header_compiler=no
7565fi
7566rm -f conftest.$ac_objext conftest.$ac_ext
7567echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7568echo "${ECHO_T}$ac_header_compiler" >&6
7569
7570# Is the header present?
7571echo "$as_me:$LINENO: checking $ac_header presence" >&5
7572echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7573cat >conftest.$ac_ext <<_ACEOF
7574#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00007575#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007576#include <$ac_header>
7577_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007578if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7580 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007581 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007582 rm -f conftest.er1
7583 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007585 (exit $ac_status); } >/dev/null; then
7586 if test -s conftest.err; then
7587 ac_cpp_err=$ac_c_preproc_warn_flag
7588 else
7589 ac_cpp_err=
7590 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007591else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007592 ac_cpp_err=yes
7593fi
7594if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007595 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007596else
7597 echo "$as_me: failed program was:" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00007598 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007599 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007600fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007601rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007602echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7603echo "${ECHO_T}$ac_header_preproc" >&6
7604
7605# So? What about this header?
7606case $ac_header_compiler:$ac_header_preproc in
7607 yes:no )
7608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7609echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7611echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7612 no:yes )
7613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7614echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7616echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7618echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7619esac
7620echo "$as_me:$LINENO: checking for $ac_header" >&5
7621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7622if eval "test \"\${$as_ac_Header+set}\" = set"; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7624else
7625 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00007626fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007628echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007629
7630fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007631if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007632 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007633#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007634_ACEOF
7635 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007636echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7637if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007639else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007640 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007641LIBS="-lncurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007642cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007643#line $LINENO "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007644#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007645
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007646/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007647#ifdef __cplusplus
7648extern "C"
7649#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007650/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007651 builtin and then its argument prototype would still apply. */
7652char waddch ();
7653int
7654main ()
7655{
7656waddch ();
7657 ;
7658 return 0;
7659}
7660_ACEOF
7661rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007663 (eval $ac_link) 2>&5
7664 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007666 (exit $ac_status); } &&
7667 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007669 (eval $ac_try) 2>&5
7670 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007672 (exit $ac_status); }; }; then
7673 ac_cv_lib_ncurses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007674else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007675 echo "$as_me: failed program was:" >&5
7676cat conftest.$ac_ext >&5
7677ac_cv_lib_ncurses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007678fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7680LIBS=$ac_check_lib_save_LIBS
7681fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007682echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007683echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7684if test $ac_cv_lib_ncurses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007685
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007686cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00007687#define HAVE_LIBNCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007688_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007689
Alexandre Julliard48957682001-12-26 23:08:31 +00007690 CURSESLIBS="-lncurses"
Alexandre Julliard638f1691999-01-17 16:32:32 +00007691else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007692
7693for ac_header in curses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00007694do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007695as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007696if eval "test \"\${$as_ac_Header+set}\" = set"; then
7697 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7699if eval "test \"\${$as_ac_Header+set}\" = set"; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007701fi
7702echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7703echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007704else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007705 # Is the header compilable?
7706echo "$as_me:$LINENO: checking $ac_header usability" >&5
7707echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7708cat >conftest.$ac_ext <<_ACEOF
7709#line $LINENO "configure"
7710#include "confdefs.h"
7711$ac_includes_default
7712#include <$ac_header>
7713_ACEOF
7714rm -f conftest.$ac_objext
7715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7716 (eval $ac_compile) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } &&
7720 { ac_try='test -s conftest.$ac_objext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 ac_header_compiler=yes
7727else
7728 echo "$as_me: failed program was:" >&5
7729cat conftest.$ac_ext >&5
7730ac_header_compiler=no
7731fi
7732rm -f conftest.$ac_objext conftest.$ac_ext
7733echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7734echo "${ECHO_T}$ac_header_compiler" >&6
7735
7736# Is the header present?
7737echo "$as_me:$LINENO: checking $ac_header presence" >&5
7738echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7739cat >conftest.$ac_ext <<_ACEOF
7740#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00007741#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007742#include <$ac_header>
7743_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007744if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7746 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007747 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007748 rm -f conftest.er1
7749 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007751 (exit $ac_status); } >/dev/null; then
7752 if test -s conftest.err; then
7753 ac_cpp_err=$ac_c_preproc_warn_flag
7754 else
7755 ac_cpp_err=
7756 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007757else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007758 ac_cpp_err=yes
7759fi
7760if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007761 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007762else
7763 echo "$as_me: failed program was:" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00007764 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007765 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007766fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007767rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007768echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7769echo "${ECHO_T}$ac_header_preproc" >&6
7770
7771# So? What about this header?
7772case $ac_header_compiler:$ac_header_preproc in
7773 yes:no )
7774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7775echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7777echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7778 no:yes )
7779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7780echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7782echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7784echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7785esac
7786echo "$as_me:$LINENO: checking for $ac_header" >&5
7787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7788if eval "test \"\${$as_ac_Header+set}\" = set"; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7790else
7791 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00007792fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007794echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007795
7796fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007797if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007798 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007799#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007800_ACEOF
7801 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007802echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7803if test "${ac_cv_lib_curses_waddch+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007805else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007806 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007807LIBS="-lcurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007808cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007809#line $LINENO "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007810#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007811
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007812/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007813#ifdef __cplusplus
7814extern "C"
7815#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007816/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007817 builtin and then its argument prototype would still apply. */
7818char waddch ();
7819int
7820main ()
7821{
7822waddch ();
7823 ;
7824 return 0;
7825}
7826_ACEOF
7827rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007829 (eval $ac_link) 2>&5
7830 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007832 (exit $ac_status); } &&
7833 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007835 (eval $ac_try) 2>&5
7836 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007838 (exit $ac_status); }; }; then
7839 ac_cv_lib_curses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007840else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007841 echo "$as_me: failed program was:" >&5
7842cat conftest.$ac_ext >&5
7843ac_cv_lib_curses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007844fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007845rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7846LIBS=$ac_check_lib_save_LIBS
7847fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007848echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007849echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7850if test $ac_cv_lib_curses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007851
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007852cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00007853#define HAVE_LIBCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007854_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007855
Alexandre Julliard48957682001-12-26 23:08:31 +00007856 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007857fi
7858
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007859fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007860
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007861done
7862
7863fi
Alexandre Julliard48957682001-12-26 23:08:31 +00007864
Alexandre Julliard48957682001-12-26 23:08:31 +00007865fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007866
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007867done
7868
Alexandre Julliard48957682001-12-26 23:08:31 +00007869 saved_libs="$LIBS"
7870 LIBS="$CURSESLIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007871
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007872
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007873for ac_func in getbkgd resizeterm
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007874do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007876echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7878if eval "test \"\${$as_ac_var+set}\" = set"; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard638f1691999-01-17 16:32:32 +00007880else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007881 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007882#line $LINENO "configure"
Alexandre Julliard638f1691999-01-17 16:32:32 +00007883#include "confdefs.h"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007884/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007885 which can conflict with char $ac_func (); below. */
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007886#include <assert.h>
Alexandre Julliard638f1691999-01-17 16:32:32 +00007887/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007888#ifdef __cplusplus
7889extern "C"
7890#endif
Alexandre Julliard638f1691999-01-17 16:32:32 +00007891/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007892 builtin and then its argument prototype would still apply. */
7893char $ac_func ();
7894char (*f) ();
Alexandre Julliard638f1691999-01-17 16:32:32 +00007895
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007896int
7897main ()
7898{
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007899/* The GNU C library defines this for functions which it implements
7900 to always fail with ENOSYS. Some functions are actually named
7901 something starting with __ and the normal name is an alias. */
7902#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7903choke me
7904#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007905f = $ac_func;
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007906#endif
7907
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007908 ;
7909 return 0;
7910}
7911_ACEOF
7912rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007914 (eval $ac_link) 2>&5
7915 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007917 (exit $ac_status); } &&
7918 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007920 (eval $ac_try) 2>&5
7921 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007923 (exit $ac_status); }; }; then
7924 eval "$as_ac_var=yes"
Alexandre Julliard638f1691999-01-17 16:32:32 +00007925else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007926 echo "$as_me: failed program was:" >&5
7927cat conftest.$ac_ext >&5
7928eval "$as_ac_var=no"
Alexandre Julliard638f1691999-01-17 16:32:32 +00007929fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007930rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard638f1691999-01-17 16:32:32 +00007931fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007932echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007933echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7934if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007935 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007936#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007937_ACEOF
Alexandre Julliard638f1691999-01-17 16:32:32 +00007938
Alexandre Julliard638f1691999-01-17 16:32:32 +00007939fi
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007940done
Alexandre Julliard638f1691999-01-17 16:32:32 +00007941
Alexandre Julliard48957682001-12-26 23:08:31 +00007942 LIBS="$saved_libs"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007943fi
7944
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007945
Shi Quan He6b0720f2002-03-21 02:58:39 +00007946# Extract the first word of "sane-config", so it can be a program name with args.
7947set dummy sane-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007948echo "$as_me:$LINENO: checking for $ac_word" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00007949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7950if test "${ac_cv_prog_sane_devel+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7952else
7953 if test -n "$sane_devel"; then
7954 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
7955else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957for as_dir in $PATH
7958do
7959 IFS=$as_save_IFS
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7963 ac_cv_prog_sane_devel="sane-config"
7964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 break 2
7966 fi
7967done
Shi Quan He6b0720f2002-03-21 02:58:39 +00007968done
7969
7970 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
7971fi
7972fi
7973sane_devel=$ac_cv_prog_sane_devel
7974if test -n "$sane_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007975 echo "$as_me:$LINENO: result: $sane_devel" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00007976echo "${ECHO_T}$sane_devel" >&6
7977else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007978 echo "$as_me:$LINENO: result: no" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00007979echo "${ECHO_T}no" >&6
7980fi
7981
7982if test "$sane_devel" = "no"
7983then
7984 SANELIBS=""
7985 SANEINCL=""
7986else
7987 SANELIBS="`$sane_devel --libs`"
7988 SANEINCL="`$sane_devel --cflags`"
7989 ac_save_CPPFLAGS="$CPPFLAGS"
7990 ac_save_LIBS="$LIBS"
7991 CPPFLAGS="$CPPFLAGS $SANEINCL"
7992 LIBS="$LIBS $SANELIBS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007993 if test "${ac_cv_header_sane_sane_h+set}" = set; then
7994 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00007995echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
7996if test "${ac_cv_header_sane_sane_h+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007998fi
7999echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8000echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00008001else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008002 # Is the header compilable?
8003echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8004echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8005cat >conftest.$ac_ext <<_ACEOF
8006#line $LINENO "configure"
8007#include "confdefs.h"
8008$ac_includes_default
8009#include <sane/sane.h>
8010_ACEOF
8011rm -f conftest.$ac_objext
8012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8013 (eval $ac_compile) 2>&5
8014 ac_status=$?
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } &&
8017 { ac_try='test -s conftest.$ac_objext'
8018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019 (eval $ac_try) 2>&5
8020 ac_status=$?
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); }; }; then
8023 ac_header_compiler=yes
8024else
8025 echo "$as_me: failed program was:" >&5
8026cat conftest.$ac_ext >&5
8027ac_header_compiler=no
8028fi
8029rm -f conftest.$ac_objext conftest.$ac_ext
8030echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8031echo "${ECHO_T}$ac_header_compiler" >&6
8032
8033# Is the header present?
8034echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8035echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8036cat >conftest.$ac_ext <<_ACEOF
8037#line $LINENO "configure"
Shi Quan He6b0720f2002-03-21 02:58:39 +00008038#include "confdefs.h"
8039#include <sane/sane.h>
8040_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008041if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8043 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008044 grep -v '^ *+' conftest.er1 >conftest.err
Shi Quan He6b0720f2002-03-21 02:58:39 +00008045 rm -f conftest.er1
8046 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008048 (exit $ac_status); } >/dev/null; then
8049 if test -s conftest.err; then
8050 ac_cpp_err=$ac_c_preproc_warn_flag
8051 else
8052 ac_cpp_err=
8053 fi
8054else
8055 ac_cpp_err=yes
8056fi
8057if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008058 ac_header_preproc=yes
Shi Quan He6b0720f2002-03-21 02:58:39 +00008059else
8060 echo "$as_me: failed program was:" >&5
8061 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008062 ac_header_preproc=no
Shi Quan He6b0720f2002-03-21 02:58:39 +00008063fi
8064rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008065echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8066echo "${ECHO_T}$ac_header_preproc" >&6
8067
8068# So? What about this header?
8069case $ac_header_compiler:$ac_header_preproc in
8070 yes:no )
8071 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8072echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8073 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8074echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8075 no:yes )
8076 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8077echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8078 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8079echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8080 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8081echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8082esac
8083echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8084echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8085if test "${ac_cv_header_sane_sane_h+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8087else
8088 ac_cv_header_sane_sane_h=$ac_header_preproc
Shi Quan He6b0720f2002-03-21 02:58:39 +00008089fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008090echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008091echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008092
8093fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00008094if test $ac_cv_header_sane_sane_h = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008095 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008096echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8097if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8099else
8100 ac_check_lib_save_LIBS=$LIBS
8101LIBS="-lsane $LIBS"
8102cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008103#line $LINENO "configure"
Shi Quan He6b0720f2002-03-21 02:58:39 +00008104#include "confdefs.h"
8105
8106/* Override any gcc2 internal prototype to avoid an error. */
8107#ifdef __cplusplus
8108extern "C"
8109#endif
8110/* We use char because int might match the return type of a gcc2
8111 builtin and then its argument prototype would still apply. */
8112char sane_open ();
8113int
8114main ()
8115{
8116sane_open ();
8117 ;
8118 return 0;
8119}
8120_ACEOF
8121rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008123 (eval $ac_link) 2>&5
8124 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008126 (exit $ac_status); } &&
8127 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008129 (eval $ac_try) 2>&5
8130 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008132 (exit $ac_status); }; }; then
8133 ac_cv_lib_sane_sane_open=yes
8134else
8135 echo "$as_me: failed program was:" >&5
8136cat conftest.$ac_ext >&5
8137ac_cv_lib_sane_sane_open=no
8138fi
8139rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8140LIBS=$ac_check_lib_save_LIBS
8141fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008142echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008143echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8144if test $ac_cv_lib_sane_sane_open = yes; then
8145
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008146cat >>confdefs.h <<\_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008147#define HAVE_SANE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008148_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008149
8150else
8151 SANELIBS=""
Alexandre Julliard96328b32002-03-31 19:23:41 +00008152 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00008153fi
8154
Alexandre Julliard96328b32002-03-31 19:23:41 +00008155else
8156 SANELIBS=""
8157 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00008158fi
8159
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008160
Shi Quan He6b0720f2002-03-21 02:58:39 +00008161 LIBS="$ac_save_LIBS"
8162 CPPFLAGS="$ac_save_CPPFLAGS"
8163fi
8164
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008165
8166
8167echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008168echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8169if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8170 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008171else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008172 ac_check_lib_save_LIBS=$LIBS
Dmitry Timoshkov8871a112001-11-06 22:26:53 +00008173LIBS="-lfreetype $X_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008174cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008175#line $LINENO "configure"
Ian Pilcher563598d2001-05-16 20:56:05 +00008176#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008177
Ian Pilcher563598d2001-05-16 20:56:05 +00008178/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008179#ifdef __cplusplus
8180extern "C"
8181#endif
Ian Pilcher563598d2001-05-16 20:56:05 +00008182/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008183 builtin and then its argument prototype would still apply. */
8184char FT_Init_FreeType ();
8185int
8186main ()
8187{
8188FT_Init_FreeType ();
8189 ;
8190 return 0;
8191}
8192_ACEOF
8193rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008195 (eval $ac_link) 2>&5
8196 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008198 (exit $ac_status); } &&
8199 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008201 (eval $ac_try) 2>&5
8202 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008204 (exit $ac_status); }; }; then
8205 ac_cv_lib_freetype_FT_Init_FreeType=yes
Ian Pilcher563598d2001-05-16 20:56:05 +00008206else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008207 echo "$as_me: failed program was:" >&5
8208cat conftest.$ac_ext >&5
8209ac_cv_lib_freetype_FT_Init_FreeType=no
Ian Pilcher563598d2001-05-16 20:56:05 +00008210fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008211rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8212LIBS=$ac_check_lib_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +00008213fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008214echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008215echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8216if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
Ian Pilcher563598d2001-05-16 20:56:05 +00008217 ft_lib=yes
8218else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008219 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +00008220fi
8221
8222if test "$ft_lib" = "no"
8223then
Ian Pilcher563598d2001-05-16 20:56:05 +00008224 FREETYPEINCL=""
8225 wine_cv_msg_freetype=no
8226else
8227 # Extract the first word of "freetype-config", so it can be a program name with args.
8228set dummy freetype-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008229echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8231if test "${ac_cv_prog_ft_devel+set}" = set; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008233else
8234 if test -n "$ft_devel"; then
8235 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8236else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238for as_dir in $PATH
8239do
8240 IFS=$as_save_IFS
8241 test -z "$as_dir" && as_dir=.
8242 for ac_exec_ext in '' $ac_executable_extensions; do
8243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8244 ac_cv_prog_ft_devel="freetype-config"
8245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8246 break 2
8247 fi
8248done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008249done
8250
Ian Pilcher563598d2001-05-16 20:56:05 +00008251 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8252fi
8253fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008254ft_devel=$ac_cv_prog_ft_devel
Ian Pilcher563598d2001-05-16 20:56:05 +00008255if test -n "$ft_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008256 echo "$as_me:$LINENO: result: $ft_devel" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008257echo "${ECHO_T}$ft_devel" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008258else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008259 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008260echo "${ECHO_T}no" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008261fi
8262
8263 if test "$ft_devel" = "no"
8264 then
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008265 # Extract the first word of "freetype2-config", so it can be a program name with args.
8266set dummy freetype2-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008267echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8269if test "${ac_cv_prog_ft_devel2+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008271else
8272 if test -n "$ft_devel2"; then
8273 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
8274else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276for as_dir in $PATH
8277do
8278 IFS=$as_save_IFS
8279 test -z "$as_dir" && as_dir=.
8280 for ac_exec_ext in '' $ac_executable_extensions; do
8281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8282 ac_cv_prog_ft_devel2="freetype2-config"
8283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8284 break 2
8285 fi
8286done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008287done
8288
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008289 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8290fi
8291fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008292ft_devel2=$ac_cv_prog_ft_devel2
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008293if test -n "$ft_devel2"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008294 echo "$as_me:$LINENO: result: $ft_devel2" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008295echo "${ECHO_T}$ft_devel2" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008296else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008297 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008298echo "${ECHO_T}no" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008299fi
8300
8301 if test "$ft_devel2" = "freetype2-config"
8302 then
8303 ft_devel=$ft_devel2
8304 fi
8305 fi
8306 if test "$ft_devel" = "no"
8307 then
Ian Pilcher563598d2001-05-16 20:56:05 +00008308 FREETYPEINCL=""
8309 wine_cv_msg_freetype=yes
8310 else
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008311 FREETYPEINCL=`$ft_devel --cflags`
Ian Pilcher40432fe2001-06-06 21:05:23 +00008312 ac_save_CPPFLAGS="$CPPFLAGS"
8313 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008314
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008315
8316
8317
8318
8319
8320
8321
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008322for ac_header in freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +00008323 freetype/ftglyph.h \
8324 freetype/tttables.h \
8325 freetype/ftnames.h \
8326 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +00008327 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +00008328 freetype/ftoutln.h \
8329 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +00008330do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008331as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008332if eval "test \"\${$as_ac_Header+set}\" = set"; then
8333 echo "$as_me:$LINENO: checking for $ac_header" >&5
8334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8335if eval "test \"\${$as_ac_Header+set}\" = set"; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
8337fi
8338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8339echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8340else
8341 # Is the header compilable?
8342echo "$as_me:$LINENO: checking $ac_header usability" >&5
8343echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8344cat >conftest.$ac_ext <<_ACEOF
8345#line $LINENO "configure"
8346#include "confdefs.h"
8347$ac_includes_default
8348#include <$ac_header>
8349_ACEOF
8350rm -f conftest.$ac_objext
8351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8352 (eval $ac_compile) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } &&
8356 { ac_try='test -s conftest.$ac_objext'
8357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358 (eval $ac_try) 2>&5
8359 ac_status=$?
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; }; then
8362 ac_header_compiler=yes
8363else
8364 echo "$as_me: failed program was:" >&5
8365cat conftest.$ac_ext >&5
8366ac_header_compiler=no
8367fi
8368rm -f conftest.$ac_objext conftest.$ac_ext
8369echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8370echo "${ECHO_T}$ac_header_compiler" >&6
8371
8372# Is the header present?
8373echo "$as_me:$LINENO: checking $ac_header presence" >&5
8374echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8375cat >conftest.$ac_ext <<_ACEOF
8376#line $LINENO "configure"
8377#include "confdefs.h"
8378#include <$ac_header>
8379_ACEOF
8380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8382 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008383 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008384 rm -f conftest.er1
8385 cat conftest.err >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } >/dev/null; then
8388 if test -s conftest.err; then
8389 ac_cpp_err=$ac_c_preproc_warn_flag
8390 else
8391 ac_cpp_err=
8392 fi
8393else
8394 ac_cpp_err=yes
8395fi
8396if test -z "$ac_cpp_err"; then
8397 ac_header_preproc=yes
8398else
8399 echo "$as_me: failed program was:" >&5
8400 cat conftest.$ac_ext >&5
8401 ac_header_preproc=no
8402fi
8403rm -f conftest.err conftest.$ac_ext
8404echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8405echo "${ECHO_T}$ac_header_preproc" >&6
8406
8407# So? What about this header?
8408case $ac_header_compiler:$ac_header_preproc in
8409 yes:no )
8410 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8411echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8413echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8414 no:yes )
8415 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8416echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8417 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8418echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8420echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8421esac
8422echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8424if eval "test \"\${$as_ac_Header+set}\" = set"; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher40432fe2001-06-06 21:05:23 +00008426else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008427 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008428fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008430echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008431
Ian Pilcher40432fe2001-06-06 21:05:23 +00008432fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008433if test `eval echo '${'$as_ac_Header'}'` = yes; then
8434 cat >>confdefs.h <<_ACEOF
8435#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8436_ACEOF
8437
8438fi
8439
Ian Pilcher40432fe2001-06-06 21:05:23 +00008440done
8441
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008442 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008443#line $LINENO "configure"
Alexandre Julliard18d75732002-01-29 03:02:50 +00008444#include "confdefs.h"
8445#include <ft2build.h>
8446 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008447_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008448if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8450 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008451 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008452 rm -f conftest.er1
8453 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008455 (exit $ac_status); } >/dev/null; then
8456 if test -s conftest.err; then
8457 ac_cpp_err=$ac_c_preproc_warn_flag
8458 else
8459 ac_cpp_err=
8460 fi
8461else
8462 ac_cpp_err=yes
8463fi
8464if test -z "$ac_cpp_err"; then
8465
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008466cat >>confdefs.h <<\_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00008467#define HAVE_FREETYPE_FTTRIGON_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008468_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00008469
Huw D M Daviesc1d38132002-02-08 17:09:50 +00008470 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +00008471else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008472 echo "$as_me: failed program was:" >&5
Alexandre Julliard18d75732002-01-29 03:02:50 +00008473 cat conftest.$ac_ext >&5
Huw D M Daviesc1d38132002-02-08 17:09:50 +00008474 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +00008475fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008476rm -f conftest.err conftest.$ac_ext
Ian Pilcher40432fe2001-06-06 21:05:23 +00008477 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +00008478 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +00008479 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008480
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008481cat >>confdefs.h <<\_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +00008482#define HAVE_FREETYPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008483_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +00008484
8485 wine_cv_msg_freetype=no
8486 else
Huw D M Davies9b1d3722002-01-29 17:09:28 +00008487 FREETYPEINCL=""
8488 wine_cv_msg_freetype=yes
8489 fi
Ian Pilcher563598d2001-05-16 20:56:05 +00008490 fi
8491fi
8492
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008493
8494echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008495echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8496if test "${ac_cv_c_ppdev+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +00008498else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008499 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008500#line $LINENO "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00008501#include "confdefs.h"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008502#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008503int
8504main ()
8505{
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008506ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008507 ;
8508 return 0;
8509}
8510_ACEOF
8511rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008513 (eval $ac_compile) 2>&5
8514 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008516 (exit $ac_status); } &&
8517 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008519 (eval $ac_try) 2>&5
8520 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008522 (exit $ac_status); }; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008523 ac_cv_c_ppdev="yes"
8524else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008525 echo "$as_me: failed program was:" >&5
8526cat conftest.$ac_ext >&5
8527ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008528fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008529rm -f conftest.$ac_objext conftest.$ac_ext
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008530
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008531fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008532echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008533echo "${ECHO_T}$ac_cv_c_ppdev" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008534if test "$ac_cv_c_ppdev" = "yes"
8535then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008536
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008537cat >>confdefs.h <<\_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008538#define HAVE_PPDEV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008539_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008540
8541fi
8542
Marcus Meissner5ee517a2002-08-09 19:49:31 +00008543echo "$as_me:$LINENO: checking for va_copy" >&5
8544echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
8545if test "${ac_cv_c_va_copy+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8547else
8548 cat >conftest.$ac_ext <<_ACEOF
8549#line $LINENO "configure"
8550#include "confdefs.h"
8551#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +00008552int
8553main ()
8554{
8555va_list ap1, ap2;
8556 va_copy(ap1,ap2);
8557
8558 ;
8559 return 0;
8560}
8561_ACEOF
8562rm -f conftest.$ac_objext conftest$ac_exeext
8563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8564 (eval $ac_link) 2>&5
8565 ac_status=$?
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } &&
8568 { ac_try='test -s conftest$ac_exeext'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 (eval $ac_try) 2>&5
8571 ac_status=$?
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; }; then
8574 ac_cv_c_va_copy="yes"
8575else
8576 echo "$as_me: failed program was:" >&5
8577cat conftest.$ac_ext >&5
8578ac_cv_c_va_copy="no"
8579fi
8580rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8581
8582fi
8583echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
8584echo "${ECHO_T}$ac_cv_c_va_copy" >&6
8585if test "$ac_cv_c_va_copy" = "yes"
8586then
8587
8588cat >>confdefs.h <<\_ACEOF
8589#define HAVE_VA_COPY 1
8590_ACEOF
8591
8592fi
8593echo "$as_me:$LINENO: checking for __va_copy" >&5
8594echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
8595if test "${ac_cv_c___va_copy+set}" = set; then
8596 echo $ECHO_N "(cached) $ECHO_C" >&6
8597else
8598 cat >conftest.$ac_ext <<_ACEOF
8599#line $LINENO "configure"
8600#include "confdefs.h"
8601#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +00008602int
8603main ()
8604{
8605va_list ap1, ap2;
8606 __va_copy(ap1,ap2);
8607
8608 ;
8609 return 0;
8610}
8611_ACEOF
8612rm -f conftest.$ac_objext conftest$ac_exeext
8613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8614 (eval $ac_link) 2>&5
8615 ac_status=$?
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } &&
8618 { ac_try='test -s conftest$ac_exeext'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 (eval $ac_try) 2>&5
8621 ac_status=$?
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; }; then
8624 ac_cv_c___va_copy="yes"
8625else
8626 echo "$as_me: failed program was:" >&5
8627cat conftest.$ac_ext >&5
8628ac_cv_c___va_copy="no"
8629fi
8630rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8631
8632fi
8633echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
8634echo "${ECHO_T}$ac_cv_c___va_copy" >&6
8635if test "$ac_cv_c___va_copy" = "yes"
8636then
8637
8638cat >>confdefs.h <<\_ACEOF
8639#define HAVE___VA_COPY 1
8640_ACEOF
8641
8642fi
8643
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008644echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008645echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8646if test "${ac_cv_c_ipx_gnu+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008648else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008649 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008650#line $LINENO "configure"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008651#include "confdefs.h"
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +00008652#include <sys/types.h>
8653 #ifdef HAVE_SYS_SOCKET_H
8654 # include <sys/socket.h>
8655 #endif
Pavel Roskin94d99641998-12-26 11:52:51 +00008656 #include <netipx/ipx.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008657int
8658main ()
8659{
Pavel Roskin94d99641998-12-26 11:52:51 +00008660((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008661 ;
8662 return 0;
8663}
8664_ACEOF
8665rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008667 (eval $ac_compile) 2>&5
8668 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008670 (exit $ac_status); } &&
8671 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008673 (eval $ac_try) 2>&5
8674 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008676 (exit $ac_status); }; }; then
Aaron Hopec23872d2000-01-15 23:43:21 +00008677 ac_cv_c_ipx_gnu="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00008678else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008679 echo "$as_me: failed program was:" >&5
8680cat conftest.$ac_ext >&5
8681ac_cv_c_ipx_gnu="no"
Pavel Roskin94d99641998-12-26 11:52:51 +00008682fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008683rm -f conftest.$ac_objext conftest.$ac_ext
Pavel Roskin94d99641998-12-26 11:52:51 +00008684
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008685fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008686echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008687echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
Aaron Hopec23872d2000-01-15 23:43:21 +00008688if test "$ac_cv_c_ipx_gnu" = "yes"
8689then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008690
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008691cat >>confdefs.h <<\_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008692#define HAVE_IPX_GNU 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008693_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008694
8695fi
Pavel Roskin94d99641998-12-26 11:52:51 +00008696
8697if test "$ac_cv_c_ipx_gnu" = "no"
8698then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008699 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008700echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8701if test "${ac_cv_c_ipx_linux+set}" = set; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +00008703else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008704 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008705#line $LINENO "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00008706#include "confdefs.h"
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +00008707#include <sys/types.h>
8708 #ifdef HAVE_SYS_SOCKET_H
8709 # include <sys/socket.h>
8710 #endif
Pavel Roskin94d99641998-12-26 11:52:51 +00008711 #include <asm/types.h>
8712 #include <linux/ipx.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008713int
8714main ()
8715{
Pavel Roskin94d99641998-12-26 11:52:51 +00008716((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008717 ;
8718 return 0;
8719}
8720_ACEOF
8721rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008723 (eval $ac_compile) 2>&5
8724 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008726 (exit $ac_status); } &&
8727 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008729 (eval $ac_try) 2>&5
8730 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008732 (exit $ac_status); }; }; then
Aaron Hopec23872d2000-01-15 23:43:21 +00008733 ac_cv_c_ipx_linux="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00008734else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008735 echo "$as_me: failed program was:" >&5
8736cat conftest.$ac_ext >&5
8737ac_cv_c_ipx_linux="no"
Pavel Roskin94d99641998-12-26 11:52:51 +00008738fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008739rm -f conftest.$ac_objext conftest.$ac_ext
Pavel Roskin94d99641998-12-26 11:52:51 +00008740
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008741fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008742echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008743echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
Aaron Hopec23872d2000-01-15 23:43:21 +00008744 if test "$ac_cv_c_ipx_linux" = "yes"
8745 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008746
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008747cat >>confdefs.h <<\_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008748#define HAVE_IPX_LINUX 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008749_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008750
8751 fi
Pavel Roskin94d99641998-12-26 11:52:51 +00008752fi
8753
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008754
8755
8756
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008757for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008758do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008760if eval "test \"\${$as_ac_Header+set}\" = set"; then
8761 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8763if eval "test \"\${$as_ac_Header+set}\" = set"; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008765fi
8766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8767echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008768else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008769 # Is the header compilable?
8770echo "$as_me:$LINENO: checking $ac_header usability" >&5
8771echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8772cat >conftest.$ac_ext <<_ACEOF
8773#line $LINENO "configure"
8774#include "confdefs.h"
8775$ac_includes_default
8776#include <$ac_header>
8777_ACEOF
8778rm -f conftest.$ac_objext
8779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8780 (eval $ac_compile) 2>&5
8781 ac_status=$?
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); } &&
8784 { ac_try='test -s conftest.$ac_objext'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786 (eval $ac_try) 2>&5
8787 ac_status=$?
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; }; then
8790 ac_header_compiler=yes
8791else
8792 echo "$as_me: failed program was:" >&5
8793cat conftest.$ac_ext >&5
8794ac_header_compiler=no
8795fi
8796rm -f conftest.$ac_objext conftest.$ac_ext
8797echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8798echo "${ECHO_T}$ac_header_compiler" >&6
8799
8800# Is the header present?
8801echo "$as_me:$LINENO: checking $ac_header presence" >&5
8802echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8803cat >conftest.$ac_ext <<_ACEOF
8804#line $LINENO "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008805#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008806#include <$ac_header>
8807_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008808if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8810 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008811 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008812 rm -f conftest.er1
8813 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008815 (exit $ac_status); } >/dev/null; then
8816 if test -s conftest.err; then
8817 ac_cpp_err=$ac_c_preproc_warn_flag
8818 else
8819 ac_cpp_err=
8820 fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008821else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008822 ac_cpp_err=yes
8823fi
8824if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008825 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008826else
8827 echo "$as_me: failed program was:" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008828 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008829 ac_header_preproc=no
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008830fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008831rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008832echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8833echo "${ECHO_T}$ac_header_preproc" >&6
8834
8835# So? What about this header?
8836case $ac_header_compiler:$ac_header_preproc in
8837 yes:no )
8838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8839echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8841echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8842 no:yes )
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8844echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8846echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8848echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8849esac
8850echo "$as_me:$LINENO: checking for $ac_header" >&5
8851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8852if eval "test \"\${$as_ac_Header+set}\" = set"; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8854else
8855 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008856fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008858echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008859
8860fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008861if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008862 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008863#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008864_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00008865 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008866fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008867
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008868done
8869
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008870
8871echo "$as_me:$LINENO: checking for Open Sound System" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008872echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8873if test "${ac_cv_c_opensoundsystem+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008875else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008876 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008877#line $LINENO "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008878#include "confdefs.h"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008879
Todd Vierlingecc76691998-12-15 17:49:02 +00008880 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008881 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00008882 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008883 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00008884 #elif defined(HAVE_SOUNDCARD_H)
8885 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008886 #endif
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008887
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008888int
8889main ()
8890{
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008891
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008892
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00008893/* check for one of the Open Sound System specific SNDCTL_ defines */
8894#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008895#error No open sound system
8896#endif
8897
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008898 ;
8899 return 0;
8900}
8901_ACEOF
8902rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008904 (eval $ac_compile) 2>&5
8905 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008907 (exit $ac_status); } &&
8908 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008910 (eval $ac_try) 2>&5
8911 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008913 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008914 ac_cv_c_opensoundsystem="yes"
8915else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008916 echo "$as_me: failed program was:" >&5
8917cat conftest.$ac_ext >&5
8918ac_cv_c_opensoundsystem="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008919fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008920rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008921fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008922echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008923echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008924
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00008925if test "$ac_cv_c_opensoundsystem" = "yes"
8926then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008927
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008928cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00008929#define HAVE_OSS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008930_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00008931
8932fi
8933
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008934echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008935echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
8936if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +00008938else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008939 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008940#line $LINENO "configure"
Eric Pouech338d3b21999-05-22 18:52:21 +00008941#include "confdefs.h"
8942
8943 #if defined(HAVE_SYS_SOUNDCARD_H)
8944 #include <sys/soundcard.h>
8945 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8946 #include <machine/soundcard.h>
8947 #elif defined(HAVE_SOUNDCARD_H)
8948 #include <soundcard.h>
8949 #endif
Eric Pouech338d3b21999-05-22 18:52:21 +00008950
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008951int
8952main ()
8953{
Eric Pouech338d3b21999-05-22 18:52:21 +00008954
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008955
Eric Pouech338d3b21999-05-22 18:52:21 +00008956/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
8957#if !defined(SNDCTL_SEQ_SYNC)
8958#error No open sound system MIDI interface
8959#endif
8960
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008961 ;
8962 return 0;
8963}
8964_ACEOF
8965rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008967 (eval $ac_compile) 2>&5
8968 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008970 (exit $ac_status); } &&
8971 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008973 (eval $ac_try) 2>&5
8974 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008976 (exit $ac_status); }; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +00008977 ac_cv_c_opensoundsystem_midi="yes"
8978else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008979 echo "$as_me: failed program was:" >&5
8980cat conftest.$ac_ext >&5
8981ac_cv_c_opensoundsystem_midi="no"
Eric Pouech338d3b21999-05-22 18:52:21 +00008982fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008983rm -f conftest.$ac_objext conftest.$ac_ext
Eric Pouech338d3b21999-05-22 18:52:21 +00008984fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008985echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008986echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +00008987
8988if test "$ac_cv_c_opensoundsystem_midi" = "yes"
8989then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008990
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008991cat >>confdefs.h <<\_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +00008992#define HAVE_OSS_MIDI 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008993_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +00008994
8995fi
8996
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00008997# Extract the first word of "artsc-config", so it can be a program name with args.
8998set dummy artsc-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008999echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9001if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9003else
9004 case $ARTSCCONFIG in
9005 [\\/]* | ?:[\\/]*)
9006 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
9007 ;;
9008 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9010for as_dir in $PATH
9011do
9012 IFS=$as_save_IFS
9013 test -z "$as_dir" && as_dir=.
9014 for ac_exec_ext in '' $ac_executable_extensions; do
9015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9016 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
9017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9018 break 2
9019 fi
9020done
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009021done
9022
9023 ;;
9024esac
9025fi
9026ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9027
9028if test -n "$ARTSCCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009029 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009030echo "${ECHO_T}$ARTSCCONFIG" >&6
9031else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009032 echo "$as_me:$LINENO: result: no" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009033echo "${ECHO_T}no" >&6
9034fi
9035
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009036echo "$as_me:$LINENO: checking for aRts Sound server" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009037echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9038if test "${ac_cv_c_artsserver+set}" = set; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9040else
9041 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9042 then
9043 ac_cv_c_artsserver=no
9044 else
9045 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9046 ARTSC_LIBS=`$ARTSCCONFIG --libs`
9047 ac_cv_c_artsserver=no
9048 save_CFLAGS="$CFLAGS"
9049 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9050 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009051#line $LINENO "configure"
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009052#include "confdefs.h"
9053
9054 #include <artsc.h>
9055
9056int
9057main ()
9058{
9059
9060 arts_stream_t stream;
9061
9062 ;
9063 return 0;
9064}
9065_ACEOF
9066rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009068 (eval $ac_compile) 2>&5
9069 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009071 (exit $ac_status); } &&
9072 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009074 (eval $ac_try) 2>&5
9075 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009077 (exit $ac_status); }; }; then
9078
9079 ac_cv_c_artsserver=yes
9080
9081else
9082 echo "$as_me: failed program was:" >&5
9083cat conftest.$ac_ext >&5
9084fi
9085rm -f conftest.$ac_objext conftest.$ac_ext
9086 CFLAGS="$save_CFLAGS"
9087 fi
9088fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009089echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009090echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9091
9092if test "$ac_cv_c_artsserver" = "yes"
9093then
9094 ARTSLIBS=$ARTSC_LIBS
9095
9096 ARTSINCL=$ARTSC_CFLAGS
9097
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009098
9099
9100cat >>confdefs.h <<\_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009101#define HAVE_ARTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009102_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009103
9104fi
9105
Alexandre Julliardf92b7c02002-06-28 18:31:01 +00009106ALSALIBS=""
9107
9108
Marco Pietrobono0e79a412002-08-29 01:51:31 +00009109
9110for ac_header in alsa/asoundlib.h sys/asoundlib.h
Alexandre Julliardf92b7c02002-06-28 18:31:01 +00009111do
9112as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9113if eval "test \"\${$as_ac_Header+set}\" = set"; then
9114 echo "$as_me:$LINENO: checking for $ac_header" >&5
9115echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9116if eval "test \"\${$as_ac_Header+set}\" = set"; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9118fi
9119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9120echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9121else
9122 # Is the header compilable?
9123echo "$as_me:$LINENO: checking $ac_header usability" >&5
9124echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9125cat >conftest.$ac_ext <<_ACEOF
9126#line $LINENO "configure"
9127#include "confdefs.h"
9128$ac_includes_default
9129#include <$ac_header>
9130_ACEOF
9131rm -f conftest.$ac_objext
9132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9133 (eval $ac_compile) 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); } &&
9137 { ac_try='test -s conftest.$ac_objext'
9138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 (eval $ac_try) 2>&5
9140 ac_status=$?
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; }; then
9143 ac_header_compiler=yes
9144else
9145 echo "$as_me: failed program was:" >&5
9146cat conftest.$ac_ext >&5
9147ac_header_compiler=no
9148fi
9149rm -f conftest.$ac_objext conftest.$ac_ext
9150echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9151echo "${ECHO_T}$ac_header_compiler" >&6
9152
9153# Is the header present?
9154echo "$as_me:$LINENO: checking $ac_header presence" >&5
9155echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9156cat >conftest.$ac_ext <<_ACEOF
9157#line $LINENO "configure"
9158#include "confdefs.h"
9159#include <$ac_header>
9160_ACEOF
9161if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9163 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009164 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf92b7c02002-06-28 18:31:01 +00009165 rm -f conftest.er1
9166 cat conftest.err >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } >/dev/null; then
9169 if test -s conftest.err; then
9170 ac_cpp_err=$ac_c_preproc_warn_flag
9171 else
9172 ac_cpp_err=
9173 fi
9174else
9175 ac_cpp_err=yes
9176fi
9177if test -z "$ac_cpp_err"; then
9178 ac_header_preproc=yes
9179else
9180 echo "$as_me: failed program was:" >&5
9181 cat conftest.$ac_ext >&5
9182 ac_header_preproc=no
9183fi
9184rm -f conftest.err conftest.$ac_ext
9185echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9186echo "${ECHO_T}$ac_header_preproc" >&6
9187
9188# So? What about this header?
9189case $ac_header_compiler:$ac_header_preproc in
9190 yes:no )
9191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9192echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9195 no:yes )
9196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9197echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9199echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9201echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9202esac
9203echo "$as_me:$LINENO: checking for $ac_header" >&5
9204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9205if eval "test \"\${$as_ac_Header+set}\" = set"; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9207else
9208 eval "$as_ac_Header=$ac_header_preproc"
9209fi
9210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9212
9213fi
9214if test `eval echo '${'$as_ac_Header'}'` = yes; then
9215 cat >>confdefs.h <<_ACEOF
9216#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9217_ACEOF
Marco Pietrobono0e79a412002-08-29 01:51:31 +00009218 break
Alexandre Julliardf92b7c02002-06-28 18:31:01 +00009219fi
9220
9221done
9222
Marco Pietrobono0e79a412002-08-29 01:51:31 +00009223if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +00009224then
9225 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
9226echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
9227if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
9228 echo $ECHO_N "(cached) $ECHO_C" >&6
9229else
9230 ac_check_lib_save_LIBS=$LIBS
9231LIBS="-lasound $LIBS"
9232cat >conftest.$ac_ext <<_ACEOF
9233#line $LINENO "configure"
9234#include "confdefs.h"
9235
9236/* Override any gcc2 internal prototype to avoid an error. */
9237#ifdef __cplusplus
9238extern "C"
9239#endif
9240/* We use char because int might match the return type of a gcc2
9241 builtin and then its argument prototype would still apply. */
9242char snd_pcm_open ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +00009243int
9244main ()
9245{
9246snd_pcm_open ();
9247 ;
9248 return 0;
9249}
9250_ACEOF
9251rm -f conftest.$ac_objext conftest$ac_exeext
9252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253 (eval $ac_link) 2>&5
9254 ac_status=$?
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } &&
9257 { ac_try='test -s conftest$ac_exeext'
9258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259 (eval $ac_try) 2>&5
9260 ac_status=$?
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); }; }; then
9263 ac_cv_lib_asound_snd_pcm_open=yes
9264else
9265 echo "$as_me: failed program was:" >&5
9266cat conftest.$ac_ext >&5
9267ac_cv_lib_asound_snd_pcm_open=no
9268fi
9269rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9270LIBS=$ac_check_lib_save_LIBS
9271fi
9272echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
9273echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
9274if test $ac_cv_lib_asound_snd_pcm_open = yes; then
9275
9276cat >>confdefs.h <<\_ACEOF
9277#define HAVE_ALSA 1
9278_ACEOF
9279
9280 ALSALIBS="-lasound"
9281fi
9282
9283fi
9284
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009285
Robert Lunnon2a91e3f2002-08-01 18:22:38 +00009286AUDIOIOLIBS=""
9287
9288
9289for ac_header in libaudioio.h
9290do
9291as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9292if eval "test \"\${$as_ac_Header+set}\" = set"; then
9293 echo "$as_me:$LINENO: checking for $ac_header" >&5
9294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9295if eval "test \"\${$as_ac_Header+set}\" = set"; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9297fi
9298echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9299echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9300else
9301 # Is the header compilable?
9302echo "$as_me:$LINENO: checking $ac_header usability" >&5
9303echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9304cat >conftest.$ac_ext <<_ACEOF
9305#line $LINENO "configure"
9306#include "confdefs.h"
9307$ac_includes_default
9308#include <$ac_header>
9309_ACEOF
9310rm -f conftest.$ac_objext
9311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9312 (eval $ac_compile) 2>&5
9313 ac_status=$?
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } &&
9316 { ac_try='test -s conftest.$ac_objext'
9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318 (eval $ac_try) 2>&5
9319 ac_status=$?
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
9322 ac_header_compiler=yes
9323else
9324 echo "$as_me: failed program was:" >&5
9325cat conftest.$ac_ext >&5
9326ac_header_compiler=no
9327fi
9328rm -f conftest.$ac_objext conftest.$ac_ext
9329echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9330echo "${ECHO_T}$ac_header_compiler" >&6
9331
9332# Is the header present?
9333echo "$as_me:$LINENO: checking $ac_header presence" >&5
9334echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9335cat >conftest.$ac_ext <<_ACEOF
9336#line $LINENO "configure"
9337#include "confdefs.h"
9338#include <$ac_header>
9339_ACEOF
9340if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9342 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009343 grep -v '^ *+' conftest.er1 >conftest.err
Robert Lunnon2a91e3f2002-08-01 18:22:38 +00009344 rm -f conftest.er1
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } >/dev/null; then
9348 if test -s conftest.err; then
9349 ac_cpp_err=$ac_c_preproc_warn_flag
9350 else
9351 ac_cpp_err=
9352 fi
9353else
9354 ac_cpp_err=yes
9355fi
9356if test -z "$ac_cpp_err"; then
9357 ac_header_preproc=yes
9358else
9359 echo "$as_me: failed program was:" >&5
9360 cat conftest.$ac_ext >&5
9361 ac_header_preproc=no
9362fi
9363rm -f conftest.err conftest.$ac_ext
9364echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9365echo "${ECHO_T}$ac_header_preproc" >&6
9366
9367# So? What about this header?
9368case $ac_header_compiler:$ac_header_preproc in
9369 yes:no )
9370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9371echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9373echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9374 no:yes )
9375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9376echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9378echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9380echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9381esac
9382echo "$as_me:$LINENO: checking for $ac_header" >&5
9383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9384if eval "test \"\${$as_ac_Header+set}\" = set"; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9386else
9387 eval "$as_ac_Header=$ac_header_preproc"
9388fi
9389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9391
9392fi
9393if test `eval echo '${'$as_ac_Header'}'` = yes; then
9394 cat >>confdefs.h <<_ACEOF
9395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9396_ACEOF
9397 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
9398echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
9399if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9401else
9402 ac_check_lib_save_LIBS=$LIBS
9403LIBS="-laudioio $LIBS"
9404cat >conftest.$ac_ext <<_ACEOF
9405#line $LINENO "configure"
9406#include "confdefs.h"
9407
9408/* Override any gcc2 internal prototype to avoid an error. */
9409#ifdef __cplusplus
9410extern "C"
9411#endif
9412/* We use char because int might match the return type of a gcc2
9413 builtin and then its argument prototype would still apply. */
9414char AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +00009415int
9416main ()
9417{
9418AudioIOGetVersion ();
9419 ;
9420 return 0;
9421}
9422_ACEOF
9423rm -f conftest.$ac_objext conftest$ac_exeext
9424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9425 (eval $ac_link) 2>&5
9426 ac_status=$?
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); } &&
9429 { ac_try='test -s conftest$ac_exeext'
9430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9431 (eval $ac_try) 2>&5
9432 ac_status=$?
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; }; then
9435 ac_cv_lib_audioio_AudioIOGetVersion=yes
9436else
9437 echo "$as_me: failed program was:" >&5
9438cat conftest.$ac_ext >&5
9439ac_cv_lib_audioio_AudioIOGetVersion=no
9440fi
9441rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9442LIBS=$ac_check_lib_save_LIBS
9443fi
9444echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
9445echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
9446if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
9447 AUDIOIOLIBS="-laudioio"
9448
9449cat >>confdefs.h <<\_ACEOF
9450#define HAVE_LIBAUDIOIO 1
9451_ACEOF
9452
9453fi
9454
9455fi
9456
9457done
9458
9459
9460
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009461echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009462echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9463if test "${ac_cv_mmap64_works+set}" = set; then
9464 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009465else
9466 if test "$cross_compiling" = yes; then
9467 ac_cv_mmap64_works="no"
9468else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009469 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009470#line $LINENO "configure"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009471#include "confdefs.h"
9472
9473 #define _FILE_OFFSET_BITS 64
9474 #include <stdio.h>
9475 #include <unistd.h>
9476 #include <fcntl.h>
9477 #include <sys/mman.h>
9478 #include <errno.h>
9479
9480 int main(int argc,char **argv) {
9481 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9482 if (fd == -1) exit(1);
9483
9484 unlink("conftest.map");
9485
9486 write(fd,"test",4);
9487
9488 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9489 (errno == EINVAL)
9490 ) {
9491 exit(1);
9492 }
9493 close(fd);
9494 fprintf(stderr,"success!\n");
9495 exit(0);
9496 }
9497
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009498
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009499_ACEOF
9500rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009502 (eval $ac_link) 2>&5
9503 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009507 (eval $ac_try) 2>&5
9508 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009510 (exit $ac_status); }; }; then
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009511 ac_cv_mmap64_works="yes"
9512else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009513 echo "$as_me: program exited with status $ac_status" >&5
9514echo "$as_me: failed program was:" >&5
9515cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009516( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009517ac_cv_mmap64_works="no"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009518fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009519rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009520fi
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009521fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009522echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009523echo "${ECHO_T}$ac_cv_mmap64_works" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009524
9525if test "$ac_cv_mmap64_works" = "yes"
9526then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009527
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009528cat >>confdefs.h <<\_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009529#define _FILE_OFFSET_BITS 64
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009530_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009531
9532fi
9533
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009534
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009535if test "x${GCC}" = "xyes"
9536then
9537 CFLAGS="$CFLAGS -Wall"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009538 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009539echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9540if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009542else
9543 if test "$cross_compiling" = yes; then
9544 ac_cv_c_gcc_strength_bug="yes"
9545else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009546 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009547#line $LINENO "configure"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009548#include "confdefs.h"
9549
Eric Pouech5aee80f2000-11-11 00:31:39 +00009550int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009551int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00009552 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009553 unsigned int B = 3;
9554 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00009555 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +00009556 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9557 L[i] = 4;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009558
Eric Pouech5aee80f2000-11-11 00:31:39 +00009559 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009560}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009561_ACEOF
9562rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009564 (eval $ac_link) 2>&5
9565 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009569 (eval $ac_try) 2>&5
9570 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009572 (exit $ac_status); }; }; then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009573 ac_cv_c_gcc_strength_bug="no"
9574else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009575 echo "$as_me: program exited with status $ac_status" >&5
9576echo "$as_me: failed program was:" >&5
9577cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009578( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009579ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009580fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009581rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009582fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009583fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009584echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009585echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009586 if test "$ac_cv_c_gcc_strength_bug" = "yes"
9587 then
9588 CFLAGS="$CFLAGS -fno-strength-reduce"
9589 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009590
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009591 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009592echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9593if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009595else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009596 ac_wine_try_cflags_saved=$CFLAGS
9597CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9598cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009599#line $LINENO "configure"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009600#include "confdefs.h"
9601
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009602int
9603main ()
9604{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009605
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009606 ;
9607 return 0;
9608}
9609_ACEOF
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009610rm -f conftest.$ac_objext conftest$ac_exeext
9611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9612 (eval $ac_link) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009613 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009615 (exit $ac_status); } &&
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009616 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009618 (eval $ac_try) 2>&5
9619 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009621 (exit $ac_status); }; }; then
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009622 ac_cv_c_gcc_stack_boundary="yes"
9623else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009624 echo "$as_me: failed program was:" >&5
9625cat conftest.$ac_ext >&5
9626ac_cv_c_gcc_stack_boundary="no"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009627fi
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009628rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9629CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009630fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009631echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009632echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009633 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9634 then
9635 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9636 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009637fi
9638
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009639
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009640echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
9641echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
9642if test "${ac_cv_asm_func_def+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009643 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009644else
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009645 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009646#line $LINENO "configure"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009647#include "confdefs.h"
Alexandre Julliard520852c2002-08-07 00:04:44 +00009648void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); }
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009649
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009650int
9651main ()
9652{
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009653
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009654 ;
9655 return 0;
9656}
9657_ACEOF
9658rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009660 (eval $ac_link) 2>&5
9661 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009663 (exit $ac_status); } &&
9664 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009666 (eval $ac_try) 2>&5
9667 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009669 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009670 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009671else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009672 echo "$as_me: failed program was:" >&5
9673cat conftest.$ac_ext >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009674cat >conftest.$ac_ext <<_ACEOF
9675#line $LINENO "configure"
9676#include "confdefs.h"
Alexandre Julliard520852c2002-08-07 00:04:44 +00009677void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009678
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009679int
9680main ()
9681{
9682
9683 ;
9684 return 0;
9685}
9686_ACEOF
9687rm -f conftest.$ac_objext conftest$ac_exeext
9688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9689 (eval $ac_link) 2>&5
9690 ac_status=$?
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } &&
9693 { ac_try='test -s conftest$ac_exeext'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 (eval $ac_try) 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009699 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009700else
9701 echo "$as_me: failed program was:" >&5
9702cat conftest.$ac_ext >&5
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009703cat >conftest.$ac_ext <<_ACEOF
9704#line $LINENO "configure"
9705#include "confdefs.h"
Alexandre Julliard520852c2002-08-07 00:04:44 +00009706void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009707
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009708int
9709main ()
9710{
9711
9712 ;
9713 return 0;
9714}
9715_ACEOF
9716rm -f conftest.$ac_objext conftest$ac_exeext
9717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9718 (eval $ac_link) 2>&5
9719 ac_status=$?
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
9722 { ac_try='test -s conftest$ac_exeext'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 (eval $ac_try) 2>&5
9725 ac_status=$?
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; }; then
9728 ac_cv_asm_func_def=".type 2"
9729else
9730 echo "$as_me: failed program was:" >&5
9731cat conftest.$ac_ext >&5
9732ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009733fi
9734rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009735fi
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009736rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9737fi
9738rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9739fi
9740echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
9741echo "${ECHO_T}$ac_cv_asm_func_def" >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009742
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009743
9744
9745case "$ac_cv_asm_func_def" in
9746 ".def")
9747 cat >>confdefs.h <<\_ACEOF
9748#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009749_ACEOF
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009750 ;;
9751 ".type @function")
9752 cat >>confdefs.h <<\_ACEOF
9753#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
9754_ACEOF
9755 ;;
9756 ".type 2")
9757 cat >>confdefs.h <<\_ACEOF
9758#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
9759_ACEOF
9760 ;;
9761 *)
9762 cat >>confdefs.h <<\_ACEOF
9763#define __ASM_FUNC(name) ""
9764_ACEOF
9765 ;;
9766esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009767
9768
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009769echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009770echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
9771if test "${ac_cv_c_extern_prefix+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009773else
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009774 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009775#line $LINENO "configure"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009776#include "confdefs.h"
Alexandre Julliard520852c2002-08-07 00:04:44 +00009777void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009778extern int ac_test;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009779int
9780main ()
9781{
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009782if (ac_test) return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009783 ;
9784 return 0;
9785}
9786_ACEOF
9787rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009789 (eval $ac_link) 2>&5
9790 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009792 (exit $ac_status); } &&
9793 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009795 (eval $ac_try) 2>&5
9796 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009798 (exit $ac_status); }; }; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009799 ac_cv_c_extern_prefix="yes"
9800else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009801 echo "$as_me: failed program was:" >&5
9802cat conftest.$ac_ext >&5
9803ac_cv_c_extern_prefix="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009804fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009805rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009806fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009807echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009808echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009809
9810
9811
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009812if test "$ac_cv_c_extern_prefix" = "yes"
9813then
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009814 cat >>confdefs.h <<\_ACEOF
9815#define __ASM_NAME(name) "_" name
9816_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009817
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009818else
9819 cat >>confdefs.h <<\_ACEOF
9820#define __ASM_NAME(name) name
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009821_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009822
9823fi
9824
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009825
9826echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009827echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
9828if test "${ac_cv_c_stdcall_decoration+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009830else
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009831 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009832#line $LINENO "configure"
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009833#include "confdefs.h"
Alexandre Julliard520852c2002-08-07 00:04:44 +00009834void ac_asm(void) { asm("\t.globl _ac_test@0\n_ac_test@0:\n\t.globl ac_test@0\nac_test@0:"); }
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009835extern void __attribute__((__stdcall__)) ac_test(void);
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009836int
9837main ()
9838{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009839ac_test()
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009840 ;
9841 return 0;
9842}
9843_ACEOF
9844rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009846 (eval $ac_link) 2>&5
9847 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009849 (exit $ac_status); } &&
9850 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009852 (eval $ac_try) 2>&5
9853 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009855 (exit $ac_status); }; }; then
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009856 ac_cv_c_stdcall_decoration="yes"
9857else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009858 echo "$as_me: failed program was:" >&5
9859cat conftest.$ac_ext >&5
9860ac_cv_c_stdcall_decoration="no"
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009861fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009862rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009863fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009864echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009865echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009866if test "$ac_cv_c_stdcall_decoration" = "yes"
9867then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009868
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009869cat >>confdefs.h <<\_ACEOF
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009870#define NEED_STDCALL_DECORATION 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009871_ACEOF
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009872
9873fi
9874
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009875
9876echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009877echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
9878if test "${ac_cv_c_asm_string+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009880else
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009881 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009882#line $LINENO "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009883#include "confdefs.h"
Marcus Meissner49163d52002-08-20 00:26:40 +00009884void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009885
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009886int
9887main ()
9888{
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009889
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009890 ;
9891 return 0;
9892}
9893_ACEOF
9894rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009896 (eval $ac_link) 2>&5
9897 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009899 (exit $ac_status); } &&
9900 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009902 (eval $ac_try) 2>&5
9903 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009905 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009906 ac_cv_c_asm_string="yes"
9907else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009908 echo "$as_me: failed program was:" >&5
9909cat conftest.$ac_ext >&5
9910ac_cv_c_asm_string="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009911fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009912rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009913fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009914echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009915echo "${ECHO_T}$ac_cv_c_asm_string" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009916if test "$ac_cv_c_asm_string" = "yes"
9917then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009918
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009919cat >>confdefs.h <<\_ACEOF
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009920#define HAVE_ASM_STRING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009921_ACEOF
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009922
9923fi
9924
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009925
Alexandre Julliard7bf07d12002-08-03 00:25:59 +00009926DLLEXT=""
9927
9928DLLFLAGS=""
9929
Alexandre Julliardfa3a5362002-05-09 01:49:54 +00009930DLLIBS=""
9931
Alexandre Julliard7bf07d12002-08-03 00:25:59 +00009932LDDLLFLAGS=""
9933
9934LDSHARED=""
9935
9936
Alexandre Julliardfc01b722002-05-12 03:16:39 +00009937case $host_os in
9938 cygwin*|mingw32*)
9939 if test -n "$ac_tool_prefix"; then
9940 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
9941set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard466ae142002-05-07 18:33:47 +00009942echo "$as_me:$LINENO: checking for $ac_word" >&5
9943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9944if test "${ac_cv_prog_DLLWRAP+set}" = set; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9946else
9947 if test -n "$DLLWRAP"; then
9948 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
9949else
9950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951for as_dir in $PATH
9952do
9953 IFS=$as_save_IFS
9954 test -z "$as_dir" && as_dir=.
9955 for ac_exec_ext in '' $ac_executable_extensions; do
9956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00009957 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard466ae142002-05-07 18:33:47 +00009958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9959 break 2
9960 fi
9961done
9962done
9963
Alexandre Julliard466ae142002-05-07 18:33:47 +00009964fi
9965fi
9966DLLWRAP=$ac_cv_prog_DLLWRAP
9967if test -n "$DLLWRAP"; then
9968 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
9969echo "${ECHO_T}$DLLWRAP" >&6
9970else
9971 echo "$as_me:$LINENO: result: no" >&5
9972echo "${ECHO_T}no" >&6
9973fi
9974
Alexandre Julliardfc01b722002-05-12 03:16:39 +00009975fi
9976if test -z "$ac_cv_prog_DLLWRAP"; then
9977 ac_ct_DLLWRAP=$DLLWRAP
9978 # Extract the first word of "dllwrap", so it can be a program name with args.
9979set dummy dllwrap; ac_word=$2
9980echo "$as_me:$LINENO: checking for $ac_word" >&5
9981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9982if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9984else
9985 if test -n "$ac_ct_DLLWRAP"; then
9986 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
9987else
9988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9989for as_dir in $PATH
9990do
9991 IFS=$as_save_IFS
9992 test -z "$as_dir" && as_dir=.
9993 for ac_exec_ext in '' $ac_executable_extensions; do
9994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9995 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
9996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9997 break 2
9998 fi
9999done
10000done
10001
10002 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
10003fi
10004fi
10005ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
10006if test -n "$ac_ct_DLLWRAP"; then
10007 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
10008echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
10009else
10010 echo "$as_me:$LINENO: result: no" >&5
10011echo "${ECHO_T}no" >&6
10012fi
10013
10014 DLLWRAP=$ac_ct_DLLWRAP
10015else
10016 DLLWRAP="$ac_cv_prog_DLLWRAP"
10017fi
10018
10019 if test "$DLLWRAP" = "false"; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010020 LIBEXT="a"
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010021 else
10022 LIBEXT="dll"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010023 fi
10024 ;;
10025 *)
10026
10027for ac_header in dlfcn.h
10028do
10029as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10030if eval "test \"\${$as_ac_Header+set}\" = set"; then
10031 echo "$as_me:$LINENO: checking for $ac_header" >&5
10032echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10033if eval "test \"\${$as_ac_Header+set}\" = set"; then
10034 echo $ECHO_N "(cached) $ECHO_C" >&6
10035fi
10036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10037echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10038else
10039 # Is the header compilable?
10040echo "$as_me:$LINENO: checking $ac_header usability" >&5
10041echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10042cat >conftest.$ac_ext <<_ACEOF
10043#line $LINENO "configure"
10044#include "confdefs.h"
10045$ac_includes_default
10046#include <$ac_header>
10047_ACEOF
10048rm -f conftest.$ac_objext
10049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10050 (eval $ac_compile) 2>&5
10051 ac_status=$?
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } &&
10054 { ac_try='test -s conftest.$ac_objext'
10055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056 (eval $ac_try) 2>&5
10057 ac_status=$?
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; }; then
10060 ac_header_compiler=yes
10061else
10062 echo "$as_me: failed program was:" >&5
10063cat conftest.$ac_ext >&5
10064ac_header_compiler=no
10065fi
10066rm -f conftest.$ac_objext conftest.$ac_ext
10067echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10068echo "${ECHO_T}$ac_header_compiler" >&6
10069
10070# Is the header present?
10071echo "$as_me:$LINENO: checking $ac_header presence" >&5
10072echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10073cat >conftest.$ac_ext <<_ACEOF
10074#line $LINENO "configure"
10075#include "confdefs.h"
10076#include <$ac_header>
10077_ACEOF
10078if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10080 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010081 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010082 rm -f conftest.er1
10083 cat conftest.err >&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } >/dev/null; then
10086 if test -s conftest.err; then
10087 ac_cpp_err=$ac_c_preproc_warn_flag
10088 else
10089 ac_cpp_err=
10090 fi
10091else
10092 ac_cpp_err=yes
10093fi
10094if test -z "$ac_cpp_err"; then
10095 ac_header_preproc=yes
10096else
10097 echo "$as_me: failed program was:" >&5
10098 cat conftest.$ac_ext >&5
10099 ac_header_preproc=no
10100fi
10101rm -f conftest.err conftest.$ac_ext
10102echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10103echo "${ECHO_T}$ac_header_preproc" >&6
10104
10105# So? What about this header?
10106case $ac_header_compiler:$ac_header_preproc in
10107 yes:no )
10108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10111echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10112 no:yes )
10113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10114echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10116echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10118echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10119esac
10120echo "$as_me:$LINENO: checking for $ac_header" >&5
10121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10122if eval "test \"\${$as_ac_Header+set}\" = set"; then
10123 echo $ECHO_N "(cached) $ECHO_C" >&6
10124else
10125 eval "$as_ac_Header=$ac_header_preproc"
10126fi
10127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10128echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10129
10130fi
10131if test `eval echo '${'$as_ac_Header'}'` = yes; then
10132 cat >>confdefs.h <<_ACEOF
10133#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10134_ACEOF
10135
10136for ac_func in dlopen
10137do
10138as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10139echo "$as_me:$LINENO: checking for $ac_func" >&5
10140echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10141if eval "test \"\${$as_ac_var+set}\" = set"; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10143else
10144 cat >conftest.$ac_ext <<_ACEOF
10145#line $LINENO "configure"
10146#include "confdefs.h"
10147/* System header to define __stub macros and hopefully few prototypes,
10148 which can conflict with char $ac_func (); below. */
10149#include <assert.h>
10150/* Override any gcc2 internal prototype to avoid an error. */
10151#ifdef __cplusplus
10152extern "C"
10153#endif
10154/* We use char because int might match the return type of a gcc2
10155 builtin and then its argument prototype would still apply. */
10156char $ac_func ();
10157char (*f) ();
10158
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010159int
10160main ()
10161{
10162/* The GNU C library defines this for functions which it implements
10163 to always fail with ENOSYS. Some functions are actually named
10164 something starting with __ and the normal name is an alias. */
10165#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10166choke me
10167#else
10168f = $ac_func;
10169#endif
10170
10171 ;
10172 return 0;
10173}
10174_ACEOF
10175rm -f conftest.$ac_objext conftest$ac_exeext
10176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10177 (eval $ac_link) 2>&5
10178 ac_status=$?
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } &&
10181 { ac_try='test -s conftest$ac_exeext'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10184 ac_status=$?
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; }; then
10187 eval "$as_ac_var=yes"
10188else
10189 echo "$as_me: failed program was:" >&5
10190cat conftest.$ac_ext >&5
10191eval "$as_ac_var=no"
10192fi
10193rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10194fi
10195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10196echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10197if test `eval echo '${'$as_ac_var'}'` = yes; then
10198 cat >>confdefs.h <<_ACEOF
10199#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10200_ACEOF
10201
10202else
10203 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10204echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10205if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10206 echo $ECHO_N "(cached) $ECHO_C" >&6
10207else
10208 ac_check_lib_save_LIBS=$LIBS
10209LIBS="-ldl $LIBS"
10210cat >conftest.$ac_ext <<_ACEOF
10211#line $LINENO "configure"
10212#include "confdefs.h"
10213
10214/* Override any gcc2 internal prototype to avoid an error. */
10215#ifdef __cplusplus
10216extern "C"
10217#endif
10218/* We use char because int might match the return type of a gcc2
10219 builtin and then its argument prototype would still apply. */
10220char dlopen ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010221int
10222main ()
10223{
10224dlopen ();
10225 ;
10226 return 0;
10227}
10228_ACEOF
10229rm -f conftest.$ac_objext conftest$ac_exeext
10230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231 (eval $ac_link) 2>&5
10232 ac_status=$?
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
10235 { ac_try='test -s conftest$ac_exeext'
10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10238 ac_status=$?
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; }; then
10241 ac_cv_lib_dl_dlopen=yes
10242else
10243 echo "$as_me: failed program was:" >&5
10244cat conftest.$ac_ext >&5
10245ac_cv_lib_dl_dlopen=no
10246fi
10247rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10248LIBS=$ac_check_lib_save_LIBS
10249fi
10250echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10251echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10252if test $ac_cv_lib_dl_dlopen = yes; then
10253
10254cat >>confdefs.h <<\_ACEOF
10255#define HAVE_DLOPEN 1
10256_ACEOF
10257
10258 DLLIBS="-ldl"
10259else
10260 LIBEXT="a"
10261fi
10262
10263fi
10264done
10265
10266else
10267 LIBEXT="a"
10268fi
10269
10270done
10271
10272
10273 if test "$LIBEXT" = "so"
10274 then
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010275 DLLFLAGS="-fPIC"
10276 DLLEXT=".so"
Alexandre Julliard466ae142002-05-07 18:33:47 +000010277 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010278echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
10279if test "${ac_cv_c_dll_gnuelf+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010281else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010282 ac_wine_try_cflags_saved=$CFLAGS
10283CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
10284cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010285#line $LINENO "configure"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010286#include "confdefs.h"
10287
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010288int
10289main ()
10290{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010291
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010292 ;
10293 return 0;
10294}
10295_ACEOF
10296rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010298 (eval $ac_link) 2>&5
10299 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010301 (exit $ac_status); } &&
10302 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010304 (eval $ac_try) 2>&5
10305 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010307 (exit $ac_status); }; }; then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +000010308 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010309else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010310 echo "$as_me: failed program was:" >&5
10311cat conftest.$ac_ext >&5
10312ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010313fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010314rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010315CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010316fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010317echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010318echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000010319 if test "$ac_cv_c_dll_gnuelf" = "yes"
10320 then
10321 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
10322 LDDLLFLAGS="-Wl,-Bsymbolic"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000010323 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
10324echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
10325if test "${ac_cv_c_dll_zdefs+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10327else
10328 ac_wine_try_cflags_saved=$CFLAGS
10329CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
10330cat >conftest.$ac_ext <<_ACEOF
10331#line $LINENO "configure"
10332#include "confdefs.h"
10333
10334int
10335main ()
10336{
10337
10338 ;
10339 return 0;
10340}
10341_ACEOF
10342rm -f conftest.$ac_objext conftest$ac_exeext
10343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344 (eval $ac_link) 2>&5
10345 ac_status=$?
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } &&
10348 { ac_try='test -s conftest$ac_exeext'
10349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350 (eval $ac_try) 2>&5
10351 ac_status=$?
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }; }; then
10354 ac_cv_c_dll_zdefs="yes"
10355else
10356 echo "$as_me: failed program was:" >&5
10357cat conftest.$ac_ext >&5
10358ac_cv_c_dll_zdefs="no"
10359fi
10360rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10361CFLAGS=$ac_wine_try_cflags_saved
10362fi
10363echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
10364echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
10365 if test "$ac_cv_c_dll_zdefs" = "yes"
10366 then
10367 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
10368 fi
Alexandre Julliard466ae142002-05-07 18:33:47 +000010369 else
10370 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010371echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
10372if test "${ac_cv_c_dll_unixware+set}" = set; then
10373 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierling4b992b01998-12-15 15:26:27 +000010374else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010375 ac_wine_try_cflags_saved=$CFLAGS
10376CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
10377cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010378#line $LINENO "configure"
Todd Vierling4b992b01998-12-15 15:26:27 +000010379#include "confdefs.h"
10380
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010381int
10382main ()
10383{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010384
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010385 ;
10386 return 0;
10387}
10388_ACEOF
10389rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010391 (eval $ac_link) 2>&5
10392 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010394 (exit $ac_status); } &&
10395 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010397 (eval $ac_try) 2>&5
10398 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010400 (exit $ac_status); }; }; then
Ron Recorde977d6c1999-09-05 12:32:05 +000010401 ac_cv_c_dll_unixware="yes"
10402else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010403 echo "$as_me: failed program was:" >&5
10404cat conftest.$ac_ext >&5
10405ac_cv_c_dll_unixware="no"
Ron Recorde977d6c1999-09-05 12:32:05 +000010406fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010407rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010408CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010409fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010410echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010411echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000010412 if test "$ac_cv_c_dll_unixware" = "yes"
10413 then
10414 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
10415 LDDLLFLAGS="-Wl,-B,symbolic"
10416 fi
10417 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010418 fi
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000010419
10420 CROSSTEST=""
10421
10422 if test "$cross_compiling" = "no"
10423 then
10424 for ac_prog in i586-mingw32msvc-gcc
10425do
10426 # Extract the first word of "$ac_prog", so it can be a program name with args.
10427set dummy $ac_prog; ac_word=$2
10428echo "$as_me:$LINENO: checking for $ac_word" >&5
10429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10430if test "${ac_cv_prog_CROSSCC+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10432else
10433 if test -n "$CROSSCC"; then
10434 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
10435else
10436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437for as_dir in $PATH
10438do
10439 IFS=$as_save_IFS
10440 test -z "$as_dir" && as_dir=.
10441 for ac_exec_ext in '' $ac_executable_extensions; do
10442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10443 ac_cv_prog_CROSSCC="$ac_prog"
10444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10445 break 2
10446 fi
10447done
10448done
10449
10450fi
10451fi
10452CROSSCC=$ac_cv_prog_CROSSCC
10453if test -n "$CROSSCC"; then
10454 echo "$as_me:$LINENO: result: $CROSSCC" >&5
10455echo "${ECHO_T}$CROSSCC" >&6
10456else
10457 echo "$as_me:$LINENO: result: no" >&5
10458echo "${ECHO_T}no" >&6
10459fi
10460
10461 test -n "$CROSSCC" && break
10462done
10463test -n "$CROSSCC" || CROSSCC="false"
10464
10465 for ac_prog in i586-mingw32msvc-dlltool
10466do
10467 # Extract the first word of "$ac_prog", so it can be a program name with args.
10468set dummy $ac_prog; ac_word=$2
10469echo "$as_me:$LINENO: checking for $ac_word" >&5
10470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10471if test "${ac_cv_prog_DLLTOOL+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10473else
10474 if test -n "$DLLTOOL"; then
10475 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10476else
10477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478for as_dir in $PATH
10479do
10480 IFS=$as_save_IFS
10481 test -z "$as_dir" && as_dir=.
10482 for ac_exec_ext in '' $ac_executable_extensions; do
10483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10484 ac_cv_prog_DLLTOOL="$ac_prog"
10485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10486 break 2
10487 fi
10488done
10489done
10490
10491fi
10492fi
10493DLLTOOL=$ac_cv_prog_DLLTOOL
10494if test -n "$DLLTOOL"; then
10495 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
10496echo "${ECHO_T}$DLLTOOL" >&6
10497else
10498 echo "$as_me:$LINENO: result: no" >&5
10499echo "${ECHO_T}no" >&6
10500fi
10501
10502 test -n "$DLLTOOL" && break
10503done
10504test -n "$DLLTOOL" || DLLTOOL="false"
10505
10506 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
10507 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010508 ;;
10509esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010510
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000010511if test "$LIBEXT" = "a"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010512 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010513It is currently not possible to build Wine without shared library
10514(.so) support to allow transparent switch between .so and .dll files.
10515If you are using Linux, you will need a newer binutils.
10516" >&5
10517echo "$as_me: error: could not find a way to build shared libraries.
10518It is currently not possible to build Wine without shared library
10519(.so) support to allow transparent switch between .so and .dll files.
10520If you are using Linux, you will need a newer binutils.
10521" >&2;}
10522 { (exit 1); exit 1; }; }
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000010523fi
10524
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010525case $build_os in
10526 cygwin*|mingw32*)
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010527 LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\""
10528 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010529 *)
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010530 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\""
10531 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010532esac
10533
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010534CRTLIBS=""
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010535
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010536case $host_os in
10537 mingw32*)
10538 CRTLIBS="-lmsvcrt" ;;
10539esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010540
10541
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010542if test "$LIBEXT" = "so"
10543then
10544 # Extract the first word of "ldd", so it can be a program name with args.
10545set dummy ldd; ac_word=$2
10546echo "$as_me:$LINENO: checking for $ac_word" >&5
10547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10548if test "${ac_cv_path_LDD+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10550else
10551 case $LDD in
10552 [\\/]* | ?:[\\/]*)
10553 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10554 ;;
10555 *)
10556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010557as_dummy="/sbin:/usr/sbin:$PATH"
10558for as_dir in $as_dummy
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010559do
10560 IFS=$as_save_IFS
10561 test -z "$as_dir" && as_dir=.
10562 for ac_exec_ext in '' $ac_executable_extensions; do
10563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10564 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10566 break 2
10567 fi
10568done
10569done
10570
10571 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
10572 ;;
10573esac
10574fi
10575LDD=$ac_cv_path_LDD
10576
10577if test -n "$LDD"; then
10578 echo "$as_me:$LINENO: result: $LDD" >&5
10579echo "${ECHO_T}$LDD" >&6
10580else
10581 echo "$as_me:$LINENO: result: no" >&5
10582echo "${ECHO_T}no" >&6
10583fi
10584
10585
10586echo "$as_me:$LINENO: checking for -lX11 soname" >&5
10587echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
10588if test "${ac_cv_lib_soname_X11+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10590else
10591 ac_get_soname_save_LIBS=$LIBS
10592LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
10593 cat >conftest.$ac_ext <<_ACEOF
10594#line $LINENO "configure"
10595#include "confdefs.h"
10596
10597/* Override any gcc2 internal prototype to avoid an error. */
10598#ifdef __cplusplus
10599extern "C"
10600#endif
10601/* We use char because int might match the return type of a gcc2
10602 builtin and then its argument prototype would still apply. */
10603char XCreateWindow ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010604int
10605main ()
10606{
10607XCreateWindow ();
10608 ;
10609 return 0;
10610}
10611_ACEOF
10612rm -f conftest.$ac_objext conftest$ac_exeext
10613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10614 (eval $ac_link) 2>&5
10615 ac_status=$?
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } &&
10618 { ac_try='test -s conftest$ac_exeext'
10619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620 (eval $ac_try) 2>&5
10621 ac_status=$?
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; }; then
10624 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10625 if test "x$ac_cv_lib_soname_X11" = "x"
10626 then
10627 ac_cv_lib_soname_X11="libX11.so"
10628 fi
10629else
10630 echo "$as_me: failed program was:" >&5
10631cat conftest.$ac_ext >&5
10632ac_cv_lib_soname_X11="libX11.so"
10633fi
10634rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10635 LIBS=$ac_get_soname_save_LIBS
10636fi
10637echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
10638echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
10639if test "x$ac_cv_lib_soname_X11" != xNONE
10640then
10641cat >>confdefs.h <<_ACEOF
10642#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
10643_ACEOF
10644fi
10645
10646echo "$as_me:$LINENO: checking for -lXext soname" >&5
10647echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
10648if test "${ac_cv_lib_soname_Xext+set}" = set; then
10649 echo $ECHO_N "(cached) $ECHO_C" >&6
10650else
10651 ac_get_soname_save_LIBS=$LIBS
10652LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10653 cat >conftest.$ac_ext <<_ACEOF
10654#line $LINENO "configure"
10655#include "confdefs.h"
10656
10657/* Override any gcc2 internal prototype to avoid an error. */
10658#ifdef __cplusplus
10659extern "C"
10660#endif
10661/* We use char because int might match the return type of a gcc2
10662 builtin and then its argument prototype would still apply. */
10663char XextCreateExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010664int
10665main ()
10666{
10667XextCreateExtension ();
10668 ;
10669 return 0;
10670}
10671_ACEOF
10672rm -f conftest.$ac_objext conftest$ac_exeext
10673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10674 (eval $ac_link) 2>&5
10675 ac_status=$?
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } &&
10678 { ac_try='test -s conftest$ac_exeext'
10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680 (eval $ac_try) 2>&5
10681 ac_status=$?
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; }; then
10684 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10685 if test "x$ac_cv_lib_soname_Xext" = "x"
10686 then
10687 ac_cv_lib_soname_Xext="libXext.so"
10688 fi
10689else
10690 echo "$as_me: failed program was:" >&5
10691cat conftest.$ac_ext >&5
10692ac_cv_lib_soname_Xext="libXext.so"
10693fi
10694rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10695 LIBS=$ac_get_soname_save_LIBS
10696fi
10697echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
10698echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
10699if test "x$ac_cv_lib_soname_Xext" != xNONE
10700then
10701cat >>confdefs.h <<_ACEOF
10702#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
10703_ACEOF
10704fi
10705
10706echo "$as_me:$LINENO: checking for -lXrender soname" >&5
10707echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
10708if test "${ac_cv_lib_soname_Xrender+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10710else
10711 ac_get_soname_save_LIBS=$LIBS
10712LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10713 cat >conftest.$ac_ext <<_ACEOF
10714#line $LINENO "configure"
10715#include "confdefs.h"
10716
10717/* Override any gcc2 internal prototype to avoid an error. */
10718#ifdef __cplusplus
10719extern "C"
10720#endif
10721/* We use char because int might match the return type of a gcc2
10722 builtin and then its argument prototype would still apply. */
10723char XRenderQueryExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010724int
10725main ()
10726{
10727XRenderQueryExtension ();
10728 ;
10729 return 0;
10730}
10731_ACEOF
10732rm -f conftest.$ac_objext conftest$ac_exeext
10733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10734 (eval $ac_link) 2>&5
10735 ac_status=$?
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); } &&
10738 { ac_try='test -s conftest$ac_exeext'
10739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740 (eval $ac_try) 2>&5
10741 ac_status=$?
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; }; then
10744 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10745 if test "x$ac_cv_lib_soname_Xrender" = "x"
10746 then
10747 ac_cv_lib_soname_Xrender="libXrender.so"
10748 fi
10749else
10750 echo "$as_me: failed program was:" >&5
10751cat conftest.$ac_ext >&5
10752ac_cv_lib_soname_Xrender="libXrender.so"
10753fi
10754rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10755 LIBS=$ac_get_soname_save_LIBS
10756fi
10757echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
10758echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
10759if test "x$ac_cv_lib_soname_Xrender" != xNONE
10760then
10761cat >>confdefs.h <<_ACEOF
10762#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
10763_ACEOF
10764fi
10765
10766echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
10767echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
10768if test "${ac_cv_lib_soname_freetype+set}" = set; then
10769 echo $ECHO_N "(cached) $ECHO_C" >&6
10770else
10771 ac_get_soname_save_LIBS=$LIBS
10772LIBS="-lfreetype $X_LIBS $LIBS"
10773 cat >conftest.$ac_ext <<_ACEOF
10774#line $LINENO "configure"
10775#include "confdefs.h"
10776
10777/* Override any gcc2 internal prototype to avoid an error. */
10778#ifdef __cplusplus
10779extern "C"
10780#endif
10781/* We use char because int might match the return type of a gcc2
10782 builtin and then its argument prototype would still apply. */
10783char FT_Init_FreeType ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010784int
10785main ()
10786{
10787FT_Init_FreeType ();
10788 ;
10789 return 0;
10790}
10791_ACEOF
10792rm -f conftest.$ac_objext conftest$ac_exeext
10793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10794 (eval $ac_link) 2>&5
10795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); } &&
10798 { ac_try='test -s conftest$ac_exeext'
10799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800 (eval $ac_try) 2>&5
10801 ac_status=$?
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; }; then
10804 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10805 if test "x$ac_cv_lib_soname_freetype" = "x"
10806 then
10807 ac_cv_lib_soname_freetype="libfreetype.so"
10808 fi
10809else
10810 echo "$as_me: failed program was:" >&5
10811cat conftest.$ac_ext >&5
10812ac_cv_lib_soname_freetype="libfreetype.so"
10813fi
10814rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10815 LIBS=$ac_get_soname_save_LIBS
10816fi
10817echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
10818echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
10819if test "x$ac_cv_lib_soname_freetype" != xNONE
10820then
10821cat >>confdefs.h <<_ACEOF
10822#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10823_ACEOF
10824fi
Marcus Meissnerf061f762002-11-12 02:22:24 +000010825
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000010826echo "$as_me:$LINENO: checking for -lGL soname" >&5
10827echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
10828if test "${ac_cv_lib_soname_GL+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830else
10831 ac_get_soname_save_LIBS=$LIBS
10832LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
10833 cat >conftest.$ac_ext <<_ACEOF
10834#line $LINENO "configure"
10835#include "confdefs.h"
10836
10837/* Override any gcc2 internal prototype to avoid an error. */
10838#ifdef __cplusplus
10839extern "C"
10840#endif
10841/* We use char because int might match the return type of a gcc2
10842 builtin and then its argument prototype would still apply. */
10843char glXQueryExtension ();
10844int
10845main ()
10846{
10847glXQueryExtension ();
10848 ;
10849 return 0;
10850}
10851_ACEOF
10852rm -f conftest.$ac_objext conftest$ac_exeext
10853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10854 (eval $ac_link) 2>&5
10855 ac_status=$?
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
10858 { ac_try='test -s conftest$ac_exeext'
10859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10861 ac_status=$?
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; }; then
10864 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10865 if test "x$ac_cv_lib_soname_GL" = "x"
10866 then
10867 ac_cv_lib_soname_GL="libGL.so"
10868 fi
10869else
10870 echo "$as_me: failed program was:" >&5
10871cat conftest.$ac_ext >&5
10872ac_cv_lib_soname_GL="libGL.so"
10873fi
10874rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10875 LIBS=$ac_get_soname_save_LIBS
10876fi
10877echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
10878echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
10879if test "x$ac_cv_lib_soname_GL" != xNONE
10880then
10881cat >>confdefs.h <<_ACEOF
10882#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10883_ACEOF
10884fi
10885
Marcus Meissnerf061f762002-11-12 02:22:24 +000010886echo "$as_me:$LINENO: checking for -lcups soname" >&5
10887echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
10888if test "${ac_cv_lib_soname_cups+set}" = set; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10890else
10891 ac_get_soname_save_LIBS=$LIBS
10892LIBS="-lcups $LIBS"
10893 cat >conftest.$ac_ext <<_ACEOF
10894#line $LINENO "configure"
10895#include "confdefs.h"
10896
10897/* Override any gcc2 internal prototype to avoid an error. */
10898#ifdef __cplusplus
10899extern "C"
10900#endif
10901/* We use char because int might match the return type of a gcc2
10902 builtin and then its argument prototype would still apply. */
10903char cupsGetDefault ();
10904int
10905main ()
10906{
10907cupsGetDefault ();
10908 ;
10909 return 0;
10910}
10911_ACEOF
10912rm -f conftest.$ac_objext conftest$ac_exeext
10913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10914 (eval $ac_link) 2>&5
10915 ac_status=$?
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } &&
10918 { ac_try='test -s conftest$ac_exeext'
10919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920 (eval $ac_try) 2>&5
10921 ac_status=$?
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
10924 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10925 if test "x$ac_cv_lib_soname_cups" = "x"
10926 then
10927 ac_cv_lib_soname_cups="libcups.so"
10928 fi
10929else
10930 echo "$as_me: failed program was:" >&5
10931cat conftest.$ac_ext >&5
10932ac_cv_lib_soname_cups="libcups.so"
10933fi
10934rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10935 LIBS=$ac_get_soname_save_LIBS
10936fi
10937echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
10938echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
10939if test "x$ac_cv_lib_soname_cups" != xNONE
10940then
10941cat >>confdefs.h <<_ACEOF
10942#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10943_ACEOF
10944fi
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010945fi
10946
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010947
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010948
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010949wine_cv_libc_reentrant=no
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010950echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010951echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
10952if test "${wine_cv_libc_r___errno_location+set}" = set; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010954else
10955 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010956 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010957else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010958 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010959#line $LINENO "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010960#include "confdefs.h"
10961int myerrno = 0;
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010962int *__errno_location(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000010963main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010964_ACEOF
10965rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010967 (eval $ac_link) 2>&5
10968 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010972 (eval $ac_try) 2>&5
10973 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010975 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000010976 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010977else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010978 echo "$as_me: program exited with status $ac_status" >&5
10979echo "$as_me: failed program was:" >&5
10980cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010981( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010982wine_cv_libc_r___errno_location=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010983fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010984rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010985fi
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010986fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010987echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010988echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010989if test "$wine_cv_libc_r___errno_location" = "yes"; then
10990 wine_cv_libc_reentrant=__errno_location
10991else
10992 echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010993echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
10994if test "${wine_cv_libc_r___error+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010996else
10997 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010998 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +000010999else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011000 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011001#line $LINENO "configure"
Marcus Meissnerc2606381999-04-11 15:20:29 +000011002#include "confdefs.h"
11003int myerrno = 0;
Marcus Meissnerc2606381999-04-11 15:20:29 +000011004int *__error(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000011005main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011006_ACEOF
11007rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011009 (eval $ac_link) 2>&5
11010 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011014 (eval $ac_try) 2>&5
11015 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011017 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000011018 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +000011019else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011020 echo "$as_me: program exited with status $ac_status" >&5
11021echo "$as_me: failed program was:" >&5
11022cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011023( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011024wine_cv_libc_r___error=no
Marcus Meissnerc2606381999-04-11 15:20:29 +000011025fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011026rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissnerc2606381999-04-11 15:20:29 +000011027fi
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011028fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011029echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011030echo "${ECHO_T}$wine_cv_libc_r___error" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011031if test "$wine_cv_libc_r___error" = "yes"; then
11032 wine_cv_libc_reentrant=__error
11033else
11034 echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011035echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
11036if test "${wine_cv_libc_r____errno+set}" = set; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011038else
11039 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011040 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011041else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011042 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011043#line $LINENO "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011044#include "confdefs.h"
11045int myerrno = 0;
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011046int *___errno(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000011047main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011048_ACEOF
11049rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011051 (eval $ac_link) 2>&5
11052 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011056 (eval $ac_try) 2>&5
11057 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011059 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000011060 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011061else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011062 echo "$as_me: program exited with status $ac_status" >&5
11063echo "$as_me: failed program was:" >&5
11064cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011065( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011066wine_cv_libc_r____errno=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011067fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011068rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011069fi
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011070fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011071echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011072echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011073if test "$wine_cv_libc_r____errno" = "yes"; then
11074 wine_cv_libc_reentrant=___errno
11075else
11076 echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011077echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
11078if test "${wine_cv_libc_r___thr_errno+set}" = set; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
Ron Recorde977d6c1999-09-05 12:32:05 +000011080else
11081 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011082 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +000011083else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011084 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011085#line $LINENO "configure"
Ron Recorde977d6c1999-09-05 12:32:05 +000011086#include "confdefs.h"
11087int myerrno = 0;
Ron Recorde977d6c1999-09-05 12:32:05 +000011088int *__thr_errno(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000011089main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011090_ACEOF
11091rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011093 (eval $ac_link) 2>&5
11094 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011098 (eval $ac_try) 2>&5
11099 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011101 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000011102 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +000011103else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011104 echo "$as_me: program exited with status $ac_status" >&5
11105echo "$as_me: failed program was:" >&5
11106cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011107( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011108wine_cv_libc_r___thr_errno=no
Ron Recorde977d6c1999-09-05 12:32:05 +000011109fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011110rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Ron Recorde977d6c1999-09-05 12:32:05 +000011111fi
Ron Recorde977d6c1999-09-05 12:32:05 +000011112fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011113echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011114echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011115if test "$wine_cv_libc_r___thr_errno" = "yes"; then
11116 wine_cv_libc_reentrant=__thr_errno
11117else
11118 echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011119echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
11120if test "${wine_cv_libc_r___errno+set}" = set; then
11121 echo $ECHO_N "(cached) $ECHO_C" >&6
Bang Jun-Young33dff342001-05-07 18:21:10 +000011122else
11123 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011124 wine_cv_libc_r___errno=yes
Bang Jun-Young33dff342001-05-07 18:21:10 +000011125else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011126 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011127#line $LINENO "configure"
Bang Jun-Young33dff342001-05-07 18:21:10 +000011128#include "confdefs.h"
11129int myerrno = 0;
Bang Jun-Young33dff342001-05-07 18:21:10 +000011130int *__errno(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000011131main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011132_ACEOF
11133rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011135 (eval $ac_link) 2>&5
11136 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011140 (eval $ac_try) 2>&5
11141 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011143 (exit $ac_status); }; }; then
Bang Jun-Young33dff342001-05-07 18:21:10 +000011144 wine_cv_libc_r___errno=yes
11145else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011146 echo "$as_me: program exited with status $ac_status" >&5
11147echo "$as_me: failed program was:" >&5
11148cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011149( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011150wine_cv_libc_r___errno=no
Bang Jun-Young33dff342001-05-07 18:21:10 +000011151fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011152rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bang Jun-Young33dff342001-05-07 18:21:10 +000011153fi
Bang Jun-Young33dff342001-05-07 18:21:10 +000011154fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011155echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011156echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011157if test "$wine_cv_libc_r___errno" = "yes"; then
11158 wine_cv_libc_reentrant=__errno
11159fi
11160
11161
11162fi
11163
11164fi
11165
11166fi
11167
Bang Jun-Young33dff342001-05-07 18:21:10 +000011168fi
11169
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011170
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011171if test "$wine_cv_libc_reentrant" != "no"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011172then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011173
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011174cat >>confdefs.h <<_ACEOF
Alexandre Julliard598412e2001-01-17 20:22:22 +000011175#define ERRNO_LOCATION $wine_cv_libc_reentrant
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011176_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011177
11178fi
11179
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011180
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000011181if test "$have_x" = "yes"
Patrik Stridvall24110281999-02-04 10:09:54 +000011182then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011183echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011184echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
11185if test "${wine_cv_x_reentrant+set}" = set; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000011187else
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000011188 libX11_check=none
11189 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
11190 if test -r $dir/libX11.so; then
11191 libX11_check="-D $dir/libX11.so"
11192 break
11193 fi
11194 if test -r $dir/libX11.a; then
11195 libX11_check="$dir/libX11.a"
11196 break
11197 fi
11198 done
11199 if test "$libX11_check" != "none"; then
11200 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
11201 then
11202 wine_cv_x_reentrant=yes
11203 else
11204 wine_cv_x_reentrant=no
11205 fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000011206 else
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000011207 wine_cv_x_reentrant=unknown
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011208 fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000011209fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011210echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011211echo "${ECHO_T}$wine_cv_x_reentrant" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +000011212fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011213
11214
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011215# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11216# for constant arguments. Useless!
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011217echo "$as_me:$LINENO: checking for working alloca.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011218echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11219if test "${ac_cv_working_alloca_h+set}" = set; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011221else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011222 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011223#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011224#include "confdefs.h"
11225#include <alloca.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011226int
11227main ()
11228{
11229char *p = (char *) alloca (2 * sizeof (int));
11230 ;
11231 return 0;
11232}
11233_ACEOF
11234rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011236 (eval $ac_link) 2>&5
11237 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011239 (exit $ac_status); } &&
11240 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011242 (eval $ac_try) 2>&5
11243 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011245 (exit $ac_status); }; }; then
11246 ac_cv_working_alloca_h=yes
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011247else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011248 echo "$as_me: failed program was:" >&5
11249cat conftest.$ac_ext >&5
11250ac_cv_working_alloca_h=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011251fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011252rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011253fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011254echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011255echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11256if test $ac_cv_working_alloca_h = yes; then
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011257
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011258cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011259#define HAVE_ALLOCA_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011260_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011261
11262fi
11263
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011264echo "$as_me:$LINENO: checking for alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011265echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11266if test "${ac_cv_func_alloca_works+set}" = set; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011268else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011269 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011270#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011271#include "confdefs.h"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011272#ifdef __GNUC__
11273# define alloca __builtin_alloca
11274#else
Eric Pouech18ad24a2000-01-16 22:16:33 +000011275# ifdef _MSC_VER
11276# include <malloc.h>
11277# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011278# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000011279# if HAVE_ALLOCA_H
11280# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011281# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000011282# ifdef _AIX
11283 #pragma alloca
11284# else
11285# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011286char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +000011287# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011288# endif
11289# endif
11290# endif
11291#endif
11292
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011293int
11294main ()
11295{
11296char *p = (char *) alloca (1);
11297 ;
11298 return 0;
11299}
11300_ACEOF
11301rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011303 (eval $ac_link) 2>&5
11304 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011306 (exit $ac_status); } &&
11307 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011309 (eval $ac_try) 2>&5
11310 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011312 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011313 ac_cv_func_alloca_works=yes
11314else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011315 echo "$as_me: failed program was:" >&5
11316cat conftest.$ac_ext >&5
11317ac_cv_func_alloca_works=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011318fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011319rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011320fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011321echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011322echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011323
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011324if test $ac_cv_func_alloca_works = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011325
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011326cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011327#define HAVE_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011328_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011329
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011330else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011331 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011332# that cause trouble. Some versions do not even contain alloca or
11333# contain a buggy version. If you still want to use their alloca,
11334# use ar to extract alloca.o from them instead of compiling alloca.c.
11335
11336ALLOCA=alloca.$ac_objext
11337
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011338cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011339#define C_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011340_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011341
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011342
11343echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011344echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11345if test "${ac_cv_os_cray+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011347else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011348 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011349#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011350#include "confdefs.h"
11351#if defined(CRAY) && ! defined(CRAY2)
11352webecray
11353#else
11354wenotbecray
11355#endif
11356
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011357_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011359 $EGREP "webecray" >/dev/null 2>&1; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011360 ac_cv_os_cray=yes
11361else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011362 ac_cv_os_cray=no
11363fi
11364rm -f conftest*
11365
11366fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011367echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011368echo "${ECHO_T}$ac_cv_os_cray" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011369if test $ac_cv_os_cray = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011370 for ac_func in _getb67 GETB67 getb67; do
11371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011372echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011373echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11374if eval "test \"\${$as_ac_var+set}\" = set"; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011376else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011377 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011378#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011379#include "confdefs.h"
11380/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011381 which can conflict with char $ac_func (); below. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011382#include <assert.h>
11383/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011384#ifdef __cplusplus
11385extern "C"
11386#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +000011387/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011388 builtin and then its argument prototype would still apply. */
11389char $ac_func ();
11390char (*f) ();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011391
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011392int
11393main ()
11394{
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011395/* The GNU C library defines this for functions which it implements
11396 to always fail with ENOSYS. Some functions are actually named
11397 something starting with __ and the normal name is an alias. */
11398#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11399choke me
11400#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011401f = $ac_func;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011402#endif
11403
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011404 ;
11405 return 0;
11406}
11407_ACEOF
11408rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011410 (eval $ac_link) 2>&5
11411 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011413 (exit $ac_status); } &&
11414 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011416 (eval $ac_try) 2>&5
11417 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011419 (exit $ac_status); }; }; then
11420 eval "$as_ac_var=yes"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011421else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011422 echo "$as_me: failed program was:" >&5
11423cat conftest.$ac_ext >&5
11424eval "$as_ac_var=no"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011425fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011426rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011427fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011429echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11430if test `eval echo '${'$as_ac_var'}'` = yes; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011431
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011432cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011433#define CRAY_STACKSEG_END $ac_func
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011434_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011435
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011436 break
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011437fi
11438
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011439 done
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011440fi
11441
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011442echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011443echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11444if test "${ac_cv_c_stack_direction+set}" = set; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011446else
11447 if test "$cross_compiling" = yes; then
11448 ac_cv_c_stack_direction=0
11449else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011450 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011451#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011452#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011453int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011454find_stack_direction ()
11455{
11456 static char *addr = 0;
11457 auto char dummy;
11458 if (addr == 0)
11459 {
11460 addr = &dummy;
11461 return find_stack_direction ();
11462 }
11463 else
11464 return (&dummy > addr) ? 1 : -1;
11465}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011466
11467int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011468main ()
11469{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011470 exit (find_stack_direction () < 0);
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011471}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011472_ACEOF
11473rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011475 (eval $ac_link) 2>&5
11476 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011480 (eval $ac_try) 2>&5
11481 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011483 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011484 ac_cv_c_stack_direction=1
11485else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011486 echo "$as_me: program exited with status $ac_status" >&5
11487echo "$as_me: failed program was:" >&5
11488cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011489( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011490ac_cv_c_stack_direction=-1
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011491fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011492rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011493fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011494fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011495echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011496echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011497
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011498cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011499#define STACK_DIRECTION $ac_cv_c_stack_direction
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011500_ACEOF
11501
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011502
11503fi
11504
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
Steven Edwardsb9627c12002-05-05 21:03:44 +000011547
11548
Steven Edwards0a8e15a2002-05-10 01:33:40 +000011549
11550
Alexandre Julliard142dab82002-07-01 18:17:30 +000011551
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011552for ac_func in \
11553 _lwp_create \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011554 _pclose \
11555 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000011556 _snprintf \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011557 _stricmp \
11558 _strnicmp \
Steven Edwardsb9627c12002-05-05 21:03:44 +000011559 chsize \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011560 clone \
Andreas Mohra7ca2ba2001-01-12 23:07:11 +000011561 ecvt \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000011562 finite \
11563 fpclass \
Steven Edwardsb9627c12002-05-05 21:03:44 +000011564 ftruncate \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000011565 ftruncate64 \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011566 getnetbyaddr \
11567 getnetbyname \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011568 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011569 getprotobyname \
11570 getprotobynumber \
Alexandre Julliard142dab82002-07-01 18:17:30 +000011571 getpwuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011572 getservbyport \
11573 getsockopt \
11574 inet_network \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000011575 lseek64 \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000011576 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011577 memmove \
Marcus Meissner786d2492002-07-29 23:55:39 +000011578 mkstemp \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000011579 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011580 pclose \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011581 popen \
Steven Edwardsb9627c12002-05-05 21:03:44 +000011582 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000011583 pwrite \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011584 rfork \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011585 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011586 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011587 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011588 sigaltstack \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000011589 snprintf \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011590 statfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000011591 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011592 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000011593 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011594 tcgetattr \
11595 timegm \
11596 usleep \
11597 vfscanf \
11598 wait4 \
11599 waitpid \
11600
11601do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011602as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011603echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011604echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11605if eval "test \"\${$as_ac_var+set}\" = set"; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011607else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011608 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011609#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011610#include "confdefs.h"
11611/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011612 which can conflict with char $ac_func (); below. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011613#include <assert.h>
11614/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011615#ifdef __cplusplus
11616extern "C"
11617#endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011618/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011619 builtin and then its argument prototype would still apply. */
11620char $ac_func ();
11621char (*f) ();
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011622
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011623int
11624main ()
11625{
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011626/* The GNU C library defines this for functions which it implements
11627 to always fail with ENOSYS. Some functions are actually named
11628 something starting with __ and the normal name is an alias. */
11629#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11630choke me
11631#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011632f = $ac_func;
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011633#endif
11634
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011635 ;
11636 return 0;
11637}
11638_ACEOF
11639rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011641 (eval $ac_link) 2>&5
11642 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011644 (exit $ac_status); } &&
11645 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011647 (eval $ac_try) 2>&5
11648 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011650 (exit $ac_status); }; }; then
11651 eval "$as_ac_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011652else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011653 echo "$as_me: failed program was:" >&5
11654cat conftest.$ac_ext >&5
11655eval "$as_ac_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011656fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011657rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011658fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011660echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11661if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011662 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011663#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011664_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011665
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011666fi
11667done
11668
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
Laurent Pinchart0314a652002-05-01 22:01:30 +000011730
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011731
11732
11733
Alexandre Julliard127ec922002-05-07 01:51:30 +000011734
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011735
Patrik Stridvall57bf4502002-08-26 21:53:24 +000011736
11737
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011738for ac_header in \
Patrik Stridvall96336321999-10-24 22:13:47 +000011739 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011740 arpa/nameser.h \
Marcus Meissnerf061f762002-11-12 02:22:24 +000011741 cups/cups.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011742 direct.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011743 elf.h \
11744 float.h \
Ulrich Weigand2e8e2332000-12-27 18:49:08 +000011745 ieeefp.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011746 io.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011747 libio.h \
Hidenori Takeshima01f78aa2000-07-09 12:19:09 +000011748 libutil.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011749 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011750 linux/cdrom.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011751 linux/hdreg.h \
Marcus Meissnerc9b3b2e2000-12-12 00:38:58 +000011752 linux/input.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +000011753 linux/joystick.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011754 linux/major.h \
Laurent Pinchart0314a652002-05-01 22:01:30 +000011755 linux/param.h \
Lawson Whitney533e7ee2002-02-19 18:41:56 +000011756 linux/serial.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011757 linux/ucdrom.h \
Hidenori Takeshima5d1a6382000-11-26 04:00:53 +000011758 netdb.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011759 netinet/in.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +000011760 netinet/in_systm.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011761 netinet/tcp.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +000011762 pty.h \
Steven Edwardsff4525c2002-06-24 23:00:25 +000011763 pwd.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011764 sched.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011765 scsi/sg.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011766 socket.h \
Bang Jun-Youngeda758e2001-12-14 22:47:19 +000011767 stdint.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011768 strings.h \
11769 sys/cdio.h \
Howard Abrams13277481999-07-10 13:16:29 +000011770 sys/errno.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011771 sys/file.h \
11772 sys/filio.h \
Michal Pasternak60983992002-03-29 18:04:43 +000011773 sys/inttypes.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000011774 sys/ioctl.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011775 sys/ipc.h \
Eric Pouech624cbd72001-08-10 22:29:21 +000011776 sys/link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011777 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +000011778 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011779 sys/modem.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011780 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011781 sys/param.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000011782 sys/poll.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +000011783 sys/ptrace.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +000011784 sys/reg.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011785 sys/shm.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011786 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011787 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011788 sys/sockio.h \
11789 sys/statfs.h \
11790 sys/strtio.h \
11791 sys/syscall.h \
Alexandre Julliard127ec922002-05-07 01:51:30 +000011792 sys/sysctl.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011793 sys/time.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000011794 sys/times.h \
Steven Edwards45e56812002-10-31 03:41:56 +000011795 sys/uio.h \
11796 sys/un.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011797 sys/v86.h \
11798 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011799 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011800 sys/vm86.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011801 sys/wait.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011802 syscall.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000011803 termios.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011804 unistd.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000011805 utime.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011806
Alexandre Julliard02e90081998-01-04 17:49:09 +000011807do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011808as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011809if eval "test \"\${$as_ac_Header+set}\" = set"; then
11810 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11812if eval "test \"\${$as_ac_Header+set}\" = set"; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011814fi
11815echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11816echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliard02e90081998-01-04 17:49:09 +000011817else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011818 # Is the header compilable?
11819echo "$as_me:$LINENO: checking $ac_header usability" >&5
11820echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11821cat >conftest.$ac_ext <<_ACEOF
11822#line $LINENO "configure"
11823#include "confdefs.h"
11824$ac_includes_default
11825#include <$ac_header>
11826_ACEOF
11827rm -f conftest.$ac_objext
11828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11829 (eval $ac_compile) 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } &&
11833 { ac_try='test -s conftest.$ac_objext'
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; }; then
11839 ac_header_compiler=yes
11840else
11841 echo "$as_me: failed program was:" >&5
11842cat conftest.$ac_ext >&5
11843ac_header_compiler=no
11844fi
11845rm -f conftest.$ac_objext conftest.$ac_ext
11846echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11847echo "${ECHO_T}$ac_header_compiler" >&6
11848
11849# Is the header present?
11850echo "$as_me:$LINENO: checking $ac_header presence" >&5
11851echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11852cat >conftest.$ac_ext <<_ACEOF
11853#line $LINENO "configure"
Alexandre Julliard02e90081998-01-04 17:49:09 +000011854#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011855#include <$ac_header>
11856_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011857if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11859 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011860 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011861 rm -f conftest.er1
11862 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011864 (exit $ac_status); } >/dev/null; then
11865 if test -s conftest.err; then
11866 ac_cpp_err=$ac_c_preproc_warn_flag
11867 else
11868 ac_cpp_err=
11869 fi
Alexandre Julliard02e90081998-01-04 17:49:09 +000011870else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011871 ac_cpp_err=yes
11872fi
11873if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011874 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011875else
11876 echo "$as_me: failed program was:" >&5
Alexandre Julliard02e90081998-01-04 17:49:09 +000011877 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011878 ac_header_preproc=no
Alexandre Julliard02e90081998-01-04 17:49:09 +000011879fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011880rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011881echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11882echo "${ECHO_T}$ac_header_preproc" >&6
11883
11884# So? What about this header?
11885case $ac_header_compiler:$ac_header_preproc in
11886 yes:no )
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11888echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11890echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11891 no:yes )
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11893echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11895echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11897echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11898esac
11899echo "$as_me:$LINENO: checking for $ac_header" >&5
11900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11901if eval "test \"\${$as_ac_Header+set}\" = set"; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11903else
11904 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliard02e90081998-01-04 17:49:09 +000011905fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011907echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011908
Alexandre Julliard02e90081998-01-04 17:49:09 +000011909fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011910if test `eval echo '${'$as_ac_Header'}'` = yes; then
11911 cat >>confdefs.h <<_ACEOF
11912#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11913_ACEOF
11914
11915fi
11916
Alexandre Julliard02e90081998-01-04 17:49:09 +000011917done
11918
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011919echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011920echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11921if test "${ac_cv_header_stat_broken+set}" = set; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011923else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011924 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011925#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011926#include "confdefs.h"
11927#include <sys/types.h>
11928#include <sys/stat.h>
11929
11930#if defined(S_ISBLK) && defined(S_IFDIR)
11931# if S_ISBLK (S_IFDIR)
11932You lose.
11933# endif
11934#endif
11935
11936#if defined(S_ISBLK) && defined(S_IFCHR)
11937# if S_ISBLK (S_IFCHR)
11938You lose.
11939# endif
11940#endif
11941
11942#if defined(S_ISLNK) && defined(S_IFREG)
11943# if S_ISLNK (S_IFREG)
11944You lose.
11945# endif
11946#endif
11947
11948#if defined(S_ISSOCK) && defined(S_IFREG)
11949# if S_ISSOCK (S_IFREG)
11950You lose.
11951# endif
11952#endif
11953
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011954_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011956 $EGREP "You lose" >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011957 ac_cv_header_stat_broken=yes
11958else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011959 ac_cv_header_stat_broken=no
11960fi
11961rm -f conftest*
11962
11963fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011964echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011965echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011966if test $ac_cv_header_stat_broken = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011967
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011968cat >>confdefs.h <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011969#define STAT_MACROS_BROKEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011970_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011971
11972fi
11973
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011974
11975
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000011976
11977
11978for ac_header in sys/mount.h sys/user.h
11979do
11980as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11981echo "$as_me:$LINENO: checking for $ac_header" >&5
11982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11983if eval "test \"\${$as_ac_Header+set}\" = set"; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11985else
11986 cat >conftest.$ac_ext <<_ACEOF
11987#line $LINENO "configure"
11988#include "confdefs.h"
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000011989#include <sys/types.h>
11990 #if HAVE_SYS_PARAM_H
11991 # include <sys/param.h>
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000011992 #endif
11993
11994#include <$ac_header>
11995_ACEOF
11996rm -f conftest.$ac_objext
11997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11998 (eval $ac_compile) 2>&5
11999 ac_status=$?
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } &&
12002 { ac_try='test -s conftest.$ac_objext'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; }; then
12008 eval "$as_ac_Header=yes"
12009else
12010 echo "$as_me: failed program was:" >&5
12011cat conftest.$ac_ext >&5
12012eval "$as_ac_Header=no"
12013fi
12014rm -f conftest.$ac_objext conftest.$ac_ext
12015fi
12016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12017echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12018if test `eval echo '${'$as_ac_Header'}'` = yes; then
12019 cat >>confdefs.h <<_ACEOF
12020#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12021_ACEOF
12022
12023fi
12024
12025done
12026
12027
12028
Gregg Mattinson044b5c42002-07-19 03:16:51 +000012029for ac_header in net/if.h
12030do
12031as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12032echo "$as_me:$LINENO: checking for $ac_header" >&5
12033echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12034if eval "test \"\${$as_ac_Header+set}\" = set"; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12036else
12037 cat >conftest.$ac_ext <<_ACEOF
12038#line $LINENO "configure"
12039#include "confdefs.h"
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000012040#include <sys/types.h>
Gerald Pfeifer87c369d2002-07-23 02:02:02 +000012041 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000012042 # include <sys/socket.h>
12043 #endif
12044
12045#include <$ac_header>
12046_ACEOF
12047rm -f conftest.$ac_objext
12048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12049 (eval $ac_compile) 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); } &&
12053 { ac_try='test -s conftest.$ac_objext'
12054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5
12056 ac_status=$?
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 eval "$as_ac_Header=yes"
12060else
12061 echo "$as_me: failed program was:" >&5
12062cat conftest.$ac_ext >&5
12063eval "$as_ac_Header=no"
12064fi
12065rm -f conftest.$ac_objext conftest.$ac_ext
12066fi
12067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12068echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12069if test `eval echo '${'$as_ac_Header'}'` = yes; then
12070 cat >>confdefs.h <<_ACEOF
12071#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12072_ACEOF
12073
12074fi
12075
12076done
12077
12078
12079
12080for ac_header in netinet/ip.h
12081do
12082as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12083echo "$as_me:$LINENO: checking for $ac_header" >&5
12084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12085if eval "test \"\${$as_ac_Header+set}\" = set"; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12087else
12088 cat >conftest.$ac_ext <<_ACEOF
12089#line $LINENO "configure"
12090#include "confdefs.h"
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000012091#include <sys/types.h>
12092 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000012093 # include <sys/socket.h>
12094 #endif
12095 #if HAVE_NETINET_IN_SYSTM_H
12096 # include <netinet/in_systm.h>
12097 #endif
12098
12099#include <$ac_header>
12100_ACEOF
12101rm -f conftest.$ac_objext
12102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12103 (eval $ac_compile) 2>&5
12104 ac_status=$?
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } &&
12107 { ac_try='test -s conftest.$ac_objext'
12108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109 (eval $ac_try) 2>&5
12110 ac_status=$?
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; }; then
12113 eval "$as_ac_Header=yes"
12114else
12115 echo "$as_me: failed program was:" >&5
12116cat conftest.$ac_ext >&5
12117eval "$as_ac_Header=no"
12118fi
12119rm -f conftest.$ac_objext conftest.$ac_ext
12120fi
12121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12122echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12123if test `eval echo '${'$as_ac_Header'}'` = yes; then
12124 cat >>confdefs.h <<_ACEOF
12125#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12126_ACEOF
12127
12128fi
12129
12130done
12131
12132
12133
12134for ac_header in resolv.h
12135do
12136as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12137echo "$as_me:$LINENO: checking for $ac_header" >&5
12138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12139if eval "test \"\${$as_ac_Header+set}\" = set"; then
12140 echo $ECHO_N "(cached) $ECHO_C" >&6
12141else
12142 cat >conftest.$ac_ext <<_ACEOF
12143#line $LINENO "configure"
12144#include "confdefs.h"
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000012145#include <sys/types.h>
12146 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000012147 # include <sys/socket.h>
12148 #endif
12149
12150#include <$ac_header>
12151_ACEOF
12152rm -f conftest.$ac_objext
12153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12154 (eval $ac_compile) 2>&5
12155 ac_status=$?
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } &&
12158 { ac_try='test -s conftest.$ac_objext'
12159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12160 (eval $ac_try) 2>&5
12161 ac_status=$?
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); }; }; then
12164 eval "$as_ac_Header=yes"
12165else
12166 echo "$as_me: failed program was:" >&5
12167cat conftest.$ac_ext >&5
12168eval "$as_ac_Header=no"
12169fi
12170rm -f conftest.$ac_objext conftest.$ac_ext
12171fi
12172echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12173echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12174if test `eval echo '${'$as_ac_Header'}'` = yes; then
12175 cat >>confdefs.h <<_ACEOF
12176#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12177_ACEOF
12178
12179fi
12180
12181done
12182
12183
12184
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000012185for ac_header in ucontext.h
12186do
12187as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12188echo "$as_me:$LINENO: checking for $ac_header" >&5
12189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12190if eval "test \"\${$as_ac_Header+set}\" = set"; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12192else
12193 cat >conftest.$ac_ext <<_ACEOF
12194#line $LINENO "configure"
12195#include "confdefs.h"
12196#include <signal.h>
12197
12198#include <$ac_header>
12199_ACEOF
12200rm -f conftest.$ac_objext
12201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12202 (eval $ac_compile) 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } &&
12206 { ac_try='test -s conftest.$ac_objext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12209 ac_status=$?
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 eval "$as_ac_Header=yes"
12213else
12214 echo "$as_me: failed program was:" >&5
12215cat conftest.$ac_ext >&5
12216eval "$as_ac_Header=no"
12217fi
12218rm -f conftest.$ac_objext conftest.$ac_ext
12219fi
12220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12221echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12222if test `eval echo '${'$as_ac_Header'}'` = yes; then
12223 cat >>confdefs.h <<_ACEOF
12224#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12225_ACEOF
12226
12227fi
12228
12229done
12230
12231
12232
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012233echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012234echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12235if test "${ac_cv_c_const+set}" = set; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12237else
12238 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012239#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012240#include "confdefs.h"
12241
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012242int
12243main ()
12244{
12245/* FIXME: Include the comments suggested by Paul. */
12246#ifndef __cplusplus
12247 /* Ultrix mips cc rejects this. */
12248 typedef int charset[2];
12249 const charset x;
12250 /* SunOS 4.1.1 cc rejects this. */
12251 char const *const *ccp;
12252 char **p;
12253 /* NEC SVR4.0.2 mips cc rejects this. */
12254 struct point {int x, y;};
12255 static struct point const zero = {0,0};
12256 /* AIX XL C 1.02.0.0 rejects this.
12257 It does not let you subtract one const X* pointer from another in
12258 an arm of an if-expression whose if-part is not a constant
12259 expression */
12260 const char *g = "string";
12261 ccp = &g + (g ? g-g : 0);
12262 /* HPUX 7.0 cc rejects these. */
12263 ++ccp;
12264 p = (char**) ccp;
12265 ccp = (char const *const *) p;
12266 { /* SCO 3.2v4 cc rejects this. */
12267 char *t;
12268 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012269
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012270 *t++ = 0;
12271 }
12272 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12273 int x[] = {25, 17};
12274 const int *foo = &x[0];
12275 ++foo;
12276 }
12277 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12278 typedef const int *iptr;
12279 iptr p = 0;
12280 ++p;
12281 }
12282 { /* AIX XL C 1.02.0.0 rejects this saying
12283 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12284 struct s { int j; const int *ap[3]; };
12285 struct s *b; b->j = 5;
12286 }
12287 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12288 const int foo = 10;
12289 }
12290#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012291
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012292 ;
12293 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012294}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012295_ACEOF
12296rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012298 (eval $ac_compile) 2>&5
12299 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012301 (exit $ac_status); } &&
12302 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012304 (eval $ac_try) 2>&5
12305 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012307 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012308 ac_cv_c_const=yes
12309else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012310 echo "$as_me: failed program was:" >&5
12311cat conftest.$ac_ext >&5
12312ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012313fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012314rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012315fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012316echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012317echo "${ECHO_T}$ac_cv_c_const" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012318if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012319
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012320cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012321#define const
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012322_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012323
12324fi
12325
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012326echo "$as_me:$LINENO: checking for inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012327echo $ECHO_N "checking for inline... $ECHO_C" >&6
12328if test "${ac_cv_c_inline+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012330else
12331 ac_cv_c_inline=no
12332for ac_kw in inline __inline__ __inline; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012333 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012334#line $LINENO "configure"
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012335#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012336#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012337typedef int foo_t;
12338static $ac_kw foo_t static_foo () {return 0; }
12339$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012340#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012341
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012342_ACEOF
12343rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012345 (eval $ac_compile) 2>&5
12346 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012348 (exit $ac_status); } &&
12349 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012351 (eval $ac_try) 2>&5
12352 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012354 (exit $ac_status); }; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012355 ac_cv_c_inline=$ac_kw; break
12356else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012357 echo "$as_me: failed program was:" >&5
12358cat conftest.$ac_ext >&5
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012359fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012360rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012361done
12362
12363fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012364echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012365echo "${ECHO_T}$ac_cv_c_inline" >&6
12366case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012367 inline | yes) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012368 no)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012369cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012370#define inline
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012371_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012372 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012373 *) cat >>confdefs.h <<_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012374#define inline $ac_cv_c_inline
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012375_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012376 ;;
12377esac
12378
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012379echo "$as_me:$LINENO: checking for mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012380echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12381if test "${ac_cv_type_mode_t+set}" = set; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12383else
12384 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012385#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012386#include "confdefs.h"
12387$ac_includes_default
12388int
12389main ()
12390{
12391if ((mode_t *) 0)
12392 return 0;
12393if (sizeof (mode_t))
12394 return 0;
12395 ;
12396 return 0;
12397}
12398_ACEOF
12399rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012401 (eval $ac_compile) 2>&5
12402 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012404 (exit $ac_status); } &&
12405 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012407 (eval $ac_try) 2>&5
12408 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012410 (exit $ac_status); }; }; then
12411 ac_cv_type_mode_t=yes
12412else
12413 echo "$as_me: failed program was:" >&5
12414cat conftest.$ac_ext >&5
12415ac_cv_type_mode_t=no
12416fi
12417rm -f conftest.$ac_objext conftest.$ac_ext
12418fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012419echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012420echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12421if test $ac_cv_type_mode_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012422
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012423cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012424#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012425_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012426
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012427
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012428fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012429echo "$as_me:$LINENO: checking for off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012430echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12431if test "${ac_cv_type_off_t+set}" = set; then
12432 echo $ECHO_N "(cached) $ECHO_C" >&6
12433else
12434 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012435#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012436#include "confdefs.h"
12437$ac_includes_default
12438int
12439main ()
12440{
12441if ((off_t *) 0)
12442 return 0;
12443if (sizeof (off_t))
12444 return 0;
12445 ;
12446 return 0;
12447}
12448_ACEOF
12449rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012451 (eval $ac_compile) 2>&5
12452 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012454 (exit $ac_status); } &&
12455 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012457 (eval $ac_try) 2>&5
12458 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012460 (exit $ac_status); }; }; then
12461 ac_cv_type_off_t=yes
12462else
12463 echo "$as_me: failed program was:" >&5
12464cat conftest.$ac_ext >&5
12465ac_cv_type_off_t=no
12466fi
12467rm -f conftest.$ac_objext conftest.$ac_ext
12468fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012469echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012470echo "${ECHO_T}$ac_cv_type_off_t" >&6
12471if test $ac_cv_type_off_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012472
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012473cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012474#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012475_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012476
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012477
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012478fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012479echo "$as_me:$LINENO: checking for pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012480echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12481if test "${ac_cv_type_pid_t+set}" = set; then
12482 echo $ECHO_N "(cached) $ECHO_C" >&6
12483else
12484 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012485#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012486#include "confdefs.h"
12487$ac_includes_default
12488int
12489main ()
12490{
12491if ((pid_t *) 0)
12492 return 0;
12493if (sizeof (pid_t))
12494 return 0;
12495 ;
12496 return 0;
12497}
12498_ACEOF
12499rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012501 (eval $ac_compile) 2>&5
12502 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012504 (exit $ac_status); } &&
12505 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012507 (eval $ac_try) 2>&5
12508 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012510 (exit $ac_status); }; }; then
12511 ac_cv_type_pid_t=yes
12512else
12513 echo "$as_me: failed program was:" >&5
12514cat conftest.$ac_ext >&5
12515ac_cv_type_pid_t=no
12516fi
12517rm -f conftest.$ac_objext conftest.$ac_ext
12518fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012519echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012520echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12521if test $ac_cv_type_pid_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012522
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012523cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012524#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012525_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012526
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012527
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012528fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012529echo "$as_me:$LINENO: checking for size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012530echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12531if test "${ac_cv_type_size_t+set}" = set; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12533else
12534 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012535#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012536#include "confdefs.h"
12537$ac_includes_default
12538int
12539main ()
12540{
12541if ((size_t *) 0)
12542 return 0;
12543if (sizeof (size_t))
12544 return 0;
12545 ;
12546 return 0;
12547}
12548_ACEOF
12549rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012551 (eval $ac_compile) 2>&5
12552 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012554 (exit $ac_status); } &&
12555 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012557 (eval $ac_try) 2>&5
12558 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012560 (exit $ac_status); }; }; then
12561 ac_cv_type_size_t=yes
12562else
12563 echo "$as_me: failed program was:" >&5
12564cat conftest.$ac_ext >&5
12565ac_cv_type_size_t=no
12566fi
12567rm -f conftest.$ac_objext conftest.$ac_ext
12568fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012569echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012570echo "${ECHO_T}$ac_cv_type_size_t" >&6
12571if test $ac_cv_type_size_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012572
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012573cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012574#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012575_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012576
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012577
12578fi
12579echo "$as_me:$LINENO: checking for ssize_t" >&5
12580echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12581if test "${ac_cv_type_ssize_t+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12583else
12584 cat >conftest.$ac_ext <<_ACEOF
12585#line $LINENO "configure"
12586#include "confdefs.h"
12587$ac_includes_default
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012588int
12589main ()
12590{
12591if ((ssize_t *) 0)
12592 return 0;
12593if (sizeof (ssize_t))
12594 return 0;
12595 ;
12596 return 0;
12597}
12598_ACEOF
12599rm -f conftest.$ac_objext
12600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12601 (eval $ac_compile) 2>&5
12602 ac_status=$?
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); } &&
12605 { ac_try='test -s conftest.$ac_objext'
12606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12607 (eval $ac_try) 2>&5
12608 ac_status=$?
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; }; then
12611 ac_cv_type_ssize_t=yes
12612else
12613 echo "$as_me: failed program was:" >&5
12614cat conftest.$ac_ext >&5
12615ac_cv_type_ssize_t=no
12616fi
12617rm -f conftest.$ac_objext conftest.$ac_ext
12618fi
12619echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12620echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12621if test $ac_cv_type_ssize_t = yes; then
12622
12623cat >>confdefs.h <<_ACEOF
12624#define HAVE_SSIZE_T 1
12625_ACEOF
12626
12627
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012628fi
12629
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012630echo "$as_me:$LINENO: checking for long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012631echo $ECHO_N "checking for long long... $ECHO_C" >&6
12632if test "${ac_cv_type_long_long+set}" = set; then
12633 echo $ECHO_N "(cached) $ECHO_C" >&6
12634else
12635 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012636#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012637#include "confdefs.h"
12638$ac_includes_default
12639int
12640main ()
12641{
12642if ((long long *) 0)
12643 return 0;
12644if (sizeof (long long))
12645 return 0;
12646 ;
12647 return 0;
12648}
12649_ACEOF
12650rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012652 (eval $ac_compile) 2>&5
12653 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012655 (exit $ac_status); } &&
12656 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012658 (eval $ac_try) 2>&5
12659 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012661 (exit $ac_status); }; }; then
12662 ac_cv_type_long_long=yes
12663else
12664 echo "$as_me: failed program was:" >&5
12665cat conftest.$ac_ext >&5
12666ac_cv_type_long_long=no
12667fi
12668rm -f conftest.$ac_objext conftest.$ac_ext
12669fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012670echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012671echo "${ECHO_T}$ac_cv_type_long_long" >&6
12672
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012673echo "$as_me:$LINENO: checking size of long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012674echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12675if test "${ac_cv_sizeof_long_long+set}" = set; then
12676 echo $ECHO_N "(cached) $ECHO_C" >&6
12677else
12678 if test "$ac_cv_type_long_long" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012679 # The cast to unsigned long works around a bug in the HP C Compiler
12680 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12681 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12682 # This bug is HP SR number 8606223364.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012683 if test "$cross_compiling" = yes; then
12684 # Depending upon the size, compute the lo and hi bounds.
12685cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012686#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012687#include "confdefs.h"
12688$ac_includes_default
12689int
12690main ()
12691{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012692static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12693test_array [0] = 0
12694
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012695 ;
12696 return 0;
12697}
12698_ACEOF
12699rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012701 (eval $ac_compile) 2>&5
12702 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012704 (exit $ac_status); } &&
12705 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012707 (eval $ac_try) 2>&5
12708 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012710 (exit $ac_status); }; }; then
12711 ac_lo=0 ac_mid=0
12712 while :; do
12713 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012714#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012715#include "confdefs.h"
12716$ac_includes_default
12717int
12718main ()
12719{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012720static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12721test_array [0] = 0
12722
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012723 ;
12724 return 0;
12725}
12726_ACEOF
12727rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012729 (eval $ac_compile) 2>&5
12730 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012732 (exit $ac_status); } &&
12733 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012735 (eval $ac_try) 2>&5
12736 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012738 (exit $ac_status); }; }; then
12739 ac_hi=$ac_mid; break
12740else
12741 echo "$as_me: failed program was:" >&5
12742cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012743ac_lo=`expr $ac_mid + 1`
12744 if test $ac_lo -le $ac_mid; then
12745 ac_lo= ac_hi=
12746 break
12747 fi
12748 ac_mid=`expr 2 '*' $ac_mid + 1`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012749fi
12750rm -f conftest.$ac_objext conftest.$ac_ext
12751 done
12752else
12753 echo "$as_me: failed program was:" >&5
12754cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012755cat >conftest.$ac_ext <<_ACEOF
12756#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012757#include "confdefs.h"
12758$ac_includes_default
12759int
12760main ()
12761{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012762static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12763test_array [0] = 0
12764
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012765 ;
12766 return 0;
12767}
12768_ACEOF
12769rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012771 (eval $ac_compile) 2>&5
12772 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012774 (exit $ac_status); } &&
12775 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012777 (eval $ac_try) 2>&5
12778 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; }; then
12781 ac_hi=-1 ac_mid=-1
12782 while :; do
12783 cat >conftest.$ac_ext <<_ACEOF
12784#line $LINENO "configure"
12785#include "confdefs.h"
12786$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012787int
12788main ()
12789{
12790static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12791test_array [0] = 0
12792
12793 ;
12794 return 0;
12795}
12796_ACEOF
12797rm -f conftest.$ac_objext
12798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12799 (eval $ac_compile) 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); } &&
12803 { ac_try='test -s conftest.$ac_objext'
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012808 (exit $ac_status); }; }; then
12809 ac_lo=$ac_mid; break
12810else
12811 echo "$as_me: failed program was:" >&5
12812cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012813ac_hi=`expr '(' $ac_mid ')' - 1`
12814 if test $ac_mid -le $ac_hi; then
12815 ac_lo= ac_hi=
12816 break
12817 fi
12818 ac_mid=`expr 2 '*' $ac_mid`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012819fi
12820rm -f conftest.$ac_objext conftest.$ac_ext
12821 done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012822else
12823 echo "$as_me: failed program was:" >&5
12824cat conftest.$ac_ext >&5
12825ac_lo= ac_hi=
12826fi
12827rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012828fi
12829rm -f conftest.$ac_objext conftest.$ac_ext
12830# Binary search between lo and hi bounds.
12831while test "x$ac_lo" != "x$ac_hi"; do
12832 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12833 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012834#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012835#include "confdefs.h"
12836$ac_includes_default
12837int
12838main ()
12839{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012840static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12841test_array [0] = 0
12842
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012843 ;
12844 return 0;
12845}
12846_ACEOF
12847rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012849 (eval $ac_compile) 2>&5
12850 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012852 (exit $ac_status); } &&
12853 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012855 (eval $ac_try) 2>&5
12856 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012858 (exit $ac_status); }; }; then
12859 ac_hi=$ac_mid
12860else
12861 echo "$as_me: failed program was:" >&5
12862cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012863ac_lo=`expr '(' $ac_mid ')' + 1`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012864fi
12865rm -f conftest.$ac_objext conftest.$ac_ext
12866done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012867case $ac_lo in
12868?*) ac_cv_sizeof_long_long=$ac_lo;;
12869'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12870echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12871 { (exit 1); exit 1; }; } ;;
12872esac
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012873else
12874 if test "$cross_compiling" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012875 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012876echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12877 { (exit 1); exit 1; }; }
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012878else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012879 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012880#line $LINENO "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012881#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012882$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012883long longval () { return (long) (sizeof (long long)); }
12884unsigned long ulongval () { return (long) (sizeof (long long)); }
12885#include <stdio.h>
12886#include <stdlib.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012887int
12888main ()
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012889{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012890
12891 FILE *f = fopen ("conftest.val", "w");
12892 if (! f)
12893 exit (1);
12894 if (((long) (sizeof (long long))) < 0)
12895 {
12896 long i = longval ();
12897 if (i != ((long) (sizeof (long long))))
12898 exit (1);
12899 fprintf (f, "%ld\n", i);
12900 }
12901 else
12902 {
12903 unsigned long i = ulongval ();
12904 if (i != ((long) (sizeof (long long))))
12905 exit (1);
12906 fprintf (f, "%lu\n", i);
12907 }
12908 exit (ferror (f) || fclose (f) != 0);
12909
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012910 ;
12911 return 0;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012912}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012913_ACEOF
12914rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012916 (eval $ac_link) 2>&5
12917 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012921 (eval $ac_try) 2>&5
12922 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012924 (exit $ac_status); }; }; then
12925 ac_cv_sizeof_long_long=`cat conftest.val`
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012926else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012927 echo "$as_me: program exited with status $ac_status" >&5
12928echo "$as_me: failed program was:" >&5
12929cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012930( exit $ac_status )
12931{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12932echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12933 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012934fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012935rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012936fi
12937fi
12938rm -f conftest.val
12939else
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012940 ac_cv_sizeof_long_long=0
12941fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012942fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012943echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012944echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012945cat >>confdefs.h <<_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012946#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012947_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012948
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012949
12950
12951echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012952echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
12953if test "${wine_cv_linux_input_h+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012955else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012956 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012957#line $LINENO "configure"
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012958#include "confdefs.h"
12959
12960 #include <linux/input.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012961
12962int
12963main ()
12964{
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012965
12966 int foo = EVIOCGBIT(EV_ABS,42);
12967 int bar = BTN_PINKIE;
12968 int fortytwo = 42;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012969
12970 ;
12971 return 0;
12972}
12973_ACEOF
12974rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012976 (eval $ac_compile) 2>&5
12977 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012979 (exit $ac_status); } &&
12980 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012982 (eval $ac_try) 2>&5
12983 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012985 (exit $ac_status); }; }; then
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012986 wine_cv_linux_input_h=yes
12987else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012988 echo "$as_me: failed program was:" >&5
12989cat conftest.$ac_ext >&5
12990wine_cv_linux_input_h=no
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012991fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012992rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012993
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012994fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012995echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012996echo "${ECHO_T}$wine_cv_linux_input_h" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012997 if test "$wine_cv_linux_input_h" = "yes"
12998 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012999
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013000cat >>confdefs.h <<\_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000013001#define HAVE_CORRECT_LINUXINPUT_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013002_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000013003
13004 fi
13005
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013006
13007echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013008echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
13009if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000013011else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013012 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013013#line $LINENO "configure"
Rein Klazesff7a61f2000-09-24 19:41:57 +000013014#include "confdefs.h"
13015
13016#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013017
13018int
13019main ()
13020{
Rein Klazesff7a61f2000-09-24 19:41:57 +000013021
13022 char *name=NULL;
13023 struct hostent he;
13024 struct hostent *result;
13025 char *buf=NULL;
13026 int bufsize=0;
13027 int res,errnr;
13028 char *addr=NULL;
13029 int addrlen=0;
13030 int addrtype=0;
13031 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13032 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013033
13034 ;
13035 return 0;
13036}
13037_ACEOF
13038rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013040 (eval $ac_compile) 2>&5
13041 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013043 (exit $ac_status); } &&
13044 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013046 (eval $ac_try) 2>&5
13047 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013049 (exit $ac_status); }; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +000013050 wine_cv_linux_gethostbyname_r_6=yes
13051else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013052 echo "$as_me: failed program was:" >&5
13053cat conftest.$ac_ext >&5
13054wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000013055
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013056fi
13057rm -f conftest.$ac_objext conftest.$ac_ext
13058
13059fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013060echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013061echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000013062 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13063 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013064
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013065cat >>confdefs.h <<\_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000013066#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013067_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000013068
13069 fi
13070
Marcus Meissner028e9a11999-08-04 15:07:56 +000013071if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013072then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013073 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013074echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
13075if test "${wine_cv_linux_joystick_22_api+set}" = set; then
13076 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013077else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013078 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013079#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013080#include "confdefs.h"
13081
Marcus Meissner028e9a11999-08-04 15:07:56 +000013082 #include <sys/ioctl.h>
13083 #include <linux/joystick.h>
13084
13085 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000013086 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13087 #error "no 2.2 header"
13088 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013089
13090int
13091main ()
13092{
Marcus Meissner028e9a11999-08-04 15:07:56 +000013093/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013094 ;
13095 return 0;
13096}
13097_ACEOF
13098rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013100 (eval $ac_compile) 2>&5
13101 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013103 (exit $ac_status); } &&
13104 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013106 (eval $ac_try) 2>&5
13107 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013109 (exit $ac_status); }; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +000013110 wine_cv_linux_joystick_22_api=yes
13111else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013112 echo "$as_me: failed program was:" >&5
13113cat conftest.$ac_ext >&5
13114wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000013115fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013116rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000013117
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013118fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013119echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013120echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
Rein Klazes87d224a2000-04-24 17:33:49 +000013121 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000013122 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013123
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013124cat >>confdefs.h <<\_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000013125#define HAVE_LINUX_22_JOYSTICK_API 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013126_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000013127
13128 fi
13129fi
13130
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013131
Marcus Meissner028e9a11999-08-04 15:07:56 +000013132if test "$ac_cv_header_sys_vfs_h" = "yes"
13133then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013134 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013135echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
13136if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
13137 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner028e9a11999-08-04 15:07:56 +000013138else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013139 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013140#line $LINENO "configure"
Marcus Meissner028e9a11999-08-04 15:07:56 +000013141#include "confdefs.h"
13142
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013143 #include <sys/types.h>
13144 #ifdef HAVE_SYS_PARAM_H
13145 # include <sys/param.h>
13146 #endif
13147 #include <sys/vfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013148
13149int
13150main ()
13151{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013152
13153 struct statfs stfs;
13154
13155 memset(&stfs,0,sizeof(stfs));
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013156
13157 ;
13158 return 0;
13159}
13160_ACEOF
13161rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013163 (eval $ac_compile) 2>&5
13164 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013166 (exit $ac_status); } &&
13167 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013169 (eval $ac_try) 2>&5
13170 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013172 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013173 wine_cv_sys_vfs_has_statfs=yes
13174else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013175 echo "$as_me: failed program was:" >&5
13176cat conftest.$ac_ext >&5
13177wine_cv_sys_vfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013178
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013179fi
13180rm -f conftest.$ac_objext conftest.$ac_ext
13181
13182fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013183echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013184echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013185 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
13186 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013187
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013188cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013189#define STATFS_DEFINED_BY_SYS_VFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013190_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013191
13192 fi
13193fi
13194
13195if test "$ac_cv_header_sys_statfs_h" = "yes"
13196then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013197 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013198echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
13199if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013201else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013202 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013203#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013204#include "confdefs.h"
13205
13206 #include <sys/types.h>
13207 #ifdef HAVE_SYS_PARAM_H
13208 # include <sys/param.h>
13209 #endif
13210 #include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013211
13212int
13213main ()
13214{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013215
13216 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013217
13218 ;
13219 return 0;
13220}
13221_ACEOF
13222rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013224 (eval $ac_compile) 2>&5
13225 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013227 (exit $ac_status); } &&
13228 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013230 (eval $ac_try) 2>&5
13231 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013233 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013234 wine_cv_sys_statfs_has_statfs=yes
13235else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013236 echo "$as_me: failed program was:" >&5
13237cat conftest.$ac_ext >&5
13238wine_cv_sys_statfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013239
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013240fi
13241rm -f conftest.$ac_objext conftest.$ac_ext
13242
13243fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013244echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013245echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013246 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
13247 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013248
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013249cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013250#define STATFS_DEFINED_BY_SYS_STATFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013251_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013252
13253 fi
13254fi
13255
13256if test "$ac_cv_header_sys_mount_h" = "yes"
13257then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013258 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013259echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
13260if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013262else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013263 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013264#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013265#include "confdefs.h"
13266
13267 #include <sys/types.h>
13268 #ifdef HAVE_SYS_PARAM_H
13269 # include <sys/param.h>
13270 #endif
13271 #include <sys/mount.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013272
13273int
13274main ()
13275{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013276
13277 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013278
13279 ;
13280 return 0;
13281}
13282_ACEOF
13283rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013285 (eval $ac_compile) 2>&5
13286 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013288 (exit $ac_status); } &&
13289 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013291 (eval $ac_try) 2>&5
13292 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013294 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013295 wine_cv_sys_mount_has_statfs=yes
13296else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013297 echo "$as_me: failed program was:" >&5
13298cat conftest.$ac_ext >&5
13299wine_cv_sys_mount_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013300
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013301fi
13302rm -f conftest.$ac_objext conftest.$ac_ext
13303
13304fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013305echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013306echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013307 if test "$wine_cv_sys_mount_has_statfs" = "yes"
13308 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013309
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013310cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013311#define STATFS_DEFINED_BY_SYS_MOUNT 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013312_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013313
13314 fi
13315fi
13316
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013317
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013318echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013319echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
13320if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
13321 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013322else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013323 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013324#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013325#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013326#include <sys/types.h>
13327#ifdef HAVE_SYS_PARAM_H
13328# include <sys/param.h>
13329#endif
13330#ifdef STATFS_DEFINED_BY_SYS_MOUNT
13331# include <sys/mount.h>
13332#else
13333# ifdef STATFS_DEFINED_BY_SYS_VFS
13334# include <sys/vfs.h>
13335# else
13336# ifdef STATFS_DEFINED_BY_SYS_STATFS
13337# include <sys/statfs.h>
13338# endif
13339# endif
13340#endif
13341int
13342main ()
13343{
13344struct statfs s; s.f_bfree = 0
13345 ;
13346 return 0;
13347}
13348_ACEOF
13349rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013351 (eval $ac_compile) 2>&5
13352 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013354 (exit $ac_status); } &&
13355 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013357 (eval $ac_try) 2>&5
13358 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013360 (exit $ac_status); }; }; then
13361 ac_cv_c_statfs_f_bfree="yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013362else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013363 echo "$as_me: failed program was:" >&5
13364cat conftest.$ac_ext >&5
13365ac_cv_c_statfs_f_bfree="no"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013366fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013367rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013368fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013369echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013370echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
13371if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013372
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013373cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013374#define STATFS_HAS_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013375_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013376
13377fi
13378
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013379
13380
13381echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013382echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
13383if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
13384 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013385else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013386 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013387#line $LINENO "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013388#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013389#include <sys/types.h>
13390#ifdef HAVE_SYS_PARAM_H
13391# include <sys/param.h>
13392#endif
13393#ifdef STATFS_DEFINED_BY_SYS_MOUNT
13394# include <sys/mount.h>
13395#else
13396# ifdef STATFS_DEFINED_BY_SYS_VFS
13397# include <sys/vfs.h>
13398# else
13399# ifdef STATFS_DEFINED_BY_SYS_STATFS
13400# include <sys/statfs.h>
13401# endif
13402# endif
13403#endif
13404int
13405main ()
13406{
13407struct statfs s; s.f_bavail = 0
13408 ;
13409 return 0;
13410}
13411_ACEOF
13412rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013414 (eval $ac_compile) 2>&5
13415 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013417 (exit $ac_status); } &&
13418 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013420 (eval $ac_try) 2>&5
13421 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013423 (exit $ac_status); }; }; then
13424 ac_cv_c_statfs_f_bavail="yes"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013425else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013426 echo "$as_me: failed program was:" >&5
13427cat conftest.$ac_ext >&5
13428ac_cv_c_statfs_f_bavail="no"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013429fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013430rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013431fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013432echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013433echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
13434if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013435
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013436cat >>confdefs.h <<\_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013437#define STATFS_HAS_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013438_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013439
13440fi
13441
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013442
13443
13444echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013445echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
13446if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
13447 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard829fe321998-07-26 14:27:39 +000013448else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013449 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013450#line $LINENO "configure"
Alexandre Julliard829fe321998-07-26 14:27:39 +000013451#include "confdefs.h"
13452#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000013453#ifdef HAVE_SYS_SOCKET_H
13454# include <sys/socket.h>
13455#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013456int
13457main ()
13458{
13459struct msghdr s; s.msg_accrights = 0
13460 ;
13461 return 0;
13462}
13463_ACEOF
13464rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013466 (eval $ac_compile) 2>&5
13467 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013469 (exit $ac_status); } &&
13470 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013472 (eval $ac_try) 2>&5
13473 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013475 (exit $ac_status); }; }; then
13476 ac_cv_c_msghdr_msg_accrights="yes"
Alexandre Julliard829fe321998-07-26 14:27:39 +000013477else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013478 echo "$as_me: failed program was:" >&5
13479cat conftest.$ac_ext >&5
13480ac_cv_c_msghdr_msg_accrights="no"
Alexandre Julliard829fe321998-07-26 14:27:39 +000013481fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013482rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard829fe321998-07-26 14:27:39 +000013483fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013484echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013485echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
13486if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
Alexandre Julliard829fe321998-07-26 14:27:39 +000013487
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013488cat >>confdefs.h <<\_ACEOF
Alexandre Julliard829fe321998-07-26 14:27:39 +000013489#define HAVE_MSGHDR_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013490_ACEOF
Alexandre Julliard829fe321998-07-26 14:27:39 +000013491
13492fi
13493
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013494
13495
13496echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013497echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
13498if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
13499 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013500else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013501 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013502#line $LINENO "configure"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013503#include "confdefs.h"
Juergen Lock2d33ab92000-02-13 16:03:29 +000013504#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000013505#ifdef HAVE_SYS_SOCKET_H
13506# include <sys/socket.h>
13507#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013508int
13509main ()
13510{
13511struct sockaddr s; s.sa_len = 0
13512 ;
13513 return 0;
13514}
13515_ACEOF
13516rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013518 (eval $ac_compile) 2>&5
13519 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013521 (exit $ac_status); } &&
13522 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013524 (eval $ac_try) 2>&5
13525 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013527 (exit $ac_status); }; }; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000013528 ac_cv_c_sockaddr_sa_len="yes"
13529else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013530 echo "$as_me: failed program was:" >&5
13531cat conftest.$ac_ext >&5
13532ac_cv_c_sockaddr_sa_len="no"
Patrik Stridvall09da9662001-07-08 22:30:50 +000013533fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013534rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall09da9662001-07-08 22:30:50 +000013535fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013536echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013537echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
13538if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000013539
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013540cat >>confdefs.h <<\_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000013541#define HAVE_SOCKADDR_SA_LEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013542_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000013543
13544fi
13545
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013546
13547
13548echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013549echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
13550if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
13551 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall09da9662001-07-08 22:30:50 +000013552else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013553 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013554#line $LINENO "configure"
Patrik Stridvall09da9662001-07-08 22:30:50 +000013555#include "confdefs.h"
13556#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000013557#ifdef HAVE_SYS_SOCKET_H
13558# include <sys/socket.h>
13559#endif
13560#ifdef HAVE_SYS_UN_H
13561# include <sys/un.h>
13562#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013563int
13564main ()
13565{
13566struct sockaddr_un s; s.sun_len = 0
13567 ;
13568 return 0;
13569}
13570_ACEOF
13571rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013573 (eval $ac_compile) 2>&5
13574 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013576 (exit $ac_status); } &&
13577 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013579 (eval $ac_try) 2>&5
13580 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013582 (exit $ac_status); }; }; then
13583 ac_cv_c_sockaddr_un_sun_len="yes"
Juergen Lock2d33ab92000-02-13 16:03:29 +000013584else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013585 echo "$as_me: failed program was:" >&5
13586cat conftest.$ac_ext >&5
13587ac_cv_c_sockaddr_un_sun_len="no"
Juergen Lock2d33ab92000-02-13 16:03:29 +000013588fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013589rm -f conftest.$ac_objext conftest.$ac_ext
Juergen Lock2d33ab92000-02-13 16:03:29 +000013590fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013591echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013592echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
13593if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
Juergen Lock2d33ab92000-02-13 16:03:29 +000013594
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013595cat >>confdefs.h <<\_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000013596#define HAVE_SOCKADDR_SUN_LEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013597_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000013598
13599fi
13600
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013601
13602
13603
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013604case $host_cpu in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013605 *i345678986* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013606 echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013607echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
13608if test "${ac_cv_cpp_def_i386+set}" = set; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000013610else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013611 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013612#line $LINENO "configure"
Juergen Lock2d33ab92000-02-13 16:03:29 +000013613#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013614#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013615yes
13616#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013617_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013618if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013619 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013620 ac_cv_cpp_def_i386="yes"
13621else
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013622 ac_cv_cpp_def_i386="no"
13623fi
13624rm -f conftest*
13625
13626fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013627echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013628echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
13629 ;;
13630esac
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013631if test "$ac_cv_cpp_def_i386" = "yes"
13632then
13633 CFLAGS="$CFLAGS -D__i386__"
Patrik Stridvalla9be64e1999-07-31 17:39:44 +000013634 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013635fi
13636
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013637
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013638case $host_cpu in
13639 *sparc* )
13640 echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
13641echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
13642if test "${ac_cv_cpp_def_sparc+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13644else
13645 cat >conftest.$ac_ext <<_ACEOF
13646#line $LINENO "configure"
13647#include "confdefs.h"
13648#ifndef __sparc__
13649yes
13650#endif
13651_ACEOF
13652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013653 $EGREP "yes" >/dev/null 2>&1; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013654 ac_cv_cpp_def_sparc="yes"
13655else
13656 ac_cv_cpp_def_sparc="no"
13657fi
13658rm -f conftest*
13659
13660fi
13661echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sparc" >&5
13662echo "${ECHO_T}$ac_cv_cpp_def_sparc" >&6
13663 ;;
13664esac
13665if test "$ac_cv_cpp_def_sparc" = "yes"
13666then
13667 CFLAGS="$CFLAGS -D__sparc__"
13668 LINTFLAGS="$LINTFLAGS -D__sparc__"
13669fi
13670
13671
13672case $host_vendor in
13673 *sun* )
13674 echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
13675echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
13676if test "${ac_cv_cpp_def_sun+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13678else
13679 cat >conftest.$ac_ext <<_ACEOF
13680#line $LINENO "configure"
13681#include "confdefs.h"
13682#ifndef __sun__
13683yes
13684#endif
13685_ACEOF
13686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013687 $EGREP "yes" >/dev/null 2>&1; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013688 ac_cv_cpp_def_sun="yes"
13689else
13690 ac_cv_cpp_def_sun="no"
13691fi
13692rm -f conftest*
13693
13694fi
13695echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sun" >&5
13696echo "${ECHO_T}$ac_cv_cpp_def_sun" >&6
13697 ;;
13698esac
13699if test "$ac_cv_cpp_def_sun" = "yes"
13700then
13701 CFLAGS="$CFLAGS -D__sun__"
13702 LINTFLAGS="$LINTFLAGS -D__sun__"
13703fi
13704
13705
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013706
13707
13708
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013709 ac_config_commands="$ac_config_commands controls"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013710
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013711 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000013712
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013713 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000013714
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013715 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
Alexandre Julliard829fe321998-07-26 14:27:39 +000013716
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013717 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
François Gouget14259412001-11-06 20:57:11 +000013718
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013719 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
François Gouget14259412001-11-06 20:57:11 +000013720
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013721 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000013722
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013723 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013724
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013725 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013726
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013727 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013728
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013729 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000013730
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013731 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000013732
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013733 ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
Alexandre Julliard89118562002-03-27 21:13:40 +000013734
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013735 ac_config_commands="$ac_config_commands dlls/kernel/messages"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013736
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013737 ac_config_commands="$ac_config_commands dlls/user/dde"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013738
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013739 ac_config_commands="$ac_config_commands dlls/user/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013740
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013741 ac_config_commands="$ac_config_commands dlls/wineps/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013742
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013743 ac_config_commands="$ac_config_commands files"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013744
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013745 ac_config_commands="$ac_config_commands graphics"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013746
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013747 ac_config_commands="$ac_config_commands graphics/x11drv"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013748
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013749 ac_config_commands="$ac_config_commands if1632"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013750
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013751 ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013752
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013753 ac_config_commands="$ac_config_commands loader"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013754
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013755 ac_config_commands="$ac_config_commands loader/ne"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013756
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013757 ac_config_commands="$ac_config_commands memory"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013758
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013759 ac_config_commands="$ac_config_commands misc"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013760
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013761 ac_config_commands="$ac_config_commands msdos"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013762
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013763 ac_config_commands="$ac_config_commands objects"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013764
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013765 ac_config_commands="$ac_config_commands programs/regapi/tests"
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000013766
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013767 ac_config_commands="$ac_config_commands programs/regedit/tests"
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000013768
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013769 ac_config_commands="$ac_config_commands relay32"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013770
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013771 ac_config_commands="$ac_config_commands scheduler"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013772
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013773 ac_config_commands="$ac_config_commands win32"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013774
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013775 ac_config_commands="$ac_config_commands windows"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013776
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000013777
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000013778MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013779
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013780
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +000013781MAKE_DLL_RULES=dlls/Makedll.rules
13782
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013783
Alexandre Julliardedeee892002-08-09 01:22:40 +000013784MAKE_TEST_RULES=dlls/Maketest.rules
13785
13786
Alexandre Julliard626f4252000-11-10 23:35:20 +000013787MAKE_PROG_RULES=programs/Makeprog.rules
13788
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013789
Patrik Stridvalld1447fa2002-11-19 00:47:12 +000013790 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/d3d8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile library/Makefile miscemu/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/rundll32/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wpp/Makefile tools/wrc/Makefile unicode/Makefile"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013791
Alexandre Julliard626f4252000-11-10 23:35:20 +000013792
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013793cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013794# This file is a shell script that caches the results of configure
13795# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013796# scripts and configure runs, see configure's option --config-cache.
13797# It is not useful on other systems. If it contains results you don't
13798# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013799#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013800# config.status only pays attention to the cache file if you give it
13801# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013802#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013803# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013804# loading this file, other *unset* `ac_cv_foo' will be assigned the
13805# following values.
13806
13807_ACEOF
13808
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013809# The following way of writing the cache mishandles newlines in values,
13810# but we know of no workaround that is simple, portable, and efficient.
13811# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013812# Ultrix sh set writes to stderr and can't be redirected directly,
13813# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013814{
13815 (set) 2>&1 |
13816 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13817 *ac_space=\ *)
13818 # `set' does not quote correctly, so add quotes (double-quote
13819 # substitution turns \\\\ into \\, and sed turns \\ into \).
13820 sed -n \
13821 "s/'/'\\\\''/g;
13822 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13823 ;;
13824 *)
13825 # `set' quotes correctly as required by POSIX, so do not add quotes.
13826 sed -n \
13827 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13828 ;;
13829 esac;
13830} |
13831 sed '
13832 t clear
13833 : clear
13834 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13835 t end
13836 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13837 : end' >>confcache
13838if cmp -s $cache_file confcache; then :; else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013839 if test -w $cache_file; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013840 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13841 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013842 else
13843 echo "not updating unwritable cache $cache_file"
13844 fi
13845fi
13846rm -f confcache
13847
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013848test "x$prefix" = xNONE && prefix=$ac_default_prefix
13849# Let make expand exec_prefix.
13850test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13851
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013852# VPATH may cause trouble with some makes, so we remove $(srcdir),
13853# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13854# trailing colons and then remove the whole line if VPATH becomes empty
13855# (actually we leave an empty line to preserve line numbers).
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013856if test "x$srcdir" = x.; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013857 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13858s/:*\$(srcdir):*/:/;
13859s/:*\${srcdir}:*/:/;
13860s/:*@srcdir@:*/:/;
13861s/^\([^=]*=[ ]*\):*/\1/;
13862s/:*$//;
13863s/^[^=]*=[ ]*$//;
13864}'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013865fi
13866
Alexandre Julliard18f92e71996-07-17 20:02:21 +000013867DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013868
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013869ac_libobjs=
13870ac_ltlibobjs=
13871for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13872 # 1. Remove the extension, and $U if already installed.
13873 ac_i=`echo "$ac_i" |
13874 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13875 # 2. Add them.
13876 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13877 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13878done
13879LIBOBJS=$ac_libobjs
13880
13881LTLIBOBJS=$ac_ltlibobjs
13882
13883
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013884
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013885: ${CONFIG_STATUS=./config.status}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013886ac_clean_files_save=$ac_clean_files
13887ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013888{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013889echo "$as_me: creating $CONFIG_STATUS" >&6;}
13890cat >$CONFIG_STATUS <<_ACEOF
13891#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013892# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013893# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013894# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013895# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013896
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013897debug=false
13898SHELL=\${CONFIG_SHELL-$SHELL}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013899_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013900
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013901cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013902## --------------------- ##
13903## M4sh Initialization. ##
13904## --------------------- ##
13905
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013906# Be Bourne compatible
13907if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13908 emulate sh
13909 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013910 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13911 # is contrary to our usage. Disable this feature.
13912 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013913elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13914 set -o posix
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000013915fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013916
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013917# Support unset when possible.
13918if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
13919 as_unset=unset
13920else
13921 as_unset=false
13922fi
13923
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013924
13925# Work around bugs in pre-3.0 UWIN ksh.
13926$as_unset ENV MAIL MAILPATH
13927PS1='$ '
13928PS2='> '
13929PS4='+ '
13930
13931# NLS nuisances.
13932for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
13933do
13934 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
13935 eval $as_var=C; export $as_var
13936 else
13937 $as_unset $as_var
13938 fi
13939done
13940
13941# Required to use basename.
13942if expr a : '\(a\)' >/dev/null 2>&1; then
13943 as_expr=expr
13944else
13945 as_expr=false
13946fi
13947
13948if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13949 as_basename=basename
13950else
13951 as_basename=false
13952fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013953
13954
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013955# Name of the executable.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013956as_me=`$as_basename "$0" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013957$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13958 X"$0" : 'X\(//\)$' \| \
13959 X"$0" : 'X\(/\)$' \| \
13960 . : '\(.\)' 2>/dev/null ||
13961echo X/"$0" |
13962 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13963 /^X\/\(\/\/\)$/{ s//\1/; q; }
13964 /^X\/\(\/\).*/{ s//\1/; q; }
13965 s/.*/./; q'`
13966
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013967
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013968# PATH needs CR, and LINENO needs CR and PATH.
13969# Avoid depending upon Character Ranges.
13970as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13971as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13972as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13973as_cr_digits='0123456789'
13974as_cr_alnum=$as_cr_Letters$as_cr_digits
13975
13976# The user is always right.
13977if test "${PATH_SEPARATOR+set}" != set; then
13978 echo "#! /bin/sh" >conftest.sh
13979 echo "exit 0" >>conftest.sh
13980 chmod +x conftest.sh
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013981 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013982 PATH_SEPARATOR=';'
13983 else
13984 PATH_SEPARATOR=:
13985 fi
13986 rm -f conftest.sh
13987fi
13988
13989
13990 as_lineno_1=$LINENO
13991 as_lineno_2=$LINENO
13992 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13993 test "x$as_lineno_1" != "x$as_lineno_2" &&
13994 test "x$as_lineno_3" = "x$as_lineno_2" || {
13995 # Find who we are. Look in the path if we contain no path at all
13996 # relative or not.
13997 case $0 in
13998 *[\\/]* ) as_myself=$0 ;;
13999 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14000for as_dir in $PATH
14001do
14002 IFS=$as_save_IFS
14003 test -z "$as_dir" && as_dir=.
14004 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14005done
14006
14007 ;;
14008 esac
14009 # We did not find ourselves, most probably we were run as `sh COMMAND'
14010 # in which case we are not to be found in the path.
14011 if test "x$as_myself" = x; then
14012 as_myself=$0
14013 fi
14014 if test ! -f "$as_myself"; then
14015 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14016echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14017 { (exit 1); exit 1; }; }
14018 fi
14019 case $CONFIG_SHELL in
14020 '')
14021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14022for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14023do
14024 IFS=$as_save_IFS
14025 test -z "$as_dir" && as_dir=.
14026 for as_base in sh bash ksh sh5; do
14027 case $as_dir in
14028 /*)
14029 if ("$as_dir/$as_base" -c '
14030 as_lineno_1=$LINENO
14031 as_lineno_2=$LINENO
14032 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14033 test "x$as_lineno_1" != "x$as_lineno_2" &&
14034 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014035 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14036 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014037 CONFIG_SHELL=$as_dir/$as_base
14038 export CONFIG_SHELL
14039 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14040 fi;;
14041 esac
14042 done
14043done
14044;;
14045 esac
14046
14047 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14048 # uniformly replaced by the line number. The first 'sed' inserts a
14049 # line-number line before each line; the second 'sed' does the real
14050 # work. The second script uses 'N' to pair each line-number line
14051 # with the numbered line, and appends trailing '-' during
14052 # substitution so that $LINENO is not a special case at line end.
14053 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14054 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14055 sed '=' <$as_myself |
14056 sed '
14057 N
14058 s,$,-,
14059 : loop
14060 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14061 t loop
14062 s,-$,,
14063 s,^['$as_cr_digits']*\n,,
14064 ' >$as_me.lineno &&
14065 chmod +x $as_me.lineno ||
14066 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14067echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14068 { (exit 1); exit 1; }; }
14069
14070 # Don't try to exec as it changes $[0], causing all sort of problems
14071 # (the dirname of $[0] is not the place where we might find the
14072 # original and so on. Autoconf is especially sensible to this).
14073 . ./$as_me.lineno
14074 # Exit status is that of the last command.
14075 exit
14076}
14077
14078
14079case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14080 *c*,-n*) ECHO_N= ECHO_C='
14081' ECHO_T=' ' ;;
14082 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14083 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14084esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014085
14086if expr a : '\(a\)' >/dev/null 2>&1; then
14087 as_expr=expr
14088else
14089 as_expr=false
14090fi
14091
14092rm -f conf$$ conf$$.exe conf$$.file
14093echo >conf$$.file
14094if ln -s conf$$.file conf$$ 2>/dev/null; then
14095 # We could just check for DJGPP; but this test a) works b) is more generic
14096 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14097 if test -f conf$$.exe; then
14098 # Don't use ln at all; we don't have any links
14099 as_ln_s='cp -p'
14100 else
14101 as_ln_s='ln -s'
14102 fi
14103elif ln conf$$.file conf$$ 2>/dev/null; then
14104 as_ln_s=ln
14105else
14106 as_ln_s='cp -p'
14107fi
14108rm -f conf$$ conf$$.exe conf$$.file
14109
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014110if mkdir -p . 2>/dev/null; then
14111 as_mkdir_p=:
14112else
14113 as_mkdir_p=false
14114fi
14115
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014116as_executable_p="test -f"
14117
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014118# Sed expression to map a string onto a valid CPP name.
14119as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014120
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014121# Sed expression to map a string onto a valid variable name.
14122as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14123
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014124
14125# IFS
14126# We need space, tab and new line, in precisely that order.
14127as_nl='
14128'
14129IFS=" $as_nl"
14130
14131# CDPATH.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014132$as_unset CDPATH
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014133
14134exec 6>&1
14135
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014136# Open the log real soon, to keep \$[0] and so on meaningful, and to
14137# report actual input values of CONFIG_FILES etc. instead of their
14138# values after options handling. Logging --version etc. is OK.
14139exec 5>>config.log
14140{
14141 echo
14142 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14143## Running $as_me. ##
14144_ASBOX
14145} >&5
14146cat >&5 <<_CSEOF
14147
Alexandre Julliarde8d0f972002-11-01 02:30:46 +000014148This file was extended by Wine $as_me 20021031, which was
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014149generated by GNU Autoconf 2.54. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014150
14151 CONFIG_FILES = $CONFIG_FILES
14152 CONFIG_HEADERS = $CONFIG_HEADERS
14153 CONFIG_LINKS = $CONFIG_LINKS
14154 CONFIG_COMMANDS = $CONFIG_COMMANDS
14155 $ $0 $@
14156
14157_CSEOF
14158echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14159echo >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014160_ACEOF
14161
14162# Files that config.status was made for.
14163if test -n "$ac_config_files"; then
14164 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14165fi
14166
14167if test -n "$ac_config_headers"; then
14168 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14169fi
14170
14171if test -n "$ac_config_links"; then
14172 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14173fi
14174
14175if test -n "$ac_config_commands"; then
14176 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14177fi
14178
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014179cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014180
14181ac_cs_usage="\
14182\`$as_me' instantiates files from templates according to the
14183current configuration.
14184
14185Usage: $0 [OPTIONS] [FILE]...
14186
14187 -h, --help print this help, then exit
14188 -V, --version print version number, then exit
14189 -d, --debug don't remove temporary files
14190 --recheck update $as_me by reconfiguring in the same conditions
14191 --file=FILE[:TEMPLATE]
14192 instantiate the configuration file FILE
14193 --header=FILE[:TEMPLATE]
14194 instantiate the configuration header FILE
14195
14196Configuration files:
14197$config_files
14198
14199Configuration headers:
14200$config_headers
14201
14202Configuration commands:
14203$config_commands
14204
14205Report bugs to <bug-autoconf@gnu.org>."
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014206_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000014207
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014208cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014209ac_cs_version="\\
Alexandre Julliarde8d0f972002-11-01 02:30:46 +000014210Wine config.status 20021031
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014211configured by $0, generated by GNU Autoconf 2.54,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014212 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014213
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014214Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14215Free Software Foundation, Inc.
14216This config.status script is free software; the Free Software Foundation
14217gives unlimited permission to copy, distribute and modify it."
14218srcdir=$srcdir
14219INSTALL="$INSTALL"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014220_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014221
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014222cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014223# If no file are specified by the user, then we need to provide default
14224# value. By we need to know if files were specified by the user.
14225ac_need_defaults=:
14226while test $# != 0
14227do
14228 case $1 in
14229 --*=*)
14230 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14231 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014232 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014233 ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014234 -*)
14235 ac_option=$1
14236 ac_optarg=$2
14237 ac_shift=shift
14238 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014239 *) # This is not an option, so the user has probably given explicit
14240 # arguments.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014241 ac_option=$1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014242 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014243 esac
14244
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014245 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014246 # Handling of the options.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014247_ACEOF
14248cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014249 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14250 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14251 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014252_ACEOF
14253cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014254 --version | --vers* | -V )
14255 echo "$ac_cs_version"; exit 0 ;;
14256 --he | --h)
14257 # Conflict between --help and --header
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014258 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014259Try \`$0 --help' for more information." >&5
14260echo "$as_me: error: ambiguous option: $1
14261Try \`$0 --help' for more information." >&2;}
14262 { (exit 1); exit 1; }; };;
14263 --help | --hel | -h )
14264 echo "$ac_cs_usage"; exit 0 ;;
14265 --debug | --d* | -d )
14266 debug=: ;;
14267 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014268 $ac_shift
14269 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014270 ac_need_defaults=false;;
14271 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014272 $ac_shift
14273 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014274 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014275
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014276 # This is an error.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014277 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014278Try \`$0 --help' for more information." >&5
14279echo "$as_me: error: unrecognized option: $1
14280Try \`$0 --help' for more information." >&2;}
14281 { (exit 1); exit 1; }; } ;;
14282
14283 *) ac_config_targets="$ac_config_targets $1" ;;
14284
14285 esac
14286 shift
14287done
14288
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014289_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014290
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014291
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014292
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014293
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014294
14295cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014296for ac_config_target in $ac_config_targets
14297do
14298 case "$ac_config_target" in
14299 # Handling of arguments.
14300 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
14301 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014302 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014303 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
14304 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014305 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
14306 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014307 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014308 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
14309 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
Patrik Stridvalld1447fa2002-11-19 00:47:12 +000014310 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
John K. Hohm34909c22002-05-14 21:50:56 +000014311 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014312 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
14313 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
14314 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
14315 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
Sylvain Petreolle3a99d8b2002-06-25 23:23:03 +000014316 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014317 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
14318 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
14319 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
14320 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
Ove Kaavend2d08f02002-06-14 00:39:44 +000014321 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014322 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
14323 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
14324 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
14325 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
Patrik Stridvall928ecb42002-10-02 19:58:27 +000014326 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014327 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
14328 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
14329 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
14330 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
14331 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014332 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014333 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
14334 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
14335 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
14336 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
Hidenori Takeshima0307f6d2002-03-23 20:18:11 +000014337 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
Eric Pouechbed67fc2002-05-22 02:00:05 +000014338 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
Hidenori Takeshimabcb9c462002-03-22 19:16:10 +000014339 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
Eric Pouechb706b232002-06-04 17:53:46 +000014340 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014341 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
14342 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
Mike McCormackf6be0442002-04-08 23:56:14 +000014343 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014344 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014345 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
Uwe Bonnesa768fa32002-10-30 23:49:03 +000014346 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014347 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
14348 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
Michael Günnewig288b8ee2002-10-08 00:40:05 +000014349 "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014350 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
Andriy Palamarchukb812c902002-09-11 02:35:17 +000014351 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014352 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
Jon Griffiths1da29712002-08-15 22:08:40 +000014353 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014354 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
14355 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
14356 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014357 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014358 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
14359 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
14360 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
14361 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
14362 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
14363 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
14364 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
14365 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
14366 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
14367 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
14368 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
Greg Turnerac89cc22002-10-07 21:54:07 +000014369 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014370 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
14371 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
14372 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
14373 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
Andriy Palamarchuk5b5bea02002-08-27 01:34:33 +000014374 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014375 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
14376 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014377 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
Patrik Stridvall4c692b92002-04-29 18:43:35 +000014378 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014379 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
14380 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
14381 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000014382 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014383 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
14384 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
Patrik Stridvall9398d9c2002-11-12 01:13:10 +000014385 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014386 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014387 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014388 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
14389 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
14390 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
14391 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
14392 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
14393 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014394 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014395 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
14396 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
14397 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
14398 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
14399 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
14400 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
14401 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
14402 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
Francois Gouget4ce28372002-11-04 23:47:49 +000014403 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014404 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
Eric Pouecha120ce02002-06-28 17:40:16 +000014405 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014406 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014407 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
14408 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014409 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
14410 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
14411 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014412 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014413 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
14414 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
14415 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
14416 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
14417 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
14418 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014419 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14420 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014421 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014422 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
14423 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
14424 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
14425 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
14426 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
14427 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
Alexandre Julliardacfda142002-05-20 19:18:16 +000014428 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014429 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
14430 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
14431 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
14432 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
Andriy Palamarchuk4e2e1762002-04-11 23:58:40 +000014433 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
Andriy Palamarchuk2f0d85c2002-04-29 23:47:39 +000014434 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014435 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
Alberto Massari15e8e0a2002-11-15 01:41:20 +000014436 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014437 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
14438 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
14439 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
14440 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
Alexandre Julliardf264bd32002-09-13 17:54:27 +000014441 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
Alexandre Julliard65a42162002-06-04 21:29:40 +000014442 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014443 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
Mike Wetherell0d8a9fa2002-05-05 20:31:54 +000014444 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014445 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
14446 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014447 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
14448 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
Alexandre Julliard7d4ee772002-07-16 03:20:45 +000014449 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014450 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
14451 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
14452 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
14453 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
Alexandre Julliardb7d3c792002-07-16 02:33:10 +000014454 "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014455 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014456 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014457 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014458 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
14459 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
14460 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
14461 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
14462 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
14463 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
14464 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
14465 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
14466 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
Alexandre Julliard89118562002-03-27 21:13:40 +000014467 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
14468 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
14469 "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014470 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
14471 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
14472 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
14473 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014474 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
14475 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
14476 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
14477 "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014478 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014479 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
14480 "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
14481 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
14482 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
14483 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
14484 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000014485 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000014486 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014487 "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
14488 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
14489 "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
14490 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014491 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014492 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014493echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14494 { (exit 1); exit 1; }; };;
14495 esac
14496done
14497
14498# If the user did not use the arguments to specify the items to instantiate,
14499# then the envvar interface is used. Set only those that are not.
14500# We use the long form for the default assignment because of an extremely
14501# bizarre bug on SunOS 4.1.3.
14502if $ac_need_defaults; then
14503 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14504 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14505 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14506fi
14507
14508# Create a temporary directory, and hook for its removal unless debugging.
14509$debug ||
14510{
14511 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14512 trap '{ (exit 1); exit 1; }' 1 2 13 15
14513}
14514
14515# Create a (secure) tmp directory for tmp files.
14516: ${TMPDIR=/tmp}
14517{
14518 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14519 test -n "$tmp" && test -d "$tmp"
14520} ||
14521{
14522 tmp=$TMPDIR/cs$$-$RANDOM
14523 (umask 077 && mkdir $tmp)
14524} ||
14525{
14526 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14527 { (exit 1); exit 1; }
14528}
14529
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014530_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014531
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014532cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014533
14534#
14535# CONFIG_FILES section.
14536#
14537
14538# No need to generate the scripts if there are no CONFIG_FILES.
14539# This happens for instance when ./config.status config.h
14540if test -n "\$CONFIG_FILES"; then
14541 # Protect against being on the right side of a sed subst in config.status.
14542 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14543 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14544s,@SHELL@,$SHELL,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014545s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14546s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14547s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14548s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14549s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14550s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014551s,@exec_prefix@,$exec_prefix,;t t
14552s,@prefix@,$prefix,;t t
14553s,@program_transform_name@,$program_transform_name,;t t
14554s,@bindir@,$bindir,;t t
14555s,@sbindir@,$sbindir,;t t
14556s,@libexecdir@,$libexecdir,;t t
14557s,@datadir@,$datadir,;t t
14558s,@sysconfdir@,$sysconfdir,;t t
14559s,@sharedstatedir@,$sharedstatedir,;t t
14560s,@localstatedir@,$localstatedir,;t t
14561s,@libdir@,$libdir,;t t
14562s,@includedir@,$includedir,;t t
14563s,@oldincludedir@,$oldincludedir,;t t
14564s,@infodir@,$infodir,;t t
14565s,@mandir@,$mandir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014566s,@build_alias@,$build_alias,;t t
14567s,@host_alias@,$host_alias,;t t
14568s,@target_alias@,$target_alias,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014569s,@DEFS@,$DEFS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014570s,@ECHO_C@,$ECHO_C,;t t
14571s,@ECHO_N@,$ECHO_N,;t t
14572s,@ECHO_T@,$ECHO_T,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014573s,@LIBS@,$LIBS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014574s,@LIBEXT@,$LIBEXT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014575s,@OPTIONS@,$OPTIONS,;t t
Alexandre Julliardc728efc2002-10-02 02:34:09 +000014576s,@WIN16_FILES@,$WIN16_FILES,;t t
14577s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014578s,@build@,$build,;t t
14579s,@build_cpu@,$build_cpu,;t t
14580s,@build_vendor@,$build_vendor,;t t
14581s,@build_os@,$build_os,;t t
14582s,@host@,$host,;t t
14583s,@host_cpu@,$host_cpu,;t t
14584s,@host_vendor@,$host_vendor,;t t
14585s,@host_os@,$host_os,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014586s,@SET_MAKE@,$SET_MAKE,;t t
14587s,@CC@,$CC,;t t
14588s,@CFLAGS@,$CFLAGS,;t t
14589s,@LDFLAGS@,$LDFLAGS,;t t
14590s,@CPPFLAGS@,$CPPFLAGS,;t t
14591s,@ac_ct_CC@,$ac_ct_CC,;t t
14592s,@EXEEXT@,$EXEEXT,;t t
14593s,@OBJEXT@,$OBJEXT,;t t
14594s,@CPP@,$CPP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014595s,@TOOLSDIR@,$TOOLSDIR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014596s,@X_CFLAGS@,$X_CFLAGS,;t t
14597s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
14598s,@X_LIBS@,$X_LIBS,;t t
14599s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
14600s,@YACC@,$YACC,;t t
14601s,@LEX@,$LEX,;t t
14602s,@LEXLIB@,$LEXLIB,;t t
14603s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14604s,@XYACC@,$XYACC,;t t
14605s,@XLEX@,$XLEX,;t t
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +000014606s,@LD@,$LD,;t t
14607s,@ac_ct_LD@,$ac_ct_LD,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014608s,@AR@,$AR,;t t
14609s,@ac_ct_AR@,$ac_ct_AR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014610s,@RANLIB@,$RANLIB,;t t
14611s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014612s,@STRIP@,$STRIP,;t t
14613s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14614s,@WINDRES@,$WINDRES,;t t
14615s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014616s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14617s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14618s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14619s,@LN_S@,$LN_S,;t t
Alexandre Julliarddf234a92002-05-22 02:10:39 +000014620s,@LN@,$LN,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014621s,@C2MAN@,$C2MAN,;t t
14622s,@LDCONFIG@,$LDCONFIG,;t t
14623s,@LINT@,$LINT,;t t
14624s,@LINTFLAGS@,$LINTFLAGS,;t t
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000014625s,@DB2HTML@,$DB2HTML,;t t
14626s,@DB2PDF@,$DB2PDF,;t t
14627s,@DB2PS@,$DB2PS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014628s,@JPEGLIB@,$JPEGLIB,;t t
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014629s,@EGREP@,$EGREP,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014630s,@XLIB@,$XLIB,;t t
14631s,@XFILES@,$XFILES,;t t
14632s,@OPENGLFILES@,$OPENGLFILES,;t t
14633s,@GLU32FILES@,$GLU32FILES,;t t
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014634s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
Francois Gouget6f670b12002-10-10 17:54:27 +000014635s,@NASLIBS@,$NASLIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014636s,@CURSESLIBS@,$CURSESLIBS,;t t
Shi Quan He6b0720f2002-03-21 02:58:39 +000014637s,@sane_devel@,$sane_devel,;t t
14638s,@SANELIBS@,$SANELIBS,;t t
14639s,@SANEINCL@,$SANEINCL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014640s,@ft_devel@,$ft_devel,;t t
14641s,@ft_devel2@,$ft_devel2,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014642s,@FREETYPEINCL@,$FREETYPEINCL,;t t
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014643s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
14644s,@ARTSLIBS@,$ARTSLIBS,;t t
14645s,@ARTSINCL@,$ARTSINCL,;t t
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014646s,@ALSALIBS@,$ALSALIBS,;t t
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014647s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014648s,@DLLEXT@,$DLLEXT,;t t
14649s,@DLLFLAGS@,$DLLFLAGS,;t t
14650s,@DLLIBS@,$DLLIBS,;t t
14651s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
14652s,@LDSHARED@,$LDSHARED,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014653s,@DLLWRAP@,$DLLWRAP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014654s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000014655s,@CROSSTEST@,$CROSSTEST,;t t
14656s,@CROSSCC@,$CROSSCC,;t t
14657s,@DLLTOOL@,$DLLTOOL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014658s,@LDPATH@,$LDPATH,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014659s,@CRTLIBS@,$CRTLIBS,;t t
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014660s,@LDD@,$LDD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014661s,@ALLOCA@,$ALLOCA,;t t
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014662s,@LIBOBJS@,$LIBOBJS,;t t
14663s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014664/@MAKE_RULES@/r $MAKE_RULES
14665s,@MAKE_RULES@,,;t t
14666/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
14667s,@MAKE_DLL_RULES@,,;t t
Alexandre Julliardedeee892002-08-09 01:22:40 +000014668/@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
14669s,@MAKE_TEST_RULES@,,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014670/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
14671s,@MAKE_PROG_RULES@,,;t t
14672CEOF
14673
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014674_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014675
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014676 cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014677 # Split the substitutions into bite-sized pieces for seds with
14678 # small command number limits, like on Digital OSF/1 and HP-UX.
14679 ac_max_sed_lines=48
14680 ac_sed_frag=1 # Number of current file.
14681 ac_beg=1 # First line for current file.
14682 ac_end=$ac_max_sed_lines # Line after last line for current file.
14683 ac_more_lines=:
14684 ac_sed_cmds=
14685 while $ac_more_lines; do
14686 if test $ac_beg -gt 1; then
14687 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14688 else
14689 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14690 fi
14691 if test ! -s $tmp/subs.frag; then
14692 ac_more_lines=false
14693 else
14694 # The purpose of the label and of the branching condition is to
14695 # speed up the sed processing (if there are no `@' at all, there
14696 # is no need to browse any of the substitutions).
14697 # These are the two extra sed commands mentioned above.
14698 (echo ':t
14699 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14700 if test -z "$ac_sed_cmds"; then
14701 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14702 else
14703 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14704 fi
14705 ac_sed_frag=`expr $ac_sed_frag + 1`
14706 ac_beg=$ac_end
14707 ac_end=`expr $ac_end + $ac_max_sed_lines`
14708 fi
14709 done
14710 if test -z "$ac_sed_cmds"; then
14711 ac_sed_cmds=cat
14712 fi
14713fi # test -n "$CONFIG_FILES"
14714
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014715_ACEOF
14716cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014717for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14718 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14719 case $ac_file in
14720 - | *:- | *:-:* ) # input from stdin
14721 cat >$tmp/stdin
14722 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14723 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14724 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14725 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14726 * ) ac_file_in=$ac_file.in ;;
14727 esac
14728
14729 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014730 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14731$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014732 X"$ac_file" : 'X\(//\)[^/]' \| \
14733 X"$ac_file" : 'X\(//\)$' \| \
14734 X"$ac_file" : 'X\(/\)' \| \
14735 . : '\(.\)' 2>/dev/null ||
14736echo X"$ac_file" |
14737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14738 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14739 /^X\(\/\/\)$/{ s//\1/; q; }
14740 /^X\(\/\).*/{ s//\1/; q; }
14741 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014742 { if $as_mkdir_p; then
14743 mkdir -p "$ac_dir"
14744 else
14745 as_dir="$ac_dir"
14746 as_dirs=
14747 while test ! -d "$as_dir"; do
14748 as_dirs="$as_dir $as_dirs"
14749 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14750$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14751 X"$as_dir" : 'X\(//\)[^/]' \| \
14752 X"$as_dir" : 'X\(//\)$' \| \
14753 X"$as_dir" : 'X\(/\)' \| \
14754 . : '\(.\)' 2>/dev/null ||
14755echo X"$as_dir" |
14756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14757 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14758 /^X\(\/\/\)$/{ s//\1/; q; }
14759 /^X\(\/\).*/{ s//\1/; q; }
14760 s/.*/./; q'`
14761 done
14762 test ! -n "$as_dirs" || mkdir $as_dirs
14763 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14764echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14765 { (exit 1); exit 1; }; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014766
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014767 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014768
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014769if test "$ac_dir" != .; then
14770 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14771 # A "../" for each directory in $ac_dir_suffix.
14772 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14773else
14774 ac_dir_suffix= ac_top_builddir=
14775fi
14776
14777case $srcdir in
14778 .) # No --srcdir option. We are building in place.
14779 ac_srcdir=.
14780 if test -z "$ac_top_builddir"; then
14781 ac_top_srcdir=.
14782 else
14783 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14784 fi ;;
14785 [\\/]* | ?:[\\/]* ) # Absolute path.
14786 ac_srcdir=$srcdir$ac_dir_suffix;
14787 ac_top_srcdir=$srcdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014788 *) # Relative path.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014789 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14790 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14791esac
14792# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14793# absolute.
14794ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014795ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014796ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14797ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14798
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014799
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014800 case $INSTALL in
14801 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014802 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000014803 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000014804
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014805 if test x"$ac_file" != x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014806 { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014807echo "$as_me: creating $ac_file" >&6;}
14808 rm -f "$ac_file"
14809 fi
14810 # Let's still pretend it is `configure' which instantiates (i.e., don't
14811 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014812 # /* config.h. Generated by config.status. */
14813 if test x"$ac_file" = x-; then
14814 configure_input=
14815 else
14816 configure_input="$ac_file. "
14817 fi
14818 configure_input=$configure_input"Generated from `echo $ac_file_in |
14819 sed 's,.*/,,'` by configure."
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014820
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014821 # First look for the input files in the build tree, otherwise in the
14822 # src tree.
14823 ac_file_inputs=`IFS=:
14824 for f in $ac_file_in; do
14825 case $f in
14826 -) echo $tmp/stdin ;;
14827 [\\/$]*)
14828 # Absolute (can't be DOS-style, as IFS=:)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014829 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014830echo "$as_me: error: cannot find input file: $f" >&2;}
14831 { (exit 1); exit 1; }; }
14832 echo $f;;
14833 *) # Relative
14834 if test -f "$f"; then
14835 # Build tree
14836 echo $f
14837 elif test -f "$srcdir/$f"; then
14838 # Source tree
14839 echo $srcdir/$f
14840 else
14841 # /dev/null tree
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014842 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014843echo "$as_me: error: cannot find input file: $f" >&2;}
14844 { (exit 1); exit 1; }; }
14845 fi;;
14846 esac
14847 done` || { (exit 1); exit 1; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014848_ACEOF
14849cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014850 sed "$ac_vpsub
14851$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014852_ACEOF
14853cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014854:t
14855/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14856s,@configure_input@,$configure_input,;t t
14857s,@srcdir@,$ac_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014858s,@abs_srcdir@,$ac_abs_srcdir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014859s,@top_srcdir@,$ac_top_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014860s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14861s,@builddir@,$ac_builddir,;t t
14862s,@abs_builddir@,$ac_abs_builddir,;t t
14863s,@top_builddir@,$ac_top_builddir,;t t
14864s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014865s,@INSTALL@,$ac_INSTALL,;t t
14866" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14867 rm -f $tmp/stdin
14868 if test x"$ac_file" != x-; then
14869 mv $tmp/out $ac_file
14870 else
14871 cat $tmp/out
14872 rm -f $tmp/out
14873 fi
14874
14875done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014876_ACEOF
14877cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014878
14879#
14880# CONFIG_HEADER section.
14881#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014882
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014883# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14884# NAME is the cpp macro being defined and VALUE is the value it is being given.
14885#
14886# ac_d sets the value in "#define NAME VALUE" lines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014887ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14888ac_dB='[ ].*$,\1#\2'
14889ac_dC=' '
14890ac_dD=',;t'
14891# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14892ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14893ac_uB='$,\1#\2define\3'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014894ac_uC=' '
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014895ac_uD=',;t'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014896
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014897for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014898 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014899 case $ac_file in
14900 - | *:- | *:-:* ) # input from stdin
14901 cat >$tmp/stdin
14902 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14903 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14904 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14905 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14906 * ) ac_file_in=$ac_file.in ;;
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014907 esac
14908
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014909 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014910echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014911
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014912 # First look for the input files in the build tree, otherwise in the
14913 # src tree.
14914 ac_file_inputs=`IFS=:
14915 for f in $ac_file_in; do
14916 case $f in
14917 -) echo $tmp/stdin ;;
14918 [\\/$]*)
14919 # Absolute (can't be DOS-style, as IFS=:)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014920 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014921echo "$as_me: error: cannot find input file: $f" >&2;}
14922 { (exit 1); exit 1; }; }
14923 echo $f;;
14924 *) # Relative
14925 if test -f "$f"; then
14926 # Build tree
14927 echo $f
14928 elif test -f "$srcdir/$f"; then
14929 # Source tree
14930 echo $srcdir/$f
14931 else
14932 # /dev/null tree
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014933 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014934echo "$as_me: error: cannot find input file: $f" >&2;}
14935 { (exit 1); exit 1; }; }
14936 fi;;
14937 esac
14938 done` || { (exit 1); exit 1; }
14939 # Remove the trailing spaces.
14940 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014941
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014942_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014943
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014944# Transform confdefs.h into two sed scripts, `conftest.defines' and
14945# `conftest.undefs', that substitutes the proper values into
14946# config.h.in to produce config.h. The first handles `#define'
14947# templates, and the second `#undef' templates.
14948# And first: Protect against being on the right side of a sed subst in
14949# config.status. Protect against being in an unquoted here document
14950# in config.status.
14951rm -f conftest.defines conftest.undefs
14952# Using a here document instead of a string reduces the quoting nightmare.
14953# Putting comments in sed scripts is not portable.
14954#
14955# `end' is used to avoid that the second main sed command (meant for
14956# 0-ary CPP macros) applies to n-ary macro definitions.
14957# See the Autoconf documentation for `clear'.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014958cat >confdef2sed.sed <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014959s/[\\&,]/\\&/g
14960s,[\\$`],\\&,g
14961t clear
14962: clear
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014963s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014964t end
14965s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14966: end
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014967_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014968# If some macros were called several times there might be several times
14969# the same #defines, which is useless. Nevertheless, we may not want to
14970# sort them, since we want the *last* AC-DEFINE to be honored.
14971uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14972sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14973rm -f confdef2sed.sed
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014974
14975# This sed command replaces #undef with comments. This is necessary, for
14976# example, in the case of _POSIX_SOURCE, which is predefined and required
14977# on some systems where configure will not decide to define it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014978cat >>conftest.undefs <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014979s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014980_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014981
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014982# Break up conftest.defines because some shells have a limit on the size
14983# of here documents, and old seds have small limits too (100 cmds).
14984echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014985echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014986echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14987echo ' :' >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014988rm -f conftest.tail
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014989while grep . conftest.defines >/dev/null
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014990do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014991 # Write a limited-size here document to $tmp/defines.sed.
14992 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14993 # Speed up: don't consider the non `#define' lines.
14994 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14995 # Work around the forget-to-reset-the-flag bug.
14996 echo 't clr' >>$CONFIG_STATUS
14997 echo ': clr' >>$CONFIG_STATUS
14998 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014999 echo 'CEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015000 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15001 rm -f $tmp/in
15002 mv $tmp/out $tmp/in
15003' >>$CONFIG_STATUS
15004 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15005 rm -f conftest.defines
15006 mv conftest.tail conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015007done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015008rm -f conftest.defines
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015009echo ' fi # grep' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015010echo >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015011
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015012# Break up conftest.undefs because some shells have a limit on the size
15013# of here documents, and old seds have small limits too (100 cmds).
15014echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15015rm -f conftest.tail
15016while grep . conftest.undefs >/dev/null
15017do
15018 # Write a limited-size here document to $tmp/undefs.sed.
15019 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15020 # Speed up: don't consider the non `#undef'
15021 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15022 # Work around the forget-to-reset-the-flag bug.
15023 echo 't clr' >>$CONFIG_STATUS
15024 echo ': clr' >>$CONFIG_STATUS
15025 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15026 echo 'CEOF
15027 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15028 rm -f $tmp/in
15029 mv $tmp/out $tmp/in
15030' >>$CONFIG_STATUS
15031 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15032 rm -f conftest.undefs
15033 mv conftest.tail conftest.undefs
15034done
15035rm -f conftest.undefs
15036
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015037cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015038 # Let's still pretend it is `configure' which instantiates (i.e., don't
15039 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015040 # /* config.h. Generated by config.status. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015041 if test x"$ac_file" = x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015042 echo "/* Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015043 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015044 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015045 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015046 cat $tmp/in >>$tmp/config.h
15047 rm -f $tmp/in
15048 if test x"$ac_file" != x-; then
15049 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015050 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015051echo "$as_me: $ac_file is unchanged" >&6;}
15052 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015053 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15054$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015055 X"$ac_file" : 'X\(//\)[^/]' \| \
15056 X"$ac_file" : 'X\(//\)$' \| \
15057 X"$ac_file" : 'X\(/\)' \| \
15058 . : '\(.\)' 2>/dev/null ||
15059echo X"$ac_file" |
15060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15062 /^X\(\/\/\)$/{ s//\1/; q; }
15063 /^X\(\/\).*/{ s//\1/; q; }
15064 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015065 { if $as_mkdir_p; then
15066 mkdir -p "$ac_dir"
15067 else
15068 as_dir="$ac_dir"
15069 as_dirs=
15070 while test ! -d "$as_dir"; do
15071 as_dirs="$as_dir $as_dirs"
15072 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15073$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15074 X"$as_dir" : 'X\(//\)[^/]' \| \
15075 X"$as_dir" : 'X\(//\)$' \| \
15076 X"$as_dir" : 'X\(/\)' \| \
15077 . : '\(.\)' 2>/dev/null ||
15078echo X"$as_dir" |
15079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15081 /^X\(\/\/\)$/{ s//\1/; q; }
15082 /^X\(\/\).*/{ s//\1/; q; }
15083 s/.*/./; q'`
15084 done
15085 test ! -n "$as_dirs" || mkdir $as_dirs
15086 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15087echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15088 { (exit 1); exit 1; }; }; }
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015089
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015090 rm -f $ac_file
15091 mv $tmp/config.h $ac_file
15092 fi
15093 else
15094 cat $tmp/config.h
15095 rm -f $tmp/config.h
15096 fi
15097done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015098_ACEOF
15099cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015100
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015101#
15102# CONFIG_COMMANDS section.
15103#
15104for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15105 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15106 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015107 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15108$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15109 X"$ac_dest" : 'X\(//\)[^/]' \| \
15110 X"$ac_dest" : 'X\(//\)$' \| \
15111 X"$ac_dest" : 'X\(/\)' \| \
15112 . : '\(.\)' 2>/dev/null ||
15113echo X"$ac_dest" |
15114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15115 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15116 /^X\(\/\/\)$/{ s//\1/; q; }
15117 /^X\(\/\).*/{ s//\1/; q; }
15118 s/.*/./; q'`
15119 ac_builddir=.
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000015120
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015121if test "$ac_dir" != .; then
15122 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15123 # A "../" for each directory in $ac_dir_suffix.
15124 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015125else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015126 ac_dir_suffix= ac_top_builddir=
15127fi
15128
15129case $srcdir in
15130 .) # No --srcdir option. We are building in place.
15131 ac_srcdir=.
15132 if test -z "$ac_top_builddir"; then
15133 ac_top_srcdir=.
15134 else
15135 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15136 fi ;;
15137 [\\/]* | ?:[\\/]* ) # Absolute path.
15138 ac_srcdir=$srcdir$ac_dir_suffix;
15139 ac_top_srcdir=$srcdir ;;
15140 *) # Relative path.
15141 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15142 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15143esac
15144# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15145# absolute.
15146ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015147ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015148ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15149ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15150
15151
15152 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15153echo "$as_me: executing $ac_dest commands" >&6;}
15154 case $ac_dest in
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015155 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
15156echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015157 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
15158echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
15159 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
15160echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
15161 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
15162echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
15163 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
15164echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
15165 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
15166echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
15167 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
15168echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
15169 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
15170echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
15171 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
15172echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
15173 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
15174echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
15175 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
15176echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
15177 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
15178echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
15179 dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
15180echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
15181 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
15182echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015183 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
15184echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
15185 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
15186echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015187 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
15188echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015189 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
15190echo "$as_me: creating files" >&6;} && mkdir "files") ;;
15191 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
15192echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
15193 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
15194echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
15195 if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
15196echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015197 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
15198echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015199 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
15200echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
15201 loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
15202echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
15203 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
15204echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
15205 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
15206echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
15207 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
15208echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
15209 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
15210echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015211 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
15212echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000015213 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
15214echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015215 relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
15216echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
15217 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
15218echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
15219 win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
15220echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
15221 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
15222echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015223 esac
15224done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015225_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015226
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015227cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000015228
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015229{ (exit 0); exit 0; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015230_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015231chmod +x $CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015232ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015233
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015234
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015235# configure is writing to config.log, and then calls config.status.
15236# config.status does its own redirection, appending to config.log.
15237# Unfortunately, on DOS this fails, as config.log is still kept open
15238# by configure, so config.status won't be able to write to it; its
15239# output is simply discarded. So we exec the FD to /dev/null,
15240# effectively closing config.log, so it can be properly (re)opened and
15241# appended to by config.status. When coming back to configure, we
15242# need to make the FD available again.
15243if test "$no_create" != yes; then
15244 ac_cs_success=:
15245 exec 5>/dev/null
15246 $SHELL $CONFIG_STATUS || ac_cs_success=false
15247 exec 5>>config.log
15248 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15249 # would make configure fail if this is the last instruction.
15250 $ac_cs_success || { (exit 1); exit 1; }
15251fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015252
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015253
Ove Kaaven8b4431f1999-01-23 13:59:11 +000015254if test "$have_x" = "no"
15255then
15256 echo
15257 echo "*** Warning: X development files not found. Wine will be built without"
15258 echo "*** X support, which currently does not work, and would probably not be"
15259 echo "*** what you want anyway. You will need to install devel packages of"
Alexandre Julliard18e4b5e2002-01-04 18:52:40 +000015260 echo "*** Xlib/Xfree86 at the very least."
Ove Kaaven8b4431f1999-01-23 13:59:11 +000015261fi
15262
Alexandre Julliard638f1691999-01-17 16:32:32 +000015263if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
15264then
15265 echo
15266 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
15267 echo "*** terminal resize support. Consider upgrading ncurses."
Alexandre Julliard638f1691999-01-17 16:32:32 +000015268fi
15269
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015270if test "$wine_cv_libc_reentrant" = "no"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000015271then
15272 echo
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015273 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
15274 echo "*** threading support. Consider upgrading libc to a more recent"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000015275 echo "*** reentrant version of libc."
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000015276fi
15277
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000015278if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
15279then
15280 echo
15281 echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
15282 echo "*** applications won't work properly. You should upgrade your X11 library."
15283fi
15284
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000015285if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000015286then
15287 echo
15288 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000015289 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
15290fi
15291
Ian Pilcher563598d2001-05-16 20:56:05 +000015292if test "$wine_cv_msg_freetype" = "yes"
15293then
15294 echo
15295 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015296 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
15297 echo "*** freetype-devel package (or its equivalent on your distribution) to"
15298 echo "*** enable Wine to use TrueType fonts."
Ian Pilcher563598d2001-05-16 20:56:05 +000015299fi
15300
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015301echo
Steffen Moeller1511bae1999-02-17 15:27:03 +000015302echo "Configure finished. Do 'make depend && make' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015303echo
15304