blob: 160cd2cefabefcd050e812c8f39313a1a55f6953 [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 Julliard471a7ed2005-06-28 14:39:19 +00003# Generated by GNU Autoconf 2.59 for Wine 20050628.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004#
Alexandre Julliard875927f2004-01-02 01:55:29 +00005# Report bugs to <wine-devel@winehq.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000018 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000024DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025
Alexandre Julliarddaa28862002-04-11 21:54:01 +000026# Support unset when possible.
Alexandre Julliard875927f2004-01-02 01:55:29 +000027if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000028 as_unset=unset
29else
30 as_unset=false
31fi
32
Alexandre Julliard11af04e2002-10-10 03:48:04 +000033
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000041for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
Alexandre Julliard11af04e2002-10-10 03:48:04 +000045do
Alexandre Julliard875927f2004-01-02 01:55:29 +000046 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Alexandre Julliard11af04e2002-10-10 03:48:04 +000047 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000065
66
Alexandre Julliardf5818d22002-02-14 19:47:29 +000067# Name of the executable.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000068as_me=`$as_basename "$0" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000069$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
Alexandre Julliard11af04e2002-10-10 03:48:04 +000079
Alexandre Julliarddaa28862002-04-11 21:54:01 +000080# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000090 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000094 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000098 rm -f conf$$.sh
Alexandre Julliarddaa28862002-04-11 21:54:01 +000099fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
Alexandre Julliard875927f2004-01-02 01:55:29 +0000223 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000224 as_mkdir_p=false
225fi
226
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000227as_executable_p="test -f"
228
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000229# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +0000230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000231
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000232# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +0000233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000234
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000243$as_unset CDPATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000244
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000256ac_default_prefix=/usr/local
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000257ac_config_libobj_dir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000258cross_compiling=no
259subdirs=
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000260MFLAGS=
261MAKEFLAGS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000269# Identity of this package.
270PACKAGE_NAME='Wine'
271PACKAGE_TARNAME='wine'
Alexandre Julliard471a7ed2005-06-28 14:39:19 +0000272PACKAGE_VERSION='20050628'
273PACKAGE_STRING='Wine 20050628'
Alexandre Julliard875927f2004-01-02 01:55:29 +0000274PACKAGE_BUGREPORT='wine-devel@winehq.org'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000275
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000276ac_unique_file="server/atom.c"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291# include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296# include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307# include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000313
Alexandre Julliard71440f32005-05-19 14:28:17 +0000314ac_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 DLLDEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os WIN16_FILES WIN16_INSTALL SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPPBIN ac_ct_CPPBIN TOOLSDIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LEX LEXLIB LEX_OUTPUT_ROOT XLEX BISON AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN EGREP LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS FONTFORGE LIBPTHREAD XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPELIBS FREETYPEINCL FONTSSUBDIRS ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS LDLIBWINEFLAGS COREFOUNDATIONLIB IOKITLIB CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS SOCKETLIBS WINE_BINARIES MAIN_BINARY LDD ALLOCA LIBOBJS LTLIBOBJS'
Alexandre Julliard117436e2003-05-01 00:39:29 +0000315ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000316
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000317# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000318ac_init_help=
319ac_init_version=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000320# The variables have the same names as the options, with
321# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000322cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000323exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000324no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000333verbose=
334x_includes=NONE
335x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000354
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000355ac_prev=
356for ac_option
357do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
363 fi
364
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000369 case $ac_option in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000370
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000374 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000375
376 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000377 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000379 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000380
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000386 cache_file=$ac_optarg ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000390
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000395 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000396
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000397 -disable-* | --disable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000399 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000405
406 -enable-* | --enable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000408 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000415 *) ac_optarg=yes ;;
416 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000417 eval "enable_$ac_feature='$ac_optarg'" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000418
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000426 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000438
439 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000440 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000441 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000442 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000443
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000449 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000454 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000459 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000460
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000466 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000467
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000475 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000480 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000481
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000487 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000488 no_create=yes ;;
489
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
493
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000501 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000502
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000506 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000507
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000513 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000514
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000520 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000521
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000537 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000547 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000548
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000558 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000559
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000563 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000568 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000569
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000575 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000576
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000577 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000578 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000580 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000587
588 -with-* | --with-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000590 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000594 ac_package=`echo $ac_package| sed 's/-/_/g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000597 *) ac_optarg=yes ;;
598 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000599 eval "with_$ac_package='$ac_optarg'" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000600
601 -without-* | --without-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000603 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000619 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000620
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000626 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000627
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000631 ;;
632
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
642
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000643 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000649 ;;
650
651 esac
652done
653
654if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000658fi
659
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000662do
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000667 { (exit 1); exit 1; }; };;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000668 esac
669done
670
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Alexandre Julliard875927f2004-01-02 01:55:29 +0000673 localstatedir libdir includedir oldincludedir infodir mandir
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000674do
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000679 { (exit 1); exit 1; }; };;
680 esac
681done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000682
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000685# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000686build=$build_alias
687host=$host_alias
688target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000689
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000690# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000691if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
698 fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000705
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000706
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +0000713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000717echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
726 fi
727else
728 ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000733 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000734 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000736 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000737 fi
738fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CC_set=${CC+set}
756ac_env_CC_value=$CC
757ac_cv_env_CC_set=${CC+set}
758ac_cv_env_CC_value=$CC
759ac_env_CFLAGS_set=${CFLAGS+set}
760ac_env_CFLAGS_value=$CFLAGS
761ac_cv_env_CFLAGS_set=${CFLAGS+set}
762ac_cv_env_CFLAGS_value=$CFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +0000771ac_env_CXX_set=${CXX+set}
772ac_env_CXX_value=$CXX
773ac_cv_env_CXX_set=${CXX+set}
774ac_cv_env_CXX_value=$CXX
775ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776ac_env_CXXFLAGS_value=$CXXFLAGS
777ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778ac_cv_env_CXXFLAGS_value=$CXXFLAGS
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000779ac_env_CPP_set=${CPP+set}
780ac_env_CPP_value=$CPP
781ac_cv_env_CPP_set=${CPP+set}
782ac_cv_env_CPP_value=$CPP
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000783
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000784#
785# Report the --help message.
786#
787if test "$ac_init_help" = "long"; then
788 # Omit some internal or obsolete options to make the list less imposing.
789 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000790 cat <<_ACEOF
Alexandre Julliard471a7ed2005-06-28 14:39:19 +0000791\`configure' configures Wine 20050628 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000792
793Usage: $0 [OPTION]... [VAR=VALUE]...
794
795To assign environment variables (e.g., CC, CFLAGS...), specify them as
796VAR=VALUE. See below for descriptions of some of the useful variables.
797
798Defaults for the options are specified in brackets.
799
800Configuration:
801 -h, --help display this help and exit
802 --help=short display options specific to this package
803 --help=recursive display the short help of all the included packages
804 -V, --version display version information and exit
805 -q, --quiet, --silent do not print \`checking...' messages
806 --cache-file=FILE cache test results in FILE [disabled]
807 -C, --config-cache alias for \`--cache-file=config.cache'
808 -n, --no-create do not create output files
809 --srcdir=DIR find the sources in DIR [configure dir or \`..']
810
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000811_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000812
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000813 cat <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000814Installation directories:
815 --prefix=PREFIX install architecture-independent files in PREFIX
Alexandre Julliard875927f2004-01-02 01:55:29 +0000816 [$ac_default_prefix]
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000817 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliard875927f2004-01-02 01:55:29 +0000818 [PREFIX]
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000819
820By default, \`make install' will install all the files in
821\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
822an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823for instance \`--prefix=\$HOME'.
824
825For better control, use the options below.
826
827Fine tuning of the installation directories:
828 --bindir=DIR user executables [EPREFIX/bin]
829 --sbindir=DIR system admin executables [EPREFIX/sbin]
830 --libexecdir=DIR program executables [EPREFIX/libexec]
831 --datadir=DIR read-only architecture-independent data [PREFIX/share]
832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
835 --libdir=DIR object code libraries [EPREFIX/lib]
836 --includedir=DIR C header files [PREFIX/include]
837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
838 --infodir=DIR info documentation [PREFIX/info]
839 --mandir=DIR man documentation [PREFIX/man]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000840_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000841
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000842 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000843
844X features:
845 --x-includes=DIR X include files are in DIR
846 --x-libraries=DIR X library files are in DIR
847
848System types:
849 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000850 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000851_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000852fi
853
854if test -n "$ac_init_help"; then
855 case $ac_init_help in
Alexandre Julliard471a7ed2005-06-28 14:39:19 +0000856 short | recursive ) echo "Configuration of Wine 20050628:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000857 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000858 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000859
860Optional Features:
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Eric Pouech53fa0d52004-02-05 01:27:38 +0000863 --disable-win16 do not include Win16 support
864 --disable-debug compile out all debugging messages
865 --disable-trace compile out TRACE messages
Alexandre Julliard2aa8e872004-10-08 23:39:16 +0000866 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
867 binaries)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000868
869Optional Packages:
870 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
871 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Eric Pouech53fa0d52004-02-05 01:27:38 +0000872 --without-opengl do not use OpenGL
873 --without-curses do not use curses
874 --with-wine-tools=<dir> use Wine tools from directory <dir>
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000875 --with-x use the X Window System
876
877Some influential environment variables:
Eric Pouech53fa0d52004-02-05 01:27:38 +0000878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +0000884 CXX C++ compiler command
885 CXXFLAGS C++ compiler flags
Eric Pouech53fa0d52004-02-05 01:27:38 +0000886 CPP C preprocessor
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000887
888Use these variables to override the choices made by `configure' or to help
889it to find libraries and programs with nonstandard names/locations.
890
Alexandre Julliard875927f2004-01-02 01:55:29 +0000891Report bugs to <wine-devel@winehq.org>.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000892_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000893fi
894
895if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
897 ac_popdir=`pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000898 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899 test -d $ac_dir || continue
900 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000901
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000902if test "$ac_dir" != .; then
903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904 # A "../" for each directory in $ac_dir_suffix.
905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906else
907 ac_dir_suffix= ac_top_builddir=
908fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000909
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000910case $srcdir in
911 .) # No --srcdir option. We are building in place.
912 ac_srcdir=.
913 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=.
915 else
916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 fi ;;
918 [\\/]* | ?:[\\/]* ) # Absolute path.
919 ac_srcdir=$srcdir$ac_dir_suffix;
920 ac_top_srcdir=$srcdir ;;
921 *) # Relative path.
922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924esac
Alexandre Julliard875927f2004-01-02 01:55:29 +0000925
926# Do not use `cd foo && pwd` to compute absolute paths, because
927# the directories may not exist.
928case `pwd` in
929.) ac_abs_builddir="$ac_dir";;
930*)
931 case "$ac_dir" in
932 .) ac_abs_builddir=`pwd`;;
933 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934 *) ac_abs_builddir=`pwd`/"$ac_dir";;
935 esac;;
936esac
937case $ac_abs_builddir in
938.) ac_abs_top_builddir=${ac_top_builddir}.;;
939*)
940 case ${ac_top_builddir}. in
941 .) ac_abs_top_builddir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
944 esac;;
945esac
946case $ac_abs_builddir in
947.) ac_abs_srcdir=$ac_srcdir;;
948*)
949 case $ac_srcdir in
950 .) ac_abs_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
953 esac;;
954esac
955case $ac_abs_builddir in
956.) ac_abs_top_srcdir=$ac_top_srcdir;;
957*)
958 case $ac_top_srcdir in
959 .) ac_abs_top_srcdir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962 esac;;
963esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000964
965 cd $ac_dir
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000966 # Check for guested configure; otherwise get Cygnus style configure.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000967 if test -f $ac_srcdir/configure.gnu; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000968 echo
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000969 $SHELL $ac_srcdir/configure.gnu --help=recursive
970 elif test -f $ac_srcdir/configure; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000971 echo
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000972 $SHELL $ac_srcdir/configure --help=recursive
973 elif test -f $ac_srcdir/configure.ac ||
Alexandre Julliard875927f2004-01-02 01:55:29 +0000974 test -f $ac_srcdir/configure.in; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000975 echo
976 $ac_configure --help
977 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000979 fi
Alexandre Julliardccc75702003-09-19 04:36:54 +0000980 cd "$ac_popdir"
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000981 done
982fi
983
984test -n "$ac_init_help" && exit 0
985if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000986 cat <<\_ACEOF
Alexandre Julliard471a7ed2005-06-28 14:39:19 +0000987Wine configure 20050628
Eric Pouech53fa0d52004-02-05 01:27:38 +0000988generated by GNU Autoconf 2.59
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000989
Alexandre Julliard875927f2004-01-02 01:55:29 +0000990Copyright (C) 2003 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000991This configure script is free software; the Free Software Foundation
992gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000993_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000994 exit 0
995fi
996exec 5>config.log
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000997cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000998This file contains any messages produced by compilers while
999running configure, to aid debugging if configure makes a mistake.
1000
Alexandre Julliard471a7ed2005-06-28 14:39:19 +00001001It was created by Wine $as_me 20050628, which was
Eric Pouech53fa0d52004-02-05 01:27:38 +00001002generated by GNU Autoconf 2.59. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001003
1004 $ $0 $@
1005
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001006_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001007{
1008cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001009## --------- ##
1010## Platform. ##
1011## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001012
1013hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017uname -v = `(uname -v) 2>/dev/null || echo unknown`
1018
1019/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1021
1022/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1023/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1024/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1026/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1027/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1028/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1029
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001030_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001031
1032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033for as_dir in $PATH
1034do
1035 IFS=$as_save_IFS
1036 test -z "$as_dir" && as_dir=.
1037 echo "PATH: $as_dir"
1038done
1039
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001040} >&5
1041
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001042cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001043
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001044
1045## ----------- ##
1046## Core tests. ##
1047## ----------- ##
1048
1049_ACEOF
1050
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001051
1052# Keep a trace of the command line.
1053# Strip out --no-create and --no-recursion so they do not pile up.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001054# Strip out --silent because we don't want to record it for future runs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001055# Also quote any args containing shell meta-characters.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001056# Make two passes to allow for proper duplicate-argument suppression.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001057ac_configure_args=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001058ac_configure_args0=
1059ac_configure_args1=
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001060ac_sep=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001061ac_must_keep_next=false
1062for ac_pass in 1 2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001063do
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001064 for ac_arg
1065 do
1066 case $ac_arg in
1067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1070 continue ;;
1071 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073 esac
1074 case $ac_pass in
1075 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1076 2)
1077 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078 if test $ac_must_keep_next = true; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00001079 ac_must_keep_next=false # Got value, back to normal.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001080 else
Alexandre Julliard875927f2004-01-02 01:55:29 +00001081 case $ac_arg in
1082 *=* | --config-cache | -C | -disable-* | --disable-* \
1083 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085 | -with-* | --with-* | -without-* | --without-* | --x)
1086 case "$ac_configure_args0 " in
1087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088 esac
1089 ;;
1090 -* ) ac_must_keep_next=true ;;
1091 esac
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001092 fi
1093 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094 # Get rid of the leading space.
1095 ac_sep=" "
1096 ;;
1097 esac
1098 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001099done
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001100$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001102
1103# When interrupted or exit'd, cleanup temporary files, and complete
1104# config.log. We remove comments because anyway the quotes in there
1105# would cause problems or look ugly.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001106# WARNING: Be sure not to use single quotes in there, as some shells,
1107# such as our DU 5.0 friend, will then `close' the trap.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001108trap 'exit_status=$?
1109 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001110 {
1111 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001112
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001113 cat <<\_ASBOX
1114## ---------------- ##
1115## Cache variables. ##
1116## ---------------- ##
1117_ASBOX
1118 echo
1119 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001120{
1121 (set) 2>&1 |
1122 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123 *ac_space=\ *)
1124 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +00001125 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001127 ;;
1128 *)
1129 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +00001130 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001131 ;;
1132 esac;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001133}
1134 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001135
1136 cat <<\_ASBOX
1137## ----------------- ##
1138## Output variables. ##
1139## ----------------- ##
1140_ASBOX
1141 echo
1142 for ac_var in $ac_subst_vars
1143 do
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1146 done | sort
1147 echo
1148
1149 if test -n "$ac_subst_files"; then
1150 cat <<\_ASBOX
1151## ------------- ##
1152## Output files. ##
1153## ------------- ##
1154_ASBOX
1155 echo
1156 for ac_var in $ac_subst_files
1157 do
1158 eval ac_val=$`echo $ac_var`
Alexandre Julliard875927f2004-01-02 01:55:29 +00001159 echo "$ac_var='"'"'$ac_val'"'"'"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001160 done | sort
1161 echo
1162 fi
1163
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001164 if test -s confdefs.h; then
1165 cat <<\_ASBOX
1166## ----------- ##
1167## confdefs.h. ##
1168## ----------- ##
1169_ASBOX
1170 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001171 sed "/^$/d" confdefs.h | sort
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001172 echo
1173 fi
1174 test "$ac_signal" != 0 &&
1175 echo "$as_me: caught signal $ac_signal"
1176 echo "$as_me: exit $exit_status"
1177 } >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +00001178 rm -f core *.core &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001179 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001180 exit $exit_status
1181 ' 0
1182for ac_signal in 1 2 13 15; do
1183 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184done
1185ac_signal=0
1186
1187# confdefs.h avoids OS command line length limits that DEFS can exceed.
1188rm -rf conftest* confdefs.h
1189# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190echo >confdefs.h
1191
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001192# Predefined preprocessor variables.
1193
1194cat >>confdefs.h <<_ACEOF
1195#define PACKAGE_NAME "$PACKAGE_NAME"
1196_ACEOF
1197
1198
1199cat >>confdefs.h <<_ACEOF
1200#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201_ACEOF
1202
1203
1204cat >>confdefs.h <<_ACEOF
1205#define PACKAGE_VERSION "$PACKAGE_VERSION"
1206_ACEOF
1207
1208
1209cat >>confdefs.h <<_ACEOF
1210#define PACKAGE_STRING "$PACKAGE_STRING"
1211_ACEOF
1212
1213
1214cat >>confdefs.h <<_ACEOF
1215#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216_ACEOF
1217
1218
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001219# Let the site file select an alternate cache file if it wants to.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001220# Prefer explicitly selected file to automatically selected ones.
1221if test -z "$CONFIG_SITE"; then
1222 if test "x$prefix" != xNONE; then
1223 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224 else
1225 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226 fi
1227fi
1228for ac_site_file in $CONFIG_SITE; do
1229 if test -r "$ac_site_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001230 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001231echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001232 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001233 . "$ac_site_file"
1234 fi
1235done
1236
1237if test -r "$cache_file"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001238 # Some versions of bash will fail to source /dev/null (special
1239 # files actually), so we avoid doing that.
1240 if test -f "$cache_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001241 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001242echo "$as_me: loading cache $cache_file" >&6;}
1243 case $cache_file in
1244 [\\/]* | ?:[\\/]* ) . $cache_file;;
1245 *) . ./$cache_file;;
1246 esac
1247 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001248else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001249 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001250echo "$as_me: creating cache $cache_file" >&6;}
1251 >$cache_file
1252fi
1253
1254# Check that the precious variables saved in the cache have kept the same
1255# value.
1256ac_cache_corrupted=false
1257for ac_var in `(set) 2>&1 |
Alexandre Julliard875927f2004-01-02 01:55:29 +00001258 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260 eval ac_new_set=\$ac_env_${ac_var}_set
1261 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262 eval ac_new_val="\$ac_env_${ac_var}_value"
1263 case $ac_old_set,$ac_new_set in
1264 set,)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001265 { 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 +00001266echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1268 ,set)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001269 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001270echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1272 ,);;
1273 *)
1274 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00001275 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001276echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001277 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001278echo "$as_me: former value: $ac_old_val" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001279 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001280echo "$as_me: current value: $ac_new_val" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001281 ac_cache_corrupted=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001282 fi;;
1283 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001284 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001285 if test "$ac_new_set" = set; then
1286 case $ac_new_val in
1287 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001288 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289 *) ac_arg=$ac_var=$ac_new_val ;;
1290 esac
1291 case " $ac_configure_args " in
1292 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1293 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001294 esac
1295 fi
1296done
1297if $ac_cache_corrupted; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001298 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001299echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001300 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001301echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001303fi
1304
1305ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001306ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001310
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001336
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001337
1338 ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001339
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001340ac_aux_dir=
1341for ac_dir in tools $srcdir/tools; do
1342 if test -f $ac_dir/install-sh; then
1343 ac_aux_dir=$ac_dir
1344 ac_install_sh="$ac_aux_dir/install-sh -c"
1345 break
1346 elif test -f $ac_dir/install.sh; then
1347 ac_aux_dir=$ac_dir
1348 ac_install_sh="$ac_aux_dir/install.sh -c"
1349 break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001350 elif test -f $ac_dir/shtool; then
1351 ac_aux_dir=$ac_dir
1352 ac_install_sh="$ac_aux_dir/shtool install -c"
1353 break
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001354 fi
1355done
1356if test -z "$ac_aux_dir"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001357 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001358echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1359 { (exit 1); exit 1; }; }
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001360fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001361ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1362ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1363ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Howard Abrams13277481999-07-10 13:16:29 +00001364
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001365
1366
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001367# Check whether --enable-win16 or --disable-win16 was given.
1368if test "${enable_win16+set}" = set; then
1369 enableval="$enable_win16"
1370
1371fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001372# Check whether --enable-debug or --disable-debug was given.
1373if test "${enable_debug+set}" = set; then
1374 enableval="$enable_debug"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001375
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001376fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001377# Check whether --enable-trace or --disable-trace was given.
1378if test "${enable_trace+set}" = set; then
1379 enableval="$enable_trace"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001380
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001381fi;
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001382# Check whether --enable-win64 or --disable-win64 was given.
1383if test "${enable_win64+set}" = set; then
1384 enableval="$enable_win64"
1385
1386fi;
Alexandre Julliardb8074992002-11-21 21:51:24 +00001387
1388
1389# Check whether --with-opengl or --without-opengl was given.
1390if test "${with_opengl+set}" = set; then
1391 withval="$with_opengl"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001392
1393fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001394
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001395# Check whether --with-curses or --without-curses was given.
1396if test "${with_curses+set}" = set; then
1397 withval="$with_curses"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001398
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001399fi;
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001400
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001401# Check whether --with-wine-tools or --without-wine-tools was given.
1402if test "${with_wine_tools+set}" = set; then
1403 withval="$with_wine_tools"
1404
1405fi;
1406
Vincent Béron1f504142004-10-19 23:06:11 +00001407DLLDEFS=""
1408
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001409if test "x$enable_debug" = "xno"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001410then
Vincent Béron1f504142004-10-19 23:06:11 +00001411 DLLDEFS="$DLLDEFS -DWINE_NO_DEBUG_MSGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001412fi
1413if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001414then
Vincent Béron1f504142004-10-19 23:06:11 +00001415 DLLDEFS="$DLLDEFS -DWINE_NO_TRACE_MSGS"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001416fi
1417
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001418# Make sure we can run config.sub.
1419$ac_config_sub sun4 >/dev/null 2>&1 ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001420 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001421echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1422 { (exit 1); exit 1; }; }
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001423
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001424echo "$as_me:$LINENO: checking build system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001425echo $ECHO_N "checking build system type... $ECHO_C" >&6
1426if test "${ac_cv_build+set}" = set; then
1427 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001428else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001429 ac_cv_build_alias=$build_alias
1430test -z "$ac_cv_build_alias" &&
1431 ac_cv_build_alias=`$ac_config_guess`
1432test -z "$ac_cv_build_alias" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001433 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001434echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1435 { (exit 1); exit 1; }; }
1436ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001437 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1438echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001439 { (exit 1); exit 1; }; }
1440
1441fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001442echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001443echo "${ECHO_T}$ac_cv_build" >&6
1444build=$ac_cv_build
1445build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1448
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001449
1450echo "$as_me:$LINENO: checking host system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001451echo $ECHO_N "checking host system type... $ECHO_C" >&6
1452if test "${ac_cv_host+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1454else
1455 ac_cv_host_alias=$host_alias
1456test -z "$ac_cv_host_alias" &&
1457 ac_cv_host_alias=$ac_cv_build_alias
1458ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001459 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001460echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1461 { (exit 1); exit 1; }; }
1462
1463fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001464echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001465echo "${ECHO_T}$ac_cv_host" >&6
1466host=$ac_cv_host
1467host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1470
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001471
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001472case $host in
1473 x86_64*linux*)
1474 if test "x$enable_win64" != "xyes"
1475 then
1476 test -n "$CC" || CC="gcc -m32"
1477 test -n "$LD" || LD="ld -m elf_i386"
1478 test -n "$AS" || AS="as --32"
Alex Woodsbbcf9862005-02-10 19:09:08 +00001479 host_cpu="i386"
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001480 fi
1481 ;;
1482esac
1483
Alexandre Julliard71440f32005-05-19 14:28:17 +00001484case $host_cpu in
1485 *i[3456789]86*)
1486 if test "x$enable_win16" != "xno"
1487 then
1488 enable_win16="yes"
1489 fi
1490 ;;
1491esac
1492
1493WIN16_FILES="\$(WIN16_FILES)"
1494
1495WIN16_INSTALL="\$(WIN16_INSTALL)"
1496
1497if test "x$enable_win16" != "xyes"
1498then
1499 WIN16_FILES=""
1500 WIN16_INSTALL=""
1501fi
1502
1503
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001504echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1505echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
Alexandre Julliard875927f2004-01-02 01:55:29 +00001506set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001507if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1509else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001510 cat >conftest.make <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001511all:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001512 @echo 'ac_maketemp="$(MAKE)"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001513_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001514# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001515eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001516if test -n "$ac_maketemp"; then
1517 eval ac_cv_prog_make_${ac_make}_set=yes
1518else
1519 eval ac_cv_prog_make_${ac_make}_set=no
1520fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001521rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001522fi
1523if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001524 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001525echo "${ECHO_T}yes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001526 SET_MAKE=
1527else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001528 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001529echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001530 SET_MAKE="MAKE=${MAKE-make}"
1531fi
1532
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001533ac_ext=c
1534ac_cpp='$CPP $CPPFLAGS'
1535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1537ac_compiler_gnu=$ac_cv_c_compiler_gnu
1538if test -n "$ac_tool_prefix"; then
1539 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1540set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001541echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1543if test "${ac_cv_prog_CC+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001545else
1546 if test -n "$CC"; then
1547 ac_cv_prog_CC="$CC" # Let the user override the test.
1548else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550for as_dir in $PATH
1551do
1552 IFS=$as_save_IFS
1553 test -z "$as_dir" && as_dir=.
1554 for ac_exec_ext in '' $ac_executable_extensions; do
1555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1558 break 2
1559 fi
1560done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001561done
1562
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001563fi
1564fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001565CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001566if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001567 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001568echo "${ECHO_T}$CC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001569else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001570 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001571echo "${ECHO_T}no" >&6
1572fi
1573
1574fi
1575if test -z "$ac_cv_prog_CC"; then
1576 ac_ct_CC=$CC
1577 # Extract the first word of "gcc", so it can be a program name with args.
1578set dummy gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001579echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1583else
1584 if test -n "$ac_ct_CC"; then
1585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1586else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588for as_dir in $PATH
1589do
1590 IFS=$as_save_IFS
1591 test -z "$as_dir" && as_dir=.
1592 for ac_exec_ext in '' $ac_executable_extensions; do
1593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1594 ac_cv_prog_ac_ct_CC="gcc"
1595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1596 break 2
1597 fi
1598done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001599done
1600
1601fi
1602fi
1603ac_ct_CC=$ac_cv_prog_ac_ct_CC
1604if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001605 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001606echo "${ECHO_T}$ac_ct_CC" >&6
1607else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001608 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001609echo "${ECHO_T}no" >&6
1610fi
1611
1612 CC=$ac_ct_CC
1613else
1614 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001615fi
1616
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001617if test -z "$CC"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001618 if test -n "$ac_tool_prefix"; then
1619 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1620set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001621echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623if test "${ac_cv_prog_CC+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001625else
1626 if test -n "$CC"; then
1627 ac_cv_prog_CC="$CC" # Let the user override the test.
1628else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630for as_dir in $PATH
1631do
1632 IFS=$as_save_IFS
1633 test -z "$as_dir" && as_dir=.
1634 for ac_exec_ext in '' $ac_executable_extensions; do
1635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636 ac_cv_prog_CC="${ac_tool_prefix}cc"
1637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638 break 2
1639 fi
1640done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001641done
1642
1643fi
1644fi
1645CC=$ac_cv_prog_CC
1646if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001647 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001648echo "${ECHO_T}$CC" >&6
1649else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001650 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001651echo "${ECHO_T}no" >&6
1652fi
1653
1654fi
1655if test -z "$ac_cv_prog_CC"; then
1656 ac_ct_CC=$CC
1657 # Extract the first word of "cc", so it can be a program name with args.
1658set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001659echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663else
1664 if test -n "$ac_ct_CC"; then
1665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1666else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668for as_dir in $PATH
1669do
1670 IFS=$as_save_IFS
1671 test -z "$as_dir" && as_dir=.
1672 for ac_exec_ext in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674 ac_cv_prog_ac_ct_CC="cc"
1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676 break 2
1677 fi
1678done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001679done
1680
1681fi
1682fi
1683ac_ct_CC=$ac_cv_prog_ac_ct_CC
1684if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001685 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001686echo "${ECHO_T}$ac_ct_CC" >&6
1687else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001688 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001689echo "${ECHO_T}no" >&6
1690fi
1691
1692 CC=$ac_ct_CC
1693else
1694 CC="$ac_cv_prog_CC"
1695fi
1696
1697fi
1698if test -z "$CC"; then
1699 # Extract the first word of "cc", so it can be a program name with args.
1700set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001701echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703if test "${ac_cv_prog_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1705else
1706 if test -n "$CC"; then
1707 ac_cv_prog_CC="$CC" # Let the user override the test.
1708else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001709 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1718 ac_prog_rejected=yes
1719 continue
1720 fi
1721 ac_cv_prog_CC="cc"
1722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723 break 2
1724 fi
1725done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001726done
1727
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001728if test $ac_prog_rejected = yes; then
1729 # We found a bogon in the path, so make sure we never use it.
1730 set dummy $ac_cv_prog_CC
1731 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001732 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001733 # We chose a different compiler from the bogus one.
1734 # However, it has the same basename, so the bogon will be chosen
1735 # first if we set CC to just the basename; use the full file name.
1736 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001737 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001738 fi
1739fi
1740fi
1741fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001742CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001743if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001744 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001745echo "${ECHO_T}$CC" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001746else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001747 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001748echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001749fi
1750
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001751fi
1752if test -z "$CC"; then
1753 if test -n "$ac_tool_prefix"; then
1754 for ac_prog in cl
1755 do
1756 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1757set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001758echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760if test "${ac_cv_prog_CC+set}" = set; then
1761 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001762else
1763 if test -n "$CC"; then
1764 ac_cv_prog_CC="$CC" # Let the user override the test.
1765else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767for as_dir in $PATH
1768do
1769 IFS=$as_save_IFS
1770 test -z "$as_dir" && as_dir=.
1771 for ac_exec_ext in '' $ac_executable_extensions; do
1772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775 break 2
1776 fi
1777done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001778done
1779
Eric Pouech18ad24a2000-01-16 22:16:33 +00001780fi
1781fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001782CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00001783if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001784 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001785echo "${ECHO_T}$CC" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001786else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001787 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001788echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001789fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001790
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001791 test -n "$CC" && break
1792 done
1793fi
1794if test -z "$CC"; then
1795 ac_ct_CC=$CC
1796 for ac_prog in cl
1797do
1798 # Extract the first word of "$ac_prog", so it can be a program name with args.
1799set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001800echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1804else
1805 if test -n "$ac_ct_CC"; then
1806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1807else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809for as_dir in $PATH
1810do
1811 IFS=$as_save_IFS
1812 test -z "$as_dir" && as_dir=.
1813 for ac_exec_ext in '' $ac_executable_extensions; do
1814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815 ac_cv_prog_ac_ct_CC="$ac_prog"
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817 break 2
1818 fi
1819done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001820done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001821
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001822fi
1823fi
1824ac_ct_CC=$ac_cv_prog_ac_ct_CC
1825if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001826 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001827echo "${ECHO_T}$ac_ct_CC" >&6
1828else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001829 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001830echo "${ECHO_T}no" >&6
1831fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001832
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001833 test -n "$ac_ct_CC" && break
1834done
Eric Pouech18ad24a2000-01-16 22:16:33 +00001835
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001836 CC=$ac_ct_CC
1837fi
1838
1839fi
1840
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001841
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001842test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1843See \`config.log' for more details." >&5
1844echo "$as_me: error: no acceptable C compiler found in \$PATH
1845See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001846 { (exit 1); exit 1; }; }
1847
1848# Provide some information about the compiler.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001849echo "$as_me:$LINENO:" \
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001850 "checking for C compiler version" >&5
1851ac_compiler=`set X $ac_compile; echo $2`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001852{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001853 (eval $ac_compiler --version </dev/null >&5) 2>&5
1854 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001856 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001857{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001858 (eval $ac_compiler -v </dev/null >&5) 2>&5
1859 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001861 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001862{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001863 (eval $ac_compiler -V </dev/null >&5) 2>&5
1864 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001866 (exit $ac_status); }
1867
1868cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001869/* confdefs.h. */
1870_ACEOF
1871cat confdefs.h >>conftest.$ac_ext
1872cat >>conftest.$ac_ext <<_ACEOF
1873/* end confdefs.h. */
Eric Pouech18ad24a2000-01-16 22:16:33 +00001874
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001875int
1876main ()
1877{
1878
1879 ;
1880 return 0;
1881}
1882_ACEOF
1883ac_clean_files_save=$ac_clean_files
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001884ac_clean_files="$ac_clean_files a.out a.exe b.out"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001885# Try to create an executable without -o first, disregard a.out.
1886# It will help us diagnose broken compilers, and finding out an intuition
1887# of exeext.
Alexandre Julliard875927f2004-01-02 01:55:29 +00001888echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1889echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001890ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001891if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001892 (eval $ac_link_default) 2>&5
1893 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001895 (exit $ac_status); }; then
1896 # Find the output, starting from the most likely. This scheme is
1897# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1898# resort.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001899
1900# Be careful to initialize this variable, since it used to be cached.
1901# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1902ac_cv_exeext=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001903# b.out is created by i960 compilers.
1904for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1905do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001906 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001907 case $ac_file in
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001909 ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001910 conftest.$ac_ext )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001911 # This is the source file.
1912 ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001913 [ab].out )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001914 # We found the default executable, but exeext='' is most
1915 # certainly right.
1916 break;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001917 *.* )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001918 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1919 # FIXME: I believe we export ac_cv_exeext for Libtool,
1920 # but it would be cool to find out if it's true. Does anybody
1921 # maintain Libtool? --akim.
1922 export ac_cv_exeext
1923 break;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001924 * )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001925 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001926 esac
1927done
1928else
1929 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001930sed 's/^/| /' conftest.$ac_ext >&5
1931
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001932{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001933See \`config.log' for more details." >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001934echo "$as_me: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001935See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001936 { (exit 77); exit 77; }; }
1937fi
1938
1939ac_exeext=$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001940echo "$as_me:$LINENO: result: $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001941echo "${ECHO_T}$ac_file" >&6
1942
1943# Check the compiler produces executables we can run. If not, either
1944# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001945echo "$as_me:$LINENO: checking whether the C compiler works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001946echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1947# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1948# If not cross compiling, check that we can run a simple program.
1949if test "$cross_compiling" != yes; then
1950 if { ac_try='./$ac_file'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001952 (eval $ac_try) 2>&5
1953 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001955 (exit $ac_status); }; }; then
1956 cross_compiling=no
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001957 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001958 if test "$cross_compiling" = maybe; then
1959 cross_compiling=yes
1960 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001961 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001962If you meant to cross compile, use \`--host'.
1963See \`config.log' for more details." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001964echo "$as_me: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001965If you meant to cross compile, use \`--host'.
1966See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001967 { (exit 1); exit 1; }; }
1968 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001969 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001970fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001971echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001972echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001973
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001974rm -f a.out a.exe conftest$ac_cv_exeext b.out
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001975ac_clean_files=$ac_clean_files_save
1976# Check the compiler produces executables we can run. If not, either
1977# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001978echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001979echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001980echo "$as_me:$LINENO: result: $cross_compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001981echo "${ECHO_T}$cross_compiling" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001982
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001983echo "$as_me:$LINENO: checking for suffix of executables" >&5
1984echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001986 (eval $ac_link) 2>&5
1987 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001989 (exit $ac_status); }; then
1990 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1991# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1992# work properly (i.e., refer to `conftest.exe'), while it won't with
1993# `rm'.
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001994for ac_file in conftest.exe conftest conftest.*; do
1995 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001996 case $ac_file in
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001998 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Alexandre Julliard875927f2004-01-02 01:55:29 +00001999 export ac_cv_exeext
2000 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002001 * ) break;;
2002 esac
2003done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002004else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002005 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2006See \`config.log' for more details." >&5
2007echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2008See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002009 { (exit 1); exit 1; }; }
2010fi
2011
2012rm -f conftest$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002013echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002014echo "${ECHO_T}$ac_cv_exeext" >&6
2015
2016rm -f conftest.$ac_ext
2017EXEEXT=$ac_cv_exeext
2018ac_exeext=$EXEEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002019echo "$as_me:$LINENO: checking for suffix of object files" >&5
2020echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002021if test "${ac_cv_objext+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023else
2024 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002025/* confdefs.h. */
2026_ACEOF
2027cat confdefs.h >>conftest.$ac_ext
2028cat >>conftest.$ac_ext <<_ACEOF
2029/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002030
2031int
2032main ()
2033{
2034
2035 ;
2036 return 0;
2037}
2038_ACEOF
2039rm -f conftest.o conftest.obj
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002041 (eval $ac_compile) 2>&5
2042 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002044 (exit $ac_status); }; then
2045 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2046 case $ac_file in
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002048 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2049 break;;
2050 esac
2051done
2052else
2053 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002054sed 's/^/| /' conftest.$ac_ext >&5
2055
2056{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2057See \`config.log' for more details." >&5
2058echo "$as_me: error: cannot compute suffix of object files: cannot compile
2059See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002060 { (exit 1); exit 1; }; }
2061fi
2062
2063rm -f conftest.$ac_cv_objext conftest.$ac_ext
2064fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002065echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002066echo "${ECHO_T}$ac_cv_objext" >&6
2067OBJEXT=$ac_cv_objext
2068ac_objext=$OBJEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002069echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002070echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2071if test "${ac_cv_c_compiler_gnu+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2073else
2074 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002075/* confdefs.h. */
2076_ACEOF
2077cat confdefs.h >>conftest.$ac_ext
2078cat >>conftest.$ac_ext <<_ACEOF
2079/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002080
2081int
2082main ()
2083{
2084#ifndef __GNUC__
2085 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002086#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002087
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002088 ;
2089 return 0;
2090}
2091_ACEOF
2092rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002094 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002095 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002096 grep -v '^ *+' conftest.er1 >conftest.err
2097 rm -f conftest.er1
2098 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002100 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103 (eval $ac_try) 2>&5
2104 ac_status=$?
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }; } &&
2107 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002109 (eval $ac_try) 2>&5
2110 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002112 (exit $ac_status); }; }; then
2113 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00002114else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002115 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002116sed 's/^/| /' conftest.$ac_ext >&5
2117
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002118ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00002119fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002121ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00002122
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002123fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002124echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002125echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2126GCC=`test $ac_compiler_gnu = yes && echo yes`
2127ac_test_CFLAGS=${CFLAGS+set}
2128ac_save_CFLAGS=$CFLAGS
2129CFLAGS="-g"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002130echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002131echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2132if test "${ac_cv_prog_cc_g+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002134else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002135 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002136/* confdefs.h. */
2137_ACEOF
2138cat confdefs.h >>conftest.$ac_ext
2139cat >>conftest.$ac_ext <<_ACEOF
2140/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002141
2142int
2143main ()
2144{
2145
2146 ;
2147 return 0;
2148}
2149_ACEOF
2150rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002152 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002153 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002154 grep -v '^ *+' conftest.er1 >conftest.err
2155 rm -f conftest.er1
2156 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002158 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161 (eval $ac_try) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; } &&
2165 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002167 (eval $ac_try) 2>&5
2168 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002170 (exit $ac_status); }; }; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002171 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002172else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002173 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002174sed 's/^/| /' conftest.$ac_ext >&5
2175
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002176ac_cv_prog_cc_g=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002177fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002179fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002180echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002181echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00002182if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002183 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00002184elif test $ac_cv_prog_cc_g = yes; then
2185 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002186 CFLAGS="-g -O2"
2187 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002188 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002189 fi
2190else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002191 if test "$GCC" = yes; then
2192 CFLAGS="-O2"
2193 else
2194 CFLAGS=
2195 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002196fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002197echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2198echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2199if test "${ac_cv_prog_cc_stdc+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2201else
2202 ac_cv_prog_cc_stdc=no
2203ac_save_CC=$CC
2204cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002205/* confdefs.h. */
2206_ACEOF
2207cat confdefs.h >>conftest.$ac_ext
2208cat >>conftest.$ac_ext <<_ACEOF
2209/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002210#include <stdarg.h>
2211#include <stdio.h>
2212#include <sys/types.h>
2213#include <sys/stat.h>
2214/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2215struct buf { int x; };
2216FILE * (*rcsopen) (struct buf *, struct stat *, int);
2217static char *e (p, i)
2218 char **p;
2219 int i;
2220{
2221 return p[i];
2222}
2223static char *f (char * (*g) (char **, int), char **p, ...)
2224{
2225 char *s;
2226 va_list v;
2227 va_start (v,p);
2228 s = g (p, va_arg (v,int));
2229 va_end (v);
2230 return s;
2231}
Alexandre Julliard875927f2004-01-02 01:55:29 +00002232
2233/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2234 function prototypes and stuff, but not '\xHH' hex character constants.
2235 These don't provoke an error unfortunately, instead are silently treated
2236 as 'x'. The following induces an error, until -std1 is added to get
2237 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2238 array size at least. It's necessary to write '\x00'==0 to get something
2239 that's true only with -std1. */
2240int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2241
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002242int test (int i, double x);
2243struct s1 {int (*f) (int a);};
2244struct s2 {int (*f) (double a);};
2245int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2246int argc;
2247char **argv;
2248int
2249main ()
2250{
2251return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2252 ;
2253 return 0;
2254}
2255_ACEOF
2256# Don't try gcc -ansi; that turns off useful extensions and
2257# breaks some systems' header files.
2258# AIX -qlanglvl=ansi
2259# Ultrix and OSF/1 -std1
2260# HP-UX 10.20 and later -Ae
2261# HP-UX older versions -Aa -D_HPUX_SOURCE
2262# SVR4 -Xc -D__EXTENSIONS__
2263for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2264do
2265 CC="$ac_save_CC $ac_arg"
2266 rm -f conftest.$ac_objext
2267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002268 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002269 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002270 grep -v '^ *+' conftest.er1 >conftest.err
2271 rm -f conftest.er1
2272 cat conftest.err >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 (eval $ac_try) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; } &&
2281 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 (eval $ac_try) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2287 ac_cv_prog_cc_stdc=$ac_arg
2288break
2289else
2290 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002291sed 's/^/| /' conftest.$ac_ext >&5
2292
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002293fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002294rm -f conftest.err conftest.$ac_objext
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002295done
2296rm -f conftest.$ac_ext conftest.$ac_objext
2297CC=$ac_save_CC
2298
2299fi
2300
2301case "x$ac_cv_prog_cc_stdc" in
2302 x|xno)
2303 echo "$as_me:$LINENO: result: none needed" >&5
2304echo "${ECHO_T}none needed" >&6 ;;
2305 *)
2306 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2307echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2308 CC="$CC $ac_cv_prog_cc_stdc" ;;
2309esac
2310
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002311# Some people use a C++ compiler to compile C. Since we use `exit',
2312# in C++ we need to declare it. In case someone uses the same compiler
2313# for both compiling C and C++ we need to have the C++ compiler decide
2314# the declaration of exit, since it's the most demanding environment.
2315cat >conftest.$ac_ext <<_ACEOF
2316#ifndef __cplusplus
2317 choke me
2318#endif
2319_ACEOF
2320rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002322 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002323 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002324 grep -v '^ *+' conftest.er1 >conftest.err
2325 rm -f conftest.er1
2326 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002328 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 (eval $ac_try) 2>&5
2332 ac_status=$?
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; } &&
2335 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002337 (eval $ac_try) 2>&5
2338 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002340 (exit $ac_status); }; }; then
2341 for ac_declaration in \
Alexandre Julliard90b1c2c2003-06-18 20:35:38 +00002342 '' \
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002343 'extern "C" void std::exit (int) throw (); using std::exit;' \
2344 'extern "C" void std::exit (int); using std::exit;' \
2345 'extern "C" void exit (int) throw ();' \
2346 'extern "C" void exit (int);' \
Alexandre Julliard90b1c2c2003-06-18 20:35:38 +00002347 'void exit (int);'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002348do
2349 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002350/* confdefs.h. */
2351_ACEOF
2352cat confdefs.h >>conftest.$ac_ext
2353cat >>conftest.$ac_ext <<_ACEOF
2354/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002355$ac_declaration
Alexandre Julliard90b1c2c2003-06-18 20:35:38 +00002356#include <stdlib.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002357int
2358main ()
2359{
2360exit (42);
2361 ;
2362 return 0;
2363}
2364_ACEOF
2365rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002367 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002368 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002369 grep -v '^ *+' conftest.er1 >conftest.err
2370 rm -f conftest.er1
2371 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002373 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 (eval $ac_try) 2>&5
2377 ac_status=$?
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; } &&
2380 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002382 (eval $ac_try) 2>&5
2383 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002385 (exit $ac_status); }; }; then
2386 :
2387else
2388 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002389sed 's/^/| /' conftest.$ac_ext >&5
2390
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002391continue
2392fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002394 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002395/* confdefs.h. */
2396_ACEOF
2397cat confdefs.h >>conftest.$ac_ext
2398cat >>conftest.$ac_ext <<_ACEOF
2399/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002400$ac_declaration
2401int
2402main ()
2403{
2404exit (42);
2405 ;
2406 return 0;
2407}
2408_ACEOF
2409rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002411 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002412 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002413 grep -v '^ *+' conftest.er1 >conftest.err
2414 rm -f conftest.er1
2415 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002417 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; } &&
2424 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002426 (eval $ac_try) 2>&5
2427 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002429 (exit $ac_status); }; }; then
2430 break
2431else
2432 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002433sed 's/^/| /' conftest.$ac_ext >&5
2434
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002435fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002437done
2438rm -f conftest*
2439if test -n "$ac_declaration"; then
2440 echo '#ifdef __cplusplus' >>confdefs.h
2441 echo $ac_declaration >>confdefs.h
2442 echo '#endif' >>confdefs.h
2443fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002444
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002445else
2446 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002447sed 's/^/| /' conftest.$ac_ext >&5
2448
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002449fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002451ac_ext=c
2452ac_cpp='$CPP $CPPFLAGS'
2453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002457ac_ext=cc
2458ac_cpp='$CXXCPP $CPPFLAGS'
2459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2462if test -n "$ac_tool_prefix"; then
2463 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2464 do
2465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2466set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2467echo "$as_me:$LINENO: checking for $ac_word" >&5
2468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2469if test "${ac_cv_prog_CXX+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2471else
2472 if test -n "$CXX"; then
2473 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2474else
2475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476for as_dir in $PATH
2477do
2478 IFS=$as_save_IFS
2479 test -z "$as_dir" && as_dir=.
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2482 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 break 2
2485 fi
2486done
2487done
2488
2489fi
2490fi
2491CXX=$ac_cv_prog_CXX
2492if test -n "$CXX"; then
2493 echo "$as_me:$LINENO: result: $CXX" >&5
2494echo "${ECHO_T}$CXX" >&6
2495else
2496 echo "$as_me:$LINENO: result: no" >&5
2497echo "${ECHO_T}no" >&6
2498fi
2499
2500 test -n "$CXX" && break
2501 done
2502fi
2503if test -z "$CXX"; then
2504 ac_ct_CXX=$CXX
2505 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2506do
2507 # Extract the first word of "$ac_prog", so it can be a program name with args.
2508set dummy $ac_prog; ac_word=$2
2509echo "$as_me:$LINENO: checking for $ac_word" >&5
2510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2511if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2513else
2514 if test -n "$ac_ct_CXX"; then
2515 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2516else
2517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518for as_dir in $PATH
2519do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2524 ac_cv_prog_ac_ct_CXX="$ac_prog"
2525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 break 2
2527 fi
2528done
2529done
2530
2531fi
2532fi
2533ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2534if test -n "$ac_ct_CXX"; then
2535 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2536echo "${ECHO_T}$ac_ct_CXX" >&6
2537else
2538 echo "$as_me:$LINENO: result: no" >&5
2539echo "${ECHO_T}no" >&6
2540fi
2541
2542 test -n "$ac_ct_CXX" && break
2543done
2544test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2545
2546 CXX=$ac_ct_CXX
2547fi
2548
2549
2550# Provide some information about the compiler.
2551echo "$as_me:$LINENO:" \
2552 "checking for C++ compiler version" >&5
2553ac_compiler=`set X $ac_compile; echo $2`
2554{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2555 (eval $ac_compiler --version </dev/null >&5) 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }
2559{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2560 (eval $ac_compiler -v </dev/null >&5) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }
2564{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2565 (eval $ac_compiler -V </dev/null >&5) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }
2569
2570echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2571echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2572if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2574else
2575 cat >conftest.$ac_ext <<_ACEOF
2576/* confdefs.h. */
2577_ACEOF
2578cat confdefs.h >>conftest.$ac_ext
2579cat >>conftest.$ac_ext <<_ACEOF
2580/* end confdefs.h. */
2581
2582int
2583main ()
2584{
2585#ifndef __GNUC__
2586 choke me
2587#endif
2588
2589 ;
2590 return 0;
2591}
2592_ACEOF
2593rm -f conftest.$ac_objext
2594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595 (eval $ac_compile) 2>conftest.er1
2596 ac_status=$?
2597 grep -v '^ *+' conftest.er1 >conftest.err
2598 rm -f conftest.er1
2599 cat conftest.err >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); } &&
2602 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 (eval $ac_try) 2>&5
2605 ac_status=$?
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; } &&
2608 { ac_try='test -s conftest.$ac_objext'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; }; then
2614 ac_compiler_gnu=yes
2615else
2616 echo "$as_me: failed program was:" >&5
2617sed 's/^/| /' conftest.$ac_ext >&5
2618
2619ac_compiler_gnu=no
2620fi
2621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2623
2624fi
2625echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2626echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2627GXX=`test $ac_compiler_gnu = yes && echo yes`
2628ac_test_CXXFLAGS=${CXXFLAGS+set}
2629ac_save_CXXFLAGS=$CXXFLAGS
2630CXXFLAGS="-g"
2631echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2632echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2633if test "${ac_cv_prog_cxx_g+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2635else
2636 cat >conftest.$ac_ext <<_ACEOF
2637/* confdefs.h. */
2638_ACEOF
2639cat confdefs.h >>conftest.$ac_ext
2640cat >>conftest.$ac_ext <<_ACEOF
2641/* end confdefs.h. */
2642
2643int
2644main ()
2645{
2646
2647 ;
2648 return 0;
2649}
2650_ACEOF
2651rm -f conftest.$ac_objext
2652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653 (eval $ac_compile) 2>conftest.er1
2654 ac_status=$?
2655 grep -v '^ *+' conftest.er1 >conftest.err
2656 rm -f conftest.er1
2657 cat conftest.err >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } &&
2660 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 (eval $ac_try) 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; } &&
2666 { ac_try='test -s conftest.$ac_objext'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 (eval $ac_try) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2672 ac_cv_prog_cxx_g=yes
2673else
2674 echo "$as_me: failed program was:" >&5
2675sed 's/^/| /' conftest.$ac_ext >&5
2676
2677ac_cv_prog_cxx_g=no
2678fi
2679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680fi
2681echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2682echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2683if test "$ac_test_CXXFLAGS" = set; then
2684 CXXFLAGS=$ac_save_CXXFLAGS
2685elif test $ac_cv_prog_cxx_g = yes; then
2686 if test "$GXX" = yes; then
2687 CXXFLAGS="-g -O2"
2688 else
2689 CXXFLAGS="-g"
2690 fi
2691else
2692 if test "$GXX" = yes; then
2693 CXXFLAGS="-O2"
2694 else
2695 CXXFLAGS=
2696 fi
2697fi
2698for ac_declaration in \
2699 '' \
2700 'extern "C" void std::exit (int) throw (); using std::exit;' \
2701 'extern "C" void std::exit (int); using std::exit;' \
2702 'extern "C" void exit (int) throw ();' \
2703 'extern "C" void exit (int);' \
2704 'void exit (int);'
2705do
2706 cat >conftest.$ac_ext <<_ACEOF
2707/* confdefs.h. */
2708_ACEOF
2709cat confdefs.h >>conftest.$ac_ext
2710cat >>conftest.$ac_ext <<_ACEOF
2711/* end confdefs.h. */
2712$ac_declaration
2713#include <stdlib.h>
2714int
2715main ()
2716{
2717exit (42);
2718 ;
2719 return 0;
2720}
2721_ACEOF
2722rm -f conftest.$ac_objext
2723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2724 (eval $ac_compile) 2>conftest.er1
2725 ac_status=$?
2726 grep -v '^ *+' conftest.er1 >conftest.err
2727 rm -f conftest.er1
2728 cat conftest.err >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); } &&
2731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733 (eval $ac_try) 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; } &&
2737 { ac_try='test -s conftest.$ac_objext'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 (eval $ac_try) 2>&5
2740 ac_status=$?
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; }; then
2743 :
2744else
2745 echo "$as_me: failed program was:" >&5
2746sed 's/^/| /' conftest.$ac_ext >&5
2747
2748continue
2749fi
2750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2751 cat >conftest.$ac_ext <<_ACEOF
2752/* confdefs.h. */
2753_ACEOF
2754cat confdefs.h >>conftest.$ac_ext
2755cat >>conftest.$ac_ext <<_ACEOF
2756/* end confdefs.h. */
2757$ac_declaration
2758int
2759main ()
2760{
2761exit (42);
2762 ;
2763 return 0;
2764}
2765_ACEOF
2766rm -f conftest.$ac_objext
2767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768 (eval $ac_compile) 2>conftest.er1
2769 ac_status=$?
2770 grep -v '^ *+' conftest.er1 >conftest.err
2771 rm -f conftest.er1
2772 cat conftest.err >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
2775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 (eval $ac_try) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; } &&
2781 { ac_try='test -s conftest.$ac_objext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2787 break
2788else
2789 echo "$as_me: failed program was:" >&5
2790sed 's/^/| /' conftest.$ac_ext >&5
2791
2792fi
2793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794done
2795rm -f conftest*
2796if test -n "$ac_declaration"; then
2797 echo '#ifdef __cplusplus' >>confdefs.h
2798 echo $ac_declaration >>confdefs.h
2799 echo '#endif' >>confdefs.h
2800fi
2801
2802ac_ext=c
2803ac_cpp='$CPP $CPPFLAGS'
2804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002808if test -n "$ac_tool_prefix"; then
2809 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
2810set dummy ${ac_tool_prefix}cpp; ac_word=$2
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002811echo "$as_me:$LINENO: checking for $ac_word" >&5
2812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002813if test "${ac_cv_prog_CPPBIN+set}" = set; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002816 if test -n "$CPPBIN"; then
2817 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002818else
2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH
2821do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002826 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830done
2831done
2832
2833fi
2834fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002835CPPBIN=$ac_cv_prog_CPPBIN
2836if test -n "$CPPBIN"; then
2837 echo "$as_me:$LINENO: result: $CPPBIN" >&5
2838echo "${ECHO_T}$CPPBIN" >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002839else
2840 echo "$as_me:$LINENO: result: no" >&5
2841echo "${ECHO_T}no" >&6
2842fi
2843
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002844fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002845if test -z "$ac_cv_prog_CPPBIN"; then
2846 ac_ct_CPPBIN=$CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002847 # Extract the first word of "cpp", so it can be a program name with args.
2848set dummy cpp; ac_word=$2
2849echo "$as_me:$LINENO: checking for $ac_word" >&5
2850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002851if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002852 echo $ECHO_N "(cached) $ECHO_C" >&6
2853else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002854 if test -n "$ac_ct_CPPBIN"; then
2855 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002856else
2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858for as_dir in $PATH
2859do
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002864 ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 break 2
2867 fi
2868done
2869done
2870
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002871 test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002872fi
2873fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002874ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
2875if test -n "$ac_ct_CPPBIN"; then
2876 echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
2877echo "${ECHO_T}$ac_ct_CPPBIN" >&6
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002878else
2879 echo "$as_me:$LINENO: result: no" >&5
2880echo "${ECHO_T}no" >&6
2881fi
2882
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002883 CPPBIN=$ac_ct_CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002884else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002885 CPPBIN="$ac_cv_prog_CPPBIN"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002886fi
2887
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002888
2889echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2890echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2891if test "${wine_cv_toolsdir+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2893else
2894 if test -z "$with_wine_tools"; then
2895 if test "$cross_compiling" = "yes"; then
2896 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2897echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2898 { (exit 1); exit 1; }; }
2899 else
2900 wine_cv_toolsdir="\$(TOPOBJDIR)"
2901 fi
2902 elif test -d "$with_wine_tools/tools/winebuild"; then
2903 case $with_wine_tools in
2904 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2905 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2906 esac
2907 else
2908 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2909echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2910 { (exit 1); exit 1; }; }
2911 fi
2912fi
2913echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2914echo "${ECHO_T}$wine_cv_toolsdir" >&6
2915TOOLSDIR=$wine_cv_toolsdir
2916
2917
2918
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002919ac_ext=c
2920ac_cpp='$CPP $CPPFLAGS'
2921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002924echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002925echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002926# On Suns, sometimes $CPP names a directory.
2927if test -n "$CPP" && test -d "$CPP"; then
2928 CPP=
2929fi
2930if test -z "$CPP"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002931 if test "${ac_cv_prog_CPP+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002933else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002934 # Double quotes because CPP needs to be expanded
2935 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2936 do
2937 ac_preproc_ok=false
2938for ac_c_preproc_warn_flag in '' yes
2939do
2940 # Use a header file that comes with gcc, so configuring glibc
2941 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2943 # <limits.h> exists even on freestanding compilers.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002944 # On the NeXT, cc -E runs the code through the compiler's parser,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002945 # not just through cpp. "Syntax error" is here to catch this case.
2946 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002947/* confdefs.h. */
2948_ACEOF
2949cat confdefs.h >>conftest.$ac_ext
2950cat >>conftest.$ac_ext <<_ACEOF
2951/* end confdefs.h. */
2952#ifdef __STDC__
2953# include <limits.h>
2954#else
2955# include <assert.h>
2956#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00002957 Syntax error
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002958_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002959if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2961 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002962 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002963 rm -f conftest.er1
2964 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002966 (exit $ac_status); } >/dev/null; then
2967 if test -s conftest.err; then
2968 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00002969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002970 else
2971 ac_cpp_err=
2972 fi
2973else
2974 ac_cpp_err=yes
2975fi
2976if test -z "$ac_cpp_err"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002977 :
2978else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002979 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002980sed 's/^/| /' conftest.$ac_ext >&5
2981
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002982 # Broken: fails on valid input.
2983continue
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002984fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002985rm -f conftest.err conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002986
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002987 # OK, works on sane cases. Now check whether non-existent headers
2988 # can be detected and how.
2989 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002990/* confdefs.h. */
2991_ACEOF
2992cat confdefs.h >>conftest.$ac_ext
2993cat >>conftest.$ac_ext <<_ACEOF
2994/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002995#include <ac_nonexistent.h>
2996_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002997if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2999 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003000 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003001 rm -f conftest.er1
3002 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003004 (exit $ac_status); } >/dev/null; then
3005 if test -s conftest.err; then
3006 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003008 else
3009 ac_cpp_err=
3010 fi
3011else
3012 ac_cpp_err=yes
3013fi
3014if test -z "$ac_cpp_err"; then
3015 # Broken: success on invalid input.
3016continue
3017else
3018 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003019sed 's/^/| /' conftest.$ac_ext >&5
3020
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003021 # Passes both tests.
3022ac_preproc_ok=:
3023break
3024fi
3025rm -f conftest.err conftest.$ac_ext
3026
3027done
3028# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3029rm -f conftest.err conftest.$ac_ext
3030if $ac_preproc_ok; then
3031 break
3032fi
3033
3034 done
3035 ac_cv_prog_CPP=$CPP
3036
3037fi
3038 CPP=$ac_cv_prog_CPP
3039else
3040 ac_cv_prog_CPP=$CPP
3041fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003042echo "$as_me:$LINENO: result: $CPP" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003043echo "${ECHO_T}$CPP" >&6
3044ac_preproc_ok=false
3045for ac_c_preproc_warn_flag in '' yes
3046do
3047 # Use a header file that comes with gcc, so configuring glibc
3048 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3050 # <limits.h> exists even on freestanding compilers.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003051 # On the NeXT, cc -E runs the code through the compiler's parser,
3052 # not just through cpp. "Syntax error" is here to catch this case.
3053 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003054/* confdefs.h. */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
3058/* end confdefs.h. */
3059#ifdef __STDC__
3060# include <limits.h>
3061#else
3062# include <assert.h>
3063#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003064 Syntax error
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003065_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003066if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3068 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003069 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003070 rm -f conftest.er1
3071 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003073 (exit $ac_status); } >/dev/null; then
3074 if test -s conftest.err; then
3075 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003077 else
3078 ac_cpp_err=
3079 fi
3080else
3081 ac_cpp_err=yes
3082fi
3083if test -z "$ac_cpp_err"; then
3084 :
3085else
3086 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003087sed 's/^/| /' conftest.$ac_ext >&5
3088
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003089 # Broken: fails on valid input.
3090continue
3091fi
3092rm -f conftest.err conftest.$ac_ext
3093
3094 # OK, works on sane cases. Now check whether non-existent headers
3095 # can be detected and how.
3096 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003097/* confdefs.h. */
3098_ACEOF
3099cat confdefs.h >>conftest.$ac_ext
3100cat >>conftest.$ac_ext <<_ACEOF
3101/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003102#include <ac_nonexistent.h>
3103_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003104if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3106 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003107 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003108 rm -f conftest.er1
3109 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003111 (exit $ac_status); } >/dev/null; then
3112 if test -s conftest.err; then
3113 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003115 else
3116 ac_cpp_err=
3117 fi
3118else
3119 ac_cpp_err=yes
3120fi
3121if test -z "$ac_cpp_err"; then
3122 # Broken: success on invalid input.
3123continue
3124else
3125 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003126sed 's/^/| /' conftest.$ac_ext >&5
3127
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003128 # Passes both tests.
3129ac_preproc_ok=:
3130break
3131fi
3132rm -f conftest.err conftest.$ac_ext
3133
3134done
3135# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3136rm -f conftest.err conftest.$ac_ext
3137if $ac_preproc_ok; then
3138 :
3139else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003140 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3141See \`config.log' for more details." >&5
3142echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3143See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003144 { (exit 1); exit 1; }; }
3145fi
3146
3147ac_ext=c
3148ac_cpp='$CPP $CPPFLAGS'
3149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151ac_compiler_gnu=$ac_cv_c_compiler_gnu
3152
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003153
Eric Pouech800864a2004-04-05 22:21:27 +00003154
3155if test "x$ac_path_x_has_been_run" != xyes; then
3156 echo "$as_me:$LINENO: checking for X" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003157echo $ECHO_N "checking for X... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003158
Eric Pouech800864a2004-04-05 22:21:27 +00003159ac_path_x_has_been_run=yes
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003160
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003161# Check whether --with-x or --without-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003162if test "${with_x+set}" = set; then
3163 withval="$with_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003164
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003165fi;
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003166# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003167if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003168 # The user explicitly disabled X.
3169 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003170else
3171 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003172 # Both variables are already set.
3173 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003174 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003175 if test "${ac_cv_have_x+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003177else
3178 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003179ac_x_includes=no ac_x_libraries=no
3180rm -fr conftest.dir
3181if mkdir conftest.dir; then
3182 cd conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003183 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003184 cat >Imakefile <<'_ACEOF'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003185acfindx:
3186 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003187_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003188 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003189 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003190 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003191 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3192 for ac_extension in a so sl; do
3193 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003194 test -f $ac_im_libdir/libX11.$ac_extension; then
3195 ac_im_usrlibdir=$ac_im_libdir; break
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003196 fi
3197 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003198 # Screen out bogus values from the imake configuration. They are
3199 # bogus both because they are the default anyway, and because
3200 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003201 case $ac_im_incroot in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003202 /usr/include) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003203 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003204 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003205 case $ac_im_usrlibdir in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003206 /usr/lib | /lib) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003207 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003208 esac
3209 fi
3210 cd ..
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003211 rm -fr conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003212fi
3213
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003214# Standard set of common directories for X headers.
3215# Check X11 before X11Rn because it is often a symlink to the current release.
3216ac_x_header_dirs='
3217/usr/X11/include
3218/usr/X11R6/include
3219/usr/X11R5/include
3220/usr/X11R4/include
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003221
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003222/usr/include/X11
3223/usr/include/X11R6
3224/usr/include/X11R5
3225/usr/include/X11R4
3226
3227/usr/local/X11/include
3228/usr/local/X11R6/include
3229/usr/local/X11R5/include
3230/usr/local/X11R4/include
3231
3232/usr/local/include/X11
3233/usr/local/include/X11R6
3234/usr/local/include/X11R5
3235/usr/local/include/X11R4
3236
3237/usr/X386/include
3238/usr/x386/include
3239/usr/XFree86/include/X11
3240
3241/usr/include
3242/usr/local/include
3243/usr/unsupported/include
3244/usr/athena/include
3245/usr/local/x11r5/include
3246/usr/lpp/Xamples/include
3247
3248/usr/openwin/include
3249/usr/openwin/share/include'
3250
3251if test "$ac_x_includes" = no; then
Eric Pouech800864a2004-04-05 22:21:27 +00003252 # Guess where to find include files, by looking for a specified header file.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003253 # First, try using that file with no special directory specified.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003254 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003255/* confdefs.h. */
3256_ACEOF
3257cat confdefs.h >>conftest.$ac_ext
3258cat >>conftest.$ac_ext <<_ACEOF
3259/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003260#include <X11/Intrinsic.h>
3261_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003262if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3264 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003265 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003266 rm -f conftest.er1
3267 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003269 (exit $ac_status); } >/dev/null; then
3270 if test -s conftest.err; then
3271 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003273 else
3274 ac_cpp_err=
3275 fi
3276else
3277 ac_cpp_err=yes
3278fi
3279if test -z "$ac_cpp_err"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003280 # We can compile using X headers with no special include directory.
3281ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003282else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003283 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003284sed 's/^/| /' conftest.$ac_ext >&5
3285
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003286 for ac_dir in $ac_x_header_dirs; do
3287 if test -r "$ac_dir/X11/Intrinsic.h"; then
3288 ac_x_includes=$ac_dir
3289 break
3290 fi
3291done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003292fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003293rm -f conftest.err conftest.$ac_ext
3294fi # $ac_x_includes = no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003295
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003296if test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003297 # Check for the libraries.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003298 # See if we find them without any special options.
3299 # Don't add to $LIBS permanently.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003300 ac_save_LIBS=$LIBS
3301 LIBS="-lXt $LIBS"
3302 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003303/* confdefs.h. */
3304_ACEOF
3305cat confdefs.h >>conftest.$ac_ext
3306cat >>conftest.$ac_ext <<_ACEOF
3307/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003308#include <X11/Intrinsic.h>
3309int
3310main ()
3311{
3312XtMalloc (0)
3313 ;
3314 return 0;
3315}
3316_ACEOF
3317rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003319 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003320 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003321 grep -v '^ *+' conftest.er1 >conftest.err
3322 rm -f conftest.er1
3323 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003325 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328 (eval $ac_try) 2>&5
3329 ac_status=$?
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; } &&
3332 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003334 (eval $ac_try) 2>&5
3335 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003337 (exit $ac_status); }; }; then
3338 LIBS=$ac_save_LIBS
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003339# We can link X programs with no special library path.
3340ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003341else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003342 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003343sed 's/^/| /' conftest.$ac_ext >&5
3344
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003345LIBS=$ac_save_LIBS
3346for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003347do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003348 # Don't even attempt the hair of trying to link an X program!
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003349 for ac_extension in a so sl; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003350 if test -r $ac_dir/libXt.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003351 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003352 break 2
3353 fi
3354 done
3355done
3356fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003357rm -f conftest.err conftest.$ac_objext \
3358 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003359fi # $ac_x_libraries = no
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003360
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003361if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003362 # Didn't find X anywhere. Cache the known absence of X.
3363 ac_cv_have_x="have_x=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003364else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003365 # Record where we found X for the cache.
3366 ac_cv_have_x="have_x=yes \
Alexandre Julliard875927f2004-01-02 01:55:29 +00003367 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003368fi
3369fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003370
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003371 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003372 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003373fi # $with_x != no
3374
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003375if test "$have_x" != yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003376 echo "$as_me:$LINENO: result: $have_x" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003377echo "${ECHO_T}$have_x" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003378 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003379else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003380 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003381 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3382 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003383 # Update the cache value to reflect the command line values.
3384 ac_cv_have_x="have_x=yes \
3385 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Eric Pouech800864a2004-04-05 22:21:27 +00003386 # It might be that x_includes is empty (headers are found in the
3387 # standard search path. Then output the corresponding message
3388 ac_out_x_includes=$x_includes
3389 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3390 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3391echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003392fi
3393
Eric Pouech800864a2004-04-05 22:21:27 +00003394fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003395if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003396 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003397
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003398cat >>confdefs.h <<\_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003399#define X_DISPLAY_MISSING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003400_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003401
3402 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003403else
3404 if test -n "$x_includes"; then
3405 X_CFLAGS="$X_CFLAGS -I$x_includes"
3406 fi
3407
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003408 # It would also be nice to do this for all -L options, not just this one.
3409 if test -n "$x_libraries"; then
3410 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003411 # For Solaris; some versions of Sun CC require a space after -R and
3412 # others require no space. Words are not sufficient . . . .
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003413 case `(uname -sr) 2>/dev/null` in
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003414 "SunOS 5"*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003415 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003416echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3417 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3418 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003419/* confdefs.h. */
3420_ACEOF
3421cat confdefs.h >>conftest.$ac_ext
3422cat >>conftest.$ac_ext <<_ACEOF
3423/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003424
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003425int
3426main ()
3427{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003428
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003429 ;
3430 return 0;
3431}
3432_ACEOF
3433rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003435 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003436 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003437 grep -v '^ *+' conftest.er1 >conftest.err
3438 rm -f conftest.er1
3439 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003441 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; } &&
3448 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003450 (eval $ac_try) 2>&5
3451 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003453 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003454 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003455else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003456 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003457sed 's/^/| /' conftest.$ac_ext >&5
3458
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003459ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003460fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003461rm -f conftest.err conftest.$ac_objext \
3462 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003463 if test $ac_R_nospace = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003464 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003465echo "${ECHO_T}no" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003466 X_LIBS="$X_LIBS -R$x_libraries"
3467 else
3468 LIBS="$ac_xsave_LIBS -R $x_libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003469 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003470/* confdefs.h. */
3471_ACEOF
3472cat confdefs.h >>conftest.$ac_ext
3473cat >>conftest.$ac_ext <<_ACEOF
3474/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003475
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003476int
3477main ()
3478{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003479
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003480 ;
3481 return 0;
3482}
3483_ACEOF
3484rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003486 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003487 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003492 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495 (eval $ac_try) 2>&5
3496 ac_status=$?
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; } &&
3499 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003501 (eval $ac_try) 2>&5
3502 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003504 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003505 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003506else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003507 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003508sed 's/^/| /' conftest.$ac_ext >&5
3509
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003510ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003511fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003512rm -f conftest.err conftest.$ac_objext \
3513 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003514 if test $ac_R_space = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003515 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003516echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003517 X_LIBS="$X_LIBS -R $x_libraries"
3518 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003519 echo "$as_me:$LINENO: result: neither works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003520echo "${ECHO_T}neither works" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003521 fi
3522 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003523 LIBS=$ac_xsave_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003524 esac
3525 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003526
3527 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003528 # Do this before checking for the system-independent R6 libraries
3529 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003530
3531 if test "$ISC" = yes; then
3532 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3533 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003534 # Martyn Johnson says this is needed for Ultrix, if the X
3535 # libraries were built with DECnet support. And Karl Berry says
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003536 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003537 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3538 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003539/* confdefs.h. */
3540_ACEOF
3541cat confdefs.h >>conftest.$ac_ext
3542cat >>conftest.$ac_ext <<_ACEOF
3543/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003544
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003545/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003546#ifdef __cplusplus
3547extern "C"
3548#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003549/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003550 builtin and then its argument prototype would still apply. */
3551char XOpenDisplay ();
3552int
3553main ()
3554{
3555XOpenDisplay ();
3556 ;
3557 return 0;
3558}
3559_ACEOF
3560rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003562 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003563 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003568 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 (eval $ac_try) 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; } &&
3575 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003577 (eval $ac_try) 2>&5
3578 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003580 (exit $ac_status); }; }; then
3581 :
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003582else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003583 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003584sed 's/^/| /' conftest.$ac_ext >&5
3585
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003586echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003587echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3588if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3590else
3591 ac_check_lib_save_LIBS=$LIBS
3592LIBS="-ldnet $LIBS"
3593cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003594/* confdefs.h. */
3595_ACEOF
3596cat confdefs.h >>conftest.$ac_ext
3597cat >>conftest.$ac_ext <<_ACEOF
3598/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003599
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003600/* Override any gcc2 internal prototype to avoid an error. */
3601#ifdef __cplusplus
3602extern "C"
3603#endif
3604/* We use char because int might match the return type of a gcc2
3605 builtin and then its argument prototype would still apply. */
3606char dnet_ntoa ();
3607int
3608main ()
3609{
3610dnet_ntoa ();
3611 ;
3612 return 0;
3613}
3614_ACEOF
3615rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003617 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003618 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003619 grep -v '^ *+' conftest.er1 >conftest.err
3620 rm -f conftest.er1
3621 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003623 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 (eval $ac_try) 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; } &&
3630 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003632 (eval $ac_try) 2>&5
3633 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003635 (exit $ac_status); }; }; then
3636 ac_cv_lib_dnet_dnet_ntoa=yes
3637else
3638 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003639sed 's/^/| /' conftest.$ac_ext >&5
3640
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003641ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003642fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003643rm -f conftest.err conftest.$ac_objext \
3644 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003645LIBS=$ac_check_lib_save_LIBS
3646fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003647echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003648echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3649if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003650 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003651fi
3652
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003653 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003654 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003655echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3656if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003658else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003659 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003660LIBS="-ldnet_stub $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003661cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003662/* confdefs.h. */
3663_ACEOF
3664cat confdefs.h >>conftest.$ac_ext
3665cat >>conftest.$ac_ext <<_ACEOF
3666/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003667
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003668/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003669#ifdef __cplusplus
3670extern "C"
3671#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003672/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003673 builtin and then its argument prototype would still apply. */
3674char dnet_ntoa ();
3675int
3676main ()
3677{
3678dnet_ntoa ();
3679 ;
3680 return 0;
3681}
3682_ACEOF
3683rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003685 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003686 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003687 grep -v '^ *+' conftest.er1 >conftest.err
3688 rm -f conftest.er1
3689 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003691 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; } &&
3698 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003700 (eval $ac_try) 2>&5
3701 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003703 (exit $ac_status); }; }; then
3704 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003705else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003706 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003707sed 's/^/| /' conftest.$ac_ext >&5
3708
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003709ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003710fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003711rm -f conftest.err conftest.$ac_objext \
3712 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003713LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003714fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003715echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003716echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3717if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003718 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003719fi
3720
3721 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003722fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003723rm -f conftest.err conftest.$ac_objext \
3724 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003725 LIBS="$ac_xsave_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003726
3727 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3728 # to get the SysV transport functions.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003729 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003730 # needs -lnsl.
3731 # The nsl library prevents programs from opening the X display
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003732 # on Irix 5.2, according to T.E. Dickey.
3733 # The functions gethostbyname, getservbyname, and inet_addr are
3734 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003735 echo "$as_me:$LINENO: checking for gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003736echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3737if test "${ac_cv_func_gethostbyname+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003739else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003740 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003741/* confdefs.h. */
3742_ACEOF
3743cat confdefs.h >>conftest.$ac_ext
3744cat >>conftest.$ac_ext <<_ACEOF
3745/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003746/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3748#define gethostbyname innocuous_gethostbyname
3749
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003750/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003751 which can conflict with char gethostbyname (); below.
3752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3753 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003754
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003755#ifdef __STDC__
3756# include <limits.h>
3757#else
3758# include <assert.h>
3759#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003760
3761#undef gethostbyname
3762
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003763/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003764#ifdef __cplusplus
3765extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003766{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003767#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003768/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003769 builtin and then its argument prototype would still apply. */
3770char gethostbyname ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003771/* The GNU C library defines this for functions which it implements
3772 to always fail with ENOSYS. Some functions are actually named
3773 something starting with __ and the normal name is an alias. */
3774#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3775choke me
3776#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003777char (*f) () = gethostbyname;
3778#endif
3779#ifdef __cplusplus
3780}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003781#endif
3782
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003783int
3784main ()
3785{
3786return f != gethostbyname;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003787 ;
3788 return 0;
3789}
3790_ACEOF
3791rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003793 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003794 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003795 grep -v '^ *+' conftest.er1 >conftest.err
3796 rm -f conftest.er1
3797 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003799 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 (eval $ac_try) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; } &&
3806 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003808 (eval $ac_try) 2>&5
3809 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003811 (exit $ac_status); }; }; then
3812 ac_cv_func_gethostbyname=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003813else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003814 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003815sed 's/^/| /' conftest.$ac_ext >&5
3816
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003817ac_cv_func_gethostbyname=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003818fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003819rm -f conftest.err conftest.$ac_objext \
3820 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003821fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003822echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003823echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003824
3825 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003826 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003827echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3828if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003830else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003831 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003832LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003833cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003834/* confdefs.h. */
3835_ACEOF
3836cat confdefs.h >>conftest.$ac_ext
3837cat >>conftest.$ac_ext <<_ACEOF
3838/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003839
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003840/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003841#ifdef __cplusplus
3842extern "C"
3843#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003844/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003845 builtin and then its argument prototype would still apply. */
3846char gethostbyname ();
3847int
3848main ()
3849{
3850gethostbyname ();
3851 ;
3852 return 0;
3853}
3854_ACEOF
3855rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003857 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003858 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003863 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3866 (eval $ac_try) 2>&5
3867 ac_status=$?
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; } &&
3870 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003872 (eval $ac_try) 2>&5
3873 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003875 (exit $ac_status); }; }; then
3876 ac_cv_lib_nsl_gethostbyname=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003877else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003878 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003879sed 's/^/| /' conftest.$ac_ext >&5
3880
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003881ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003882fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003883rm -f conftest.err conftest.$ac_objext \
3884 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003885LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003886fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003887echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003888echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3889if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003890 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003891fi
3892
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003893 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00003894 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003895echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3896if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898else
3899 ac_check_lib_save_LIBS=$LIBS
3900LIBS="-lbsd $LIBS"
3901cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003902/* confdefs.h. */
3903_ACEOF
3904cat confdefs.h >>conftest.$ac_ext
3905cat >>conftest.$ac_ext <<_ACEOF
3906/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003907
3908/* Override any gcc2 internal prototype to avoid an error. */
3909#ifdef __cplusplus
3910extern "C"
3911#endif
3912/* We use char because int might match the return type of a gcc2
3913 builtin and then its argument prototype would still apply. */
3914char gethostbyname ();
3915int
3916main ()
3917{
3918gethostbyname ();
3919 ;
3920 return 0;
3921}
3922_ACEOF
3923rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003925 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003926 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003927 grep -v '^ *+' conftest.er1 >conftest.err
3928 rm -f conftest.er1
3929 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003931 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 (eval $ac_try) 2>&5
3935 ac_status=$?
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; } &&
3938 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003940 (eval $ac_try) 2>&5
3941 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003943 (exit $ac_status); }; }; then
3944 ac_cv_lib_bsd_gethostbyname=yes
3945else
3946 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003947sed 's/^/| /' conftest.$ac_ext >&5
3948
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003949ac_cv_lib_bsd_gethostbyname=no
3950fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003951rm -f conftest.err conftest.$ac_objext \
3952 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003953LIBS=$ac_check_lib_save_LIBS
3954fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003955echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003956echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3957if test $ac_cv_lib_bsd_gethostbyname = yes; then
3958 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3959fi
3960
3961 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003962 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003963
3964 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003965 # socket/setsockopt and other routines are undefined under SCO ODT
3966 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003967 # on later versions), says Simon Leinen: it contains gethostby*
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003968 # variants that don't use the name server (or something). -lsocket
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003969 # must be given before -lnsl if both are needed. We assume that
3970 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003971 echo "$as_me:$LINENO: checking for connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003972echo $ECHO_N "checking for connect... $ECHO_C" >&6
3973if test "${ac_cv_func_connect+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003975else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003976 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003977/* confdefs.h. */
3978_ACEOF
3979cat confdefs.h >>conftest.$ac_ext
3980cat >>conftest.$ac_ext <<_ACEOF
3981/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003982/* Define connect to an innocuous variant, in case <limits.h> declares connect.
3983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3984#define connect innocuous_connect
3985
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003986/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003987 which can conflict with char connect (); below.
3988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3989 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003990
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003991#ifdef __STDC__
3992# include <limits.h>
3993#else
3994# include <assert.h>
3995#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003996
3997#undef connect
3998
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003999/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004000#ifdef __cplusplus
4001extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004002{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004003#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004004/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004005 builtin and then its argument prototype would still apply. */
4006char connect ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004007/* The GNU C library defines this for functions which it implements
4008 to always fail with ENOSYS. Some functions are actually named
4009 something starting with __ and the normal name is an alias. */
4010#if defined (__stub_connect) || defined (__stub___connect)
4011choke me
4012#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004013char (*f) () = connect;
4014#endif
4015#ifdef __cplusplus
4016}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004017#endif
4018
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004019int
4020main ()
4021{
4022return f != connect;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004023 ;
4024 return 0;
4025}
4026_ACEOF
4027rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004029 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004030 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004035 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 (eval $ac_try) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; } &&
4042 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004044 (eval $ac_try) 2>&5
4045 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004047 (exit $ac_status); }; }; then
4048 ac_cv_func_connect=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004049else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004050 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004051sed 's/^/| /' conftest.$ac_ext >&5
4052
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004053ac_cv_func_connect=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004054fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004055rm -f conftest.err conftest.$ac_objext \
4056 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004057fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004058echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004059echo "${ECHO_T}$ac_cv_func_connect" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004060
4061 if test $ac_cv_func_connect = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004062 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004063echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4064if test "${ac_cv_lib_socket_connect+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004066else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004067 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004068LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004069cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004070/* confdefs.h. */
4071_ACEOF
4072cat confdefs.h >>conftest.$ac_ext
4073cat >>conftest.$ac_ext <<_ACEOF
4074/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004075
Alexandre Julliard59730ae1996-03-24 16:20:51 +00004076/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004077#ifdef __cplusplus
4078extern "C"
4079#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004080/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004081 builtin and then its argument prototype would still apply. */
4082char connect ();
4083int
4084main ()
4085{
4086connect ();
4087 ;
4088 return 0;
4089}
4090_ACEOF
4091rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004093 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004094 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004095 grep -v '^ *+' conftest.er1 >conftest.err
4096 rm -f conftest.er1
4097 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004099 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 (eval $ac_try) 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; } &&
4106 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004108 (eval $ac_try) 2>&5
4109 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004111 (exit $ac_status); }; }; then
4112 ac_cv_lib_socket_connect=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004113else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004114 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004115sed 's/^/| /' conftest.$ac_ext >&5
4116
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004117ac_cv_lib_socket_connect=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004118fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004119rm -f conftest.err conftest.$ac_objext \
4120 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004121LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004122fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004123echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004124echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4125if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004126 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004127fi
4128
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004129 fi
4130
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004131 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004132 echo "$as_me:$LINENO: checking for remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004133echo $ECHO_N "checking for remove... $ECHO_C" >&6
4134if test "${ac_cv_func_remove+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004136else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004137 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004138/* confdefs.h. */
4139_ACEOF
4140cat confdefs.h >>conftest.$ac_ext
4141cat >>conftest.$ac_ext <<_ACEOF
4142/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004143/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4145#define remove innocuous_remove
4146
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004147/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004148 which can conflict with char remove (); below.
4149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4150 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004151
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004152#ifdef __STDC__
4153# include <limits.h>
4154#else
4155# include <assert.h>
4156#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004157
4158#undef remove
4159
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004160/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004161#ifdef __cplusplus
4162extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004163{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004164#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004165/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004166 builtin and then its argument prototype would still apply. */
4167char remove ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004168/* The GNU C library defines this for functions which it implements
4169 to always fail with ENOSYS. Some functions are actually named
4170 something starting with __ and the normal name is an alias. */
4171#if defined (__stub_remove) || defined (__stub___remove)
4172choke me
4173#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004174char (*f) () = remove;
4175#endif
4176#ifdef __cplusplus
4177}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004178#endif
4179
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004180int
4181main ()
4182{
4183return f != remove;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004184 ;
4185 return 0;
4186}
4187_ACEOF
4188rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004190 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004191 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004192 grep -v '^ *+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004196 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 (eval $ac_try) 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; } &&
4203 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004205 (eval $ac_try) 2>&5
4206 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004208 (exit $ac_status); }; }; then
4209 ac_cv_func_remove=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004210else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004211 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004212sed 's/^/| /' conftest.$ac_ext >&5
4213
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004214ac_cv_func_remove=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004215fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004216rm -f conftest.err conftest.$ac_objext \
4217 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004218fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004219echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004220echo "${ECHO_T}$ac_cv_func_remove" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004221
4222 if test $ac_cv_func_remove = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004223 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004224echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4225if test "${ac_cv_lib_posix_remove+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004227else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004228 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004229LIBS="-lposix $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004230cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004231/* confdefs.h. */
4232_ACEOF
4233cat confdefs.h >>conftest.$ac_ext
4234cat >>conftest.$ac_ext <<_ACEOF
4235/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004236
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004237/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004238#ifdef __cplusplus
4239extern "C"
4240#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004241/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004242 builtin and then its argument prototype would still apply. */
4243char remove ();
4244int
4245main ()
4246{
4247remove ();
4248 ;
4249 return 0;
4250}
4251_ACEOF
4252rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004254 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004255 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004256 grep -v '^ *+' conftest.er1 >conftest.err
4257 rm -f conftest.er1
4258 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004260 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263 (eval $ac_try) 2>&5
4264 ac_status=$?
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; } &&
4267 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004269 (eval $ac_try) 2>&5
4270 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004272 (exit $ac_status); }; }; then
4273 ac_cv_lib_posix_remove=yes
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004274else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004275 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004276sed 's/^/| /' conftest.$ac_ext >&5
4277
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004278ac_cv_lib_posix_remove=no
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004279fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004280rm -f conftest.err conftest.$ac_objext \
4281 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004282LIBS=$ac_check_lib_save_LIBS
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004283fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004284echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004285echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4286if test $ac_cv_lib_posix_remove = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004287 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004288fi
4289
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004290 fi
4291
4292 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004293 echo "$as_me:$LINENO: checking for shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004294echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4295if test "${ac_cv_func_shmat+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004297else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004298 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004299/* confdefs.h. */
4300_ACEOF
4301cat confdefs.h >>conftest.$ac_ext
4302cat >>conftest.$ac_ext <<_ACEOF
4303/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004304/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4306#define shmat innocuous_shmat
4307
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004308/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004309 which can conflict with char shmat (); below.
4310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4311 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004312
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004313#ifdef __STDC__
4314# include <limits.h>
4315#else
4316# include <assert.h>
4317#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004318
4319#undef shmat
4320
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004321/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004322#ifdef __cplusplus
4323extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004324{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004325#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004326/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004327 builtin and then its argument prototype would still apply. */
4328char shmat ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004329/* The GNU C library defines this for functions which it implements
4330 to always fail with ENOSYS. Some functions are actually named
4331 something starting with __ and the normal name is an alias. */
4332#if defined (__stub_shmat) || defined (__stub___shmat)
4333choke me
4334#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004335char (*f) () = shmat;
4336#endif
4337#ifdef __cplusplus
4338}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004339#endif
4340
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004341int
4342main ()
4343{
4344return f != shmat;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004345 ;
4346 return 0;
4347}
4348_ACEOF
4349rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004351 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004352 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004353 grep -v '^ *+' conftest.er1 >conftest.err
4354 rm -f conftest.er1
4355 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004357 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 (eval $ac_try) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; } &&
4364 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004366 (eval $ac_try) 2>&5
4367 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004369 (exit $ac_status); }; }; then
4370 ac_cv_func_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004371else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004372 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004373sed 's/^/| /' conftest.$ac_ext >&5
4374
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004375ac_cv_func_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004376fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004377rm -f conftest.err conftest.$ac_objext \
4378 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004379fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004380echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004381echo "${ECHO_T}$ac_cv_func_shmat" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004382
4383 if test $ac_cv_func_shmat = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004384 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004385echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4386if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004388else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004389 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004390LIBS="-lipc $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004391cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004392/* confdefs.h. */
4393_ACEOF
4394cat confdefs.h >>conftest.$ac_ext
4395cat >>conftest.$ac_ext <<_ACEOF
4396/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004397
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004398/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004399#ifdef __cplusplus
4400extern "C"
4401#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004402/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004403 builtin and then its argument prototype would still apply. */
4404char shmat ();
4405int
4406main ()
4407{
4408shmat ();
4409 ;
4410 return 0;
4411}
4412_ACEOF
4413rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004415 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004416 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004417 grep -v '^ *+' conftest.er1 >conftest.err
4418 rm -f conftest.er1
4419 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004421 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424 (eval $ac_try) 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; } &&
4428 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004430 (eval $ac_try) 2>&5
4431 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004433 (exit $ac_status); }; }; then
4434 ac_cv_lib_ipc_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004435else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004436 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004437sed 's/^/| /' conftest.$ac_ext >&5
4438
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004439ac_cv_lib_ipc_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004440fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004441rm -f conftest.err conftest.$ac_objext \
4442 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004443LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004444fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004445echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004446echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4447if test $ac_cv_lib_ipc_shmat = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004448 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004449fi
4450
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004451 fi
4452 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004453
4454 # Check for libraries that X11R6 Xt/Xaw programs need.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004455 ac_save_LDFLAGS=$LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004456 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4457 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4458 # check for ICE first), but we must link in the order -lSM -lICE or
4459 # we get undefined symbols. So assume we have SM if we have ICE.
4460 # These have to be linked with before -lX11, unlike the other
4461 # libraries we check for below, so use a different variable.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004462 # John Interrante, Karl Berry
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004463 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004464echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4465if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004467else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004468 ac_check_lib_save_LIBS=$LIBS
Eric Pouech18ad24a2000-01-16 22:16:33 +00004469LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004470cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004471/* confdefs.h. */
4472_ACEOF
4473cat confdefs.h >>conftest.$ac_ext
4474cat >>conftest.$ac_ext <<_ACEOF
4475/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004476
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004477/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004478#ifdef __cplusplus
4479extern "C"
4480#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004481/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004482 builtin and then its argument prototype would still apply. */
4483char IceConnectionNumber ();
4484int
4485main ()
4486{
4487IceConnectionNumber ();
4488 ;
4489 return 0;
4490}
4491_ACEOF
4492rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004494 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004495 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004496 grep -v '^ *+' conftest.er1 >conftest.err
4497 rm -f conftest.er1
4498 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004500 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 (eval $ac_try) 2>&5
4504 ac_status=$?
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }; } &&
4507 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004509 (eval $ac_try) 2>&5
4510 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004512 (exit $ac_status); }; }; then
4513 ac_cv_lib_ICE_IceConnectionNumber=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004514else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004515 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004516sed 's/^/| /' conftest.$ac_ext >&5
4517
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004518ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004519fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004520rm -f conftest.err conftest.$ac_objext \
4521 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004522LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004523fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004524echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004525echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4526if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004527 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004528fi
4529
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004530 LDFLAGS=$ac_save_LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004531
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004532fi
4533
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004534for ac_prog in flex lex
4535do
4536 # Extract the first word of "$ac_prog", so it can be a program name with args.
4537set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004538echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4540if test "${ac_cv_prog_LEX+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004542else
4543 if test -n "$LEX"; then
4544 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4545else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547for as_dir in $PATH
4548do
4549 IFS=$as_save_IFS
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4553 ac_cv_prog_LEX="$ac_prog"
4554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 break 2
4556 fi
4557done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004558done
4559
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004560fi
4561fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004562LEX=$ac_cv_prog_LEX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004563if test -n "$LEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004564 echo "$as_me:$LINENO: result: $LEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004565echo "${ECHO_T}$LEX" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004566else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004567 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004568echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004569fi
4570
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004571 test -n "$LEX" && break
4572done
4573test -n "$LEX" || LEX=":"
4574
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004575if test -z "$LEXLIB"
4576then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004577 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004578echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4579if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004581else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004582 ac_check_lib_save_LIBS=$LIBS
4583LIBS="-lfl $LIBS"
4584cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004585/* confdefs.h. */
4586_ACEOF
4587cat confdefs.h >>conftest.$ac_ext
4588cat >>conftest.$ac_ext <<_ACEOF
4589/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004590
Alexandre Julliard59730ae1996-03-24 16:20:51 +00004591/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004592#ifdef __cplusplus
4593extern "C"
4594#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004595/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004596 builtin and then its argument prototype would still apply. */
4597char yywrap ();
4598int
4599main ()
4600{
4601yywrap ();
4602 ;
4603 return 0;
4604}
4605_ACEOF
4606rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004608 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004609 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004610 grep -v '^ *+' conftest.er1 >conftest.err
4611 rm -f conftest.er1
4612 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004614 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004623 (eval $ac_try) 2>&5
4624 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004626 (exit $ac_status); }; }; then
4627 ac_cv_lib_fl_yywrap=yes
4628else
4629 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004630sed 's/^/| /' conftest.$ac_ext >&5
4631
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004632ac_cv_lib_fl_yywrap=no
4633fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004634rm -f conftest.err conftest.$ac_objext \
4635 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004636LIBS=$ac_check_lib_save_LIBS
4637fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004638echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004639echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4640if test $ac_cv_lib_fl_yywrap = yes; then
4641 LEXLIB="-lfl"
4642else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004643 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004644echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4645if test "${ac_cv_lib_l_yywrap+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4647else
4648 ac_check_lib_save_LIBS=$LIBS
4649LIBS="-ll $LIBS"
4650cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004651/* confdefs.h. */
4652_ACEOF
4653cat confdefs.h >>conftest.$ac_ext
4654cat >>conftest.$ac_ext <<_ACEOF
4655/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004656
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004657/* Override any gcc2 internal prototype to avoid an error. */
4658#ifdef __cplusplus
4659extern "C"
4660#endif
4661/* We use char because int might match the return type of a gcc2
4662 builtin and then its argument prototype would still apply. */
4663char yywrap ();
4664int
4665main ()
4666{
4667yywrap ();
4668 ;
4669 return 0;
4670}
4671_ACEOF
4672rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004674 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004675 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004676 grep -v '^ *+' conftest.er1 >conftest.err
4677 rm -f conftest.er1
4678 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004680 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 (eval $ac_try) 2>&5
4684 ac_status=$?
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; } &&
4687 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004689 (eval $ac_try) 2>&5
4690 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004692 (exit $ac_status); }; }; then
4693 ac_cv_lib_l_yywrap=yes
4694else
4695 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004696sed 's/^/| /' conftest.$ac_ext >&5
4697
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004698ac_cv_lib_l_yywrap=no
4699fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004700rm -f conftest.err conftest.$ac_objext \
4701 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004702LIBS=$ac_check_lib_save_LIBS
4703fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004704echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004705echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4706if test $ac_cv_lib_l_yywrap = yes; then
4707 LEXLIB="-ll"
4708fi
4709
4710fi
4711
4712fi
4713
4714if test "x$LEX" != "x:"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004715 echo "$as_me:$LINENO: checking lex output file root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004716echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4717if test "${ac_cv_prog_lex_root+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4719else
4720 # The minimal lex program is just a single line: %%. But some broken lexes
4721# (Solaris, I think it was) want two %% lines, so accommodate them.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004722cat >conftest.l <<_ACEOF
4723%%
4724%%
4725_ACEOF
4726{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4727 (eval $LEX conftest.l) 2>&5
4728 ac_status=$?
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004731if test -f lex.yy.c; then
4732 ac_cv_prog_lex_root=lex.yy
4733elif test -f lexyy.c; then
4734 ac_cv_prog_lex_root=lexyy
4735else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004736 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004737echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4738 { (exit 1); exit 1; }; }
4739fi
4740fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004741echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004742echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004743rm -f conftest.l
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004744LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4745
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004746echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004747echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4748if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750else
4751 # POSIX says lex can declare yytext either as a pointer or an array; the
4752# default is implementation-dependent. Figure out which it is, since
4753# not all implementations provide the %pointer and %array declarations.
4754ac_cv_prog_lex_yytext_pointer=no
4755echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4756ac_save_LIBS=$LIBS
4757LIBS="$LIBS $LEXLIB"
4758cat >conftest.$ac_ext <<_ACEOF
4759`cat $LEX_OUTPUT_ROOT.c`
4760_ACEOF
4761rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004763 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004764 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004765 grep -v '^ *+' conftest.er1 >conftest.err
4766 rm -f conftest.er1
4767 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004769 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 (eval $ac_try) 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; } &&
4776 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004778 (eval $ac_try) 2>&5
4779 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004781 (exit $ac_status); }; }; then
4782 ac_cv_prog_lex_yytext_pointer=yes
4783else
4784 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004785sed 's/^/| /' conftest.$ac_ext >&5
4786
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004787fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004788rm -f conftest.err conftest.$ac_objext \
4789 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004790LIBS=$ac_save_LIBS
4791rm -f "${LEX_OUTPUT_ROOT}.c"
4792
4793fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004794echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004795echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4796if test $ac_cv_prog_lex_yytext_pointer = yes; then
4797
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004798cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004799#define YYTEXT_POINTER 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004800_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004801
4802fi
4803
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004804fi
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004805
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004806for ac_prog in $LEX flex lex
4807do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004808 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004809set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004810echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4812if test "${ac_cv_prog_XLEX+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004814else
4815 if test -n "$XLEX"; then
4816 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4817else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819for as_dir in $PATH
4820do
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825 ac_cv_prog_XLEX="$ac_prog"
4826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4828 fi
4829done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004830done
4831
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004832fi
4833fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004834XLEX=$ac_cv_prog_XLEX
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004835if test -n "$XLEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004836 echo "$as_me:$LINENO: result: $XLEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004837echo "${ECHO_T}$XLEX" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004838else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004839 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004840echo "${ECHO_T}no" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004841fi
4842
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004843 test -n "$XLEX" && break
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004844done
4845test -n "$XLEX" || XLEX="none"
4846
4847if test "$XLEX" = "none"
4848then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004849 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004850echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4851 { (exit 1); exit 1; }; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004852fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004853
Mike McCormackc068f672004-03-16 03:11:39 +00004854for ac_prog in bison
4855do
4856 # Extract the first word of "$ac_prog", so it can be a program name with args.
4857set dummy $ac_prog; ac_word=$2
4858echo "$as_me:$LINENO: checking for $ac_word" >&5
4859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4860if test "${ac_cv_prog_BISON+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4862else
4863 if test -n "$BISON"; then
4864 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4865else
4866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867for as_dir in $PATH
4868do
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4873 ac_cv_prog_BISON="$ac_prog"
4874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4876 fi
4877done
4878done
4879
4880fi
4881fi
4882BISON=$ac_cv_prog_BISON
4883if test -n "$BISON"; then
4884 echo "$as_me:$LINENO: result: $BISON" >&5
4885echo "${ECHO_T}$BISON" >&6
4886else
4887 echo "$as_me:$LINENO: result: no" >&5
4888echo "${ECHO_T}no" >&6
4889fi
4890
4891 test -n "$BISON" && break
4892done
4893test -n "$BISON" || BISON="none"
4894
4895if test "$BISON" = "none"
4896then
4897 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
4898echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
4899 { (exit 1); exit 1; }; }
4900fi
4901
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004902if test -n "$ac_tool_prefix"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004903 for ac_prog in gas as
4904 do
4905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4906set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Marcus Meissner1d4db782003-01-09 00:46:54 +00004907echo "$as_me:$LINENO: checking for $ac_word" >&5
4908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4909if test "${ac_cv_prog_AS+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4911else
4912 if test -n "$AS"; then
4913 ac_cv_prog_AS="$AS" # Let the user override the test.
4914else
4915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916for as_dir in $PATH
4917do
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004922 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00004923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 break 2
4925 fi
4926done
4927done
4928
4929fi
4930fi
4931AS=$ac_cv_prog_AS
4932if test -n "$AS"; then
4933 echo "$as_me:$LINENO: result: $AS" >&5
4934echo "${ECHO_T}$AS" >&6
4935else
4936 echo "$as_me:$LINENO: result: no" >&5
4937echo "${ECHO_T}no" >&6
4938fi
4939
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004940 test -n "$AS" && break
4941 done
Marcus Meissner1d4db782003-01-09 00:46:54 +00004942fi
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004943if test -z "$AS"; then
Marcus Meissner1d4db782003-01-09 00:46:54 +00004944 ac_ct_AS=$AS
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004945 for ac_prog in gas as
4946do
4947 # Extract the first word of "$ac_prog", so it can be a program name with args.
4948set dummy $ac_prog; ac_word=$2
Marcus Meissner1d4db782003-01-09 00:46:54 +00004949echo "$as_me:$LINENO: checking for $ac_word" >&5
4950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4951if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4953else
4954 if test -n "$ac_ct_AS"; then
4955 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4956else
4957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958for as_dir in $PATH
4959do
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004964 ac_cv_prog_ac_ct_AS="$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00004965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 break 2
4967 fi
4968done
4969done
4970
Marcus Meissner1d4db782003-01-09 00:46:54 +00004971fi
4972fi
4973ac_ct_AS=$ac_cv_prog_ac_ct_AS
4974if test -n "$ac_ct_AS"; then
4975 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4976echo "${ECHO_T}$ac_ct_AS" >&6
4977else
4978 echo "$as_me:$LINENO: result: no" >&5
4979echo "${ECHO_T}no" >&6
4980fi
4981
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004982 test -n "$ac_ct_AS" && break
4983done
4984test -n "$ac_ct_AS" || ac_ct_AS="as"
4985
Marcus Meissner1d4db782003-01-09 00:46:54 +00004986 AS=$ac_ct_AS
Marcus Meissner1d4db782003-01-09 00:46:54 +00004987fi
4988
4989if test -n "$ac_tool_prefix"; then
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00004990 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4991set dummy ${ac_tool_prefix}ld; ac_word=$2
4992echo "$as_me:$LINENO: checking for $ac_word" >&5
4993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4994if test "${ac_cv_prog_LD+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4996else
4997 if test -n "$LD"; then
4998 ac_cv_prog_LD="$LD" # Let the user override the test.
4999else
5000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001for as_dir in $PATH
5002do
5003 IFS=$as_save_IFS
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5007 ac_cv_prog_LD="${ac_tool_prefix}ld"
5008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 break 2
5010 fi
5011done
5012done
5013
5014fi
5015fi
5016LD=$ac_cv_prog_LD
5017if test -n "$LD"; then
5018 echo "$as_me:$LINENO: result: $LD" >&5
5019echo "${ECHO_T}$LD" >&6
5020else
5021 echo "$as_me:$LINENO: result: no" >&5
5022echo "${ECHO_T}no" >&6
5023fi
5024
5025fi
5026if test -z "$ac_cv_prog_LD"; then
5027 ac_ct_LD=$LD
5028 # Extract the first word of "ld", so it can be a program name with args.
5029set dummy ld; ac_word=$2
5030echo "$as_me:$LINENO: checking for $ac_word" >&5
5031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5032if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034else
5035 if test -n "$ac_ct_LD"; then
5036 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5037else
5038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039for as_dir in $PATH
5040do
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045 ac_cv_prog_ac_ct_LD="ld"
5046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 break 2
5048 fi
5049done
5050done
5051
5052 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5053fi
5054fi
5055ac_ct_LD=$ac_cv_prog_ac_ct_LD
5056if test -n "$ac_ct_LD"; then
5057 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5058echo "${ECHO_T}$ac_ct_LD" >&6
5059else
5060 echo "$as_me:$LINENO: result: no" >&5
5061echo "${ECHO_T}no" >&6
5062fi
5063
5064 LD=$ac_ct_LD
5065else
5066 LD="$ac_cv_prog_LD"
5067fi
5068
5069if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005070 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5071set dummy ${ac_tool_prefix}ar; ac_word=$2
5072echo "$as_me:$LINENO: checking for $ac_word" >&5
5073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5074if test "${ac_cv_prog_AR+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076else
5077 if test -n "$AR"; then
5078 ac_cv_prog_AR="$AR" # Let the user override the test.
5079else
5080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081for as_dir in $PATH
5082do
5083 IFS=$as_save_IFS
5084 test -z "$as_dir" && as_dir=.
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5087 ac_cv_prog_AR="${ac_tool_prefix}ar"
5088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 break 2
5090 fi
5091done
5092done
5093
5094fi
5095fi
5096AR=$ac_cv_prog_AR
5097if test -n "$AR"; then
5098 echo "$as_me:$LINENO: result: $AR" >&5
5099echo "${ECHO_T}$AR" >&6
5100else
5101 echo "$as_me:$LINENO: result: no" >&5
5102echo "${ECHO_T}no" >&6
5103fi
5104
5105fi
5106if test -z "$ac_cv_prog_AR"; then
5107 ac_ct_AR=$AR
5108 # Extract the first word of "ar", so it can be a program name with args.
5109set dummy ar; ac_word=$2
5110echo "$as_me:$LINENO: checking for $ac_word" >&5
5111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5112if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5114else
5115 if test -n "$ac_ct_AR"; then
5116 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5117else
5118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119for as_dir in $PATH
5120do
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5125 ac_cv_prog_ac_ct_AR="ar"
5126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 break 2
5128 fi
5129done
5130done
5131
5132 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5133fi
5134fi
5135ac_ct_AR=$ac_cv_prog_ac_ct_AR
5136if test -n "$ac_ct_AR"; then
5137 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5138echo "${ECHO_T}$ac_ct_AR" >&6
5139else
5140 echo "$as_me:$LINENO: result: no" >&5
5141echo "${ECHO_T}no" >&6
5142fi
5143
5144 AR=$ac_ct_AR
5145else
5146 AR="$ac_cv_prog_AR"
5147fi
5148
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005149if test -n "$ac_tool_prefix"; then
5150 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5151set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005152echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5154if test "${ac_cv_prog_RANLIB+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005156else
5157 if test -n "$RANLIB"; then
5158 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5159else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161for as_dir in $PATH
5162do
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5170 fi
5171done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005172done
5173
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005174fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005175fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005176RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005177if test -n "$RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005178 echo "$as_me:$LINENO: result: $RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005179echo "${ECHO_T}$RANLIB" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005180else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005181 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005182echo "${ECHO_T}no" >&6
5183fi
5184
5185fi
5186if test -z "$ac_cv_prog_RANLIB"; then
5187 ac_ct_RANLIB=$RANLIB
5188 # Extract the first word of "ranlib", so it can be a program name with args.
5189set dummy ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005190echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5192if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5194else
5195 if test -n "$ac_ct_RANLIB"; then
5196 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5197else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199for as_dir in $PATH
5200do
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205 ac_cv_prog_ac_ct_RANLIB="ranlib"
5206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 break 2
5208 fi
5209done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005210done
5211
5212 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5213fi
5214fi
5215ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5216if test -n "$ac_ct_RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005217 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005218echo "${ECHO_T}$ac_ct_RANLIB" >&6
5219else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005220 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005221echo "${ECHO_T}no" >&6
5222fi
5223
5224 RANLIB=$ac_ct_RANLIB
5225else
5226 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005227fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005228
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005229if test -n "$ac_tool_prefix"; then
5230 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5231set dummy ${ac_tool_prefix}strip; ac_word=$2
5232echo "$as_me:$LINENO: checking for $ac_word" >&5
5233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5234if test "${ac_cv_prog_STRIP+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5236else
5237 if test -n "$STRIP"; then
5238 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5239else
5240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241for as_dir in $PATH
5242do
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 break 2
5250 fi
5251done
5252done
5253
5254fi
5255fi
5256STRIP=$ac_cv_prog_STRIP
5257if test -n "$STRIP"; then
5258 echo "$as_me:$LINENO: result: $STRIP" >&5
5259echo "${ECHO_T}$STRIP" >&6
5260else
5261 echo "$as_me:$LINENO: result: no" >&5
5262echo "${ECHO_T}no" >&6
5263fi
5264
5265fi
5266if test -z "$ac_cv_prog_STRIP"; then
5267 ac_ct_STRIP=$STRIP
5268 # Extract the first word of "strip", so it can be a program name with args.
5269set dummy strip; ac_word=$2
5270echo "$as_me:$LINENO: checking for $ac_word" >&5
5271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5272if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274else
5275 if test -n "$ac_ct_STRIP"; then
5276 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5277else
5278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279for as_dir in $PATH
5280do
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285 ac_cv_prog_ac_ct_STRIP="strip"
5286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 break 2
5288 fi
5289done
5290done
5291
5292 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5293fi
5294fi
5295ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5296if test -n "$ac_ct_STRIP"; then
5297 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5298echo "${ECHO_T}$ac_ct_STRIP" >&6
5299else
5300 echo "$as_me:$LINENO: result: no" >&5
5301echo "${ECHO_T}no" >&6
5302fi
5303
5304 STRIP=$ac_ct_STRIP
5305else
5306 STRIP="$ac_cv_prog_STRIP"
5307fi
5308
5309if test -n "$ac_tool_prefix"; then
5310 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5311set dummy ${ac_tool_prefix}windres; ac_word=$2
5312echo "$as_me:$LINENO: checking for $ac_word" >&5
5313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5314if test "${ac_cv_prog_WINDRES+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316else
5317 if test -n "$WINDRES"; then
5318 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5319else
5320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321for as_dir in $PATH
5322do
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5330 fi
5331done
5332done
5333
5334fi
5335fi
5336WINDRES=$ac_cv_prog_WINDRES
5337if test -n "$WINDRES"; then
5338 echo "$as_me:$LINENO: result: $WINDRES" >&5
5339echo "${ECHO_T}$WINDRES" >&6
5340else
5341 echo "$as_me:$LINENO: result: no" >&5
5342echo "${ECHO_T}no" >&6
5343fi
5344
5345fi
5346if test -z "$ac_cv_prog_WINDRES"; then
5347 ac_ct_WINDRES=$WINDRES
5348 # Extract the first word of "windres", so it can be a program name with args.
5349set dummy windres; ac_word=$2
5350echo "$as_me:$LINENO: checking for $ac_word" >&5
5351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5352if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5354else
5355 if test -n "$ac_ct_WINDRES"; then
5356 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5357else
5358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359for as_dir in $PATH
5360do
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365 ac_cv_prog_ac_ct_WINDRES="windres"
5366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
5368 fi
5369done
5370done
5371
5372 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5373fi
5374fi
5375ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5376if test -n "$ac_ct_WINDRES"; then
5377 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5378echo "${ECHO_T}$ac_ct_WINDRES" >&6
5379else
5380 echo "$as_me:$LINENO: result: no" >&5
5381echo "${ECHO_T}no" >&6
5382fi
5383
5384 WINDRES=$ac_ct_WINDRES
5385else
5386 WINDRES="$ac_cv_prog_WINDRES"
5387fi
5388
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005389echo "$as_me:$LINENO: checking whether ln -s works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005390echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5391LN_S=$as_ln_s
5392if test "$LN_S" = "ln -s"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005393 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005394echo "${ECHO_T}yes" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00005395else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005396 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005397echo "${ECHO_T}no, using $LN_S" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00005398fi
5399
Alexandre Julliarddf234a92002-05-22 02:10:39 +00005400echo "$as_me:$LINENO: checking whether ln works" >&5
5401echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5402rm -f conf$$ conf$$.file
5403echo >conf$$.file
5404if ln conf$$.file conf$$ 2>/dev/null; then
5405 LN=ln
5406
5407 echo "$as_me:$LINENO: result: yes" >&5
5408echo "${ECHO_T}yes" >&6
5409else
5410 LN="cp -p"
5411
5412 echo "$as_me:$LINENO: result: no, using $LN" >&5
5413echo "${ECHO_T}no, using $LN" >&6
5414fi
5415rm -f conf$$ conf$$.file
Alexandre Julliardc6264912004-08-16 20:09:37 +00005416echo "$as_me:$LINENO: checking for egrep" >&5
5417echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5418if test "${ac_cv_prog_egrep+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5420else
5421 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5422 then ac_cv_prog_egrep='grep -E'
5423 else ac_cv_prog_egrep='egrep'
5424 fi
5425fi
5426echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5427echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5428 EGREP=$ac_cv_prog_egrep
5429
5430
James Juranffe6b761999-06-12 08:21:57 +00005431# Extract the first word of "ldconfig", so it can be a program name with args.
5432set dummy ldconfig; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005433echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5435if test "${ac_cv_path_LDCONFIG+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
James Juranffe6b761999-06-12 08:21:57 +00005437else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005438 case $LDCONFIG in
5439 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00005440 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5441 ;;
5442 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00005444for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005445do
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 break 2
5453 fi
5454done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005455done
5456
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005457 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00005458 ;;
5459esac
5460fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005461LDCONFIG=$ac_cv_path_LDCONFIG
5462
James Juranffe6b761999-06-12 08:21:57 +00005463if test -n "$LDCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005464 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005465echo "${ECHO_T}$LDCONFIG" >&6
James Juranffe6b761999-06-12 08:21:57 +00005466else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005467 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005468echo "${ECHO_T}no" >&6
James Juranffe6b761999-06-12 08:21:57 +00005469fi
5470
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005471# Find a good install program. We prefer a C program (faster),
5472# so one script is as good as another. But avoid the broken or
5473# incompatible versions:
5474# SysV /etc/install, /usr/sbin/install
5475# SunOS /usr/etc/install
5476# IRIX /sbin/install
5477# AIX /bin/install
5478# AmigaOS /C/install, which installs bootblocks on floppy discs
5479# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5480# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5481# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Alexandre Julliard875927f2004-01-02 01:55:29 +00005482# OS/2's system install, which has a completely different semantic
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005483# ./install, which can be erroneously created by make from ./install.sh.
5484echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5485echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5486if test -z "$INSTALL"; then
5487if test "${ac_cv_path_install+set}" = set; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5489else
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491for as_dir in $PATH
5492do
5493 IFS=$as_save_IFS
5494 test -z "$as_dir" && as_dir=.
5495 # Account for people who put trailing slashes in PATH elements.
5496case $as_dir/ in
5497 ./ | .// | /cC/* | \
5498 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005499 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005500 /usr/ucb/* ) ;;
5501 *)
5502 # OSF1 and SCO ODT 3.0 have their own names for install.
5503 # Don't use installbsd from OSF since it installs stuff as root
5504 # by default.
5505 for ac_prog in ginstall scoinst install; do
5506 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliard875927f2004-01-02 01:55:29 +00005507 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5508 if test $ac_prog = install &&
5509 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5510 # AIX install. It has an incompatible calling convention.
5511 :
5512 elif test $ac_prog = install &&
5513 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5514 # program-specific install script used by HP pwplus--don't use.
5515 :
5516 else
5517 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5518 break 3
5519 fi
5520 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005521 done
5522 done
5523 ;;
5524esac
5525done
5526
5527
5528fi
5529 if test "${ac_cv_path_install+set}" = set; then
5530 INSTALL=$ac_cv_path_install
5531 else
5532 # As a last resort, use the slow shell script. We don't cache a
5533 # path for INSTALL within a source directory, because that will
5534 # break other packages using the cache if that directory is
5535 # removed, or if the path is relative.
5536 INSTALL=$ac_install_sh
5537 fi
5538fi
5539echo "$as_me:$LINENO: result: $INSTALL" >&5
5540echo "${ECHO_T}$INSTALL" >&6
5541
5542# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5543# It thinks the first close brace ends the variable substitution.
5544test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5545
5546test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5547
5548test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5549
5550case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00005551 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005552 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5553esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005554
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005555for ac_prog in lclint lint
5556do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005557 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005558set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005559echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5561if test "${ac_cv_prog_LINT+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005563else
5564 if test -n "$LINT"; then
5565 ac_cv_prog_LINT="$LINT" # Let the user override the test.
5566else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568for as_dir in $PATH
5569do
5570 IFS=$as_save_IFS
5571 test -z "$as_dir" && as_dir=.
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5574 ac_cv_prog_LINT="$ac_prog"
5575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 break 2
5577 fi
5578done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005579done
5580
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005581fi
5582fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005583LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005584if test -n "$LINT"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005585 echo "$as_me:$LINENO: result: $LINT" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005586echo "${ECHO_T}$LINT" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005587else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005588 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005589echo "${ECHO_T}no" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005590fi
5591
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005592 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005593done
5594
5595if test "$LINT" = "lint"
5596then
5597 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5598 fi
5599
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005600
5601
Huw Davies00acb5f2004-08-17 22:33:14 +00005602for ac_prog in fontforge
5603do
5604 # Extract the first word of "$ac_prog", so it can be a program name with args.
5605set dummy $ac_prog; ac_word=$2
5606echo "$as_me:$LINENO: checking for $ac_word" >&5
5607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5608if test "${ac_cv_prog_FONTFORGE+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5610else
5611 if test -n "$FONTFORGE"; then
5612 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5613else
5614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615for as_dir in $PATH
5616do
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621 ac_cv_prog_FONTFORGE="$ac_prog"
5622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 break 2
5624 fi
5625done
5626done
5627
5628fi
5629fi
5630FONTFORGE=$ac_cv_prog_FONTFORGE
5631if test -n "$FONTFORGE"; then
5632 echo "$as_me:$LINENO: result: $FONTFORGE" >&5
5633echo "${ECHO_T}$FONTFORGE" >&6
5634else
5635 echo "$as_me:$LINENO: result: no" >&5
5636echo "${ECHO_T}no" >&6
5637fi
5638
5639 test -n "$FONTFORGE" && break
5640done
5641test -n "$FONTFORGE" || FONTFORGE="false"
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00005642
5643
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005644
5645
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005646echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005647echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5648if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00005650else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005651 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005652LIBS="-li386 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005653cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005654/* confdefs.h. */
5655_ACEOF
5656cat confdefs.h >>conftest.$ac_ext
5657cat >>conftest.$ac_ext <<_ACEOF
5658/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005659
Alexandre Julliard59730ae1996-03-24 16:20:51 +00005660/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005661#ifdef __cplusplus
5662extern "C"
5663#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005664/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005665 builtin and then its argument prototype would still apply. */
5666char i386_set_ldt ();
5667int
5668main ()
5669{
5670i386_set_ldt ();
5671 ;
5672 return 0;
5673}
5674_ACEOF
5675rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005677 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005678 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005679 grep -v '^ *+' conftest.er1 >conftest.err
5680 rm -f conftest.er1
5681 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005683 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00005684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 (eval $ac_try) 2>&5
5687 ac_status=$?
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; } &&
5690 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005692 (eval $ac_try) 2>&5
5693 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005695 (exit $ac_status); }; }; then
5696 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00005697else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005698 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005699sed 's/^/| /' conftest.$ac_ext >&5
5700
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005701ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00005702fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00005703rm -f conftest.err conftest.$ac_objext \
5704 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005705LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005706fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005707echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005708echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5709if test $ac_cv_lib_i386_i386_set_ldt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005710 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005711#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005712_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00005713
5714 LIBS="-li386 $LIBS"
5715
Alexandre Julliard02e90081998-01-04 17:49:09 +00005716fi
5717
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005718
5719echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005720echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5721if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00005723else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005724 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005725LIBS="-lossaudio $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005726cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005727/* confdefs.h. */
5728_ACEOF
5729cat confdefs.h >>conftest.$ac_ext
5730cat >>conftest.$ac_ext <<_ACEOF
5731/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005732
Todd Vierlingecc76691998-12-15 17:49:02 +00005733/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005734#ifdef __cplusplus
5735extern "C"
5736#endif
Todd Vierlingecc76691998-12-15 17:49:02 +00005737/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005738 builtin and then its argument prototype would still apply. */
5739char _oss_ioctl ();
5740int
5741main ()
5742{
5743_oss_ioctl ();
5744 ;
5745 return 0;
5746}
5747_ACEOF
5748rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005750 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005751 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005752 grep -v '^ *+' conftest.er1 >conftest.err
5753 rm -f conftest.er1
5754 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005756 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00005757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759 (eval $ac_try) 2>&5
5760 ac_status=$?
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }; } &&
5763 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005765 (eval $ac_try) 2>&5
5766 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005768 (exit $ac_status); }; }; then
5769 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00005770else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005771 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005772sed 's/^/| /' conftest.$ac_ext >&5
5773
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005774ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00005775fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00005776rm -f conftest.err conftest.$ac_objext \
5777 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005778LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005779fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005780echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005781echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5782if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005783 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005784#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005785_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00005786
5787 LIBS="-lossaudio $LIBS"
5788
Todd Vierlingecc76691998-12-15 17:49:02 +00005789fi
5790
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005791
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005792for ac_func in iswalnum
Patrik Stridvallea584721998-11-01 16:22:07 +00005793do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005794as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005795echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005796echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5797if eval "test \"\${$as_ac_var+set}\" = set"; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00005799else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005800 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005801/* confdefs.h. */
5802_ACEOF
5803cat confdefs.h >>conftest.$ac_ext
5804cat >>conftest.$ac_ext <<_ACEOF
5805/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005806/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5808#define $ac_func innocuous_$ac_func
5809
Patrik Stridvallea584721998-11-01 16:22:07 +00005810/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005811 which can conflict with char $ac_func (); below.
5812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5813 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005814
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005815#ifdef __STDC__
5816# include <limits.h>
5817#else
5818# include <assert.h>
5819#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00005820
5821#undef $ac_func
5822
Patrik Stridvallea584721998-11-01 16:22:07 +00005823/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005824#ifdef __cplusplus
5825extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005826{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005827#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00005828/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005829 builtin and then its argument prototype would still apply. */
5830char $ac_func ();
Patrik Stridvallea584721998-11-01 16:22:07 +00005831/* The GNU C library defines this for functions which it implements
5832 to always fail with ENOSYS. Some functions are actually named
5833 something starting with __ and the normal name is an alias. */
5834#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5835choke me
5836#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005837char (*f) () = $ac_func;
5838#endif
5839#ifdef __cplusplus
5840}
Patrik Stridvallea584721998-11-01 16:22:07 +00005841#endif
5842
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005843int
5844main ()
5845{
5846return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005847 ;
5848 return 0;
5849}
5850_ACEOF
5851rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005853 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005854 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005855 grep -v '^ *+' conftest.er1 >conftest.err
5856 rm -f conftest.er1
5857 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005859 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00005860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 (eval $ac_try) 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; } &&
5866 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005868 (eval $ac_try) 2>&5
5869 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005871 (exit $ac_status); }; }; then
5872 eval "$as_ac_var=yes"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005873else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005874 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005875sed 's/^/| /' conftest.$ac_ext >&5
5876
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005877eval "$as_ac_var=no"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005878fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00005879rm -f conftest.err conftest.$ac_objext \
5880 conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005881fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005883echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5884if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005885 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005887_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005888
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005889else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005890
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005891echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005892echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5893if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005895else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005896 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005897LIBS="-lw $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005898cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005899/* confdefs.h. */
5900_ACEOF
5901cat confdefs.h >>conftest.$ac_ext
5902cat >>conftest.$ac_ext <<_ACEOF
5903/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005904
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005905/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005906#ifdef __cplusplus
5907extern "C"
5908#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005909/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005910 builtin and then its argument prototype would still apply. */
5911char iswalnum ();
5912int
5913main ()
5914{
5915iswalnum ();
5916 ;
5917 return 0;
5918}
5919_ACEOF
5920rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005922 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005923 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005924 grep -v '^ *+' conftest.er1 >conftest.err
5925 rm -f conftest.er1
5926 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005928 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00005929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 (eval $ac_try) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; } &&
5935 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005937 (eval $ac_try) 2>&5
5938 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005940 (exit $ac_status); }; }; then
5941 ac_cv_lib_w_iswalnum=yes
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005942else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005943 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005944sed 's/^/| /' conftest.$ac_ext >&5
5945
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005946ac_cv_lib_w_iswalnum=no
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005947fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00005948rm -f conftest.err conftest.$ac_objext \
5949 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005950LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005951fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005952echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005953echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5954if test $ac_cv_lib_w_iswalnum = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005955 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005956#define HAVE_LIBW 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005957_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005958
5959 LIBS="-lw $LIBS"
5960
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005961fi
5962
5963fi
5964done
5965
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005966
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005967for ac_func in gethostbyname
5968do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005969as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005970echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5972if eval "test \"\${$as_ac_var+set}\" = set"; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005974else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005975 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005976/* confdefs.h. */
5977_ACEOF
5978cat confdefs.h >>conftest.$ac_ext
5979cat >>conftest.$ac_ext <<_ACEOF
5980/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005981/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5983#define $ac_func innocuous_$ac_func
5984
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005985/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005986 which can conflict with char $ac_func (); below.
5987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5988 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005989
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005990#ifdef __STDC__
5991# include <limits.h>
5992#else
5993# include <assert.h>
5994#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00005995
5996#undef $ac_func
5997
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005998/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005999#ifdef __cplusplus
6000extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006001{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006002#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006003/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006004 builtin and then its argument prototype would still apply. */
6005char $ac_func ();
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006006/* The GNU C library defines this for functions which it implements
6007 to always fail with ENOSYS. Some functions are actually named
6008 something starting with __ and the normal name is an alias. */
6009#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6010choke me
6011#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006012char (*f) () = $ac_func;
6013#endif
6014#ifdef __cplusplus
6015}
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006016#endif
6017
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006018int
6019main ()
6020{
6021return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006022 ;
6023 return 0;
6024}
6025_ACEOF
6026rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006028 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006029 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006030 grep -v '^ *+' conftest.er1 >conftest.err
6031 rm -f conftest.er1
6032 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006034 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 (eval $ac_try) 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; } &&
6041 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006043 (eval $ac_try) 2>&5
6044 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006046 (exit $ac_status); }; }; then
6047 eval "$as_ac_var=yes"
Patrik Stridvallea584721998-11-01 16:22:07 +00006048else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006049 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006050sed 's/^/| /' conftest.$ac_ext >&5
6051
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006052eval "$as_ac_var=no"
Patrik Stridvallea584721998-11-01 16:22:07 +00006053fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006054rm -f conftest.err conftest.$ac_objext \
6055 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvallea584721998-11-01 16:22:07 +00006056fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006058echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6059if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006060 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006061#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006062_ACEOF
Patrik Stridvallea584721998-11-01 16:22:07 +00006063
Patrik Stridvallea584721998-11-01 16:22:07 +00006064else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006065
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006066echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006067echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6068if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00006070else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006071 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006072LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006073cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006074/* confdefs.h. */
6075_ACEOF
6076cat confdefs.h >>conftest.$ac_ext
6077cat >>conftest.$ac_ext <<_ACEOF
6078/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006079
Patrik Stridvallea584721998-11-01 16:22:07 +00006080/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006081#ifdef __cplusplus
6082extern "C"
6083#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00006084/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006085 builtin and then its argument prototype would still apply. */
6086char gethostbyname ();
6087int
6088main ()
6089{
6090gethostbyname ();
6091 ;
6092 return 0;
6093}
6094_ACEOF
6095rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006097 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006098 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006099 grep -v '^ *+' conftest.er1 >conftest.err
6100 rm -f conftest.er1
6101 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006103 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 (eval $ac_try) 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; } &&
6110 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006112 (eval $ac_try) 2>&5
6113 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006115 (exit $ac_status); }; }; then
6116 ac_cv_lib_nsl_gethostbyname=yes
Patrik Stridvallea584721998-11-01 16:22:07 +00006117else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006118 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006119sed 's/^/| /' conftest.$ac_ext >&5
6120
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006121ac_cv_lib_nsl_gethostbyname=no
Patrik Stridvallea584721998-11-01 16:22:07 +00006122fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006123rm -f conftest.err conftest.$ac_objext \
6124 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006125LIBS=$ac_check_lib_save_LIBS
Patrik Stridvallea584721998-11-01 16:22:07 +00006126fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006127echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006128echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6129if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006130 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006131#define HAVE_LIBNSL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006132_ACEOF
Ron Recorde977d6c1999-09-05 12:32:05 +00006133
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006134 LIBS="-lnsl $LIBS"
6135
Ron Recorde977d6c1999-09-05 12:32:05 +00006136fi
6137
Patrik Stridvallea584721998-11-01 16:22:07 +00006138fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00006139done
6140
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006141
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006142for ac_func in connect
6143do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006144as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006145echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006146echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6147if eval "test \"\${$as_ac_var+set}\" = set"; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006149else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006150 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006151/* confdefs.h. */
6152_ACEOF
6153cat confdefs.h >>conftest.$ac_ext
6154cat >>conftest.$ac_ext <<_ACEOF
6155/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006156/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6158#define $ac_func innocuous_$ac_func
6159
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006160/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006161 which can conflict with char $ac_func (); below.
6162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6163 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006164
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006165#ifdef __STDC__
6166# include <limits.h>
6167#else
6168# include <assert.h>
6169#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00006170
6171#undef $ac_func
6172
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006173/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006174#ifdef __cplusplus
6175extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006176{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006177#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006178/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006179 builtin and then its argument prototype would still apply. */
6180char $ac_func ();
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006181/* The GNU C library defines this for functions which it implements
6182 to always fail with ENOSYS. Some functions are actually named
6183 something starting with __ and the normal name is an alias. */
6184#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6185choke me
6186#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006187char (*f) () = $ac_func;
6188#endif
6189#ifdef __cplusplus
6190}
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006191#endif
6192
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006193int
6194main ()
6195{
6196return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006197 ;
6198 return 0;
6199}
6200_ACEOF
6201rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006203 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006204 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006205 grep -v '^ *+' conftest.er1 >conftest.err
6206 rm -f conftest.er1
6207 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006209 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 (eval $ac_try) 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; } &&
6216 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006218 (eval $ac_try) 2>&5
6219 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006221 (exit $ac_status); }; }; then
6222 eval "$as_ac_var=yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006223else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006224 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006225sed 's/^/| /' conftest.$ac_ext >&5
6226
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006227eval "$as_ac_var=no"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006228fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006229rm -f conftest.err conftest.$ac_objext \
6230 conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006231fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006233echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6234if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006235 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006236#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006237_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006238
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006239else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006240
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006241echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006242echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6243if test "${ac_cv_lib_socket_connect+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006245else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006246 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006247LIBS="-lsocket $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006248cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006249/* confdefs.h. */
6250_ACEOF
6251cat confdefs.h >>conftest.$ac_ext
6252cat >>conftest.$ac_ext <<_ACEOF
6253/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006254
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006255/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006256#ifdef __cplusplus
6257extern "C"
6258#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006259/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006260 builtin and then its argument prototype would still apply. */
6261char connect ();
6262int
6263main ()
6264{
6265connect ();
6266 ;
6267 return 0;
6268}
6269_ACEOF
6270rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006272 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006273 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006274 grep -v '^ *+' conftest.er1 >conftest.err
6275 rm -f conftest.er1
6276 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006278 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 (eval $ac_try) 2>&5
6282 ac_status=$?
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; } &&
6285 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006287 (eval $ac_try) 2>&5
6288 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006290 (exit $ac_status); }; }; then
6291 ac_cv_lib_socket_connect=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006292else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006293 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006294sed 's/^/| /' conftest.$ac_ext >&5
6295
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006296ac_cv_lib_socket_connect=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006297fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006298rm -f conftest.err conftest.$ac_objext \
6299 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006300LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006301fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006302echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006303echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6304if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006305 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006306#define HAVE_LIBSOCKET 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006307_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006308
6309 LIBS="-lsocket $LIBS"
6310
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006311fi
6312
6313fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00006314done
6315
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006316
Alexandre Julliardc5552742002-04-03 20:24:44 +00006317for ac_func in inet_aton
6318do
6319as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006320echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006321echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6322if eval "test \"\${$as_ac_var+set}\" = set"; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6324else
6325 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006326/* confdefs.h. */
6327_ACEOF
6328cat confdefs.h >>conftest.$ac_ext
6329cat >>conftest.$ac_ext <<_ACEOF
6330/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006331/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6333#define $ac_func innocuous_$ac_func
6334
Alexandre Julliardc5552742002-04-03 20:24:44 +00006335/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006336 which can conflict with char $ac_func (); below.
6337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6338 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006339
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006340#ifdef __STDC__
6341# include <limits.h>
6342#else
6343# include <assert.h>
6344#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00006345
6346#undef $ac_func
6347
Alexandre Julliardc5552742002-04-03 20:24:44 +00006348/* Override any gcc2 internal prototype to avoid an error. */
6349#ifdef __cplusplus
6350extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006351{
Alexandre Julliardc5552742002-04-03 20:24:44 +00006352#endif
6353/* We use char because int might match the return type of a gcc2
6354 builtin and then its argument prototype would still apply. */
6355char $ac_func ();
Alexandre Julliardc5552742002-04-03 20:24:44 +00006356/* The GNU C library defines this for functions which it implements
6357 to always fail with ENOSYS. Some functions are actually named
6358 something starting with __ and the normal name is an alias. */
6359#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6360choke me
6361#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006362char (*f) () = $ac_func;
6363#endif
6364#ifdef __cplusplus
6365}
Alexandre Julliardc5552742002-04-03 20:24:44 +00006366#endif
6367
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006368int
6369main ()
6370{
6371return f != $ac_func;
Alexandre Julliardc5552742002-04-03 20:24:44 +00006372 ;
6373 return 0;
6374}
6375_ACEOF
6376rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006378 (eval $ac_link) 2>conftest.er1
Alexandre Julliardc5552742002-04-03 20:24:44 +00006379 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006380 grep -v '^ *+' conftest.er1 >conftest.err
6381 rm -f conftest.er1
6382 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006384 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 (eval $ac_try) 2>&5
6388 ac_status=$?
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; } &&
6391 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006393 (eval $ac_try) 2>&5
6394 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006396 (exit $ac_status); }; }; then
6397 eval "$as_ac_var=yes"
6398else
6399 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006400sed 's/^/| /' conftest.$ac_ext >&5
6401
Alexandre Julliardc5552742002-04-03 20:24:44 +00006402eval "$as_ac_var=no"
6403fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006404rm -f conftest.err conftest.$ac_objext \
6405 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc5552742002-04-03 20:24:44 +00006406fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006408echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6409if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006410 cat >>confdefs.h <<_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00006411#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006412_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00006413
6414else
6415
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006416echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006417echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6418if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6420else
6421 ac_check_lib_save_LIBS=$LIBS
6422LIBS="-lresolv $LIBS"
6423cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006424/* confdefs.h. */
6425_ACEOF
6426cat confdefs.h >>conftest.$ac_ext
6427cat >>conftest.$ac_ext <<_ACEOF
6428/* end confdefs.h. */
Francois Gouget3b943bc2002-04-01 21:05:15 +00006429
6430/* Override any gcc2 internal prototype to avoid an error. */
6431#ifdef __cplusplus
6432extern "C"
6433#endif
6434/* We use char because int might match the return type of a gcc2
6435 builtin and then its argument prototype would still apply. */
6436char inet_aton ();
6437int
6438main ()
6439{
6440inet_aton ();
6441 ;
6442 return 0;
6443}
6444_ACEOF
6445rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006447 (eval $ac_link) 2>conftest.er1
Francois Gouget3b943bc2002-04-01 21:05:15 +00006448 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006449 grep -v '^ *+' conftest.er1 >conftest.err
6450 rm -f conftest.er1
6451 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006453 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 (eval $ac_try) 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; } &&
6460 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006462 (eval $ac_try) 2>&5
6463 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006465 (exit $ac_status); }; }; then
6466 ac_cv_lib_resolv_inet_aton=yes
6467else
6468 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006469sed 's/^/| /' conftest.$ac_ext >&5
6470
Francois Gouget3b943bc2002-04-01 21:05:15 +00006471ac_cv_lib_resolv_inet_aton=no
6472fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006473rm -f conftest.err conftest.$ac_objext \
6474 conftest$ac_exeext conftest.$ac_ext
Francois Gouget3b943bc2002-04-01 21:05:15 +00006475LIBS=$ac_check_lib_save_LIBS
6476fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006477echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006478echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6479if test $ac_cv_lib_resolv_inet_aton = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006480 cat >>confdefs.h <<_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00006481#define HAVE_LIBRESOLV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006482_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00006483
6484 LIBS="-lresolv $LIBS"
6485
6486fi
6487
Alexandre Julliardc5552742002-04-03 20:24:44 +00006488fi
6489done
6490
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006491
6492echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006493echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6494if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006496else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006497 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006498LIBS="-lxpg4 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006499cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006500/* confdefs.h. */
6501_ACEOF
6502cat confdefs.h >>conftest.$ac_ext
6503cat >>conftest.$ac_ext <<_ACEOF
6504/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006505
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006506/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006507#ifdef __cplusplus
6508extern "C"
6509#endif
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006510/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006511 builtin and then its argument prototype would still apply. */
6512char _xpg4_setrunelocale ();
6513int
6514main ()
6515{
6516_xpg4_setrunelocale ();
6517 ;
6518 return 0;
6519}
6520_ACEOF
6521rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006523 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006524 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006525 grep -v '^ *+' conftest.er1 >conftest.err
6526 rm -f conftest.er1
6527 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006529 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 (eval $ac_try) 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; } &&
6536 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006538 (eval $ac_try) 2>&5
6539 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006541 (exit $ac_status); }; }; then
6542 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006543else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006544 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006545sed 's/^/| /' conftest.$ac_ext >&5
6546
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006547ac_cv_lib_xpg4__xpg4_setrunelocale=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006548fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006549rm -f conftest.err conftest.$ac_objext \
6550 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006551LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006552fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006553echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006554echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6555if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006556 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006557#define HAVE_LIBXPG4 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006558_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006559
6560 LIBS="-lxpg4 $LIBS"
6561
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006562fi
6563
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006564
6565echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6566echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6567if test "${ac_cv_lib_poll_poll+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6569else
6570 ac_check_lib_save_LIBS=$LIBS
6571LIBS="-lpoll $LIBS"
6572cat >conftest.$ac_ext <<_ACEOF
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006573/* confdefs.h. */
6574_ACEOF
6575cat confdefs.h >>conftest.$ac_ext
6576cat >>conftest.$ac_ext <<_ACEOF
6577/* end confdefs.h. */
6578
6579/* Override any gcc2 internal prototype to avoid an error. */
6580#ifdef __cplusplus
6581extern "C"
6582#endif
6583/* We use char because int might match the return type of a gcc2
6584 builtin and then its argument prototype would still apply. */
6585char poll ();
6586int
6587main ()
6588{
6589poll ();
6590 ;
6591 return 0;
6592}
6593_ACEOF
6594rm -f conftest.$ac_objext conftest$ac_exeext
6595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006596 (eval $ac_link) 2>conftest.er1
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006597 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006598 grep -v '^ *+' conftest.er1 >conftest.err
6599 rm -f conftest.er1
6600 cat conftest.err >&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 (eval $ac_try) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; } &&
6609 { ac_try='test -s conftest$ac_exeext'
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 (eval $ac_try) 2>&5
6612 ac_status=$?
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; }; then
6615 ac_cv_lib_poll_poll=yes
6616else
6617 echo "$as_me: failed program was:" >&5
6618sed 's/^/| /' conftest.$ac_ext >&5
6619
6620ac_cv_lib_poll_poll=no
6621fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006622rm -f conftest.err conftest.$ac_objext \
6623 conftest$ac_exeext conftest.$ac_ext
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006624LIBS=$ac_check_lib_save_LIBS
6625fi
6626echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6627echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6628if test $ac_cv_lib_poll_poll = yes; then
6629 cat >>confdefs.h <<_ACEOF
6630#define HAVE_LIBPOLL 1
6631_ACEOF
6632
6633 LIBS="-lpoll $LIBS"
6634
6635fi
6636
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00006637
6638echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
6639echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6
6640if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642else
6643 ac_check_lib_save_LIBS=$LIBS
6644LIBS="-lresolv $LIBS"
6645cat >conftest.$ac_ext <<_ACEOF
6646/* confdefs.h. */
6647_ACEOF
6648cat confdefs.h >>conftest.$ac_ext
6649cat >>conftest.$ac_ext <<_ACEOF
6650/* end confdefs.h. */
6651
6652/* Override any gcc2 internal prototype to avoid an error. */
6653#ifdef __cplusplus
6654extern "C"
6655#endif
6656/* We use char because int might match the return type of a gcc2
6657 builtin and then its argument prototype would still apply. */
6658char res_9_init ();
6659int
6660main ()
6661{
6662res_9_init ();
6663 ;
6664 return 0;
6665}
6666_ACEOF
6667rm -f conftest.$ac_objext conftest$ac_exeext
6668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6669 (eval $ac_link) 2>conftest.er1
6670 ac_status=$?
6671 grep -v '^ *+' conftest.er1 >conftest.err
6672 rm -f conftest.er1
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 (eval $ac_try) 2>&5
6679 ac_status=$?
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; } &&
6682 { ac_try='test -s conftest$ac_exeext'
6683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 (eval $ac_try) 2>&5
6685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; }; then
6688 ac_cv_lib_resolv_res_9_init=yes
6689else
6690 echo "$as_me: failed program was:" >&5
6691sed 's/^/| /' conftest.$ac_ext >&5
6692
6693ac_cv_lib_resolv_res_9_init=no
6694fi
6695rm -f conftest.err conftest.$ac_objext \
6696 conftest$ac_exeext conftest.$ac_ext
6697LIBS=$ac_check_lib_save_LIBS
6698fi
6699echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
6700echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6
6701if test $ac_cv_lib_resolv_res_9_init = yes; then
6702 cat >>confdefs.h <<_ACEOF
6703#define HAVE_LIBRESOLV 1
6704_ACEOF
6705
6706 LIBS="-lresolv $LIBS"
6707
6708fi
6709
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006710echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6711echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6712if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006713 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006714else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006715 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006716LIBS="-lpthread $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006717cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006718/* confdefs.h. */
6719_ACEOF
6720cat confdefs.h >>conftest.$ac_ext
6721cat >>conftest.$ac_ext <<_ACEOF
6722/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006723
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006724/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006725#ifdef __cplusplus
6726extern "C"
6727#endif
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006728/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006729 builtin and then its argument prototype would still apply. */
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006730char pthread_create ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006731int
6732main ()
6733{
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006734pthread_create ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006735 ;
6736 return 0;
6737}
6738_ACEOF
6739rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006741 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006742 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006743 grep -v '^ *+' conftest.er1 >conftest.err
6744 rm -f conftest.er1
6745 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006747 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750 (eval $ac_try) 2>&5
6751 ac_status=$?
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); }; } &&
6754 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006756 (eval $ac_try) 2>&5
6757 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006759 (exit $ac_status); }; }; then
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006760 ac_cv_lib_pthread_pthread_create=yes
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006761else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006762 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006763sed 's/^/| /' conftest.$ac_ext >&5
6764
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006765ac_cv_lib_pthread_pthread_create=no
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006766fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006767rm -f conftest.err conftest.$ac_objext \
6768 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006769LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006770fi
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006771echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6772echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6773if test $ac_cv_lib_pthread_pthread_create = yes; then
6774 LIBPTHREAD="-lpthread"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006775
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006776fi
6777
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006778
Alexandre Julliard562089b2001-12-31 22:28:35 +00006779
Huw Daviese82dfab2004-08-04 19:10:26 +00006780
6781XFILES=""
6782
6783OPENGLFILES=""
6784
6785GLU32FILES=""
6786
6787OPENGL_LIBS=""
Huw Daviese82dfab2004-08-04 19:10:26 +00006788
Rein Klazes7ff12562004-11-09 20:16:35 +00006789
6790echo "$as_me:$LINENO: checking for ANSI C header files" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006791echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6792if test "${ac_cv_header_stdc+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006793 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00006794else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006795 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006796/* confdefs.h. */
6797_ACEOF
6798cat confdefs.h >>conftest.$ac_ext
6799cat >>conftest.$ac_ext <<_ACEOF
6800/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006801#include <stdlib.h>
6802#include <stdarg.h>
6803#include <string.h>
6804#include <float.h>
6805
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006806int
6807main ()
6808{
6809
6810 ;
6811 return 0;
6812}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006813_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006814rm -f conftest.$ac_objext
6815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006816 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006817 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006818 grep -v '^ *+' conftest.er1 >conftest.err
6819 rm -f conftest.er1
6820 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006822 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 (eval $ac_try) 2>&5
6826 ac_status=$?
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); }; } &&
6829 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 (eval $ac_try) 2>&5
6832 ac_status=$?
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); }; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006835 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006836else
6837 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006838sed 's/^/| /' conftest.$ac_ext >&5
6839
6840ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00006841fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006843
6844if test $ac_cv_header_stdc = yes; then
6845 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6846 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006847/* confdefs.h. */
6848_ACEOF
6849cat confdefs.h >>conftest.$ac_ext
6850cat >>conftest.$ac_ext <<_ACEOF
6851/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006852#include <string.h>
6853
6854_ACEOF
6855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006856 $EGREP "memchr" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006857 :
6858else
6859 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00006860fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006861rm -f conftest*
6862
6863fi
6864
6865if test $ac_cv_header_stdc = yes; then
6866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6867 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006868/* confdefs.h. */
6869_ACEOF
6870cat confdefs.h >>conftest.$ac_ext
6871cat >>conftest.$ac_ext <<_ACEOF
6872/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006873#include <stdlib.h>
6874
6875_ACEOF
6876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006877 $EGREP "free" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006878 :
6879else
6880 ac_cv_header_stdc=no
6881fi
6882rm -f conftest*
6883
6884fi
6885
6886if test $ac_cv_header_stdc = yes; then
6887 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6888 if test "$cross_compiling" = yes; then
6889 :
6890else
6891 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006892/* confdefs.h. */
6893_ACEOF
6894cat confdefs.h >>conftest.$ac_ext
6895cat >>conftest.$ac_ext <<_ACEOF
6896/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006897#include <ctype.h>
6898#if ((' ' & 0x0FF) == 0x020)
6899# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6900# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6901#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006902# define ISLOWER(c) \
Alexandre Julliard875927f2004-01-02 01:55:29 +00006903 (('a' <= (c) && (c) <= 'i') \
6904 || ('j' <= (c) && (c) <= 'r') \
6905 || ('s' <= (c) && (c) <= 'z'))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006906# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6907#endif
6908
6909#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6910int
6911main ()
6912{
6913 int i;
6914 for (i = 0; i < 256; i++)
6915 if (XOR (islower (i), ISLOWER (i))
Alexandre Julliard875927f2004-01-02 01:55:29 +00006916 || toupper (i) != TOUPPER (i))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006917 exit(2);
6918 exit (0);
6919}
6920_ACEOF
6921rm -f conftest$ac_exeext
6922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6923 (eval $ac_link) 2>&5
6924 ac_status=$?
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928 (eval $ac_try) 2>&5
6929 ac_status=$?
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; }; then
6932 :
6933else
6934 echo "$as_me: program exited with status $ac_status" >&5
6935echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006936sed 's/^/| /' conftest.$ac_ext >&5
6937
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006938( exit $ac_status )
6939ac_cv_header_stdc=no
6940fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +00006941rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006942fi
6943fi
6944fi
6945echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6946echo "${ECHO_T}$ac_cv_header_stdc" >&6
6947if test $ac_cv_header_stdc = yes; then
6948
6949cat >>confdefs.h <<\_ACEOF
6950#define STDC_HEADERS 1
6951_ACEOF
6952
6953fi
6954
6955# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Alexandre Julliard875927f2004-01-02 01:55:29 +00006966 inttypes.h stdint.h unistd.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006967do
6968as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6969echo "$as_me:$LINENO: checking for $ac_header" >&5
6970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6971if eval "test \"\${$as_ac_Header+set}\" = set"; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973else
6974 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006975/* confdefs.h. */
6976_ACEOF
6977cat confdefs.h >>conftest.$ac_ext
6978cat >>conftest.$ac_ext <<_ACEOF
6979/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006980$ac_includes_default
6981
6982#include <$ac_header>
6983_ACEOF
6984rm -f conftest.$ac_objext
6985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006986 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006987 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006988 grep -v '^ *+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 (eval $ac_try) 2>&5
6996 ac_status=$?
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; } &&
6999 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 (eval $ac_try) 2>&5
7002 ac_status=$?
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; }; then
7005 eval "$as_ac_Header=yes"
7006else
7007 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007008sed 's/^/| /' conftest.$ac_ext >&5
7009
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007010eval "$as_ac_Header=no"
7011fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007013fi
7014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007015echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7016if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007017 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007018#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007019_ACEOF
7020
7021fi
7022
7023done
7024
7025
7026
Rein Klazes7ff12562004-11-09 20:16:35 +00007027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
Steven Edwards57279182005-03-04 12:38:36 +00007109
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00007110
Emmanuel Maillard64c07782005-05-18 18:20:23 +00007111
7112
Phil Krylov0f6c0392005-07-01 19:15:26 +00007113
Rein Klazes7ff12562004-11-09 20:16:35 +00007114for ac_header in \
Phil Krylov0f6c0392005-07-01 19:15:26 +00007115 IOKit/IOKitLib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007116 arpa/inet.h \
7117 arpa/nameser.h \
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00007118 asm/types.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007119 cups/cups.h \
7120 direct.h \
7121 elf.h \
7122 float.h \
7123 fontconfig/fontconfig.h \
7124 getopt.h \
7125 gif_lib.h \
7126 ieeefp.h \
7127 io.h \
7128 jack/jack.h \
7129 jpeglib.h \
Kevin Koltzaua2bbacb2004-11-23 17:33:55 +00007130 lcms/lcms.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007131 lcms.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007132 link.h \
7133 linux/cdrom.h \
7134 linux/compiler.h \
7135 linux/hdreg.h \
7136 linux/input.h \
7137 linux/ioctl.h \
7138 linux/joystick.h \
7139 linux/major.h \
7140 linux/param.h \
7141 linux/serial.h \
7142 linux/ucdrom.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00007143 mach/machine.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007144 machine/cpu.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00007145 machine/limits.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007146 mntent.h \
7147 netdb.h \
7148 netinet/in.h \
7149 netinet/in_systm.h \
7150 netinet/tcp.h \
7151 netinet/tcp_fsm.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007152 openssl/ssl.h \
Steven Edwards57279182005-03-04 12:38:36 +00007153 poll.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007154 process.h \
7155 pthread.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007156 pwd.h \
7157 regex.h \
7158 sched.h \
7159 scsi/sg.h \
7160 scsi/scsi.h \
7161 scsi/scsi_ioctl.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007162 stdint.h \
7163 strings.h \
7164 sys/cdio.h \
7165 sys/elf32.h \
7166 sys/errno.h \
7167 sys/epoll.h \
7168 sys/exec_elf.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007169 sys/filio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007170 sys/ioctl.h \
7171 sys/ipc.h \
7172 sys/link.h \
7173 sys/lwp.h \
7174 sys/mman.h \
7175 sys/modem.h \
7176 sys/msg.h \
7177 sys/param.h \
7178 sys/poll.h \
7179 sys/ptrace.h \
7180 sys/reg.h \
7181 sys/scsiio.h \
7182 sys/shm.h \
7183 sys/signal.h \
7184 sys/socket.h \
7185 sys/sockio.h \
7186 sys/statfs.h \
7187 sys/statvfs.h \
7188 sys/strtio.h \
7189 sys/syscall.h \
7190 sys/sysctl.h \
7191 sys/time.h \
7192 sys/times.h \
7193 sys/uio.h \
7194 sys/un.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007195 sys/vfs.h \
7196 sys/vm86.h \
7197 sys/wait.h \
7198 syscall.h \
7199 termios.h \
7200 unistd.h \
7201 utime.h \
7202 valgrind/memcheck.h
7203
7204do
7205as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7206if eval "test \"\${$as_ac_Header+set}\" = set"; then
7207 echo "$as_me:$LINENO: checking for $ac_header" >&5
7208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7209if eval "test \"\${$as_ac_Header+set}\" = set"; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7211fi
7212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7213echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7214else
7215 # Is the header compilable?
7216echo "$as_me:$LINENO: checking $ac_header usability" >&5
7217echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7218cat >conftest.$ac_ext <<_ACEOF
7219/* confdefs.h. */
7220_ACEOF
7221cat confdefs.h >>conftest.$ac_ext
7222cat >>conftest.$ac_ext <<_ACEOF
7223/* end confdefs.h. */
7224$ac_includes_default
7225#include <$ac_header>
7226_ACEOF
7227rm -f conftest.$ac_objext
7228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7229 (eval $ac_compile) 2>conftest.er1
7230 ac_status=$?
7231 grep -v '^ *+' conftest.er1 >conftest.err
7232 rm -f conftest.er1
7233 cat conftest.err >&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } &&
7236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238 (eval $ac_try) 2>&5
7239 ac_status=$?
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); }; } &&
7242 { ac_try='test -s conftest.$ac_objext'
7243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 (eval $ac_try) 2>&5
7245 ac_status=$?
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; }; then
7248 ac_header_compiler=yes
7249else
7250 echo "$as_me: failed program was:" >&5
7251sed 's/^/| /' conftest.$ac_ext >&5
7252
7253ac_header_compiler=no
7254fi
7255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7256echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7257echo "${ECHO_T}$ac_header_compiler" >&6
7258
7259# Is the header present?
7260echo "$as_me:$LINENO: checking $ac_header presence" >&5
7261echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7262cat >conftest.$ac_ext <<_ACEOF
7263/* confdefs.h. */
7264_ACEOF
7265cat confdefs.h >>conftest.$ac_ext
7266cat >>conftest.$ac_ext <<_ACEOF
7267/* end confdefs.h. */
7268#include <$ac_header>
7269_ACEOF
7270if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7272 ac_status=$?
7273 grep -v '^ *+' conftest.er1 >conftest.err
7274 rm -f conftest.er1
7275 cat conftest.err >&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } >/dev/null; then
7278 if test -s conftest.err; then
7279 ac_cpp_err=$ac_c_preproc_warn_flag
7280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7281 else
7282 ac_cpp_err=
7283 fi
7284else
7285 ac_cpp_err=yes
7286fi
7287if test -z "$ac_cpp_err"; then
7288 ac_header_preproc=yes
7289else
7290 echo "$as_me: failed program was:" >&5
7291sed 's/^/| /' conftest.$ac_ext >&5
7292
7293 ac_header_preproc=no
7294fi
7295rm -f conftest.err conftest.$ac_ext
7296echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7297echo "${ECHO_T}$ac_header_preproc" >&6
7298
7299# So? What about this header?
7300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7301 yes:no: )
7302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7303echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7305echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7306 ac_header_preproc=yes
7307 ;;
7308 no:yes:* )
7309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7310echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7312echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7314echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7316echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7318echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7320echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7321 (
7322 cat <<\_ASBOX
7323## ------------------------------------ ##
7324## Report this to wine-devel@winehq.org ##
7325## ------------------------------------ ##
7326_ASBOX
7327 ) |
7328 sed "s/^/$as_me: WARNING: /" >&2
7329 ;;
7330esac
7331echo "$as_me:$LINENO: checking for $ac_header" >&5
7332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7333if eval "test \"\${$as_ac_Header+set}\" = set"; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7335else
7336 eval "$as_ac_Header=\$ac_header_preproc"
7337fi
7338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7339echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7340
7341fi
7342if test `eval echo '${'$as_ac_Header'}'` = yes; then
7343 cat >>confdefs.h <<_ACEOF
7344#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7345_ACEOF
7346
7347fi
7348
7349done
7350
7351echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7352echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
7353if test "${ac_cv_header_stat_broken+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7355else
7356 cat >conftest.$ac_ext <<_ACEOF
7357/* confdefs.h. */
7358_ACEOF
7359cat confdefs.h >>conftest.$ac_ext
7360cat >>conftest.$ac_ext <<_ACEOF
7361/* end confdefs.h. */
7362#include <sys/types.h>
7363#include <sys/stat.h>
7364
7365#if defined(S_ISBLK) && defined(S_IFDIR)
7366# if S_ISBLK (S_IFDIR)
7367You lose.
7368# endif
7369#endif
7370
7371#if defined(S_ISBLK) && defined(S_IFCHR)
7372# if S_ISBLK (S_IFCHR)
7373You lose.
7374# endif
7375#endif
7376
7377#if defined(S_ISLNK) && defined(S_IFREG)
7378# if S_ISLNK (S_IFREG)
7379You lose.
7380# endif
7381#endif
7382
7383#if defined(S_ISSOCK) && defined(S_IFREG)
7384# if S_ISSOCK (S_IFREG)
7385You lose.
7386# endif
7387#endif
7388
7389_ACEOF
7390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7391 $EGREP "You lose" >/dev/null 2>&1; then
7392 ac_cv_header_stat_broken=yes
7393else
7394 ac_cv_header_stat_broken=no
7395fi
7396rm -f conftest*
7397
7398fi
7399echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7400echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
7401if test $ac_cv_header_stat_broken = yes; then
7402
7403cat >>confdefs.h <<\_ACEOF
7404#define STAT_MACROS_BROKEN 1
7405_ACEOF
7406
7407fi
7408
7409
7410
7411if test "$have_x" = "yes"
7412then
7413 XLIB="-lXext -lX11"
7414 ac_save_CPPFLAGS="$CPPFLAGS"
7415 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7416
7417
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007418for ac_header in X11/Xlib.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007419do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007420as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007421if eval "test \"\${$as_ac_Header+set}\" = set"; then
7422 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7424if eval "test \"\${$as_ac_Header+set}\" = set"; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007426fi
7427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7428echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007429else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007430 # Is the header compilable?
7431echo "$as_me:$LINENO: checking $ac_header usability" >&5
7432echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7433cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007434/* confdefs.h. */
7435_ACEOF
7436cat confdefs.h >>conftest.$ac_ext
7437cat >>conftest.$ac_ext <<_ACEOF
7438/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007439$ac_includes_default
7440#include <$ac_header>
7441_ACEOF
7442rm -f conftest.$ac_objext
7443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007444 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007445 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007446 grep -v '^ *+' conftest.er1 >conftest.err
7447 rm -f conftest.er1
7448 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 (eval $ac_try) 2>&5
7454 ac_status=$?
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; } &&
7457 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459 (eval $ac_try) 2>&5
7460 ac_status=$?
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; }; then
7463 ac_header_compiler=yes
7464else
7465 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007466sed 's/^/| /' conftest.$ac_ext >&5
7467
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007468ac_header_compiler=no
7469fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007471echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7472echo "${ECHO_T}$ac_header_compiler" >&6
7473
7474# Is the header present?
7475echo "$as_me:$LINENO: checking $ac_header presence" >&5
7476echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7477cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007478/* confdefs.h. */
7479_ACEOF
7480cat confdefs.h >>conftest.$ac_ext
7481cat >>conftest.$ac_ext <<_ACEOF
7482/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007483#include <$ac_header>
7484_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007485if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7487 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007488 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007489 rm -f conftest.er1
7490 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007492 (exit $ac_status); } >/dev/null; then
7493 if test -s conftest.err; then
7494 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00007495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007496 else
7497 ac_cpp_err=
7498 fi
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007499else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007500 ac_cpp_err=yes
7501fi
7502if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007503 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007504else
7505 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007506sed 's/^/| /' conftest.$ac_ext >&5
7507
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007508 ac_header_preproc=no
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007509fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007510rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007511echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7512echo "${ECHO_T}$ac_header_preproc" >&6
7513
7514# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007515case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7516 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7518echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7520echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7521 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007522 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00007523 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7525echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7527echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7529echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7531echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007533echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7535echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007536 (
7537 cat <<\_ASBOX
7538## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00007539## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007540## ------------------------------------ ##
7541_ASBOX
7542 ) |
7543 sed "s/^/$as_me: WARNING: /" >&2
7544 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007545esac
7546echo "$as_me:$LINENO: checking for $ac_header" >&5
7547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7548if eval "test \"\${$as_ac_Header+set}\" = set"; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550else
Alexandre Julliard875927f2004-01-02 01:55:29 +00007551 eval "$as_ac_Header=\$ac_header_preproc"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007552fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007555
7556fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007557if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007558 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007560_ACEOF
7561
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007562
Alexandre Julliard255b4862003-10-15 04:09:55 +00007563
7564
7565
7566
7567
7568
7569
7570
7571for ac_header in X11/XKBlib.h \
7572 X11/Xutil.h \
7573 X11/extensions/shape.h \
Aric Stewart2eebf3c2004-01-09 00:03:00 +00007574 X11/extensions/XInput.h \
Alexandre Julliard255b4862003-10-15 04:09:55 +00007575 X11/extensions/XShm.h \
7576 X11/extensions/Xrandr.h \
7577 X11/extensions/Xrender.h \
Alexandre Julliard255b4862003-10-15 04:09:55 +00007578 X11/extensions/xf86dga.h \
7579 X11/extensions/xf86vmode.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007580do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007581as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007582echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7584if eval "test \"\${$as_ac_Header+set}\" = set"; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007586else
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007587 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007588/* confdefs.h. */
7589_ACEOF
7590cat confdefs.h >>conftest.$ac_ext
7591cat >>conftest.$ac_ext <<_ACEOF
7592/* end confdefs.h. */
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007593#include <X11/Xlib.h>
Alexandre Julliard255b4862003-10-15 04:09:55 +00007594 #ifdef HAVE_X11_XUTIL_H
7595 # include <X11/Xutil.h>
7596 #endif
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007597
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007598#include <$ac_header>
7599_ACEOF
7600rm -f conftest.$ac_objext
7601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007602 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007603 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007604 grep -v '^ *+' conftest.er1 >conftest.err
7605 rm -f conftest.er1
7606 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611 (eval $ac_try) 2>&5
7612 ac_status=$?
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); }; } &&
7615 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7617 (eval $ac_try) 2>&5
7618 ac_status=$?
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); }; }; then
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007621 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007622else
7623 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007624sed 's/^/| /' conftest.$ac_ext >&5
7625
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007626eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007627fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007629fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007630echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007631echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7632if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007633 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007634#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007635_ACEOF
Alexandre Julliard255b4862003-10-15 04:09:55 +00007636
7637fi
7638
7639done
7640
7641
7642 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7643 then
7644 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007645echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7646if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007648else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007649 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00007650LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007651cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007652/* confdefs.h. */
7653_ACEOF
7654cat confdefs.h >>conftest.$ac_ext
7655cat >>conftest.$ac_ext <<_ACEOF
7656/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007657
Patrik Stridvall24110281999-02-04 10:09:54 +00007658/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007659#ifdef __cplusplus
7660extern "C"
7661#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007662/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007663 builtin and then its argument prototype would still apply. */
7664char XkbQueryExtension ();
7665int
7666main ()
7667{
7668XkbQueryExtension ();
7669 ;
7670 return 0;
7671}
7672_ACEOF
7673rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007675 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007676 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007677 grep -v '^ *+' conftest.er1 >conftest.err
7678 rm -f conftest.er1
7679 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007681 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 (eval $ac_try) 2>&5
7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; } &&
7688 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007690 (eval $ac_try) 2>&5
7691 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007693 (exit $ac_status); }; }; then
7694 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007695else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007696 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007697sed 's/^/| /' conftest.$ac_ext >&5
7698
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007699ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007700fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007701rm -f conftest.err conftest.$ac_objext \
7702 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007703LIBS=$ac_check_lib_save_LIBS
7704fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007705echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007706echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7707if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00007708
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007709cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007710#define HAVE_XKB 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007711_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00007712
Patrik Stridvall24110281999-02-04 10:09:54 +00007713fi
7714
Alexandre Julliard255b4862003-10-15 04:09:55 +00007715 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007716
Alexandre Julliard255b4862003-10-15 04:09:55 +00007717 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7718 then
7719 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007720echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7721if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00007723else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007724 ac_check_lib_save_LIBS=$LIBS
Francois Jacques5b6879c2000-07-28 23:04:54 +00007725LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007726cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007727/* confdefs.h. */
7728_ACEOF
7729cat confdefs.h >>conftest.$ac_ext
7730cat >>conftest.$ac_ext <<_ACEOF
7731/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007732
Francois Jacques5b6879c2000-07-28 23:04:54 +00007733/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007734#ifdef __cplusplus
7735extern "C"
7736#endif
Francois Jacques5b6879c2000-07-28 23:04:54 +00007737/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007738 builtin and then its argument prototype would still apply. */
7739char XShmQueryExtension ();
7740int
7741main ()
7742{
7743XShmQueryExtension ();
7744 ;
7745 return 0;
7746}
7747_ACEOF
7748rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007750 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007751 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007752 grep -v '^ *+' conftest.er1 >conftest.err
7753 rm -f conftest.er1
7754 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007756 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759 (eval $ac_try) 2>&5
7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; } &&
7763 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007765 (eval $ac_try) 2>&5
7766 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007768 (exit $ac_status); }; }; then
7769 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00007770else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007771 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007772sed 's/^/| /' conftest.$ac_ext >&5
7773
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007774ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00007775fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007776rm -f conftest.err conftest.$ac_objext \
7777 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007778LIBS=$ac_check_lib_save_LIBS
7779fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007780echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007781echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7782if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00007783
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007784cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007785#define HAVE_LIBXXSHM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007786_ACEOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00007787
Francois Jacques5b6879c2000-07-28 23:04:54 +00007788fi
7789
Alexandre Julliard255b4862003-10-15 04:09:55 +00007790 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007791
Alexandre Julliard255b4862003-10-15 04:09:55 +00007792 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7793 then
7794 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007795echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7796if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00007798else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007799 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00007800LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007801cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007802/* confdefs.h. */
7803_ACEOF
7804cat confdefs.h >>conftest.$ac_ext
7805cat >>conftest.$ac_ext <<_ACEOF
7806/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007807
Ove Kaavenc90fb252001-01-02 22:39:14 +00007808/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007809#ifdef __cplusplus
7810extern "C"
7811#endif
Ove Kaavenc90fb252001-01-02 22:39:14 +00007812/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007813 builtin and then its argument prototype would still apply. */
7814char XShapeQueryExtension ();
7815int
7816main ()
7817{
7818XShapeQueryExtension ();
7819 ;
7820 return 0;
7821}
7822_ACEOF
7823rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007825 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007826 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007827 grep -v '^ *+' conftest.er1 >conftest.err
7828 rm -f conftest.er1
7829 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007831 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 (eval $ac_try) 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; } &&
7838 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007840 (eval $ac_try) 2>&5
7841 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007843 (exit $ac_status); }; }; then
7844 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00007845else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007846 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007847sed 's/^/| /' conftest.$ac_ext >&5
7848
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007849ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00007850fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007851rm -f conftest.err conftest.$ac_objext \
7852 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007853LIBS=$ac_check_lib_save_LIBS
7854fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007855echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007856echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7857if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00007858
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007859cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007860#define HAVE_LIBXSHAPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007861_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007862
Ove Kaavenc90fb252001-01-02 22:39:14 +00007863fi
7864
Alexandre Julliard255b4862003-10-15 04:09:55 +00007865 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007866
Alexandre Julliard255b4862003-10-15 04:09:55 +00007867 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
7868 then
7869 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007870echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7871if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007873else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007874 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard255b4862003-10-15 04:09:55 +00007875LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007876cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007877/* confdefs.h. */
7878_ACEOF
7879cat confdefs.h >>conftest.$ac_ext
7880cat >>conftest.$ac_ext <<_ACEOF
7881/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007882
Patrik Stridvall24110281999-02-04 10:09:54 +00007883/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007884#ifdef __cplusplus
7885extern "C"
7886#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007887/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007888 builtin and then its argument prototype would still apply. */
7889char XDGAQueryExtension ();
7890int
7891main ()
7892{
7893XDGAQueryExtension ();
7894 ;
7895 return 0;
7896}
7897_ACEOF
7898rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007900 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007901 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007902 grep -v '^ *+' conftest.er1 >conftest.err
7903 rm -f conftest.er1
7904 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007906 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909 (eval $ac_try) 2>&5
7910 ac_status=$?
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); }; } &&
7913 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007915 (eval $ac_try) 2>&5
7916 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007918 (exit $ac_status); }; }; then
7919 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007920else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007921 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007922sed 's/^/| /' conftest.$ac_ext >&5
7923
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007924ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007925fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007926rm -f conftest.err conftest.$ac_objext \
7927 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007928LIBS=$ac_check_lib_save_LIBS
7929fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007930echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007931echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7932if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007933
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007934cat >>confdefs.h <<\_ACEOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007935#define HAVE_LIBXXF86DGA2 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007936_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00007937
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007938 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007939
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007940fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007941
Alexandre Julliard255b4862003-10-15 04:09:55 +00007942 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007943
Alexandre Julliard255b4862003-10-15 04:09:55 +00007944 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7945 then
7946 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007947echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7948if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007950else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007951 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard255b4862003-10-15 04:09:55 +00007952LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007953cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007954/* confdefs.h. */
7955_ACEOF
7956cat confdefs.h >>conftest.$ac_ext
7957cat >>conftest.$ac_ext <<_ACEOF
7958/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007959
Patrik Stridvall24110281999-02-04 10:09:54 +00007960/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007961#ifdef __cplusplus
7962extern "C"
7963#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007964/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007965 builtin and then its argument prototype would still apply. */
7966char XF86VidModeQueryExtension ();
7967int
7968main ()
7969{
7970XF86VidModeQueryExtension ();
7971 ;
7972 return 0;
7973}
7974_ACEOF
7975rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007977 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007978 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007979 grep -v '^ *+' conftest.er1 >conftest.err
7980 rm -f conftest.er1
7981 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007983 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986 (eval $ac_try) 2>&5
7987 ac_status=$?
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); }; } &&
7990 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007992 (eval $ac_try) 2>&5
7993 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007995 (exit $ac_status); }; }; then
7996 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007997else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007998 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007999sed 's/^/| /' conftest.$ac_ext >&5
8000
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008001ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008002fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008003rm -f conftest.err conftest.$ac_objext \
8004 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008005LIBS=$ac_check_lib_save_LIBS
8006fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008007echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008008echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
8009if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00008010
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008011cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00008012#define HAVE_LIBXXF86VM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008013_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008014
8015 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008016
Patrik Stridvall24110281999-02-04 10:09:54 +00008017fi
8018
Alexandre Julliard255b4862003-10-15 04:09:55 +00008019 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008020
Alexandre Julliard255b4862003-10-15 04:09:55 +00008021 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8022 then
Mike McCormackc7c9f932004-04-07 03:57:35 +00008023 cat >conftest.$ac_ext <<_ACEOF
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008024/* confdefs.h. */
8025_ACEOF
8026cat confdefs.h >>conftest.$ac_ext
8027cat >>conftest.$ac_ext <<_ACEOF
8028/* end confdefs.h. */
Mike McCormackc7c9f932004-04-07 03:57:35 +00008029#include <X11/Xlib.h>
8030#include <X11/extensions/Xrandr.h>
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008031int
8032main ()
8033{
Mike McCormackc7c9f932004-04-07 03:57:35 +00008034static typeof(XRRSetScreenConfigAndRate) * func;
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008035 ;
8036 return 0;
8037}
8038_ACEOF
Mike McCormackc7c9f932004-04-07 03:57:35 +00008039rm -f conftest.$ac_objext
8040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8041 (eval $ac_compile) 2>conftest.er1
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008042 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008043 grep -v '^ *+' conftest.er1 >conftest.err
8044 rm -f conftest.er1
8045 cat conftest.err >&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 (eval $ac_try) 2>&5
8051 ac_status=$?
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; } &&
Mike McCormackc7c9f932004-04-07 03:57:35 +00008054 { ac_try='test -s conftest.$ac_objext'
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 (eval $ac_try) 2>&5
8057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; }; then
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008060
8061cat >>confdefs.h <<\_ACEOF
8062#define HAVE_LIBXRANDR 1
8063_ACEOF
8064
Mike McCormackc7c9f932004-04-07 03:57:35 +00008065else
8066 echo "$as_me: failed program was:" >&5
8067sed 's/^/| /' conftest.$ac_ext >&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008068
8069fi
Mike McCormackc7c9f932004-04-07 03:57:35 +00008070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard255b4862003-10-15 04:09:55 +00008071 fi
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008072
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00008073 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
8074 then
8075 echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
8076echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6
8077if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8079else
8080 ac_check_lib_save_LIBS=$LIBS
8081LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8082cat >conftest.$ac_ext <<_ACEOF
8083/* confdefs.h. */
8084_ACEOF
8085cat confdefs.h >>conftest.$ac_ext
8086cat >>conftest.$ac_ext <<_ACEOF
8087/* end confdefs.h. */
8088
8089/* Override any gcc2 internal prototype to avoid an error. */
8090#ifdef __cplusplus
8091extern "C"
8092#endif
8093/* We use char because int might match the return type of a gcc2
8094 builtin and then its argument prototype would still apply. */
8095char XRenderSetPictureTransform ();
8096int
8097main ()
8098{
8099XRenderSetPictureTransform ();
8100 ;
8101 return 0;
8102}
8103_ACEOF
8104rm -f conftest.$ac_objext conftest$ac_exeext
8105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8106 (eval $ac_link) 2>conftest.er1
8107 ac_status=$?
8108 grep -v '^ *+' conftest.er1 >conftest.err
8109 rm -f conftest.er1
8110 cat conftest.err >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } &&
8113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115 (eval $ac_try) 2>&5
8116 ac_status=$?
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; } &&
8119 { ac_try='test -s conftest$ac_exeext'
8120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121 (eval $ac_try) 2>&5
8122 ac_status=$?
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; }; then
8125 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8126else
8127 echo "$as_me: failed program was:" >&5
8128sed 's/^/| /' conftest.$ac_ext >&5
8129
8130ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8131fi
8132rm -f conftest.err conftest.$ac_objext \
8133 conftest$ac_exeext conftest.$ac_ext
8134LIBS=$ac_check_lib_save_LIBS
8135fi
8136echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8137echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6
8138if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
8139
8140cat >>confdefs.h <<\_ACEOF
8141#define HAVE_XRENDERSETPICTURETRANSFORM 1
8142_ACEOF
8143
8144fi
8145
8146 fi
8147
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008148
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008149fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008150
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008151done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008152
Alexandre Julliardb8074992002-11-21 21:51:24 +00008153 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008154 then
Pierre d'Herbemont009781d2005-06-20 15:52:16 +00008155 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so -a ! -f /usr/X11R6/lib/libGL.dylib
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008156 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008157 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008158This prevents linking to OpenGL. Delete the file and restart configure." >&5
8159echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8160This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8161 { (exit 1); exit 1; }; }
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008162 fi
8163
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008164
8165
8166for ac_header in GL/gl.h GL/glx.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008167do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008168as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008169if eval "test \"\${$as_ac_Header+set}\" = set"; then
8170 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008171echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8172if eval "test \"\${$as_ac_Header+set}\" = set"; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008174fi
8175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8176echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008177else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008178 # Is the header compilable?
8179echo "$as_me:$LINENO: checking $ac_header usability" >&5
8180echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8181cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008182/* confdefs.h. */
8183_ACEOF
8184cat confdefs.h >>conftest.$ac_ext
8185cat >>conftest.$ac_ext <<_ACEOF
8186/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008187$ac_includes_default
8188#include <$ac_header>
8189_ACEOF
8190rm -f conftest.$ac_objext
8191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008192 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008193 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008194 grep -v '^ *+' conftest.er1 >conftest.err
8195 rm -f conftest.er1
8196 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201 (eval $ac_try) 2>&5
8202 ac_status=$?
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; } &&
8205 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207 (eval $ac_try) 2>&5
8208 ac_status=$?
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; }; then
8211 ac_header_compiler=yes
8212else
8213 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008214sed 's/^/| /' conftest.$ac_ext >&5
8215
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008216ac_header_compiler=no
8217fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008219echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8220echo "${ECHO_T}$ac_header_compiler" >&6
8221
8222# Is the header present?
8223echo "$as_me:$LINENO: checking $ac_header presence" >&5
8224echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8225cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008226/* confdefs.h. */
8227_ACEOF
8228cat confdefs.h >>conftest.$ac_ext
8229cat >>conftest.$ac_ext <<_ACEOF
8230/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008231#include <$ac_header>
8232_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008233if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8235 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008236 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008237 rm -f conftest.er1
8238 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008240 (exit $ac_status); } >/dev/null; then
8241 if test -s conftest.err; then
8242 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00008243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008244 else
8245 ac_cpp_err=
8246 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008247else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008248 ac_cpp_err=yes
8249fi
8250if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008251 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008252else
8253 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008254sed 's/^/| /' conftest.$ac_ext >&5
8255
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008256 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008257fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008258rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008259echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8260echo "${ECHO_T}$ac_header_preproc" >&6
8261
8262# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008263case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8264 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8266echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8268echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8269 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008270 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00008271 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8273echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8275echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8276 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8277echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8278 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8279echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008281echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008282 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8283echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008284 (
8285 cat <<\_ASBOX
8286## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00008287## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008288## ------------------------------------ ##
8289_ASBOX
8290 ) |
8291 sed "s/^/$as_me: WARNING: /" >&2
8292 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008293esac
8294echo "$as_me:$LINENO: checking for $ac_header" >&5
8295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8296if eval "test \"\${$as_ac_Header+set}\" = set"; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8298else
Alexandre Julliard875927f2004-01-02 01:55:29 +00008299 eval "$as_ac_Header=\$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00008300fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008302echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008303
Patrik Stridvall24110281999-02-04 10:09:54 +00008304fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008305if test `eval echo '${'$as_ac_Header'}'` = yes; then
8306 cat >>confdefs.h <<_ACEOF
8307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8308_ACEOF
8309
8310fi
8311
Patrik Stridvall24110281999-02-04 10:09:54 +00008312done
8313
Marcus Meissner22a969b2000-08-08 20:46:50 +00008314 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008315 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008316
8317for ac_header in GL/glext.h
8318do
8319as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8320echo "$as_me:$LINENO: checking for $ac_header" >&5
8321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8322if eval "test \"\${$as_ac_Header+set}\" = set"; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8324else
8325 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008326/* confdefs.h. */
8327_ACEOF
8328cat confdefs.h >>conftest.$ac_ext
8329cat >>conftest.$ac_ext <<_ACEOF
8330/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008331#include <GL/glx.h>
8332
8333#include <$ac_header>
8334_ACEOF
8335rm -f conftest.$ac_objext
8336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008337 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008338 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008339 grep -v '^ *+' conftest.er1 >conftest.err
8340 rm -f conftest.er1
8341 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; } &&
8350 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 (eval $ac_try) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 eval "$as_ac_Header=yes"
8357else
8358 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008359sed 's/^/| /' conftest.$ac_ext >&5
8360
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008361eval "$as_ac_Header=no"
8362fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008364fi
8365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8366echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8367if test `eval echo '${'$as_ac_Header'}'` = yes; then
8368 cat >>confdefs.h <<_ACEOF
8369#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8370_ACEOF
8371
8372fi
8373
8374done
8375
8376 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008377echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8378if test "${wine_cv_opengl_version_OK+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00008380else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008381 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008382/* confdefs.h. */
8383_ACEOF
8384cat confdefs.h >>conftest.$ac_ext
8385cat >>conftest.$ac_ext <<_ACEOF
8386/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00008387#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008388int
8389main ()
8390{
Lionel Ulmer5c085701999-02-28 19:48:53 +00008391GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008392 ;
8393 return 0;
8394}
8395_ACEOF
8396rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008398 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008399 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008400 grep -v '^ *+' conftest.er1 >conftest.err
8401 rm -f conftest.er1
8402 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008404 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407 (eval $ac_try) 2>&5
8408 ac_status=$?
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; } &&
8411 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008413 (eval $ac_try) 2>&5
8414 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008416 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008417 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008418else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008419 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008420sed 's/^/| /' conftest.$ac_ext >&5
8421
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008422wine_cv_opengl_version_OK="no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008423
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008424fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer5c085701999-02-28 19:48:53 +00008426
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008427fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008428echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008429echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8430
Alexandre Julliardb8074992002-11-21 21:51:24 +00008431 if test "$wine_cv_opengl_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008432 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008433 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008434echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8435if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008437else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008438 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner376ec882000-01-05 03:24:52 +00008439LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008440cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008441/* confdefs.h. */
8442_ACEOF
8443cat confdefs.h >>conftest.$ac_ext
8444cat >>conftest.$ac_ext <<_ACEOF
8445/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008446
Patrik Stridvall24110281999-02-04 10:09:54 +00008447/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008448#ifdef __cplusplus
8449extern "C"
8450#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00008451/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008452 builtin and then its argument prototype would still apply. */
8453char glXCreateContext ();
8454int
8455main ()
8456{
8457glXCreateContext ();
8458 ;
8459 return 0;
8460}
8461_ACEOF
8462rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008464 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008465 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008470 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 (eval $ac_try) 2>&5
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; } &&
8477 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008479 (eval $ac_try) 2>&5
8480 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008482 (exit $ac_status); }; }; then
8483 ac_cv_lib_GL_glXCreateContext=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00008484else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008485 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008486sed 's/^/| /' conftest.$ac_ext >&5
8487
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008488ac_cv_lib_GL_glXCreateContext=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008489fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008490rm -f conftest.err conftest.$ac_objext \
8491 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008492LIBS=$ac_check_lib_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00008493fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008494echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008495echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8496if test $ac_cv_lib_GL_glXCreateContext = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008497 OPENGL_LIBS="-lGL"
Patrik Stridvall24110281999-02-04 10:09:54 +00008498
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008499fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008500
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008501
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008502 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00008503 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00008504 OPENGLFILES='$(OPENGLFILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008505
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008506cat >>confdefs.h <<\_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008507#define HAVE_OPENGL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008508_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008509
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008510 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008511 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008512echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8513if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008515else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008516 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008517LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008518 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008519cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008520/* confdefs.h. */
8521_ACEOF
8522cat confdefs.h >>conftest.$ac_ext
8523cat >>conftest.$ac_ext <<_ACEOF
8524/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008525
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008526/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008527#ifdef __cplusplus
8528extern "C"
8529#endif
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008530/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008531 builtin and then its argument prototype would still apply. */
8532char gluLookAt ();
8533int
8534main ()
8535{
8536gluLookAt ();
8537 ;
8538 return 0;
8539}
8540_ACEOF
8541rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008543 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008544 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008545 grep -v '^ *+' conftest.er1 >conftest.err
8546 rm -f conftest.er1
8547 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008549 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 (eval $ac_try) 2>&5
8553 ac_status=$?
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; } &&
8556 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008558 (eval $ac_try) 2>&5
8559 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008561 (exit $ac_status); }; }; then
8562 ac_cv_lib_GLU_gluLookAt=yes
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008563else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008564 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008565sed 's/^/| /' conftest.$ac_ext >&5
8566
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008567ac_cv_lib_GLU_gluLookAt=no
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008568fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008569rm -f conftest.err conftest.$ac_objext \
8570 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008571LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008572fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008573echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008574echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8575if test $ac_cv_lib_GLU_gluLookAt = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008576 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008577 GLU32FILES='$(GLU32FILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008578
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008579fi
8580
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008581 fi
Jacek Cabanef799c42003-12-02 04:11:09 +00008582
8583 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8584echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8585if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8587else
8588 ac_check_lib_save_LIBS=$LIBS
Jacek Caban5e69f112003-12-03 20:26:43 +00008589LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
Jacek Cabanef799c42003-12-02 04:11:09 +00008590cat >conftest.$ac_ext <<_ACEOF
Jacek Cabanef799c42003-12-02 04:11:09 +00008591/* confdefs.h. */
8592_ACEOF
8593cat confdefs.h >>conftest.$ac_ext
8594cat >>conftest.$ac_ext <<_ACEOF
8595/* end confdefs.h. */
8596
8597/* Override any gcc2 internal prototype to avoid an error. */
8598#ifdef __cplusplus
8599extern "C"
8600#endif
8601/* We use char because int might match the return type of a gcc2
8602 builtin and then its argument prototype would still apply. */
8603char glutMainLoop ();
8604int
8605main ()
8606{
8607glutMainLoop ();
8608 ;
8609 return 0;
8610}
8611_ACEOF
8612rm -f conftest.$ac_objext conftest$ac_exeext
8613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008614 (eval $ac_link) 2>conftest.er1
Jacek Cabanef799c42003-12-02 04:11:09 +00008615 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008616 grep -v '^ *+' conftest.er1 >conftest.err
8617 rm -f conftest.er1
8618 cat conftest.err >&5
Jacek Cabanef799c42003-12-02 04:11:09 +00008619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 (eval $ac_try) 2>&5
8624 ac_status=$?
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; } &&
8627 { ac_try='test -s conftest$ac_exeext'
Jacek Cabanef799c42003-12-02 04:11:09 +00008628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 (eval $ac_try) 2>&5
8630 ac_status=$?
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; }; then
8633 ac_cv_lib_glut_glutMainLoop=yes
8634else
8635 echo "$as_me: failed program was:" >&5
8636sed 's/^/| /' conftest.$ac_ext >&5
8637
8638ac_cv_lib_glut_glutMainLoop=no
8639fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008640rm -f conftest.err conftest.$ac_objext \
8641 conftest$ac_exeext conftest.$ac_ext
Jacek Cabanef799c42003-12-02 04:11:09 +00008642LIBS=$ac_check_lib_save_LIBS
8643fi
8644echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
8645echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
8646if test $ac_cv_lib_glut_glutMainLoop = yes; then
Jacek Caban5e69f112003-12-03 20:26:43 +00008647 GLUT_LIBS="-lglut -lXmu -lXi"
Jacek Cabanef799c42003-12-02 04:11:09 +00008648
8649 GLUT32FILES='$(GLUT32FILES)'
8650
8651fi
8652
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008653 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008654 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00008655
Francois Gouget6f670b12002-10-10 17:54:27 +00008656 NASLIBS=""
8657
8658
8659for ac_header in audio/audiolib.h
8660do
8661as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8662if eval "test \"\${$as_ac_Header+set}\" = set"; then
8663 echo "$as_me:$LINENO: checking for $ac_header" >&5
8664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8665if eval "test \"\${$as_ac_Header+set}\" = set"; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8667fi
8668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8669echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8670else
8671 # Is the header compilable?
8672echo "$as_me:$LINENO: checking $ac_header usability" >&5
8673echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8674cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008675/* confdefs.h. */
8676_ACEOF
8677cat confdefs.h >>conftest.$ac_ext
8678cat >>conftest.$ac_ext <<_ACEOF
8679/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008680$ac_includes_default
8681#include <$ac_header>
8682_ACEOF
8683rm -f conftest.$ac_objext
8684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008685 (eval $ac_compile) 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00008686 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008687 grep -v '^ *+' conftest.er1 >conftest.err
8688 rm -f conftest.er1
8689 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00008690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694 (eval $ac_try) 2>&5
8695 ac_status=$?
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); }; } &&
8698 { ac_try='test -s conftest.$ac_objext'
Francois Gouget6f670b12002-10-10 17:54:27 +00008699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 (eval $ac_try) 2>&5
8701 ac_status=$?
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; }; then
8704 ac_header_compiler=yes
8705else
8706 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008707sed 's/^/| /' conftest.$ac_ext >&5
8708
Francois Gouget6f670b12002-10-10 17:54:27 +00008709ac_header_compiler=no
8710fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00008712echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8713echo "${ECHO_T}$ac_header_compiler" >&6
8714
8715# Is the header present?
8716echo "$as_me:$LINENO: checking $ac_header presence" >&5
8717echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8718cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008719/* confdefs.h. */
8720_ACEOF
8721cat confdefs.h >>conftest.$ac_ext
8722cat >>conftest.$ac_ext <<_ACEOF
8723/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008724#include <$ac_header>
8725_ACEOF
8726if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8728 ac_status=$?
8729 grep -v '^ *+' conftest.er1 >conftest.err
8730 rm -f conftest.er1
8731 cat conftest.err >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } >/dev/null; then
8734 if test -s conftest.err; then
8735 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00008736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Francois Gouget6f670b12002-10-10 17:54:27 +00008737 else
8738 ac_cpp_err=
8739 fi
8740else
8741 ac_cpp_err=yes
8742fi
8743if test -z "$ac_cpp_err"; then
8744 ac_header_preproc=yes
8745else
8746 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008747sed 's/^/| /' conftest.$ac_ext >&5
8748
Francois Gouget6f670b12002-10-10 17:54:27 +00008749 ac_header_preproc=no
8750fi
8751rm -f conftest.err conftest.$ac_ext
8752echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8753echo "${ECHO_T}$ac_header_preproc" >&6
8754
8755# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008756case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8757 yes:no: )
Francois Gouget6f670b12002-10-10 17:54:27 +00008758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8759echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8761echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8762 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008763 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00008764 no:yes:* )
Francois Gouget6f670b12002-10-10 17:54:27 +00008765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8766echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8768echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8770echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8772echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Francois Gouget6f670b12002-10-10 17:54:27 +00008773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008774echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8776echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008777 (
8778 cat <<\_ASBOX
8779## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00008780## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008781## ------------------------------------ ##
8782_ASBOX
8783 ) |
8784 sed "s/^/$as_me: WARNING: /" >&2
8785 ;;
Francois Gouget6f670b12002-10-10 17:54:27 +00008786esac
8787echo "$as_me:$LINENO: checking for $ac_header" >&5
8788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8789if eval "test \"\${$as_ac_Header+set}\" = set"; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8791else
Alexandre Julliard875927f2004-01-02 01:55:29 +00008792 eval "$as_ac_Header=\$ac_header_preproc"
Francois Gouget6f670b12002-10-10 17:54:27 +00008793fi
8794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8796
8797fi
8798if test `eval echo '${'$as_ac_Header'}'` = yes; then
8799 cat >>confdefs.h <<_ACEOF
8800#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8801_ACEOF
8802
8803for ac_header in audio/soundlib.h
8804do
8805as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8806echo "$as_me:$LINENO: checking for $ac_header" >&5
8807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8808if eval "test \"\${$as_ac_Header+set}\" = set"; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8810else
8811 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008812/* confdefs.h. */
8813_ACEOF
8814cat confdefs.h >>conftest.$ac_ext
8815cat >>conftest.$ac_ext <<_ACEOF
8816/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008817#include <audio/audiolib.h>
8818
8819#include <$ac_header>
8820_ACEOF
8821rm -f conftest.$ac_objext
8822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008823 (eval $ac_compile) 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00008824 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008825 grep -v '^ *+' conftest.er1 >conftest.err
8826 rm -f conftest.er1
8827 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00008828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 (eval $ac_try) 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; } &&
8836 { ac_try='test -s conftest.$ac_objext'
Francois Gouget6f670b12002-10-10 17:54:27 +00008837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 (eval $ac_try) 2>&5
8839 ac_status=$?
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; }; then
8842 eval "$as_ac_Header=yes"
8843else
8844 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008845sed 's/^/| /' conftest.$ac_ext >&5
8846
Francois Gouget6f670b12002-10-10 17:54:27 +00008847eval "$as_ac_Header=no"
8848fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00008850fi
8851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8852echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8853if test `eval echo '${'$as_ac_Header'}'` = yes; then
8854 cat >>confdefs.h <<_ACEOF
8855#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8856_ACEOF
8857
8858fi
8859
8860done
8861
8862 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8863echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8864if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8866else
8867 ac_check_lib_save_LIBS=$LIBS
8868LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8869cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008870/* confdefs.h. */
8871_ACEOF
8872cat confdefs.h >>conftest.$ac_ext
8873cat >>conftest.$ac_ext <<_ACEOF
8874/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008875
8876/* Override any gcc2 internal prototype to avoid an error. */
8877#ifdef __cplusplus
8878extern "C"
8879#endif
8880/* We use char because int might match the return type of a gcc2
8881 builtin and then its argument prototype would still apply. */
8882char AuCreateFlow ();
8883int
8884main ()
8885{
8886AuCreateFlow ();
8887 ;
8888 return 0;
8889}
8890_ACEOF
8891rm -f conftest.$ac_objext conftest$ac_exeext
8892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008893 (eval $ac_link) 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00008894 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008895 grep -v '^ *+' conftest.er1 >conftest.err
8896 rm -f conftest.er1
8897 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00008898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902 (eval $ac_try) 2>&5
8903 ac_status=$?
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; } &&
8906 { ac_try='test -s conftest$ac_exeext'
Francois Gouget6f670b12002-10-10 17:54:27 +00008907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908 (eval $ac_try) 2>&5
8909 ac_status=$?
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); }; }; then
8912 ac_cv_lib_audio_AuCreateFlow=yes
8913else
8914 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008915sed 's/^/| /' conftest.$ac_ext >&5
8916
Francois Gouget6f670b12002-10-10 17:54:27 +00008917ac_cv_lib_audio_AuCreateFlow=no
8918fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008919rm -f conftest.err conftest.$ac_objext \
8920 conftest$ac_exeext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00008921LIBS=$ac_check_lib_save_LIBS
8922fi
8923echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8924echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8925if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8926
8927cat >>confdefs.h <<\_ACEOF
8928#define HAVE_NAS 1
8929_ACEOF
8930
8931 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8932fi
8933
8934fi
8935
8936done
8937
8938
Ove Kaaven1eb593c1999-02-14 09:34:46 +00008939 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00008940 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00008941else
8942 XLIB=""
8943 X_CFLAGS=""
8944 X_LIBS=""
8945fi
Alexandre Julliard902da691995-11-05 14:39:02 +00008946
Alexandre Julliard48957682001-12-26 23:08:31 +00008947CURSESLIBS=""
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008948if test "x$with_curses" != "xno"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00008949then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008950
8951for ac_header in ncurses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008952do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008953as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008954if eval "test \"\${$as_ac_Header+set}\" = set"; then
8955 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8957if eval "test \"\${$as_ac_Header+set}\" = set"; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008959fi
8960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8961echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008962else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008963 # Is the header compilable?
8964echo "$as_me:$LINENO: checking $ac_header usability" >&5
8965echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8966cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008967/* confdefs.h. */
8968_ACEOF
8969cat confdefs.h >>conftest.$ac_ext
8970cat >>conftest.$ac_ext <<_ACEOF
8971/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008972$ac_includes_default
8973#include <$ac_header>
8974_ACEOF
8975rm -f conftest.$ac_objext
8976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008977 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008978 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008979 grep -v '^ *+' conftest.er1 >conftest.err
8980 rm -f conftest.er1
8981 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 (eval $ac_try) 2>&5
8987 ac_status=$?
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; } &&
8990 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 (eval $ac_try) 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8996 ac_header_compiler=yes
8997else
8998 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008999sed 's/^/| /' conftest.$ac_ext >&5
9000
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009001ac_header_compiler=no
9002fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009004echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9005echo "${ECHO_T}$ac_header_compiler" >&6
9006
9007# Is the header present?
9008echo "$as_me:$LINENO: checking $ac_header presence" >&5
9009echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9010cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009011/* confdefs.h. */
9012_ACEOF
9013cat confdefs.h >>conftest.$ac_ext
9014cat >>conftest.$ac_ext <<_ACEOF
9015/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009016#include <$ac_header>
9017_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9020 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009021 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009022 rm -f conftest.er1
9023 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009025 (exit $ac_status); } >/dev/null; then
9026 if test -s conftest.err; then
9027 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009029 else
9030 ac_cpp_err=
9031 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00009032else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009033 ac_cpp_err=yes
9034fi
9035if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009036 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009037else
9038 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009039sed 's/^/| /' conftest.$ac_ext >&5
9040
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009041 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00009042fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009043rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009044echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9045echo "${ECHO_T}$ac_header_preproc" >&6
9046
9047# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009048case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9049 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9051echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9053echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9054 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009055 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009056 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9058echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9060echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9062echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9064echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009066echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9068echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009069 (
9070 cat <<\_ASBOX
9071## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009072## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009073## ------------------------------------ ##
9074_ASBOX
9075 ) |
9076 sed "s/^/$as_me: WARNING: /" >&2
9077 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009078esac
9079echo "$as_me:$LINENO: checking for $ac_header" >&5
9080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9081if eval "test \"\${$as_ac_Header+set}\" = set"; then
9082 echo $ECHO_N "(cached) $ECHO_C" >&6
9083else
Alexandre Julliard875927f2004-01-02 01:55:29 +00009084 eval "$as_ac_Header=\$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00009085fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009087echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009088
9089fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009090if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009091 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009092#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009093_ACEOF
9094 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009095echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9096if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009098else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009099 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009100LIBS="-lncurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009101cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009102/* confdefs.h. */
9103_ACEOF
9104cat confdefs.h >>conftest.$ac_ext
9105cat >>conftest.$ac_ext <<_ACEOF
9106/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009107
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009108/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009109#ifdef __cplusplus
9110extern "C"
9111#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009112/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009113 builtin and then its argument prototype would still apply. */
9114char waddch ();
9115int
9116main ()
9117{
9118waddch ();
9119 ;
9120 return 0;
9121}
9122_ACEOF
9123rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009125 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009126 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009127 grep -v '^ *+' conftest.er1 >conftest.err
9128 rm -f conftest.er1
9129 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009131 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 (eval $ac_try) 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; } &&
9138 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009140 (eval $ac_try) 2>&5
9141 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009143 (exit $ac_status); }; }; then
9144 ac_cv_lib_ncurses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009145else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009146 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009147sed 's/^/| /' conftest.$ac_ext >&5
9148
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009149ac_cv_lib_ncurses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009150fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009151rm -f conftest.err conftest.$ac_objext \
9152 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009153LIBS=$ac_check_lib_save_LIBS
9154fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009155echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009156echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9157if test $ac_cv_lib_ncurses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009158
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009159cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00009160#define HAVE_LIBNCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009161_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009162
Alexandre Julliard48957682001-12-26 23:08:31 +00009163 CURSESLIBS="-lncurses"
Alexandre Julliard638f1691999-01-17 16:32:32 +00009164else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009165
9166for ac_header in curses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00009167do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009168as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009169if eval "test \"\${$as_ac_Header+set}\" = set"; then
9170 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009171echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9172if eval "test \"\${$as_ac_Header+set}\" = set"; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009174fi
9175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9176echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00009177else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009178 # Is the header compilable?
9179echo "$as_me:$LINENO: checking $ac_header usability" >&5
9180echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9181cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009182/* confdefs.h. */
9183_ACEOF
9184cat confdefs.h >>conftest.$ac_ext
9185cat >>conftest.$ac_ext <<_ACEOF
9186/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009187$ac_includes_default
9188#include <$ac_header>
9189_ACEOF
9190rm -f conftest.$ac_objext
9191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009192 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009193 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009194 grep -v '^ *+' conftest.er1 >conftest.err
9195 rm -f conftest.er1
9196 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201 (eval $ac_try) 2>&5
9202 ac_status=$?
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; } &&
9205 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 (eval $ac_try) 2>&5
9208 ac_status=$?
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; }; then
9211 ac_header_compiler=yes
9212else
9213 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009214sed 's/^/| /' conftest.$ac_ext >&5
9215
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009216ac_header_compiler=no
9217fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009219echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9220echo "${ECHO_T}$ac_header_compiler" >&6
9221
9222# Is the header present?
9223echo "$as_me:$LINENO: checking $ac_header presence" >&5
9224echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9225cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009226/* confdefs.h. */
9227_ACEOF
9228cat confdefs.h >>conftest.$ac_ext
9229cat >>conftest.$ac_ext <<_ACEOF
9230/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009231#include <$ac_header>
9232_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009233if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9235 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009236 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009237 rm -f conftest.er1
9238 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009240 (exit $ac_status); } >/dev/null; then
9241 if test -s conftest.err; then
9242 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009244 else
9245 ac_cpp_err=
9246 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00009247else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009248 ac_cpp_err=yes
9249fi
9250if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009251 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009252else
9253 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009254sed 's/^/| /' conftest.$ac_ext >&5
9255
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009256 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00009257fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009258rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009259echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9260echo "${ECHO_T}$ac_header_preproc" >&6
9261
9262# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009263case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9264 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9266echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9268echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9269 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009270 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009271 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9273echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9275echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9276 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9277echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9279echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009281echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009282 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9283echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009284 (
9285 cat <<\_ASBOX
9286## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009287## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009288## ------------------------------------ ##
9289_ASBOX
9290 ) |
9291 sed "s/^/$as_me: WARNING: /" >&2
9292 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009293esac
9294echo "$as_me:$LINENO: checking for $ac_header" >&5
9295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9296if eval "test \"\${$as_ac_Header+set}\" = set"; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9298else
Alexandre Julliard875927f2004-01-02 01:55:29 +00009299 eval "$as_ac_Header=\$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00009300fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009302echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009303
9304fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009305if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009306 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009308_ACEOF
9309 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009310echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9311if test "${ac_cv_lib_curses_waddch+set}" = set; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009313else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009314 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009315LIBS="-lcurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009316cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009317/* confdefs.h. */
9318_ACEOF
9319cat confdefs.h >>conftest.$ac_ext
9320cat >>conftest.$ac_ext <<_ACEOF
9321/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009322
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009323/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009324#ifdef __cplusplus
9325extern "C"
9326#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009327/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009328 builtin and then its argument prototype would still apply. */
9329char waddch ();
9330int
9331main ()
9332{
9333waddch ();
9334 ;
9335 return 0;
9336}
9337_ACEOF
9338rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009340 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009341 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009342 grep -v '^ *+' conftest.er1 >conftest.err
9343 rm -f conftest.er1
9344 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009346 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349 (eval $ac_try) 2>&5
9350 ac_status=$?
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); }; } &&
9353 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009355 (eval $ac_try) 2>&5
9356 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009358 (exit $ac_status); }; }; then
9359 ac_cv_lib_curses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009360else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009361 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009362sed 's/^/| /' conftest.$ac_ext >&5
9363
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009364ac_cv_lib_curses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009365fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009366rm -f conftest.err conftest.$ac_objext \
9367 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009368LIBS=$ac_check_lib_save_LIBS
9369fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009370echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009371echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9372if test $ac_cv_lib_curses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009373
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009374cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00009375#define HAVE_LIBCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009376_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009377
Alexandre Julliard48957682001-12-26 23:08:31 +00009378 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009379fi
9380
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009381fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009382
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009383done
9384
9385fi
Alexandre Julliard48957682001-12-26 23:08:31 +00009386
Alexandre Julliard48957682001-12-26 23:08:31 +00009387fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009388
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009389done
9390
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009391fi
9392
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009393
Shi Quan He6b0720f2002-03-21 02:58:39 +00009394# Extract the first word of "sane-config", so it can be a program name with args.
9395set dummy sane-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009396echo "$as_me:$LINENO: checking for $ac_word" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9398if test "${ac_cv_prog_sane_devel+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9400else
9401 if test -n "$sane_devel"; then
9402 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9403else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9405for as_dir in $PATH
9406do
9407 IFS=$as_save_IFS
9408 test -z "$as_dir" && as_dir=.
9409 for ac_exec_ext in '' $ac_executable_extensions; do
9410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9411 ac_cv_prog_sane_devel="sane-config"
9412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9413 break 2
9414 fi
9415done
Shi Quan He6b0720f2002-03-21 02:58:39 +00009416done
9417
9418 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9419fi
9420fi
9421sane_devel=$ac_cv_prog_sane_devel
9422if test -n "$sane_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009423 echo "$as_me:$LINENO: result: $sane_devel" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009424echo "${ECHO_T}$sane_devel" >&6
9425else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009426 echo "$as_me:$LINENO: result: no" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009427echo "${ECHO_T}no" >&6
9428fi
9429
9430if test "$sane_devel" = "no"
9431then
9432 SANELIBS=""
9433 SANEINCL=""
9434else
9435 SANELIBS="`$sane_devel --libs`"
9436 SANEINCL="`$sane_devel --cflags`"
9437 ac_save_CPPFLAGS="$CPPFLAGS"
9438 ac_save_LIBS="$LIBS"
9439 CPPFLAGS="$CPPFLAGS $SANEINCL"
9440 LIBS="$LIBS $SANELIBS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009441 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9442 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009443echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9444if test "${ac_cv_header_sane_sane_h+set}" = set; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009446fi
9447echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9448echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00009449else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009450 # Is the header compilable?
9451echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9452echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9453cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009454/* confdefs.h. */
9455_ACEOF
9456cat confdefs.h >>conftest.$ac_ext
9457cat >>conftest.$ac_ext <<_ACEOF
9458/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009459$ac_includes_default
9460#include <sane/sane.h>
9461_ACEOF
9462rm -f conftest.$ac_objext
9463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009464 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009465 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009466 grep -v '^ *+' conftest.er1 >conftest.err
9467 rm -f conftest.er1
9468 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473 (eval $ac_try) 2>&5
9474 ac_status=$?
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; } &&
9477 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 (eval $ac_try) 2>&5
9480 ac_status=$?
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; }; then
9483 ac_header_compiler=yes
9484else
9485 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009486sed 's/^/| /' conftest.$ac_ext >&5
9487
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009488ac_header_compiler=no
9489fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009491echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9492echo "${ECHO_T}$ac_header_compiler" >&6
9493
9494# Is the header present?
9495echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9496echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9497cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009498/* confdefs.h. */
9499_ACEOF
9500cat confdefs.h >>conftest.$ac_ext
9501cat >>conftest.$ac_ext <<_ACEOF
9502/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +00009503#include <sane/sane.h>
9504_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009505if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9507 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009508 grep -v '^ *+' conftest.er1 >conftest.err
Shi Quan He6b0720f2002-03-21 02:58:39 +00009509 rm -f conftest.er1
9510 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009512 (exit $ac_status); } >/dev/null; then
9513 if test -s conftest.err; then
9514 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Shi Quan He6b0720f2002-03-21 02:58:39 +00009516 else
9517 ac_cpp_err=
9518 fi
9519else
9520 ac_cpp_err=yes
9521fi
9522if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009523 ac_header_preproc=yes
Shi Quan He6b0720f2002-03-21 02:58:39 +00009524else
9525 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009526sed 's/^/| /' conftest.$ac_ext >&5
9527
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009528 ac_header_preproc=no
Shi Quan He6b0720f2002-03-21 02:58:39 +00009529fi
9530rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009531echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9532echo "${ECHO_T}$ac_header_preproc" >&6
9533
9534# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009535case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9536 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009537 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9538echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009539 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
9540echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
9541 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009542 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009543 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009544 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9545echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009546 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
9547echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
9548 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
9549echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
9550 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
9551echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009552 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009553echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009554 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
9555echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009556 (
9557 cat <<\_ASBOX
9558## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009559## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009560## ------------------------------------ ##
9561_ASBOX
9562 ) |
9563 sed "s/^/$as_me: WARNING: /" >&2
9564 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009565esac
9566echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9567echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9568if test "${ac_cv_header_sane_sane_h+set}" = set; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9570else
9571 ac_cv_header_sane_sane_h=$ac_header_preproc
Shi Quan He6b0720f2002-03-21 02:58:39 +00009572fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009573echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009574echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009575
9576fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009577if test $ac_cv_header_sane_sane_h = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009578 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009579echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9580if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9582else
9583 ac_check_lib_save_LIBS=$LIBS
9584LIBS="-lsane $LIBS"
9585cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009586/* confdefs.h. */
9587_ACEOF
9588cat confdefs.h >>conftest.$ac_ext
9589cat >>conftest.$ac_ext <<_ACEOF
9590/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +00009591
9592/* Override any gcc2 internal prototype to avoid an error. */
9593#ifdef __cplusplus
9594extern "C"
9595#endif
9596/* We use char because int might match the return type of a gcc2
9597 builtin and then its argument prototype would still apply. */
9598char sane_open ();
9599int
9600main ()
9601{
9602sane_open ();
9603 ;
9604 return 0;
9605}
9606_ACEOF
9607rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009609 (eval $ac_link) 2>conftest.er1
Shi Quan He6b0720f2002-03-21 02:58:39 +00009610 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009611 grep -v '^ *+' conftest.er1 >conftest.err
9612 rm -f conftest.er1
9613 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009615 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618 (eval $ac_try) 2>&5
9619 ac_status=$?
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; } &&
9622 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009624 (eval $ac_try) 2>&5
9625 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009627 (exit $ac_status); }; }; then
9628 ac_cv_lib_sane_sane_open=yes
9629else
9630 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009631sed 's/^/| /' conftest.$ac_ext >&5
9632
Shi Quan He6b0720f2002-03-21 02:58:39 +00009633ac_cv_lib_sane_sane_open=no
9634fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009635rm -f conftest.err conftest.$ac_objext \
9636 conftest$ac_exeext conftest.$ac_ext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009637LIBS=$ac_check_lib_save_LIBS
9638fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009639echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009640echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9641if test $ac_cv_lib_sane_sane_open = yes; then
9642
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009643cat >>confdefs.h <<\_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009644#define HAVE_SANE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009645_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009646
9647else
9648 SANELIBS=""
Alexandre Julliard96328b32002-03-31 19:23:41 +00009649 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00009650fi
9651
Alexandre Julliard96328b32002-03-31 19:23:41 +00009652else
9653 SANELIBS=""
9654 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00009655fi
9656
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009657
Shi Quan He6b0720f2002-03-21 02:58:39 +00009658 LIBS="$ac_save_LIBS"
9659 CPPFLAGS="$ac_save_CPPFLAGS"
9660fi
9661
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009662
9663
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009664
9665for ac_header in unicode/ubidi.h
9666do
9667as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9668if eval "test \"\${$as_ac_Header+set}\" = set"; then
9669 echo "$as_me:$LINENO: checking for $ac_header" >&5
9670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9671if eval "test \"\${$as_ac_Header+set}\" = set"; then
9672 echo $ECHO_N "(cached) $ECHO_C" >&6
9673fi
9674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9675echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9676else
9677 # Is the header compilable?
9678echo "$as_me:$LINENO: checking $ac_header usability" >&5
9679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9680cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009681/* confdefs.h. */
9682_ACEOF
9683cat confdefs.h >>conftest.$ac_ext
9684cat >>conftest.$ac_ext <<_ACEOF
9685/* end confdefs.h. */
9686$ac_includes_default
9687#include <$ac_header>
9688_ACEOF
9689rm -f conftest.$ac_objext
9690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009691 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009692 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009693 grep -v '^ *+' conftest.er1 >conftest.err
9694 rm -f conftest.er1
9695 cat conftest.err >&5
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700 (eval $ac_try) 2>&5
9701 ac_status=$?
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; } &&
9704 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 (eval $ac_try) 2>&5
9707 ac_status=$?
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); }; }; then
9710 ac_header_compiler=yes
9711else
9712 echo "$as_me: failed program was:" >&5
9713sed 's/^/| /' conftest.$ac_ext >&5
9714
9715ac_header_compiler=no
9716fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009718echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9719echo "${ECHO_T}$ac_header_compiler" >&6
9720
9721# Is the header present?
9722echo "$as_me:$LINENO: checking $ac_header presence" >&5
9723echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9724cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009725/* confdefs.h. */
9726_ACEOF
9727cat confdefs.h >>conftest.$ac_ext
9728cat >>conftest.$ac_ext <<_ACEOF
9729/* end confdefs.h. */
9730#include <$ac_header>
9731_ACEOF
9732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9734 ac_status=$?
9735 grep -v '^ *+' conftest.er1 >conftest.err
9736 rm -f conftest.er1
9737 cat conftest.err >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } >/dev/null; then
9740 if test -s conftest.err; then
9741 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009743 else
9744 ac_cpp_err=
9745 fi
9746else
9747 ac_cpp_err=yes
9748fi
9749if test -z "$ac_cpp_err"; then
9750 ac_header_preproc=yes
9751else
9752 echo "$as_me: failed program was:" >&5
9753sed 's/^/| /' conftest.$ac_ext >&5
9754
9755 ac_header_preproc=no
9756fi
9757rm -f conftest.err conftest.$ac_ext
9758echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9759echo "${ECHO_T}$ac_header_preproc" >&6
9760
9761# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9763 yes:no: )
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9765echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9767echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9768 ac_header_preproc=yes
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009769 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009770 no:yes:* )
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9772echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9774echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9776echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9778echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9780echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9782echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009783 (
9784 cat <<\_ASBOX
9785## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009786## Report this to wine-devel@winehq.org ##
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009787## ------------------------------------ ##
9788_ASBOX
9789 ) |
9790 sed "s/^/$as_me: WARNING: /" >&2
9791 ;;
9792esac
9793echo "$as_me:$LINENO: checking for $ac_header" >&5
9794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9795if eval "test \"\${$as_ac_Header+set}\" = set"; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9797else
Alexandre Julliard875927f2004-01-02 01:55:29 +00009798 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009799fi
9800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9801echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9802
9803fi
9804if test `eval echo '${'$as_ac_Header'}'` = yes; then
9805 cat >>confdefs.h <<_ACEOF
9806#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9807_ACEOF
9808
9809fi
9810
9811done
9812
9813if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9814then
Marcus Meissnerbc624582004-01-18 22:15:46 +00009815 saved_libs="$LIBS"
9816 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
Shachar Shemesh9f2627e2004-04-06 20:13:21 +00009817 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
9818 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
9819 echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
9820echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
Marcus Meissnerbc624582004-01-18 22:15:46 +00009821 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9822 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009823/* confdefs.h. */
9824_ACEOF
9825cat confdefs.h >>conftest.$ac_ext
9826cat >>conftest.$ac_ext <<_ACEOF
9827/* end confdefs.h. */
9828#include <unicode/ubidi.h>
9829int
9830main ()
9831{
9832ubidi_open()
9833 ;
9834 return 0;
9835}
9836_ACEOF
9837rm -f conftest.$ac_objext conftest$ac_exeext
9838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009839 (eval $ac_link) 2>conftest.er1
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009840 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009841 grep -v '^ *+' conftest.er1 >conftest.err
9842 rm -f conftest.er1
9843 cat conftest.err >&5
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 (eval $ac_try) 2>&5
9849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; } &&
9852 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 (eval $ac_try) 2>&5
9855 ac_status=$?
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); }; }; then
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009858
9859cat >>confdefs.h <<\_ACEOF
9860#define HAVE_ICU 1
9861_ACEOF
9862
Marcus Meissnerbc624582004-01-18 22:15:46 +00009863 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009864
Shachar Shemesh9f2627e2004-04-06 20:13:21 +00009865 echo "$as_me:$LINENO: result: yes" >&5
9866echo "${ECHO_T}yes" >&6
Marcus Meissnerbc624582004-01-18 22:15:46 +00009867else
9868 echo "$as_me: failed program was:" >&5
9869sed 's/^/| /' conftest.$ac_ext >&5
9870
Shachar Shemesh9f2627e2004-04-06 20:13:21 +00009871echo "$as_me:$LINENO: result: no" >&5
9872echo "${ECHO_T}no" >&6
Marcus Meissnerbc624582004-01-18 22:15:46 +00009873fi
9874rm -f conftest.err conftest.$ac_objext \
9875 conftest$ac_exeext conftest.$ac_ext
9876 LIBS="$saved_libs"
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009877fi
9878
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009879echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009880echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9881if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00009883else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009884 ac_check_lib_save_LIBS=$LIBS
Dmitry Timoshkov8871a112001-11-06 22:26:53 +00009885LIBS="-lfreetype $X_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009886cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009887/* confdefs.h. */
9888_ACEOF
9889cat confdefs.h >>conftest.$ac_ext
9890cat >>conftest.$ac_ext <<_ACEOF
9891/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009892
Ian Pilcher563598d2001-05-16 20:56:05 +00009893/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009894#ifdef __cplusplus
9895extern "C"
9896#endif
Ian Pilcher563598d2001-05-16 20:56:05 +00009897/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009898 builtin and then its argument prototype would still apply. */
9899char FT_Init_FreeType ();
9900int
9901main ()
9902{
9903FT_Init_FreeType ();
9904 ;
9905 return 0;
9906}
9907_ACEOF
9908rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009910 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009911 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009912 grep -v '^ *+' conftest.er1 >conftest.err
9913 rm -f conftest.er1
9914 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009916 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 (eval $ac_try) 2>&5
9920 ac_status=$?
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; } &&
9923 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009925 (eval $ac_try) 2>&5
9926 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009928 (exit $ac_status); }; }; then
9929 ac_cv_lib_freetype_FT_Init_FreeType=yes
Ian Pilcher563598d2001-05-16 20:56:05 +00009930else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009931 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009932sed 's/^/| /' conftest.$ac_ext >&5
9933
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009934ac_cv_lib_freetype_FT_Init_FreeType=no
Ian Pilcher563598d2001-05-16 20:56:05 +00009935fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009936rm -f conftest.err conftest.$ac_objext \
9937 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009938LIBS=$ac_check_lib_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +00009939fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009940echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009941echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
9942if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
Ian Pilcher563598d2001-05-16 20:56:05 +00009943 ft_lib=yes
9944else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009945 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +00009946fi
9947
9948if test "$ft_lib" = "no"
9949then
Huw Davies00acb5f2004-08-17 22:33:14 +00009950 FREETYPELIBS=""
Ian Pilcher563598d2001-05-16 20:56:05 +00009951 FREETYPEINCL=""
9952 wine_cv_msg_freetype=no
9953else
9954 # Extract the first word of "freetype-config", so it can be a program name with args.
9955set dummy freetype-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009956echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9958if test "${ac_cv_prog_ft_devel+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00009960else
9961 if test -n "$ft_devel"; then
9962 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9963else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9965for as_dir in $PATH
9966do
9967 IFS=$as_save_IFS
9968 test -z "$as_dir" && as_dir=.
9969 for ac_exec_ext in '' $ac_executable_extensions; do
9970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9971 ac_cv_prog_ft_devel="freetype-config"
9972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9973 break 2
9974 fi
9975done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009976done
9977
Ian Pilcher563598d2001-05-16 20:56:05 +00009978 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
9979fi
9980fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009981ft_devel=$ac_cv_prog_ft_devel
Ian Pilcher563598d2001-05-16 20:56:05 +00009982if test -n "$ft_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009983 echo "$as_me:$LINENO: result: $ft_devel" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009984echo "${ECHO_T}$ft_devel" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00009985else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009986 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009987echo "${ECHO_T}no" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00009988fi
9989
9990 if test "$ft_devel" = "no"
9991 then
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009992 # Extract the first word of "freetype2-config", so it can be a program name with args.
9993set dummy freetype2-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009994echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9996if test "${ac_cv_prog_ft_devel2+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009998else
9999 if test -n "$ft_devel2"; then
10000 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10001else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003for as_dir in $PATH
10004do
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
10007 for ac_exec_ext in '' $ac_executable_extensions; do
10008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10009 ac_cv_prog_ft_devel2="freetype2-config"
10010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10011 break 2
10012 fi
10013done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010014done
10015
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010016 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10017fi
10018fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010019ft_devel2=$ac_cv_prog_ft_devel2
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010020if test -n "$ft_devel2"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010021 echo "$as_me:$LINENO: result: $ft_devel2" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010022echo "${ECHO_T}$ft_devel2" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010023else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010024 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010025echo "${ECHO_T}no" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010026fi
10027
10028 if test "$ft_devel2" = "freetype2-config"
10029 then
10030 ft_devel=$ft_devel2
10031 fi
10032 fi
10033 if test "$ft_devel" = "no"
10034 then
Huw Davies00acb5f2004-08-17 22:33:14 +000010035 FREETYPELIBS=""
Ian Pilcher563598d2001-05-16 20:56:05 +000010036 FREETYPEINCL=""
10037 wine_cv_msg_freetype=yes
10038 else
Huw Davies00acb5f2004-08-17 22:33:14 +000010039 FREETYPELIBS=`$ft_devel --libs`
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010040 FREETYPEINCL=`$ft_devel --cflags`
Ian Pilcher40432fe2001-06-06 21:05:23 +000010041 ac_save_CPPFLAGS="$CPPFLAGS"
10042 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010043
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010044
10045
10046
10047
10048
10049
10050
Rein Klazese617a9c2003-11-19 02:18:13 +000010051
Huw Daviesc2217182004-06-16 20:06:26 +000010052
Rein Klazese617a9c2003-11-19 02:18:13 +000010053for ac_header in ft2build.h \
10054 freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010055 freetype/ftglyph.h \
10056 freetype/tttables.h \
10057 freetype/ftnames.h \
10058 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +000010059 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010060 freetype/ftoutln.h \
Huw Daviesc2217182004-06-16 20:06:26 +000010061 freetype/ftwinfnt.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010062 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +000010063do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010064as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Rein Klazes9c269172003-11-20 04:17:33 +000010065echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10067if eval "test \"\${$as_ac_Header+set}\" = set"; then
10068 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010069else
Rein Klazes9c269172003-11-20 04:17:33 +000010070 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010071/* confdefs.h. */
10072_ACEOF
10073cat confdefs.h >>conftest.$ac_ext
10074cat >>conftest.$ac_ext <<_ACEOF
10075/* end confdefs.h. */
Rein Klazes9c269172003-11-20 04:17:33 +000010076#if HAVE_FT2BUILD_H
10077 #include <ft2build.h>
10078 #endif
10079
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010080#include <$ac_header>
10081_ACEOF
10082rm -f conftest.$ac_objext
10083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010084 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010085 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010086 grep -v '^ *+' conftest.er1 >conftest.err
10087 rm -f conftest.er1
10088 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10094 ac_status=$?
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; } &&
10097 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; }; then
Rein Klazes9c269172003-11-20 04:17:33 +000010103 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010104else
10105 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010106sed 's/^/| /' conftest.$ac_ext >&5
10107
Rein Klazes9c269172003-11-20 04:17:33 +000010108eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010109fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010111fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010113echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010114if test `eval echo '${'$as_ac_Header'}'` = yes; then
10115 cat >>confdefs.h <<_ACEOF
10116#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10117_ACEOF
10118
10119fi
10120
Ian Pilcher40432fe2001-06-06 21:05:23 +000010121done
10122
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010123 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010124/* confdefs.h. */
10125_ACEOF
10126cat confdefs.h >>conftest.$ac_ext
10127cat >>conftest.$ac_ext <<_ACEOF
10128/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +000010129#include <ft2build.h>
10130 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010131_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10134 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010135 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010136 rm -f conftest.er1
10137 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010139 (exit $ac_status); } >/dev/null; then
10140 if test -s conftest.err; then
10141 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000010142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010143 else
10144 ac_cpp_err=
10145 fi
10146else
10147 ac_cpp_err=yes
10148fi
10149if test -z "$ac_cpp_err"; then
10150
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010151cat >>confdefs.h <<\_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +000010152#define HAVE_FREETYPE_FTTRIGON_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010153_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +000010154
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010155 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +000010156else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010157 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010158sed 's/^/| /' conftest.$ac_ext >&5
10159
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010160 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +000010161fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010162rm -f conftest.err conftest.$ac_ext
Ian Pilcher40432fe2001-06-06 21:05:23 +000010163 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010164 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010165 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010166
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010167cat >>confdefs.h <<\_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010168#define HAVE_FREETYPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010169_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010170
10171 wine_cv_msg_freetype=no
10172 else
Huw Davies00acb5f2004-08-17 22:33:14 +000010173 FREETYPELIBS=""
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010174 FREETYPEINCL=""
10175 wine_cv_msg_freetype=yes
10176 fi
Ian Pilcher563598d2001-05-16 20:56:05 +000010177 fi
10178fi
10179
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010180
Huw Davies00acb5f2004-08-17 22:33:14 +000010181
10182if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
10183then
10184 FONTSSUBDIRS="fonts"
10185
10186fi
10187
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010188echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010189echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10190if test "${ac_cv_c_ppdev+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +000010192else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010193 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010194/* confdefs.h. */
10195_ACEOF
10196cat confdefs.h >>conftest.$ac_ext
10197cat >>conftest.$ac_ext <<_ACEOF
10198/* end confdefs.h. */
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010199#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010200int
10201main ()
10202{
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010203ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010204 ;
10205 return 0;
10206}
10207_ACEOF
10208rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010210 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010211 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010212 grep -v '^ *+' conftest.er1 >conftest.err
10213 rm -f conftest.er1
10214 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010216 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10220 ac_status=$?
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; } &&
10223 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010225 (eval $ac_try) 2>&5
10226 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010228 (exit $ac_status); }; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010229 ac_cv_c_ppdev="yes"
10230else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010231 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010232sed 's/^/| /' conftest.$ac_ext >&5
10233
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010234ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010235fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010237
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010238fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010239echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010240echo "${ECHO_T}$ac_cv_c_ppdev" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010241if test "$ac_cv_c_ppdev" = "yes"
10242then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010243
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010244cat >>confdefs.h <<\_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010245#define HAVE_PPDEV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010246_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010247
10248fi
10249
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010250echo "$as_me:$LINENO: checking for va_copy" >&5
10251echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10252if test "${ac_cv_c_va_copy+set}" = set; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10254else
10255 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010256/* confdefs.h. */
10257_ACEOF
10258cat confdefs.h >>conftest.$ac_ext
10259cat >>conftest.$ac_ext <<_ACEOF
10260/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010261#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010262int
10263main ()
10264{
10265va_list ap1, ap2;
10266 va_copy(ap1,ap2);
10267
10268 ;
10269 return 0;
10270}
10271_ACEOF
10272rm -f conftest.$ac_objext conftest$ac_exeext
10273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010274 (eval $ac_link) 2>conftest.er1
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010275 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010276 grep -v '^ *+' conftest.er1 >conftest.err
10277 rm -f conftest.er1
10278 cat conftest.err >&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10284 ac_status=$?
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; } &&
10287 { ac_try='test -s conftest$ac_exeext'
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289 (eval $ac_try) 2>&5
10290 ac_status=$?
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; }; then
10293 ac_cv_c_va_copy="yes"
10294else
10295 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010296sed 's/^/| /' conftest.$ac_ext >&5
10297
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010298ac_cv_c_va_copy="no"
10299fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010300rm -f conftest.err conftest.$ac_objext \
10301 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010302
10303fi
10304echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10305echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10306if test "$ac_cv_c_va_copy" = "yes"
10307then
10308
10309cat >>confdefs.h <<\_ACEOF
10310#define HAVE_VA_COPY 1
10311_ACEOF
10312
10313fi
10314echo "$as_me:$LINENO: checking for __va_copy" >&5
10315echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10316if test "${ac_cv_c___va_copy+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10318else
10319 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010320/* confdefs.h. */
10321_ACEOF
10322cat confdefs.h >>conftest.$ac_ext
10323cat >>conftest.$ac_ext <<_ACEOF
10324/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010325#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010326int
10327main ()
10328{
10329va_list ap1, ap2;
10330 __va_copy(ap1,ap2);
10331
10332 ;
10333 return 0;
10334}
10335_ACEOF
10336rm -f conftest.$ac_objext conftest$ac_exeext
10337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010338 (eval $ac_link) 2>conftest.er1
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010339 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010340 grep -v '^ *+' conftest.er1 >conftest.err
10341 rm -f conftest.er1
10342 cat conftest.err >&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10348 ac_status=$?
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; } &&
10351 { ac_try='test -s conftest$ac_exeext'
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353 (eval $ac_try) 2>&5
10354 ac_status=$?
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; }; then
10357 ac_cv_c___va_copy="yes"
10358else
10359 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010360sed 's/^/| /' conftest.$ac_ext >&5
10361
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010362ac_cv_c___va_copy="no"
10363fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010364rm -f conftest.err conftest.$ac_objext \
10365 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010366
10367fi
10368echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10369echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10370if test "$ac_cv_c___va_copy" = "yes"
10371then
10372
10373cat >>confdefs.h <<\_ACEOF
10374#define HAVE___VA_COPY 1
10375_ACEOF
10376
10377fi
10378
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010379echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10380echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10381if test "${ac_cv_c_sigsetjmp+set}" = set; then
10382 echo $ECHO_N "(cached) $ECHO_C" >&6
10383else
10384 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010385/* confdefs.h. */
10386_ACEOF
10387cat confdefs.h >>conftest.$ac_ext
10388cat >>conftest.$ac_ext <<_ACEOF
10389/* end confdefs.h. */
10390#include <setjmp.h>
10391int
10392main ()
10393{
10394sigjmp_buf buf;
10395 sigsetjmp( buf, 1 );
10396 siglongjmp( buf, 1 );
10397 ;
10398 return 0;
10399}
10400_ACEOF
10401rm -f conftest.$ac_objext conftest$ac_exeext
10402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010403 (eval $ac_link) 2>conftest.er1
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010404 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010405 grep -v '^ *+' conftest.er1 >conftest.err
10406 rm -f conftest.er1
10407 cat conftest.err >&5
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412 (eval $ac_try) 2>&5
10413 ac_status=$?
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }; } &&
10416 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; }; then
10422 ac_cv_c_sigsetjmp="yes"
10423else
10424 echo "$as_me: failed program was:" >&5
10425sed 's/^/| /' conftest.$ac_ext >&5
10426
10427ac_cv_c_sigsetjmp="no"
10428fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010429rm -f conftest.err conftest.$ac_objext \
10430 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010431
10432fi
10433echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10434echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10435if test "$ac_cv_c_sigsetjmp" = "yes"
10436then
10437
10438cat >>confdefs.h <<\_ACEOF
10439#define HAVE_SIGSETJMP 1
10440_ACEOF
10441
10442fi
10443
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010444echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10445echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10446if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10447 echo $ECHO_N "(cached) $ECHO_C" >&6
10448else
10449 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010450/* confdefs.h. */
10451_ACEOF
10452cat confdefs.h >>conftest.$ac_ext
10453cat >>conftest.$ac_ext <<_ACEOF
10454/* end confdefs.h. */
10455#define _GNU_SOURCE
10456#include <pthread.h>
10457
10458int
10459main ()
10460{
10461if ((pthread_rwlock_t *) 0)
10462 return 0;
10463if (sizeof (pthread_rwlock_t))
10464 return 0;
10465 ;
10466 return 0;
10467}
10468_ACEOF
10469rm -f conftest.$ac_objext
10470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010471 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010472 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010473 grep -v '^ *+' conftest.er1 >conftest.err
10474 rm -f conftest.er1
10475 cat conftest.err >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
10481 ac_status=$?
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; } &&
10484 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10487 ac_status=$?
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; }; then
10490 ac_cv_type_pthread_rwlock_t=yes
10491else
10492 echo "$as_me: failed program was:" >&5
10493sed 's/^/| /' conftest.$ac_ext >&5
10494
10495ac_cv_type_pthread_rwlock_t=no
10496fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010498fi
10499echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
10500echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
10501if test $ac_cv_type_pthread_rwlock_t = yes; then
10502
10503cat >>confdefs.h <<_ACEOF
10504#define HAVE_PTHREAD_RWLOCK_T 1
10505_ACEOF
10506
10507
10508fi
10509echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
10510echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
10511if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10513else
10514 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010515/* confdefs.h. */
10516_ACEOF
10517cat confdefs.h >>conftest.$ac_ext
10518cat >>conftest.$ac_ext <<_ACEOF
10519/* end confdefs.h. */
10520#define _GNU_SOURCE
10521#include <pthread.h>
10522
10523int
10524main ()
10525{
10526if ((pthread_rwlockattr_t *) 0)
10527 return 0;
10528if (sizeof (pthread_rwlockattr_t))
10529 return 0;
10530 ;
10531 return 0;
10532}
10533_ACEOF
10534rm -f conftest.$ac_objext
10535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010536 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010537 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010538 grep -v '^ *+' conftest.er1 >conftest.err
10539 rm -f conftest.er1
10540 cat conftest.err >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545 (eval $ac_try) 2>&5
10546 ac_status=$?
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; } &&
10549 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10551 (eval $ac_try) 2>&5
10552 ac_status=$?
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; }; then
10555 ac_cv_type_pthread_rwlockattr_t=yes
10556else
10557 echo "$as_me: failed program was:" >&5
10558sed 's/^/| /' conftest.$ac_ext >&5
10559
10560ac_cv_type_pthread_rwlockattr_t=no
10561fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010563fi
10564echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
10565echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
10566if test $ac_cv_type_pthread_rwlockattr_t = yes; then
10567
10568cat >>confdefs.h <<_ACEOF
10569#define HAVE_PTHREAD_RWLOCKATTR_T 1
10570_ACEOF
10571
10572
10573fi
10574
10575
Alexandre Julliard821ab862003-11-12 22:44:56 +000010576ac_save_LIBS="$LIBS"
10577LIBS="$LIBS $LIBPTHREAD"
10578
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010579
10580
10581for ac_func in \
10582 pthread_getattr_np \
10583 pthread_get_stackaddr_np \
10584 pthread_get_stacksize_np \
10585
Alexandre Julliard821ab862003-11-12 22:44:56 +000010586do
10587as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10588echo "$as_me:$LINENO: checking for $ac_func" >&5
10589echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10590if eval "test \"\${$as_ac_var+set}\" = set"; then
10591 echo $ECHO_N "(cached) $ECHO_C" >&6
10592else
10593 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard821ab862003-11-12 22:44:56 +000010594/* confdefs.h. */
10595_ACEOF
10596cat confdefs.h >>conftest.$ac_ext
10597cat >>conftest.$ac_ext <<_ACEOF
10598/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000010599/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10601#define $ac_func innocuous_$ac_func
10602
Alexandre Julliard821ab862003-11-12 22:44:56 +000010603/* System header to define __stub macros and hopefully few prototypes,
10604 which can conflict with char $ac_func (); below.
10605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10606 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000010607
Alexandre Julliard821ab862003-11-12 22:44:56 +000010608#ifdef __STDC__
10609# include <limits.h>
10610#else
10611# include <assert.h>
10612#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000010613
10614#undef $ac_func
10615
Alexandre Julliard821ab862003-11-12 22:44:56 +000010616/* Override any gcc2 internal prototype to avoid an error. */
10617#ifdef __cplusplus
10618extern "C"
10619{
10620#endif
10621/* We use char because int might match the return type of a gcc2
10622 builtin and then its argument prototype would still apply. */
10623char $ac_func ();
10624/* The GNU C library defines this for functions which it implements
10625 to always fail with ENOSYS. Some functions are actually named
10626 something starting with __ and the normal name is an alias. */
10627#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10628choke me
10629#else
10630char (*f) () = $ac_func;
10631#endif
10632#ifdef __cplusplus
10633}
10634#endif
10635
10636int
10637main ()
10638{
10639return f != $ac_func;
10640 ;
10641 return 0;
10642}
10643_ACEOF
10644rm -f conftest.$ac_objext conftest$ac_exeext
10645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010646 (eval $ac_link) 2>conftest.er1
Alexandre Julliard821ab862003-11-12 22:44:56 +000010647 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010648 grep -v '^ *+' conftest.er1 >conftest.err
10649 rm -f conftest.er1
10650 cat conftest.err >&5
Alexandre Julliard821ab862003-11-12 22:44:56 +000010651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655 (eval $ac_try) 2>&5
10656 ac_status=$?
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; } &&
10659 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard821ab862003-11-12 22:44:56 +000010660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10661 (eval $ac_try) 2>&5
10662 ac_status=$?
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); }; }; then
10665 eval "$as_ac_var=yes"
10666else
10667 echo "$as_me: failed program was:" >&5
10668sed 's/^/| /' conftest.$ac_ext >&5
10669
10670eval "$as_ac_var=no"
10671fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010672rm -f conftest.err conftest.$ac_objext \
10673 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard821ab862003-11-12 22:44:56 +000010674fi
10675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10676echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10677if test `eval echo '${'$as_ac_var'}'` = yes; then
10678 cat >>confdefs.h <<_ACEOF
10679#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10680_ACEOF
10681
10682fi
10683done
10684
10685LIBS="$ac_save_LIBS"
10686
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010687
10688
10689
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010690for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010691do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010692as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010693if eval "test \"\${$as_ac_Header+set}\" = set"; then
10694 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10696if eval "test \"\${$as_ac_Header+set}\" = set"; then
10697 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010698fi
10699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010701else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010702 # Is the header compilable?
10703echo "$as_me:$LINENO: checking $ac_header usability" >&5
10704echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10705cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010706/* confdefs.h. */
10707_ACEOF
10708cat confdefs.h >>conftest.$ac_ext
10709cat >>conftest.$ac_ext <<_ACEOF
10710/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010711$ac_includes_default
10712#include <$ac_header>
10713_ACEOF
10714rm -f conftest.$ac_objext
10715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010716 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010717 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010718 grep -v '^ *+' conftest.er1 >conftest.err
10719 rm -f conftest.er1
10720 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725 (eval $ac_try) 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; } &&
10729 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10731 (eval $ac_try) 2>&5
10732 ac_status=$?
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); }; }; then
10735 ac_header_compiler=yes
10736else
10737 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010738sed 's/^/| /' conftest.$ac_ext >&5
10739
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010740ac_header_compiler=no
10741fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010743echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10744echo "${ECHO_T}$ac_header_compiler" >&6
10745
10746# Is the header present?
10747echo "$as_me:$LINENO: checking $ac_header presence" >&5
10748echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10749cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010750/* confdefs.h. */
10751_ACEOF
10752cat confdefs.h >>conftest.$ac_ext
10753cat >>conftest.$ac_ext <<_ACEOF
10754/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010755#include <$ac_header>
10756_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010757if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10759 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010760 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010761 rm -f conftest.er1
10762 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010764 (exit $ac_status); } >/dev/null; then
10765 if test -s conftest.err; then
10766 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000010767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010768 else
10769 ac_cpp_err=
10770 fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010771else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010772 ac_cpp_err=yes
10773fi
10774if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010775 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010776else
10777 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010778sed 's/^/| /' conftest.$ac_ext >&5
10779
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010780 ac_header_preproc=no
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010781fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010782rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010783echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10784echo "${ECHO_T}$ac_header_preproc" >&6
10785
10786# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10788 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10790echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10792echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10793 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010794 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000010795 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10797echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10799echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10801echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10803echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010805echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10807echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010808 (
10809 cat <<\_ASBOX
10810## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000010811## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010812## ------------------------------------ ##
10813_ASBOX
10814 ) |
10815 sed "s/^/$as_me: WARNING: /" >&2
10816 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010817esac
10818echo "$as_me:$LINENO: checking for $ac_header" >&5
10819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10820if eval "test \"\${$as_ac_Header+set}\" = set"; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10822else
Alexandre Julliard875927f2004-01-02 01:55:29 +000010823 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010824fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010825echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010826echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010827
10828fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010829if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010830 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010831#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010832_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +000010833 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010834fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010835
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010836done
10837
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010838
10839echo "$as_me:$LINENO: checking for Open Sound System" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010840echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
10841if test "${ac_cv_c_opensoundsystem+set}" = set; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010843else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010844 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010845/* confdefs.h. */
10846_ACEOF
10847cat confdefs.h >>conftest.$ac_ext
10848cat >>conftest.$ac_ext <<_ACEOF
10849/* end confdefs.h. */
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010850
Todd Vierlingecc76691998-12-15 17:49:02 +000010851 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010852 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +000010853 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010854 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +000010855 #elif defined(HAVE_SOUNDCARD_H)
10856 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010857 #endif
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010858
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010859int
10860main ()
10861{
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010862
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010863
Alexandre Julliard60ce85c1998-02-01 18:33:27 +000010864/* check for one of the Open Sound System specific SNDCTL_ defines */
10865#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010866#error No open sound system
10867#endif
10868
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010869 ;
10870 return 0;
10871}
10872_ACEOF
10873rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010875 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010876 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010881 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884 (eval $ac_try) 2>&5
10885 ac_status=$?
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; } &&
10888 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010890 (eval $ac_try) 2>&5
10891 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010893 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010894 ac_cv_c_opensoundsystem="yes"
10895else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010896 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010897sed 's/^/| /' conftest.$ac_ext >&5
10898
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010899ac_cv_c_opensoundsystem="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010900fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010902fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010903echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010904echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010905
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000010906if test "$ac_cv_c_opensoundsystem" = "yes"
10907then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010908
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010909cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000010910#define HAVE_OSS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010911_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000010912
10913fi
10914
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010915echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010916echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
10917if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +000010919else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010920 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010921/* confdefs.h. */
10922_ACEOF
10923cat confdefs.h >>conftest.$ac_ext
10924cat >>conftest.$ac_ext <<_ACEOF
10925/* end confdefs.h. */
Eric Pouech338d3b21999-05-22 18:52:21 +000010926
10927 #if defined(HAVE_SYS_SOUNDCARD_H)
10928 #include <sys/soundcard.h>
10929 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10930 #include <machine/soundcard.h>
10931 #elif defined(HAVE_SOUNDCARD_H)
10932 #include <soundcard.h>
10933 #endif
Eric Pouech338d3b21999-05-22 18:52:21 +000010934
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010935int
10936main ()
10937{
Eric Pouech338d3b21999-05-22 18:52:21 +000010938
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010939
Eric Pouech338d3b21999-05-22 18:52:21 +000010940/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
10941#if !defined(SNDCTL_SEQ_SYNC)
10942#error No open sound system MIDI interface
10943#endif
10944
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010945 ;
10946 return 0;
10947}
10948_ACEOF
10949rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010951 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010952 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010953 grep -v '^ *+' conftest.er1 >conftest.err
10954 rm -f conftest.er1
10955 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010957 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 (eval $ac_try) 2>&5
10961 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; } &&
10964 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010966 (eval $ac_try) 2>&5
10967 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010969 (exit $ac_status); }; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +000010970 ac_cv_c_opensoundsystem_midi="yes"
10971else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010972 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010973sed 's/^/| /' conftest.$ac_ext >&5
10974
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010975ac_cv_c_opensoundsystem_midi="no"
Eric Pouech338d3b21999-05-22 18:52:21 +000010976fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Eric Pouech338d3b21999-05-22 18:52:21 +000010978fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010979echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010980echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +000010981
10982if test "$ac_cv_c_opensoundsystem_midi" = "yes"
10983then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010984
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010985cat >>confdefs.h <<\_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +000010986#define HAVE_OSS_MIDI 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010987_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +000010988
10989fi
10990
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010991# Extract the first word of "artsc-config", so it can be a program name with args.
10992set dummy artsc-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010993echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10995if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10997else
10998 case $ARTSCCONFIG in
10999 [\\/]* | ?:[\\/]*)
11000 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11001 ;;
11002 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004for as_dir in $PATH
11005do
11006 IFS=$as_save_IFS
11007 test -z "$as_dir" && as_dir=.
11008 for ac_exec_ext in '' $ac_executable_extensions; do
11009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11010 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11012 break 2
11013 fi
11014done
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011015done
11016
11017 ;;
11018esac
11019fi
11020ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11021
11022if test -n "$ARTSCCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011023 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011024echo "${ECHO_T}$ARTSCCONFIG" >&6
11025else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011026 echo "$as_me:$LINENO: result: no" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011027echo "${ECHO_T}no" >&6
11028fi
11029
Marcus Meissnerbc624582004-01-18 22:15:46 +000011030if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11031then
Alexandre Julliardb3b12cf2004-02-24 01:24:20 +000011032 ARTSC_CFLAGS=""
11033 for i in `$ARTSCCONFIG --cflags`
11034 do
11035 case "$i" in
11036 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11037 esac
11038 done
Marcus Meissnerbc624582004-01-18 22:15:46 +000011039 ARTSC_LIBS=`$ARTSCCONFIG --libs`
11040 save_CFLAGS="$CFLAGS"
11041 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
Jacek Caban6f8f4752005-03-28 09:58:45 +000011042 echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
11043echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6
11044if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
11046else
11047 ac_check_lib_save_LIBS=$LIBS
Vitaliy Margolen80816e92005-06-30 20:46:59 +000011048LIBS="-lartsc $ARTSC_LIBS $LIBS"
Jacek Caban6f8f4752005-03-28 09:58:45 +000011049cat >conftest.$ac_ext <<_ACEOF
11050/* confdefs.h. */
11051_ACEOF
11052cat confdefs.h >>conftest.$ac_ext
11053cat >>conftest.$ac_ext <<_ACEOF
11054/* end confdefs.h. */
11055
11056/* Override any gcc2 internal prototype to avoid an error. */
11057#ifdef __cplusplus
11058extern "C"
11059#endif
11060/* We use char because int might match the return type of a gcc2
11061 builtin and then its argument prototype would still apply. */
11062char arts_init ();
11063int
11064main ()
11065{
11066arts_init ();
11067 ;
11068 return 0;
11069}
11070_ACEOF
11071rm -f conftest.$ac_objext conftest$ac_exeext
11072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11073 (eval $ac_link) 2>conftest.er1
11074 ac_status=$?
11075 grep -v '^ *+' conftest.er1 >conftest.err
11076 rm -f conftest.er1
11077 cat conftest.err >&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } &&
11080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082 (eval $ac_try) 2>&5
11083 ac_status=$?
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; } &&
11086 { ac_try='test -s conftest$ac_exeext'
11087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11088 (eval $ac_try) 2>&5
11089 ac_status=$?
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); }; }; then
11092 ac_cv_lib_artsc_arts_init=yes
11093else
11094 echo "$as_me: failed program was:" >&5
11095sed 's/^/| /' conftest.$ac_ext >&5
11096
11097ac_cv_lib_artsc_arts_init=no
11098fi
11099rm -f conftest.err conftest.$ac_objext \
11100 conftest$ac_exeext conftest.$ac_ext
11101LIBS=$ac_check_lib_save_LIBS
11102fi
11103echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
11104echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6
11105if test $ac_cv_lib_artsc_arts_init = yes; then
11106 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011107/* confdefs.h. */
11108_ACEOF
11109cat confdefs.h >>conftest.$ac_ext
11110cat >>conftest.$ac_ext <<_ACEOF
11111/* end confdefs.h. */
Marcus Meissnerbc624582004-01-18 22:15:46 +000011112#include <artsc.h>
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011113int
11114main ()
11115{
Marcus Meissnerbc624582004-01-18 22:15:46 +000011116arts_stream_t stream;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011117 ;
11118 return 0;
11119}
11120_ACEOF
11121rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011123 (eval $ac_compile) 2>conftest.er1
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011124 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011125 grep -v '^ *+' conftest.er1 >conftest.err
11126 rm -f conftest.er1
11127 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011129 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132 (eval $ac_try) 2>&5
11133 ac_status=$?
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); }; } &&
11136 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011138 (eval $ac_try) 2>&5
11139 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011141 (exit $ac_status); }; }; then
Marcus Meissnerbc624582004-01-18 22:15:46 +000011142 ARTSLIBS=$ARTSC_LIBS
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011143
Jacek Caban6f8f4752005-03-28 09:58:45 +000011144 ARTSINCL=$ARTSC_CFLAGS
Marcus Meissnerbc624582004-01-18 22:15:46 +000011145
11146
11147cat >>confdefs.h <<\_ACEOF
11148#define HAVE_ARTS 1
11149_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011150
11151else
11152 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011153sed 's/^/| /' conftest.$ac_ext >&5
11154
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011155fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Jacek Caban6f8f4752005-03-28 09:58:45 +000011157fi
11158
Marcus Meissnerbc624582004-01-18 22:15:46 +000011159 CFLAGS="$save_CFLAGS"
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011160fi
11161
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011162ALSALIBS=""
11163
11164
Marco Pietrobono0e79a412002-08-29 01:51:31 +000011165
11166for ac_header in alsa/asoundlib.h sys/asoundlib.h
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011167do
11168as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11169if eval "test \"\${$as_ac_Header+set}\" = set"; then
11170 echo "$as_me:$LINENO: checking for $ac_header" >&5
11171echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11172if eval "test \"\${$as_ac_Header+set}\" = set"; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11174fi
11175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11176echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11177else
11178 # Is the header compilable?
11179echo "$as_me:$LINENO: checking $ac_header usability" >&5
11180echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11181cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011182/* confdefs.h. */
11183_ACEOF
11184cat confdefs.h >>conftest.$ac_ext
11185cat >>conftest.$ac_ext <<_ACEOF
11186/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011187$ac_includes_default
11188#include <$ac_header>
11189_ACEOF
11190rm -f conftest.$ac_objext
11191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011192 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011193 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011194 grep -v '^ *+' conftest.er1 >conftest.err
11195 rm -f conftest.er1
11196 cat conftest.err >&5
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; } &&
11205 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11207 (eval $ac_try) 2>&5
11208 ac_status=$?
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); }; }; then
11211 ac_header_compiler=yes
11212else
11213 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011214sed 's/^/| /' conftest.$ac_ext >&5
11215
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011216ac_header_compiler=no
11217fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011219echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11220echo "${ECHO_T}$ac_header_compiler" >&6
11221
11222# Is the header present?
11223echo "$as_me:$LINENO: checking $ac_header presence" >&5
11224echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11225cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011226/* confdefs.h. */
11227_ACEOF
11228cat confdefs.h >>conftest.$ac_ext
11229cat >>conftest.$ac_ext <<_ACEOF
11230/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011231#include <$ac_header>
11232_ACEOF
11233if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11235 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011236 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011237 rm -f conftest.er1
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } >/dev/null; then
11241 if test -s conftest.err; then
11242 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011244 else
11245 ac_cpp_err=
11246 fi
11247else
11248 ac_cpp_err=yes
11249fi
11250if test -z "$ac_cpp_err"; then
11251 ac_header_preproc=yes
11252else
11253 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011254sed 's/^/| /' conftest.$ac_ext >&5
11255
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011256 ac_header_preproc=no
11257fi
11258rm -f conftest.err conftest.$ac_ext
11259echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11260echo "${ECHO_T}$ac_header_preproc" >&6
11261
11262# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011263case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11264 yes:no: )
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11266echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11268echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11269 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011270 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011271 no:yes:* )
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11273echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11275echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11277echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11278 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11279echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011281echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011282 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11283echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011284 (
11285 cat <<\_ASBOX
11286## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000011287## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011288## ------------------------------------ ##
11289_ASBOX
11290 ) |
11291 sed "s/^/$as_me: WARNING: /" >&2
11292 ;;
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011293esac
11294echo "$as_me:$LINENO: checking for $ac_header" >&5
11295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11296if eval "test \"\${$as_ac_Header+set}\" = set"; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11298else
Alexandre Julliard875927f2004-01-02 01:55:29 +000011299 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011300fi
11301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11302echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11303
11304fi
11305if test `eval echo '${'$as_ac_Header'}'` = yes; then
11306 cat >>confdefs.h <<_ACEOF
11307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11308_ACEOF
Marco Pietrobono0e79a412002-08-29 01:51:31 +000011309 break
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011310fi
11311
11312done
11313
Marco Pietrobono0e79a412002-08-29 01:51:31 +000011314if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011315then
Vincent Béron151015f2005-01-10 13:26:33 +000011316 echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
11317echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6
11318if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011319 echo $ECHO_N "(cached) $ECHO_C" >&6
11320else
11321 ac_check_lib_save_LIBS=$LIBS
11322LIBS="-lasound $LIBS"
11323cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011324/* confdefs.h. */
11325_ACEOF
11326cat confdefs.h >>conftest.$ac_ext
11327cat >>conftest.$ac_ext <<_ACEOF
11328/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011329
11330/* Override any gcc2 internal prototype to avoid an error. */
11331#ifdef __cplusplus
11332extern "C"
11333#endif
11334/* We use char because int might match the return type of a gcc2
11335 builtin and then its argument prototype would still apply. */
Vincent Béron151015f2005-01-10 13:26:33 +000011336char snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011337int
11338main ()
11339{
Vincent Béron151015f2005-01-10 13:26:33 +000011340snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011341 ;
11342 return 0;
11343}
11344_ACEOF
11345rm -f conftest.$ac_objext conftest$ac_exeext
11346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011347 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011348 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011349 grep -v '^ *+' conftest.er1 >conftest.err
11350 rm -f conftest.er1
11351 cat conftest.err >&5
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11356 (eval $ac_try) 2>&5
11357 ac_status=$?
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; } &&
11360 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362 (eval $ac_try) 2>&5
11363 ac_status=$?
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; }; then
Vincent Béron151015f2005-01-10 13:26:33 +000011366 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011367else
11368 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011369sed 's/^/| /' conftest.$ac_ext >&5
11370
Vincent Béron151015f2005-01-10 13:26:33 +000011371ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011372fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011373rm -f conftest.err conftest.$ac_objext \
11374 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011375LIBS=$ac_check_lib_save_LIBS
11376fi
Vincent Béron151015f2005-01-10 13:26:33 +000011377echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
11378echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6
11379if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
11380 cat >conftest.$ac_ext <<_ACEOF
11381/* confdefs.h. */
11382_ACEOF
11383cat confdefs.h >>conftest.$ac_ext
11384cat >>conftest.$ac_ext <<_ACEOF
11385/* end confdefs.h. */
11386#ifdef HAVE_ALSA_ASOUNDLIB_H
11387#include <alsa/asoundlib.h>
11388#elif defined(HAVE_SYS_ASOUNDLIB_H)
11389#include <sys/asoundlib.h>
11390#endif
11391int
11392main ()
11393{
11394int ret = snd_pcm_hw_params_get_access(NULL, NULL)
11395 ;
11396 return 0;
11397}
11398_ACEOF
11399rm -f conftest.$ac_objext
11400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11401 (eval $ac_compile) 2>conftest.er1
11402 ac_status=$?
11403 grep -v '^ *+' conftest.er1 >conftest.err
11404 rm -f conftest.er1
11405 cat conftest.err >&5
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); } &&
11408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410 (eval $ac_try) 2>&5
11411 ac_status=$?
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; } &&
11414 { ac_try='test -s conftest.$ac_objext'
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; }; then
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011420
11421cat >>confdefs.h <<\_ACEOF
11422#define HAVE_ALSA 1
11423_ACEOF
11424
Vincent Béron151015f2005-01-10 13:26:33 +000011425 ALSALIBS="-lasound"
11426else
11427 echo "$as_me: failed program was:" >&5
11428sed 's/^/| /' conftest.$ac_ext >&5
11429
11430fi
11431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011432fi
11433
11434fi
11435
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011436
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011437AUDIOIOLIBS=""
11438
11439
11440for ac_header in libaudioio.h
11441do
11442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11443if eval "test \"\${$as_ac_Header+set}\" = set"; then
11444 echo "$as_me:$LINENO: checking for $ac_header" >&5
11445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11446if eval "test \"\${$as_ac_Header+set}\" = set"; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11448fi
11449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11450echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11451else
11452 # Is the header compilable?
11453echo "$as_me:$LINENO: checking $ac_header usability" >&5
11454echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11455cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011456/* confdefs.h. */
11457_ACEOF
11458cat confdefs.h >>conftest.$ac_ext
11459cat >>conftest.$ac_ext <<_ACEOF
11460/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011461$ac_includes_default
11462#include <$ac_header>
11463_ACEOF
11464rm -f conftest.$ac_objext
11465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011466 (eval $ac_compile) 2>conftest.er1
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011467 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011468 grep -v '^ *+' conftest.er1 >conftest.err
11469 rm -f conftest.er1
11470 cat conftest.err >&5
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475 (eval $ac_try) 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; } &&
11479 { ac_try='test -s conftest.$ac_objext'
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11481 (eval $ac_try) 2>&5
11482 ac_status=$?
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; }; then
11485 ac_header_compiler=yes
11486else
11487 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011488sed 's/^/| /' conftest.$ac_ext >&5
11489
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011490ac_header_compiler=no
11491fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011493echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11494echo "${ECHO_T}$ac_header_compiler" >&6
11495
11496# Is the header present?
11497echo "$as_me:$LINENO: checking $ac_header presence" >&5
11498echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11499cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011500/* confdefs.h. */
11501_ACEOF
11502cat confdefs.h >>conftest.$ac_ext
11503cat >>conftest.$ac_ext <<_ACEOF
11504/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011505#include <$ac_header>
11506_ACEOF
11507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11509 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011510 grep -v '^ *+' conftest.er1 >conftest.err
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011511 rm -f conftest.er1
11512 cat conftest.err >&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); } >/dev/null; then
11515 if test -s conftest.err; then
11516 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011518 else
11519 ac_cpp_err=
11520 fi
11521else
11522 ac_cpp_err=yes
11523fi
11524if test -z "$ac_cpp_err"; then
11525 ac_header_preproc=yes
11526else
11527 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011528sed 's/^/| /' conftest.$ac_ext >&5
11529
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011530 ac_header_preproc=no
11531fi
11532rm -f conftest.err conftest.$ac_ext
11533echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11534echo "${ECHO_T}$ac_header_preproc" >&6
11535
11536# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011537case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11538 yes:no: )
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11540echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11542echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11543 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011544 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011545 no:yes:* )
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11547echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11549echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11551echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11553echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011555echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11557echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011558 (
11559 cat <<\_ASBOX
11560## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000011561## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011562## ------------------------------------ ##
11563_ASBOX
11564 ) |
11565 sed "s/^/$as_me: WARNING: /" >&2
11566 ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011567esac
11568echo "$as_me:$LINENO: checking for $ac_header" >&5
11569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11570if eval "test \"\${$as_ac_Header+set}\" = set"; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11572else
Alexandre Julliard875927f2004-01-02 01:55:29 +000011573 eval "$as_ac_Header=\$ac_header_preproc"
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011574fi
11575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11576echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11577
11578fi
11579if test `eval echo '${'$as_ac_Header'}'` = yes; then
11580 cat >>confdefs.h <<_ACEOF
11581#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11582_ACEOF
11583 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11584echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11585if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11587else
11588 ac_check_lib_save_LIBS=$LIBS
11589LIBS="-laudioio $LIBS"
11590cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011591/* confdefs.h. */
11592_ACEOF
11593cat confdefs.h >>conftest.$ac_ext
11594cat >>conftest.$ac_ext <<_ACEOF
11595/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011596
11597/* Override any gcc2 internal prototype to avoid an error. */
11598#ifdef __cplusplus
11599extern "C"
11600#endif
11601/* We use char because int might match the return type of a gcc2
11602 builtin and then its argument prototype would still apply. */
11603char AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011604int
11605main ()
11606{
11607AudioIOGetVersion ();
11608 ;
11609 return 0;
11610}
11611_ACEOF
11612rm -f conftest.$ac_objext conftest$ac_exeext
11613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011614 (eval $ac_link) 2>conftest.er1
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011615 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011616 grep -v '^ *+' conftest.er1 >conftest.err
11617 rm -f conftest.er1
11618 cat conftest.err >&5
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623 (eval $ac_try) 2>&5
11624 ac_status=$?
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; } &&
11627 { ac_try='test -s conftest$ac_exeext'
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11630 ac_status=$?
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; }; then
11633 ac_cv_lib_audioio_AudioIOGetVersion=yes
11634else
11635 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011636sed 's/^/| /' conftest.$ac_ext >&5
11637
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011638ac_cv_lib_audioio_AudioIOGetVersion=no
11639fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011640rm -f conftest.err conftest.$ac_objext \
11641 conftest$ac_exeext conftest.$ac_ext
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011642LIBS=$ac_check_lib_save_LIBS
11643fi
11644echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
11645echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
11646if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
11647 AUDIOIOLIBS="-laudioio"
11648
11649cat >>confdefs.h <<\_ACEOF
11650#define HAVE_LIBAUDIOIO 1
11651_ACEOF
11652
11653fi
11654
11655fi
11656
11657done
11658
11659
11660
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011661
11662for ac_header in capi20.h
11663do
11664as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11665if eval "test \"\${$as_ac_Header+set}\" = set"; then
11666 echo "$as_me:$LINENO: checking for $ac_header" >&5
11667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11668if eval "test \"\${$as_ac_Header+set}\" = set"; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
11670fi
11671echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11672echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11673else
11674 # Is the header compilable?
11675echo "$as_me:$LINENO: checking $ac_header usability" >&5
11676echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11677cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011678/* confdefs.h. */
11679_ACEOF
11680cat confdefs.h >>conftest.$ac_ext
11681cat >>conftest.$ac_ext <<_ACEOF
11682/* end confdefs.h. */
11683$ac_includes_default
11684#include <$ac_header>
11685_ACEOF
11686rm -f conftest.$ac_objext
11687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011688 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011689 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011690 grep -v '^ *+' conftest.er1 >conftest.err
11691 rm -f conftest.er1
11692 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11698 ac_status=$?
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; } &&
11701 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 ac_header_compiler=yes
11708else
11709 echo "$as_me: failed program was:" >&5
11710sed 's/^/| /' conftest.$ac_ext >&5
11711
11712ac_header_compiler=no
11713fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011715echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11716echo "${ECHO_T}$ac_header_compiler" >&6
11717
11718# Is the header present?
11719echo "$as_me:$LINENO: checking $ac_header presence" >&5
11720echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11721cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011722/* confdefs.h. */
11723_ACEOF
11724cat confdefs.h >>conftest.$ac_ext
11725cat >>conftest.$ac_ext <<_ACEOF
11726/* end confdefs.h. */
11727#include <$ac_header>
11728_ACEOF
11729if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11731 ac_status=$?
11732 grep -v '^ *+' conftest.er1 >conftest.err
11733 rm -f conftest.er1
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } >/dev/null; then
11737 if test -s conftest.err; then
11738 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011740 else
11741 ac_cpp_err=
11742 fi
11743else
11744 ac_cpp_err=yes
11745fi
11746if test -z "$ac_cpp_err"; then
11747 ac_header_preproc=yes
11748else
11749 echo "$as_me: failed program was:" >&5
11750sed 's/^/| /' conftest.$ac_ext >&5
11751
11752 ac_header_preproc=no
11753fi
11754rm -f conftest.err conftest.$ac_ext
11755echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11756echo "${ECHO_T}$ac_header_preproc" >&6
11757
11758# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011759case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11760 yes:no: )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11762echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11764echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11765 ac_header_preproc=yes
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011766 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011767 no:yes:* )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11769echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11771echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11773echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11775echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11777echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11779echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011780 (
11781 cat <<\_ASBOX
11782## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000011783## Report this to wine-devel@winehq.org ##
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011784## ------------------------------------ ##
11785_ASBOX
11786 ) |
11787 sed "s/^/$as_me: WARNING: /" >&2
11788 ;;
11789esac
11790echo "$as_me:$LINENO: checking for $ac_header" >&5
11791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11792if eval "test \"\${$as_ac_Header+set}\" = set"; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11794else
Alexandre Julliard875927f2004-01-02 01:55:29 +000011795 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011796fi
11797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11798echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11799
11800fi
11801if test `eval echo '${'$as_ac_Header'}'` = yes; then
11802 cat >>confdefs.h <<_ACEOF
11803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11804_ACEOF
11805
11806
11807for ac_header in linux/capi.h
11808do
11809as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11810if eval "test \"\${$as_ac_Header+set}\" = set"; then
11811 echo "$as_me:$LINENO: checking for $ac_header" >&5
11812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11813if eval "test \"\${$as_ac_Header+set}\" = set"; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
11815fi
11816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11818else
11819 # Is the header compilable?
11820echo "$as_me:$LINENO: checking $ac_header usability" >&5
11821echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11822cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011823/* confdefs.h. */
11824_ACEOF
11825cat confdefs.h >>conftest.$ac_ext
11826cat >>conftest.$ac_ext <<_ACEOF
11827/* end confdefs.h. */
11828$ac_includes_default
11829#include <$ac_header>
11830_ACEOF
11831rm -f conftest.$ac_objext
11832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011833 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011834 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842 (eval $ac_try) 2>&5
11843 ac_status=$?
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; } &&
11846 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11849 ac_status=$?
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; }; then
11852 ac_header_compiler=yes
11853else
11854 echo "$as_me: failed program was:" >&5
11855sed 's/^/| /' conftest.$ac_ext >&5
11856
11857ac_header_compiler=no
11858fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011860echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11861echo "${ECHO_T}$ac_header_compiler" >&6
11862
11863# Is the header present?
11864echo "$as_me:$LINENO: checking $ac_header presence" >&5
11865echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11866cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011867/* confdefs.h. */
11868_ACEOF
11869cat confdefs.h >>conftest.$ac_ext
11870cat >>conftest.$ac_ext <<_ACEOF
11871/* end confdefs.h. */
11872#include <$ac_header>
11873_ACEOF
11874if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11876 ac_status=$?
11877 grep -v '^ *+' conftest.er1 >conftest.err
11878 rm -f conftest.er1
11879 cat conftest.err >&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } >/dev/null; then
11882 if test -s conftest.err; then
11883 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011885 else
11886 ac_cpp_err=
11887 fi
11888else
11889 ac_cpp_err=yes
11890fi
11891if test -z "$ac_cpp_err"; then
11892 ac_header_preproc=yes
11893else
11894 echo "$as_me: failed program was:" >&5
11895sed 's/^/| /' conftest.$ac_ext >&5
11896
11897 ac_header_preproc=no
11898fi
11899rm -f conftest.err conftest.$ac_ext
11900echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11901echo "${ECHO_T}$ac_header_preproc" >&6
11902
11903# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011904case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11905 yes:no: )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11907echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11909echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11910 ac_header_preproc=yes
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011911 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011912 no:yes:* )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11914echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11916echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11918echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11920echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11922echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11924echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011925 (
11926 cat <<\_ASBOX
11927## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000011928## Report this to wine-devel@winehq.org ##
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011929## ------------------------------------ ##
11930_ASBOX
11931 ) |
11932 sed "s/^/$as_me: WARNING: /" >&2
11933 ;;
11934esac
11935echo "$as_me:$LINENO: checking for $ac_header" >&5
11936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11937if eval "test \"\${$as_ac_Header+set}\" = set"; then
11938 echo $ECHO_N "(cached) $ECHO_C" >&6
11939else
Alexandre Julliard875927f2004-01-02 01:55:29 +000011940 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011941fi
11942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11944
11945fi
11946if test `eval echo '${'$as_ac_Header'}'` = yes; then
11947 cat >>confdefs.h <<_ACEOF
11948#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11949_ACEOF
11950
11951 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
11952echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
11953if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11955else
11956 ac_check_lib_save_LIBS=$LIBS
11957LIBS="-lcapi20 $LIBS"
11958cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011959/* confdefs.h. */
11960_ACEOF
11961cat confdefs.h >>conftest.$ac_ext
11962cat >>conftest.$ac_ext <<_ACEOF
11963/* end confdefs.h. */
11964
11965/* Override any gcc2 internal prototype to avoid an error. */
11966#ifdef __cplusplus
11967extern "C"
11968#endif
11969/* We use char because int might match the return type of a gcc2
11970 builtin and then its argument prototype would still apply. */
11971char capi20_register ();
11972int
11973main ()
11974{
11975capi20_register ();
11976 ;
11977 return 0;
11978}
11979_ACEOF
11980rm -f conftest.$ac_objext conftest$ac_exeext
11981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011982 (eval $ac_link) 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011983 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011984 grep -v '^ *+' conftest.er1 >conftest.err
11985 rm -f conftest.er1
11986 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001 ac_cv_lib_capi20_capi20_register=yes
12002else
12003 echo "$as_me: failed program was:" >&5
12004sed 's/^/| /' conftest.$ac_ext >&5
12005
12006ac_cv_lib_capi20_capi20_register=no
12007fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012008rm -f conftest.err conftest.$ac_objext \
12009 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012010LIBS=$ac_check_lib_save_LIBS
12011fi
12012echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12013echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12014if test $ac_cv_lib_capi20_capi20_register = yes; then
12015
12016
12017cat >>confdefs.h <<\_ACEOF
12018#define HAVE_CAPI4LINUX 1
12019_ACEOF
12020
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012021
12022fi
12023
12024
12025fi
12026
12027done
12028
12029
12030fi
12031
12032done
12033
12034
12035
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012036echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012037echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12038if test "${ac_cv_mmap64_works+set}" = set; then
12039 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012040else
12041 if test "$cross_compiling" = yes; then
12042 ac_cv_mmap64_works="no"
12043else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012044 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012045/* confdefs.h. */
12046_ACEOF
12047cat confdefs.h >>conftest.$ac_ext
12048cat >>conftest.$ac_ext <<_ACEOF
12049/* end confdefs.h. */
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012050
12051 #define _FILE_OFFSET_BITS 64
12052 #include <stdio.h>
12053 #include <unistd.h>
12054 #include <fcntl.h>
12055 #include <sys/mman.h>
12056 #include <errno.h>
12057
12058 int main(int argc,char **argv) {
12059 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12060 if (fd == -1) exit(1);
12061
12062 unlink("conftest.map");
12063
12064 write(fd,"test",4);
12065
12066 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12067 (errno == EINVAL)
12068 ) {
12069 exit(1);
12070 }
12071 close(fd);
12072 fprintf(stderr,"success!\n");
12073 exit(0);
12074 }
12075
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012076
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012077_ACEOF
12078rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012080 (eval $ac_link) 2>&5
12081 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012085 (eval $ac_try) 2>&5
12086 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012088 (exit $ac_status); }; }; then
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012089 ac_cv_mmap64_works="yes"
12090else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012091 echo "$as_me: program exited with status $ac_status" >&5
12092echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012093sed 's/^/| /' conftest.$ac_ext >&5
12094
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012095( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012096ac_cv_mmap64_works="no"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012097fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012098rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012099fi
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012100fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012101echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012102echo "${ECHO_T}$ac_cv_mmap64_works" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012103
12104if test "$ac_cv_mmap64_works" = "yes"
12105then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012106
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012107cat >>confdefs.h <<\_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012108#define _FILE_OFFSET_BITS 64
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012109_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012110
12111fi
12112
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012113
Alexandre Julliardfc094232003-04-14 21:46:41 +000012114EXTRACFLAGS=""
12115
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012116if test "x${GCC}" = "xyes"
12117then
Hans Leidekkerd17b2322004-01-06 21:37:44 +000012118 EXTRACFLAGS="-Wall -pipe"
Mike McCormackc509bc42003-02-25 04:01:58 +000012119
12120 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012121echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12122if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012124else
12125 if test "$cross_compiling" = yes; then
12126 ac_cv_c_gcc_strength_bug="yes"
12127else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012128 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012129/* confdefs.h. */
12130_ACEOF
12131cat confdefs.h >>conftest.$ac_ext
12132cat >>conftest.$ac_ext <<_ACEOF
12133/* end confdefs.h. */
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012134
Eric Pouech5aee80f2000-11-11 00:31:39 +000012135int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012136int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000012137 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012138 unsigned int B = 3;
12139 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000012140 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000012141 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12142 L[i] = 4;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012143
Eric Pouech5aee80f2000-11-11 00:31:39 +000012144 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012145}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012146_ACEOF
12147rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012149 (eval $ac_link) 2>&5
12150 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012154 (eval $ac_try) 2>&5
12155 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012157 (exit $ac_status); }; }; then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012158 ac_cv_c_gcc_strength_bug="no"
12159else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012160 echo "$as_me: program exited with status $ac_status" >&5
12161echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012162sed 's/^/| /' conftest.$ac_ext >&5
12163
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012164( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012165ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012166fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012167rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012168fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012169fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012170echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012171echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012172 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12173 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012174 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012175 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012176
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000012177 echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12178echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12179if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12181else
12182 ac_wine_try_cflags_saved=$CFLAGS
12183CFLAGS="$CFLAGS -fshort-wchar"
12184cat >conftest.$ac_ext <<_ACEOF
12185/* confdefs.h. */
12186_ACEOF
12187cat confdefs.h >>conftest.$ac_ext
12188cat >>conftest.$ac_ext <<_ACEOF
12189/* end confdefs.h. */
12190
12191int
12192main ()
12193{
12194
12195 ;
12196 return 0;
12197}
12198_ACEOF
12199rm -f conftest.$ac_objext conftest$ac_exeext
12200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12201 (eval $ac_link) 2>conftest.er1
12202 ac_status=$?
12203 grep -v '^ *+' conftest.er1 >conftest.err
12204 rm -f conftest.er1
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } &&
12208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210 (eval $ac_try) 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; } &&
12214 { ac_try='test -s conftest$ac_exeext'
12215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216 (eval $ac_try) 2>&5
12217 ac_status=$?
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; }; then
12220 ac_cv_c_gcc_fshort_wchar="yes"
12221else
12222 echo "$as_me: failed program was:" >&5
12223sed 's/^/| /' conftest.$ac_ext >&5
12224
12225ac_cv_c_gcc_fshort_wchar="no"
12226fi
12227rm -f conftest.err conftest.$ac_objext \
12228 conftest$ac_exeext conftest.$ac_ext
12229CFLAGS=$ac_wine_try_cflags_saved
12230fi
12231echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12232echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12233 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12234 then
12235
12236cat >>confdefs.h <<\_ACEOF
12237#define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12238_ACEOF
12239
12240 fi
12241
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012242 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012243echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12244if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012246else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012247 ac_wine_try_cflags_saved=$CFLAGS
12248CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12249cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012250/* confdefs.h. */
12251_ACEOF
12252cat confdefs.h >>conftest.$ac_ext
12253cat >>conftest.$ac_ext <<_ACEOF
12254/* end confdefs.h. */
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012255
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012256int
12257main ()
12258{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012259
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012260 ;
12261 return 0;
12262}
12263_ACEOF
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012264rm -f conftest.$ac_objext conftest$ac_exeext
12265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012266 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012267 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012268 grep -v '^ *+' conftest.er1 >conftest.err
12269 rm -f conftest.er1
12270 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012272 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; } &&
12279 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012281 (eval $ac_try) 2>&5
12282 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012284 (exit $ac_status); }; }; then
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012285 ac_cv_c_gcc_stack_boundary="yes"
12286else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012287 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012288sed 's/^/| /' conftest.$ac_ext >&5
12289
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012290ac_cv_c_gcc_stack_boundary="no"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012291fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012292rm -f conftest.err conftest.$ac_objext \
12293 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012294CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012295fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012296echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012297echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012298 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12299 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012300 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012301 fi
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012302
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012303 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12304echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12305if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12307else
12308 ac_wine_try_cflags_saved=$CFLAGS
12309CFLAGS="$CFLAGS -fno-strict-aliasing"
12310cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012311/* confdefs.h. */
12312_ACEOF
12313cat confdefs.h >>conftest.$ac_ext
12314cat >>conftest.$ac_ext <<_ACEOF
12315/* end confdefs.h. */
12316
12317int
12318main ()
12319{
12320
12321 ;
12322 return 0;
12323}
12324_ACEOF
12325rm -f conftest.$ac_objext conftest$ac_exeext
12326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012327 (eval $ac_link) 2>conftest.er1
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012328 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012329 grep -v '^ *+' conftest.er1 >conftest.err
12330 rm -f conftest.er1
12331 cat conftest.err >&5
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; } &&
12340 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12343 ac_status=$?
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; }; then
12346 ac_cv_c_gcc_no_strict_aliasing="yes"
12347else
12348 echo "$as_me: failed program was:" >&5
12349sed 's/^/| /' conftest.$ac_ext >&5
12350
12351ac_cv_c_gcc_no_strict_aliasing="no"
12352fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012353rm -f conftest.err conftest.$ac_objext \
12354 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012355CFLAGS=$ac_wine_try_cflags_saved
12356fi
12357echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12358echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12359 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12360 then
12361 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12362 fi
12363
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012364 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12365echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12366if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12368else
12369 ac_wine_try_cflags_saved=$CFLAGS
12370CFLAGS="$CFLAGS -gstabs+"
12371cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012372/* confdefs.h. */
12373_ACEOF
12374cat confdefs.h >>conftest.$ac_ext
12375cat >>conftest.$ac_ext <<_ACEOF
12376/* end confdefs.h. */
12377
12378int
12379main ()
12380{
12381
12382 ;
12383 return 0;
12384}
12385_ACEOF
12386rm -f conftest.$ac_objext conftest$ac_exeext
12387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012388 (eval $ac_link) 2>conftest.er1
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012389 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012390 grep -v '^ *+' conftest.er1 >conftest.err
12391 rm -f conftest.er1
12392 cat conftest.err >&5
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; } &&
12401 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; }; then
12407 ac_cv_c_gcc_gstabs="yes"
12408else
12409 echo "$as_me: failed program was:" >&5
12410sed 's/^/| /' conftest.$ac_ext >&5
12411
12412ac_cv_c_gcc_gstabs="no"
12413fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012414rm -f conftest.err conftest.$ac_objext \
12415 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012416CFLAGS=$ac_wine_try_cflags_saved
12417fi
12418echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12419echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12420 if test "$ac_cv_c_gcc_gstabs" = "yes"
12421 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012422 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012423 fi
Mike McCormackc509bc42003-02-25 04:01:58 +000012424
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012425 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012426 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12427 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12428echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12429if test "${ac_cv_c_string_h_warnings+set}" = set; then
12430 echo $ECHO_N "(cached) $ECHO_C" >&6
12431else
12432 cat >conftest.$ac_ext <<_ACEOF
Mike McCormackc509bc42003-02-25 04:01:58 +000012433/* confdefs.h. */
12434_ACEOF
12435cat confdefs.h >>conftest.$ac_ext
12436cat >>conftest.$ac_ext <<_ACEOF
12437/* end confdefs.h. */
12438#include <string.h>
12439int
12440main ()
12441{
12442
12443 ;
12444 return 0;
12445}
12446_ACEOF
12447rm -f conftest.$ac_objext
12448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012449 (eval $ac_compile) 2>conftest.er1
Mike McCormackc509bc42003-02-25 04:01:58 +000012450 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012451 grep -v '^ *+' conftest.er1 >conftest.err
12452 rm -f conftest.er1
12453 cat conftest.err >&5
Mike McCormackc509bc42003-02-25 04:01:58 +000012454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458 (eval $ac_try) 2>&5
12459 ac_status=$?
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; } &&
12462 { ac_try='test -s conftest.$ac_objext'
Mike McCormackc509bc42003-02-25 04:01:58 +000012463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12468 ac_cv_c_string_h_warnings=no
12469else
12470 echo "$as_me: failed program was:" >&5
12471sed 's/^/| /' conftest.$ac_ext >&5
12472
12473ac_cv_c_string_h_warnings=yes
12474fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000012476fi
12477echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12478echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012479 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012480 if test "$ac_cv_c_string_h_warnings" = "no"
12481 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012482 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000012483 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012484fi
12485
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012486
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012487echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12488echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12489if test "${ac_cv_asm_func_def+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012490 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012491else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012492 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012493/* confdefs.h. */
12494_ACEOF
12495cat confdefs.h >>conftest.$ac_ext
12496cat >>conftest.$ac_ext <<_ACEOF
12497/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000012498void 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 +000012499
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012500int
12501main ()
12502{
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012503
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012504 ;
12505 return 0;
12506}
12507_ACEOF
12508rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012510 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012511 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012516 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12520 ac_status=$?
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; } &&
12523 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012525 (eval $ac_try) 2>&5
12526 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012528 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012529 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012530else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012531 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012532sed 's/^/| /' conftest.$ac_ext >&5
12533
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012534cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012535/* confdefs.h. */
12536_ACEOF
12537cat confdefs.h >>conftest.$ac_ext
12538cat >>conftest.$ac_ext <<_ACEOF
12539/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000012540void 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 +000012541
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012542int
12543main ()
12544{
12545
12546 ;
12547 return 0;
12548}
12549_ACEOF
12550rm -f conftest.$ac_objext conftest$ac_exeext
12551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012552 (eval $ac_link) 2>conftest.er1
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012553 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012554 grep -v '^ *+' conftest.er1 >conftest.err
12555 rm -f conftest.er1
12556 cat conftest.err >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12562 ac_status=$?
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; } &&
12565 { ac_try='test -s conftest$ac_exeext'
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12568 ac_status=$?
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012571 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012572else
12573 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012574sed 's/^/| /' conftest.$ac_ext >&5
12575
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012576cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012577/* confdefs.h. */
12578_ACEOF
12579cat confdefs.h >>conftest.$ac_ext
12580cat >>conftest.$ac_ext <<_ACEOF
12581/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000012582void 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 +000012583
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012584int
12585main ()
12586{
12587
12588 ;
12589 return 0;
12590}
12591_ACEOF
12592rm -f conftest.$ac_objext conftest$ac_exeext
12593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012594 (eval $ac_link) 2>conftest.er1
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012595 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012596 grep -v '^ *+' conftest.er1 >conftest.err
12597 rm -f conftest.er1
12598 cat conftest.err >&5
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12604 ac_status=$?
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; } &&
12607 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12610 ac_status=$?
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; }; then
12613 ac_cv_asm_func_def=".type 2"
12614else
12615 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012616sed 's/^/| /' conftest.$ac_ext >&5
12617
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012618ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012619fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012620rm -f conftest.err conftest.$ac_objext \
12621 conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012622fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012623rm -f conftest.err conftest.$ac_objext \
12624 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012625fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012626rm -f conftest.err conftest.$ac_objext \
12627 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012628fi
12629echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12630echo "${ECHO_T}$ac_cv_asm_func_def" >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012631
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012632
12633
12634case "$ac_cv_asm_func_def" in
12635 ".def")
12636 cat >>confdefs.h <<\_ACEOF
12637#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012638_ACEOF
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012639 ;;
12640 ".type @function")
12641 cat >>confdefs.h <<\_ACEOF
12642#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12643_ACEOF
12644 ;;
12645 ".type 2")
12646 cat >>confdefs.h <<\_ACEOF
12647#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12648_ACEOF
12649 ;;
12650 *)
12651 cat >>confdefs.h <<\_ACEOF
12652#define __ASM_FUNC(name) ""
12653_ACEOF
12654 ;;
12655esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012656
12657
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012658echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012659echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
12660if test "${ac_cv_c_extern_prefix+set}" = set; then
12661 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012662else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012663 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012664/* confdefs.h. */
12665_ACEOF
12666cat confdefs.h >>conftest.$ac_ext
12667cat >>conftest.$ac_ext <<_ACEOF
12668/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000012669void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012670extern int ac_test;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012671int
12672main ()
12673{
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012674if (ac_test) return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012675 ;
12676 return 0;
12677}
12678_ACEOF
12679rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012681 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012682 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012683 grep -v '^ *+' conftest.er1 >conftest.err
12684 rm -f conftest.er1
12685 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012687 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12691 ac_status=$?
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; } &&
12694 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012696 (eval $ac_try) 2>&5
12697 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012699 (exit $ac_status); }; }; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012700 ac_cv_c_extern_prefix="yes"
12701else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012702 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012703sed 's/^/| /' conftest.$ac_ext >&5
12704
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012705ac_cv_c_extern_prefix="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012706fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012707rm -f conftest.err conftest.$ac_objext \
12708 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012709fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012710echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012711echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012712
12713
12714
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012715if test "$ac_cv_c_extern_prefix" = "yes"
12716then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012717 cat >>confdefs.h <<\_ACEOF
12718#define __ASM_NAME(name) "_" name
12719_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012720
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012721else
12722 cat >>confdefs.h <<\_ACEOF
12723#define __ASM_NAME(name) name
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012724_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012725
12726fi
12727
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012728
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012729DLLEXT=""
12730
Alexandre Julliardfc094232003-04-14 21:46:41 +000012731DLLFLAGS="-D_REENTRANT"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012732
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000012733DLLIBS=""
12734
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012735LDSHARED=""
12736
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000012737LDDLLFLAGS=""
Alexandre Julliard6ac34ac2003-10-11 01:05:18 +000012738
Alexandre Julliardada5e652002-12-12 22:03:14 +000012739LIBEXT="so"
12740
12741IMPLIBEXT="def"
12742
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012743
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012744case $host_os in
12745 cygwin*|mingw32*)
12746 if test -n "$ac_tool_prefix"; then
Alexandre Julliardada5e652002-12-12 22:03:14 +000012747 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12748set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12749echo "$as_me:$LINENO: checking for $ac_word" >&5
12750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12751if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12753else
12754 if test -n "$DLLTOOL"; then
12755 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12756else
12757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12758for as_dir in $PATH
12759do
12760 IFS=$as_save_IFS
12761 test -z "$as_dir" && as_dir=.
12762 for ac_exec_ext in '' $ac_executable_extensions; do
12763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12764 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12766 break 2
12767 fi
12768done
12769done
12770
12771fi
12772fi
12773DLLTOOL=$ac_cv_prog_DLLTOOL
12774if test -n "$DLLTOOL"; then
12775 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12776echo "${ECHO_T}$DLLTOOL" >&6
12777else
12778 echo "$as_me:$LINENO: result: no" >&5
12779echo "${ECHO_T}no" >&6
12780fi
12781
12782fi
12783if test -z "$ac_cv_prog_DLLTOOL"; then
12784 ac_ct_DLLTOOL=$DLLTOOL
12785 # Extract the first word of "dlltool", so it can be a program name with args.
12786set dummy dlltool; ac_word=$2
12787echo "$as_me:$LINENO: checking for $ac_word" >&5
12788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12789if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12791else
12792 if test -n "$ac_ct_DLLTOOL"; then
12793 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12794else
12795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12796for as_dir in $PATH
12797do
12798 IFS=$as_save_IFS
12799 test -z "$as_dir" && as_dir=.
12800 for ac_exec_ext in '' $ac_executable_extensions; do
12801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12802 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12804 break 2
12805 fi
12806done
12807done
12808
12809 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
12810fi
12811fi
12812ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12813if test -n "$ac_ct_DLLTOOL"; then
12814 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
12815echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
12816else
12817 echo "$as_me:$LINENO: result: no" >&5
12818echo "${ECHO_T}no" >&6
12819fi
12820
12821 DLLTOOL=$ac_ct_DLLTOOL
12822else
12823 DLLTOOL="$ac_cv_prog_DLLTOOL"
12824fi
12825
12826 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012827 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
12828set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard466ae142002-05-07 18:33:47 +000012829echo "$as_me:$LINENO: checking for $ac_word" >&5
12830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12831if test "${ac_cv_prog_DLLWRAP+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12833else
12834 if test -n "$DLLWRAP"; then
12835 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
12836else
12837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12838for as_dir in $PATH
12839do
12840 IFS=$as_save_IFS
12841 test -z "$as_dir" && as_dir=.
12842 for ac_exec_ext in '' $ac_executable_extensions; do
12843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012844 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard466ae142002-05-07 18:33:47 +000012845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12846 break 2
12847 fi
12848done
12849done
12850
Alexandre Julliard466ae142002-05-07 18:33:47 +000012851fi
12852fi
12853DLLWRAP=$ac_cv_prog_DLLWRAP
12854if test -n "$DLLWRAP"; then
12855 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
12856echo "${ECHO_T}$DLLWRAP" >&6
12857else
12858 echo "$as_me:$LINENO: result: no" >&5
12859echo "${ECHO_T}no" >&6
12860fi
12861
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012862fi
12863if test -z "$ac_cv_prog_DLLWRAP"; then
12864 ac_ct_DLLWRAP=$DLLWRAP
12865 # Extract the first word of "dllwrap", so it can be a program name with args.
12866set dummy dllwrap; ac_word=$2
12867echo "$as_me:$LINENO: checking for $ac_word" >&5
12868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12869if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12871else
12872 if test -n "$ac_ct_DLLWRAP"; then
12873 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
12874else
12875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12876for as_dir in $PATH
12877do
12878 IFS=$as_save_IFS
12879 test -z "$as_dir" && as_dir=.
12880 for ac_exec_ext in '' $ac_executable_extensions; do
12881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12882 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
12883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12884 break 2
12885 fi
12886done
12887done
12888
12889 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
12890fi
12891fi
12892ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
12893if test -n "$ac_ct_DLLWRAP"; then
12894 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
12895echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
12896else
12897 echo "$as_me:$LINENO: result: no" >&5
12898echo "${ECHO_T}no" >&6
12899fi
12900
12901 DLLWRAP=$ac_ct_DLLWRAP
12902else
12903 DLLWRAP="$ac_cv_prog_DLLWRAP"
12904fi
12905
12906 if test "$DLLWRAP" = "false"; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000012907 LIBEXT="a"
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012908 else
12909 LIBEXT="dll"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000012910 fi
Alexandre Julliardada5e652002-12-12 22:03:14 +000012911 IMPLIBEXT="a"
Alexandre Julliard56a4a762004-08-12 03:27:50 +000012912 WIN16_FILES=""
12913 WIN16_INSTALL=""
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000012914 ;;
12915 *)
12916
12917for ac_header in dlfcn.h
12918do
12919as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12920if eval "test \"\${$as_ac_Header+set}\" = set"; then
12921 echo "$as_me:$LINENO: checking for $ac_header" >&5
12922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12923if eval "test \"\${$as_ac_Header+set}\" = set"; then
12924 echo $ECHO_N "(cached) $ECHO_C" >&6
12925fi
12926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12928else
12929 # Is the header compilable?
12930echo "$as_me:$LINENO: checking $ac_header usability" >&5
12931echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12932cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012933/* confdefs.h. */
12934_ACEOF
12935cat confdefs.h >>conftest.$ac_ext
12936cat >>conftest.$ac_ext <<_ACEOF
12937/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000012938$ac_includes_default
12939#include <$ac_header>
12940_ACEOF
12941rm -f conftest.$ac_objext
12942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012943 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000012944 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012945 grep -v '^ *+' conftest.er1 >conftest.err
12946 rm -f conftest.er1
12947 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000012948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12953 ac_status=$?
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; } &&
12956 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000012957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_header_compiler=yes
12963else
12964 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012965sed 's/^/| /' conftest.$ac_ext >&5
12966
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000012967ac_header_compiler=no
12968fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000012970echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12971echo "${ECHO_T}$ac_header_compiler" >&6
12972
12973# Is the header present?
12974echo "$as_me:$LINENO: checking $ac_header presence" >&5
12975echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12976cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012977/* confdefs.h. */
12978_ACEOF
12979cat confdefs.h >>conftest.$ac_ext
12980cat >>conftest.$ac_ext <<_ACEOF
12981/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000012982#include <$ac_header>
12983_ACEOF
12984if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12986 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012987 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000012988 rm -f conftest.er1
12989 cat conftest.err >&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } >/dev/null; then
12992 if test -s conftest.err; then
12993 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000012994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000012995 else
12996 ac_cpp_err=
12997 fi
12998else
12999 ac_cpp_err=yes
13000fi
13001if test -z "$ac_cpp_err"; then
13002 ac_header_preproc=yes
13003else
13004 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013005sed 's/^/| /' conftest.$ac_ext >&5
13006
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013007 ac_header_preproc=no
13008fi
13009rm -f conftest.err conftest.$ac_ext
13010echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13011echo "${ECHO_T}$ac_header_preproc" >&6
13012
13013# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013014case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13015 yes:no: )
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13017echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000013018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13019echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13020 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013021 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000013022 no:yes:* )
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13024echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000013025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13026echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13028echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13030echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013032echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000013033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13034echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013035 (
13036 cat <<\_ASBOX
13037## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000013038## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013039## ------------------------------------ ##
13040_ASBOX
13041 ) |
13042 sed "s/^/$as_me: WARNING: /" >&2
13043 ;;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013044esac
13045echo "$as_me:$LINENO: checking for $ac_header" >&5
13046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13047if eval "test \"\${$as_ac_Header+set}\" = set"; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13049else
Alexandre Julliard875927f2004-01-02 01:55:29 +000013050 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013051fi
13052echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13053echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13054
13055fi
13056if test `eval echo '${'$as_ac_Header'}'` = yes; then
13057 cat >>confdefs.h <<_ACEOF
13058#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13059_ACEOF
13060
13061for ac_func in dlopen
13062do
13063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13064echo "$as_me:$LINENO: checking for $ac_func" >&5
13065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13066if eval "test \"\${$as_ac_var+set}\" = set"; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13068else
13069 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013070/* confdefs.h. */
13071_ACEOF
13072cat confdefs.h >>conftest.$ac_ext
13073cat >>conftest.$ac_ext <<_ACEOF
13074/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000013075/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13077#define $ac_func innocuous_$ac_func
13078
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013079/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013080 which can conflict with char $ac_func (); below.
13081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13082 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000013083
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013084#ifdef __STDC__
13085# include <limits.h>
13086#else
13087# include <assert.h>
13088#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000013089
13090#undef $ac_func
13091
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013092/* Override any gcc2 internal prototype to avoid an error. */
13093#ifdef __cplusplus
13094extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013095{
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013096#endif
13097/* We use char because int might match the return type of a gcc2
13098 builtin and then its argument prototype would still apply. */
13099char $ac_func ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013100/* The GNU C library defines this for functions which it implements
13101 to always fail with ENOSYS. Some functions are actually named
13102 something starting with __ and the normal name is an alias. */
13103#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13104choke me
13105#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013106char (*f) () = $ac_func;
13107#endif
13108#ifdef __cplusplus
13109}
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013110#endif
13111
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013112int
13113main ()
13114{
13115return f != $ac_func;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013116 ;
13117 return 0;
13118}
13119_ACEOF
13120rm -f conftest.$ac_objext conftest$ac_exeext
13121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013122 (eval $ac_link) 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013123 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013124 grep -v '^ *+' conftest.er1 >conftest.err
13125 rm -f conftest.er1
13126 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131 (eval $ac_try) 2>&5
13132 ac_status=$?
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; } &&
13135 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; }; then
13141 eval "$as_ac_var=yes"
13142else
13143 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013144sed 's/^/| /' conftest.$ac_ext >&5
13145
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013146eval "$as_ac_var=no"
13147fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013148rm -f conftest.err conftest.$ac_objext \
13149 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013150fi
13151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13152echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13153if test `eval echo '${'$as_ac_var'}'` = yes; then
13154 cat >>confdefs.h <<_ACEOF
13155#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13156_ACEOF
13157
13158else
13159 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13160echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13161if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13163else
13164 ac_check_lib_save_LIBS=$LIBS
13165LIBS="-ldl $LIBS"
13166cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013167/* confdefs.h. */
13168_ACEOF
13169cat confdefs.h >>conftest.$ac_ext
13170cat >>conftest.$ac_ext <<_ACEOF
13171/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013172
13173/* Override any gcc2 internal prototype to avoid an error. */
13174#ifdef __cplusplus
13175extern "C"
13176#endif
13177/* We use char because int might match the return type of a gcc2
13178 builtin and then its argument prototype would still apply. */
13179char dlopen ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013180int
13181main ()
13182{
13183dlopen ();
13184 ;
13185 return 0;
13186}
13187_ACEOF
13188rm -f conftest.$ac_objext conftest$ac_exeext
13189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013190 (eval $ac_link) 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013191 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013192 grep -v '^ *+' conftest.er1 >conftest.err
13193 rm -f conftest.er1
13194 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13199 (eval $ac_try) 2>&5
13200 ac_status=$?
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; } &&
13203 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205 (eval $ac_try) 2>&5
13206 ac_status=$?
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }; }; then
13209 ac_cv_lib_dl_dlopen=yes
13210else
13211 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013212sed 's/^/| /' conftest.$ac_ext >&5
13213
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013214ac_cv_lib_dl_dlopen=no
13215fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013216rm -f conftest.err conftest.$ac_objext \
13217 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013218LIBS=$ac_check_lib_save_LIBS
13219fi
13220echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13221echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13222if test $ac_cv_lib_dl_dlopen = yes; then
13223
13224cat >>confdefs.h <<\_ACEOF
13225#define HAVE_DLOPEN 1
13226_ACEOF
13227
13228 DLLIBS="-ldl"
13229else
13230 LIBEXT="a"
13231fi
13232
13233fi
13234done
13235
13236else
13237 LIBEXT="a"
13238fi
13239
13240done
13241
13242
13243 if test "$LIBEXT" = "so"
13244 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000013245 DLLFLAGS="$DLLFLAGS -fPIC"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013246 DLLEXT=".so"
Alexandre Julliard466ae142002-05-07 18:33:47 +000013247 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013248echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13249if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13250 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013251else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000013252 ac_wine_try_cflags_saved=$CFLAGS
13253CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13254cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000013255void myfunc() {}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013256_ACEOF
13257rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013259 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013260 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013261 grep -v '^ *+' conftest.er1 >conftest.err
13262 rm -f conftest.er1
13263 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013265 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268 (eval $ac_try) 2>&5
13269 ac_status=$?
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; } &&
13272 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013274 (eval $ac_try) 2>&5
13275 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013277 (exit $ac_status); }; }; then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +000013278 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013279else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013280 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013281sed 's/^/| /' conftest.$ac_ext >&5
13282
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013283ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013284fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013285rm -f conftest.err conftest.$ac_objext \
13286 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000013287CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013288fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013289echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013290echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000013291 if test "$ac_cv_c_dll_gnuelf" = "yes"
13292 then
13293 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013294 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013295 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
13296echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
13297if test "${ac_cv_c_dll_zdefs+set}" = set; then
13298 echo $ECHO_N "(cached) $ECHO_C" >&6
13299else
13300 ac_wine_try_cflags_saved=$CFLAGS
13301CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13302cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013303/* confdefs.h. */
13304_ACEOF
13305cat confdefs.h >>conftest.$ac_ext
13306cat >>conftest.$ac_ext <<_ACEOF
13307/* end confdefs.h. */
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013308
13309int
13310main ()
13311{
13312
13313 ;
13314 return 0;
13315}
13316_ACEOF
13317rm -f conftest.$ac_objext conftest$ac_exeext
13318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013319 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013320 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013321 grep -v '^ *+' conftest.er1 >conftest.err
13322 rm -f conftest.er1
13323 cat conftest.err >&5
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13328 (eval $ac_try) 2>&5
13329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; } &&
13332 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13335 ac_status=$?
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; }; then
13338 ac_cv_c_dll_zdefs="yes"
13339else
13340 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013341sed 's/^/| /' conftest.$ac_ext >&5
13342
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013343ac_cv_c_dll_zdefs="no"
13344fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013345rm -f conftest.err conftest.$ac_objext \
13346 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013347CFLAGS=$ac_wine_try_cflags_saved
13348fi
13349echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
13350echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
13351 if test "$ac_cv_c_dll_zdefs" = "yes"
13352 then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013353 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013354 fi
Alexandre Julliard4d52d372003-03-24 19:33:20 +000013355
Alexandre Julliard36048242004-01-08 03:36:53 +000013356 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
13357echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
13358if test "${ac_cv_c_dll_init_fini+set}" = set; then
13359 echo $ECHO_N "(cached) $ECHO_C" >&6
13360else
13361 ac_wine_try_cflags_saved=$CFLAGS
13362CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13363cat >conftest.$ac_ext <<_ACEOF
13364/* confdefs.h. */
13365_ACEOF
13366cat confdefs.h >>conftest.$ac_ext
13367cat >>conftest.$ac_ext <<_ACEOF
13368/* end confdefs.h. */
13369
13370int
13371main ()
13372{
13373
13374 ;
13375 return 0;
13376}
13377_ACEOF
13378rm -f conftest.$ac_objext conftest$ac_exeext
13379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13380 (eval $ac_link) 2>conftest.er1
13381 ac_status=$?
13382 grep -v '^ *+' conftest.er1 >conftest.err
13383 rm -f conftest.er1
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } &&
13387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389 (eval $ac_try) 2>&5
13390 ac_status=$?
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; } &&
13393 { ac_try='test -s conftest$ac_exeext'
13394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395 (eval $ac_try) 2>&5
13396 ac_status=$?
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; }; then
13399 ac_cv_c_dll_init_fini="yes"
13400else
13401 echo "$as_me: failed program was:" >&5
13402sed 's/^/| /' conftest.$ac_ext >&5
13403
13404ac_cv_c_dll_init_fini="no"
13405fi
13406rm -f conftest.err conftest.$ac_objext \
13407 conftest$ac_exeext conftest.$ac_ext
13408CFLAGS=$ac_wine_try_cflags_saved
13409fi
13410echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
13411echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
13412 if test "$ac_cv_c_dll_init_fini" = "yes"
13413 then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013414 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
Alexandre Julliard36048242004-01-08 03:36:53 +000013415 fi
13416
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000013417 echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
13418echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
13419if test "${ac_cv_c_ld_version_scripts+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13421else
13422 echo '{ global: *; };' >conftest.map
13423 ac_wine_try_cflags_saved=$CFLAGS
13424CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13425cat >conftest.$ac_ext <<_ACEOF
13426/* confdefs.h. */
13427_ACEOF
13428cat confdefs.h >>conftest.$ac_ext
13429cat >>conftest.$ac_ext <<_ACEOF
13430/* end confdefs.h. */
13431
13432int
13433main ()
13434{
13435
13436 ;
13437 return 0;
13438}
13439_ACEOF
13440rm -f conftest.$ac_objext conftest$ac_exeext
13441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13442 (eval $ac_link) 2>conftest.er1
13443 ac_status=$?
13444 grep -v '^ *+' conftest.er1 >conftest.err
13445 rm -f conftest.er1
13446 cat conftest.err >&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } &&
13449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13451 (eval $ac_try) 2>&5
13452 ac_status=$?
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); }; } &&
13455 { ac_try='test -s conftest$ac_exeext'
13456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457 (eval $ac_try) 2>&5
13458 ac_status=$?
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; }; then
13461 ac_cv_c_ld_version_scripts="yes"
13462else
13463 echo "$as_me: failed program was:" >&5
13464sed 's/^/| /' conftest.$ac_ext >&5
13465
13466ac_cv_c_ld_version_scripts="no"
13467fi
13468rm -f conftest.err conftest.$ac_objext \
13469 conftest$ac_exeext conftest.$ac_ext
13470CFLAGS=$ac_wine_try_cflags_saved
13471 rm -f conftest.map
13472fi
13473echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
13474echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
13475 if test "$ac_cv_c_ld_version_scripts" = "yes"
13476 then
13477 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13478 fi
13479
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013480 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
13481echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
13482if test "${ac_cv_c_export_dynamic+set}" = set; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13484else
13485 ac_wine_try_cflags_saved=$CFLAGS
13486CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13487cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013488/* confdefs.h. */
13489_ACEOF
13490cat confdefs.h >>conftest.$ac_ext
13491cat >>conftest.$ac_ext <<_ACEOF
13492/* end confdefs.h. */
13493
13494int
13495main ()
13496{
13497
13498 ;
13499 return 0;
13500}
13501_ACEOF
13502rm -f conftest.$ac_objext conftest$ac_exeext
13503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013504 (eval $ac_link) 2>conftest.er1
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013505 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013506 grep -v '^ *+' conftest.er1 >conftest.err
13507 rm -f conftest.er1
13508 cat conftest.err >&5
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; } &&
13517 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13520 ac_status=$?
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; }; then
13523 ac_cv_c_export_dynamic="yes"
13524else
13525 echo "$as_me: failed program was:" >&5
13526sed 's/^/| /' conftest.$ac_ext >&5
13527
13528ac_cv_c_export_dynamic="no"
13529fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013530rm -f conftest.err conftest.$ac_objext \
13531 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013532CFLAGS=$ac_wine_try_cflags_saved
13533fi
13534echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
13535echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
13536 if test "$ac_cv_c_export_dynamic" = "yes"
13537 then
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013538 LDEXECFLAGS="-Wl,--export-dynamic"
13539
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013540 fi
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013541
13542 case $host_cpu in
13543 *i[3456789]86*)
Alexandre Julliard5729f582005-06-17 10:22:46 +000013544 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x7bf00000" >&5
13545echo $ECHO_N "checking whether we can relocate the executable to 0x7bf00000... $ECHO_C" >&6
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013546if test "${ac_cv_ld_reloc_exec+set}" = set; then
13547 echo $ECHO_N "(cached) $ECHO_C" >&6
13548else
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013549 ac_wine_try_cflags_saved=$CFLAGS
Alexandre Julliard5729f582005-06-17 10:22:46 +000013550CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013551cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013552/* confdefs.h. */
13553_ACEOF
13554cat confdefs.h >>conftest.$ac_ext
13555cat >>conftest.$ac_ext <<_ACEOF
13556/* end confdefs.h. */
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013557
13558int
13559main ()
13560{
13561
13562 ;
13563 return 0;
13564}
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013565_ACEOF
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013566rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013568 (eval $ac_link) 2>conftest.er1
13569 ac_status=$?
13570 grep -v '^ *+' conftest.er1 >conftest.err
13571 rm -f conftest.er1
13572 cat conftest.err >&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } &&
13575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013578 ac_status=$?
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013580 (exit $ac_status); }; } &&
13581 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13584 ac_status=$?
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 ac_cv_ld_reloc_exec="yes"
13588else
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013589 echo "$as_me: failed program was:" >&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013590sed 's/^/| /' conftest.$ac_ext >&5
13591
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013592ac_cv_ld_reloc_exec="no"
13593fi
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013594rm -f conftest.err conftest.$ac_objext \
13595 conftest$ac_exeext conftest.$ac_ext
13596CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013597fi
13598echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
13599echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
13600 if test "$ac_cv_ld_reloc_exec" = "yes"
13601 then
Alexandre Julliard5729f582005-06-17 10:22:46 +000013602 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013603 fi
13604 ;;
13605 esac
13606
Alexandre Julliard466ae142002-05-07 18:33:47 +000013607 else
13608 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013609echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
13610if test "${ac_cv_c_dll_unixware+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierling4b992b01998-12-15 15:26:27 +000013612else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000013613 ac_wine_try_cflags_saved=$CFLAGS
13614CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
13615cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000013616void myfunc() {}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013617_ACEOF
13618rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013620 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013621 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013622 grep -v '^ *+' conftest.er1 >conftest.err
13623 rm -f conftest.er1
13624 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013626 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13630 ac_status=$?
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; } &&
13633 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013635 (eval $ac_try) 2>&5
13636 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013638 (exit $ac_status); }; }; then
Ron Recorde977d6c1999-09-05 12:32:05 +000013639 ac_cv_c_dll_unixware="yes"
13640else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013641 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013642sed 's/^/| /' conftest.$ac_ext >&5
13643
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013644ac_cv_c_dll_unixware="no"
Ron Recorde977d6c1999-09-05 12:32:05 +000013645fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013646rm -f conftest.err conftest.$ac_objext \
13647 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000013648CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013649fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013650echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013651echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000013652 if test "$ac_cv_c_dll_unixware" = "yes"
13653 then
13654 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013655 LDDLLFLAGS="-Wl,-G,-B,symbolic"
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000013656
13657 else
13658 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
13659echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
13660if test "${ac_cv_c_dll_macho+set}" = set; then
13661 echo $ECHO_N "(cached) $ECHO_C" >&6
13662else
13663 ac_wine_try_cflags_saved=$CFLAGS
13664CFLAGS="$CFLAGS -bundle"
13665cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000013666void myfunc() {}
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000013667_ACEOF
13668rm -f conftest.$ac_objext conftest$ac_exeext
13669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013670 (eval $ac_link) 2>conftest.er1
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000013671 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013672 grep -v '^ *+' conftest.er1 >conftest.err
13673 rm -f conftest.er1
13674 cat conftest.err >&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000013675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; } &&
13683 { ac_try='test -s conftest$ac_exeext'
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000013684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13686 ac_status=$?
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; }; then
13689 ac_cv_c_dll_macho="yes"
13690else
13691 echo "$as_me: failed program was:" >&5
13692sed 's/^/| /' conftest.$ac_ext >&5
13693
13694ac_cv_c_dll_macho="no"
13695fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013696rm -f conftest.err conftest.$ac_objext \
13697 conftest$ac_exeext conftest.$ac_ext
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000013698CFLAGS=$ac_wine_try_cflags_saved
13699fi
13700echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
13701echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
13702 if test "$ac_cv_c_dll_macho" = "yes"
13703 then
13704 LIBEXT="dylib"
Emmanuel Maillard4fe448d2005-03-01 10:46:27 +000013705 LDDLLFLAGS="-bundle -flat_namespace -undefined suppress -read_only_relocs warning"
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000013706 LDSHARED="\$(CC) -dynamiclib"
13707 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000013708 STRIP="$STRIP -u -r"
Emmanuel Maillard46718f82004-07-22 19:48:41 +000013709 LDEXECFLAGS="-seg1addr 0x120000"
13710
13711 LDLIBWINEFLAGS="-seg1addr 0x140000"
13712
Emmanuel Maillard2300ce62004-08-19 01:20:45 +000013713 COREFOUNDATIONLIB="-framework CoreFoundation"
13714
13715 IOKITLIB="-framework IOKit"
13716
Pierre d'Herbemontf94121e2005-02-26 17:43:50 +000013717 IOKITLIB="$IOKITLIB $COREFOUNDATIONLIB"
Warren Baird421e8b92004-09-22 19:17:55 +000013718 else
13719 echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
13720echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6
13721if test "${ac_cv_c_dll_hpux+set}" = set; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13723else
13724 ac_wine_try_cflags_saved=$CFLAGS
13725CFLAGS="$CFLAGS -shared"
13726cat >conftest.$ac_ext <<_ACEOF
13727void myfunc() {}
13728_ACEOF
13729rm -f conftest.$ac_objext conftest$ac_exeext
13730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13731 (eval $ac_link) 2>conftest.er1
13732 ac_status=$?
13733 grep -v '^ *+' conftest.er1 >conftest.err
13734 rm -f conftest.er1
13735 cat conftest.err >&5
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); } &&
13738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13741 ac_status=$?
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; } &&
13744 { ac_try='test -s conftest$ac_exeext'
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13747 ac_status=$?
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13750 ac_cv_c_dll_hpux="yes"
13751else
13752 echo "$as_me: failed program was:" >&5
13753sed 's/^/| /' conftest.$ac_ext >&5
13754
13755ac_cv_c_dll_hpux="no"
13756fi
13757rm -f conftest.err conftest.$ac_objext \
13758 conftest$ac_exeext conftest.$ac_ext
13759CFLAGS=$ac_wine_try_cflags_saved
13760fi
13761echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
13762echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6
13763 if test "$ac_cv_c_dll_hpux" = "yes"
13764 then
13765 LIBEXT="sl"
Warren Baird1023fe32004-10-19 21:37:09 +000013766 DLLEXT=".sl"
13767 LDDLLFLAGS="-shared -fPIC"
Warren Baird421e8b92004-09-22 19:17:55 +000013768 LDSHARED="\$(CC) -shared"
13769 fi
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000013770 fi
Alexandre Julliard466ae142002-05-07 18:33:47 +000013771 fi
13772 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013773 fi
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000013774
13775 CROSSTEST=""
13776
13777 if test "$cross_compiling" = "no"
13778 then
Kevin Koltzaud3444562004-04-15 00:01:05 +000013779 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000013780do
13781 # Extract the first word of "$ac_prog", so it can be a program name with args.
13782set dummy $ac_prog; ac_word=$2
13783echo "$as_me:$LINENO: checking for $ac_word" >&5
13784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13785if test "${ac_cv_prog_CROSSCC+set}" = set; then
13786 echo $ECHO_N "(cached) $ECHO_C" >&6
13787else
13788 if test -n "$CROSSCC"; then
13789 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
13790else
13791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13792for as_dir in $PATH
13793do
13794 IFS=$as_save_IFS
13795 test -z "$as_dir" && as_dir=.
13796 for ac_exec_ext in '' $ac_executable_extensions; do
13797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13798 ac_cv_prog_CROSSCC="$ac_prog"
13799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13800 break 2
13801 fi
13802done
13803done
13804
13805fi
13806fi
13807CROSSCC=$ac_cv_prog_CROSSCC
13808if test -n "$CROSSCC"; then
13809 echo "$as_me:$LINENO: result: $CROSSCC" >&5
13810echo "${ECHO_T}$CROSSCC" >&6
13811else
13812 echo "$as_me:$LINENO: result: no" >&5
13813echo "${ECHO_T}no" >&6
13814fi
13815
13816 test -n "$CROSSCC" && break
13817done
13818test -n "$CROSSCC" || CROSSCC="false"
13819
Kevin Koltzaud3444562004-04-15 00:01:05 +000013820 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000013821do
13822 # Extract the first word of "$ac_prog", so it can be a program name with args.
13823set dummy $ac_prog; ac_word=$2
13824echo "$as_me:$LINENO: checking for $ac_word" >&5
13825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13826if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13828else
13829 if test -n "$DLLTOOL"; then
13830 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13831else
13832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13833for as_dir in $PATH
13834do
13835 IFS=$as_save_IFS
13836 test -z "$as_dir" && as_dir=.
13837 for ac_exec_ext in '' $ac_executable_extensions; do
13838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13839 ac_cv_prog_DLLTOOL="$ac_prog"
13840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13841 break 2
13842 fi
13843done
13844done
13845
13846fi
13847fi
13848DLLTOOL=$ac_cv_prog_DLLTOOL
13849if test -n "$DLLTOOL"; then
13850 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13851echo "${ECHO_T}$DLLTOOL" >&6
13852else
13853 echo "$as_me:$LINENO: result: no" >&5
13854echo "${ECHO_T}no" >&6
13855fi
13856
13857 test -n "$DLLTOOL" && break
13858done
13859test -n "$DLLTOOL" || DLLTOOL="false"
13860
Kevin Koltzaud3444562004-04-15 00:01:05 +000013861 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
Alexandre Julliard21ee3292003-04-21 22:52:31 +000013862do
13863 # Extract the first word of "$ac_prog", so it can be a program name with args.
13864set dummy $ac_prog; ac_word=$2
13865echo "$as_me:$LINENO: checking for $ac_word" >&5
13866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13867if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
13868 echo $ECHO_N "(cached) $ECHO_C" >&6
13869else
13870 if test -n "$CROSSWINDRES"; then
13871 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
13872else
13873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13874for as_dir in $PATH
13875do
13876 IFS=$as_save_IFS
13877 test -z "$as_dir" && as_dir=.
13878 for ac_exec_ext in '' $ac_executable_extensions; do
13879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13880 ac_cv_prog_CROSSWINDRES="$ac_prog"
13881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13882 break 2
13883 fi
13884done
13885done
13886
13887fi
13888fi
13889CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
13890if test -n "$CROSSWINDRES"; then
13891 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
13892echo "${ECHO_T}$CROSSWINDRES" >&6
13893else
13894 echo "$as_me:$LINENO: result: no" >&5
13895echo "${ECHO_T}no" >&6
13896fi
13897
13898 test -n "$CROSSWINDRES" && break
13899done
13900test -n "$CROSSWINDRES" || CROSSWINDRES="false"
13901
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000013902 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
13903 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013904 ;;
13905esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013906
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000013907if test "$LIBEXT" = "a"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013908 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013909It is currently not possible to build Wine without shared library
13910(.so) support to allow transparent switch between .so and .dll files.
13911If you are using Linux, you will need a newer binutils.
13912" >&5
13913echo "$as_me: error: could not find a way to build shared libraries.
13914It is currently not possible to build Wine without shared library
13915(.so) support to allow transparent switch between .so and .dll files.
13916If you are using Linux, you will need a newer binutils.
13917" >&2;}
13918 { (exit 1); exit 1; }; }
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000013919fi
13920
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013921case $build_os in
13922 cygwin*|mingw32*)
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000013923 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013924 ;;
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000013925 darwin*|macosx*)
13926 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
13927 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013928 *)
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000013929 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013930 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013931esac
13932
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013933case $host_os in
13934 mingw32*)
Alexandre Julliard546839f2003-11-11 00:48:21 +000013935 CRTLIBS="-lmsvcrt"
Steven Edwardsc91ae452004-09-03 18:57:19 +000013936
13937 SOCKETLIBS="-lws2_32"
13938
13939 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000013940esac
13941
13942case $host_os in
13943 linux*)
Vincent Béron4bf9d982004-10-14 00:30:59 +000013944 case $host_cpu in
13945 *i[3456789]86*) WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader"
13946 ;;
13947 *) WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
13948 ;;
13949 esac
Alexandre Julliarda628c132003-11-12 03:28:21 +000013950 MAIN_BINARY="wine-glibc"
Alexandre Julliard546839f2003-11-11 00:48:21 +000013951
Alexandre Julliard546839f2003-11-11 00:48:21 +000013952 ;;
Emmanuel Maillard3bc8d2e2004-07-19 20:11:10 +000013953 darwin*)
13954 WINE_BINARIES="wine-pthread"
13955
13956 MAIN_BINARY="wine-pthread"
13957
13958 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000013959 *)
13960 WINE_BINARIES="wine-kthread"
13961
13962 MAIN_BINARY="wine-kthread"
13963
13964 ;;
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013965esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013966
13967
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000013968if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000013969then
13970 # Extract the first word of "ldd", so it can be a program name with args.
13971set dummy ldd; ac_word=$2
13972echo "$as_me:$LINENO: checking for $ac_word" >&5
13973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13974if test "${ac_cv_path_LDD+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13976else
13977 case $LDD in
13978 [\\/]* | ?:[\\/]*)
13979 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
13980 ;;
13981 *)
13982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013983as_dummy="/sbin:/usr/sbin:$PATH"
13984for as_dir in $as_dummy
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000013985do
13986 IFS=$as_save_IFS
13987 test -z "$as_dir" && as_dir=.
13988 for ac_exec_ext in '' $ac_executable_extensions; do
13989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13990 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
13991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13992 break 2
13993 fi
13994done
13995done
13996
13997 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
13998 ;;
13999esac
14000fi
14001LDD=$ac_cv_path_LDD
14002
14003if test -n "$LDD"; then
14004 echo "$as_me:$LINENO: result: $LDD" >&5
14005echo "${ECHO_T}$LDD" >&6
14006else
14007 echo "$as_me:$LINENO: result: no" >&5
14008echo "${ECHO_T}no" >&6
14009fi
14010
14011
14012echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14013echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14014if test "${ac_cv_lib_soname_X11+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14016else
14017 ac_get_soname_save_LIBS=$LIBS
14018LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14019 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014020/* confdefs.h. */
14021_ACEOF
14022cat confdefs.h >>conftest.$ac_ext
14023cat >>conftest.$ac_ext <<_ACEOF
14024/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014025
14026/* Override any gcc2 internal prototype to avoid an error. */
14027#ifdef __cplusplus
14028extern "C"
14029#endif
14030/* We use char because int might match the return type of a gcc2
14031 builtin and then its argument prototype would still apply. */
14032char XCreateWindow ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014033int
14034main ()
14035{
14036XCreateWindow ();
14037 ;
14038 return 0;
14039}
14040_ACEOF
14041rm -f conftest.$ac_objext conftest$ac_exeext
14042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014043 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014044 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014045 grep -v '^ *+' conftest.er1 >conftest.err
14046 rm -f conftest.er1
14047 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; } &&
14056 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14059 ac_status=$?
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014062 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014063 if test "x$ac_cv_lib_soname_X11" = "x"
14064 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014065 ac_cv_lib_soname_X11="libX11.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014066 fi
14067else
14068 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014069sed 's/^/| /' conftest.$ac_ext >&5
14070
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014071ac_cv_lib_soname_X11="libX11.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014072fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014073rm -f conftest.err conftest.$ac_objext \
14074 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014075 LIBS=$ac_get_soname_save_LIBS
14076fi
14077echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14078echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14079if test "x$ac_cv_lib_soname_X11" != xNONE
14080then
14081cat >>confdefs.h <<_ACEOF
14082#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14083_ACEOF
14084fi
14085
14086echo "$as_me:$LINENO: checking for -lXext soname" >&5
14087echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14088if test "${ac_cv_lib_soname_Xext+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14090else
14091 ac_get_soname_save_LIBS=$LIBS
14092LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14093 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014094/* confdefs.h. */
14095_ACEOF
14096cat confdefs.h >>conftest.$ac_ext
14097cat >>conftest.$ac_ext <<_ACEOF
14098/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014099
14100/* Override any gcc2 internal prototype to avoid an error. */
14101#ifdef __cplusplus
14102extern "C"
14103#endif
14104/* We use char because int might match the return type of a gcc2
14105 builtin and then its argument prototype would still apply. */
14106char XextCreateExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014107int
14108main ()
14109{
14110XextCreateExtension ();
14111 ;
14112 return 0;
14113}
14114_ACEOF
14115rm -f conftest.$ac_objext conftest$ac_exeext
14116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014117 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014118 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014119 grep -v '^ *+' conftest.er1 >conftest.err
14120 rm -f conftest.er1
14121 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 (eval $ac_try) 2>&5
14127 ac_status=$?
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; } &&
14130 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14133 ac_status=$?
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014136 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014137 if test "x$ac_cv_lib_soname_Xext" = "x"
14138 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014139 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014140 fi
14141else
14142 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014143sed 's/^/| /' conftest.$ac_ext >&5
14144
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014145ac_cv_lib_soname_Xext="libXext.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014146fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014147rm -f conftest.err conftest.$ac_objext \
14148 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014149 LIBS=$ac_get_soname_save_LIBS
14150fi
14151echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14152echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14153if test "x$ac_cv_lib_soname_Xext" != xNONE
14154then
14155cat >>confdefs.h <<_ACEOF
14156#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14157_ACEOF
14158fi
14159
Aric Stewart2eebf3c2004-01-09 00:03:00 +000014160echo "$as_me:$LINENO: checking for -lXi soname" >&5
14161echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14162if test "${ac_cv_lib_soname_Xi+set}" = set; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14164else
14165 ac_get_soname_save_LIBS=$LIBS
14166LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14167 cat >conftest.$ac_ext <<_ACEOF
14168/* confdefs.h. */
14169_ACEOF
14170cat confdefs.h >>conftest.$ac_ext
14171cat >>conftest.$ac_ext <<_ACEOF
14172/* end confdefs.h. */
14173
14174/* Override any gcc2 internal prototype to avoid an error. */
14175#ifdef __cplusplus
14176extern "C"
14177#endif
14178/* We use char because int might match the return type of a gcc2
14179 builtin and then its argument prototype would still apply. */
14180char XOpenDevice ();
14181int
14182main ()
14183{
14184XOpenDevice ();
14185 ;
14186 return 0;
14187}
14188_ACEOF
14189rm -f conftest.$ac_objext conftest$ac_exeext
14190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14191 (eval $ac_link) 2>conftest.er1
14192 ac_status=$?
14193 grep -v '^ *+' conftest.er1 >conftest.err
14194 rm -f conftest.er1
14195 cat conftest.err >&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } &&
14198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14201 ac_status=$?
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; } &&
14204 { ac_try='test -s conftest$ac_exeext'
14205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14207 ac_status=$?
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014210 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"`
Aric Stewart2eebf3c2004-01-09 00:03:00 +000014211 if test "x$ac_cv_lib_soname_Xi" = "x"
14212 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014213 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
Aric Stewart2eebf3c2004-01-09 00:03:00 +000014214 fi
14215else
14216 echo "$as_me: failed program was:" >&5
14217sed 's/^/| /' conftest.$ac_ext >&5
14218
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014219ac_cv_lib_soname_Xi="libXi.$LIBEXT"
Aric Stewart2eebf3c2004-01-09 00:03:00 +000014220fi
14221rm -f conftest.err conftest.$ac_objext \
14222 conftest$ac_exeext conftest.$ac_ext
14223 LIBS=$ac_get_soname_save_LIBS
14224fi
14225echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14226echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14227if test "x$ac_cv_lib_soname_Xi" != xNONE
14228then
14229cat >>confdefs.h <<_ACEOF
14230#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14231_ACEOF
14232fi
14233
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014234echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14235echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14236if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14237 echo $ECHO_N "(cached) $ECHO_C" >&6
14238else
14239 ac_get_soname_save_LIBS=$LIBS
14240LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14241 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014242/* confdefs.h. */
14243_ACEOF
14244cat confdefs.h >>conftest.$ac_ext
14245cat >>conftest.$ac_ext <<_ACEOF
14246/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014247
14248/* Override any gcc2 internal prototype to avoid an error. */
14249#ifdef __cplusplus
14250extern "C"
14251#endif
14252/* We use char because int might match the return type of a gcc2
14253 builtin and then its argument prototype would still apply. */
14254char XRenderQueryExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014255int
14256main ()
14257{
14258XRenderQueryExtension ();
14259 ;
14260 return 0;
14261}
14262_ACEOF
14263rm -f conftest.$ac_objext conftest$ac_exeext
14264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014265 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014266 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014267 grep -v '^ *+' conftest.er1 >conftest.err
14268 rm -f conftest.er1
14269 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14275 ac_status=$?
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; } &&
14278 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14281 ac_status=$?
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014284 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014285 if test "x$ac_cv_lib_soname_Xrender" = "x"
14286 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014287 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014288 fi
14289else
14290 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014291sed 's/^/| /' conftest.$ac_ext >&5
14292
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014293ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014294fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014295rm -f conftest.err conftest.$ac_objext \
14296 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014297 LIBS=$ac_get_soname_save_LIBS
14298fi
14299echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14300echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14301if test "x$ac_cv_lib_soname_Xrender" != xNONE
14302then
14303cat >>confdefs.h <<_ACEOF
14304#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14305_ACEOF
14306fi
14307
Mike McCormackc7c9f932004-04-07 03:57:35 +000014308echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14309echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6
14310if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14311 echo $ECHO_N "(cached) $ECHO_C" >&6
14312else
14313 ac_get_soname_save_LIBS=$LIBS
14314LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14315 cat >conftest.$ac_ext <<_ACEOF
14316/* confdefs.h. */
14317_ACEOF
14318cat confdefs.h >>conftest.$ac_ext
14319cat >>conftest.$ac_ext <<_ACEOF
14320/* end confdefs.h. */
14321
14322/* Override any gcc2 internal prototype to avoid an error. */
14323#ifdef __cplusplus
14324extern "C"
14325#endif
14326/* We use char because int might match the return type of a gcc2
14327 builtin and then its argument prototype would still apply. */
14328char XRRQueryExtension ();
14329int
14330main ()
14331{
14332XRRQueryExtension ();
14333 ;
14334 return 0;
14335}
14336_ACEOF
14337rm -f conftest.$ac_objext conftest$ac_exeext
14338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14339 (eval $ac_link) 2>conftest.er1
14340 ac_status=$?
14341 grep -v '^ *+' conftest.er1 >conftest.err
14342 rm -f conftest.er1
14343 cat conftest.err >&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } &&
14346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348 (eval $ac_try) 2>&5
14349 ac_status=$?
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; } &&
14352 { ac_try='test -s conftest$ac_exeext'
14353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354 (eval $ac_try) 2>&5
14355 ac_status=$?
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014358 ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"`
Mike McCormackc7c9f932004-04-07 03:57:35 +000014359 if test "x$ac_cv_lib_soname_Xrandr" = "x"
14360 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014361 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
Mike McCormackc7c9f932004-04-07 03:57:35 +000014362 fi
14363else
14364 echo "$as_me: failed program was:" >&5
14365sed 's/^/| /' conftest.$ac_ext >&5
14366
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014367ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
Mike McCormackc7c9f932004-04-07 03:57:35 +000014368fi
14369rm -f conftest.err conftest.$ac_objext \
14370 conftest$ac_exeext conftest.$ac_ext
14371 LIBS=$ac_get_soname_save_LIBS
14372fi
14373echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
14374echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6
14375if test "x$ac_cv_lib_soname_Xrandr" != xNONE
14376then
14377cat >>confdefs.h <<_ACEOF
14378#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
14379_ACEOF
14380fi
14381
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014382echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14383echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14384if test "${ac_cv_lib_soname_freetype+set}" = set; then
14385 echo $ECHO_N "(cached) $ECHO_C" >&6
14386else
14387 ac_get_soname_save_LIBS=$LIBS
14388LIBS="-lfreetype $X_LIBS $LIBS"
14389 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014390/* confdefs.h. */
14391_ACEOF
14392cat confdefs.h >>conftest.$ac_ext
14393cat >>conftest.$ac_ext <<_ACEOF
14394/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014395
14396/* Override any gcc2 internal prototype to avoid an error. */
14397#ifdef __cplusplus
14398extern "C"
14399#endif
14400/* We use char because int might match the return type of a gcc2
14401 builtin and then its argument prototype would still apply. */
14402char FT_Init_FreeType ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014403int
14404main ()
14405{
14406FT_Init_FreeType ();
14407 ;
14408 return 0;
14409}
14410_ACEOF
14411rm -f conftest.$ac_objext conftest$ac_exeext
14412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014413 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014414 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014415 grep -v '^ *+' conftest.er1 >conftest.err
14416 rm -f conftest.er1
14417 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14423 ac_status=$?
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; } &&
14426 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014432 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014433 if test "x$ac_cv_lib_soname_freetype" = "x"
14434 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014435 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014436 fi
14437else
14438 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014439sed 's/^/| /' conftest.$ac_ext >&5
14440
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014441ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014442fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014443rm -f conftest.err conftest.$ac_objext \
14444 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014445 LIBS=$ac_get_soname_save_LIBS
14446fi
14447echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14448echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
14449if test "x$ac_cv_lib_soname_freetype" != xNONE
14450then
14451cat >>confdefs.h <<_ACEOF
14452#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14453_ACEOF
14454fi
Marcus Meissnerf061f762002-11-12 02:22:24 +000014455
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014456echo "$as_me:$LINENO: checking for -lGL soname" >&5
14457echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
14458if test "${ac_cv_lib_soname_GL+set}" = set; then
14459 echo $ECHO_N "(cached) $ECHO_C" >&6
14460else
14461 ac_get_soname_save_LIBS=$LIBS
14462LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14463 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014464/* confdefs.h. */
14465_ACEOF
14466cat confdefs.h >>conftest.$ac_ext
14467cat >>conftest.$ac_ext <<_ACEOF
14468/* end confdefs.h. */
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014469
14470/* Override any gcc2 internal prototype to avoid an error. */
14471#ifdef __cplusplus
14472extern "C"
14473#endif
14474/* We use char because int might match the return type of a gcc2
14475 builtin and then its argument prototype would still apply. */
14476char glXQueryExtension ();
14477int
14478main ()
14479{
14480glXQueryExtension ();
14481 ;
14482 return 0;
14483}
14484_ACEOF
14485rm -f conftest.$ac_objext conftest$ac_exeext
14486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014487 (eval $ac_link) 2>conftest.er1
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014488 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014489 grep -v '^ *+' conftest.er1 >conftest.err
14490 rm -f conftest.er1
14491 cat conftest.err >&5
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496 (eval $ac_try) 2>&5
14497 ac_status=$?
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; } &&
14500 { ac_try='test -s conftest$ac_exeext'
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502 (eval $ac_try) 2>&5
14503 ac_status=$?
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014506 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"`
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014507 if test "x$ac_cv_lib_soname_GL" = "x"
14508 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014509 ac_cv_lib_soname_GL="libGL.$LIBEXT"
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014510 fi
14511else
14512 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014513sed 's/^/| /' conftest.$ac_ext >&5
14514
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014515ac_cv_lib_soname_GL="libGL.$LIBEXT"
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014516fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014517rm -f conftest.err conftest.$ac_objext \
14518 conftest$ac_exeext conftest.$ac_ext
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014519 LIBS=$ac_get_soname_save_LIBS
14520fi
14521echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14522echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
14523if test "x$ac_cv_lib_soname_GL" != xNONE
14524then
14525cat >>confdefs.h <<_ACEOF
14526#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14527_ACEOF
14528fi
14529
Christian Costaeac96b52004-07-30 18:54:32 +000014530echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
14531echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6
14532if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
14533 echo $ECHO_N "(cached) $ECHO_C" >&6
14534else
14535 ac_get_soname_save_LIBS=$LIBS
14536LIBS="-ltxc_dxtn $LIBS"
14537 cat >conftest.$ac_ext <<_ACEOF
14538/* confdefs.h. */
14539_ACEOF
14540cat confdefs.h >>conftest.$ac_ext
14541cat >>conftest.$ac_ext <<_ACEOF
14542/* end confdefs.h. */
14543
14544/* Override any gcc2 internal prototype to avoid an error. */
14545#ifdef __cplusplus
14546extern "C"
14547#endif
14548/* We use char because int might match the return type of a gcc2
14549 builtin and then its argument prototype would still apply. */
14550char fetch_2d_texel_rgba_dxt1 ();
14551int
14552main ()
14553{
14554fetch_2d_texel_rgba_dxt1 ();
14555 ;
14556 return 0;
14557}
14558_ACEOF
14559rm -f conftest.$ac_objext conftest$ac_exeext
14560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14561 (eval $ac_link) 2>conftest.er1
14562 ac_status=$?
14563 grep -v '^ *+' conftest.er1 >conftest.err
14564 rm -f conftest.er1
14565 cat conftest.err >&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } &&
14568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; } &&
14574 { ac_try='test -s conftest$ac_exeext'
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14577 ac_status=$?
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; }; then
14580 ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed "s/^.*\(libtxc_dxtn\.$LIBEXT[^ ]*\).*$/\1/"`
14581 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
14582 then
14583 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14584 fi
14585else
14586 echo "$as_me: failed program was:" >&5
14587sed 's/^/| /' conftest.$ac_ext >&5
14588
14589ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14590fi
14591rm -f conftest.err conftest.$ac_objext \
14592 conftest$ac_exeext conftest.$ac_ext
14593 LIBS=$ac_get_soname_save_LIBS
14594fi
14595echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
14596echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6
14597if test "x$ac_cv_lib_soname_txc_dxtn" != xNONE
14598then
14599cat >>confdefs.h <<_ACEOF
14600#define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
14601_ACEOF
14602fi
14603
Marcus Meissnerf061f762002-11-12 02:22:24 +000014604echo "$as_me:$LINENO: checking for -lcups soname" >&5
14605echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
14606if test "${ac_cv_lib_soname_cups+set}" = set; then
14607 echo $ECHO_N "(cached) $ECHO_C" >&6
14608else
14609 ac_get_soname_save_LIBS=$LIBS
14610LIBS="-lcups $LIBS"
14611 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014612/* confdefs.h. */
14613_ACEOF
14614cat confdefs.h >>conftest.$ac_ext
14615cat >>conftest.$ac_ext <<_ACEOF
14616/* end confdefs.h. */
Marcus Meissnerf061f762002-11-12 02:22:24 +000014617
14618/* Override any gcc2 internal prototype to avoid an error. */
14619#ifdef __cplusplus
14620extern "C"
14621#endif
14622/* We use char because int might match the return type of a gcc2
14623 builtin and then its argument prototype would still apply. */
14624char cupsGetDefault ();
14625int
14626main ()
14627{
14628cupsGetDefault ();
14629 ;
14630 return 0;
14631}
14632_ACEOF
14633rm -f conftest.$ac_objext conftest$ac_exeext
14634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014635 (eval $ac_link) 2>conftest.er1
Marcus Meissnerf061f762002-11-12 02:22:24 +000014636 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014637 grep -v '^ *+' conftest.er1 >conftest.err
14638 rm -f conftest.er1
14639 cat conftest.err >&5
Marcus Meissnerf061f762002-11-12 02:22:24 +000014640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644 (eval $ac_try) 2>&5
14645 ac_status=$?
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; } &&
14648 { ac_try='test -s conftest$ac_exeext'
Marcus Meissnerf061f762002-11-12 02:22:24 +000014649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650 (eval $ac_try) 2>&5
14651 ac_status=$?
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014654 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"`
Marcus Meissnerf061f762002-11-12 02:22:24 +000014655 if test "x$ac_cv_lib_soname_cups" = "x"
14656 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014657 ac_cv_lib_soname_cups="libcups.$LIBEXT"
Marcus Meissnerf061f762002-11-12 02:22:24 +000014658 fi
14659else
14660 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014661sed 's/^/| /' conftest.$ac_ext >&5
14662
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014663ac_cv_lib_soname_cups="libcups.$LIBEXT"
Marcus Meissnerf061f762002-11-12 02:22:24 +000014664fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014665rm -f conftest.err conftest.$ac_objext \
14666 conftest$ac_exeext conftest.$ac_ext
Marcus Meissnerf061f762002-11-12 02:22:24 +000014667 LIBS=$ac_get_soname_save_LIBS
14668fi
14669echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
14670echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
14671if test "x$ac_cv_lib_soname_cups" != xNONE
14672then
14673cat >>confdefs.h <<_ACEOF
14674#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
14675_ACEOF
14676fi
Chris Morgan4691b182002-12-13 02:26:18 +000014677
14678echo "$as_me:$LINENO: checking for -ljack soname" >&5
14679echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
14680if test "${ac_cv_lib_soname_jack+set}" = set; then
14681 echo $ECHO_N "(cached) $ECHO_C" >&6
14682else
14683 ac_get_soname_save_LIBS=$LIBS
14684LIBS="-ljack $LIBS"
14685 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014686/* confdefs.h. */
14687_ACEOF
14688cat confdefs.h >>conftest.$ac_ext
14689cat >>conftest.$ac_ext <<_ACEOF
14690/* end confdefs.h. */
Chris Morgan4691b182002-12-13 02:26:18 +000014691
14692/* Override any gcc2 internal prototype to avoid an error. */
14693#ifdef __cplusplus
14694extern "C"
14695#endif
14696/* We use char because int might match the return type of a gcc2
14697 builtin and then its argument prototype would still apply. */
14698char jack_client_new ();
14699int
14700main ()
14701{
14702jack_client_new ();
14703 ;
14704 return 0;
14705}
14706_ACEOF
14707rm -f conftest.$ac_objext conftest$ac_exeext
14708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014709 (eval $ac_link) 2>conftest.er1
Chris Morgan4691b182002-12-13 02:26:18 +000014710 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014711 grep -v '^ *+' conftest.er1 >conftest.err
14712 rm -f conftest.er1
14713 cat conftest.err >&5
Chris Morgan4691b182002-12-13 02:26:18 +000014714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14719 ac_status=$?
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; } &&
14722 { ac_try='test -s conftest$ac_exeext'
Chris Morgan4691b182002-12-13 02:26:18 +000014723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724 (eval $ac_try) 2>&5
14725 ac_status=$?
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014728 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"`
Chris Morgan4691b182002-12-13 02:26:18 +000014729 if test "x$ac_cv_lib_soname_jack" = "x"
14730 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014731 ac_cv_lib_soname_jack="libjack.$LIBEXT"
Chris Morgan4691b182002-12-13 02:26:18 +000014732 fi
14733else
14734 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014735sed 's/^/| /' conftest.$ac_ext >&5
14736
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014737ac_cv_lib_soname_jack="libjack.$LIBEXT"
Chris Morgan4691b182002-12-13 02:26:18 +000014738fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014739rm -f conftest.err conftest.$ac_objext \
14740 conftest$ac_exeext conftest.$ac_ext
Chris Morgan4691b182002-12-13 02:26:18 +000014741 LIBS=$ac_get_soname_save_LIBS
14742fi
14743echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
14744echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
14745if test "x$ac_cv_lib_soname_jack" != xNONE
14746then
14747cat >>confdefs.h <<_ACEOF
14748#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
14749_ACEOF
14750fi
David Hammerton852c7ae2003-06-20 23:26:56 +000014751
Huw Davies6e128072003-11-09 00:30:13 +000014752echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
14753echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
14754if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
14756else
14757 ac_get_soname_save_LIBS=$LIBS
14758LIBS="-lfontconfig $LIBS"
14759 cat >conftest.$ac_ext <<_ACEOF
Huw Davies6e128072003-11-09 00:30:13 +000014760/* confdefs.h. */
14761_ACEOF
14762cat confdefs.h >>conftest.$ac_ext
14763cat >>conftest.$ac_ext <<_ACEOF
14764/* end confdefs.h. */
14765
14766/* Override any gcc2 internal prototype to avoid an error. */
14767#ifdef __cplusplus
14768extern "C"
14769#endif
14770/* We use char because int might match the return type of a gcc2
14771 builtin and then its argument prototype would still apply. */
14772char FcInit ();
14773int
14774main ()
14775{
14776FcInit ();
14777 ;
14778 return 0;
14779}
14780_ACEOF
14781rm -f conftest.$ac_objext conftest$ac_exeext
14782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014783 (eval $ac_link) 2>conftest.er1
Huw Davies6e128072003-11-09 00:30:13 +000014784 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014785 grep -v '^ *+' conftest.er1 >conftest.err
14786 rm -f conftest.er1
14787 cat conftest.err >&5
Huw Davies6e128072003-11-09 00:30:13 +000014788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792 (eval $ac_try) 2>&5
14793 ac_status=$?
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); }; } &&
14796 { ac_try='test -s conftest$ac_exeext'
Huw Davies6e128072003-11-09 00:30:13 +000014797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14798 (eval $ac_try) 2>&5
14799 ac_status=$?
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014802 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"`
Huw Davies6e128072003-11-09 00:30:13 +000014803 if test "x$ac_cv_lib_soname_fontconfig" = "x"
14804 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014805 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
Huw Davies6e128072003-11-09 00:30:13 +000014806 fi
14807else
14808 echo "$as_me: failed program was:" >&5
14809sed 's/^/| /' conftest.$ac_ext >&5
14810
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014811ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
Huw Davies6e128072003-11-09 00:30:13 +000014812fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014813rm -f conftest.err conftest.$ac_objext \
14814 conftest$ac_exeext conftest.$ac_ext
Huw Davies6e128072003-11-09 00:30:13 +000014815 LIBS=$ac_get_soname_save_LIBS
14816fi
14817echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
14818echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
14819if test "x$ac_cv_lib_soname_fontconfig" != xNONE
14820then
14821cat >>confdefs.h <<_ACEOF
14822#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
14823_ACEOF
Alexandre Julliard79994692003-11-13 20:58:55 +000014824fi
Huw Davies6e128072003-11-09 00:30:13 +000014825
David Hammerton852c7ae2003-06-20 23:26:56 +000014826echo "$as_me:$LINENO: checking for -lssl soname" >&5
14827echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
14828if test "${ac_cv_lib_soname_ssl+set}" = set; then
14829 echo $ECHO_N "(cached) $ECHO_C" >&6
14830else
14831 ac_get_soname_save_LIBS=$LIBS
14832LIBS="-lssl $LIBS"
14833 cat >conftest.$ac_ext <<_ACEOF
David Hammerton852c7ae2003-06-20 23:26:56 +000014834/* confdefs.h. */
14835_ACEOF
14836cat confdefs.h >>conftest.$ac_ext
14837cat >>conftest.$ac_ext <<_ACEOF
14838/* end confdefs.h. */
14839
14840/* Override any gcc2 internal prototype to avoid an error. */
14841#ifdef __cplusplus
14842extern "C"
14843#endif
14844/* We use char because int might match the return type of a gcc2
14845 builtin and then its argument prototype would still apply. */
14846char SSL_library_init ();
14847int
14848main ()
14849{
14850SSL_library_init ();
14851 ;
14852 return 0;
14853}
14854_ACEOF
14855rm -f conftest.$ac_objext conftest$ac_exeext
14856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014857 (eval $ac_link) 2>conftest.er1
David Hammerton852c7ae2003-06-20 23:26:56 +000014858 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014859 grep -v '^ *+' conftest.er1 >conftest.err
14860 rm -f conftest.er1
14861 cat conftest.err >&5
David Hammerton852c7ae2003-06-20 23:26:56 +000014862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866 (eval $ac_try) 2>&5
14867 ac_status=$?
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; } &&
14870 { ac_try='test -s conftest$ac_exeext'
David Hammerton852c7ae2003-06-20 23:26:56 +000014871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872 (eval $ac_try) 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014876 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"`
David Hammerton852c7ae2003-06-20 23:26:56 +000014877 if test "x$ac_cv_lib_soname_ssl" = "x"
14878 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014879 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000014880 fi
14881else
14882 echo "$as_me: failed program was:" >&5
14883sed 's/^/| /' conftest.$ac_ext >&5
14884
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014885ac_cv_lib_soname_ssl="libssl.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000014886fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014887rm -f conftest.err conftest.$ac_objext \
14888 conftest$ac_exeext conftest.$ac_ext
David Hammerton852c7ae2003-06-20 23:26:56 +000014889 LIBS=$ac_get_soname_save_LIBS
14890fi
14891echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
14892echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
14893if test "x$ac_cv_lib_soname_ssl" != xNONE
14894then
14895cat >>confdefs.h <<_ACEOF
14896#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
14897_ACEOF
14898fi
14899
14900echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
14901echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
14902if test "${ac_cv_lib_soname_crypto+set}" = set; then
14903 echo $ECHO_N "(cached) $ECHO_C" >&6
14904else
14905 ac_get_soname_save_LIBS=$LIBS
14906LIBS="-lcrypto $LIBS"
14907 cat >conftest.$ac_ext <<_ACEOF
David Hammerton852c7ae2003-06-20 23:26:56 +000014908/* confdefs.h. */
14909_ACEOF
14910cat confdefs.h >>conftest.$ac_ext
14911cat >>conftest.$ac_ext <<_ACEOF
14912/* end confdefs.h. */
14913
14914/* Override any gcc2 internal prototype to avoid an error. */
14915#ifdef __cplusplus
14916extern "C"
14917#endif
14918/* We use char because int might match the return type of a gcc2
14919 builtin and then its argument prototype would still apply. */
14920char BIO_new_socket ();
14921int
14922main ()
14923{
14924BIO_new_socket ();
14925 ;
14926 return 0;
14927}
14928_ACEOF
14929rm -f conftest.$ac_objext conftest$ac_exeext
14930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014931 (eval $ac_link) 2>conftest.er1
David Hammerton852c7ae2003-06-20 23:26:56 +000014932 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014933 grep -v '^ *+' conftest.er1 >conftest.err
14934 rm -f conftest.er1
14935 cat conftest.err >&5
David Hammerton852c7ae2003-06-20 23:26:56 +000014936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940 (eval $ac_try) 2>&5
14941 ac_status=$?
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; } &&
14944 { ac_try='test -s conftest$ac_exeext'
David Hammerton852c7ae2003-06-20 23:26:56 +000014945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14947 ac_status=$?
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014950 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"`
David Hammerton852c7ae2003-06-20 23:26:56 +000014951 if test "x$ac_cv_lib_soname_crypto" = "x"
14952 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014953 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000014954 fi
14955else
14956 echo "$as_me: failed program was:" >&5
14957sed 's/^/| /' conftest.$ac_ext >&5
14958
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014959ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000014960fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014961rm -f conftest.err conftest.$ac_objext \
14962 conftest$ac_exeext conftest.$ac_ext
David Hammerton852c7ae2003-06-20 23:26:56 +000014963 LIBS=$ac_get_soname_save_LIBS
14964fi
14965echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
14966echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
14967if test "x$ac_cv_lib_soname_crypto" != xNONE
14968then
14969cat >>confdefs.h <<_ACEOF
14970#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
14971_ACEOF
14972fi
Mike McCormack9557d1b2003-08-20 04:19:01 +000014973
14974echo "$as_me:$LINENO: checking for -lncurses soname" >&5
14975echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
14976if test "${ac_cv_lib_soname_ncurses+set}" = set; then
14977 echo $ECHO_N "(cached) $ECHO_C" >&6
14978else
14979 ac_get_soname_save_LIBS=$LIBS
14980LIBS="-lncurses $LIBS"
14981 cat >conftest.$ac_ext <<_ACEOF
Mike McCormack9557d1b2003-08-20 04:19:01 +000014982/* confdefs.h. */
14983_ACEOF
14984cat confdefs.h >>conftest.$ac_ext
14985cat >>conftest.$ac_ext <<_ACEOF
14986/* end confdefs.h. */
14987
14988/* Override any gcc2 internal prototype to avoid an error. */
14989#ifdef __cplusplus
14990extern "C"
14991#endif
14992/* We use char because int might match the return type of a gcc2
14993 builtin and then its argument prototype would still apply. */
14994char waddch ();
14995int
14996main ()
14997{
14998waddch ();
14999 ;
15000 return 0;
15001}
15002_ACEOF
15003rm -f conftest.$ac_objext conftest$ac_exeext
15004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015005 (eval $ac_link) 2>conftest.er1
Mike McCormack9557d1b2003-08-20 04:19:01 +000015006 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015007 grep -v '^ *+' conftest.er1 >conftest.err
15008 rm -f conftest.er1
15009 cat conftest.err >&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000015010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014 (eval $ac_try) 2>&5
15015 ac_status=$?
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; } &&
15018 { ac_try='test -s conftest$ac_exeext'
Mike McCormack9557d1b2003-08-20 04:19:01 +000015019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15021 ac_status=$?
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015024 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"`
Mike McCormack9557d1b2003-08-20 04:19:01 +000015025 if test "x$ac_cv_lib_soname_ncurses" = "x"
15026 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015027 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015028 fi
15029else
15030 echo "$as_me: failed program was:" >&5
15031sed 's/^/| /' conftest.$ac_ext >&5
15032
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015033ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015034fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015035rm -f conftest.err conftest.$ac_objext \
15036 conftest$ac_exeext conftest.$ac_ext
Mike McCormack9557d1b2003-08-20 04:19:01 +000015037 LIBS=$ac_get_soname_save_LIBS
15038fi
15039echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15040echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15041if test "x$ac_cv_lib_soname_ncurses" != xNONE
15042then
15043cat >>confdefs.h <<_ACEOF
15044#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15045_ACEOF
15046fi
15047
15048echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15049echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15050if test "${ac_cv_lib_soname_curses+set}" = set; then
15051 echo $ECHO_N "(cached) $ECHO_C" >&6
15052else
15053 ac_get_soname_save_LIBS=$LIBS
15054LIBS="-lcurses $LIBS"
15055 cat >conftest.$ac_ext <<_ACEOF
Mike McCormack9557d1b2003-08-20 04:19:01 +000015056/* confdefs.h. */
15057_ACEOF
15058cat confdefs.h >>conftest.$ac_ext
15059cat >>conftest.$ac_ext <<_ACEOF
15060/* end confdefs.h. */
15061
15062/* Override any gcc2 internal prototype to avoid an error. */
15063#ifdef __cplusplus
15064extern "C"
15065#endif
15066/* We use char because int might match the return type of a gcc2
15067 builtin and then its argument prototype would still apply. */
15068char waddch ();
15069int
15070main ()
15071{
15072waddch ();
15073 ;
15074 return 0;
15075}
15076_ACEOF
15077rm -f conftest.$ac_objext conftest$ac_exeext
15078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015079 (eval $ac_link) 2>conftest.er1
Mike McCormack9557d1b2003-08-20 04:19:01 +000015080 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015081 grep -v '^ *+' conftest.er1 >conftest.err
15082 rm -f conftest.er1
15083 cat conftest.err >&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000015084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15089 ac_status=$?
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; } &&
15092 { ac_try='test -s conftest$ac_exeext'
Mike McCormack9557d1b2003-08-20 04:19:01 +000015093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094 (eval $ac_try) 2>&5
15095 ac_status=$?
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015098 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"`
Mike McCormack9557d1b2003-08-20 04:19:01 +000015099 if test "x$ac_cv_lib_soname_curses" = "x"
15100 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015101 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015102 fi
15103else
15104 echo "$as_me: failed program was:" >&5
15105sed 's/^/| /' conftest.$ac_ext >&5
15106
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015107ac_cv_lib_soname_curses="libcurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015108fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015109rm -f conftest.err conftest.$ac_objext \
15110 conftest$ac_exeext conftest.$ac_ext
Mike McCormack9557d1b2003-08-20 04:19:01 +000015111 LIBS=$ac_get_soname_save_LIBS
15112fi
15113echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15114echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15115if test "x$ac_cv_lib_soname_curses" != xNONE
15116then
15117cat >>confdefs.h <<_ACEOF
15118#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15119_ACEOF
15120fi
Huw Daviese82dfab2004-08-04 19:10:26 +000015121
15122echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15123echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6
15124if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15125 echo $ECHO_N "(cached) $ECHO_C" >&6
15126else
15127 ac_get_soname_save_LIBS=$LIBS
15128LIBS="-ljpeg $LIBS"
15129 cat >conftest.$ac_ext <<_ACEOF
15130/* confdefs.h. */
15131_ACEOF
15132cat confdefs.h >>conftest.$ac_ext
15133cat >>conftest.$ac_ext <<_ACEOF
15134/* end confdefs.h. */
15135
15136/* Override any gcc2 internal prototype to avoid an error. */
15137#ifdef __cplusplus
15138extern "C"
15139#endif
15140/* We use char because int might match the return type of a gcc2
15141 builtin and then its argument prototype would still apply. */
15142char jpeg_start_decompress ();
15143int
15144main ()
15145{
15146jpeg_start_decompress ();
15147 ;
15148 return 0;
15149}
15150_ACEOF
15151rm -f conftest.$ac_objext conftest$ac_exeext
15152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15153 (eval $ac_link) 2>conftest.er1
15154 ac_status=$?
15155 grep -v '^ *+' conftest.er1 >conftest.err
15156 rm -f conftest.er1
15157 cat conftest.err >&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } &&
15160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162 (eval $ac_try) 2>&5
15163 ac_status=$?
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; } &&
15166 { ac_try='test -s conftest$ac_exeext'
15167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168 (eval $ac_try) 2>&5
15169 ac_status=$?
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); }; }; then
15172 ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"`
15173 if test "x$ac_cv_lib_soname_jpeg" = "x"
15174 then
15175 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15176 fi
15177else
15178 echo "$as_me: failed program was:" >&5
15179sed 's/^/| /' conftest.$ac_ext >&5
15180
15181ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15182fi
15183rm -f conftest.err conftest.$ac_objext \
15184 conftest$ac_exeext conftest.$ac_ext
15185 LIBS=$ac_get_soname_save_LIBS
15186fi
15187echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15188echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6
15189if test "x$ac_cv_lib_soname_jpeg" != xNONE
15190then
15191cat >>confdefs.h <<_ACEOF
15192#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15193_ACEOF
15194fi
15195
15196echo "$as_me:$LINENO: checking for -lungif soname" >&5
15197echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6
15198if test "${ac_cv_lib_soname_ungif+set}" = set; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15200else
15201 ac_get_soname_save_LIBS=$LIBS
15202LIBS="-lungif $LIBS"
15203 cat >conftest.$ac_ext <<_ACEOF
15204/* confdefs.h. */
15205_ACEOF
15206cat confdefs.h >>conftest.$ac_ext
15207cat >>conftest.$ac_ext <<_ACEOF
15208/* end confdefs.h. */
15209
15210/* Override any gcc2 internal prototype to avoid an error. */
15211#ifdef __cplusplus
15212extern "C"
15213#endif
15214/* We use char because int might match the return type of a gcc2
15215 builtin and then its argument prototype would still apply. */
15216char DGifOpen ();
15217int
15218main ()
15219{
15220DGifOpen ();
15221 ;
15222 return 0;
15223}
15224_ACEOF
15225rm -f conftest.$ac_objext conftest$ac_exeext
15226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15227 (eval $ac_link) 2>conftest.er1
15228 ac_status=$?
15229 grep -v '^ *+' conftest.er1 >conftest.err
15230 rm -f conftest.er1
15231 cat conftest.err >&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); } &&
15234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; } &&
15240 { ac_try='test -s conftest$ac_exeext'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; }; then
15246 ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"`
15247 if test "x$ac_cv_lib_soname_ungif" = "x"
15248 then
15249 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15250 fi
15251else
15252 echo "$as_me: failed program was:" >&5
15253sed 's/^/| /' conftest.$ac_ext >&5
15254
15255ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15256fi
15257rm -f conftest.err conftest.$ac_objext \
15258 conftest$ac_exeext conftest.$ac_ext
15259 LIBS=$ac_get_soname_save_LIBS
15260fi
15261echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
15262echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6
15263if test "x$ac_cv_lib_soname_ungif" != xNONE
15264then
15265cat >>confdefs.h <<_ACEOF
15266#define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
15267_ACEOF
15268fi
Marcus Meissner00cf13a2004-09-14 19:27:58 +000015269
15270echo "$as_me:$LINENO: checking for -lgif soname" >&5
15271echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6
15272if test "${ac_cv_lib_soname_gif+set}" = set; then
15273 echo $ECHO_N "(cached) $ECHO_C" >&6
15274else
15275 ac_get_soname_save_LIBS=$LIBS
15276LIBS="-lgif $LIBS"
15277 cat >conftest.$ac_ext <<_ACEOF
15278/* confdefs.h. */
15279_ACEOF
15280cat confdefs.h >>conftest.$ac_ext
15281cat >>conftest.$ac_ext <<_ACEOF
15282/* end confdefs.h. */
15283
15284/* Override any gcc2 internal prototype to avoid an error. */
15285#ifdef __cplusplus
15286extern "C"
15287#endif
15288/* We use char because int might match the return type of a gcc2
15289 builtin and then its argument prototype would still apply. */
15290char DGifOpen ();
15291int
15292main ()
15293{
15294DGifOpen ();
15295 ;
15296 return 0;
15297}
15298_ACEOF
15299rm -f conftest.$ac_objext conftest$ac_exeext
15300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15301 (eval $ac_link) 2>conftest.er1
15302 ac_status=$?
15303 grep -v '^ *+' conftest.er1 >conftest.err
15304 rm -f conftest.er1
15305 cat conftest.err >&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); } &&
15308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; } &&
15314 { ac_try='test -s conftest$ac_exeext'
15315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316 (eval $ac_try) 2>&5
15317 ac_status=$?
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); }; }; then
15320 ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"`
15321 if test "x$ac_cv_lib_soname_gif" = "x"
15322 then
15323 ac_cv_lib_soname_gif="libgif.$LIBEXT"
15324 fi
15325else
15326 echo "$as_me: failed program was:" >&5
15327sed 's/^/| /' conftest.$ac_ext >&5
15328
15329ac_cv_lib_soname_gif="libgif.$LIBEXT"
15330fi
15331rm -f conftest.err conftest.$ac_objext \
15332 conftest$ac_exeext conftest.$ac_ext
15333 LIBS=$ac_get_soname_save_LIBS
15334fi
15335echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
15336echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6
15337if test "x$ac_cv_lib_soname_gif" != xNONE
15338then
15339cat >>confdefs.h <<_ACEOF
15340#define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
15341_ACEOF
15342fi
Hans Leidekker081b2502004-10-07 19:12:41 +000015343
15344echo "$as_me:$LINENO: checking for -llcms soname" >&5
15345echo $ECHO_N "checking for -llcms soname... $ECHO_C" >&6
15346if test "${ac_cv_lib_soname_lcms+set}" = set; then
15347 echo $ECHO_N "(cached) $ECHO_C" >&6
15348else
15349 ac_get_soname_save_LIBS=$LIBS
15350LIBS="-llcms $LIBS"
15351 cat >conftest.$ac_ext <<_ACEOF
15352/* confdefs.h. */
15353_ACEOF
15354cat confdefs.h >>conftest.$ac_ext
15355cat >>conftest.$ac_ext <<_ACEOF
15356/* end confdefs.h. */
15357
15358/* Override any gcc2 internal prototype to avoid an error. */
15359#ifdef __cplusplus
15360extern "C"
15361#endif
15362/* We use char because int might match the return type of a gcc2
15363 builtin and then its argument prototype would still apply. */
15364char cmsOpenProfileFromFile ();
15365int
15366main ()
15367{
15368cmsOpenProfileFromFile ();
15369 ;
15370 return 0;
15371}
15372_ACEOF
15373rm -f conftest.$ac_objext conftest$ac_exeext
15374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15375 (eval $ac_link) 2>conftest.er1
15376 ac_status=$?
15377 grep -v '^ *+' conftest.er1 >conftest.err
15378 rm -f conftest.er1
15379 cat conftest.err >&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } &&
15382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384 (eval $ac_try) 2>&5
15385 ac_status=$?
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; } &&
15388 { ac_try='test -s conftest$ac_exeext'
15389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390 (eval $ac_try) 2>&5
15391 ac_status=$?
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); }; }; then
15394 ac_cv_lib_soname_lcms=`$ac_cv_path_LDD conftest$ac_exeext | grep liblcms\\.$LIBEXT | sed "s/^.*\(liblcms\.$LIBEXT[^ ]*\).*$/\1/"`
15395 if test "x$ac_cv_lib_soname_lcms" = "x"
15396 then
15397 ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
15398 fi
15399else
15400 echo "$as_me: failed program was:" >&5
15401sed 's/^/| /' conftest.$ac_ext >&5
15402
15403ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
15404fi
15405rm -f conftest.err conftest.$ac_objext \
15406 conftest$ac_exeext conftest.$ac_ext
15407 LIBS=$ac_get_soname_save_LIBS
15408fi
15409echo "$as_me:$LINENO: result: $ac_cv_lib_soname_lcms" >&5
15410echo "${ECHO_T}$ac_cv_lib_soname_lcms" >&6
15411if test "x$ac_cv_lib_soname_lcms" != xNONE
15412then
15413cat >>confdefs.h <<_ACEOF
15414#define SONAME_LIBLCMS "$ac_cv_lib_soname_lcms"
15415_ACEOF
15416fi
Marcus Meissner67d3afb2005-01-07 15:33:02 +000015417
15418echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
15419echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6
15420if test "${ac_cv_lib_soname_capi20+set}" = set; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15422else
15423 ac_get_soname_save_LIBS=$LIBS
15424LIBS="-lcapi20 $LIBS"
15425 cat >conftest.$ac_ext <<_ACEOF
15426/* confdefs.h. */
15427_ACEOF
15428cat confdefs.h >>conftest.$ac_ext
15429cat >>conftest.$ac_ext <<_ACEOF
15430/* end confdefs.h. */
15431
15432/* Override any gcc2 internal prototype to avoid an error. */
15433#ifdef __cplusplus
15434extern "C"
15435#endif
15436/* We use char because int might match the return type of a gcc2
15437 builtin and then its argument prototype would still apply. */
15438char capi20_isinstalled ();
15439int
15440main ()
15441{
15442capi20_isinstalled ();
15443 ;
15444 return 0;
15445}
15446_ACEOF
15447rm -f conftest.$ac_objext conftest$ac_exeext
15448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15449 (eval $ac_link) 2>conftest.er1
15450 ac_status=$?
15451 grep -v '^ *+' conftest.er1 >conftest.err
15452 rm -f conftest.er1
15453 cat conftest.err >&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } &&
15456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458 (eval $ac_try) 2>&5
15459 ac_status=$?
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); }; } &&
15462 { ac_try='test -s conftest$ac_exeext'
15463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15464 (eval $ac_try) 2>&5
15465 ac_status=$?
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; }; then
15468 ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"`
15469 if test "x$ac_cv_lib_soname_capi20" = "x"
15470 then
15471 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15472 fi
15473else
15474 echo "$as_me: failed program was:" >&5
15475sed 's/^/| /' conftest.$ac_ext >&5
15476
15477ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15478fi
15479rm -f conftest.err conftest.$ac_objext \
15480 conftest$ac_exeext conftest.$ac_ext
15481 LIBS=$ac_get_soname_save_LIBS
15482fi
15483echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
15484echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6
15485if test "x$ac_cv_lib_soname_capi20" != xNONE
15486then
15487cat >>confdefs.h <<_ACEOF
15488#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
15489_ACEOF
15490fi
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015491fi
15492
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015493
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015494
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015495# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15496# for constant arguments. Useless!
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015497echo "$as_me:$LINENO: checking for working alloca.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015498echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15499if test "${ac_cv_working_alloca_h+set}" = set; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015501else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015502 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015503/* confdefs.h. */
15504_ACEOF
15505cat confdefs.h >>conftest.$ac_ext
15506cat >>conftest.$ac_ext <<_ACEOF
15507/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015508#include <alloca.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015509int
15510main ()
15511{
15512char *p = (char *) alloca (2 * sizeof (int));
15513 ;
15514 return 0;
15515}
15516_ACEOF
15517rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015519 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015520 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015521 grep -v '^ *+' conftest.er1 >conftest.err
15522 rm -f conftest.er1
15523 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015525 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; } &&
15532 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015534 (eval $ac_try) 2>&5
15535 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015537 (exit $ac_status); }; }; then
15538 ac_cv_working_alloca_h=yes
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015539else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015540 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015541sed 's/^/| /' conftest.$ac_ext >&5
15542
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015543ac_cv_working_alloca_h=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015544fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015545rm -f conftest.err conftest.$ac_objext \
15546 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015547fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015548echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015549echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15550if test $ac_cv_working_alloca_h = yes; then
Alexandre Julliard2487cce1999-04-18 14:43:16 +000015551
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015552cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015553#define HAVE_ALLOCA_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015554_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015555
15556fi
15557
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015558echo "$as_me:$LINENO: checking for alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015559echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15560if test "${ac_cv_func_alloca_works+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015562else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015563 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015564/* confdefs.h. */
15565_ACEOF
15566cat confdefs.h >>conftest.$ac_ext
15567cat >>conftest.$ac_ext <<_ACEOF
15568/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015569#ifdef __GNUC__
15570# define alloca __builtin_alloca
15571#else
Eric Pouech18ad24a2000-01-16 22:16:33 +000015572# ifdef _MSC_VER
15573# include <malloc.h>
15574# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015575# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000015576# if HAVE_ALLOCA_H
15577# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015578# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000015579# ifdef _AIX
15580 #pragma alloca
15581# else
15582# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015583char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +000015584# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015585# endif
15586# endif
15587# endif
15588#endif
15589
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015590int
15591main ()
15592{
15593char *p = (char *) alloca (1);
15594 ;
15595 return 0;
15596}
15597_ACEOF
15598rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015600 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015601 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015602 grep -v '^ *+' conftest.er1 >conftest.err
15603 rm -f conftest.er1
15604 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015606 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609 (eval $ac_try) 2>&5
15610 ac_status=$?
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); }; } &&
15613 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015615 (eval $ac_try) 2>&5
15616 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015618 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015619 ac_cv_func_alloca_works=yes
15620else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015621 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015622sed 's/^/| /' conftest.$ac_ext >&5
15623
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015624ac_cv_func_alloca_works=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015625fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015626rm -f conftest.err conftest.$ac_objext \
15627 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015628fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015629echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015630echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015631
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015632if test $ac_cv_func_alloca_works = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015633
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015634cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015635#define HAVE_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015636_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015637
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015638else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015639 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015640# that cause trouble. Some versions do not even contain alloca or
15641# contain a buggy version. If you still want to use their alloca,
15642# use ar to extract alloca.o from them instead of compiling alloca.c.
15643
15644ALLOCA=alloca.$ac_objext
15645
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015646cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015647#define C_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015648_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015649
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015650
15651echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015652echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15653if test "${ac_cv_os_cray+set}" = set; then
15654 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015655else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015656 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015657/* confdefs.h. */
15658_ACEOF
15659cat confdefs.h >>conftest.$ac_ext
15660cat >>conftest.$ac_ext <<_ACEOF
15661/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015662#if defined(CRAY) && ! defined(CRAY2)
15663webecray
15664#else
15665wenotbecray
15666#endif
15667
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015668_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015670 $EGREP "webecray" >/dev/null 2>&1; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015671 ac_cv_os_cray=yes
15672else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015673 ac_cv_os_cray=no
15674fi
15675rm -f conftest*
15676
15677fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015678echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015679echo "${ECHO_T}$ac_cv_os_cray" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015680if test $ac_cv_os_cray = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015681 for ac_func in _getb67 GETB67 getb67; do
15682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015683echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015684echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15685if eval "test \"\${$as_ac_var+set}\" = set"; then
15686 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015687else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015688 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015689/* confdefs.h. */
15690_ACEOF
15691cat confdefs.h >>conftest.$ac_ext
15692cat >>conftest.$ac_ext <<_ACEOF
15693/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000015694/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15696#define $ac_func innocuous_$ac_func
15697
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015698/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015699 which can conflict with char $ac_func (); below.
15700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15701 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000015702
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015703#ifdef __STDC__
15704# include <limits.h>
15705#else
15706# include <assert.h>
15707#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000015708
15709#undef $ac_func
15710
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015711/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015712#ifdef __cplusplus
15713extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015714{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015715#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +000015716/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015717 builtin and then its argument prototype would still apply. */
15718char $ac_func ();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015719/* The GNU C library defines this for functions which it implements
15720 to always fail with ENOSYS. Some functions are actually named
15721 something starting with __ and the normal name is an alias. */
15722#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15723choke me
15724#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015725char (*f) () = $ac_func;
15726#endif
15727#ifdef __cplusplus
15728}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015729#endif
15730
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015731int
15732main ()
15733{
15734return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015735 ;
15736 return 0;
15737}
15738_ACEOF
15739rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015741 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015742 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015743 grep -v '^ *+' conftest.er1 >conftest.err
15744 rm -f conftest.er1
15745 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015747 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; } &&
15754 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015756 (eval $ac_try) 2>&5
15757 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015759 (exit $ac_status); }; }; then
15760 eval "$as_ac_var=yes"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015761else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015762 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015763sed 's/^/| /' conftest.$ac_ext >&5
15764
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015765eval "$as_ac_var=no"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015766fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015767rm -f conftest.err conftest.$ac_objext \
15768 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015769fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015770echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015771echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15772if test `eval echo '${'$as_ac_var'}'` = yes; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015773
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015774cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015775#define CRAY_STACKSEG_END $ac_func
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015776_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015777
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015778 break
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015779fi
15780
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015781 done
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015782fi
15783
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015784echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015785echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15786if test "${ac_cv_c_stack_direction+set}" = set; then
15787 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015788else
15789 if test "$cross_compiling" = yes; then
15790 ac_cv_c_stack_direction=0
15791else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015792 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015793/* confdefs.h. */
15794_ACEOF
15795cat confdefs.h >>conftest.$ac_ext
15796cat >>conftest.$ac_ext <<_ACEOF
15797/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015798int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015799find_stack_direction ()
15800{
15801 static char *addr = 0;
15802 auto char dummy;
15803 if (addr == 0)
15804 {
15805 addr = &dummy;
15806 return find_stack_direction ();
15807 }
15808 else
15809 return (&dummy > addr) ? 1 : -1;
15810}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015811
15812int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015813main ()
15814{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015815 exit (find_stack_direction () < 0);
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015816}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015817_ACEOF
15818rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015820 (eval $ac_link) 2>&5
15821 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015825 (eval $ac_try) 2>&5
15826 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015828 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015829 ac_cv_c_stack_direction=1
15830else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015831 echo "$as_me: program exited with status $ac_status" >&5
15832echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015833sed 's/^/| /' conftest.$ac_ext >&5
15834
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015835( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015836ac_cv_c_stack_direction=-1
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015837fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +000015838rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015839fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015840fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015841echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015842echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015843
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015844cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015845#define STACK_DIRECTION $ac_cv_c_stack_direction
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015846_ACEOF
15847
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015848
15849fi
15850
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
Steven Edwardsb9627c12002-05-05 21:03:44 +000015893
15894
Steven Edwards0a8e15a2002-05-10 01:33:40 +000015895
15896
Alexandre Julliard142dab82002-07-01 18:17:30 +000015897
Patrik Stridvall6caeb722002-11-25 21:12:26 +000015898
15899
15900
Pavel Roskin7add08a2003-09-24 18:54:40 +000015901
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000015902
Alexandre Julliarde2930742004-01-08 05:07:05 +000015903
Alexandre Julliard13af4892004-03-05 21:03:46 +000015904
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000015905
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000015906
15907
Alexandre Julliard969f57c2004-09-23 04:48:24 +000015908
Paul Millar10a6c562004-12-07 17:19:54 +000015909
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000015910
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015911for ac_func in \
15912 _lwp_create \
Alexandre Julliard6f7a2042003-04-01 04:39:35 +000015913 _lwp_self \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000015914 _pclose \
15915 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000015916 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000015917 _spawnvp \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000015918 _stricmp \
15919 _strnicmp \
Steven Edwardsbe514b92003-01-14 19:35:03 +000015920 _vsnprintf \
Steven Edwardsb9627c12002-05-05 21:03:44 +000015921 chsize \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015922 clone \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000015923 epoll_create \
Hans Leidekkerc3de6ef2004-10-19 23:53:26 +000015924 ffs \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000015925 finite \
Hans Leidekkerbed38422004-10-14 03:08:57 +000015926 fork \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000015927 fpclass \
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000015928 fstatfs \
15929 fstatvfs \
Steven Edwardsb9627c12002-05-05 21:03:44 +000015930 ftruncate \
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000015931 futimes \
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000015932 futimesat \
Patrik Stridvallb9010211999-11-13 22:23:35 +000015933 getnetbyname \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000015934 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015935 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +000015936 getprotobyname \
15937 getprotobynumber \
Alexandre Julliard142dab82002-07-01 18:17:30 +000015938 getpwuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000015939 getservbyport \
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000015940 gettid \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000015941 gettimeofday \
Steven Edwardse7c3ab12004-10-04 20:45:49 +000015942 getuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000015943 inet_network \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000015944 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015945 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000015946 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000015947 pclose \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000015948 popen \
Steven Edwardsb9627c12002-05-05 21:03:44 +000015949 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000015950 pwrite \
Alexandre Julliarde2930742004-01-08 05:07:05 +000015951 readlink \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015952 rfork \
Jeremy White08c0f692004-10-09 02:26:29 +000015953 sched_yield \
Patrik Stridvallb9010211999-11-13 22:23:35 +000015954 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015955 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +000015956 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015957 sigaltstack \
Paul Millar10a6c562004-12-07 17:19:54 +000015958 sigprocmask \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000015959 snprintf \
Pavel Roskin7add08a2003-09-24 18:54:40 +000015960 spawnvp \
Patrik Stridvallb9010211999-11-13 22:23:35 +000015961 statfs \
Alexandre Julliard13af4892004-03-05 21:03:46 +000015962 statvfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000015963 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015964 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000015965 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015966 tcgetattr \
15967 timegm \
15968 usleep \
Steven Edwardsbe514b92003-01-14 19:35:03 +000015969 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015970 wait4 \
15971 waitpid \
15972
15973do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015974as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015975echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015976echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15977if eval "test \"\${$as_ac_var+set}\" = set"; then
15978 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015979else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015980 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015981/* confdefs.h. */
15982_ACEOF
15983cat confdefs.h >>conftest.$ac_ext
15984cat >>conftest.$ac_ext <<_ACEOF
15985/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000015986/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15988#define $ac_func innocuous_$ac_func
15989
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015990/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015991 which can conflict with char $ac_func (); below.
15992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15993 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000015994
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015995#ifdef __STDC__
15996# include <limits.h>
15997#else
15998# include <assert.h>
15999#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000016000
16001#undef $ac_func
16002
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016003/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016004#ifdef __cplusplus
16005extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016006{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016007#endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016008/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016009 builtin and then its argument prototype would still apply. */
16010char $ac_func ();
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016011/* The GNU C library defines this for functions which it implements
16012 to always fail with ENOSYS. Some functions are actually named
16013 something starting with __ and the normal name is an alias. */
16014#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16015choke me
16016#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016017char (*f) () = $ac_func;
16018#endif
16019#ifdef __cplusplus
16020}
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016021#endif
16022
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016023int
16024main ()
16025{
16026return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016027 ;
16028 return 0;
16029}
16030_ACEOF
16031rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016033 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016034 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016035 grep -v '^ *+' conftest.er1 >conftest.err
16036 rm -f conftest.er1
16037 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016039 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16043 ac_status=$?
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; } &&
16046 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016048 (eval $ac_try) 2>&5
16049 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016051 (exit $ac_status); }; }; then
16052 eval "$as_ac_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016053else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016054 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016055sed 's/^/| /' conftest.$ac_ext >&5
16056
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016057eval "$as_ac_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016058fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016059rm -f conftest.err conftest.$ac_objext \
16060 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016061fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016063echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16064if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016065 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016067_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000016068
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016069fi
16070done
16071
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016072
16073
16074
16075
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016076for ac_header in sys/mount.h sys/user.h
16077do
16078as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16079echo "$as_me:$LINENO: checking for $ac_header" >&5
16080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16081if eval "test \"\${$as_ac_Header+set}\" = set"; then
16082 echo $ECHO_N "(cached) $ECHO_C" >&6
16083else
16084 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016085/* confdefs.h. */
16086_ACEOF
16087cat confdefs.h >>conftest.$ac_ext
16088cat >>conftest.$ac_ext <<_ACEOF
16089/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000016090#include <sys/types.h>
16091 #if HAVE_SYS_PARAM_H
16092 # include <sys/param.h>
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016093 #endif
16094
16095#include <$ac_header>
16096_ACEOF
16097rm -f conftest.$ac_objext
16098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016099 (eval $ac_compile) 2>conftest.er1
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016100 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016101 grep -v '^ *+' conftest.er1 >conftest.err
16102 rm -f conftest.er1
16103 cat conftest.err >&5
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16109 ac_status=$?
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; } &&
16112 { ac_try='test -s conftest.$ac_objext'
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16115 ac_status=$?
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; }; then
16118 eval "$as_ac_Header=yes"
16119else
16120 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016121sed 's/^/| /' conftest.$ac_ext >&5
16122
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016123eval "$as_ac_Header=no"
16124fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016126fi
16127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16128echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16129if test `eval echo '${'$as_ac_Header'}'` = yes; then
16130 cat >>confdefs.h <<_ACEOF
16131#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16132_ACEOF
16133
16134fi
16135
16136done
16137
16138
16139
Juan Lang38fa5ad2003-05-13 03:32:20 +000016140
16141
16142
16143
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016144for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016145do
16146as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16147echo "$as_me:$LINENO: checking for $ac_header" >&5
16148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16149if eval "test \"\${$as_ac_Header+set}\" = set"; then
16150 echo $ECHO_N "(cached) $ECHO_C" >&6
16151else
16152 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016153/* confdefs.h. */
16154_ACEOF
16155cat confdefs.h >>conftest.$ac_ext
16156cat >>conftest.$ac_ext <<_ACEOF
16157/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000016158#include <sys/types.h>
Gerald Pfeifer87c369d2002-07-23 02:02:02 +000016159 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016160 # include <sys/socket.h>
16161 #endif
16162
16163#include <$ac_header>
16164_ACEOF
16165rm -f conftest.$ac_objext
16166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016167 (eval $ac_compile) 2>conftest.er1
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016168 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016169 grep -v '^ *+' conftest.er1 >conftest.err
16170 rm -f conftest.er1
16171 cat conftest.err >&5
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16176 (eval $ac_try) 2>&5
16177 ac_status=$?
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); }; } &&
16180 { ac_try='test -s conftest.$ac_objext'
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16183 ac_status=$?
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16186 eval "$as_ac_Header=yes"
16187else
16188 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016189sed 's/^/| /' conftest.$ac_ext >&5
16190
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016191eval "$as_ac_Header=no"
16192fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016194fi
16195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16196echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16197if test `eval echo '${'$as_ac_Header'}'` = yes; then
16198 cat >>confdefs.h <<_ACEOF
16199#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16200_ACEOF
16201
16202fi
16203
16204done
16205
16206
16207
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016208for ac_header in resolv.h
16209do
16210as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16211echo "$as_me:$LINENO: checking for $ac_header" >&5
16212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16213if eval "test \"\${$as_ac_Header+set}\" = set"; then
16214 echo $ECHO_N "(cached) $ECHO_C" >&6
16215else
16216 cat >conftest.$ac_ext <<_ACEOF
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016217/* confdefs.h. */
16218_ACEOF
16219cat confdefs.h >>conftest.$ac_ext
16220cat >>conftest.$ac_ext <<_ACEOF
16221/* end confdefs.h. */
16222#include <sys/types.h>
16223 #if HAVE_SYS_SOCKET_H
16224 # include <sys/socket.h>
16225 #endif
16226 #if HAVE_NETINET_IN_H
16227 # include <netinet/in.h>
16228 #endif
Pierre d'Herbemontae8ca362003-10-27 21:55:00 +000016229 #if HAVE_ARPA_NAMESER_H
16230 # include <arpa/nameser.h>
16231 #endif
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016232
16233#include <$ac_header>
16234_ACEOF
16235rm -f conftest.$ac_objext
16236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016237 (eval $ac_compile) 2>conftest.er1
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016238 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016239 grep -v '^ *+' conftest.er1 >conftest.err
16240 rm -f conftest.er1
16241 cat conftest.err >&5
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16246 (eval $ac_try) 2>&5
16247 ac_status=$?
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; } &&
16250 { ac_try='test -s conftest.$ac_objext'
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252 (eval $ac_try) 2>&5
16253 ac_status=$?
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }; }; then
16256 eval "$as_ac_Header=yes"
16257else
16258 echo "$as_me: failed program was:" >&5
16259sed 's/^/| /' conftest.$ac_ext >&5
16260
16261eval "$as_ac_Header=no"
16262fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016264fi
16265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16266echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16267if test `eval echo '${'$as_ac_Header'}'` = yes; then
16268 cat >>confdefs.h <<_ACEOF
16269#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16270_ACEOF
16271
16272fi
16273
16274done
16275
16276
16277
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016278for ac_header in ucontext.h
16279do
16280as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16281echo "$as_me:$LINENO: checking for $ac_header" >&5
16282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16283if eval "test \"\${$as_ac_Header+set}\" = set"; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16285else
16286 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016287/* confdefs.h. */
16288_ACEOF
16289cat confdefs.h >>conftest.$ac_ext
16290cat >>conftest.$ac_ext <<_ACEOF
16291/* end confdefs.h. */
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016292#include <signal.h>
16293
16294#include <$ac_header>
16295_ACEOF
16296rm -f conftest.$ac_objext
16297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016298 (eval $ac_compile) 2>conftest.er1
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016299 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016300 grep -v '^ *+' conftest.er1 >conftest.err
16301 rm -f conftest.er1
16302 cat conftest.err >&5
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16307 (eval $ac_try) 2>&5
16308 ac_status=$?
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); }; } &&
16311 { ac_try='test -s conftest.$ac_objext'
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16313 (eval $ac_try) 2>&5
16314 ac_status=$?
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; }; then
16317 eval "$as_ac_Header=yes"
16318else
16319 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016320sed 's/^/| /' conftest.$ac_ext >&5
16321
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016322eval "$as_ac_Header=no"
16323fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016325fi
16326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16327echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16328if test `eval echo '${'$as_ac_Header'}'` = yes; then
16329 cat >>confdefs.h <<_ACEOF
16330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16331_ACEOF
16332
16333fi
16334
16335done
16336
16337
16338
Maarten Lankhorst888eaae2005-04-27 09:46:25 +000016339
16340for ac_header in linux/videodev.h
16341do
16342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16343echo "$as_me:$LINENO: checking for $ac_header" >&5
16344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16345if eval "test \"\${$as_ac_Header+set}\" = set"; then
16346 echo $ECHO_N "(cached) $ECHO_C" >&6
16347else
16348 cat >conftest.$ac_ext <<_ACEOF
16349/* confdefs.h. */
16350_ACEOF
16351cat confdefs.h >>conftest.$ac_ext
16352cat >>conftest.$ac_ext <<_ACEOF
16353/* end confdefs.h. */
16354#ifdef HAVE_SYS_TIME_H
16355#include <sys/time.h>
16356#endif
Adrian Harvey59f97252005-06-12 11:10:43 +000016357#include <sys/types.h>
Maarten Lankhorst888eaae2005-04-27 09:46:25 +000016358#ifdef HAVE_ASM_TYPES_H
16359#include <asm/types.h>
16360#endif
16361
16362#include <$ac_header>
16363_ACEOF
16364rm -f conftest.$ac_objext
16365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16366 (eval $ac_compile) 2>conftest.er1
16367 ac_status=$?
16368 grep -v '^ *+' conftest.er1 >conftest.err
16369 rm -f conftest.er1
16370 cat conftest.err >&5
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); } &&
16373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16375 (eval $ac_try) 2>&5
16376 ac_status=$?
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); }; } &&
16379 { ac_try='test -s conftest.$ac_objext'
16380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381 (eval $ac_try) 2>&5
16382 ac_status=$?
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; }; then
16385 eval "$as_ac_Header=yes"
16386else
16387 echo "$as_me: failed program was:" >&5
16388sed 's/^/| /' conftest.$ac_ext >&5
16389
16390eval "$as_ac_Header=no"
16391fi
16392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16393fi
16394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16396if test `eval echo '${'$as_ac_Header'}'` = yes; then
16397 cat >>confdefs.h <<_ACEOF
16398#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16399_ACEOF
16400
16401fi
16402
16403done
16404
16405
16406
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016407echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
16408echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
16409if test "${ac_cv_c_ipx_gnu+set}" = set; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16411else
16412 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016413/* confdefs.h. */
16414_ACEOF
16415cat confdefs.h >>conftest.$ac_ext
16416cat >>conftest.$ac_ext <<_ACEOF
16417/* end confdefs.h. */
16418#include <sys/types.h>
16419 #ifdef HAVE_SYS_SOCKET_H
16420 # include <sys/socket.h>
16421 #endif
16422 #include <netipx/ipx.h>
16423int
16424main ()
16425{
16426((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16427 ;
16428 return 0;
16429}
16430_ACEOF
16431rm -f conftest.$ac_objext
16432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016433 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016434 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016435 grep -v '^ *+' conftest.er1 >conftest.err
16436 rm -f conftest.er1
16437 cat conftest.err >&5
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; } &&
16446 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; }; then
16452 ac_cv_c_ipx_gnu="yes"
16453else
16454 echo "$as_me: failed program was:" >&5
16455sed 's/^/| /' conftest.$ac_ext >&5
16456
16457ac_cv_c_ipx_gnu="no"
16458fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016460
16461fi
16462echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
16463echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
16464if test "$ac_cv_c_ipx_gnu" = "yes"
16465then
16466
16467cat >>confdefs.h <<\_ACEOF
16468#define HAVE_IPX_GNU 1
16469_ACEOF
16470
16471fi
16472
16473if test "$ac_cv_c_ipx_gnu" = "no"
16474then
16475 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
16476echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
16477if test "${ac_cv_c_ipx_linux+set}" = set; then
16478 echo $ECHO_N "(cached) $ECHO_C" >&6
16479else
16480 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016481/* confdefs.h. */
16482_ACEOF
16483cat confdefs.h >>conftest.$ac_ext
16484cat >>conftest.$ac_ext <<_ACEOF
16485/* end confdefs.h. */
16486#include <sys/types.h>
16487 #ifdef HAVE_SYS_SOCKET_H
16488 # include <sys/socket.h>
16489 #endif
16490 #include <asm/types.h>
16491 #include <linux/ipx.h>
16492int
16493main ()
16494{
16495((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16496 ;
16497 return 0;
16498}
16499_ACEOF
16500rm -f conftest.$ac_objext
16501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016502 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016503 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016504 grep -v '^ *+' conftest.er1 >conftest.err
16505 rm -f conftest.er1
16506 cat conftest.err >&5
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511 (eval $ac_try) 2>&5
16512 ac_status=$?
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; } &&
16515 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16517 (eval $ac_try) 2>&5
16518 ac_status=$?
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); }; }; then
16521 ac_cv_c_ipx_linux="yes"
16522else
16523 echo "$as_me: failed program was:" >&5
16524sed 's/^/| /' conftest.$ac_ext >&5
16525
16526ac_cv_c_ipx_linux="no"
16527fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016529
16530fi
16531echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
16532echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
16533 if test "$ac_cv_c_ipx_linux" = "yes"
16534 then
16535
16536cat >>confdefs.h <<\_ACEOF
16537#define HAVE_IPX_LINUX 1
16538_ACEOF
16539
16540 fi
16541fi
16542
16543
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016544echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016545echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16546if test "${ac_cv_c_const+set}" = set; then
16547 echo $ECHO_N "(cached) $ECHO_C" >&6
16548else
16549 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016550/* confdefs.h. */
16551_ACEOF
16552cat confdefs.h >>conftest.$ac_ext
16553cat >>conftest.$ac_ext <<_ACEOF
16554/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016555
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016556int
16557main ()
16558{
16559/* FIXME: Include the comments suggested by Paul. */
16560#ifndef __cplusplus
16561 /* Ultrix mips cc rejects this. */
16562 typedef int charset[2];
16563 const charset x;
16564 /* SunOS 4.1.1 cc rejects this. */
16565 char const *const *ccp;
16566 char **p;
16567 /* NEC SVR4.0.2 mips cc rejects this. */
16568 struct point {int x, y;};
16569 static struct point const zero = {0,0};
16570 /* AIX XL C 1.02.0.0 rejects this.
16571 It does not let you subtract one const X* pointer from another in
16572 an arm of an if-expression whose if-part is not a constant
16573 expression */
16574 const char *g = "string";
16575 ccp = &g + (g ? g-g : 0);
16576 /* HPUX 7.0 cc rejects these. */
16577 ++ccp;
16578 p = (char**) ccp;
16579 ccp = (char const *const *) p;
16580 { /* SCO 3.2v4 cc rejects this. */
16581 char *t;
16582 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016583
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016584 *t++ = 0;
16585 }
16586 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16587 int x[] = {25, 17};
16588 const int *foo = &x[0];
16589 ++foo;
16590 }
16591 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16592 typedef const int *iptr;
16593 iptr p = 0;
16594 ++p;
16595 }
16596 { /* AIX XL C 1.02.0.0 rejects this saying
16597 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16598 struct s { int j; const int *ap[3]; };
16599 struct s *b; b->j = 5;
16600 }
16601 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16602 const int foo = 10;
16603 }
16604#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016605
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016606 ;
16607 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016608}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016609_ACEOF
16610rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016612 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016613 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016614 grep -v '^ *+' conftest.er1 >conftest.err
16615 rm -f conftest.er1
16616 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016618 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621 (eval $ac_try) 2>&5
16622 ac_status=$?
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; } &&
16625 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016627 (eval $ac_try) 2>&5
16628 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016630 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016631 ac_cv_c_const=yes
16632else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016633 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016634sed 's/^/| /' conftest.$ac_ext >&5
16635
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016636ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016637fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016639fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016640echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016641echo "${ECHO_T}$ac_cv_c_const" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016642if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016643
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016644cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016645#define const
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016646_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016647
16648fi
16649
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016650echo "$as_me:$LINENO: checking for inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016651echo $ECHO_N "checking for inline... $ECHO_C" >&6
16652if test "${ac_cv_c_inline+set}" = set; then
16653 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000016654else
16655 ac_cv_c_inline=no
16656for ac_kw in inline __inline__ __inline; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016657 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016658/* confdefs.h. */
16659_ACEOF
16660cat confdefs.h >>conftest.$ac_ext
16661cat >>conftest.$ac_ext <<_ACEOF
16662/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016663#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016664typedef int foo_t;
16665static $ac_kw foo_t static_foo () {return 0; }
16666$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016667#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000016668
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016669_ACEOF
16670rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016672 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016673 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016674 grep -v '^ *+' conftest.er1 >conftest.err
16675 rm -f conftest.er1
16676 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016678 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; } &&
16685 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016687 (eval $ac_try) 2>&5
16688 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016690 (exit $ac_status); }; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000016691 ac_cv_c_inline=$ac_kw; break
16692else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016693 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016694sed 's/^/| /' conftest.$ac_ext >&5
16695
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000016696fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000016698done
16699
16700fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016701echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016702echo "${ECHO_T}$ac_cv_c_inline" >&6
Alexandre Julliard875927f2004-01-02 01:55:29 +000016703
16704
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016705case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000016706 inline | yes) ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000016707 *)
16708 case $ac_cv_c_inline in
16709 no) ac_val=;;
16710 *) ac_val=$ac_cv_c_inline;;
16711 esac
16712 cat >>confdefs.h <<_ACEOF
16713#ifndef __cplusplus
16714#define inline $ac_val
16715#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016716_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000016717 ;;
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000016718esac
16719
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016720echo "$as_me:$LINENO: checking for mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016721echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
16722if test "${ac_cv_type_mode_t+set}" = set; then
16723 echo $ECHO_N "(cached) $ECHO_C" >&6
16724else
16725 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016726/* confdefs.h. */
16727_ACEOF
16728cat confdefs.h >>conftest.$ac_ext
16729cat >>conftest.$ac_ext <<_ACEOF
16730/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016731$ac_includes_default
16732int
16733main ()
16734{
16735if ((mode_t *) 0)
16736 return 0;
16737if (sizeof (mode_t))
16738 return 0;
16739 ;
16740 return 0;
16741}
16742_ACEOF
16743rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016745 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016746 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016747 grep -v '^ *+' conftest.er1 >conftest.err
16748 rm -f conftest.er1
16749 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016751 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754 (eval $ac_try) 2>&5
16755 ac_status=$?
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; } &&
16758 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016760 (eval $ac_try) 2>&5
16761 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016763 (exit $ac_status); }; }; then
16764 ac_cv_type_mode_t=yes
16765else
16766 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016767sed 's/^/| /' conftest.$ac_ext >&5
16768
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016769ac_cv_type_mode_t=no
16770fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016772fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016773echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016774echo "${ECHO_T}$ac_cv_type_mode_t" >&6
16775if test $ac_cv_type_mode_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016776
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016777cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000016778#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016779_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016780
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016781
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000016782fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016783echo "$as_me:$LINENO: checking for off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016784echo $ECHO_N "checking for off_t... $ECHO_C" >&6
16785if test "${ac_cv_type_off_t+set}" = set; then
16786 echo $ECHO_N "(cached) $ECHO_C" >&6
16787else
16788 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016789/* confdefs.h. */
16790_ACEOF
16791cat confdefs.h >>conftest.$ac_ext
16792cat >>conftest.$ac_ext <<_ACEOF
16793/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016794$ac_includes_default
16795int
16796main ()
16797{
16798if ((off_t *) 0)
16799 return 0;
16800if (sizeof (off_t))
16801 return 0;
16802 ;
16803 return 0;
16804}
16805_ACEOF
16806rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016808 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016809 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016810 grep -v '^ *+' conftest.er1 >conftest.err
16811 rm -f conftest.er1
16812 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016814 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817 (eval $ac_try) 2>&5
16818 ac_status=$?
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; } &&
16821 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016823 (eval $ac_try) 2>&5
16824 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016826 (exit $ac_status); }; }; then
16827 ac_cv_type_off_t=yes
16828else
16829 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016830sed 's/^/| /' conftest.$ac_ext >&5
16831
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016832ac_cv_type_off_t=no
16833fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016835fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016836echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016837echo "${ECHO_T}$ac_cv_type_off_t" >&6
16838if test $ac_cv_type_off_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016839
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016840cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000016841#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016842_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016843
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016844
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000016845fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016846echo "$as_me:$LINENO: checking for pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016847echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16848if test "${ac_cv_type_pid_t+set}" = set; then
16849 echo $ECHO_N "(cached) $ECHO_C" >&6
16850else
16851 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016852/* confdefs.h. */
16853_ACEOF
16854cat confdefs.h >>conftest.$ac_ext
16855cat >>conftest.$ac_ext <<_ACEOF
16856/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016857$ac_includes_default
16858int
16859main ()
16860{
16861if ((pid_t *) 0)
16862 return 0;
16863if (sizeof (pid_t))
16864 return 0;
16865 ;
16866 return 0;
16867}
16868_ACEOF
16869rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016871 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016872 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016873 grep -v '^ *+' conftest.er1 >conftest.err
16874 rm -f conftest.er1
16875 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016877 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880 (eval $ac_try) 2>&5
16881 ac_status=$?
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; } &&
16884 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016886 (eval $ac_try) 2>&5
16887 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016889 (exit $ac_status); }; }; then
16890 ac_cv_type_pid_t=yes
16891else
16892 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016893sed 's/^/| /' conftest.$ac_ext >&5
16894
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016895ac_cv_type_pid_t=no
16896fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016898fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016899echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016900echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16901if test $ac_cv_type_pid_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016902
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016903cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000016904#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016905_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016906
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016907
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000016908fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016909echo "$as_me:$LINENO: checking for size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016910echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16911if test "${ac_cv_type_size_t+set}" = set; then
16912 echo $ECHO_N "(cached) $ECHO_C" >&6
16913else
16914 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016915/* confdefs.h. */
16916_ACEOF
16917cat confdefs.h >>conftest.$ac_ext
16918cat >>conftest.$ac_ext <<_ACEOF
16919/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016920$ac_includes_default
16921int
16922main ()
16923{
16924if ((size_t *) 0)
16925 return 0;
16926if (sizeof (size_t))
16927 return 0;
16928 ;
16929 return 0;
16930}
16931_ACEOF
16932rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016934 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016935 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016936 grep -v '^ *+' conftest.er1 >conftest.err
16937 rm -f conftest.er1
16938 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016940 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16944 ac_status=$?
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; } &&
16947 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016949 (eval $ac_try) 2>&5
16950 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016952 (exit $ac_status); }; }; then
16953 ac_cv_type_size_t=yes
16954else
16955 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016956sed 's/^/| /' conftest.$ac_ext >&5
16957
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016958ac_cv_type_size_t=no
16959fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016961fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016962echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016963echo "${ECHO_T}$ac_cv_type_size_t" >&6
16964if test $ac_cv_type_size_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016965
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016966cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000016967#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016968_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016969
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000016970
16971fi
16972echo "$as_me:$LINENO: checking for ssize_t" >&5
16973echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
16974if test "${ac_cv_type_ssize_t+set}" = set; then
16975 echo $ECHO_N "(cached) $ECHO_C" >&6
16976else
16977 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016978/* confdefs.h. */
16979_ACEOF
16980cat confdefs.h >>conftest.$ac_ext
16981cat >>conftest.$ac_ext <<_ACEOF
16982/* end confdefs.h. */
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000016983$ac_includes_default
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000016984int
16985main ()
16986{
16987if ((ssize_t *) 0)
16988 return 0;
16989if (sizeof (ssize_t))
16990 return 0;
16991 ;
16992 return 0;
16993}
16994_ACEOF
16995rm -f conftest.$ac_objext
16996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016997 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000016998 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016999 grep -v '^ *+' conftest.er1 >conftest.err
17000 rm -f conftest.er1
17001 cat conftest.err >&5
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; } &&
17010 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012 (eval $ac_try) 2>&5
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; }; then
17016 ac_cv_type_ssize_t=yes
17017else
17018 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017019sed 's/^/| /' conftest.$ac_ext >&5
17020
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017021ac_cv_type_ssize_t=no
17022fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017024fi
17025echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17026echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17027if test $ac_cv_type_ssize_t = yes; then
17028
17029cat >>confdefs.h <<_ACEOF
17030#define HAVE_SSIZE_T 1
17031_ACEOF
17032
17033
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017034fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017035echo "$as_me:$LINENO: checking for long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017036echo $ECHO_N "checking for long long... $ECHO_C" >&6
17037if test "${ac_cv_type_long_long+set}" = set; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17039else
17040 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017041/* confdefs.h. */
17042_ACEOF
17043cat confdefs.h >>conftest.$ac_ext
17044cat >>conftest.$ac_ext <<_ACEOF
17045/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017046$ac_includes_default
17047int
17048main ()
17049{
17050if ((long long *) 0)
17051 return 0;
17052if (sizeof (long long))
17053 return 0;
17054 ;
17055 return 0;
17056}
17057_ACEOF
17058rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017060 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017061 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017062 grep -v '^ *+' conftest.er1 >conftest.err
17063 rm -f conftest.er1
17064 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017066 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069 (eval $ac_try) 2>&5
17070 ac_status=$?
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; } &&
17073 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017075 (eval $ac_try) 2>&5
17076 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017078 (exit $ac_status); }; }; then
17079 ac_cv_type_long_long=yes
17080else
17081 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017082sed 's/^/| /' conftest.$ac_ext >&5
17083
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017084ac_cv_type_long_long=no
17085fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017087fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017088echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017089echo "${ECHO_T}$ac_cv_type_long_long" >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017090if test $ac_cv_type_long_long = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017091
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017092cat >>confdefs.h <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017093#define HAVE_LONG_LONG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017094_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000017095
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017096
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017097fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000017098echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17099echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17100if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17101 echo $ECHO_N "(cached) $ECHO_C" >&6
17102else
17103 cat >conftest.$ac_ext <<_ACEOF
17104/* confdefs.h. */
17105_ACEOF
17106cat confdefs.h >>conftest.$ac_ext
17107cat >>conftest.$ac_ext <<_ACEOF
17108/* end confdefs.h. */
17109$ac_includes_default
17110int
17111main ()
17112{
17113if ((fsblkcnt_t *) 0)
17114 return 0;
17115if (sizeof (fsblkcnt_t))
17116 return 0;
17117 ;
17118 return 0;
17119}
17120_ACEOF
17121rm -f conftest.$ac_objext
17122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17123 (eval $ac_compile) 2>conftest.er1
17124 ac_status=$?
17125 grep -v '^ *+' conftest.er1 >conftest.err
17126 rm -f conftest.er1
17127 cat conftest.err >&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
17130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132 (eval $ac_try) 2>&5
17133 ac_status=$?
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; } &&
17136 { ac_try='test -s conftest.$ac_objext'
17137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17138 (eval $ac_try) 2>&5
17139 ac_status=$?
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; }; then
17142 ac_cv_type_fsblkcnt_t=yes
17143else
17144 echo "$as_me: failed program was:" >&5
17145sed 's/^/| /' conftest.$ac_ext >&5
17146
17147ac_cv_type_fsblkcnt_t=no
17148fi
17149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17150fi
17151echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17152echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17153if test $ac_cv_type_fsblkcnt_t = yes; then
17154
17155cat >>confdefs.h <<_ACEOF
17156#define HAVE_FSBLKCNT_T 1
17157_ACEOF
17158
17159
17160fi
17161echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17162echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17163if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17164 echo $ECHO_N "(cached) $ECHO_C" >&6
17165else
17166 cat >conftest.$ac_ext <<_ACEOF
17167/* confdefs.h. */
17168_ACEOF
17169cat confdefs.h >>conftest.$ac_ext
17170cat >>conftest.$ac_ext <<_ACEOF
17171/* end confdefs.h. */
17172$ac_includes_default
17173int
17174main ()
17175{
17176if ((fsfilcnt_t *) 0)
17177 return 0;
17178if (sizeof (fsfilcnt_t))
17179 return 0;
17180 ;
17181 return 0;
17182}
17183_ACEOF
17184rm -f conftest.$ac_objext
17185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17186 (eval $ac_compile) 2>conftest.er1
17187 ac_status=$?
17188 grep -v '^ *+' conftest.er1 >conftest.err
17189 rm -f conftest.er1
17190 cat conftest.err >&5
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); } &&
17193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17196 ac_status=$?
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; } &&
17199 { ac_try='test -s conftest.$ac_objext'
17200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201 (eval $ac_try) 2>&5
17202 ac_status=$?
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; }; then
17205 ac_cv_type_fsfilcnt_t=yes
17206else
17207 echo "$as_me: failed program was:" >&5
17208sed 's/^/| /' conftest.$ac_ext >&5
17209
17210ac_cv_type_fsfilcnt_t=no
17211fi
17212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17213fi
17214echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17215echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17216if test $ac_cv_type_fsfilcnt_t = yes; then
17217
17218cat >>confdefs.h <<_ACEOF
17219#define HAVE_FSFILCNT_T 1
17220_ACEOF
17221
17222
17223fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017224
Paul Millar10a6c562004-12-07 17:19:54 +000017225echo "$as_me:$LINENO: checking for sigset_t" >&5
17226echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
17227if test "${ac_cv_type_sigset_t+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17229else
17230 cat >conftest.$ac_ext <<_ACEOF
17231/* confdefs.h. */
17232_ACEOF
17233cat confdefs.h >>conftest.$ac_ext
17234cat >>conftest.$ac_ext <<_ACEOF
17235/* end confdefs.h. */
17236#include <signal.h>
17237
17238int
17239main ()
17240{
17241if ((sigset_t *) 0)
17242 return 0;
17243if (sizeof (sigset_t))
17244 return 0;
17245 ;
17246 return 0;
17247}
17248_ACEOF
17249rm -f conftest.$ac_objext
17250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17251 (eval $ac_compile) 2>conftest.er1
17252 ac_status=$?
17253 grep -v '^ *+' conftest.er1 >conftest.err
17254 rm -f conftest.er1
17255 cat conftest.err >&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
17258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17261 ac_status=$?
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; } &&
17264 { ac_try='test -s conftest.$ac_objext'
17265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266 (eval $ac_try) 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17270 ac_cv_type_sigset_t=yes
17271else
17272 echo "$as_me: failed program was:" >&5
17273sed 's/^/| /' conftest.$ac_ext >&5
17274
17275ac_cv_type_sigset_t=no
17276fi
17277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17278fi
17279echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
17280echo "${ECHO_T}$ac_cv_type_sigset_t" >&6
17281if test $ac_cv_type_sigset_t = yes; then
17282
17283cat >>confdefs.h <<_ACEOF
17284#define HAVE_SIGSET_T 1
17285_ACEOF
17286
17287
17288fi
17289
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017290
17291echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017292echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17293if test "${wine_cv_linux_input_h+set}" = set; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017295else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017296 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017297/* confdefs.h. */
17298_ACEOF
17299cat confdefs.h >>conftest.$ac_ext
17300cat >>conftest.$ac_ext <<_ACEOF
17301/* end confdefs.h. */
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017302
17303 #include <linux/input.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017304
17305int
17306main ()
17307{
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017308
17309 int foo = EVIOCGBIT(EV_ABS,42);
17310 int bar = BTN_PINKIE;
17311 int fortytwo = 42;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017312
17313 ;
17314 return 0;
17315}
17316_ACEOF
17317rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017319 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017320 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017321 grep -v '^ *+' conftest.er1 >conftest.err
17322 rm -f conftest.er1
17323 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017325 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17329 ac_status=$?
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; } &&
17332 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017334 (eval $ac_try) 2>&5
17335 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017337 (exit $ac_status); }; }; then
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017338 wine_cv_linux_input_h=yes
17339else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017340 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017341sed 's/^/| /' conftest.$ac_ext >&5
17342
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017343wine_cv_linux_input_h=no
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017344fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017346
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017347fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017348echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017349echo "${ECHO_T}$wine_cv_linux_input_h" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017350 if test "$wine_cv_linux_input_h" = "yes"
17351 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017352
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017353cat >>confdefs.h <<\_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017354#define HAVE_CORRECT_LINUXINPUT_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017355_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017356
17357 fi
17358
Paul Millar10a6c562004-12-07 17:19:54 +000017359echo "$as_me:$LINENO: checking for sigaddset" >&5
17360echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6
17361if test "${wine_cv_have_sigaddset+set}" = set; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
17363else
17364 cat >conftest.$ac_ext <<_ACEOF
17365/* confdefs.h. */
17366_ACEOF
17367cat confdefs.h >>conftest.$ac_ext
17368cat >>conftest.$ac_ext <<_ACEOF
17369/* end confdefs.h. */
17370#include <signal.h>
17371int
17372main ()
17373{
17374sigset_t set; sigaddset(&set,SIGTERM);
17375 ;
17376 return 0;
17377}
17378_ACEOF
17379rm -f conftest.$ac_objext conftest$ac_exeext
17380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17381 (eval $ac_link) 2>conftest.er1
17382 ac_status=$?
17383 grep -v '^ *+' conftest.er1 >conftest.err
17384 rm -f conftest.er1
17385 cat conftest.err >&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); } &&
17388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17390 (eval $ac_try) 2>&5
17391 ac_status=$?
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); }; } &&
17394 { ac_try='test -s conftest$ac_exeext'
17395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396 (eval $ac_try) 2>&5
17397 ac_status=$?
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; }; then
17400 wine_cv_have_sigaddset=yes
17401else
17402 echo "$as_me: failed program was:" >&5
17403sed 's/^/| /' conftest.$ac_ext >&5
17404
17405wine_cv_have_sigaddset=no
17406fi
17407rm -f conftest.err conftest.$ac_objext \
17408 conftest$ac_exeext conftest.$ac_ext
17409fi
17410echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
17411echo "${ECHO_T}$wine_cv_have_sigaddset" >&6
17412if test "$wine_cv_have_sigaddset" = "yes"
17413then
17414
17415cat >>confdefs.h <<\_ACEOF
17416#define HAVE_SIGADDSET 1
17417_ACEOF
17418
17419fi
17420
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017421
17422echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017423echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17424if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17425 echo $ECHO_N "(cached) $ECHO_C" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000017426else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017427 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017428/* confdefs.h. */
17429_ACEOF
17430cat confdefs.h >>conftest.$ac_ext
17431cat >>conftest.$ac_ext <<_ACEOF
17432/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000017433
17434#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017435
17436int
17437main ()
17438{
Rein Klazesff7a61f2000-09-24 19:41:57 +000017439
17440 char *name=NULL;
17441 struct hostent he;
17442 struct hostent *result;
17443 char *buf=NULL;
17444 int bufsize=0;
17445 int res,errnr;
17446 char *addr=NULL;
17447 int addrlen=0;
17448 int addrtype=0;
17449 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17450 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017451
17452 ;
17453 return 0;
17454}
17455_ACEOF
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000017456rm -f conftest.$ac_objext conftest$ac_exeext
17457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17458 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017459 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017460 grep -v '^ *+' conftest.er1 >conftest.err
17461 rm -f conftest.er1
17462 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017464 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467 (eval $ac_try) 2>&5
17468 ac_status=$?
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); }; } &&
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000017471 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017473 (eval $ac_try) 2>&5
17474 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017476 (exit $ac_status); }; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +000017477 wine_cv_linux_gethostbyname_r_6=yes
17478else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017479 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017480sed 's/^/| /' conftest.$ac_ext >&5
17481
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017482wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000017483
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017484fi
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000017485rm -f conftest.err conftest.$ac_objext \
17486 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017487
17488fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017489echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017490echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000017491 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17492 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017493
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017494cat >>confdefs.h <<\_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000017495#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017496_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000017497
17498 fi
17499
Marcus Meissner028e9a11999-08-04 15:07:56 +000017500if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017501then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017502 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017503echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
17504if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17505 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017506else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017507 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017508/* confdefs.h. */
17509_ACEOF
17510cat confdefs.h >>conftest.$ac_ext
17511cat >>conftest.$ac_ext <<_ACEOF
17512/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017513
Marcus Meissner028e9a11999-08-04 15:07:56 +000017514 #include <sys/ioctl.h>
17515 #include <linux/joystick.h>
17516
17517 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000017518 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17519 #error "no 2.2 header"
17520 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017521
17522int
17523main ()
17524{
Marcus Meissner028e9a11999-08-04 15:07:56 +000017525/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017526 ;
17527 return 0;
17528}
17529_ACEOF
17530rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017532 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017533 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017534 grep -v '^ *+' conftest.er1 >conftest.err
17535 rm -f conftest.er1
17536 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017538 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17542 ac_status=$?
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; } &&
17545 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017547 (eval $ac_try) 2>&5
17548 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017550 (exit $ac_status); }; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +000017551 wine_cv_linux_joystick_22_api=yes
17552else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017553 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017554sed 's/^/| /' conftest.$ac_ext >&5
17555
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017556wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000017557fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000017559
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017560fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017561echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017562echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
Rein Klazes87d224a2000-04-24 17:33:49 +000017563 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000017564 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017565
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017566cat >>confdefs.h <<\_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000017567#define HAVE_LINUX_22_JOYSTICK_API 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017568_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000017569
17570 fi
17571fi
17572
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017573
Marcus Meissner028e9a11999-08-04 15:07:56 +000017574if test "$ac_cv_header_sys_vfs_h" = "yes"
17575then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017576 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017577echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
17578if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
17579 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner028e9a11999-08-04 15:07:56 +000017580else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017581 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017582/* confdefs.h. */
17583_ACEOF
17584cat confdefs.h >>conftest.$ac_ext
17585cat >>conftest.$ac_ext <<_ACEOF
17586/* end confdefs.h. */
Marcus Meissner028e9a11999-08-04 15:07:56 +000017587
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017588 #include <sys/types.h>
17589 #ifdef HAVE_SYS_PARAM_H
17590 # include <sys/param.h>
17591 #endif
17592 #include <sys/vfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017593
17594int
17595main ()
17596{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017597
17598 struct statfs stfs;
17599
17600 memset(&stfs,0,sizeof(stfs));
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017601
17602 ;
17603 return 0;
17604}
17605_ACEOF
17606rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017608 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017609 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017610 grep -v '^ *+' conftest.er1 >conftest.err
17611 rm -f conftest.er1
17612 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017614 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17617 (eval $ac_try) 2>&5
17618 ac_status=$?
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); }; } &&
17621 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017623 (eval $ac_try) 2>&5
17624 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017626 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017627 wine_cv_sys_vfs_has_statfs=yes
17628else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017629 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017630sed 's/^/| /' conftest.$ac_ext >&5
17631
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017632wine_cv_sys_vfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017633
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017634fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017636
17637fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017638echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017639echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017640 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
17641 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017642
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017643cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017644#define STATFS_DEFINED_BY_SYS_VFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017645_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017646
17647 fi
17648fi
17649
17650if test "$ac_cv_header_sys_statfs_h" = "yes"
17651then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017652 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017653echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
17654if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
17655 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017656else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017657 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017658/* confdefs.h. */
17659_ACEOF
17660cat confdefs.h >>conftest.$ac_ext
17661cat >>conftest.$ac_ext <<_ACEOF
17662/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017663
17664 #include <sys/types.h>
17665 #ifdef HAVE_SYS_PARAM_H
17666 # include <sys/param.h>
17667 #endif
17668 #include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017669
17670int
17671main ()
17672{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017673
17674 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017675
17676 ;
17677 return 0;
17678}
17679_ACEOF
17680rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017682 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017683 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017684 grep -v '^ *+' conftest.er1 >conftest.err
17685 rm -f conftest.er1
17686 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017688 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17692 ac_status=$?
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; } &&
17695 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017697 (eval $ac_try) 2>&5
17698 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017700 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017701 wine_cv_sys_statfs_has_statfs=yes
17702else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017703 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017704sed 's/^/| /' conftest.$ac_ext >&5
17705
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017706wine_cv_sys_statfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017707
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017708fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017710
17711fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017712echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017713echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017714 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
17715 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017716
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017717cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017718#define STATFS_DEFINED_BY_SYS_STATFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017719_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017720
17721 fi
17722fi
17723
17724if test "$ac_cv_header_sys_mount_h" = "yes"
17725then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017726 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017727echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
17728if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
17729 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017730else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017731 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017732/* confdefs.h. */
17733_ACEOF
17734cat confdefs.h >>conftest.$ac_ext
17735cat >>conftest.$ac_ext <<_ACEOF
17736/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017737
17738 #include <sys/types.h>
17739 #ifdef HAVE_SYS_PARAM_H
17740 # include <sys/param.h>
17741 #endif
17742 #include <sys/mount.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017743
17744int
17745main ()
17746{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017747
17748 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017749
17750 ;
17751 return 0;
17752}
17753_ACEOF
17754rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017756 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017757 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017758 grep -v '^ *+' conftest.er1 >conftest.err
17759 rm -f conftest.er1
17760 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017762 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765 (eval $ac_try) 2>&5
17766 ac_status=$?
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; } &&
17769 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017771 (eval $ac_try) 2>&5
17772 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017774 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017775 wine_cv_sys_mount_has_statfs=yes
17776else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017777 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017778sed 's/^/| /' conftest.$ac_ext >&5
17779
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017780wine_cv_sys_mount_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017781
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017782fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017784
17785fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017786echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017787echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017788 if test "$wine_cv_sys_mount_has_statfs" = "yes"
17789 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017790
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017791cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017792#define STATFS_DEFINED_BY_SYS_MOUNT 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017793_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017794
17795 fi
17796fi
17797
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017798
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000017799echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
17800echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
17801if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017802 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017803else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017804 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017805/* confdefs.h. */
17806_ACEOF
17807cat confdefs.h >>conftest.$ac_ext
17808cat >>conftest.$ac_ext <<_ACEOF
17809/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017810#include <sys/types.h>
17811#ifdef HAVE_SYS_PARAM_H
17812# include <sys/param.h>
17813#endif
17814#ifdef STATFS_DEFINED_BY_SYS_MOUNT
17815# include <sys/mount.h>
17816#else
17817# ifdef STATFS_DEFINED_BY_SYS_VFS
17818# include <sys/vfs.h>
17819# else
17820# ifdef STATFS_DEFINED_BY_SYS_STATFS
17821# include <sys/statfs.h>
17822# endif
17823# endif
17824#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000017825
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017826int
17827main ()
17828{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000017829static struct statfs ac_aggr;
17830if (ac_aggr.f_bfree)
17831return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017832 ;
17833 return 0;
17834}
17835_ACEOF
17836rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017838 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017839 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017840 grep -v '^ *+' conftest.er1 >conftest.err
17841 rm -f conftest.er1
17842 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017844 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847 (eval $ac_try) 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; } &&
17851 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017853 (eval $ac_try) 2>&5
17854 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017856 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000017857 ac_cv_member_struct_statfs_f_bfree=yes
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017858else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017859 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017860sed 's/^/| /' conftest.$ac_ext >&5
17861
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000017862cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000017863/* confdefs.h. */
17864_ACEOF
17865cat confdefs.h >>conftest.$ac_ext
17866cat >>conftest.$ac_ext <<_ACEOF
17867/* end confdefs.h. */
17868#include <sys/types.h>
17869#ifdef HAVE_SYS_PARAM_H
17870# include <sys/param.h>
17871#endif
17872#ifdef STATFS_DEFINED_BY_SYS_MOUNT
17873# include <sys/mount.h>
17874#else
17875# ifdef STATFS_DEFINED_BY_SYS_VFS
17876# include <sys/vfs.h>
17877# else
17878# ifdef STATFS_DEFINED_BY_SYS_STATFS
17879# include <sys/statfs.h>
17880# endif
17881# endif
17882#endif
17883
17884int
17885main ()
17886{
17887static struct statfs ac_aggr;
17888if (sizeof ac_aggr.f_bfree)
17889return 0;
17890 ;
17891 return 0;
17892}
17893_ACEOF
17894rm -f conftest.$ac_objext
17895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017896 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000017897 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017898 grep -v '^ *+' conftest.er1 >conftest.err
17899 rm -f conftest.er1
17900 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000017901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17906 ac_status=$?
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; } &&
17909 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000017910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911 (eval $ac_try) 2>&5
17912 ac_status=$?
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; }; then
17915 ac_cv_member_struct_statfs_f_bfree=yes
17916else
17917 echo "$as_me: failed program was:" >&5
17918sed 's/^/| /' conftest.$ac_ext >&5
17919
17920ac_cv_member_struct_statfs_f_bfree=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017921fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017923fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000017925fi
17926echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
17927echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
17928if test $ac_cv_member_struct_statfs_f_bfree = yes; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017929
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000017930cat >>confdefs.h <<_ACEOF
17931#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017932_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017933
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000017934
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017935fi
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000017936echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
17937echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
17938if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017939 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000017940else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017941 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017942/* confdefs.h. */
17943_ACEOF
17944cat confdefs.h >>conftest.$ac_ext
17945cat >>conftest.$ac_ext <<_ACEOF
17946/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017947#include <sys/types.h>
17948#ifdef HAVE_SYS_PARAM_H
17949# include <sys/param.h>
17950#endif
17951#ifdef STATFS_DEFINED_BY_SYS_MOUNT
17952# include <sys/mount.h>
17953#else
17954# ifdef STATFS_DEFINED_BY_SYS_VFS
17955# include <sys/vfs.h>
17956# else
17957# ifdef STATFS_DEFINED_BY_SYS_STATFS
17958# include <sys/statfs.h>
17959# endif
17960# endif
17961#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000017962
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017963int
17964main ()
17965{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000017966static struct statfs ac_aggr;
17967if (ac_aggr.f_bavail)
17968return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017969 ;
17970 return 0;
17971}
17972_ACEOF
17973rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017975 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017976 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017977 grep -v '^ *+' conftest.er1 >conftest.err
17978 rm -f conftest.er1
17979 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017981 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984 (eval $ac_try) 2>&5
17985 ac_status=$?
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); }; } &&
17988 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017990 (eval $ac_try) 2>&5
17991 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017993 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000017994 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000017995else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017996 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017997sed 's/^/| /' conftest.$ac_ext >&5
17998
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000017999cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018000/* confdefs.h. */
18001_ACEOF
18002cat confdefs.h >>conftest.$ac_ext
18003cat >>conftest.$ac_ext <<_ACEOF
18004/* end confdefs.h. */
Alexandre Julliard829fe321998-07-26 14:27:39 +000018005#include <sys/types.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018006#ifdef HAVE_SYS_PARAM_H
18007# include <sys/param.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000018008#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018009#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18010# include <sys/mount.h>
18011#else
18012# ifdef STATFS_DEFINED_BY_SYS_VFS
18013# include <sys/vfs.h>
18014# else
18015# ifdef STATFS_DEFINED_BY_SYS_STATFS
18016# include <sys/statfs.h>
18017# endif
18018# endif
18019#endif
18020
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018021int
18022main ()
18023{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018024static struct statfs ac_aggr;
18025if (sizeof ac_aggr.f_bavail)
18026return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018027 ;
18028 return 0;
18029}
18030_ACEOF
18031rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018033 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018034 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018035 grep -v '^ *+' conftest.er1 >conftest.err
18036 rm -f conftest.er1
18037 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018039 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18042 (eval $ac_try) 2>&5
18043 ac_status=$?
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; } &&
18046 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018048 (eval $ac_try) 2>&5
18049 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018051 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018052 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliard829fe321998-07-26 14:27:39 +000018053else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018054 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018055sed 's/^/| /' conftest.$ac_ext >&5
18056
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018057ac_cv_member_struct_statfs_f_bavail=no
Alexandre Julliard829fe321998-07-26 14:27:39 +000018058fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard829fe321998-07-26 14:27:39 +000018060fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall09da9662001-07-08 22:30:50 +000018062fi
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018063echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18064echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18065if test $ac_cv_member_struct_statfs_f_bavail = yes; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000018066
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018067cat >>confdefs.h <<_ACEOF
18068#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018069_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000018070
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018071
Patrik Stridvall09da9662001-07-08 22:30:50 +000018072fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000018073echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18074echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18075if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18077else
18078 cat >conftest.$ac_ext <<_ACEOF
18079/* confdefs.h. */
18080_ACEOF
18081cat confdefs.h >>conftest.$ac_ext
18082cat >>conftest.$ac_ext <<_ACEOF
18083/* end confdefs.h. */
18084#include <sys/types.h>
18085#ifdef HAVE_SYS_PARAM_H
18086# include <sys/param.h>
18087#endif
18088#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18089# include <sys/mount.h>
18090#else
18091# ifdef STATFS_DEFINED_BY_SYS_VFS
18092# include <sys/vfs.h>
18093# else
18094# ifdef STATFS_DEFINED_BY_SYS_STATFS
18095# include <sys/statfs.h>
18096# endif
18097# endif
18098#endif
18099
18100int
18101main ()
18102{
18103static struct statfs ac_aggr;
18104if (ac_aggr.f_frsize)
18105return 0;
18106 ;
18107 return 0;
18108}
18109_ACEOF
18110rm -f conftest.$ac_objext
18111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18112 (eval $ac_compile) 2>conftest.er1
18113 ac_status=$?
18114 grep -v '^ *+' conftest.er1 >conftest.err
18115 rm -f conftest.er1
18116 cat conftest.err >&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } &&
18119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18122 ac_status=$?
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; } &&
18125 { ac_try='test -s conftest.$ac_objext'
18126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127 (eval $ac_try) 2>&5
18128 ac_status=$?
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; }; then
18131 ac_cv_member_struct_statfs_f_frsize=yes
18132else
18133 echo "$as_me: failed program was:" >&5
18134sed 's/^/| /' conftest.$ac_ext >&5
18135
18136cat >conftest.$ac_ext <<_ACEOF
18137/* confdefs.h. */
18138_ACEOF
18139cat confdefs.h >>conftest.$ac_ext
18140cat >>conftest.$ac_ext <<_ACEOF
18141/* end confdefs.h. */
18142#include <sys/types.h>
18143#ifdef HAVE_SYS_PARAM_H
18144# include <sys/param.h>
18145#endif
18146#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18147# include <sys/mount.h>
18148#else
18149# ifdef STATFS_DEFINED_BY_SYS_VFS
18150# include <sys/vfs.h>
18151# else
18152# ifdef STATFS_DEFINED_BY_SYS_STATFS
18153# include <sys/statfs.h>
18154# endif
18155# endif
18156#endif
18157
18158int
18159main ()
18160{
18161static struct statfs ac_aggr;
18162if (sizeof ac_aggr.f_frsize)
18163return 0;
18164 ;
18165 return 0;
18166}
18167_ACEOF
18168rm -f conftest.$ac_objext
18169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18170 (eval $ac_compile) 2>conftest.er1
18171 ac_status=$?
18172 grep -v '^ *+' conftest.er1 >conftest.err
18173 rm -f conftest.er1
18174 cat conftest.err >&5
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); } &&
18177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179 (eval $ac_try) 2>&5
18180 ac_status=$?
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); }; } &&
18183 { ac_try='test -s conftest.$ac_objext'
18184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185 (eval $ac_try) 2>&5
18186 ac_status=$?
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; }; then
18189 ac_cv_member_struct_statfs_f_frsize=yes
18190else
18191 echo "$as_me: failed program was:" >&5
18192sed 's/^/| /' conftest.$ac_ext >&5
18193
18194ac_cv_member_struct_statfs_f_frsize=no
18195fi
18196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18197fi
18198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18199fi
18200echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18201echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18202if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18203
18204cat >>confdefs.h <<_ACEOF
18205#define HAVE_STRUCT_STATFS_F_FRSIZE 1
18206_ACEOF
18207
18208
18209fi
18210echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18211echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18212if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18213 echo $ECHO_N "(cached) $ECHO_C" >&6
18214else
18215 cat >conftest.$ac_ext <<_ACEOF
18216/* confdefs.h. */
18217_ACEOF
18218cat confdefs.h >>conftest.$ac_ext
18219cat >>conftest.$ac_ext <<_ACEOF
18220/* end confdefs.h. */
18221#include <sys/types.h>
18222#ifdef HAVE_SYS_PARAM_H
18223# include <sys/param.h>
18224#endif
18225#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18226# include <sys/mount.h>
18227#else
18228# ifdef STATFS_DEFINED_BY_SYS_VFS
18229# include <sys/vfs.h>
18230# else
18231# ifdef STATFS_DEFINED_BY_SYS_STATFS
18232# include <sys/statfs.h>
18233# endif
18234# endif
18235#endif
18236
18237int
18238main ()
18239{
18240static struct statfs ac_aggr;
18241if (ac_aggr.f_ffree)
18242return 0;
18243 ;
18244 return 0;
18245}
18246_ACEOF
18247rm -f conftest.$ac_objext
18248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18249 (eval $ac_compile) 2>conftest.er1
18250 ac_status=$?
18251 grep -v '^ *+' conftest.er1 >conftest.err
18252 rm -f conftest.er1
18253 cat conftest.err >&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); } &&
18256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258 (eval $ac_try) 2>&5
18259 ac_status=$?
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; } &&
18262 { ac_try='test -s conftest.$ac_objext'
18263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264 (eval $ac_try) 2>&5
18265 ac_status=$?
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; }; then
18268 ac_cv_member_struct_statfs_f_ffree=yes
18269else
18270 echo "$as_me: failed program was:" >&5
18271sed 's/^/| /' conftest.$ac_ext >&5
18272
18273cat >conftest.$ac_ext <<_ACEOF
18274/* confdefs.h. */
18275_ACEOF
18276cat confdefs.h >>conftest.$ac_ext
18277cat >>conftest.$ac_ext <<_ACEOF
18278/* end confdefs.h. */
18279#include <sys/types.h>
18280#ifdef HAVE_SYS_PARAM_H
18281# include <sys/param.h>
18282#endif
18283#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18284# include <sys/mount.h>
18285#else
18286# ifdef STATFS_DEFINED_BY_SYS_VFS
18287# include <sys/vfs.h>
18288# else
18289# ifdef STATFS_DEFINED_BY_SYS_STATFS
18290# include <sys/statfs.h>
18291# endif
18292# endif
18293#endif
18294
18295int
18296main ()
18297{
18298static struct statfs ac_aggr;
18299if (sizeof ac_aggr.f_ffree)
18300return 0;
18301 ;
18302 return 0;
18303}
18304_ACEOF
18305rm -f conftest.$ac_objext
18306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18307 (eval $ac_compile) 2>conftest.er1
18308 ac_status=$?
18309 grep -v '^ *+' conftest.er1 >conftest.err
18310 rm -f conftest.er1
18311 cat conftest.err >&5
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); } &&
18314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18316 (eval $ac_try) 2>&5
18317 ac_status=$?
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); }; } &&
18320 { ac_try='test -s conftest.$ac_objext'
18321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18322 (eval $ac_try) 2>&5
18323 ac_status=$?
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; }; then
18326 ac_cv_member_struct_statfs_f_ffree=yes
18327else
18328 echo "$as_me: failed program was:" >&5
18329sed 's/^/| /' conftest.$ac_ext >&5
18330
18331ac_cv_member_struct_statfs_f_ffree=no
18332fi
18333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18334fi
18335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18336fi
18337echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18338echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18339if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18340
18341cat >>confdefs.h <<_ACEOF
18342#define HAVE_STRUCT_STATFS_F_FFREE 1
18343_ACEOF
18344
18345
18346fi
18347echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18348echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18349if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18350 echo $ECHO_N "(cached) $ECHO_C" >&6
18351else
18352 cat >conftest.$ac_ext <<_ACEOF
18353/* confdefs.h. */
18354_ACEOF
18355cat confdefs.h >>conftest.$ac_ext
18356cat >>conftest.$ac_ext <<_ACEOF
18357/* end confdefs.h. */
18358#include <sys/types.h>
18359#ifdef HAVE_SYS_PARAM_H
18360# include <sys/param.h>
18361#endif
18362#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18363# include <sys/mount.h>
18364#else
18365# ifdef STATFS_DEFINED_BY_SYS_VFS
18366# include <sys/vfs.h>
18367# else
18368# ifdef STATFS_DEFINED_BY_SYS_STATFS
18369# include <sys/statfs.h>
18370# endif
18371# endif
18372#endif
18373
18374int
18375main ()
18376{
18377static struct statfs ac_aggr;
18378if (ac_aggr.f_favail)
18379return 0;
18380 ;
18381 return 0;
18382}
18383_ACEOF
18384rm -f conftest.$ac_objext
18385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18386 (eval $ac_compile) 2>conftest.er1
18387 ac_status=$?
18388 grep -v '^ *+' conftest.er1 >conftest.err
18389 rm -f conftest.er1
18390 cat conftest.err >&5
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); } &&
18393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18396 ac_status=$?
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; } &&
18399 { ac_try='test -s conftest.$ac_objext'
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18402 ac_status=$?
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; }; then
18405 ac_cv_member_struct_statfs_f_favail=yes
18406else
18407 echo "$as_me: failed program was:" >&5
18408sed 's/^/| /' conftest.$ac_ext >&5
18409
18410cat >conftest.$ac_ext <<_ACEOF
18411/* confdefs.h. */
18412_ACEOF
18413cat confdefs.h >>conftest.$ac_ext
18414cat >>conftest.$ac_ext <<_ACEOF
18415/* end confdefs.h. */
18416#include <sys/types.h>
18417#ifdef HAVE_SYS_PARAM_H
18418# include <sys/param.h>
18419#endif
18420#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18421# include <sys/mount.h>
18422#else
18423# ifdef STATFS_DEFINED_BY_SYS_VFS
18424# include <sys/vfs.h>
18425# else
18426# ifdef STATFS_DEFINED_BY_SYS_STATFS
18427# include <sys/statfs.h>
18428# endif
18429# endif
18430#endif
18431
18432int
18433main ()
18434{
18435static struct statfs ac_aggr;
18436if (sizeof ac_aggr.f_favail)
18437return 0;
18438 ;
18439 return 0;
18440}
18441_ACEOF
18442rm -f conftest.$ac_objext
18443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18444 (eval $ac_compile) 2>conftest.er1
18445 ac_status=$?
18446 grep -v '^ *+' conftest.er1 >conftest.err
18447 rm -f conftest.er1
18448 cat conftest.err >&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
18451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18453 (eval $ac_try) 2>&5
18454 ac_status=$?
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; } &&
18457 { ac_try='test -s conftest.$ac_objext'
18458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18459 (eval $ac_try) 2>&5
18460 ac_status=$?
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); }; }; then
18463 ac_cv_member_struct_statfs_f_favail=yes
18464else
18465 echo "$as_me: failed program was:" >&5
18466sed 's/^/| /' conftest.$ac_ext >&5
18467
18468ac_cv_member_struct_statfs_f_favail=no
18469fi
18470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18471fi
18472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18473fi
18474echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18475echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
18476if test $ac_cv_member_struct_statfs_f_favail = yes; then
18477
18478cat >>confdefs.h <<_ACEOF
18479#define HAVE_STRUCT_STATFS_F_FAVAIL 1
18480_ACEOF
18481
18482
18483fi
Alexandre Julliardb859a682004-03-07 03:16:43 +000018484echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18485echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18486if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18487 echo $ECHO_N "(cached) $ECHO_C" >&6
18488else
18489 cat >conftest.$ac_ext <<_ACEOF
18490/* confdefs.h. */
18491_ACEOF
18492cat confdefs.h >>conftest.$ac_ext
18493cat >>conftest.$ac_ext <<_ACEOF
18494/* end confdefs.h. */
18495#include <sys/types.h>
18496#ifdef HAVE_SYS_PARAM_H
18497# include <sys/param.h>
18498#endif
18499#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18500# include <sys/mount.h>
18501#else
18502# ifdef STATFS_DEFINED_BY_SYS_VFS
18503# include <sys/vfs.h>
18504# else
18505# ifdef STATFS_DEFINED_BY_SYS_STATFS
18506# include <sys/statfs.h>
18507# endif
18508# endif
18509#endif
18510
18511int
18512main ()
18513{
18514static struct statfs ac_aggr;
18515if (ac_aggr.f_namelen)
18516return 0;
18517 ;
18518 return 0;
18519}
18520_ACEOF
18521rm -f conftest.$ac_objext
18522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18523 (eval $ac_compile) 2>conftest.er1
18524 ac_status=$?
18525 grep -v '^ *+' conftest.er1 >conftest.err
18526 rm -f conftest.er1
18527 cat conftest.err >&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } &&
18530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532 (eval $ac_try) 2>&5
18533 ac_status=$?
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; } &&
18536 { ac_try='test -s conftest.$ac_objext'
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18539 ac_status=$?
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; }; then
18542 ac_cv_member_struct_statfs_f_namelen=yes
18543else
18544 echo "$as_me: failed program was:" >&5
18545sed 's/^/| /' conftest.$ac_ext >&5
18546
18547cat >conftest.$ac_ext <<_ACEOF
18548/* confdefs.h. */
18549_ACEOF
18550cat confdefs.h >>conftest.$ac_ext
18551cat >>conftest.$ac_ext <<_ACEOF
18552/* end confdefs.h. */
18553#include <sys/types.h>
18554#ifdef HAVE_SYS_PARAM_H
18555# include <sys/param.h>
18556#endif
18557#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18558# include <sys/mount.h>
18559#else
18560# ifdef STATFS_DEFINED_BY_SYS_VFS
18561# include <sys/vfs.h>
18562# else
18563# ifdef STATFS_DEFINED_BY_SYS_STATFS
18564# include <sys/statfs.h>
18565# endif
18566# endif
18567#endif
18568
18569int
18570main ()
18571{
18572static struct statfs ac_aggr;
18573if (sizeof ac_aggr.f_namelen)
18574return 0;
18575 ;
18576 return 0;
18577}
18578_ACEOF
18579rm -f conftest.$ac_objext
18580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18581 (eval $ac_compile) 2>conftest.er1
18582 ac_status=$?
18583 grep -v '^ *+' conftest.er1 >conftest.err
18584 rm -f conftest.er1
18585 cat conftest.err >&5
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); } &&
18588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590 (eval $ac_try) 2>&5
18591 ac_status=$?
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; } &&
18594 { ac_try='test -s conftest.$ac_objext'
18595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596 (eval $ac_try) 2>&5
18597 ac_status=$?
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); }; }; then
18600 ac_cv_member_struct_statfs_f_namelen=yes
18601else
18602 echo "$as_me: failed program was:" >&5
18603sed 's/^/| /' conftest.$ac_ext >&5
18604
18605ac_cv_member_struct_statfs_f_namelen=no
18606fi
18607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18608fi
18609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18610fi
18611echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18612echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
18613if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18614
18615cat >>confdefs.h <<_ACEOF
18616#define HAVE_STRUCT_STATFS_F_NAMELEN 1
18617_ACEOF
18618
18619
18620fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000018621
18622
18623echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
18624echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
18625if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
18626 echo $ECHO_N "(cached) $ECHO_C" >&6
18627else
18628 cat >conftest.$ac_ext <<_ACEOF
18629/* confdefs.h. */
18630_ACEOF
18631cat confdefs.h >>conftest.$ac_ext
18632cat >>conftest.$ac_ext <<_ACEOF
18633/* end confdefs.h. */
18634#ifdef HAVE_SYS_STATVFS_H
18635#include <sys/statvfs.h>
18636#endif
18637
18638int
18639main ()
18640{
18641static struct statvfs ac_aggr;
18642if (ac_aggr.f_blocks)
18643return 0;
18644 ;
18645 return 0;
18646}
18647_ACEOF
18648rm -f conftest.$ac_objext
18649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18650 (eval $ac_compile) 2>conftest.er1
18651 ac_status=$?
18652 grep -v '^ *+' conftest.er1 >conftest.err
18653 rm -f conftest.er1
18654 cat conftest.err >&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } &&
18657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18659 (eval $ac_try) 2>&5
18660 ac_status=$?
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); }; } &&
18663 { ac_try='test -s conftest.$ac_objext'
18664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665 (eval $ac_try) 2>&5
18666 ac_status=$?
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); }; }; then
18669 ac_cv_member_struct_statvfs_f_blocks=yes
18670else
18671 echo "$as_me: failed program was:" >&5
18672sed 's/^/| /' conftest.$ac_ext >&5
18673
18674cat >conftest.$ac_ext <<_ACEOF
18675/* confdefs.h. */
18676_ACEOF
18677cat confdefs.h >>conftest.$ac_ext
18678cat >>conftest.$ac_ext <<_ACEOF
18679/* end confdefs.h. */
18680#ifdef HAVE_SYS_STATVFS_H
18681#include <sys/statvfs.h>
18682#endif
18683
18684int
18685main ()
18686{
18687static struct statvfs ac_aggr;
18688if (sizeof ac_aggr.f_blocks)
18689return 0;
18690 ;
18691 return 0;
18692}
18693_ACEOF
18694rm -f conftest.$ac_objext
18695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18696 (eval $ac_compile) 2>conftest.er1
18697 ac_status=$?
18698 grep -v '^ *+' conftest.er1 >conftest.err
18699 rm -f conftest.er1
18700 cat conftest.err >&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } &&
18703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705 (eval $ac_try) 2>&5
18706 ac_status=$?
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); }; } &&
18709 { ac_try='test -s conftest.$ac_objext'
18710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18711 (eval $ac_try) 2>&5
18712 ac_status=$?
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); }; }; then
18715 ac_cv_member_struct_statvfs_f_blocks=yes
18716else
18717 echo "$as_me: failed program was:" >&5
18718sed 's/^/| /' conftest.$ac_ext >&5
18719
18720ac_cv_member_struct_statvfs_f_blocks=no
18721fi
18722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18723fi
18724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18725fi
18726echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
18727echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
18728if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
18729
18730cat >>confdefs.h <<_ACEOF
18731#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
18732_ACEOF
18733
18734
18735fi
Patrik Stridvall09da9662001-07-08 22:30:50 +000018736
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018737
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018738echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
18739echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
18740if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018741 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall09da9662001-07-08 22:30:50 +000018742else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018743 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018744/* confdefs.h. */
18745_ACEOF
18746cat confdefs.h >>conftest.$ac_ext
18747cat >>conftest.$ac_ext <<_ACEOF
18748/* end confdefs.h. */
Patrik Stridvall09da9662001-07-08 22:30:50 +000018749#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000018750#ifdef HAVE_SYS_SOCKET_H
18751# include <sys/socket.h>
18752#endif
18753#ifdef HAVE_SYS_UN_H
18754# include <sys/un.h>
18755#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018756
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018757int
18758main ()
18759{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018760static struct msghdr ac_aggr;
18761if (ac_aggr.msg_accrights)
18762return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018763 ;
18764 return 0;
18765}
18766_ACEOF
18767rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018769 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018770 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018771 grep -v '^ *+' conftest.er1 >conftest.err
18772 rm -f conftest.er1
18773 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018775 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18778 (eval $ac_try) 2>&5
18779 ac_status=$?
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); }; } &&
18782 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018784 (eval $ac_try) 2>&5
18785 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018787 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018788 ac_cv_member_struct_msghdr_msg_accrights=yes
Juergen Lock2d33ab92000-02-13 16:03:29 +000018789else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018790 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018791sed 's/^/| /' conftest.$ac_ext >&5
18792
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018793cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018794/* confdefs.h. */
18795_ACEOF
18796cat confdefs.h >>conftest.$ac_ext
18797cat >>conftest.$ac_ext <<_ACEOF
18798/* end confdefs.h. */
18799#include <sys/types.h>
18800#ifdef HAVE_SYS_SOCKET_H
18801# include <sys/socket.h>
18802#endif
18803#ifdef HAVE_SYS_UN_H
18804# include <sys/un.h>
18805#endif
18806
18807int
18808main ()
18809{
18810static struct msghdr ac_aggr;
18811if (sizeof ac_aggr.msg_accrights)
18812return 0;
18813 ;
18814 return 0;
18815}
18816_ACEOF
18817rm -f conftest.$ac_objext
18818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018819 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018820 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018821 grep -v '^ *+' conftest.er1 >conftest.err
18822 rm -f conftest.er1
18823 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; } &&
18832 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18834 (eval $ac_try) 2>&5
18835 ac_status=$?
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); }; }; then
18838 ac_cv_member_struct_msghdr_msg_accrights=yes
18839else
18840 echo "$as_me: failed program was:" >&5
18841sed 's/^/| /' conftest.$ac_ext >&5
18842
18843ac_cv_member_struct_msghdr_msg_accrights=no
Juergen Lock2d33ab92000-02-13 16:03:29 +000018844fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Juergen Lock2d33ab92000-02-13 16:03:29 +000018846fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018848fi
18849echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
18850echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
18851if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
Juergen Lock2d33ab92000-02-13 16:03:29 +000018852
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018853cat >>confdefs.h <<_ACEOF
18854#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018855_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000018856
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018857
18858fi
18859echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
18860echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
18861if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
18862 echo $ECHO_N "(cached) $ECHO_C" >&6
18863else
18864 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018865/* confdefs.h. */
18866_ACEOF
18867cat confdefs.h >>conftest.$ac_ext
18868cat >>conftest.$ac_ext <<_ACEOF
18869/* end confdefs.h. */
18870#include <sys/types.h>
18871#ifdef HAVE_SYS_SOCKET_H
18872# include <sys/socket.h>
18873#endif
18874#ifdef HAVE_SYS_UN_H
18875# include <sys/un.h>
18876#endif
18877
18878int
18879main ()
18880{
18881static struct sockaddr ac_aggr;
18882if (ac_aggr.sa_len)
18883return 0;
18884 ;
18885 return 0;
18886}
18887_ACEOF
18888rm -f conftest.$ac_objext
18889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018890 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018891 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018892 grep -v '^ *+' conftest.er1 >conftest.err
18893 rm -f conftest.er1
18894 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18899 (eval $ac_try) 2>&5
18900 ac_status=$?
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); }; } &&
18903 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18905 (eval $ac_try) 2>&5
18906 ac_status=$?
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; }; then
18909 ac_cv_member_struct_sockaddr_sa_len=yes
18910else
18911 echo "$as_me: failed program was:" >&5
18912sed 's/^/| /' conftest.$ac_ext >&5
18913
18914cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018915/* confdefs.h. */
18916_ACEOF
18917cat confdefs.h >>conftest.$ac_ext
18918cat >>conftest.$ac_ext <<_ACEOF
18919/* end confdefs.h. */
18920#include <sys/types.h>
18921#ifdef HAVE_SYS_SOCKET_H
18922# include <sys/socket.h>
18923#endif
18924#ifdef HAVE_SYS_UN_H
18925# include <sys/un.h>
18926#endif
18927
18928int
18929main ()
18930{
18931static struct sockaddr ac_aggr;
18932if (sizeof ac_aggr.sa_len)
18933return 0;
18934 ;
18935 return 0;
18936}
18937_ACEOF
18938rm -f conftest.$ac_objext
18939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018940 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018941 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018942 grep -v '^ *+' conftest.er1 >conftest.err
18943 rm -f conftest.er1
18944 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18949 (eval $ac_try) 2>&5
18950 ac_status=$?
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; } &&
18953 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18955 (eval $ac_try) 2>&5
18956 ac_status=$?
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); }; }; then
18959 ac_cv_member_struct_sockaddr_sa_len=yes
18960else
18961 echo "$as_me: failed program was:" >&5
18962sed 's/^/| /' conftest.$ac_ext >&5
18963
18964ac_cv_member_struct_sockaddr_sa_len=no
18965fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018967fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018969fi
18970echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
18971echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
18972if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
18973
18974cat >>confdefs.h <<_ACEOF
18975#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18976_ACEOF
18977
18978
18979fi
18980echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
18981echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
18982if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
18983 echo $ECHO_N "(cached) $ECHO_C" >&6
18984else
18985 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018986/* confdefs.h. */
18987_ACEOF
18988cat confdefs.h >>conftest.$ac_ext
18989cat >>conftest.$ac_ext <<_ACEOF
18990/* end confdefs.h. */
18991#include <sys/types.h>
18992#ifdef HAVE_SYS_SOCKET_H
18993# include <sys/socket.h>
18994#endif
18995#ifdef HAVE_SYS_UN_H
18996# include <sys/un.h>
18997#endif
18998
18999int
19000main ()
19001{
19002static struct sockaddr_un ac_aggr;
19003if (ac_aggr.sun_len)
19004return 0;
19005 ;
19006 return 0;
19007}
19008_ACEOF
19009rm -f conftest.$ac_objext
19010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019011 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019012 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019013 grep -v '^ *+' conftest.er1 >conftest.err
19014 rm -f conftest.er1
19015 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19020 (eval $ac_try) 2>&5
19021 ac_status=$?
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; } &&
19024 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19026 (eval $ac_try) 2>&5
19027 ac_status=$?
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); }; }; then
19030 ac_cv_member_struct_sockaddr_un_sun_len=yes
19031else
19032 echo "$as_me: failed program was:" >&5
19033sed 's/^/| /' conftest.$ac_ext >&5
19034
19035cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019036/* confdefs.h. */
19037_ACEOF
19038cat confdefs.h >>conftest.$ac_ext
19039cat >>conftest.$ac_ext <<_ACEOF
19040/* end confdefs.h. */
19041#include <sys/types.h>
19042#ifdef HAVE_SYS_SOCKET_H
19043# include <sys/socket.h>
19044#endif
19045#ifdef HAVE_SYS_UN_H
19046# include <sys/un.h>
19047#endif
19048
19049int
19050main ()
19051{
19052static struct sockaddr_un ac_aggr;
19053if (sizeof ac_aggr.sun_len)
19054return 0;
19055 ;
19056 return 0;
19057}
19058_ACEOF
19059rm -f conftest.$ac_objext
19060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019061 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019062 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019063 grep -v '^ *+' conftest.er1 >conftest.err
19064 rm -f conftest.er1
19065 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19070 (eval $ac_try) 2>&5
19071 ac_status=$?
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); }; } &&
19074 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19076 (eval $ac_try) 2>&5
19077 ac_status=$?
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); }; }; then
19080 ac_cv_member_struct_sockaddr_un_sun_len=yes
19081else
19082 echo "$as_me: failed program was:" >&5
19083sed 's/^/| /' conftest.$ac_ext >&5
19084
19085ac_cv_member_struct_sockaddr_un_sun_len=no
19086fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019088fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019090fi
19091echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19092echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19093if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19094
19095cat >>confdefs.h <<_ACEOF
19096#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19097_ACEOF
19098
19099
Juergen Lock2d33ab92000-02-13 16:03:29 +000019100fi
19101
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019102
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000019103echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
19104echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6
19105if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
19106 echo $ECHO_N "(cached) $ECHO_C" >&6
19107else
19108 cat >conftest.$ac_ext <<_ACEOF
19109/* confdefs.h. */
19110_ACEOF
19111cat confdefs.h >>conftest.$ac_ext
19112cat >>conftest.$ac_ext <<_ACEOF
19113/* end confdefs.h. */
19114#include <sys/types.h>
19115#ifdef HAVE_SCSI_SG_H
19116#include <scsi/sg.h>
19117#endif
19118
19119int
19120main ()
19121{
19122static scsireq_t ac_aggr;
19123if (ac_aggr.cmd)
19124return 0;
19125 ;
19126 return 0;
19127}
19128_ACEOF
19129rm -f conftest.$ac_objext
19130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19131 (eval $ac_compile) 2>conftest.er1
19132 ac_status=$?
19133 grep -v '^ *+' conftest.er1 >conftest.err
19134 rm -f conftest.er1
19135 cat conftest.err >&5
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); } &&
19138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140 (eval $ac_try) 2>&5
19141 ac_status=$?
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; } &&
19144 { ac_try='test -s conftest.$ac_objext'
19145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19146 (eval $ac_try) 2>&5
19147 ac_status=$?
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; }; then
19150 ac_cv_member_scsireq_t_cmd=yes
19151else
19152 echo "$as_me: failed program was:" >&5
19153sed 's/^/| /' conftest.$ac_ext >&5
19154
19155cat >conftest.$ac_ext <<_ACEOF
19156/* confdefs.h. */
19157_ACEOF
19158cat confdefs.h >>conftest.$ac_ext
19159cat >>conftest.$ac_ext <<_ACEOF
19160/* end confdefs.h. */
19161#include <sys/types.h>
19162#ifdef HAVE_SCSI_SG_H
19163#include <scsi/sg.h>
19164#endif
19165
19166int
19167main ()
19168{
19169static scsireq_t ac_aggr;
19170if (sizeof ac_aggr.cmd)
19171return 0;
19172 ;
19173 return 0;
19174}
19175_ACEOF
19176rm -f conftest.$ac_objext
19177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19178 (eval $ac_compile) 2>conftest.er1
19179 ac_status=$?
19180 grep -v '^ *+' conftest.er1 >conftest.err
19181 rm -f conftest.er1
19182 cat conftest.err >&5
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); } &&
19185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19188 ac_status=$?
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; } &&
19191 { ac_try='test -s conftest.$ac_objext'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19194 ac_status=$?
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; }; then
19197 ac_cv_member_scsireq_t_cmd=yes
19198else
19199 echo "$as_me: failed program was:" >&5
19200sed 's/^/| /' conftest.$ac_ext >&5
19201
19202ac_cv_member_scsireq_t_cmd=no
19203fi
19204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19205fi
19206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19207fi
19208echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
19209echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6
19210if test $ac_cv_member_scsireq_t_cmd = yes; then
19211
19212cat >>confdefs.h <<_ACEOF
19213#define HAVE_SCSIREQ_T_CMD 1
19214_ACEOF
19215
19216
19217fi
19218echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
19219echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6
19220if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
19221 echo $ECHO_N "(cached) $ECHO_C" >&6
19222else
19223 cat >conftest.$ac_ext <<_ACEOF
19224/* confdefs.h. */
19225_ACEOF
19226cat confdefs.h >>conftest.$ac_ext
19227cat >>conftest.$ac_ext <<_ACEOF
19228/* end confdefs.h. */
19229#include <sys/types.h>
19230#ifdef HAVE_SCSI_SG_H
19231#include <scsi/sg.h>
19232#endif
19233
19234int
19235main ()
19236{
19237static sg_io_hdr_t ac_aggr;
19238if (ac_aggr.interface_id)
19239return 0;
19240 ;
19241 return 0;
19242}
19243_ACEOF
19244rm -f conftest.$ac_objext
19245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19246 (eval $ac_compile) 2>conftest.er1
19247 ac_status=$?
19248 grep -v '^ *+' conftest.er1 >conftest.err
19249 rm -f conftest.er1
19250 cat conftest.err >&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } &&
19253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19255 (eval $ac_try) 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; } &&
19259 { ac_try='test -s conftest.$ac_objext'
19260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261 (eval $ac_try) 2>&5
19262 ac_status=$?
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; }; then
19265 ac_cv_member_sg_io_hdr_t_interface_id=yes
19266else
19267 echo "$as_me: failed program was:" >&5
19268sed 's/^/| /' conftest.$ac_ext >&5
19269
19270cat >conftest.$ac_ext <<_ACEOF
19271/* confdefs.h. */
19272_ACEOF
19273cat confdefs.h >>conftest.$ac_ext
19274cat >>conftest.$ac_ext <<_ACEOF
19275/* end confdefs.h. */
19276#include <sys/types.h>
19277#ifdef HAVE_SCSI_SG_H
19278#include <scsi/sg.h>
19279#endif
19280
19281int
19282main ()
19283{
19284static sg_io_hdr_t ac_aggr;
19285if (sizeof ac_aggr.interface_id)
19286return 0;
19287 ;
19288 return 0;
19289}
19290_ACEOF
19291rm -f conftest.$ac_objext
19292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19293 (eval $ac_compile) 2>conftest.er1
19294 ac_status=$?
19295 grep -v '^ *+' conftest.er1 >conftest.err
19296 rm -f conftest.er1
19297 cat conftest.err >&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } &&
19300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; } &&
19306 { ac_try='test -s conftest.$ac_objext'
19307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308 (eval $ac_try) 2>&5
19309 ac_status=$?
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; }; then
19312 ac_cv_member_sg_io_hdr_t_interface_id=yes
19313else
19314 echo "$as_me: failed program was:" >&5
19315sed 's/^/| /' conftest.$ac_ext >&5
19316
19317ac_cv_member_sg_io_hdr_t_interface_id=no
19318fi
19319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19320fi
19321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19322fi
19323echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
19324echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6
19325if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
19326
19327cat >>confdefs.h <<_ACEOF
19328#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
19329_ACEOF
19330
19331
19332fi
19333
19334
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019335echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19336echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19337if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19338 echo $ECHO_N "(cached) $ECHO_C" >&6
19339else
19340 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019341/* confdefs.h. */
19342_ACEOF
19343cat confdefs.h >>conftest.$ac_ext
19344cat >>conftest.$ac_ext <<_ACEOF
19345/* end confdefs.h. */
19346#include <signal.h>
19347
19348int
19349main ()
19350{
19351static siginfo_t ac_aggr;
19352if (ac_aggr.si_fd)
19353return 0;
19354 ;
19355 return 0;
19356}
19357_ACEOF
19358rm -f conftest.$ac_objext
19359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019360 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019361 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019362 grep -v '^ *+' conftest.er1 >conftest.err
19363 rm -f conftest.er1
19364 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; } &&
19373 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_member_siginfo_t_si_fd=yes
19380else
19381 echo "$as_me: failed program was:" >&5
19382sed 's/^/| /' conftest.$ac_ext >&5
19383
19384cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019385/* confdefs.h. */
19386_ACEOF
19387cat confdefs.h >>conftest.$ac_ext
19388cat >>conftest.$ac_ext <<_ACEOF
19389/* end confdefs.h. */
19390#include <signal.h>
19391
19392int
19393main ()
19394{
19395static siginfo_t ac_aggr;
19396if (sizeof ac_aggr.si_fd)
19397return 0;
19398 ;
19399 return 0;
19400}
19401_ACEOF
19402rm -f conftest.$ac_objext
19403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019404 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019405 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019406 grep -v '^ *+' conftest.er1 >conftest.err
19407 rm -f conftest.er1
19408 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413 (eval $ac_try) 2>&5
19414 ac_status=$?
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; } &&
19417 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419 (eval $ac_try) 2>&5
19420 ac_status=$?
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; }; then
19423 ac_cv_member_siginfo_t_si_fd=yes
19424else
19425 echo "$as_me: failed program was:" >&5
19426sed 's/^/| /' conftest.$ac_ext >&5
19427
19428ac_cv_member_siginfo_t_si_fd=no
19429fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019431fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019433fi
19434echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19435echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19436if test $ac_cv_member_siginfo_t_si_fd = yes; then
19437
19438cat >>confdefs.h <<_ACEOF
19439#define HAVE_SIGINFO_T_SI_FD 1
19440_ACEOF
19441
19442
19443fi
19444
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019445
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019446echo "$as_me:$LINENO: checking for struct option.name" >&5
19447echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19448if test "${ac_cv_member_struct_option_name+set}" = set; then
19449 echo $ECHO_N "(cached) $ECHO_C" >&6
19450else
19451 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019452/* confdefs.h. */
19453_ACEOF
19454cat confdefs.h >>conftest.$ac_ext
19455cat >>conftest.$ac_ext <<_ACEOF
19456/* end confdefs.h. */
19457#ifdef HAVE_GETOPT_H
19458#include <getopt.h>
19459#endif
19460
19461int
19462main ()
19463{
19464static struct option ac_aggr;
19465if (ac_aggr.name)
19466return 0;
19467 ;
19468 return 0;
19469}
19470_ACEOF
19471rm -f conftest.$ac_objext
19472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019473 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019474 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019475 grep -v '^ *+' conftest.er1 >conftest.err
19476 rm -f conftest.er1
19477 cat conftest.err >&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 (eval $ac_try) 2>&5
19483 ac_status=$?
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; } &&
19486 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19489 ac_status=$?
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; }; then
19492 ac_cv_member_struct_option_name=yes
19493else
19494 echo "$as_me: failed program was:" >&5
19495sed 's/^/| /' conftest.$ac_ext >&5
19496
19497cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019498/* confdefs.h. */
19499_ACEOF
19500cat confdefs.h >>conftest.$ac_ext
19501cat >>conftest.$ac_ext <<_ACEOF
19502/* end confdefs.h. */
19503#ifdef HAVE_GETOPT_H
19504#include <getopt.h>
19505#endif
19506
19507int
19508main ()
19509{
19510static struct option ac_aggr;
19511if (sizeof ac_aggr.name)
19512return 0;
19513 ;
19514 return 0;
19515}
19516_ACEOF
19517rm -f conftest.$ac_objext
19518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019519 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019520 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019521 grep -v '^ *+' conftest.er1 >conftest.err
19522 rm -f conftest.er1
19523 cat conftest.err >&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528 (eval $ac_try) 2>&5
19529 ac_status=$?
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; } &&
19532 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534 (eval $ac_try) 2>&5
19535 ac_status=$?
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; }; then
19538 ac_cv_member_struct_option_name=yes
19539else
19540 echo "$as_me: failed program was:" >&5
19541sed 's/^/| /' conftest.$ac_ext >&5
19542
19543ac_cv_member_struct_option_name=no
19544fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019546fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019548fi
19549echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19550echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19551if test $ac_cv_member_struct_option_name = yes; then
19552
19553cat >>confdefs.h <<_ACEOF
19554#define HAVE_STRUCT_OPTION_NAME 1
19555_ACEOF
19556
19557
19558fi
19559
19560
Pavel Roskind6507192003-10-03 03:28:40 +000019561echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19562echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19563if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19564 echo $ECHO_N "(cached) $ECHO_C" >&6
19565else
19566 cat >conftest.$ac_ext <<_ACEOF
Pavel Roskind6507192003-10-03 03:28:40 +000019567/* confdefs.h. */
19568_ACEOF
19569cat confdefs.h >>conftest.$ac_ext
19570cat >>conftest.$ac_ext <<_ACEOF
19571/* end confdefs.h. */
19572$ac_includes_default
19573int
19574main ()
19575{
19576static struct stat ac_aggr;
19577if (ac_aggr.st_blocks)
19578return 0;
19579 ;
19580 return 0;
19581}
19582_ACEOF
19583rm -f conftest.$ac_objext
19584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019585 (eval $ac_compile) 2>conftest.er1
Pavel Roskind6507192003-10-03 03:28:40 +000019586 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019587 grep -v '^ *+' conftest.er1 >conftest.err
19588 rm -f conftest.er1
19589 cat conftest.err >&5
Pavel Roskind6507192003-10-03 03:28:40 +000019590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19594 (eval $ac_try) 2>&5
19595 ac_status=$?
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); }; } &&
19598 { ac_try='test -s conftest.$ac_objext'
Pavel Roskind6507192003-10-03 03:28:40 +000019599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600 (eval $ac_try) 2>&5
19601 ac_status=$?
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; }; then
19604 ac_cv_member_struct_stat_st_blocks=yes
19605else
19606 echo "$as_me: failed program was:" >&5
19607sed 's/^/| /' conftest.$ac_ext >&5
19608
19609cat >conftest.$ac_ext <<_ACEOF
Pavel Roskind6507192003-10-03 03:28:40 +000019610/* confdefs.h. */
19611_ACEOF
19612cat confdefs.h >>conftest.$ac_ext
19613cat >>conftest.$ac_ext <<_ACEOF
19614/* end confdefs.h. */
19615$ac_includes_default
19616int
19617main ()
19618{
19619static struct stat ac_aggr;
19620if (sizeof ac_aggr.st_blocks)
19621return 0;
19622 ;
19623 return 0;
19624}
19625_ACEOF
19626rm -f conftest.$ac_objext
19627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019628 (eval $ac_compile) 2>conftest.er1
Pavel Roskind6507192003-10-03 03:28:40 +000019629 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019630 grep -v '^ *+' conftest.er1 >conftest.err
19631 rm -f conftest.er1
19632 cat conftest.err >&5
Pavel Roskind6507192003-10-03 03:28:40 +000019633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19637 (eval $ac_try) 2>&5
19638 ac_status=$?
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); }; } &&
19641 { ac_try='test -s conftest.$ac_objext'
Pavel Roskind6507192003-10-03 03:28:40 +000019642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19643 (eval $ac_try) 2>&5
19644 ac_status=$?
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); }; }; then
19647 ac_cv_member_struct_stat_st_blocks=yes
19648else
19649 echo "$as_me: failed program was:" >&5
19650sed 's/^/| /' conftest.$ac_ext >&5
19651
19652ac_cv_member_struct_stat_st_blocks=no
19653fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Pavel Roskind6507192003-10-03 03:28:40 +000019655fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Pavel Roskind6507192003-10-03 03:28:40 +000019657fi
19658echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19659echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19660if test $ac_cv_member_struct_stat_st_blocks = yes; then
19661
19662cat >>confdefs.h <<_ACEOF
19663#define HAVE_STRUCT_STAT_ST_BLOCKS 1
19664_ACEOF
19665
19666
19667fi
19668
19669
Phil Krylov6618b032005-05-24 11:52:46 +000019670echo "$as_me:$LINENO: checking for timezone variable" >&5
19671echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6
19672if test "${ac_cv_have_timezone+set}" = set; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
19674else
19675 cat >conftest.$ac_ext <<_ACEOF
19676/* confdefs.h. */
19677_ACEOF
19678cat confdefs.h >>conftest.$ac_ext
19679cat >>conftest.$ac_ext <<_ACEOF
19680/* end confdefs.h. */
19681#include <time.h>
19682int
19683main ()
19684{
19685timezone;
19686 ;
19687 return 0;
19688}
19689_ACEOF
19690rm -f conftest.$ac_objext conftest$ac_exeext
19691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19692 (eval $ac_link) 2>conftest.er1
19693 ac_status=$?
19694 grep -v '^ *+' conftest.er1 >conftest.err
19695 rm -f conftest.er1
19696 cat conftest.err >&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); } &&
19699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19702 ac_status=$?
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; } &&
19705 { ac_try='test -s conftest$ac_exeext'
19706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707 (eval $ac_try) 2>&5
19708 ac_status=$?
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); }; }; then
19711 ac_cv_have_timezone="yes"
19712else
19713 echo "$as_me: failed program was:" >&5
19714sed 's/^/| /' conftest.$ac_ext >&5
19715
19716ac_cv_have_timezone="no"
19717fi
19718rm -f conftest.err conftest.$ac_objext \
19719 conftest$ac_exeext conftest.$ac_ext
19720fi
19721echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
19722echo "${ECHO_T}$ac_cv_have_timezone" >&6
19723if test "$ac_cv_have_timezone" = "yes"
19724then
19725
19726cat >>confdefs.h <<\_ACEOF
19727#define HAVE_TIMEZONE 1
19728_ACEOF
19729
19730fi
19731echo "$as_me:$LINENO: checking for daylight variable" >&5
19732echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6
19733if test "${ac_cv_have_daylight+set}" = set; then
19734 echo $ECHO_N "(cached) $ECHO_C" >&6
19735else
19736 cat >conftest.$ac_ext <<_ACEOF
19737/* confdefs.h. */
19738_ACEOF
19739cat confdefs.h >>conftest.$ac_ext
19740cat >>conftest.$ac_ext <<_ACEOF
19741/* end confdefs.h. */
19742#include <time.h>
19743int
19744main ()
19745{
19746daylight;
19747 ;
19748 return 0;
19749}
19750_ACEOF
19751rm -f conftest.$ac_objext conftest$ac_exeext
19752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19753 (eval $ac_link) 2>conftest.er1
19754 ac_status=$?
19755 grep -v '^ *+' conftest.er1 >conftest.err
19756 rm -f conftest.er1
19757 cat conftest.err >&5
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); } &&
19760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19762 (eval $ac_try) 2>&5
19763 ac_status=$?
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); }; } &&
19766 { ac_try='test -s conftest$ac_exeext'
19767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19768 (eval $ac_try) 2>&5
19769 ac_status=$?
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); }; }; then
19772 ac_cv_have_daylight="yes"
19773else
19774 echo "$as_me: failed program was:" >&5
19775sed 's/^/| /' conftest.$ac_ext >&5
19776
19777ac_cv_have_daylight="no"
19778fi
19779rm -f conftest.err conftest.$ac_objext \
19780 conftest$ac_exeext conftest.$ac_ext
19781fi
19782echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
19783echo "${ECHO_T}$ac_cv_have_daylight" >&6
19784if test "$ac_cv_have_daylight" = "yes"
19785then
19786
19787cat >>confdefs.h <<\_ACEOF
19788#define HAVE_DAYLIGHT 1
19789_ACEOF
19790
19791fi
19792
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019793
Alexandre Julliardfc01b722002-05-12 03:16:39 +000019794case $host_cpu in
Alexandre Julliard05783b52002-12-11 00:21:55 +000019795 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019796echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000019797if test "${ac_cv_cpp_def___i386__+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019798 echo $ECHO_N "(cached) $ECHO_C" >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000019799else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019800 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019801/* confdefs.h. */
19802_ACEOF
19803cat confdefs.h >>conftest.$ac_ext
19804cat >>conftest.$ac_ext <<_ACEOF
19805/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019806#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000019807yes
19808#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019809_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000019810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019811 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000019812 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000019813else
Alexandre Julliard05783b52002-12-11 00:21:55 +000019814 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000019815fi
19816rm -f conftest*
19817
19818fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000019819echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
19820echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
19821if test $ac_cv_cpp_def___i386__ = yes; then
19822 CFLAGS="$CFLAGS -D__i386__"
19823 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000019824fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000019825 ;;
19826 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
Steven Edwards69b67862002-12-10 22:48:48 +000019827echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000019828if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
Steven Edwards69b67862002-12-10 22:48:48 +000019829 echo $ECHO_N "(cached) $ECHO_C" >&6
19830else
19831 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019832/* confdefs.h. */
19833_ACEOF
19834cat confdefs.h >>conftest.$ac_ext
19835cat >>conftest.$ac_ext <<_ACEOF
19836/* end confdefs.h. */
Steven Edwards69b67862002-12-10 22:48:48 +000019837#ifndef __ALPHA__
19838yes
19839#endif
19840_ACEOF
19841if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19842 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000019843 ac_cv_cpp_def___ALPHA__=yes
Steven Edwards69b67862002-12-10 22:48:48 +000019844else
Alexandre Julliard05783b52002-12-11 00:21:55 +000019845 ac_cv_cpp_def___ALPHA__=no
Steven Edwards69b67862002-12-10 22:48:48 +000019846fi
19847rm -f conftest*
19848
19849fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000019850echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
19851echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
19852if test $ac_cv_cpp_def___ALPHA__ = yes; then
19853 CFLAGS="$CFLAGS -D__ALPHA__"
19854 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
Steven Edwards69b67862002-12-10 22:48:48 +000019855fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000019856 ;;
19857 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019858echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000019859if test "${ac_cv_cpp_def___sparc__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019860 echo $ECHO_N "(cached) $ECHO_C" >&6
19861else
19862 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019863/* confdefs.h. */
19864_ACEOF
19865cat confdefs.h >>conftest.$ac_ext
19866cat >>conftest.$ac_ext <<_ACEOF
19867/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019868#ifndef __sparc__
19869yes
19870#endif
19871_ACEOF
19872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019873 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000019874 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019875else
Alexandre Julliard05783b52002-12-11 00:21:55 +000019876 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019877fi
19878rm -f conftest*
19879
19880fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000019881echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
19882echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
19883if test $ac_cv_cpp_def___sparc__ = yes; then
19884 CFLAGS="$CFLAGS -D__sparc__"
19885 LINTFLAGS="$LINTFLAGS -D__sparc__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019886fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000019887 ;;
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000019888 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
19889echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
19890if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
19891 echo $ECHO_N "(cached) $ECHO_C" >&6
19892else
19893 cat >conftest.$ac_ext <<_ACEOF
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000019894/* confdefs.h. */
19895_ACEOF
19896cat confdefs.h >>conftest.$ac_ext
19897cat >>conftest.$ac_ext <<_ACEOF
19898/* end confdefs.h. */
19899#ifndef __powerpc__
19900yes
19901#endif
19902_ACEOF
19903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19904 $EGREP "yes" >/dev/null 2>&1; then
19905 ac_cv_cpp_def___powerpc__=yes
19906else
19907 ac_cv_cpp_def___powerpc__=no
19908fi
19909rm -f conftest*
19910
19911fi
19912echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
19913echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
19914if test $ac_cv_cpp_def___powerpc__ = yes; then
19915 CFLAGS="$CFLAGS -D__powerpc__"
19916 LINTFLAGS="$LINTFLAGS -D__powerpc__"
19917fi
19918 ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000019919esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019920
19921case $host_vendor in
Alexandre Julliard05783b52002-12-11 00:21:55 +000019922 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019923echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000019924if test "${ac_cv_cpp_def___sun__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019925 echo $ECHO_N "(cached) $ECHO_C" >&6
19926else
19927 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019928/* confdefs.h. */
19929_ACEOF
19930cat confdefs.h >>conftest.$ac_ext
19931cat >>conftest.$ac_ext <<_ACEOF
19932/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019933#ifndef __sun__
19934yes
19935#endif
19936_ACEOF
19937if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019938 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000019939 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019940else
Alexandre Julliard05783b52002-12-11 00:21:55 +000019941 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019942fi
19943rm -f conftest*
19944
19945fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000019946echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
19947echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
19948if test $ac_cv_cpp_def___sun__ = yes; then
19949 CFLAGS="$CFLAGS -D__sun__"
19950 LINTFLAGS="$LINTFLAGS -D__sun__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019951fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000019952 ;;
19953esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019954
19955
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019956
19957
19958
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019959 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000019960
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019961 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000019962
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019963 ac_config_commands="$ac_config_commands dlls/kernel/messages"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019964
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019965 ac_config_commands="$ac_config_commands dlls/user/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019966
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019967 ac_config_commands="$ac_config_commands dlls/wineps/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019968
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019969 ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019970
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019971 ac_config_commands="$ac_config_commands programs/regedit/tests"
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000019972
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000019973
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000019974MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019975
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019976
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +000019977MAKE_DLL_RULES=dlls/Makedll.rules
19978
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019979
Alexandre Julliardedeee892002-08-09 01:22:40 +000019980MAKE_TEST_RULES=dlls/Maketest.rules
19981
19982
Alexandre Julliard117436e2003-05-01 00:39:29 +000019983MAKE_LIB_RULES=libs/Makelib.rules
19984
19985
Alexandre Julliard626f4252000-11-10 23:35:20 +000019986MAKE_PROG_RULES=programs/Makeprog.rules
19987
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019988
Jacek Caban51bb3f62005-06-27 11:19:49 +000019989 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/activeds/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/advpack/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput/tests/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/hhctrl.ocx/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/lzexpand/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msacm/tests/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/mshtml/tests/Makefile dlls/msi/Makefile dlls/msi/tests/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvidc32/Makefile dlls/msvideo/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/odbccp32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/rasapi32/Makefile dlls/riched20/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/secur32/Makefile dlls/sensapi/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/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/wined3d/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/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/wtsapi32/Makefile dlls/x11drv/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019990
Alexandre Julliard626f4252000-11-10 23:35:20 +000019991
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019992cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019993# This file is a shell script that caches the results of configure
19994# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019995# scripts and configure runs, see configure's option --config-cache.
19996# It is not useful on other systems. If it contains results you don't
19997# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019998#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019999# config.status only pays attention to the cache file if you give it
20000# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020001#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020002# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020003# loading this file, other *unset* `ac_cv_foo' will be assigned the
20004# following values.
20005
20006_ACEOF
20007
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000020008# The following way of writing the cache mishandles newlines in values,
20009# but we know of no workaround that is simple, portable, and efficient.
20010# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020011# Ultrix sh set writes to stderr and can't be redirected directly,
20012# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020013{
20014 (set) 2>&1 |
20015 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20016 *ac_space=\ *)
20017 # `set' does not quote correctly, so add quotes (double-quote
20018 # substitution turns \\\\ into \\, and sed turns \\ into \).
20019 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000020020 "s/'/'\\\\''/g;
20021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020022 ;;
20023 *)
20024 # `set' quotes correctly as required by POSIX, so do not add quotes.
20025 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000020026 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020027 ;;
20028 esac;
20029} |
20030 sed '
20031 t clear
20032 : clear
20033 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20034 t end
20035 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20036 : end' >>confcache
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020037if diff $cache_file confcache >/dev/null 2>&1; then :; else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020038 if test -w $cache_file; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020039 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20040 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020041 else
20042 echo "not updating unwritable cache $cache_file"
20043 fi
20044fi
20045rm -f confcache
20046
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020047test "x$prefix" = xNONE && prefix=$ac_default_prefix
20048# Let make expand exec_prefix.
20049test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20050
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020051# VPATH may cause trouble with some makes, so we remove $(srcdir),
20052# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20053# trailing colons and then remove the whole line if VPATH becomes empty
20054# (actually we leave an empty line to preserve line numbers).
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020055if test "x$srcdir" = x.; then
Alexandre Julliard875927f2004-01-02 01:55:29 +000020056 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020057s/:*\$(srcdir):*/:/;
20058s/:*\${srcdir}:*/:/;
20059s/:*@srcdir@:*/:/;
Alexandre Julliard875927f2004-01-02 01:55:29 +000020060s/^\([^=]*=[ ]*\):*/\1/;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020061s/:*$//;
Alexandre Julliard875927f2004-01-02 01:55:29 +000020062s/^[^=]*=[ ]*$//;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020063}'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020064fi
20065
Alexandre Julliard18f92e71996-07-17 20:02:21 +000020066DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020067
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020068ac_libobjs=
20069ac_ltlibobjs=
20070for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20071 # 1. Remove the extension, and $U if already installed.
20072 ac_i=`echo "$ac_i" |
Alexandre Julliard875927f2004-01-02 01:55:29 +000020073 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020074 # 2. Add them.
20075 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20076 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20077done
20078LIBOBJS=$ac_libobjs
20079
20080LTLIBOBJS=$ac_ltlibobjs
20081
20082
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020083
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020084: ${CONFIG_STATUS=./config.status}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020085ac_clean_files_save=$ac_clean_files
20086ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020087{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020088echo "$as_me: creating $CONFIG_STATUS" >&6;}
20089cat >$CONFIG_STATUS <<_ACEOF
20090#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020091# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020092# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020093# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020094# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020095
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020096debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020097ac_cs_recheck=false
20098ac_cs_silent=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020099SHELL=\${CONFIG_SHELL-$SHELL}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020100_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020101
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020102cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020103## --------------------- ##
20104## M4sh Initialization. ##
20105## --------------------- ##
20106
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020107# Be Bourne compatible
20108if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20109 emulate sh
20110 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020111 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20112 # is contrary to our usage. Disable this feature.
20113 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020114elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20115 set -o posix
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000020116fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000020117DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020118
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020119# Support unset when possible.
Alexandre Julliard875927f2004-01-02 01:55:29 +000020120if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020121 as_unset=unset
20122else
20123 as_unset=false
20124fi
20125
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020126
20127# Work around bugs in pre-3.0 UWIN ksh.
20128$as_unset ENV MAIL MAILPATH
20129PS1='$ '
20130PS2='> '
20131PS4='+ '
20132
20133# NLS nuisances.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020134for as_var in \
20135 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20136 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20137 LC_TELEPHONE LC_TIME
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020138do
Alexandre Julliard875927f2004-01-02 01:55:29 +000020139 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020140 eval $as_var=C; export $as_var
20141 else
20142 $as_unset $as_var
20143 fi
20144done
20145
20146# Required to use basename.
20147if expr a : '\(a\)' >/dev/null 2>&1; then
20148 as_expr=expr
20149else
20150 as_expr=false
20151fi
20152
20153if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20154 as_basename=basename
20155else
20156 as_basename=false
20157fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020158
20159
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020160# Name of the executable.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020161as_me=`$as_basename "$0" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020162$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20163 X"$0" : 'X\(//\)$' \| \
20164 X"$0" : 'X\(/\)$' \| \
20165 . : '\(.\)' 2>/dev/null ||
20166echo X/"$0" |
20167 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20168 /^X\/\(\/\/\)$/{ s//\1/; q; }
20169 /^X\/\(\/\).*/{ s//\1/; q; }
20170 s/.*/./; q'`
20171
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020172
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020173# PATH needs CR, and LINENO needs CR and PATH.
20174# Avoid depending upon Character Ranges.
20175as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20176as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20177as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20178as_cr_digits='0123456789'
20179as_cr_alnum=$as_cr_Letters$as_cr_digits
20180
20181# The user is always right.
20182if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020183 echo "#! /bin/sh" >conf$$.sh
20184 echo "exit 0" >>conf$$.sh
20185 chmod +x conf$$.sh
20186 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020187 PATH_SEPARATOR=';'
20188 else
20189 PATH_SEPARATOR=:
20190 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020191 rm -f conf$$.sh
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020192fi
20193
20194
20195 as_lineno_1=$LINENO
20196 as_lineno_2=$LINENO
20197 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20198 test "x$as_lineno_1" != "x$as_lineno_2" &&
20199 test "x$as_lineno_3" = "x$as_lineno_2" || {
20200 # Find who we are. Look in the path if we contain no path at all
20201 # relative or not.
20202 case $0 in
20203 *[\\/]* ) as_myself=$0 ;;
20204 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20205for as_dir in $PATH
20206do
20207 IFS=$as_save_IFS
20208 test -z "$as_dir" && as_dir=.
20209 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20210done
20211
20212 ;;
20213 esac
20214 # We did not find ourselves, most probably we were run as `sh COMMAND'
20215 # in which case we are not to be found in the path.
20216 if test "x$as_myself" = x; then
20217 as_myself=$0
20218 fi
20219 if test ! -f "$as_myself"; then
20220 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20221echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20222 { (exit 1); exit 1; }; }
20223 fi
20224 case $CONFIG_SHELL in
20225 '')
20226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20227for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20228do
20229 IFS=$as_save_IFS
20230 test -z "$as_dir" && as_dir=.
20231 for as_base in sh bash ksh sh5; do
20232 case $as_dir in
20233 /*)
20234 if ("$as_dir/$as_base" -c '
20235 as_lineno_1=$LINENO
20236 as_lineno_2=$LINENO
20237 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20238 test "x$as_lineno_1" != "x$as_lineno_2" &&
20239 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020240 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20241 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020242 CONFIG_SHELL=$as_dir/$as_base
20243 export CONFIG_SHELL
20244 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20245 fi;;
20246 esac
20247 done
20248done
20249;;
20250 esac
20251
20252 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20253 # uniformly replaced by the line number. The first 'sed' inserts a
20254 # line-number line before each line; the second 'sed' does the real
20255 # work. The second script uses 'N' to pair each line-number line
20256 # with the numbered line, and appends trailing '-' during
20257 # substitution so that $LINENO is not a special case at line end.
20258 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20259 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20260 sed '=' <$as_myself |
20261 sed '
20262 N
20263 s,$,-,
20264 : loop
20265 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20266 t loop
20267 s,-$,,
20268 s,^['$as_cr_digits']*\n,,
20269 ' >$as_me.lineno &&
20270 chmod +x $as_me.lineno ||
20271 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20272echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20273 { (exit 1); exit 1; }; }
20274
20275 # Don't try to exec as it changes $[0], causing all sort of problems
20276 # (the dirname of $[0] is not the place where we might find the
20277 # original and so on. Autoconf is especially sensible to this).
20278 . ./$as_me.lineno
20279 # Exit status is that of the last command.
20280 exit
20281}
20282
20283
20284case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20285 *c*,-n*) ECHO_N= ECHO_C='
20286' ECHO_T=' ' ;;
20287 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20288 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20289esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020290
20291if expr a : '\(a\)' >/dev/null 2>&1; then
20292 as_expr=expr
20293else
20294 as_expr=false
20295fi
20296
20297rm -f conf$$ conf$$.exe conf$$.file
20298echo >conf$$.file
20299if ln -s conf$$.file conf$$ 2>/dev/null; then
20300 # We could just check for DJGPP; but this test a) works b) is more generic
20301 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20302 if test -f conf$$.exe; then
20303 # Don't use ln at all; we don't have any links
20304 as_ln_s='cp -p'
20305 else
20306 as_ln_s='ln -s'
20307 fi
20308elif ln conf$$.file conf$$ 2>/dev/null; then
20309 as_ln_s=ln
20310else
20311 as_ln_s='cp -p'
20312fi
20313rm -f conf$$ conf$$.exe conf$$.file
20314
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020315if mkdir -p . 2>/dev/null; then
20316 as_mkdir_p=:
20317else
Alexandre Julliard875927f2004-01-02 01:55:29 +000020318 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020319 as_mkdir_p=false
20320fi
20321
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020322as_executable_p="test -f"
20323
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020324# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000020325as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020326
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020327# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000020328as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020329
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020330
20331# IFS
20332# We need space, tab and new line, in precisely that order.
20333as_nl='
20334'
20335IFS=" $as_nl"
20336
20337# CDPATH.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020338$as_unset CDPATH
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020339
20340exec 6>&1
20341
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020342# Open the log real soon, to keep \$[0] and so on meaningful, and to
20343# report actual input values of CONFIG_FILES etc. instead of their
20344# values after options handling. Logging --version etc. is OK.
20345exec 5>>config.log
20346{
20347 echo
20348 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20349## Running $as_me. ##
20350_ASBOX
20351} >&5
20352cat >&5 <<_CSEOF
20353
Alexandre Julliard471a7ed2005-06-28 14:39:19 +000020354This file was extended by Wine $as_me 20050628, which was
Eric Pouech53fa0d52004-02-05 01:27:38 +000020355generated by GNU Autoconf 2.59. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020356
20357 CONFIG_FILES = $CONFIG_FILES
20358 CONFIG_HEADERS = $CONFIG_HEADERS
20359 CONFIG_LINKS = $CONFIG_LINKS
20360 CONFIG_COMMANDS = $CONFIG_COMMANDS
20361 $ $0 $@
20362
20363_CSEOF
20364echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20365echo >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020366_ACEOF
20367
20368# Files that config.status was made for.
20369if test -n "$ac_config_files"; then
20370 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20371fi
20372
20373if test -n "$ac_config_headers"; then
20374 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20375fi
20376
20377if test -n "$ac_config_links"; then
20378 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20379fi
20380
20381if test -n "$ac_config_commands"; then
20382 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20383fi
20384
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020385cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020386
20387ac_cs_usage="\
20388\`$as_me' instantiates files from templates according to the
20389current configuration.
20390
20391Usage: $0 [OPTIONS] [FILE]...
20392
20393 -h, --help print this help, then exit
20394 -V, --version print version number, then exit
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020395 -q, --quiet do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020396 -d, --debug don't remove temporary files
20397 --recheck update $as_me by reconfiguring in the same conditions
20398 --file=FILE[:TEMPLATE]
Alexandre Julliard875927f2004-01-02 01:55:29 +000020399 instantiate the configuration file FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020400 --header=FILE[:TEMPLATE]
Alexandre Julliard875927f2004-01-02 01:55:29 +000020401 instantiate the configuration header FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020402
20403Configuration files:
20404$config_files
20405
20406Configuration headers:
20407$config_headers
20408
20409Configuration commands:
20410$config_commands
20411
20412Report bugs to <bug-autoconf@gnu.org>."
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020413_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000020414
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020415cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020416ac_cs_version="\\
Alexandre Julliard471a7ed2005-06-28 14:39:19 +000020417Wine config.status 20050628
Eric Pouech53fa0d52004-02-05 01:27:38 +000020418configured by $0, generated by GNU Autoconf 2.59,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020419 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020420
Alexandre Julliard875927f2004-01-02 01:55:29 +000020421Copyright (C) 2003 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020422This config.status script is free software; the Free Software Foundation
20423gives unlimited permission to copy, distribute and modify it."
20424srcdir=$srcdir
20425INSTALL="$INSTALL"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020426_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020427
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020428cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020429# If no file are specified by the user, then we need to provide default
20430# value. By we need to know if files were specified by the user.
20431ac_need_defaults=:
20432while test $# != 0
20433do
20434 case $1 in
20435 --*=*)
20436 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20437 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020438 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020439 ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020440 -*)
20441 ac_option=$1
20442 ac_optarg=$2
20443 ac_shift=shift
20444 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020445 *) # This is not an option, so the user has probably given explicit
20446 # arguments.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020447 ac_option=$1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020448 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020449 esac
20450
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020451 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020452 # Handling of the options.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020453_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020454cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020455 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20456 ac_cs_recheck=: ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020457 --version | --vers* | -V )
20458 echo "$ac_cs_version"; exit 0 ;;
20459 --he | --h)
20460 # Conflict between --help and --header
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020461 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020462Try \`$0 --help' for more information." >&5
20463echo "$as_me: error: ambiguous option: $1
20464Try \`$0 --help' for more information." >&2;}
20465 { (exit 1); exit 1; }; };;
20466 --help | --hel | -h )
20467 echo "$ac_cs_usage"; exit 0 ;;
20468 --debug | --d* | -d )
20469 debug=: ;;
20470 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020471 $ac_shift
20472 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020473 ac_need_defaults=false;;
20474 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020475 $ac_shift
20476 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020477 ac_need_defaults=false;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020478 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20479 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20480 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020481
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020482 # This is an error.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020483 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020484Try \`$0 --help' for more information." >&5
20485echo "$as_me: error: unrecognized option: $1
20486Try \`$0 --help' for more information." >&2;}
20487 { (exit 1); exit 1; }; } ;;
20488
20489 *) ac_config_targets="$ac_config_targets $1" ;;
20490
20491 esac
20492 shift
20493done
20494
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020495ac_configure_extra_args=
20496
20497if $ac_cs_silent; then
20498 exec 6>/dev/null
20499 ac_configure_extra_args="$ac_configure_extra_args --silent"
20500fi
20501
20502_ACEOF
20503cat >>$CONFIG_STATUS <<_ACEOF
20504if \$ac_cs_recheck; then
20505 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20506 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20507fi
20508
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020509_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020510
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020511
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020512
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020513
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020514
20515cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020516for ac_config_target in $ac_config_targets
20517do
20518 case "$ac_config_target" in
20519 # Handling of arguments.
20520 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20521 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020522 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
Alexandre Julliard117436e2003-05-01 00:39:29 +000020523 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020524 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20525 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020526 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
Detlef Riekenberg29056632005-06-13 11:47:46 +000020527 "dlls/activeds/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020528 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020529 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
Huw Davies20313b82004-09-27 20:39:40 +000020530 "dlls/advpack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
Robert Reif97199822005-01-20 20:03:13 +000020531 "dlls/advpack/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
Christian Costa76b77872004-03-09 01:29:56 +000020532 "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
Aric Stewart4bd374f2004-07-06 21:01:18 +000020533 "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020534 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20535 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
Patrik Stridvalld1447fa2002-11-19 00:47:12 +000020536 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000020537 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
Sami Nopanen9063cef2004-03-15 20:26:42 +000020538 "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
Mike McCormackb107b922003-10-31 03:38:07 +000020539 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
John K. Hohm34909c22002-05-14 21:50:56 +000020540 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020541 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
Uwe Bonnes2c4fd422003-05-15 23:58:48 +000020542 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020543 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20544 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20545 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
Kees Cook255541a2005-05-24 09:58:26 +000020546 "dlls/crypt32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
Ulrich Czekallac173f6a2005-01-24 19:07:16 +000020547 "dlls/cryptdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
Dmitry Timoshkov5a23a002003-01-02 19:34:14 +000020548 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
Sylvain Petreolle3a99d8b2002-06-25 23:23:03 +000020549 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
Alexandre Julliardaa1bdc42003-07-01 01:11:13 +000020550 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
Enrico Horneaae7052003-01-24 01:08:15 +000020551 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
Ivan Leo Murray-Smith8f14eb02004-05-18 00:54:12 +000020552 "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
Raphael Junqueirae31ae922002-12-17 01:15:15 +000020553 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
Christian Costa7590fe52004-06-03 00:03:23 +000020554 "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
Eric Pouech800864a2004-04-05 22:21:27 +000020555 "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020556 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20557 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
Sami Aariof22a4722003-11-18 00:12:00 +000020558 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020559 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20560 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
Robert Reif8bffed52005-05-11 12:05:17 +000020561 "dlls/dinput/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
Ove Kaavend2d08f02002-06-14 00:39:44 +000020562 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000020563 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20564 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20565 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20566 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20567 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20568 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20569 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
Rok Mandeljc2d04be72003-03-21 00:42:38 +000020570 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000020571 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020572 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20573 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
Raphael Junqueira5f3f2142004-04-07 20:39:00 +000020574 "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000020575 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020576 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
Francois Gougetd523a452002-12-05 19:19:41 +000020577 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
Rok Mandeljc0382ea12004-01-20 00:21:40 +000020578 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
Raphael Junqueira033ae922004-04-16 00:26:14 +000020579 "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
Robert Reifcc02d952004-03-09 23:25:57 +000020580 "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20581 "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020582 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020583 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
Patrik Stridvall928ecb42002-10-02 19:58:27 +000020584 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020585 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
Jacek Cabanef799c42003-12-02 04:11:09 +000020586 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
Krzysztof Foltman9bca6902004-04-22 03:45:00 +000020587 "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
Alexandre Julliard0a106bf2004-01-15 04:56:18 +000020588 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020589 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020590 "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020591 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20592 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
Juan Lang38fa5ad2003-05-13 03:32:20 +000020593 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
Juan Lange6f491a2004-01-07 01:08:55 +000020594 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
Alexandre Julliard5f6e3c82004-08-24 21:00:15 +000020595 "dlls/itss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020596 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020597 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020598 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
Evan G. Parryd23f5ef2004-11-21 16:05:14 +000020599 "dlls/lzexpand/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020600 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
Jon Griffiths4ec0d3b2004-04-23 23:30:00 +000020601 "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
Alexandre Julliard94a9d332004-08-04 18:33:06 +000020602 "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
20603 "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020604 "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20605 "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020606 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20607 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
Hidenori Takeshima0307f6d2002-03-23 20:18:11 +000020608 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
Eric Pouechbed67fc2002-05-22 02:00:05 +000020609 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
Hidenori Takeshimabcb9c462002-03-22 19:16:10 +000020610 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
Eric Pouechb706b232002-06-04 17:53:46 +000020611 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
Robert Reif00cd2b22004-05-03 20:17:43 +000020612 "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;;
Hans Leidekker51647572004-09-22 04:08:38 +000020613 "dlls/mscms/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
Hans Leidekker081b2502004-10-07 19:12:41 +000020614 "dlls/mscms/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020615 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
Mike McCormackaa1c2a32003-09-08 19:32:14 +000020616 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
Jacek Caban51bb3f62005-06-27 11:19:49 +000020617 "dlls/mshtml/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
Mike McCormack6386edc2003-08-13 01:27:48 +000020618 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
Mike McCormack23b291a2005-01-05 13:26:34 +000020619 "dlls/msi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020620 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
Mike McCormackf6be0442002-04-08 23:56:14 +000020621 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020622 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
Alexandre Julliard7ba8fba2004-02-27 21:51:12 +000020623 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020624 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
Uwe Bonnesa768fa32002-10-30 23:49:03 +000020625 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020626 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
Mike McCormackd0779462004-01-12 22:12:27 +000020627 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
Adam Gundy19a15132003-04-04 19:37:57 +000020628 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
Patrik Stridvall5c4420f2004-05-18 01:05:36 +000020629 "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
Mike McCormack4cc64c82004-01-23 05:00:37 +000020630 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020631 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
André Johansen2123c132003-08-02 00:52:02 +000020632 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020633 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
Andriy Palamarchukb812c902002-09-11 02:35:17 +000020634 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
Ulrich Czekalla9655a5f2003-12-30 22:19:30 +000020635 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020636 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
Jon Griffiths1da29712002-08-15 22:08:40 +000020637 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020638 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
Mike McCormackb5c63ed2005-05-16 19:42:47 +000020639 "dlls/odbccp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020640 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
Mike McCormack06b80462004-08-11 00:17:52 +000020641 "dlls/ole32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
Eric Pouech5caccaf2003-06-23 03:43:00 +000020642 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020643 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020644 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020645 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20646 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20647 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20648 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20649 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
Benjamin Cutler250a8ae2005-04-20 19:15:31 +000020650 "dlls/powrprof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020651 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
Stefan Leichter0d4fff42004-06-15 20:23:47 +000020652 "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020653 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20654 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
Christian Costae3a288f2004-08-16 21:14:28 +000020655 "dlls/quartz/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020656 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
Krzysztof Foltmand488f3f2005-03-05 11:19:14 +000020657 "dlls/riched20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020658 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20659 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
Greg Turnerac89cc22002-10-07 21:54:07 +000020660 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
Mike McCormackb6de3042004-02-13 20:47:07 +000020661 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
Michael Jungb4b0c242004-07-30 00:06:54 +000020662 "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
Michael Jung64dce8a2004-11-04 21:15:32 +000020663 "dlls/rsaenh/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
20664 "dlls/rsaenh/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
Juan Lang3ed89c32004-03-02 04:57:35 +000020665 "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
Steven Edwards160e6472005-01-28 11:41:23 +000020666 "dlls/sensapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020667 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20668 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20669 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20670 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
Andriy Palamarchuk5b5bea02002-08-27 01:34:33 +000020671 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020672 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20673 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020674 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
Patrik Stridvall4c692b92002-04-29 18:43:35 +000020675 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
Huw Davies40468462005-01-28 14:13:08 +000020676 "dlls/stdole32.tlb/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020677 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
Francois Gougeta8963892004-08-19 19:31:20 +000020678 "dlls/strmiids/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020679 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20680 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000020681 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
Alexandre Julliard46321f42003-11-27 01:10:26 +000020682 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020683 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20684 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
Patrik Stridvall9398d9c2002-11-12 01:13:10 +000020685 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020686 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020687 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020688 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
Kevin Koltzau0af4fb92003-10-04 03:48:11 +000020689 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020690 "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
Sami Aario78f12242004-04-07 19:41:21 +000020691 "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020692 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
Stefan Leichter09733db2004-04-05 22:54:03 +000020693 "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
Alexandre Julliard6c8147b2004-02-21 04:13:56 +000020694 "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
Juan Lange9ed2f32004-03-01 23:35:25 +000020695 "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020696 "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20697 "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20698 "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020699 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20700 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020701 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020702 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20703 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20704 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020705 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020706 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20707 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20708 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20709 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20710 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20711 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20712 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20713 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
Francois Gouget4ce28372002-11-04 23:47:49 +000020714 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020715 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
Eric Pouecha120ce02002-06-28 17:40:16 +000020716 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000020717 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000020718 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
Chris Morgan4691b182002-12-13 02:26:18 +000020719 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020720 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020721 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20722 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20723 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020724 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020725 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
Stefan Leichter88b11062003-01-15 00:50:48 +000020726 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
Patrik Stridvall5caddc72002-12-17 01:49:16 +000020727 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020728 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20729 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20730 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
Ulrich Czekalla04f63462005-01-24 19:42:02 +000020731 "dlls/wtsapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020732 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20733 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
Huw Davies00acb5f2004-08-17 22:33:14 +000020734 "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020735 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
Alexandre Julliard6a9fe362003-03-19 22:09:16 +000020736 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20737 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000020738 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
Alexandre Julliard2d1c7902003-03-22 20:40:48 +000020739 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
Alexandre Julliarde1a9b102003-05-01 03:16:21 +000020740 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
Alexandre Julliard357c7402003-11-06 01:17:56 +000020741 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020742 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20743 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
20744 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20745 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20746 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
Alexandre Julliardacfda142002-05-20 19:18:16 +000020747 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
Vincent Béron34966892004-07-19 19:44:07 +000020748 "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020749 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020750 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
Andriy Palamarchuk4e2e1762002-04-11 23:58:40 +000020751 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
Andriy Palamarchuk2f0d85c2002-04-29 23:47:39 +000020752 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
Alexandre Julliardd77294a2002-12-02 21:17:04 +000020753 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
Alberto Massari15e8e0a2002-11-15 01:41:20 +000020754 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
Dan Kegelba02ae42003-01-21 20:14:36 +000020755 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
Eric Pouechd6b348f2004-03-23 01:19:54 +000020756 "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020757 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20758 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20759 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
Shachar Shemesh175d0592003-01-04 02:52:05 +000020760 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
Chris Morgand888d362004-01-06 20:49:58 +000020761 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
Dimitrie O. Paun82ce2cc2003-03-31 19:41:55 +000020762 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020763 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
Alexandre Julliardf264bd32002-09-13 17:54:27 +000020764 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
Alexandre Julliard65a42162002-06-04 21:29:40 +000020765 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
Mike McCormack88090b42003-05-21 18:50:53 +000020766 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020767 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
Mike Wetherell0d8a9fa2002-05-05 20:31:54 +000020768 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
Alexandre Julliard9f71bd92003-12-04 02:01:39 +000020769 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
Alexandre Julliardfedc4112003-04-27 00:47:58 +000020770 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020771 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20772 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020773 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
20774 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
Alexandre Julliard7d4ee772002-07-16 03:20:45 +000020775 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020776 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
20777 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
20778 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
Alexandre Julliard280661c2003-09-11 21:27:58 +000020779 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020780 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
20781 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
Alexandre Julliard89118562002-03-27 21:13:40 +000020782 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
20783 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020784 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020785 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
20786 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
20787 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000020788 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020789 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020790 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020791echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20792 { (exit 1); exit 1; }; };;
20793 esac
20794done
20795
20796# If the user did not use the arguments to specify the items to instantiate,
20797# then the envvar interface is used. Set only those that are not.
20798# We use the long form for the default assignment because of an extremely
20799# bizarre bug on SunOS 4.1.3.
20800if $ac_need_defaults; then
20801 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20802 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20803 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20804fi
20805
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020806# Have a temporary directory for convenience. Make it in the build tree
20807# simply because there is no reason to put it here, and in addition,
20808# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020809# Create a temporary directory, and hook for its removal unless debugging.
20810$debug ||
20811{
20812 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20813 trap '{ (exit 1); exit 1; }' 1 2 13 15
20814}
20815
20816# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020817
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020818{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020819 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020820 test -n "$tmp" && test -d "$tmp"
20821} ||
20822{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020823 tmp=./confstat$$-$RANDOM
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020824 (umask 077 && mkdir $tmp)
20825} ||
20826{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020827 echo "$me: cannot create a temporary directory in ." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020828 { (exit 1); exit 1; }
20829}
20830
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020831_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020832
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020833cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020834
20835#
20836# CONFIG_FILES section.
20837#
20838
20839# No need to generate the scripts if there are no CONFIG_FILES.
20840# This happens for instance when ./config.status config.h
20841if test -n "\$CONFIG_FILES"; then
20842 # Protect against being on the right side of a sed subst in config.status.
20843 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20844 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20845s,@SHELL@,$SHELL,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020846s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20847s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20848s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20849s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20850s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20851s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020852s,@exec_prefix@,$exec_prefix,;t t
20853s,@prefix@,$prefix,;t t
20854s,@program_transform_name@,$program_transform_name,;t t
20855s,@bindir@,$bindir,;t t
20856s,@sbindir@,$sbindir,;t t
20857s,@libexecdir@,$libexecdir,;t t
20858s,@datadir@,$datadir,;t t
20859s,@sysconfdir@,$sysconfdir,;t t
20860s,@sharedstatedir@,$sharedstatedir,;t t
20861s,@localstatedir@,$localstatedir,;t t
20862s,@libdir@,$libdir,;t t
20863s,@includedir@,$includedir,;t t
20864s,@oldincludedir@,$oldincludedir,;t t
20865s,@infodir@,$infodir,;t t
20866s,@mandir@,$mandir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020867s,@build_alias@,$build_alias,;t t
20868s,@host_alias@,$host_alias,;t t
20869s,@target_alias@,$target_alias,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020870s,@DEFS@,$DEFS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020871s,@ECHO_C@,$ECHO_C,;t t
20872s,@ECHO_N@,$ECHO_N,;t t
20873s,@ECHO_T@,$ECHO_T,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020874s,@LIBS@,$LIBS,;t t
Vincent Béron1f504142004-10-19 23:06:11 +000020875s,@DLLDEFS@,$DLLDEFS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020876s,@build@,$build,;t t
20877s,@build_cpu@,$build_cpu,;t t
20878s,@build_vendor@,$build_vendor,;t t
20879s,@build_os@,$build_os,;t t
20880s,@host@,$host,;t t
20881s,@host_cpu@,$host_cpu,;t t
20882s,@host_vendor@,$host_vendor,;t t
20883s,@host_os@,$host_os,;t t
Alexandre Julliard71440f32005-05-19 14:28:17 +000020884s,@WIN16_FILES@,$WIN16_FILES,;t t
20885s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020886s,@SET_MAKE@,$SET_MAKE,;t t
20887s,@CC@,$CC,;t t
20888s,@CFLAGS@,$CFLAGS,;t t
20889s,@LDFLAGS@,$LDFLAGS,;t t
20890s,@CPPFLAGS@,$CPPFLAGS,;t t
20891s,@ac_ct_CC@,$ac_ct_CC,;t t
20892s,@EXEEXT@,$EXEEXT,;t t
20893s,@OBJEXT@,$OBJEXT,;t t
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000020894s,@CXX@,$CXX,;t t
20895s,@CXXFLAGS@,$CXXFLAGS,;t t
20896s,@ac_ct_CXX@,$ac_ct_CXX,;t t
Alexandre Julliarda631ef62004-03-03 20:30:46 +000020897s,@CPPBIN@,$CPPBIN,;t t
20898s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000020899s,@TOOLSDIR@,$TOOLSDIR,;t t
Alexandre Julliarda631ef62004-03-03 20:30:46 +000020900s,@CPP@,$CPP,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020901s,@X_CFLAGS@,$X_CFLAGS,;t t
20902s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20903s,@X_LIBS@,$X_LIBS,;t t
20904s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020905s,@LEX@,$LEX,;t t
20906s,@LEXLIB@,$LEXLIB,;t t
20907s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020908s,@XLEX@,$XLEX,;t t
Mike McCormackc068f672004-03-16 03:11:39 +000020909s,@BISON@,$BISON,;t t
Marcus Meissner1d4db782003-01-09 00:46:54 +000020910s,@AS@,$AS,;t t
20911s,@ac_ct_AS@,$ac_ct_AS,;t t
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +000020912s,@LD@,$LD,;t t
20913s,@ac_ct_LD@,$ac_ct_LD,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000020914s,@AR@,$AR,;t t
20915s,@ac_ct_AR@,$ac_ct_AR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020916s,@RANLIB@,$RANLIB,;t t
20917s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000020918s,@STRIP@,$STRIP,;t t
20919s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20920s,@WINDRES@,$WINDRES,;t t
20921s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020922s,@LN_S@,$LN_S,;t t
Alexandre Julliarddf234a92002-05-22 02:10:39 +000020923s,@LN@,$LN,;t t
Alexandre Julliardc6264912004-08-16 20:09:37 +000020924s,@EGREP@,$EGREP,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020925s,@LDCONFIG@,$LDCONFIG,;t t
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020926s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20927s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20928s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020929s,@LINT@,$LINT,;t t
20930s,@LINTFLAGS@,$LINTFLAGS,;t t
Huw Davies00acb5f2004-08-17 22:33:14 +000020931s,@FONTFORGE@,$FONTFORGE,;t t
Alexandre Julliardf45325e2003-11-06 23:05:41 +000020932s,@LIBPTHREAD@,$LIBPTHREAD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020933s,@XLIB@,$XLIB,;t t
20934s,@XFILES@,$XFILES,;t t
20935s,@OPENGLFILES@,$OPENGLFILES,;t t
20936s,@GLU32FILES@,$GLU32FILES,;t t
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000020937s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
Jacek Cabanef799c42003-12-02 04:11:09 +000020938s,@GLUT_LIBS@,$GLUT_LIBS,;t t
20939s,@GLUT32FILES@,$GLUT32FILES,;t t
Francois Gouget6f670b12002-10-10 17:54:27 +000020940s,@NASLIBS@,$NASLIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020941s,@CURSESLIBS@,$CURSESLIBS,;t t
Shi Quan He6b0720f2002-03-21 02:58:39 +000020942s,@sane_devel@,$sane_devel,;t t
20943s,@SANELIBS@,$SANELIBS,;t t
20944s,@SANEINCL@,$SANEINCL,;t t
Alexandre Julliard4ee82902003-06-20 21:38:10 +000020945s,@ICULIBS@,$ICULIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020946s,@ft_devel@,$ft_devel,;t t
20947s,@ft_devel2@,$ft_devel2,;t t
Huw Davies00acb5f2004-08-17 22:33:14 +000020948s,@FREETYPELIBS@,$FREETYPELIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020949s,@FREETYPEINCL@,$FREETYPEINCL,;t t
Huw Davies00acb5f2004-08-17 22:33:14 +000020950s,@FONTSSUBDIRS@,$FONTSSUBDIRS,;t t
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000020951s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
20952s,@ARTSLIBS@,$ARTSLIBS,;t t
20953s,@ARTSINCL@,$ARTSINCL,;t t
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000020954s,@ALSALIBS@,$ALSALIBS,;t t
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000020955s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
Alexandre Julliardfc094232003-04-14 21:46:41 +000020956s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000020957s,@DLLEXT@,$DLLEXT,;t t
20958s,@DLLFLAGS@,$DLLFLAGS,;t t
20959s,@DLLIBS@,$DLLIBS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000020960s,@LDSHARED@,$LDSHARED,;t t
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000020961s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
Alexandre Julliardada5e652002-12-12 22:03:14 +000020962s,@LIBEXT@,$LIBEXT,;t t
20963s,@IMPLIBEXT@,$IMPLIBEXT,;t t
20964s,@DLLTOOL@,$DLLTOOL,;t t
20965s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020966s,@DLLWRAP@,$DLLWRAP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000020967s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
Alexandre Julliard4d52d372003-03-24 19:33:20 +000020968s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
Emmanuel Maillard46718f82004-07-22 19:48:41 +000020969s,@LDLIBWINEFLAGS@,$LDLIBWINEFLAGS,;t t
Emmanuel Maillard2300ce62004-08-19 01:20:45 +000020970s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t
20971s,@IOKITLIB@,$IOKITLIB,;t t
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000020972s,@CROSSTEST@,$CROSSTEST,;t t
20973s,@CROSSCC@,$CROSSCC,;t t
Alexandre Julliard21ee3292003-04-21 22:52:31 +000020974s,@CROSSWINDRES@,$CROSSWINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020975s,@LDPATH@,$LDPATH,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000020976s,@CRTLIBS@,$CRTLIBS,;t t
Steven Edwardsc91ae452004-09-03 18:57:19 +000020977s,@SOCKETLIBS@,$SOCKETLIBS,;t t
Alexandre Julliard546839f2003-11-11 00:48:21 +000020978s,@WINE_BINARIES@,$WINE_BINARIES,;t t
20979s,@MAIN_BINARY@,$MAIN_BINARY,;t t
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000020980s,@LDD@,$LDD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020981s,@ALLOCA@,$ALLOCA,;t t
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020982s,@LIBOBJS@,$LIBOBJS,;t t
20983s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020984/@MAKE_RULES@/r $MAKE_RULES
20985s,@MAKE_RULES@,,;t t
20986/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
20987s,@MAKE_DLL_RULES@,,;t t
Alexandre Julliardedeee892002-08-09 01:22:40 +000020988/@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
20989s,@MAKE_TEST_RULES@,,;t t
Alexandre Julliard117436e2003-05-01 00:39:29 +000020990/@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
20991s,@MAKE_LIB_RULES@,,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020992/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
20993s,@MAKE_PROG_RULES@,,;t t
20994CEOF
20995
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020996_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020997
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020998 cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020999 # Split the substitutions into bite-sized pieces for seds with
21000 # small command number limits, like on Digital OSF/1 and HP-UX.
21001 ac_max_sed_lines=48
21002 ac_sed_frag=1 # Number of current file.
21003 ac_beg=1 # First line for current file.
21004 ac_end=$ac_max_sed_lines # Line after last line for current file.
21005 ac_more_lines=:
21006 ac_sed_cmds=
21007 while $ac_more_lines; do
21008 if test $ac_beg -gt 1; then
21009 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21010 else
21011 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21012 fi
21013 if test ! -s $tmp/subs.frag; then
21014 ac_more_lines=false
21015 else
21016 # The purpose of the label and of the branching condition is to
21017 # speed up the sed processing (if there are no `@' at all, there
21018 # is no need to browse any of the substitutions).
21019 # These are the two extra sed commands mentioned above.
21020 (echo ':t
21021 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21022 if test -z "$ac_sed_cmds"; then
Alexandre Julliard875927f2004-01-02 01:55:29 +000021023 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021024 else
Alexandre Julliard875927f2004-01-02 01:55:29 +000021025 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021026 fi
21027 ac_sed_frag=`expr $ac_sed_frag + 1`
21028 ac_beg=$ac_end
21029 ac_end=`expr $ac_end + $ac_max_sed_lines`
21030 fi
21031 done
21032 if test -z "$ac_sed_cmds"; then
21033 ac_sed_cmds=cat
21034 fi
21035fi # test -n "$CONFIG_FILES"
21036
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021037_ACEOF
21038cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021039for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21040 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21041 case $ac_file in
21042 - | *:- | *:-:* ) # input from stdin
Alexandre Julliard875927f2004-01-02 01:55:29 +000021043 cat >$tmp/stdin
21044 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21045 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021046 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliard875927f2004-01-02 01:55:29 +000021047 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021048 * ) ac_file_in=$ac_file.in ;;
21049 esac
21050
21051 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021052 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21053$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021054 X"$ac_file" : 'X\(//\)[^/]' \| \
21055 X"$ac_file" : 'X\(//\)$' \| \
21056 X"$ac_file" : 'X\(/\)' \| \
21057 . : '\(.\)' 2>/dev/null ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021058echo X"$ac_file" |
21059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21060 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21061 /^X\(\/\/\)$/{ s//\1/; q; }
21062 /^X\(\/\).*/{ s//\1/; q; }
21063 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021064 { if $as_mkdir_p; then
21065 mkdir -p "$ac_dir"
21066 else
21067 as_dir="$ac_dir"
21068 as_dirs=
21069 while test ! -d "$as_dir"; do
21070 as_dirs="$as_dir $as_dirs"
21071 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21072$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021073 X"$as_dir" : 'X\(//\)[^/]' \| \
21074 X"$as_dir" : 'X\(//\)$' \| \
21075 X"$as_dir" : 'X\(/\)' \| \
21076 . : '\(.\)' 2>/dev/null ||
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021077echo X"$as_dir" |
21078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21079 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21080 /^X\(\/\/\)$/{ s//\1/; q; }
21081 /^X\(\/\).*/{ s//\1/; q; }
21082 s/.*/./; q'`
21083 done
21084 test ! -n "$as_dirs" || mkdir $as_dirs
21085 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21086echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21087 { (exit 1); exit 1; }; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021088
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021089 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021090
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021091if test "$ac_dir" != .; then
21092 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21093 # A "../" for each directory in $ac_dir_suffix.
21094 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21095else
21096 ac_dir_suffix= ac_top_builddir=
21097fi
21098
21099case $srcdir in
21100 .) # No --srcdir option. We are building in place.
21101 ac_srcdir=.
21102 if test -z "$ac_top_builddir"; then
21103 ac_top_srcdir=.
21104 else
21105 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21106 fi ;;
21107 [\\/]* | ?:[\\/]* ) # Absolute path.
21108 ac_srcdir=$srcdir$ac_dir_suffix;
21109 ac_top_srcdir=$srcdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021110 *) # Relative path.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021111 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21112 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21113esac
Alexandre Julliard875927f2004-01-02 01:55:29 +000021114
21115# Do not use `cd foo && pwd` to compute absolute paths, because
21116# the directories may not exist.
21117case `pwd` in
21118.) ac_abs_builddir="$ac_dir";;
21119*)
21120 case "$ac_dir" in
21121 .) ac_abs_builddir=`pwd`;;
21122 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21123 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21124 esac;;
21125esac
21126case $ac_abs_builddir in
21127.) ac_abs_top_builddir=${ac_top_builddir}.;;
21128*)
21129 case ${ac_top_builddir}. in
21130 .) ac_abs_top_builddir=$ac_abs_builddir;;
21131 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21132 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21133 esac;;
21134esac
21135case $ac_abs_builddir in
21136.) ac_abs_srcdir=$ac_srcdir;;
21137*)
21138 case $ac_srcdir in
21139 .) ac_abs_srcdir=$ac_abs_builddir;;
21140 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21141 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21142 esac;;
21143esac
21144case $ac_abs_builddir in
21145.) ac_abs_top_srcdir=$ac_top_srcdir;;
21146*)
21147 case $ac_top_srcdir in
21148 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21149 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21150 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21151 esac;;
21152esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021153
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021154
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021155 case $INSTALL in
21156 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021157 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000021158 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000021159
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021160 # Let's still pretend it is `configure' which instantiates (i.e., don't
21161 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021162 # /* config.h. Generated by config.status. */
21163 if test x"$ac_file" = x-; then
21164 configure_input=
21165 else
21166 configure_input="$ac_file. "
21167 fi
21168 configure_input=$configure_input"Generated from `echo $ac_file_in |
Alexandre Julliard875927f2004-01-02 01:55:29 +000021169 sed 's,.*/,,'` by configure."
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000021170
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021171 # First look for the input files in the build tree, otherwise in the
21172 # src tree.
21173 ac_file_inputs=`IFS=:
21174 for f in $ac_file_in; do
21175 case $f in
21176 -) echo $tmp/stdin ;;
21177 [\\/$]*)
Alexandre Julliard875927f2004-01-02 01:55:29 +000021178 # Absolute (can't be DOS-style, as IFS=:)
21179 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021180echo "$as_me: error: cannot find input file: $f" >&2;}
21181 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021182 echo "$f";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021183 *) # Relative
Alexandre Julliard875927f2004-01-02 01:55:29 +000021184 if test -f "$f"; then
21185 # Build tree
21186 echo "$f"
21187 elif test -f "$srcdir/$f"; then
21188 # Source tree
21189 echo "$srcdir/$f"
21190 else
21191 # /dev/null tree
21192 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021193echo "$as_me: error: cannot find input file: $f" >&2;}
21194 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021195 fi;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021196 esac
21197 done` || { (exit 1); exit 1; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021198
21199 if test x"$ac_file" != x-; then
21200 { echo "$as_me:$LINENO: creating $ac_file" >&5
21201echo "$as_me: creating $ac_file" >&6;}
21202 rm -f "$ac_file"
21203 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021204_ACEOF
21205cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021206 sed "$ac_vpsub
21207$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021208_ACEOF
21209cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021210:t
21211/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21212s,@configure_input@,$configure_input,;t t
21213s,@srcdir@,$ac_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021214s,@abs_srcdir@,$ac_abs_srcdir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021215s,@top_srcdir@,$ac_top_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021216s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21217s,@builddir@,$ac_builddir,;t t
21218s,@abs_builddir@,$ac_abs_builddir,;t t
21219s,@top_builddir@,$ac_top_builddir,;t t
21220s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021221s,@INSTALL@,$ac_INSTALL,;t t
21222" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21223 rm -f $tmp/stdin
21224 if test x"$ac_file" != x-; then
21225 mv $tmp/out $ac_file
21226 else
21227 cat $tmp/out
21228 rm -f $tmp/out
21229 fi
21230
21231done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021232_ACEOF
21233cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021234
21235#
21236# CONFIG_HEADER section.
21237#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021238
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021239# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21240# NAME is the cpp macro being defined and VALUE is the value it is being given.
21241#
21242# ac_d sets the value in "#define NAME VALUE" lines.
Alexandre Julliard875927f2004-01-02 01:55:29 +000021243ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21244ac_dB='[ ].*$,\1#\2'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021245ac_dC=' '
21246ac_dD=',;t'
21247# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Alexandre Julliard875927f2004-01-02 01:55:29 +000021248ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021249ac_uB='$,\1#\2define\3'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021250ac_uC=' '
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021251ac_uD=',;t'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021252
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021253for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000021254 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021255 case $ac_file in
21256 - | *:- | *:-:* ) # input from stdin
Alexandre Julliard875927f2004-01-02 01:55:29 +000021257 cat >$tmp/stdin
21258 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21259 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021260 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliard875927f2004-01-02 01:55:29 +000021261 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021262 * ) ac_file_in=$ac_file.in ;;
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021263 esac
21264
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021265 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021266echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021267
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021268 # First look for the input files in the build tree, otherwise in the
21269 # src tree.
21270 ac_file_inputs=`IFS=:
21271 for f in $ac_file_in; do
21272 case $f in
21273 -) echo $tmp/stdin ;;
21274 [\\/$]*)
Alexandre Julliard875927f2004-01-02 01:55:29 +000021275 # Absolute (can't be DOS-style, as IFS=:)
21276 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021277echo "$as_me: error: cannot find input file: $f" >&2;}
21278 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021279 # Do quote $f, to prevent DOS paths from being IFS'd.
21280 echo "$f";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021281 *) # Relative
Alexandre Julliard875927f2004-01-02 01:55:29 +000021282 if test -f "$f"; then
21283 # Build tree
21284 echo "$f"
21285 elif test -f "$srcdir/$f"; then
21286 # Source tree
21287 echo "$srcdir/$f"
21288 else
21289 # /dev/null tree
21290 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021291echo "$as_me: error: cannot find input file: $f" >&2;}
21292 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021293 fi;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021294 esac
21295 done` || { (exit 1); exit 1; }
21296 # Remove the trailing spaces.
Alexandre Julliard875927f2004-01-02 01:55:29 +000021297 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021298
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021299_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021300
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021301# Transform confdefs.h into two sed scripts, `conftest.defines' and
21302# `conftest.undefs', that substitutes the proper values into
21303# config.h.in to produce config.h. The first handles `#define'
21304# templates, and the second `#undef' templates.
21305# And first: Protect against being on the right side of a sed subst in
21306# config.status. Protect against being in an unquoted here document
21307# in config.status.
21308rm -f conftest.defines conftest.undefs
21309# Using a here document instead of a string reduces the quoting nightmare.
21310# Putting comments in sed scripts is not portable.
21311#
21312# `end' is used to avoid that the second main sed command (meant for
21313# 0-ary CPP macros) applies to n-ary macro definitions.
21314# See the Autoconf documentation for `clear'.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021315cat >confdef2sed.sed <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021316s/[\\&,]/\\&/g
21317s,[\\$`],\\&,g
21318t clear
21319: clear
Alexandre Julliard875927f2004-01-02 01:55:29 +000021320s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021321t end
Alexandre Julliard875927f2004-01-02 01:55:29 +000021322s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021323: end
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021324_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021325# If some macros were called several times there might be several times
21326# the same #defines, which is useless. Nevertheless, we may not want to
21327# sort them, since we want the *last* AC-DEFINE to be honored.
21328uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21329sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21330rm -f confdef2sed.sed
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021331
21332# This sed command replaces #undef with comments. This is necessary, for
21333# example, in the case of _POSIX_SOURCE, which is predefined and required
21334# on some systems where configure will not decide to define it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021335cat >>conftest.undefs <<\_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000021336s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021337_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021338
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021339# Break up conftest.defines because some shells have a limit on the size
21340# of here documents, and old seds have small limits too (100 cmds).
21341echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Alexandre Julliard875927f2004-01-02 01:55:29 +000021342echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021343echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21344echo ' :' >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021345rm -f conftest.tail
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021346while grep . conftest.defines >/dev/null
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021347do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021348 # Write a limited-size here document to $tmp/defines.sed.
21349 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21350 # Speed up: don't consider the non `#define' lines.
Alexandre Julliard875927f2004-01-02 01:55:29 +000021351 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021352 # Work around the forget-to-reset-the-flag bug.
21353 echo 't clr' >>$CONFIG_STATUS
21354 echo ': clr' >>$CONFIG_STATUS
21355 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021356 echo 'CEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021357 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21358 rm -f $tmp/in
21359 mv $tmp/out $tmp/in
21360' >>$CONFIG_STATUS
21361 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21362 rm -f conftest.defines
21363 mv conftest.tail conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021364done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021365rm -f conftest.defines
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021366echo ' fi # grep' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021367echo >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021368
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021369# Break up conftest.undefs because some shells have a limit on the size
21370# of here documents, and old seds have small limits too (100 cmds).
21371echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21372rm -f conftest.tail
21373while grep . conftest.undefs >/dev/null
21374do
21375 # Write a limited-size here document to $tmp/undefs.sed.
21376 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21377 # Speed up: don't consider the non `#undef'
Alexandre Julliard875927f2004-01-02 01:55:29 +000021378 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021379 # Work around the forget-to-reset-the-flag bug.
21380 echo 't clr' >>$CONFIG_STATUS
21381 echo ': clr' >>$CONFIG_STATUS
21382 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21383 echo 'CEOF
21384 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21385 rm -f $tmp/in
21386 mv $tmp/out $tmp/in
21387' >>$CONFIG_STATUS
21388 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21389 rm -f conftest.undefs
21390 mv conftest.tail conftest.undefs
21391done
21392rm -f conftest.undefs
21393
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021394cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021395 # Let's still pretend it is `configure' which instantiates (i.e., don't
21396 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021397 # /* config.h. Generated by config.status. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021398 if test x"$ac_file" = x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021399 echo "/* Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021400 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021401 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021402 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021403 cat $tmp/in >>$tmp/config.h
21404 rm -f $tmp/in
21405 if test x"$ac_file" != x-; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021406 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021407 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021408echo "$as_me: $ac_file is unchanged" >&6;}
21409 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021410 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21411$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021412 X"$ac_file" : 'X\(//\)[^/]' \| \
21413 X"$ac_file" : 'X\(//\)$' \| \
21414 X"$ac_file" : 'X\(/\)' \| \
21415 . : '\(.\)' 2>/dev/null ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021416echo X"$ac_file" |
21417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21418 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21419 /^X\(\/\/\)$/{ s//\1/; q; }
21420 /^X\(\/\).*/{ s//\1/; q; }
21421 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021422 { if $as_mkdir_p; then
21423 mkdir -p "$ac_dir"
21424 else
21425 as_dir="$ac_dir"
21426 as_dirs=
21427 while test ! -d "$as_dir"; do
21428 as_dirs="$as_dir $as_dirs"
21429 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21430$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021431 X"$as_dir" : 'X\(//\)[^/]' \| \
21432 X"$as_dir" : 'X\(//\)$' \| \
21433 X"$as_dir" : 'X\(/\)' \| \
21434 . : '\(.\)' 2>/dev/null ||
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021435echo X"$as_dir" |
21436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21438 /^X\(\/\/\)$/{ s//\1/; q; }
21439 /^X\(\/\).*/{ s//\1/; q; }
21440 s/.*/./; q'`
21441 done
21442 test ! -n "$as_dirs" || mkdir $as_dirs
21443 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21444echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21445 { (exit 1); exit 1; }; }; }
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021446
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021447 rm -f $ac_file
21448 mv $tmp/config.h $ac_file
21449 fi
21450 else
21451 cat $tmp/config.h
21452 rm -f $tmp/config.h
21453 fi
21454done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021455_ACEOF
21456cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021457
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021458#
21459# CONFIG_COMMANDS section.
21460#
21461for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21462 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21463 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021464 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21465$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021466 X"$ac_dest" : 'X\(//\)[^/]' \| \
21467 X"$ac_dest" : 'X\(//\)$' \| \
21468 X"$ac_dest" : 'X\(/\)' \| \
21469 . : '\(.\)' 2>/dev/null ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021470echo X"$ac_dest" |
21471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21473 /^X\(\/\/\)$/{ s//\1/; q; }
21474 /^X\(\/\).*/{ s//\1/; q; }
21475 s/.*/./; q'`
Alexandre Julliard875927f2004-01-02 01:55:29 +000021476 { if $as_mkdir_p; then
21477 mkdir -p "$ac_dir"
21478 else
21479 as_dir="$ac_dir"
21480 as_dirs=
21481 while test ! -d "$as_dir"; do
21482 as_dirs="$as_dir $as_dirs"
21483 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21484$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21485 X"$as_dir" : 'X\(//\)[^/]' \| \
21486 X"$as_dir" : 'X\(//\)$' \| \
21487 X"$as_dir" : 'X\(/\)' \| \
21488 . : '\(.\)' 2>/dev/null ||
21489echo X"$as_dir" |
21490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21492 /^X\(\/\/\)$/{ s//\1/; q; }
21493 /^X\(\/\).*/{ s//\1/; q; }
21494 s/.*/./; q'`
21495 done
21496 test ! -n "$as_dirs" || mkdir $as_dirs
21497 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21498echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21499 { (exit 1); exit 1; }; }; }
21500
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021501 ac_builddir=.
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000021502
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021503if test "$ac_dir" != .; then
21504 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21505 # A "../" for each directory in $ac_dir_suffix.
21506 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021507else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021508 ac_dir_suffix= ac_top_builddir=
21509fi
21510
21511case $srcdir in
21512 .) # No --srcdir option. We are building in place.
21513 ac_srcdir=.
21514 if test -z "$ac_top_builddir"; then
21515 ac_top_srcdir=.
21516 else
21517 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21518 fi ;;
21519 [\\/]* | ?:[\\/]* ) # Absolute path.
21520 ac_srcdir=$srcdir$ac_dir_suffix;
21521 ac_top_srcdir=$srcdir ;;
21522 *) # Relative path.
21523 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21524 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21525esac
Alexandre Julliard875927f2004-01-02 01:55:29 +000021526
21527# Do not use `cd foo && pwd` to compute absolute paths, because
21528# the directories may not exist.
21529case `pwd` in
21530.) ac_abs_builddir="$ac_dir";;
21531*)
21532 case "$ac_dir" in
21533 .) ac_abs_builddir=`pwd`;;
21534 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21535 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21536 esac;;
21537esac
21538case $ac_abs_builddir in
21539.) ac_abs_top_builddir=${ac_top_builddir}.;;
21540*)
21541 case ${ac_top_builddir}. in
21542 .) ac_abs_top_builddir=$ac_abs_builddir;;
21543 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21544 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21545 esac;;
21546esac
21547case $ac_abs_builddir in
21548.) ac_abs_srcdir=$ac_srcdir;;
21549*)
21550 case $ac_srcdir in
21551 .) ac_abs_srcdir=$ac_abs_builddir;;
21552 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21553 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21554 esac;;
21555esac
21556case $ac_abs_builddir in
21557.) ac_abs_top_srcdir=$ac_top_srcdir;;
21558*)
21559 case $ac_top_srcdir in
21560 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21561 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21562 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21563 esac;;
21564esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021565
21566
21567 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21568echo "$as_me: executing $ac_dest commands" >&6;}
21569 case $ac_dest in
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021570 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21571echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21572 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21573echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021574 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21575echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021576 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21577echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021578 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21579echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21580 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21581echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000021582 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21583echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021584 esac
21585done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021586_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021587
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021588cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000021589
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021590{ (exit 0); exit 0; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021591_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021592chmod +x $CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021593ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021594
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021595
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021596# configure is writing to config.log, and then calls config.status.
21597# config.status does its own redirection, appending to config.log.
21598# Unfortunately, on DOS this fails, as config.log is still kept open
21599# by configure, so config.status won't be able to write to it; its
21600# output is simply discarded. So we exec the FD to /dev/null,
21601# effectively closing config.log, so it can be properly (re)opened and
21602# appended to by config.status. When coming back to configure, we
21603# need to make the FD available again.
21604if test "$no_create" != yes; then
21605 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021606 ac_config_status_args=
21607 test "$silent" = yes &&
21608 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021609 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021610 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021611 exec 5>>config.log
21612 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21613 # would make configure fail if this is the last instruction.
21614 $ac_cs_success || { (exit 1); exit 1; }
21615fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021616
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021617
Ove Kaaven8b4431f1999-01-23 13:59:11 +000021618if test "$have_x" = "no"
21619then
21620 echo
21621 echo "*** Warning: X development files not found. Wine will be built without"
21622 echo "*** X support, which currently does not work, and would probably not be"
21623 echo "*** what you want anyway. You will need to install devel packages of"
Alexandre Julliard18e4b5e2002-01-04 18:52:40 +000021624 echo "*** Xlib/Xfree86 at the very least."
Ove Kaaven8b4431f1999-01-23 13:59:11 +000021625fi
21626
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000021627if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000021628then
21629 echo
21630 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000021631 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21632fi
21633
Ian Pilcher563598d2001-05-16 20:56:05 +000021634if test "$wine_cv_msg_freetype" = "yes"
21635then
21636 echo
21637 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021638 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21639 echo "*** freetype-devel package (or its equivalent on your distribution) to"
21640 echo "*** enable Wine to use TrueType fonts."
Ian Pilcher563598d2001-05-16 20:56:05 +000021641fi
21642
Francois Gouget99d026f2005-03-19 17:08:18 +000021643if test -z "$ALSALIBS" -a -z "$ARTSC_LIBS" -a -z "$AUDIOIOLIBS" -a \
21644 -z "$ac_cv_lib_soname_jack" -a -z "$NASLIBS" -a \
21645 "$ac_cv_c_opensoundsystem" = "no"
21646then
21647 echo "*** No sound system was found. Windows applications will be silent."
21648 echo "*** The currently supported sound systems are:"
21649 echo "*** ALSA, ARTS, AudioIO, Jack, NAS and OSS"
21650fi
21651
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021652echo
Vincent Béron5606d102004-08-19 00:03:45 +000021653echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021654echo
21655