blob: 123131be2fec4d4eded4f951e8c43f006bba1430 [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 Julliarde24bcc72002-12-24 00:35:19 +00003# Generated by GNU Autoconf 2.57 for Wine 20021219.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004#
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006# Free Software Foundation, Inc.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22fi
23
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
Alexandre Julliard11af04e2002-10-10 03:48:04 +000031
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000039for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
Alexandre Julliard11af04e2002-10-10 03:48:04 +000043do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000063
64
Alexandre Julliardf5818d22002-02-14 19:47:29 +000065# Name of the executable.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000066as_me=`$as_basename "$0" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000067$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
Alexandre Julliard11af04e2002-10-10 03:48:04 +000077
Alexandre Julliarddaa28862002-04-11 21:54:01 +000078# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000088 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000092 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000096 rm -f conf$$.sh
Alexandre Julliarddaa28862002-04-11 21:54:01 +000097fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 as_mkdir_p=false
222fi
223
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000224as_executable_p="test -f"
225
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000228
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" $as_nl"
238
239# CDPATH.
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000240$as_unset CDPATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000241
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000242
243# Name of the host.
244# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245# so uname gets run too.
246ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248exec 6>&1
249
250#
251# Initializations.
252#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000253ac_default_prefix=/usr/local
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000254ac_config_libobj_dir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000255cross_compiling=no
256subdirs=
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000257MFLAGS=
258MAKEFLAGS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000259SHELL=${CONFIG_SHELL-/bin/sh}
260
261# Maximum number of lines to put in a shell here document.
262# This variable seems obsolete. It should probably be removed, and
263# only ac_max_sed_lines should be used.
264: ${ac_max_here_lines=38}
265
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000266# Identity of this package.
267PACKAGE_NAME='Wine'
268PACKAGE_TARNAME='wine'
Alexandre Julliard9283bb32002-12-20 01:27:13 +0000269PACKAGE_VERSION='20021219'
270PACKAGE_STRING='Wine 20021219'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000271PACKAGE_BUGREPORT=''
272
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000273ac_unique_file="server/atom.c"
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288# include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293# include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304# include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000310
Alexandre Julliarde24bcc72002-12-24 00:35:19 +0000311ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS OPTIONS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN C2MAN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS JPEGLIB EGREP XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP CROSSTEST CROSSCC LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS'
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000312ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_PROG_RULES'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000313
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000314# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000315ac_init_help=
316ac_init_version=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000317# The variables have the same names as the options, with
318# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000319cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000320exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000321no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000330verbose=
331x_includes=NONE
332x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000333
334# Installation directory options.
335# These are left unexpanded so users can "make install exec_prefix=/foo"
336# and all the variables that are supposed to be based on exec_prefix
337# by default will actually change.
338# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000351
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000352ac_prev=
353for ac_option
354do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000366 case $ac_option in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000367
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000371 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000372
373 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000374 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000376 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000387
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000392 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000393
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000394 -disable-* | --disable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000396 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000402
403 -enable-* | --enable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000405 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000412 *) ac_optarg=yes ;;
413 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000414 eval "enable_$ac_feature='$ac_optarg'" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000423 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000435
436 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000437 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000438 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000439 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000440
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000446 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000451 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000456 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000463 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000472 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000477 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000478
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000484 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000498 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000499
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000503 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000510 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000517 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000534 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000544 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000555 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000556
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000560 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000565 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000566
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000572 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000573
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000574 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000575 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000577 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000584
585 -with-* | --with-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000587 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000591 ac_package=`echo $ac_package| sed 's/-/_/g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000594 *) ac_optarg=yes ;;
595 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000596 eval "with_$ac_package='$ac_optarg'" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000597
598 -without-* | --without-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000600 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000616 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000623 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000624
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000628 ;;
629
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000640 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000646 ;;
647
648 esac
649done
650
651if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000655fi
656
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000659do
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000664 { (exit 1); exit 1; }; };;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000665 esac
666done
667
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000676 { (exit 1); exit 1; }; };;
677 esac
678done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000679
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000680# There might be people who depend on the old broken behavior: `$host'
681# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000682# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000683build=$build_alias
684host=$host_alias
685target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000686
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000687# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000688if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696fi
697
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000702
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000703
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000704# Find the source files, if location was not specified.
705if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724else
725 ac_srcdir_defaulted=no
726fi
727if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000730 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000731 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000733 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000734 fi
735fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
752ac_env_CC_set=${CC+set}
753ac_env_CC_value=$CC
754ac_cv_env_CC_set=${CC+set}
755ac_cv_env_CC_value=$CC
756ac_env_CFLAGS_set=${CFLAGS+set}
757ac_env_CFLAGS_value=$CFLAGS
758ac_cv_env_CFLAGS_set=${CFLAGS+set}
759ac_cv_env_CFLAGS_value=$CFLAGS
760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
764ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765ac_env_CPPFLAGS_value=$CPPFLAGS
766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768ac_env_CPP_set=${CPP+set}
769ac_env_CPP_value=$CPP
770ac_cv_env_CPP_set=${CPP+set}
771ac_cv_env_CPP_value=$CPP
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000772
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000773#
774# Report the --help message.
775#
776if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000779 cat <<_ACEOF
Alexandre Julliard9283bb32002-12-20 01:27:13 +0000780\`configure' configures Wine 20021219 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000781
782Usage: $0 [OPTION]... [VAR=VALUE]...
783
784To assign environment variables (e.g., CC, CFLAGS...), specify them as
785VAR=VALUE. See below for descriptions of some of the useful variables.
786
787Defaults for the options are specified in brackets.
788
789Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
799
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000800_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000801
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000802 cat <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000803Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
808
809By default, \`make install' will install all the files in
810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812for instance \`--prefix=\$HOME'.
813
814For better control, use the options below.
815
816Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000829_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000830
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000831 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000832
833X features:
834 --x-includes=DIR X include files are in DIR
835 --x-libraries=DIR X library files are in DIR
836
837System types:
838 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000840_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000841fi
842
843if test -n "$ac_init_help"; then
844 case $ac_init_help in
Alexandre Julliard9283bb32002-12-20 01:27:13 +0000845 short | recursive ) echo "Configuration of Wine 20021219:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000846 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000847 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000848
849Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Alexandre Julliardc728efc2002-10-02 02:34:09 +0000852 --disable-win16 do not include Win16 support
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000853 --disable-debug compile out all debugging messages
854 --disable-trace compile out TRACE messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000855
856Optional Packages:
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Alexandre Julliardb8074992002-11-21 21:51:24 +0000859 --without-opengl do not use OpenGL
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000860 --without-curses do not use curses
Alexandre Julliardfc01b722002-05-12 03:16:39 +0000861 --with-wine-tools=<dir> use Wine tools from directory <dir>
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000862 --with-x use the X Window System
863
864Some influential environment variables:
865 CC C compiler command
866 CFLAGS C compiler flags
867 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
868 nonstandard directory <lib dir>
869 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
870 headers in a nonstandard directory <include dir>
871 CPP C preprocessor
872
873Use these variables to override the choices made by `configure' or to help
874it to find libraries and programs with nonstandard names/locations.
875
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000876_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000877fi
878
879if test "$ac_init_help" = "recursive"; then
880 # If there are subdirs, report their specific --help.
881 ac_popdir=`pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000882 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
883 test -d $ac_dir || continue
884 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000885
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000886if test "$ac_dir" != .; then
887 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
888 # A "../" for each directory in $ac_dir_suffix.
889 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
890else
891 ac_dir_suffix= ac_top_builddir=
892fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000893
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000894case $srcdir in
895 .) # No --srcdir option. We are building in place.
896 ac_srcdir=.
897 if test -z "$ac_top_builddir"; then
898 ac_top_srcdir=.
899 else
900 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
901 fi ;;
902 [\\/]* | ?:[\\/]* ) # Absolute path.
903 ac_srcdir=$srcdir$ac_dir_suffix;
904 ac_top_srcdir=$srcdir ;;
905 *) # Relative path.
906 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
907 ac_top_srcdir=$ac_top_builddir$srcdir ;;
908esac
909# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
910# absolute.
911ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000912ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000913ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
914ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
915
916 cd $ac_dir
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000917 # Check for guested configure; otherwise get Cygnus style configure.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000918 if test -f $ac_srcdir/configure.gnu; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000919 echo
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000920 $SHELL $ac_srcdir/configure.gnu --help=recursive
921 elif test -f $ac_srcdir/configure; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000922 echo
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000923 $SHELL $ac_srcdir/configure --help=recursive
924 elif test -f $ac_srcdir/configure.ac ||
925 test -f $ac_srcdir/configure.in; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000926 echo
927 $ac_configure --help
928 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000929 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000930 fi
931 cd $ac_popdir
932 done
933fi
934
935test -n "$ac_init_help" && exit 0
936if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000937 cat <<\_ACEOF
Alexandre Julliard9283bb32002-12-20 01:27:13 +0000938Wine configure 20021219
Alexandre Julliarde24bcc72002-12-24 00:35:19 +0000939generated by GNU Autoconf 2.57
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000940
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000941Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000942Free Software Foundation, Inc.
943This configure script is free software; the Free Software Foundation
944gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000945_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000946 exit 0
947fi
948exec 5>config.log
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000949cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000950This file contains any messages produced by compilers while
951running configure, to aid debugging if configure makes a mistake.
952
Alexandre Julliard9283bb32002-12-20 01:27:13 +0000953It was created by Wine $as_me 20021219, which was
Alexandre Julliarde24bcc72002-12-24 00:35:19 +0000954generated by GNU Autoconf 2.57. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000955
956 $ $0 $@
957
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000958_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000959{
960cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000961## --------- ##
962## Platform. ##
963## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000964
965hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
966uname -m = `(uname -m) 2>/dev/null || echo unknown`
967uname -r = `(uname -r) 2>/dev/null || echo unknown`
968uname -s = `(uname -s) 2>/dev/null || echo unknown`
969uname -v = `(uname -v) 2>/dev/null || echo unknown`
970
971/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
972/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
973
974/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
975/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
976/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
977hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
978/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
979/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
980/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
981
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000982_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000983
984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
985for as_dir in $PATH
986do
987 IFS=$as_save_IFS
988 test -z "$as_dir" && as_dir=.
989 echo "PATH: $as_dir"
990done
991
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000992} >&5
993
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000994cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000995
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000996
997## ----------- ##
998## Core tests. ##
999## ----------- ##
1000
1001_ACEOF
1002
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001003
1004# Keep a trace of the command line.
1005# Strip out --no-create and --no-recursion so they do not pile up.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001006# Strip out --silent because we don't want to record it for future runs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001007# Also quote any args containing shell meta-characters.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001008# Make two passes to allow for proper duplicate-argument suppression.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001009ac_configure_args=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001010ac_configure_args0=
1011ac_configure_args1=
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001012ac_sep=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001013ac_must_keep_next=false
1014for ac_pass in 1 2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001015do
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001016 for ac_arg
1017 do
1018 case $ac_arg in
1019 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021 | -silent | --silent | --silen | --sile | --sil)
1022 continue ;;
1023 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1024 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1025 esac
1026 case $ac_pass in
1027 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1028 2)
1029 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1030 if test $ac_must_keep_next = true; then
1031 ac_must_keep_next=false # Got value, back to normal.
1032 else
1033 case $ac_arg in
1034 *=* | --config-cache | -C | -disable-* | --disable-* \
1035 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1036 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1037 | -with-* | --with-* | -without-* | --without-* | --x)
1038 case "$ac_configure_args0 " in
1039 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1040 esac
1041 ;;
1042 -* ) ac_must_keep_next=true ;;
1043 esac
1044 fi
1045 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1046 # Get rid of the leading space.
1047 ac_sep=" "
1048 ;;
1049 esac
1050 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001051done
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001052$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1053$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001054
1055# When interrupted or exit'd, cleanup temporary files, and complete
1056# config.log. We remove comments because anyway the quotes in there
1057# would cause problems or look ugly.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001058# WARNING: Be sure not to use single quotes in there, as some shells,
1059# such as our DU 5.0 friend, will then `close' the trap.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001060trap 'exit_status=$?
1061 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001062 {
1063 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001064
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001065 cat <<\_ASBOX
1066## ---------------- ##
1067## Cache variables. ##
1068## ---------------- ##
1069_ASBOX
1070 echo
1071 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001072{
1073 (set) 2>&1 |
1074 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1075 *ac_space=\ *)
1076 sed -n \
1077 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1079 ;;
1080 *)
1081 sed -n \
1082 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1083 ;;
1084 esac;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001085}
1086 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001087
1088 cat <<\_ASBOX
1089## ----------------- ##
1090## Output variables. ##
1091## ----------------- ##
1092_ASBOX
1093 echo
1094 for ac_var in $ac_subst_vars
1095 do
1096 eval ac_val=$`echo $ac_var`
1097 echo "$ac_var='"'"'$ac_val'"'"'"
1098 done | sort
1099 echo
1100
1101 if test -n "$ac_subst_files"; then
1102 cat <<\_ASBOX
1103## ------------- ##
1104## Output files. ##
1105## ------------- ##
1106_ASBOX
1107 echo
1108 for ac_var in $ac_subst_files
1109 do
1110 eval ac_val=$`echo $ac_var`
1111 echo "$ac_var='"'"'$ac_val'"'"'"
1112 done | sort
1113 echo
1114 fi
1115
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001116 if test -s confdefs.h; then
1117 cat <<\_ASBOX
1118## ----------- ##
1119## confdefs.h. ##
1120## ----------- ##
1121_ASBOX
1122 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001123 sed "/^$/d" confdefs.h | sort
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001124 echo
1125 fi
1126 test "$ac_signal" != 0 &&
1127 echo "$as_me: caught signal $ac_signal"
1128 echo "$as_me: exit $exit_status"
1129 } >&5
1130 rm -f core core.* *.core &&
1131 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001132 exit $exit_status
1133 ' 0
1134for ac_signal in 1 2 13 15; do
1135 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1136done
1137ac_signal=0
1138
1139# confdefs.h avoids OS command line length limits that DEFS can exceed.
1140rm -rf conftest* confdefs.h
1141# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1142echo >confdefs.h
1143
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001144# Predefined preprocessor variables.
1145
1146cat >>confdefs.h <<_ACEOF
1147#define PACKAGE_NAME "$PACKAGE_NAME"
1148_ACEOF
1149
1150
1151cat >>confdefs.h <<_ACEOF
1152#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1153_ACEOF
1154
1155
1156cat >>confdefs.h <<_ACEOF
1157#define PACKAGE_VERSION "$PACKAGE_VERSION"
1158_ACEOF
1159
1160
1161cat >>confdefs.h <<_ACEOF
1162#define PACKAGE_STRING "$PACKAGE_STRING"
1163_ACEOF
1164
1165
1166cat >>confdefs.h <<_ACEOF
1167#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1168_ACEOF
1169
1170
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001171# Let the site file select an alternate cache file if it wants to.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001172# Prefer explicitly selected file to automatically selected ones.
1173if test -z "$CONFIG_SITE"; then
1174 if test "x$prefix" != xNONE; then
1175 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1176 else
1177 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1178 fi
1179fi
1180for ac_site_file in $CONFIG_SITE; do
1181 if test -r "$ac_site_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001182 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001183echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001184 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001185 . "$ac_site_file"
1186 fi
1187done
1188
1189if test -r "$cache_file"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001190 # Some versions of bash will fail to source /dev/null (special
1191 # files actually), so we avoid doing that.
1192 if test -f "$cache_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001193 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001194echo "$as_me: loading cache $cache_file" >&6;}
1195 case $cache_file in
1196 [\\/]* | ?:[\\/]* ) . $cache_file;;
1197 *) . ./$cache_file;;
1198 esac
1199 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001200else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001201 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001202echo "$as_me: creating cache $cache_file" >&6;}
1203 >$cache_file
1204fi
1205
1206# Check that the precious variables saved in the cache have kept the same
1207# value.
1208ac_cache_corrupted=false
1209for ac_var in `(set) 2>&1 |
1210 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1211 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1212 eval ac_new_set=\$ac_env_${ac_var}_set
1213 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1214 eval ac_new_val="\$ac_env_${ac_var}_value"
1215 case $ac_old_set,$ac_new_set in
1216 set,)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001217 { 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 +00001218echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1219 ac_cache_corrupted=: ;;
1220 ,set)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001221 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001222echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1223 ac_cache_corrupted=: ;;
1224 ,);;
1225 *)
1226 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001227 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001228echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001229 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001230echo "$as_me: former value: $ac_old_val" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001231 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001232echo "$as_me: current value: $ac_new_val" >&2;}
1233 ac_cache_corrupted=:
1234 fi;;
1235 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001236 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001237 if test "$ac_new_set" = set; then
1238 case $ac_new_val in
1239 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001240 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1241 *) ac_arg=$ac_var=$ac_new_val ;;
1242 esac
1243 case " $ac_configure_args " in
1244 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1245 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001246 esac
1247 fi
1248done
1249if $ac_cache_corrupted; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001250 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001251echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001252 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001253echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1254 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001255fi
1256
1257ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001258ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1261ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001262
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001288
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001289
1290 ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001291
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001292ac_aux_dir=
1293for ac_dir in tools $srcdir/tools; do
1294 if test -f $ac_dir/install-sh; then
1295 ac_aux_dir=$ac_dir
1296 ac_install_sh="$ac_aux_dir/install-sh -c"
1297 break
1298 elif test -f $ac_dir/install.sh; then
1299 ac_aux_dir=$ac_dir
1300 ac_install_sh="$ac_aux_dir/install.sh -c"
1301 break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001302 elif test -f $ac_dir/shtool; then
1303 ac_aux_dir=$ac_dir
1304 ac_install_sh="$ac_aux_dir/shtool install -c"
1305 break
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001306 fi
1307done
1308if test -z "$ac_aux_dir"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001309 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001310echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1311 { (exit 1); exit 1; }; }
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001312fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001313ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1314ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1315ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Howard Abrams13277481999-07-10 13:16:29 +00001316
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001317
1318
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001319# Check whether --enable-win16 or --disable-win16 was given.
1320if test "${enable_win16+set}" = set; then
1321 enableval="$enable_win16"
1322
1323fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001324# Check whether --enable-debug or --disable-debug was given.
1325if test "${enable_debug+set}" = set; then
1326 enableval="$enable_debug"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001327
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001328fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001329# Check whether --enable-trace or --disable-trace was given.
1330if test "${enable_trace+set}" = set; then
1331 enableval="$enable_trace"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001332
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001333fi;
Alexandre Julliardb8074992002-11-21 21:51:24 +00001334
1335
1336# Check whether --with-opengl or --without-opengl was given.
1337if test "${with_opengl+set}" = set; then
1338 withval="$with_opengl"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001339
1340fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001341
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001342# Check whether --with-curses or --without-curses was given.
1343if test "${with_curses+set}" = set; then
1344 withval="$with_curses"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001345
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001346fi;
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001347
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001348# Check whether --with-wine-tools or --without-wine-tools was given.
1349if test "${with_wine_tools+set}" = set; then
1350 withval="$with_wine_tools"
1351
1352fi;
1353
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001354
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001355WIN16_FILES="\$(WIN16_FILES)"
1356
1357WIN16_INSTALL="\$(WIN16_INSTALL)"
1358
1359if test "x$enable_win16" = "xno"
1360then
1361 WIN16_FILES=""
1362 WIN16_INSTALL=""
1363fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001364if test "x$enable_debug" = "xno"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001365then
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001366
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001367cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001368#define NO_DEBUG_MSGS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001369_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001370
1371fi
1372if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001373then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001374
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001375cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001376#define NO_TRACE_MSGS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001377_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001378
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001379fi
1380
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001381
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001382# Make sure we can run config.sub.
1383$ac_config_sub sun4 >/dev/null 2>&1 ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001384 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001385echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1386 { (exit 1); exit 1; }; }
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001387
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001388echo "$as_me:$LINENO: checking build system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001389echo $ECHO_N "checking build system type... $ECHO_C" >&6
1390if test "${ac_cv_build+set}" = set; then
1391 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001392else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001393 ac_cv_build_alias=$build_alias
1394test -z "$ac_cv_build_alias" &&
1395 ac_cv_build_alias=`$ac_config_guess`
1396test -z "$ac_cv_build_alias" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001397 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001398echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1399 { (exit 1); exit 1; }; }
1400ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001401 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1402echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001403 { (exit 1); exit 1; }; }
1404
1405fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001406echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001407echo "${ECHO_T}$ac_cv_build" >&6
1408build=$ac_cv_build
1409build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1410build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1411build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1412
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001413
1414echo "$as_me:$LINENO: checking host system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001415echo $ECHO_N "checking host system type... $ECHO_C" >&6
1416if test "${ac_cv_host+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1418else
1419 ac_cv_host_alias=$host_alias
1420test -z "$ac_cv_host_alias" &&
1421 ac_cv_host_alias=$ac_cv_build_alias
1422ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001423 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001424echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1425 { (exit 1); exit 1; }; }
1426
1427fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001428echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001429echo "${ECHO_T}$ac_cv_host" >&6
1430host=$ac_cv_host
1431host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1432host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1433host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1434
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001435
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001436echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1437echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001438set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1439if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1441else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001442 cat >conftest.make <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001443all:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001444 @echo 'ac_maketemp="$(MAKE)"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001445_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001446# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001447eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001448if test -n "$ac_maketemp"; then
1449 eval ac_cv_prog_make_${ac_make}_set=yes
1450else
1451 eval ac_cv_prog_make_${ac_make}_set=no
1452fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001453rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001454fi
1455if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001456 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001457echo "${ECHO_T}yes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001458 SET_MAKE=
1459else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001460 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001461echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001462 SET_MAKE="MAKE=${MAKE-make}"
1463fi
1464
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001465ac_ext=c
1466ac_cpp='$CPP $CPPFLAGS'
1467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470if test -n "$ac_tool_prefix"; then
1471 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1472set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001473echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475if test "${ac_cv_prog_CC+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001477else
1478 if test -n "$CC"; then
1479 ac_cv_prog_CC="$CC" # Let the user override the test.
1480else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482for as_dir in $PATH
1483do
1484 IFS=$as_save_IFS
1485 test -z "$as_dir" && as_dir=.
1486 for ac_exec_ext in '' $ac_executable_extensions; do
1487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490 break 2
1491 fi
1492done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001493done
1494
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001495fi
1496fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001497CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001498if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001499 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001500echo "${ECHO_T}$CC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001501else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001502 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001503echo "${ECHO_T}no" >&6
1504fi
1505
1506fi
1507if test -z "$ac_cv_prog_CC"; then
1508 ac_ct_CC=$CC
1509 # Extract the first word of "gcc", so it can be a program name with args.
1510set dummy gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001511echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1514 echo $ECHO_N "(cached) $ECHO_C" >&6
1515else
1516 if test -n "$ac_ct_CC"; then
1517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1518else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1520for as_dir in $PATH
1521do
1522 IFS=$as_save_IFS
1523 test -z "$as_dir" && as_dir=.
1524 for ac_exec_ext in '' $ac_executable_extensions; do
1525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1526 ac_cv_prog_ac_ct_CC="gcc"
1527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1528 break 2
1529 fi
1530done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001531done
1532
1533fi
1534fi
1535ac_ct_CC=$ac_cv_prog_ac_ct_CC
1536if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001537 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001538echo "${ECHO_T}$ac_ct_CC" >&6
1539else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001540 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001541echo "${ECHO_T}no" >&6
1542fi
1543
1544 CC=$ac_ct_CC
1545else
1546 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001547fi
1548
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001549if test -z "$CC"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001550 if test -n "$ac_tool_prefix"; then
1551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1552set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001553echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555if test "${ac_cv_prog_CC+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001557else
1558 if test -n "$CC"; then
1559 ac_cv_prog_CC="$CC" # Let the user override the test.
1560else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562for as_dir in $PATH
1563do
1564 IFS=$as_save_IFS
1565 test -z "$as_dir" && as_dir=.
1566 for ac_exec_ext in '' $ac_executable_extensions; do
1567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568 ac_cv_prog_CC="${ac_tool_prefix}cc"
1569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570 break 2
1571 fi
1572done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001573done
1574
1575fi
1576fi
1577CC=$ac_cv_prog_CC
1578if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001579 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001580echo "${ECHO_T}$CC" >&6
1581else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001582 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001583echo "${ECHO_T}no" >&6
1584fi
1585
1586fi
1587if test -z "$ac_cv_prog_CC"; then
1588 ac_ct_CC=$CC
1589 # Extract the first word of "cc", so it can be a program name with args.
1590set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001591echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1595else
1596 if test -n "$ac_ct_CC"; then
1597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1598else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600for as_dir in $PATH
1601do
1602 IFS=$as_save_IFS
1603 test -z "$as_dir" && as_dir=.
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606 ac_cv_prog_ac_ct_CC="cc"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 break 2
1609 fi
1610done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001611done
1612
1613fi
1614fi
1615ac_ct_CC=$ac_cv_prog_ac_ct_CC
1616if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001617 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001618echo "${ECHO_T}$ac_ct_CC" >&6
1619else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001620 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001621echo "${ECHO_T}no" >&6
1622fi
1623
1624 CC=$ac_ct_CC
1625else
1626 CC="$ac_cv_prog_CC"
1627fi
1628
1629fi
1630if test -z "$CC"; then
1631 # Extract the first word of "cc", so it can be a program name with args.
1632set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001633echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635if test "${ac_cv_prog_CC+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637else
1638 if test -n "$CC"; then
1639 ac_cv_prog_CC="$CC" # Let the user override the test.
1640else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001641 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643for as_dir in $PATH
1644do
1645 IFS=$as_save_IFS
1646 test -z "$as_dir" && as_dir=.
1647 for ac_exec_ext in '' $ac_executable_extensions; do
1648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1650 ac_prog_rejected=yes
1651 continue
1652 fi
1653 ac_cv_prog_CC="cc"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 break 2
1656 fi
1657done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001658done
1659
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001660if test $ac_prog_rejected = yes; then
1661 # We found a bogon in the path, so make sure we never use it.
1662 set dummy $ac_cv_prog_CC
1663 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001664 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001665 # We chose a different compiler from the bogus one.
1666 # However, it has the same basename, so the bogon will be chosen
1667 # first if we set CC to just the basename; use the full file name.
1668 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001669 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001670 fi
1671fi
1672fi
1673fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001674CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001675if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001676 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001677echo "${ECHO_T}$CC" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001678else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001679 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001680echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001681fi
1682
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001683fi
1684if test -z "$CC"; then
1685 if test -n "$ac_tool_prefix"; then
1686 for ac_prog in cl
1687 do
1688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1689set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001690echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692if test "${ac_cv_prog_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001694else
1695 if test -n "$CC"; then
1696 ac_cv_prog_CC="$CC" # Let the user override the test.
1697else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699for as_dir in $PATH
1700do
1701 IFS=$as_save_IFS
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 break 2
1708 fi
1709done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001710done
1711
Eric Pouech18ad24a2000-01-16 22:16:33 +00001712fi
1713fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001714CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00001715if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001716 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001717echo "${ECHO_T}$CC" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001718else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001719 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001720echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001721fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001722
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001723 test -n "$CC" && break
1724 done
1725fi
1726if test -z "$CC"; then
1727 ac_ct_CC=$CC
1728 for ac_prog in cl
1729do
1730 # Extract the first word of "$ac_prog", so it can be a program name with args.
1731set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001732echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1736else
1737 if test -n "$ac_ct_CC"; then
1738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1739else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741for as_dir in $PATH
1742do
1743 IFS=$as_save_IFS
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_ac_ct_CC="$ac_prog"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749 break 2
1750 fi
1751done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001752done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001753
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001754fi
1755fi
1756ac_ct_CC=$ac_cv_prog_ac_ct_CC
1757if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001758 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001759echo "${ECHO_T}$ac_ct_CC" >&6
1760else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001761 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001762echo "${ECHO_T}no" >&6
1763fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001764
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001765 test -n "$ac_ct_CC" && break
1766done
Eric Pouech18ad24a2000-01-16 22:16:33 +00001767
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001768 CC=$ac_ct_CC
1769fi
1770
1771fi
1772
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001773
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001774test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1775See \`config.log' for more details." >&5
1776echo "$as_me: error: no acceptable C compiler found in \$PATH
1777See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001778 { (exit 1); exit 1; }; }
1779
1780# Provide some information about the compiler.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001781echo "$as_me:$LINENO:" \
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001782 "checking for C compiler version" >&5
1783ac_compiler=`set X $ac_compile; echo $2`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001784{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001785 (eval $ac_compiler --version </dev/null >&5) 2>&5
1786 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001788 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001789{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001790 (eval $ac_compiler -v </dev/null >&5) 2>&5
1791 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001793 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001794{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001795 (eval $ac_compiler -V </dev/null >&5) 2>&5
1796 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001798 (exit $ac_status); }
1799
1800cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001801#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001802/* confdefs.h. */
1803_ACEOF
1804cat confdefs.h >>conftest.$ac_ext
1805cat >>conftest.$ac_ext <<_ACEOF
1806/* end confdefs.h. */
Eric Pouech18ad24a2000-01-16 22:16:33 +00001807
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001808int
1809main ()
1810{
1811
1812 ;
1813 return 0;
1814}
1815_ACEOF
1816ac_clean_files_save=$ac_clean_files
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001817ac_clean_files="$ac_clean_files a.out a.exe b.out"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001818# Try to create an executable without -o first, disregard a.out.
1819# It will help us diagnose broken compilers, and finding out an intuition
1820# of exeext.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001821echo "$as_me:$LINENO: checking for C compiler default output" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001822echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1823ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001824if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001825 (eval $ac_link_default) 2>&5
1826 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001828 (exit $ac_status); }; then
1829 # Find the output, starting from the most likely. This scheme is
1830# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1831# resort.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001832
1833# Be careful to initialize this variable, since it used to be cached.
1834# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1835ac_cv_exeext=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001836# b.out is created by i960 compilers.
1837for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1838do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001839 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001840 case $ac_file in
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1842 ;;
1843 conftest.$ac_ext )
1844 # This is the source file.
1845 ;;
1846 [ab].out )
1847 # We found the default executable, but exeext='' is most
1848 # certainly right.
1849 break;;
1850 *.* )
1851 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1852 # FIXME: I believe we export ac_cv_exeext for Libtool,
1853 # but it would be cool to find out if it's true. Does anybody
1854 # maintain Libtool? --akim.
1855 export ac_cv_exeext
1856 break;;
1857 * )
1858 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001859 esac
1860done
1861else
1862 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001863sed 's/^/| /' conftest.$ac_ext >&5
1864
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001865{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001866See \`config.log' for more details." >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001867echo "$as_me: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001868See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001869 { (exit 77); exit 77; }; }
1870fi
1871
1872ac_exeext=$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001873echo "$as_me:$LINENO: result: $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001874echo "${ECHO_T}$ac_file" >&6
1875
1876# Check the compiler produces executables we can run. If not, either
1877# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001878echo "$as_me:$LINENO: checking whether the C compiler works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001879echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1880# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1881# If not cross compiling, check that we can run a simple program.
1882if test "$cross_compiling" != yes; then
1883 if { ac_try='./$ac_file'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001885 (eval $ac_try) 2>&5
1886 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001888 (exit $ac_status); }; }; then
1889 cross_compiling=no
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001890 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001891 if test "$cross_compiling" = maybe; then
1892 cross_compiling=yes
1893 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001894 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001895If you meant to cross compile, use \`--host'.
1896See \`config.log' for more details." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001897echo "$as_me: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001898If you meant to cross compile, use \`--host'.
1899See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001900 { (exit 1); exit 1; }; }
1901 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001902 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001903fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001904echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001905echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001906
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001907rm -f a.out a.exe conftest$ac_cv_exeext b.out
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001908ac_clean_files=$ac_clean_files_save
1909# Check the compiler produces executables we can run. If not, either
1910# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001911echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001912echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001913echo "$as_me:$LINENO: result: $cross_compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001914echo "${ECHO_T}$cross_compiling" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001915
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001916echo "$as_me:$LINENO: checking for suffix of executables" >&5
1917echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001919 (eval $ac_link) 2>&5
1920 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001922 (exit $ac_status); }; then
1923 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1924# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1925# work properly (i.e., refer to `conftest.exe'), while it won't with
1926# `rm'.
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001927for ac_file in conftest.exe conftest conftest.*; do
1928 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001929 case $ac_file in
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001931 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1932 export ac_cv_exeext
1933 break;;
1934 * ) break;;
1935 esac
1936done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001937else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001938 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1939See \`config.log' for more details." >&5
1940echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1941See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001942 { (exit 1); exit 1; }; }
1943fi
1944
1945rm -f conftest$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001946echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001947echo "${ECHO_T}$ac_cv_exeext" >&6
1948
1949rm -f conftest.$ac_ext
1950EXEEXT=$ac_cv_exeext
1951ac_exeext=$EXEEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001952echo "$as_me:$LINENO: checking for suffix of object files" >&5
1953echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001954if test "${ac_cv_objext+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1956else
1957 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001958#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001959/* confdefs.h. */
1960_ACEOF
1961cat confdefs.h >>conftest.$ac_ext
1962cat >>conftest.$ac_ext <<_ACEOF
1963/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001964
1965int
1966main ()
1967{
1968
1969 ;
1970 return 0;
1971}
1972_ACEOF
1973rm -f conftest.o conftest.obj
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001975 (eval $ac_compile) 2>&5
1976 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001978 (exit $ac_status); }; then
1979 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1980 case $ac_file in
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001982 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1983 break;;
1984 esac
1985done
1986else
1987 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001988sed 's/^/| /' conftest.$ac_ext >&5
1989
1990{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1991See \`config.log' for more details." >&5
1992echo "$as_me: error: cannot compute suffix of object files: cannot compile
1993See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001994 { (exit 1); exit 1; }; }
1995fi
1996
1997rm -f conftest.$ac_cv_objext conftest.$ac_ext
1998fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001999echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002000echo "${ECHO_T}$ac_cv_objext" >&6
2001OBJEXT=$ac_cv_objext
2002ac_objext=$OBJEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002003echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002004echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2005if test "${ac_cv_c_compiler_gnu+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2007else
2008 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002009#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002010/* confdefs.h. */
2011_ACEOF
2012cat confdefs.h >>conftest.$ac_ext
2013cat >>conftest.$ac_ext <<_ACEOF
2014/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002015
2016int
2017main ()
2018{
2019#ifndef __GNUC__
2020 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002021#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002022
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002023 ;
2024 return 0;
2025}
2026_ACEOF
2027rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002029 (eval $ac_compile) 2>&5
2030 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002032 (exit $ac_status); } &&
2033 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002035 (eval $ac_try) 2>&5
2036 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002038 (exit $ac_status); }; }; then
2039 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00002040else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002041 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002042sed 's/^/| /' conftest.$ac_ext >&5
2043
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002044ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00002045fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002046rm -f conftest.$ac_objext conftest.$ac_ext
2047ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00002048
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002049fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002050echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002051echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2052GCC=`test $ac_compiler_gnu = yes && echo yes`
2053ac_test_CFLAGS=${CFLAGS+set}
2054ac_save_CFLAGS=$CFLAGS
2055CFLAGS="-g"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002056echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002057echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2058if test "${ac_cv_prog_cc_g+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002060else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002061 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002062#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002063/* confdefs.h. */
2064_ACEOF
2065cat confdefs.h >>conftest.$ac_ext
2066cat >>conftest.$ac_ext <<_ACEOF
2067/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002068
2069int
2070main ()
2071{
2072
2073 ;
2074 return 0;
2075}
2076_ACEOF
2077rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002079 (eval $ac_compile) 2>&5
2080 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002082 (exit $ac_status); } &&
2083 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002085 (eval $ac_try) 2>&5
2086 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002088 (exit $ac_status); }; }; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002089 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002090else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002091 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002092sed 's/^/| /' conftest.$ac_ext >&5
2093
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002094ac_cv_prog_cc_g=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002095fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002096rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002097fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002098echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002099echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00002100if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002101 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00002102elif test $ac_cv_prog_cc_g = yes; then
2103 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002104 CFLAGS="-g -O2"
2105 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002106 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002107 fi
2108else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002109 if test "$GCC" = yes; then
2110 CFLAGS="-O2"
2111 else
2112 CFLAGS=
2113 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002114fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002115echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2116echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2117if test "${ac_cv_prog_cc_stdc+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2119else
2120 ac_cv_prog_cc_stdc=no
2121ac_save_CC=$CC
2122cat >conftest.$ac_ext <<_ACEOF
2123#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002124/* confdefs.h. */
2125_ACEOF
2126cat confdefs.h >>conftest.$ac_ext
2127cat >>conftest.$ac_ext <<_ACEOF
2128/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002129#include <stdarg.h>
2130#include <stdio.h>
2131#include <sys/types.h>
2132#include <sys/stat.h>
2133/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2134struct buf { int x; };
2135FILE * (*rcsopen) (struct buf *, struct stat *, int);
2136static char *e (p, i)
2137 char **p;
2138 int i;
2139{
2140 return p[i];
2141}
2142static char *f (char * (*g) (char **, int), char **p, ...)
2143{
2144 char *s;
2145 va_list v;
2146 va_start (v,p);
2147 s = g (p, va_arg (v,int));
2148 va_end (v);
2149 return s;
2150}
2151int test (int i, double x);
2152struct s1 {int (*f) (int a);};
2153struct s2 {int (*f) (double a);};
2154int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2155int argc;
2156char **argv;
2157int
2158main ()
2159{
2160return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2161 ;
2162 return 0;
2163}
2164_ACEOF
2165# Don't try gcc -ansi; that turns off useful extensions and
2166# breaks some systems' header files.
2167# AIX -qlanglvl=ansi
2168# Ultrix and OSF/1 -std1
2169# HP-UX 10.20 and later -Ae
2170# HP-UX older versions -Aa -D_HPUX_SOURCE
2171# SVR4 -Xc -D__EXTENSIONS__
2172for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2173do
2174 CC="$ac_save_CC $ac_arg"
2175 rm -f conftest.$ac_objext
2176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2177 (eval $ac_compile) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); } &&
2181 { ac_try='test -s conftest.$ac_objext'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2187 ac_cv_prog_cc_stdc=$ac_arg
2188break
2189else
2190 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002191sed 's/^/| /' conftest.$ac_ext >&5
2192
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002193fi
2194rm -f conftest.$ac_objext
2195done
2196rm -f conftest.$ac_ext conftest.$ac_objext
2197CC=$ac_save_CC
2198
2199fi
2200
2201case "x$ac_cv_prog_cc_stdc" in
2202 x|xno)
2203 echo "$as_me:$LINENO: result: none needed" >&5
2204echo "${ECHO_T}none needed" >&6 ;;
2205 *)
2206 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2207echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2208 CC="$CC $ac_cv_prog_cc_stdc" ;;
2209esac
2210
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002211# Some people use a C++ compiler to compile C. Since we use `exit',
2212# in C++ we need to declare it. In case someone uses the same compiler
2213# for both compiling C and C++ we need to have the C++ compiler decide
2214# the declaration of exit, since it's the most demanding environment.
2215cat >conftest.$ac_ext <<_ACEOF
2216#ifndef __cplusplus
2217 choke me
2218#endif
2219_ACEOF
2220rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002222 (eval $ac_compile) 2>&5
2223 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002225 (exit $ac_status); } &&
2226 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002228 (eval $ac_try) 2>&5
2229 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002231 (exit $ac_status); }; }; then
2232 for ac_declaration in \
2233 ''\
2234 '#include <stdlib.h>' \
2235 'extern "C" void std::exit (int) throw (); using std::exit;' \
2236 'extern "C" void std::exit (int); using std::exit;' \
2237 'extern "C" void exit (int) throw ();' \
2238 'extern "C" void exit (int);' \
2239 'void exit (int);'
2240do
2241 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002242#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002243/* confdefs.h. */
2244_ACEOF
2245cat confdefs.h >>conftest.$ac_ext
2246cat >>conftest.$ac_ext <<_ACEOF
2247/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002248#include <stdlib.h>
2249$ac_declaration
2250int
2251main ()
2252{
2253exit (42);
2254 ;
2255 return 0;
2256}
2257_ACEOF
2258rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002260 (eval $ac_compile) 2>&5
2261 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002263 (exit $ac_status); } &&
2264 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002266 (eval $ac_try) 2>&5
2267 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002269 (exit $ac_status); }; }; then
2270 :
2271else
2272 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002273sed 's/^/| /' conftest.$ac_ext >&5
2274
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002275continue
2276fi
2277rm -f conftest.$ac_objext conftest.$ac_ext
2278 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002279#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002280/* confdefs.h. */
2281_ACEOF
2282cat confdefs.h >>conftest.$ac_ext
2283cat >>conftest.$ac_ext <<_ACEOF
2284/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002285$ac_declaration
2286int
2287main ()
2288{
2289exit (42);
2290 ;
2291 return 0;
2292}
2293_ACEOF
2294rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002296 (eval $ac_compile) 2>&5
2297 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002299 (exit $ac_status); } &&
2300 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002302 (eval $ac_try) 2>&5
2303 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002305 (exit $ac_status); }; }; then
2306 break
2307else
2308 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002309sed 's/^/| /' conftest.$ac_ext >&5
2310
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002311fi
2312rm -f conftest.$ac_objext conftest.$ac_ext
2313done
2314rm -f conftest*
2315if test -n "$ac_declaration"; then
2316 echo '#ifdef __cplusplus' >>confdefs.h
2317 echo $ac_declaration >>confdefs.h
2318 echo '#endif' >>confdefs.h
2319fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002320
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002321else
2322 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002323sed 's/^/| /' conftest.$ac_ext >&5
2324
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002325fi
2326rm -f conftest.$ac_objext conftest.$ac_ext
2327ac_ext=c
2328ac_cpp='$CPP $CPPFLAGS'
2329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331ac_compiler_gnu=$ac_cv_c_compiler_gnu
2332
2333ac_ext=c
2334ac_cpp='$CPP $CPPFLAGS'
2335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2337ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002338echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002339echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002340# On Suns, sometimes $CPP names a directory.
2341if test -n "$CPP" && test -d "$CPP"; then
2342 CPP=
2343fi
2344if test -z "$CPP"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002345 if test "${ac_cv_prog_CPP+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002347else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002348 # Double quotes because CPP needs to be expanded
2349 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2350 do
2351 ac_preproc_ok=false
2352for ac_c_preproc_warn_flag in '' yes
2353do
2354 # Use a header file that comes with gcc, so configuring glibc
2355 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2357 # <limits.h> exists even on freestanding compilers.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002358 # On the NeXT, cc -E runs the code through the compiler's parser,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002359 # not just through cpp. "Syntax error" is here to catch this case.
2360 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002361#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002362/* confdefs.h. */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h. */
2367#ifdef __STDC__
2368# include <limits.h>
2369#else
2370# include <assert.h>
2371#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002372 Syntax error
2373_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002374if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2376 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002377 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002378 rm -f conftest.er1
2379 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002381 (exit $ac_status); } >/dev/null; then
2382 if test -s conftest.err; then
2383 ac_cpp_err=$ac_c_preproc_warn_flag
2384 else
2385 ac_cpp_err=
2386 fi
2387else
2388 ac_cpp_err=yes
2389fi
2390if test -z "$ac_cpp_err"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002391 :
2392else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002393 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002394sed 's/^/| /' conftest.$ac_ext >&5
2395
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002396 # Broken: fails on valid input.
2397continue
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002398fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002399rm -f conftest.err conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002400
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002401 # OK, works on sane cases. Now check whether non-existent headers
2402 # can be detected and how.
2403 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002404#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002405/* confdefs.h. */
2406_ACEOF
2407cat confdefs.h >>conftest.$ac_ext
2408cat >>conftest.$ac_ext <<_ACEOF
2409/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002410#include <ac_nonexistent.h>
2411_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002412if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2414 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002415 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002416 rm -f conftest.er1
2417 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002419 (exit $ac_status); } >/dev/null; then
2420 if test -s conftest.err; then
2421 ac_cpp_err=$ac_c_preproc_warn_flag
2422 else
2423 ac_cpp_err=
2424 fi
2425else
2426 ac_cpp_err=yes
2427fi
2428if test -z "$ac_cpp_err"; then
2429 # Broken: success on invalid input.
2430continue
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 +00002435 # Passes both tests.
2436ac_preproc_ok=:
2437break
2438fi
2439rm -f conftest.err conftest.$ac_ext
2440
2441done
2442# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2443rm -f conftest.err conftest.$ac_ext
2444if $ac_preproc_ok; then
2445 break
2446fi
2447
2448 done
2449 ac_cv_prog_CPP=$CPP
2450
2451fi
2452 CPP=$ac_cv_prog_CPP
2453else
2454 ac_cv_prog_CPP=$CPP
2455fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002456echo "$as_me:$LINENO: result: $CPP" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002457echo "${ECHO_T}$CPP" >&6
2458ac_preproc_ok=false
2459for ac_c_preproc_warn_flag in '' yes
2460do
2461 # Use a header file that comes with gcc, so configuring glibc
2462 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2464 # <limits.h> exists even on freestanding compilers.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002465 # On the NeXT, cc -E runs the code through the compiler's parser,
2466 # not just through cpp. "Syntax error" is here to catch this case.
2467 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002468#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002469/* confdefs.h. */
2470_ACEOF
2471cat confdefs.h >>conftest.$ac_ext
2472cat >>conftest.$ac_ext <<_ACEOF
2473/* end confdefs.h. */
2474#ifdef __STDC__
2475# include <limits.h>
2476#else
2477# include <assert.h>
2478#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002479 Syntax error
2480_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2483 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002484 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002485 rm -f conftest.er1
2486 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002488 (exit $ac_status); } >/dev/null; then
2489 if test -s conftest.err; then
2490 ac_cpp_err=$ac_c_preproc_warn_flag
2491 else
2492 ac_cpp_err=
2493 fi
2494else
2495 ac_cpp_err=yes
2496fi
2497if test -z "$ac_cpp_err"; then
2498 :
2499else
2500 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002501sed 's/^/| /' conftest.$ac_ext >&5
2502
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002503 # Broken: fails on valid input.
2504continue
2505fi
2506rm -f conftest.err conftest.$ac_ext
2507
2508 # OK, works on sane cases. Now check whether non-existent headers
2509 # can be detected and how.
2510 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002511#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002512/* confdefs.h. */
2513_ACEOF
2514cat confdefs.h >>conftest.$ac_ext
2515cat >>conftest.$ac_ext <<_ACEOF
2516/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002517#include <ac_nonexistent.h>
2518_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002519if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2521 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002522 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002523 rm -f conftest.er1
2524 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002526 (exit $ac_status); } >/dev/null; then
2527 if test -s conftest.err; then
2528 ac_cpp_err=$ac_c_preproc_warn_flag
2529 else
2530 ac_cpp_err=
2531 fi
2532else
2533 ac_cpp_err=yes
2534fi
2535if test -z "$ac_cpp_err"; then
2536 # Broken: success on invalid input.
2537continue
2538else
2539 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002540sed 's/^/| /' conftest.$ac_ext >&5
2541
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002542 # Passes both tests.
2543ac_preproc_ok=:
2544break
2545fi
2546rm -f conftest.err conftest.$ac_ext
2547
2548done
2549# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2550rm -f conftest.err conftest.$ac_ext
2551if $ac_preproc_ok; then
2552 :
2553else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002554 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2555See \`config.log' for more details." >&5
2556echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2557See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002558 { (exit 1); exit 1; }; }
2559fi
2560
2561ac_ext=c
2562ac_cpp='$CPP $CPPFLAGS'
2563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002567
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002568echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2569echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2570if test "${wine_cv_toolsdir+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2572else
2573 if test -z "$with_wine_tools"; then
2574 if test "$cross_compiling" = "yes"; then
2575 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2576echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2577 { (exit 1); exit 1; }; }
2578 else
2579 wine_cv_toolsdir="\$(TOPOBJDIR)"
2580 fi
2581 elif test -d "$with_wine_tools/tools/winebuild"; then
2582 case $with_wine_tools in
2583 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2584 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2585 esac
2586 else
2587 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2588echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2589 { (exit 1); exit 1; }; }
2590 fi
2591fi
2592echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2593echo "${ECHO_T}$wine_cv_toolsdir" >&6
2594TOOLSDIR=$wine_cv_toolsdir
2595
2596
2597
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002598
2599echo "$as_me:$LINENO: checking for X" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002600echo $ECHO_N "checking for X... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002601
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002602
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002603# Check whether --with-x or --without-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002604if test "${with_x+set}" = set; then
2605 withval="$with_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002606
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002607fi;
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002608# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002609if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002610 # The user explicitly disabled X.
2611 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002612else
2613 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002614 # Both variables are already set.
2615 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002616 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002617 if test "${ac_cv_have_x+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002619else
2620 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002621ac_x_includes=no ac_x_libraries=no
2622rm -fr conftest.dir
2623if mkdir conftest.dir; then
2624 cd conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002625 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002626 cat >Imakefile <<'_ACEOF'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002627acfindx:
2628 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002629_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002630 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002631 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002632 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002633 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2634 for ac_extension in a so sl; do
2635 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002636 test -f $ac_im_libdir/libX11.$ac_extension; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002637 ac_im_usrlibdir=$ac_im_libdir; break
2638 fi
2639 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002640 # Screen out bogus values from the imake configuration. They are
2641 # bogus both because they are the default anyway, and because
2642 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002643 case $ac_im_incroot in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002644 /usr/include) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002645 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002646 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002647 case $ac_im_usrlibdir in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002648 /usr/lib | /lib) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002649 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002650 esac
2651 fi
2652 cd ..
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002653 rm -fr conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002654fi
2655
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002656# Standard set of common directories for X headers.
2657# Check X11 before X11Rn because it is often a symlink to the current release.
2658ac_x_header_dirs='
2659/usr/X11/include
2660/usr/X11R6/include
2661/usr/X11R5/include
2662/usr/X11R4/include
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002663
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002664/usr/include/X11
2665/usr/include/X11R6
2666/usr/include/X11R5
2667/usr/include/X11R4
2668
2669/usr/local/X11/include
2670/usr/local/X11R6/include
2671/usr/local/X11R5/include
2672/usr/local/X11R4/include
2673
2674/usr/local/include/X11
2675/usr/local/include/X11R6
2676/usr/local/include/X11R5
2677/usr/local/include/X11R4
2678
2679/usr/X386/include
2680/usr/x386/include
2681/usr/XFree86/include/X11
2682
2683/usr/include
2684/usr/local/include
2685/usr/unsupported/include
2686/usr/athena/include
2687/usr/local/x11r5/include
2688/usr/lpp/Xamples/include
2689
2690/usr/openwin/include
2691/usr/openwin/share/include'
2692
2693if test "$ac_x_includes" = no; then
2694 # Guess where to find include files, by looking for Intrinsic.h.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002695 # First, try using that file with no special directory specified.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002696 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002697#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002698/* confdefs.h. */
2699_ACEOF
2700cat confdefs.h >>conftest.$ac_ext
2701cat >>conftest.$ac_ext <<_ACEOF
2702/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002703#include <X11/Intrinsic.h>
2704_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2707 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002708 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002709 rm -f conftest.er1
2710 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002712 (exit $ac_status); } >/dev/null; then
2713 if test -s conftest.err; then
2714 ac_cpp_err=$ac_c_preproc_warn_flag
2715 else
2716 ac_cpp_err=
2717 fi
2718else
2719 ac_cpp_err=yes
2720fi
2721if test -z "$ac_cpp_err"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002722 # We can compile using X headers with no special include directory.
2723ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002724else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002725 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002726sed 's/^/| /' conftest.$ac_ext >&5
2727
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002728 for ac_dir in $ac_x_header_dirs; do
2729 if test -r "$ac_dir/X11/Intrinsic.h"; then
2730 ac_x_includes=$ac_dir
2731 break
2732 fi
2733done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002734fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002735rm -f conftest.err conftest.$ac_ext
2736fi # $ac_x_includes = no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002737
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002738if test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002739 # Check for the libraries.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002740 # See if we find them without any special options.
2741 # Don't add to $LIBS permanently.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002742 ac_save_LIBS=$LIBS
2743 LIBS="-lXt $LIBS"
2744 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002745#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002746/* confdefs.h. */
2747_ACEOF
2748cat confdefs.h >>conftest.$ac_ext
2749cat >>conftest.$ac_ext <<_ACEOF
2750/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002751#include <X11/Intrinsic.h>
2752int
2753main ()
2754{
2755XtMalloc (0)
2756 ;
2757 return 0;
2758}
2759_ACEOF
2760rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002762 (eval $ac_link) 2>&5
2763 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002765 (exit $ac_status); } &&
2766 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002768 (eval $ac_try) 2>&5
2769 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002771 (exit $ac_status); }; }; then
2772 LIBS=$ac_save_LIBS
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002773# We can link X programs with no special library path.
2774ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002775else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002776 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002777sed 's/^/| /' conftest.$ac_ext >&5
2778
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002779LIBS=$ac_save_LIBS
2780for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002781do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002782 # Don't even attempt the hair of trying to link an X program!
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002783 for ac_extension in a so sl; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002784 if test -r $ac_dir/libXt.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002785 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002786 break 2
2787 fi
2788 done
2789done
2790fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002791rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2792fi # $ac_x_libraries = no
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002793
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002794if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002795 # Didn't find X anywhere. Cache the known absence of X.
2796 ac_cv_have_x="have_x=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002797else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002798 # Record where we found X for the cache.
2799 ac_cv_have_x="have_x=yes \
2800 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002801fi
2802fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002803
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002804 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002805 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002806fi # $with_x != no
2807
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002808if test "$have_x" != yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002809 echo "$as_me:$LINENO: result: $have_x" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002810echo "${ECHO_T}$have_x" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002811 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002812else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002813 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002814 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2815 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002816 # Update the cache value to reflect the command line values.
2817 ac_cv_have_x="have_x=yes \
2818 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002819 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002820echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002821fi
2822
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002823if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002824 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002825
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002826cat >>confdefs.h <<\_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002827#define X_DISPLAY_MISSING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002828_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002829
2830 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002831else
2832 if test -n "$x_includes"; then
2833 X_CFLAGS="$X_CFLAGS -I$x_includes"
2834 fi
2835
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002836 # It would also be nice to do this for all -L options, not just this one.
2837 if test -n "$x_libraries"; then
2838 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002839 # For Solaris; some versions of Sun CC require a space after -R and
2840 # others require no space. Words are not sufficient . . . .
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002841 case `(uname -sr) 2>/dev/null` in
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002842 "SunOS 5"*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002843 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002844echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2845 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2846 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002847#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002848/* confdefs.h. */
2849_ACEOF
2850cat confdefs.h >>conftest.$ac_ext
2851cat >>conftest.$ac_ext <<_ACEOF
2852/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002853
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002854int
2855main ()
2856{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002857
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002858 ;
2859 return 0;
2860}
2861_ACEOF
2862rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002864 (eval $ac_link) 2>&5
2865 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002867 (exit $ac_status); } &&
2868 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002870 (eval $ac_try) 2>&5
2871 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002873 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002874 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002875else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002876 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002877sed 's/^/| /' conftest.$ac_ext >&5
2878
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002879ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002880fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002881rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002882 if test $ac_R_nospace = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002883 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002884echo "${ECHO_T}no" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002885 X_LIBS="$X_LIBS -R$x_libraries"
2886 else
2887 LIBS="$ac_xsave_LIBS -R $x_libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002888 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002889#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002890/* confdefs.h. */
2891_ACEOF
2892cat confdefs.h >>conftest.$ac_ext
2893cat >>conftest.$ac_ext <<_ACEOF
2894/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002895
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002896int
2897main ()
2898{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002899
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002900 ;
2901 return 0;
2902}
2903_ACEOF
2904rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002906 (eval $ac_link) 2>&5
2907 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002909 (exit $ac_status); } &&
2910 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002912 (eval $ac_try) 2>&5
2913 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002915 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002916 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002917else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002918 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002919sed 's/^/| /' conftest.$ac_ext >&5
2920
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002921ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002922fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002923rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002924 if test $ac_R_space = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002925 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002926echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002927 X_LIBS="$X_LIBS -R $x_libraries"
2928 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002929 echo "$as_me:$LINENO: result: neither works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002930echo "${ECHO_T}neither works" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002931 fi
2932 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002933 LIBS=$ac_xsave_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002934 esac
2935 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002936
2937 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002938 # Do this before checking for the system-independent R6 libraries
2939 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002940
2941 if test "$ISC" = yes; then
2942 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2943 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002944 # Martyn Johnson says this is needed for Ultrix, if the X
2945 # libraries were built with DECnet support. And Karl Berry says
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002946 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002947 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2948 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002949#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002950/* confdefs.h. */
2951_ACEOF
2952cat confdefs.h >>conftest.$ac_ext
2953cat >>conftest.$ac_ext <<_ACEOF
2954/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002955
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002956/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002957#ifdef __cplusplus
2958extern "C"
2959#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002960/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002961 builtin and then its argument prototype would still apply. */
2962char XOpenDisplay ();
2963int
2964main ()
2965{
2966XOpenDisplay ();
2967 ;
2968 return 0;
2969}
2970_ACEOF
2971rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002973 (eval $ac_link) 2>&5
2974 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002976 (exit $ac_status); } &&
2977 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002979 (eval $ac_try) 2>&5
2980 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002982 (exit $ac_status); }; }; then
2983 :
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002984else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002985 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002986sed 's/^/| /' conftest.$ac_ext >&5
2987
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002988echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002989echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2990if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2992else
2993 ac_check_lib_save_LIBS=$LIBS
2994LIBS="-ldnet $LIBS"
2995cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002996#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002997/* confdefs.h. */
2998_ACEOF
2999cat confdefs.h >>conftest.$ac_ext
3000cat >>conftest.$ac_ext <<_ACEOF
3001/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003002
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003003/* Override any gcc2 internal prototype to avoid an error. */
3004#ifdef __cplusplus
3005extern "C"
3006#endif
3007/* We use char because int might match the return type of a gcc2
3008 builtin and then its argument prototype would still apply. */
3009char dnet_ntoa ();
3010int
3011main ()
3012{
3013dnet_ntoa ();
3014 ;
3015 return 0;
3016}
3017_ACEOF
3018rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003020 (eval $ac_link) 2>&5
3021 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003023 (exit $ac_status); } &&
3024 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003026 (eval $ac_try) 2>&5
3027 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003029 (exit $ac_status); }; }; then
3030 ac_cv_lib_dnet_dnet_ntoa=yes
3031else
3032 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003033sed 's/^/| /' conftest.$ac_ext >&5
3034
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003035ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003036fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003037rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3038LIBS=$ac_check_lib_save_LIBS
3039fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003040echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003041echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3042if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003043 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003044fi
3045
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003046 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003047 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003048echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3049if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003051else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003052 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003053LIBS="-ldnet_stub $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003054cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003055#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003056/* confdefs.h. */
3057_ACEOF
3058cat confdefs.h >>conftest.$ac_ext
3059cat >>conftest.$ac_ext <<_ACEOF
3060/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003061
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003062/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003063#ifdef __cplusplus
3064extern "C"
3065#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003066/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003067 builtin and then its argument prototype would still apply. */
3068char dnet_ntoa ();
3069int
3070main ()
3071{
3072dnet_ntoa ();
3073 ;
3074 return 0;
3075}
3076_ACEOF
3077rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003079 (eval $ac_link) 2>&5
3080 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003082 (exit $ac_status); } &&
3083 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003085 (eval $ac_try) 2>&5
3086 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003088 (exit $ac_status); }; }; then
3089 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003090else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003091 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003092sed 's/^/| /' conftest.$ac_ext >&5
3093
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003094ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003095fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003096rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3097LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003098fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003099echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003100echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3101if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003102 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003103fi
3104
3105 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003106fi
3107rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3108 LIBS="$ac_xsave_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003109
3110 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3111 # to get the SysV transport functions.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003112 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003113 # needs -lnsl.
3114 # The nsl library prevents programs from opening the X display
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003115 # on Irix 5.2, according to T.E. Dickey.
3116 # The functions gethostbyname, getservbyname, and inet_addr are
3117 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003118 echo "$as_me:$LINENO: checking for gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003119echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3120if test "${ac_cv_func_gethostbyname+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003122else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003123 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003124#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003125/* confdefs.h. */
3126_ACEOF
3127cat confdefs.h >>conftest.$ac_ext
3128cat >>conftest.$ac_ext <<_ACEOF
3129/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003130/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003131 which can conflict with char gethostbyname (); below.
3132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3133 <limits.h> exists even on freestanding compilers. */
3134#ifdef __STDC__
3135# include <limits.h>
3136#else
3137# include <assert.h>
3138#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003139/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003140#ifdef __cplusplus
3141extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003142{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003143#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003144/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003145 builtin and then its argument prototype would still apply. */
3146char gethostbyname ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003147/* The GNU C library defines this for functions which it implements
3148 to always fail with ENOSYS. Some functions are actually named
3149 something starting with __ and the normal name is an alias. */
3150#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3151choke me
3152#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003153char (*f) () = gethostbyname;
3154#endif
3155#ifdef __cplusplus
3156}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003157#endif
3158
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003159int
3160main ()
3161{
3162return f != gethostbyname;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003163 ;
3164 return 0;
3165}
3166_ACEOF
3167rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003169 (eval $ac_link) 2>&5
3170 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003172 (exit $ac_status); } &&
3173 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003175 (eval $ac_try) 2>&5
3176 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003178 (exit $ac_status); }; }; then
3179 ac_cv_func_gethostbyname=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003180else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003181 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003182sed 's/^/| /' conftest.$ac_ext >&5
3183
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003184ac_cv_func_gethostbyname=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003185fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003186rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003187fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003188echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003189echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003190
3191 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003192 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003193echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3194if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003196else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003197 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003198LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003199cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003200#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003201/* confdefs.h. */
3202_ACEOF
3203cat confdefs.h >>conftest.$ac_ext
3204cat >>conftest.$ac_ext <<_ACEOF
3205/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003206
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003207/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003208#ifdef __cplusplus
3209extern "C"
3210#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003211/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003212 builtin and then its argument prototype would still apply. */
3213char gethostbyname ();
3214int
3215main ()
3216{
3217gethostbyname ();
3218 ;
3219 return 0;
3220}
3221_ACEOF
3222rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003224 (eval $ac_link) 2>&5
3225 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003227 (exit $ac_status); } &&
3228 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003230 (eval $ac_try) 2>&5
3231 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003233 (exit $ac_status); }; }; then
3234 ac_cv_lib_nsl_gethostbyname=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003235else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003236 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003237sed 's/^/| /' conftest.$ac_ext >&5
3238
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003239ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003240fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003241rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3242LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003243fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003244echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003245echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3246if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003247 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003248fi
3249
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003250 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003251 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003252echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3253if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255else
3256 ac_check_lib_save_LIBS=$LIBS
3257LIBS="-lbsd $LIBS"
3258cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003259#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003260/* confdefs.h. */
3261_ACEOF
3262cat confdefs.h >>conftest.$ac_ext
3263cat >>conftest.$ac_ext <<_ACEOF
3264/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003265
3266/* Override any gcc2 internal prototype to avoid an error. */
3267#ifdef __cplusplus
3268extern "C"
3269#endif
3270/* We use char because int might match the return type of a gcc2
3271 builtin and then its argument prototype would still apply. */
3272char gethostbyname ();
3273int
3274main ()
3275{
3276gethostbyname ();
3277 ;
3278 return 0;
3279}
3280_ACEOF
3281rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003283 (eval $ac_link) 2>&5
3284 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003286 (exit $ac_status); } &&
3287 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003289 (eval $ac_try) 2>&5
3290 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003292 (exit $ac_status); }; }; then
3293 ac_cv_lib_bsd_gethostbyname=yes
3294else
3295 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003296sed 's/^/| /' conftest.$ac_ext >&5
3297
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003298ac_cv_lib_bsd_gethostbyname=no
3299fi
3300rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3301LIBS=$ac_check_lib_save_LIBS
3302fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003303echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003304echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3305if test $ac_cv_lib_bsd_gethostbyname = yes; then
3306 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3307fi
3308
3309 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003310 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003311
3312 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003313 # socket/setsockopt and other routines are undefined under SCO ODT
3314 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003315 # on later versions), says Simon Leinen: it contains gethostby*
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003316 # variants that don't use the name server (or something). -lsocket
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003317 # must be given before -lnsl if both are needed. We assume that
3318 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003319 echo "$as_me:$LINENO: checking for connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003320echo $ECHO_N "checking for connect... $ECHO_C" >&6
3321if test "${ac_cv_func_connect+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003323else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003324 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003325#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003326/* confdefs.h. */
3327_ACEOF
3328cat confdefs.h >>conftest.$ac_ext
3329cat >>conftest.$ac_ext <<_ACEOF
3330/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003331/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003332 which can conflict with char connect (); below.
3333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3334 <limits.h> exists even on freestanding compilers. */
3335#ifdef __STDC__
3336# include <limits.h>
3337#else
3338# include <assert.h>
3339#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003340/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003341#ifdef __cplusplus
3342extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003343{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003344#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003345/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003346 builtin and then its argument prototype would still apply. */
3347char connect ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003348/* The GNU C library defines this for functions which it implements
3349 to always fail with ENOSYS. Some functions are actually named
3350 something starting with __ and the normal name is an alias. */
3351#if defined (__stub_connect) || defined (__stub___connect)
3352choke me
3353#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003354char (*f) () = connect;
3355#endif
3356#ifdef __cplusplus
3357}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003358#endif
3359
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003360int
3361main ()
3362{
3363return f != connect;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003364 ;
3365 return 0;
3366}
3367_ACEOF
3368rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003370 (eval $ac_link) 2>&5
3371 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003373 (exit $ac_status); } &&
3374 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003376 (eval $ac_try) 2>&5
3377 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003379 (exit $ac_status); }; }; then
3380 ac_cv_func_connect=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003381else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003382 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003383sed 's/^/| /' conftest.$ac_ext >&5
3384
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003385ac_cv_func_connect=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003386fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003387rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003388fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003389echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003390echo "${ECHO_T}$ac_cv_func_connect" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003391
3392 if test $ac_cv_func_connect = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003393 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003394echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3395if test "${ac_cv_lib_socket_connect+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003397else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003398 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003399LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003400cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003401#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003402/* confdefs.h. */
3403_ACEOF
3404cat confdefs.h >>conftest.$ac_ext
3405cat >>conftest.$ac_ext <<_ACEOF
3406/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003407
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003408/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003409#ifdef __cplusplus
3410extern "C"
3411#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003412/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003413 builtin and then its argument prototype would still apply. */
3414char connect ();
3415int
3416main ()
3417{
3418connect ();
3419 ;
3420 return 0;
3421}
3422_ACEOF
3423rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003425 (eval $ac_link) 2>&5
3426 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003428 (exit $ac_status); } &&
3429 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003431 (eval $ac_try) 2>&5
3432 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003434 (exit $ac_status); }; }; then
3435 ac_cv_lib_socket_connect=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003436else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003437 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003438sed 's/^/| /' conftest.$ac_ext >&5
3439
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003440ac_cv_lib_socket_connect=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003441fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003442rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3443LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003444fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003445echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003446echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3447if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003448 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003449fi
3450
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003451 fi
3452
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003453 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003454 echo "$as_me:$LINENO: checking for remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003455echo $ECHO_N "checking for remove... $ECHO_C" >&6
3456if test "${ac_cv_func_remove+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003458else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003459 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003460#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003461/* confdefs.h. */
3462_ACEOF
3463cat confdefs.h >>conftest.$ac_ext
3464cat >>conftest.$ac_ext <<_ACEOF
3465/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003466/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003467 which can conflict with char remove (); below.
3468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3469 <limits.h> exists even on freestanding compilers. */
3470#ifdef __STDC__
3471# include <limits.h>
3472#else
3473# include <assert.h>
3474#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003475/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003476#ifdef __cplusplus
3477extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003478{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003479#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003480/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003481 builtin and then its argument prototype would still apply. */
3482char remove ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003483/* The GNU C library defines this for functions which it implements
3484 to always fail with ENOSYS. Some functions are actually named
3485 something starting with __ and the normal name is an alias. */
3486#if defined (__stub_remove) || defined (__stub___remove)
3487choke me
3488#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003489char (*f) () = remove;
3490#endif
3491#ifdef __cplusplus
3492}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003493#endif
3494
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003495int
3496main ()
3497{
3498return f != remove;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003499 ;
3500 return 0;
3501}
3502_ACEOF
3503rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003505 (eval $ac_link) 2>&5
3506 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003508 (exit $ac_status); } &&
3509 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003511 (eval $ac_try) 2>&5
3512 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003514 (exit $ac_status); }; }; then
3515 ac_cv_func_remove=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003516else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003517 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003518sed 's/^/| /' conftest.$ac_ext >&5
3519
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003520ac_cv_func_remove=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003521fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003522rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003523fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003524echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003525echo "${ECHO_T}$ac_cv_func_remove" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003526
3527 if test $ac_cv_func_remove = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003528 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003529echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3530if test "${ac_cv_lib_posix_remove+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003532else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003533 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003534LIBS="-lposix $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003535cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003536#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003537/* confdefs.h. */
3538_ACEOF
3539cat confdefs.h >>conftest.$ac_ext
3540cat >>conftest.$ac_ext <<_ACEOF
3541/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003542
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003543/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003544#ifdef __cplusplus
3545extern "C"
3546#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003547/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003548 builtin and then its argument prototype would still apply. */
3549char remove ();
3550int
3551main ()
3552{
3553remove ();
3554 ;
3555 return 0;
3556}
3557_ACEOF
3558rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003560 (eval $ac_link) 2>&5
3561 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003563 (exit $ac_status); } &&
3564 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003566 (eval $ac_try) 2>&5
3567 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003569 (exit $ac_status); }; }; then
3570 ac_cv_lib_posix_remove=yes
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003571else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003572 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003573sed 's/^/| /' conftest.$ac_ext >&5
3574
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003575ac_cv_lib_posix_remove=no
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003576fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003577rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3578LIBS=$ac_check_lib_save_LIBS
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003579fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003580echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003581echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3582if test $ac_cv_lib_posix_remove = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003583 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003584fi
3585
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003586 fi
3587
3588 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003589 echo "$as_me:$LINENO: checking for shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003590echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3591if test "${ac_cv_func_shmat+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003593else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003594 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003595#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003596/* confdefs.h. */
3597_ACEOF
3598cat confdefs.h >>conftest.$ac_ext
3599cat >>conftest.$ac_ext <<_ACEOF
3600/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003601/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003602 which can conflict with char shmat (); below.
3603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3604 <limits.h> exists even on freestanding compilers. */
3605#ifdef __STDC__
3606# include <limits.h>
3607#else
3608# include <assert.h>
3609#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003610/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003611#ifdef __cplusplus
3612extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003613{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003614#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003615/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003616 builtin and then its argument prototype would still apply. */
3617char shmat ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003618/* The GNU C library defines this for functions which it implements
3619 to always fail with ENOSYS. Some functions are actually named
3620 something starting with __ and the normal name is an alias. */
3621#if defined (__stub_shmat) || defined (__stub___shmat)
3622choke me
3623#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003624char (*f) () = shmat;
3625#endif
3626#ifdef __cplusplus
3627}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003628#endif
3629
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003630int
3631main ()
3632{
3633return f != shmat;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003634 ;
3635 return 0;
3636}
3637_ACEOF
3638rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003640 (eval $ac_link) 2>&5
3641 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003643 (exit $ac_status); } &&
3644 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003646 (eval $ac_try) 2>&5
3647 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003649 (exit $ac_status); }; }; then
3650 ac_cv_func_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003651else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003652 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003653sed 's/^/| /' conftest.$ac_ext >&5
3654
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003655ac_cv_func_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003656fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003657rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003658fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003659echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003660echo "${ECHO_T}$ac_cv_func_shmat" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003661
3662 if test $ac_cv_func_shmat = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003663 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003664echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3665if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003667else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003668 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003669LIBS="-lipc $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003670cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003671#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003672/* confdefs.h. */
3673_ACEOF
3674cat confdefs.h >>conftest.$ac_ext
3675cat >>conftest.$ac_ext <<_ACEOF
3676/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003677
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003678/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003679#ifdef __cplusplus
3680extern "C"
3681#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003682/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003683 builtin and then its argument prototype would still apply. */
3684char shmat ();
3685int
3686main ()
3687{
3688shmat ();
3689 ;
3690 return 0;
3691}
3692_ACEOF
3693rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003695 (eval $ac_link) 2>&5
3696 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003698 (exit $ac_status); } &&
3699 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003701 (eval $ac_try) 2>&5
3702 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003704 (exit $ac_status); }; }; then
3705 ac_cv_lib_ipc_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003706else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003707 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003708sed 's/^/| /' conftest.$ac_ext >&5
3709
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003710ac_cv_lib_ipc_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003711fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003712rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3713LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003714fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003715echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003716echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3717if test $ac_cv_lib_ipc_shmat = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003718 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003719fi
3720
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003721 fi
3722 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003723
3724 # Check for libraries that X11R6 Xt/Xaw programs need.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003725 ac_save_LDFLAGS=$LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003726 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3727 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3728 # check for ICE first), but we must link in the order -lSM -lICE or
3729 # we get undefined symbols. So assume we have SM if we have ICE.
3730 # These have to be linked with before -lX11, unlike the other
3731 # libraries we check for below, so use a different variable.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003732 # John Interrante, Karl Berry
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003733 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003734echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3735if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003737else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003738 ac_check_lib_save_LIBS=$LIBS
Eric Pouech18ad24a2000-01-16 22:16:33 +00003739LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003740cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003741#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003742/* confdefs.h. */
3743_ACEOF
3744cat confdefs.h >>conftest.$ac_ext
3745cat >>conftest.$ac_ext <<_ACEOF
3746/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003747
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003748/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003749#ifdef __cplusplus
3750extern "C"
3751#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003752/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003753 builtin and then its argument prototype would still apply. */
3754char IceConnectionNumber ();
3755int
3756main ()
3757{
3758IceConnectionNumber ();
3759 ;
3760 return 0;
3761}
3762_ACEOF
3763rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003765 (eval $ac_link) 2>&5
3766 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003768 (exit $ac_status); } &&
3769 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003771 (eval $ac_try) 2>&5
3772 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003774 (exit $ac_status); }; }; then
3775 ac_cv_lib_ICE_IceConnectionNumber=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003776else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003777 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003778sed 's/^/| /' conftest.$ac_ext >&5
3779
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003780ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003781fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003782rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3783LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003784fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003785echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003786echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3787if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003788 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003789fi
3790
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003791 LDFLAGS=$ac_save_LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003792
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003793fi
3794
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003795for ac_prog in 'bison -y' byacc
3796do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003797 # Extract the first word of "$ac_prog", so it can be a program name with args.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003798set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003799echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3801if test "${ac_cv_prog_YACC+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003803else
3804 if test -n "$YACC"; then
3805 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3806else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808for as_dir in $PATH
3809do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3814 ac_cv_prog_YACC="$ac_prog"
3815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 break 2
3817 fi
3818done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003819done
3820
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003821fi
3822fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003823YACC=$ac_cv_prog_YACC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003824if test -n "$YACC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003825 echo "$as_me:$LINENO: result: $YACC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003826echo "${ECHO_T}$YACC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003827else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003828 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003829echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003830fi
3831
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003832 test -n "$YACC" && break
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003833done
3834test -n "$YACC" || YACC="yacc"
3835
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003836for ac_prog in flex lex
3837do
3838 # Extract the first word of "$ac_prog", so it can be a program name with args.
3839set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003840echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3842if test "${ac_cv_prog_LEX+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003844else
3845 if test -n "$LEX"; then
3846 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3847else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849for as_dir in $PATH
3850do
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_exec_ext in '' $ac_executable_extensions; do
3854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855 ac_cv_prog_LEX="$ac_prog"
3856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3857 break 2
3858 fi
3859done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003860done
3861
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003862fi
3863fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003864LEX=$ac_cv_prog_LEX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003865if test -n "$LEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003866 echo "$as_me:$LINENO: result: $LEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003867echo "${ECHO_T}$LEX" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003868else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003869 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003870echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003871fi
3872
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003873 test -n "$LEX" && break
3874done
3875test -n "$LEX" || LEX=":"
3876
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003877if test -z "$LEXLIB"
3878then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003879 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003880echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3881if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003883else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003884 ac_check_lib_save_LIBS=$LIBS
3885LIBS="-lfl $LIBS"
3886cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003887#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003888/* confdefs.h. */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003893
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003894/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003895#ifdef __cplusplus
3896extern "C"
3897#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003898/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003899 builtin and then its argument prototype would still apply. */
3900char yywrap ();
3901int
3902main ()
3903{
3904yywrap ();
3905 ;
3906 return 0;
3907}
3908_ACEOF
3909rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003911 (eval $ac_link) 2>&5
3912 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003914 (exit $ac_status); } &&
3915 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003917 (eval $ac_try) 2>&5
3918 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003920 (exit $ac_status); }; }; then
3921 ac_cv_lib_fl_yywrap=yes
3922else
3923 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003924sed 's/^/| /' conftest.$ac_ext >&5
3925
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003926ac_cv_lib_fl_yywrap=no
3927fi
3928rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3929LIBS=$ac_check_lib_save_LIBS
3930fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003931echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003932echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3933if test $ac_cv_lib_fl_yywrap = yes; then
3934 LEXLIB="-lfl"
3935else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003936 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003937echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3938if test "${ac_cv_lib_l_yywrap+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3940else
3941 ac_check_lib_save_LIBS=$LIBS
3942LIBS="-ll $LIBS"
3943cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003944#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003945/* confdefs.h. */
3946_ACEOF
3947cat confdefs.h >>conftest.$ac_ext
3948cat >>conftest.$ac_ext <<_ACEOF
3949/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003950
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003951/* Override any gcc2 internal prototype to avoid an error. */
3952#ifdef __cplusplus
3953extern "C"
3954#endif
3955/* We use char because int might match the return type of a gcc2
3956 builtin and then its argument prototype would still apply. */
3957char yywrap ();
3958int
3959main ()
3960{
3961yywrap ();
3962 ;
3963 return 0;
3964}
3965_ACEOF
3966rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003968 (eval $ac_link) 2>&5
3969 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003971 (exit $ac_status); } &&
3972 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003974 (eval $ac_try) 2>&5
3975 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003977 (exit $ac_status); }; }; then
3978 ac_cv_lib_l_yywrap=yes
3979else
3980 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003981sed 's/^/| /' conftest.$ac_ext >&5
3982
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003983ac_cv_lib_l_yywrap=no
3984fi
3985rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3986LIBS=$ac_check_lib_save_LIBS
3987fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003988echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003989echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3990if test $ac_cv_lib_l_yywrap = yes; then
3991 LEXLIB="-ll"
3992fi
3993
3994fi
3995
3996fi
3997
3998if test "x$LEX" != "x:"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003999 echo "$as_me:$LINENO: checking lex output file root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004000echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4001if test "${ac_cv_prog_lex_root+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4003else
4004 # The minimal lex program is just a single line: %%. But some broken lexes
4005# (Solaris, I think it was) want two %% lines, so accommodate them.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004006cat >conftest.l <<_ACEOF
4007%%
4008%%
4009_ACEOF
4010{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4011 (eval $LEX conftest.l) 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004015if test -f lex.yy.c; then
4016 ac_cv_prog_lex_root=lex.yy
4017elif test -f lexyy.c; then
4018 ac_cv_prog_lex_root=lexyy
4019else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004020 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004021echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4022 { (exit 1); exit 1; }; }
4023fi
4024fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004025echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004026echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004027rm -f conftest.l
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004028LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4029
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004030echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004031echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4032if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034else
4035 # POSIX says lex can declare yytext either as a pointer or an array; the
4036# default is implementation-dependent. Figure out which it is, since
4037# not all implementations provide the %pointer and %array declarations.
4038ac_cv_prog_lex_yytext_pointer=no
4039echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4040ac_save_LIBS=$LIBS
4041LIBS="$LIBS $LEXLIB"
4042cat >conftest.$ac_ext <<_ACEOF
4043`cat $LEX_OUTPUT_ROOT.c`
4044_ACEOF
4045rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004047 (eval $ac_link) 2>&5
4048 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004050 (exit $ac_status); } &&
4051 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004053 (eval $ac_try) 2>&5
4054 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004056 (exit $ac_status); }; }; then
4057 ac_cv_prog_lex_yytext_pointer=yes
4058else
4059 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004060sed 's/^/| /' conftest.$ac_ext >&5
4061
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004062fi
4063rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4064LIBS=$ac_save_LIBS
4065rm -f "${LEX_OUTPUT_ROOT}.c"
4066
4067fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004068echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004069echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4070if test $ac_cv_prog_lex_yytext_pointer = yes; then
4071
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004072cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004073#define YYTEXT_POINTER 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004074_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004075
4076fi
4077
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004078fi
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004079
4080for ac_prog in $YACC bison yacc
4081do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004082 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004083set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004084echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086if test "${ac_cv_prog_XYACC+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004088else
4089 if test -n "$XYACC"; then
4090 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4091else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093for as_dir in $PATH
4094do
4095 IFS=$as_save_IFS
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099 ac_cv_prog_XYACC="$ac_prog"
4100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101 break 2
4102 fi
4103done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004104done
4105
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004106fi
4107fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004108XYACC=$ac_cv_prog_XYACC
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004109if test -n "$XYACC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004110 echo "$as_me:$LINENO: result: $XYACC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004111echo "${ECHO_T}$XYACC" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004112else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004113 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004114echo "${ECHO_T}no" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004115fi
4116
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004117 test -n "$XYACC" && break
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004118done
4119test -n "$XYACC" || XYACC="none"
4120
4121if test "$XYACC" = "none"
4122then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004123 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004124echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4125 { (exit 1); exit 1; }; }
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004126fi
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004127for ac_prog in $LEX flex lex
4128do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004129 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004130set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004131echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4133if test "${ac_cv_prog_XLEX+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004135else
4136 if test -n "$XLEX"; then
4137 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4138else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140for as_dir in $PATH
4141do
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4146 ac_cv_prog_XLEX="$ac_prog"
4147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 break 2
4149 fi
4150done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004151done
4152
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004153fi
4154fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004155XLEX=$ac_cv_prog_XLEX
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004156if test -n "$XLEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004157 echo "$as_me:$LINENO: result: $XLEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004158echo "${ECHO_T}$XLEX" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004159else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004160 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004161echo "${ECHO_T}no" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004162fi
4163
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004164 test -n "$XLEX" && break
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004165done
4166test -n "$XLEX" || XLEX="none"
4167
4168if test "$XLEX" = "none"
4169then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004170 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004171echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4172 { (exit 1); exit 1; }; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004173fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004174
4175if test -n "$ac_tool_prefix"; then
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00004176 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4177set dummy ${ac_tool_prefix}ld; ac_word=$2
4178echo "$as_me:$LINENO: checking for $ac_word" >&5
4179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180if test "${ac_cv_prog_LD+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4182else
4183 if test -n "$LD"; then
4184 ac_cv_prog_LD="$LD" # Let the user override the test.
4185else
4186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187for as_dir in $PATH
4188do
4189 IFS=$as_save_IFS
4190 test -z "$as_dir" && as_dir=.
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193 ac_cv_prog_LD="${ac_tool_prefix}ld"
4194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4195 break 2
4196 fi
4197done
4198done
4199
4200fi
4201fi
4202LD=$ac_cv_prog_LD
4203if test -n "$LD"; then
4204 echo "$as_me:$LINENO: result: $LD" >&5
4205echo "${ECHO_T}$LD" >&6
4206else
4207 echo "$as_me:$LINENO: result: no" >&5
4208echo "${ECHO_T}no" >&6
4209fi
4210
4211fi
4212if test -z "$ac_cv_prog_LD"; then
4213 ac_ct_LD=$LD
4214 # Extract the first word of "ld", so it can be a program name with args.
4215set dummy ld; ac_word=$2
4216echo "$as_me:$LINENO: checking for $ac_word" >&5
4217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220else
4221 if test -n "$ac_ct_LD"; then
4222 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4223else
4224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225for as_dir in $PATH
4226do
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_prog_ac_ct_LD="ld"
4232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 break 2
4234 fi
4235done
4236done
4237
4238 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4239fi
4240fi
4241ac_ct_LD=$ac_cv_prog_ac_ct_LD
4242if test -n "$ac_ct_LD"; then
4243 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4244echo "${ECHO_T}$ac_ct_LD" >&6
4245else
4246 echo "$as_me:$LINENO: result: no" >&5
4247echo "${ECHO_T}no" >&6
4248fi
4249
4250 LD=$ac_ct_LD
4251else
4252 LD="$ac_cv_prog_LD"
4253fi
4254
4255if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004256 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4257set dummy ${ac_tool_prefix}ar; ac_word=$2
4258echo "$as_me:$LINENO: checking for $ac_word" >&5
4259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260if test "${ac_cv_prog_AR+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4262else
4263 if test -n "$AR"; then
4264 ac_cv_prog_AR="$AR" # Let the user override the test.
4265else
4266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH
4268do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273 ac_cv_prog_AR="${ac_tool_prefix}ar"
4274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4276 fi
4277done
4278done
4279
4280fi
4281fi
4282AR=$ac_cv_prog_AR
4283if test -n "$AR"; then
4284 echo "$as_me:$LINENO: result: $AR" >&5
4285echo "${ECHO_T}$AR" >&6
4286else
4287 echo "$as_me:$LINENO: result: no" >&5
4288echo "${ECHO_T}no" >&6
4289fi
4290
4291fi
4292if test -z "$ac_cv_prog_AR"; then
4293 ac_ct_AR=$AR
4294 # Extract the first word of "ar", so it can be a program name with args.
4295set dummy ar; ac_word=$2
4296echo "$as_me:$LINENO: checking for $ac_word" >&5
4297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300else
4301 if test -n "$ac_ct_AR"; then
4302 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4303else
4304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305for as_dir in $PATH
4306do
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_ac_ct_AR="ar"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4314 fi
4315done
4316done
4317
4318 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4319fi
4320fi
4321ac_ct_AR=$ac_cv_prog_ac_ct_AR
4322if test -n "$ac_ct_AR"; then
4323 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4324echo "${ECHO_T}$ac_ct_AR" >&6
4325else
4326 echo "$as_me:$LINENO: result: no" >&5
4327echo "${ECHO_T}no" >&6
4328fi
4329
4330 AR=$ac_ct_AR
4331else
4332 AR="$ac_cv_prog_AR"
4333fi
4334
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004335if test -n "$ac_tool_prefix"; then
4336 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4337set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004338echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4340if test "${ac_cv_prog_RANLIB+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004342else
4343 if test -n "$RANLIB"; then
4344 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4345else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347for as_dir in $PATH
4348do
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4353 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 break 2
4356 fi
4357done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004358done
4359
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004360fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004361fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004362RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004363if test -n "$RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004364 echo "$as_me:$LINENO: result: $RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004365echo "${ECHO_T}$RANLIB" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004366else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004367 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004368echo "${ECHO_T}no" >&6
4369fi
4370
4371fi
4372if test -z "$ac_cv_prog_RANLIB"; then
4373 ac_ct_RANLIB=$RANLIB
4374 # Extract the first word of "ranlib", so it can be a program name with args.
4375set dummy ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004376echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4378if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4380else
4381 if test -n "$ac_ct_RANLIB"; then
4382 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4383else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385for as_dir in $PATH
4386do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391 ac_cv_prog_ac_ct_RANLIB="ranlib"
4392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4393 break 2
4394 fi
4395done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004396done
4397
4398 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4399fi
4400fi
4401ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4402if test -n "$ac_ct_RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004403 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004404echo "${ECHO_T}$ac_ct_RANLIB" >&6
4405else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004406 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004407echo "${ECHO_T}no" >&6
4408fi
4409
4410 RANLIB=$ac_ct_RANLIB
4411else
4412 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004413fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004414
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004415if test -n "$ac_tool_prefix"; then
4416 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4417set dummy ${ac_tool_prefix}strip; ac_word=$2
4418echo "$as_me:$LINENO: checking for $ac_word" >&5
4419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4420if test "${ac_cv_prog_STRIP+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4422else
4423 if test -n "$STRIP"; then
4424 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4425else
4426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427for as_dir in $PATH
4428do
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4433 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 break 2
4436 fi
4437done
4438done
4439
4440fi
4441fi
4442STRIP=$ac_cv_prog_STRIP
4443if test -n "$STRIP"; then
4444 echo "$as_me:$LINENO: result: $STRIP" >&5
4445echo "${ECHO_T}$STRIP" >&6
4446else
4447 echo "$as_me:$LINENO: result: no" >&5
4448echo "${ECHO_T}no" >&6
4449fi
4450
4451fi
4452if test -z "$ac_cv_prog_STRIP"; then
4453 ac_ct_STRIP=$STRIP
4454 # Extract the first word of "strip", so it can be a program name with args.
4455set dummy strip; ac_word=$2
4456echo "$as_me:$LINENO: checking for $ac_word" >&5
4457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4458if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460else
4461 if test -n "$ac_ct_STRIP"; then
4462 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4463else
4464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465for as_dir in $PATH
4466do
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471 ac_cv_prog_ac_ct_STRIP="strip"
4472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4474 fi
4475done
4476done
4477
4478 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4479fi
4480fi
4481ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4482if test -n "$ac_ct_STRIP"; then
4483 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4484echo "${ECHO_T}$ac_ct_STRIP" >&6
4485else
4486 echo "$as_me:$LINENO: result: no" >&5
4487echo "${ECHO_T}no" >&6
4488fi
4489
4490 STRIP=$ac_ct_STRIP
4491else
4492 STRIP="$ac_cv_prog_STRIP"
4493fi
4494
4495if test -n "$ac_tool_prefix"; then
4496 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4497set dummy ${ac_tool_prefix}windres; ac_word=$2
4498echo "$as_me:$LINENO: checking for $ac_word" >&5
4499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4500if test "${ac_cv_prog_WINDRES+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502else
4503 if test -n "$WINDRES"; then
4504 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4505else
4506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507for as_dir in $PATH
4508do
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 break 2
4516 fi
4517done
4518done
4519
4520fi
4521fi
4522WINDRES=$ac_cv_prog_WINDRES
4523if test -n "$WINDRES"; then
4524 echo "$as_me:$LINENO: result: $WINDRES" >&5
4525echo "${ECHO_T}$WINDRES" >&6
4526else
4527 echo "$as_me:$LINENO: result: no" >&5
4528echo "${ECHO_T}no" >&6
4529fi
4530
4531fi
4532if test -z "$ac_cv_prog_WINDRES"; then
4533 ac_ct_WINDRES=$WINDRES
4534 # Extract the first word of "windres", so it can be a program name with args.
4535set dummy windres; ac_word=$2
4536echo "$as_me:$LINENO: checking for $ac_word" >&5
4537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540else
4541 if test -n "$ac_ct_WINDRES"; then
4542 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4543else
4544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545for as_dir in $PATH
4546do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551 ac_cv_prog_ac_ct_WINDRES="windres"
4552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 break 2
4554 fi
4555done
4556done
4557
4558 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4559fi
4560fi
4561ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4562if test -n "$ac_ct_WINDRES"; then
4563 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4564echo "${ECHO_T}$ac_ct_WINDRES" >&6
4565else
4566 echo "$as_me:$LINENO: result: no" >&5
4567echo "${ECHO_T}no" >&6
4568fi
4569
4570 WINDRES=$ac_ct_WINDRES
4571else
4572 WINDRES="$ac_cv_prog_WINDRES"
4573fi
4574
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004575echo "$as_me:$LINENO: checking whether ln -s works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004576echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4577LN_S=$as_ln_s
4578if test "$LN_S" = "ln -s"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004579 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004580echo "${ECHO_T}yes" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00004581else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004582 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004583echo "${ECHO_T}no, using $LN_S" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00004584fi
4585
Alexandre Julliarddf234a92002-05-22 02:10:39 +00004586echo "$as_me:$LINENO: checking whether ln works" >&5
4587echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4588rm -f conf$$ conf$$.file
4589echo >conf$$.file
4590if ln conf$$.file conf$$ 2>/dev/null; then
4591 LN=ln
4592
4593 echo "$as_me:$LINENO: result: yes" >&5
4594echo "${ECHO_T}yes" >&6
4595else
4596 LN="cp -p"
4597
4598 echo "$as_me:$LINENO: result: no, using $LN" >&5
4599echo "${ECHO_T}no, using $LN" >&6
4600fi
4601rm -f conf$$ conf$$.file
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004602# Extract the first word of "c2man", so it can be a program name with args.
4603set dummy c2man; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004604echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4606if test "${ac_cv_prog_C2MAN+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004608else
4609 if test -n "$C2MAN"; then
4610 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4611else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613for as_dir in $PATH
4614do
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619 ac_cv_prog_C2MAN="c2man"
4620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
4622 fi
4623done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004624done
4625
Mike McCormacke0df32f2000-08-11 21:15:21 +00004626 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004627fi
4628fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004629C2MAN=$ac_cv_prog_C2MAN
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004630if test -n "$C2MAN"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004631 echo "$as_me:$LINENO: result: $C2MAN" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004632echo "${ECHO_T}$C2MAN" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004633else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004634 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004635echo "${ECHO_T}no" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004636fi
4637
James Juranffe6b761999-06-12 08:21:57 +00004638# Extract the first word of "ldconfig", so it can be a program name with args.
4639set dummy ldconfig; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004640echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4642if test "${ac_cv_path_LDCONFIG+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
James Juranffe6b761999-06-12 08:21:57 +00004644else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004645 case $LDCONFIG in
4646 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00004647 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4648 ;;
4649 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00004651for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004652do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4660 fi
4661done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004662done
4663
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004664 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00004665 ;;
4666esac
4667fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004668LDCONFIG=$ac_cv_path_LDCONFIG
4669
James Juranffe6b761999-06-12 08:21:57 +00004670if test -n "$LDCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004671 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004672echo "${ECHO_T}$LDCONFIG" >&6
James Juranffe6b761999-06-12 08:21:57 +00004673else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004674 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004675echo "${ECHO_T}no" >&6
James Juranffe6b761999-06-12 08:21:57 +00004676fi
4677
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004678# Find a good install program. We prefer a C program (faster),
4679# so one script is as good as another. But avoid the broken or
4680# incompatible versions:
4681# SysV /etc/install, /usr/sbin/install
4682# SunOS /usr/etc/install
4683# IRIX /sbin/install
4684# AIX /bin/install
4685# AmigaOS /C/install, which installs bootblocks on floppy discs
4686# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4687# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4688# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4689# ./install, which can be erroneously created by make from ./install.sh.
4690echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4691echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4692if test -z "$INSTALL"; then
4693if test "${ac_cv_path_install+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695else
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697for as_dir in $PATH
4698do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 # Account for people who put trailing slashes in PATH elements.
4702case $as_dir/ in
4703 ./ | .// | /cC/* | \
4704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4705 /usr/ucb/* ) ;;
4706 *)
4707 # OSF1 and SCO ODT 3.0 have their own names for install.
4708 # Don't use installbsd from OSF since it installs stuff as root
4709 # by default.
4710 for ac_prog in ginstall scoinst install; do
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4713 if test $ac_prog = install &&
4714 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4715 # AIX install. It has an incompatible calling convention.
4716 :
4717 elif test $ac_prog = install &&
4718 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4719 # program-specific install script used by HP pwplus--don't use.
4720 :
4721 else
4722 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4723 break 3
4724 fi
4725 fi
4726 done
4727 done
4728 ;;
4729esac
4730done
4731
4732
4733fi
4734 if test "${ac_cv_path_install+set}" = set; then
4735 INSTALL=$ac_cv_path_install
4736 else
4737 # As a last resort, use the slow shell script. We don't cache a
4738 # path for INSTALL within a source directory, because that will
4739 # break other packages using the cache if that directory is
4740 # removed, or if the path is relative.
4741 INSTALL=$ac_install_sh
4742 fi
4743fi
4744echo "$as_me:$LINENO: result: $INSTALL" >&5
4745echo "${ECHO_T}$INSTALL" >&6
4746
4747# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4748# It thinks the first close brace ends the variable substitution.
4749test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4750
4751test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4752
4753test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4754
4755case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00004756 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004757 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4758esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004759
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004760for ac_prog in lclint lint
4761do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004762 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004763set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004764echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4766if test "${ac_cv_prog_LINT+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004768else
4769 if test -n "$LINT"; then
4770 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4771else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773for as_dir in $PATH
4774do
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779 ac_cv_prog_LINT="$ac_prog"
4780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 break 2
4782 fi
4783done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004784done
4785
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004786fi
4787fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004788LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004789if test -n "$LINT"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004790 echo "$as_me:$LINENO: result: $LINT" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004791echo "${ECHO_T}$LINT" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004792else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004793 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004794echo "${ECHO_T}no" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004795fi
4796
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004797 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004798done
4799
4800if test "$LINT" = "lint"
4801then
4802 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4803 fi
4804
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004805
4806
Vincent Béron1d8cb6e2002-11-23 01:20:02 +00004807for ac_prog in docbook2html db2html
4808do
4809 # Extract the first word of "$ac_prog", so it can be a program name with args.
4810set dummy $ac_prog; ac_word=$2
4811echo "$as_me:$LINENO: checking for $ac_word" >&5
4812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4813if test "${ac_cv_prog_DB2HTML+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815else
4816 if test -n "$DB2HTML"; then
4817 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4818else
4819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820for as_dir in $PATH
4821do
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4826 ac_cv_prog_DB2HTML="$ac_prog"
4827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4829 fi
4830done
4831done
4832
4833fi
4834fi
4835DB2HTML=$ac_cv_prog_DB2HTML
4836if test -n "$DB2HTML"; then
4837 echo "$as_me:$LINENO: result: $DB2HTML" >&5
4838echo "${ECHO_T}$DB2HTML" >&6
4839else
4840 echo "$as_me:$LINENO: result: no" >&5
4841echo "${ECHO_T}no" >&6
4842fi
4843
4844 test -n "$DB2HTML" && break
4845done
4846test -n "$DB2HTML" || DB2HTML="false"
4847
4848
4849
4850for ac_prog in docbook2pdf db2pdf
4851do
4852 # Extract the first word of "$ac_prog", so it can be a program name with args.
4853set dummy $ac_prog; ac_word=$2
4854echo "$as_me:$LINENO: checking for $ac_word" >&5
4855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4856if test "${ac_cv_prog_DB2PDF+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4858else
4859 if test -n "$DB2PDF"; then
4860 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4861else
4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863for as_dir in $PATH
4864do
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4869 ac_cv_prog_DB2PDF="$ac_prog"
4870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4872 fi
4873done
4874done
4875
4876fi
4877fi
4878DB2PDF=$ac_cv_prog_DB2PDF
4879if test -n "$DB2PDF"; then
4880 echo "$as_me:$LINENO: result: $DB2PDF" >&5
4881echo "${ECHO_T}$DB2PDF" >&6
4882else
4883 echo "$as_me:$LINENO: result: no" >&5
4884echo "${ECHO_T}no" >&6
4885fi
4886
4887 test -n "$DB2PDF" && break
4888done
4889test -n "$DB2PDF" || DB2PDF="false"
4890
4891
4892
4893for ac_prog in docbook2ps db2ps
4894do
4895 # Extract the first word of "$ac_prog", so it can be a program name with args.
4896set dummy $ac_prog; ac_word=$2
4897echo "$as_me:$LINENO: checking for $ac_word" >&5
4898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4899if test "${ac_cv_prog_DB2PS+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4901else
4902 if test -n "$DB2PS"; then
4903 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4904else
4905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906for as_dir in $PATH
4907do
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912 ac_cv_prog_DB2PS="$ac_prog"
4913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4915 fi
4916done
4917done
4918
4919fi
4920fi
4921DB2PS=$ac_cv_prog_DB2PS
4922if test -n "$DB2PS"; then
4923 echo "$as_me:$LINENO: result: $DB2PS" >&5
4924echo "${ECHO_T}$DB2PS" >&6
4925else
4926 echo "$as_me:$LINENO: result: no" >&5
4927echo "${ECHO_T}no" >&6
4928fi
4929
4930 test -n "$DB2PS" && break
4931done
4932test -n "$DB2PS" || DB2PS="false"
4933
4934
4935
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004936
4937
4938echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004939echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4940if test "${ac_cv_lib_m_sqrt+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00004942else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004943 ac_check_lib_save_LIBS=$LIBS
Howard Abrams13277481999-07-10 13:16:29 +00004944LIBS="-lm $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004945cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004946#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004947/* confdefs.h. */
4948_ACEOF
4949cat confdefs.h >>conftest.$ac_ext
4950cat >>conftest.$ac_ext <<_ACEOF
4951/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004952
Howard Abrams13277481999-07-10 13:16:29 +00004953/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004954#ifdef __cplusplus
4955extern "C"
4956#endif
Howard Abrams13277481999-07-10 13:16:29 +00004957/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004958 builtin and then its argument prototype would still apply. */
4959char sqrt ();
4960int
4961main ()
4962{
4963sqrt ();
4964 ;
4965 return 0;
4966}
4967_ACEOF
4968rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004970 (eval $ac_link) 2>&5
4971 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004973 (exit $ac_status); } &&
4974 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004976 (eval $ac_try) 2>&5
4977 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004979 (exit $ac_status); }; }; then
4980 ac_cv_lib_m_sqrt=yes
Howard Abrams13277481999-07-10 13:16:29 +00004981else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004982 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004983sed 's/^/| /' conftest.$ac_ext >&5
4984
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004985ac_cv_lib_m_sqrt=no
Howard Abrams13277481999-07-10 13:16:29 +00004986fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004987rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4988LIBS=$ac_check_lib_save_LIBS
Howard Abrams13277481999-07-10 13:16:29 +00004989fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004990echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004991echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4992if test $ac_cv_lib_m_sqrt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004993 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004994#define HAVE_LIBM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004995_ACEOF
Howard Abrams13277481999-07-10 13:16:29 +00004996
4997 LIBS="-lm $LIBS"
4998
Howard Abrams13277481999-07-10 13:16:29 +00004999fi
5000
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005001
5002echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005003echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5004if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00005006else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005007 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005008LIBS="-li386 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005009cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005010#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005011/* confdefs.h. */
5012_ACEOF
5013cat confdefs.h >>conftest.$ac_ext
5014cat >>conftest.$ac_ext <<_ACEOF
5015/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005016
Alexandre Julliard59730ae1996-03-24 16:20:51 +00005017/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005018#ifdef __cplusplus
5019extern "C"
5020#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005021/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005022 builtin and then its argument prototype would still apply. */
5023char i386_set_ldt ();
5024int
5025main ()
5026{
5027i386_set_ldt ();
5028 ;
5029 return 0;
5030}
5031_ACEOF
5032rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005034 (eval $ac_link) 2>&5
5035 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005037 (exit $ac_status); } &&
5038 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005040 (eval $ac_try) 2>&5
5041 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005043 (exit $ac_status); }; }; then
5044 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00005045else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005046 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005047sed 's/^/| /' conftest.$ac_ext >&5
5048
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005049ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00005050fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005051rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5052LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005053fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005054echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005055echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5056if test $ac_cv_lib_i386_i386_set_ldt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005057 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005058#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005059_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00005060
5061 LIBS="-li386 $LIBS"
5062
Alexandre Julliard02e90081998-01-04 17:49:09 +00005063fi
5064
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005065
5066echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005067echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5068if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00005070else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005071 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005072LIBS="-lossaudio $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005073cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005074#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005075/* confdefs.h. */
5076_ACEOF
5077cat confdefs.h >>conftest.$ac_ext
5078cat >>conftest.$ac_ext <<_ACEOF
5079/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005080
Todd Vierlingecc76691998-12-15 17:49:02 +00005081/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005082#ifdef __cplusplus
5083extern "C"
5084#endif
Todd Vierlingecc76691998-12-15 17:49:02 +00005085/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005086 builtin and then its argument prototype would still apply. */
5087char _oss_ioctl ();
5088int
5089main ()
5090{
5091_oss_ioctl ();
5092 ;
5093 return 0;
5094}
5095_ACEOF
5096rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005098 (eval $ac_link) 2>&5
5099 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005101 (exit $ac_status); } &&
5102 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005104 (eval $ac_try) 2>&5
5105 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005107 (exit $ac_status); }; }; then
5108 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00005109else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005110 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005111sed 's/^/| /' conftest.$ac_ext >&5
5112
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005113ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00005114fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005115rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5116LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005117fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005118echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005119echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5120if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005121 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005122#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005123_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00005124
5125 LIBS="-lossaudio $LIBS"
5126
Todd Vierlingecc76691998-12-15 17:49:02 +00005127fi
5128
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005129
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005130for ac_func in iswalnum
Patrik Stridvallea584721998-11-01 16:22:07 +00005131do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005132as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005133echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005134echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5135if eval "test \"\${$as_ac_var+set}\" = set"; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00005137else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005138 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005139#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005140/* confdefs.h. */
5141_ACEOF
5142cat confdefs.h >>conftest.$ac_ext
5143cat >>conftest.$ac_ext <<_ACEOF
5144/* end confdefs.h. */
Patrik Stridvallea584721998-11-01 16:22:07 +00005145/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005146 which can conflict with char $ac_func (); below.
5147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5148 <limits.h> exists even on freestanding compilers. */
5149#ifdef __STDC__
5150# include <limits.h>
5151#else
5152# include <assert.h>
5153#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00005154/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005155#ifdef __cplusplus
5156extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005157{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005158#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00005159/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005160 builtin and then its argument prototype would still apply. */
5161char $ac_func ();
Patrik Stridvallea584721998-11-01 16:22:07 +00005162/* The GNU C library defines this for functions which it implements
5163 to always fail with ENOSYS. Some functions are actually named
5164 something starting with __ and the normal name is an alias. */
5165#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5166choke me
5167#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005168char (*f) () = $ac_func;
5169#endif
5170#ifdef __cplusplus
5171}
Patrik Stridvallea584721998-11-01 16:22:07 +00005172#endif
5173
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005174int
5175main ()
5176{
5177return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005178 ;
5179 return 0;
5180}
5181_ACEOF
5182rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005184 (eval $ac_link) 2>&5
5185 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005187 (exit $ac_status); } &&
5188 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005190 (eval $ac_try) 2>&5
5191 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005193 (exit $ac_status); }; }; then
5194 eval "$as_ac_var=yes"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005195else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005196 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005197sed 's/^/| /' conftest.$ac_ext >&5
5198
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005199eval "$as_ac_var=no"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005200fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005201rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005202fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005203echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005204echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5205if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005206 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005207#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005208_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005209
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005210else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005211
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005212echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005213echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5214if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005216else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005217 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005218LIBS="-lw $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005219cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005220#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005221/* confdefs.h. */
5222_ACEOF
5223cat confdefs.h >>conftest.$ac_ext
5224cat >>conftest.$ac_ext <<_ACEOF
5225/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005226
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005227/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005228#ifdef __cplusplus
5229extern "C"
5230#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005231/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005232 builtin and then its argument prototype would still apply. */
5233char iswalnum ();
5234int
5235main ()
5236{
5237iswalnum ();
5238 ;
5239 return 0;
5240}
5241_ACEOF
5242rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005244 (eval $ac_link) 2>&5
5245 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005247 (exit $ac_status); } &&
5248 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005250 (eval $ac_try) 2>&5
5251 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005253 (exit $ac_status); }; }; then
5254 ac_cv_lib_w_iswalnum=yes
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005255else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005256 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005257sed 's/^/| /' conftest.$ac_ext >&5
5258
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005259ac_cv_lib_w_iswalnum=no
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005260fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005261rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5262LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005263fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005264echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005265echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5266if test $ac_cv_lib_w_iswalnum = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005267 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005268#define HAVE_LIBW 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005269_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005270
5271 LIBS="-lw $LIBS"
5272
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005273fi
5274
5275fi
5276done
5277
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005278
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005279for ac_func in gethostbyname
5280do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005281as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005282echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005283echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5284if eval "test \"\${$as_ac_var+set}\" = set"; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005286else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005287 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005288#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005289/* confdefs.h. */
5290_ACEOF
5291cat confdefs.h >>conftest.$ac_ext
5292cat >>conftest.$ac_ext <<_ACEOF
5293/* end confdefs.h. */
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005294/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005295 which can conflict with char $ac_func (); below.
5296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5297 <limits.h> exists even on freestanding compilers. */
5298#ifdef __STDC__
5299# include <limits.h>
5300#else
5301# include <assert.h>
5302#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005303/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005304#ifdef __cplusplus
5305extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005306{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005307#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005308/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005309 builtin and then its argument prototype would still apply. */
5310char $ac_func ();
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005311/* The GNU C library defines this for functions which it implements
5312 to always fail with ENOSYS. Some functions are actually named
5313 something starting with __ and the normal name is an alias. */
5314#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5315choke me
5316#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005317char (*f) () = $ac_func;
5318#endif
5319#ifdef __cplusplus
5320}
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005321#endif
5322
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005323int
5324main ()
5325{
5326return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005327 ;
5328 return 0;
5329}
5330_ACEOF
5331rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005333 (eval $ac_link) 2>&5
5334 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005336 (exit $ac_status); } &&
5337 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005339 (eval $ac_try) 2>&5
5340 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005342 (exit $ac_status); }; }; then
5343 eval "$as_ac_var=yes"
Patrik Stridvallea584721998-11-01 16:22:07 +00005344else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005345 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005346sed 's/^/| /' conftest.$ac_ext >&5
5347
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005348eval "$as_ac_var=no"
Patrik Stridvallea584721998-11-01 16:22:07 +00005349fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005350rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvallea584721998-11-01 16:22:07 +00005351fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005353echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5354if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005355 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005356#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005357_ACEOF
Patrik Stridvallea584721998-11-01 16:22:07 +00005358
Patrik Stridvallea584721998-11-01 16:22:07 +00005359else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005360
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005361echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005362echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5363if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00005365else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005366 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005367LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005368cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005369#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005370/* confdefs.h. */
5371_ACEOF
5372cat confdefs.h >>conftest.$ac_ext
5373cat >>conftest.$ac_ext <<_ACEOF
5374/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005375
Patrik Stridvallea584721998-11-01 16:22:07 +00005376/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005377#ifdef __cplusplus
5378extern "C"
5379#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00005380/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005381 builtin and then its argument prototype would still apply. */
5382char gethostbyname ();
5383int
5384main ()
5385{
5386gethostbyname ();
5387 ;
5388 return 0;
5389}
5390_ACEOF
5391rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005393 (eval $ac_link) 2>&5
5394 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005396 (exit $ac_status); } &&
5397 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005399 (eval $ac_try) 2>&5
5400 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005402 (exit $ac_status); }; }; then
5403 ac_cv_lib_nsl_gethostbyname=yes
Patrik Stridvallea584721998-11-01 16:22:07 +00005404else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005405 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005406sed 's/^/| /' conftest.$ac_ext >&5
5407
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005408ac_cv_lib_nsl_gethostbyname=no
Patrik Stridvallea584721998-11-01 16:22:07 +00005409fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005410rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5411LIBS=$ac_check_lib_save_LIBS
Patrik Stridvallea584721998-11-01 16:22:07 +00005412fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005413echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005414echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5415if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005416 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005417#define HAVE_LIBNSL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005418_ACEOF
Ron Recorde977d6c1999-09-05 12:32:05 +00005419
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005420 LIBS="-lnsl $LIBS"
5421
Ron Recorde977d6c1999-09-05 12:32:05 +00005422fi
5423
Patrik Stridvallea584721998-11-01 16:22:07 +00005424fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00005425done
5426
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005427
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005428for ac_func in connect
5429do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005431echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5433if eval "test \"\${$as_ac_var+set}\" = set"; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005435else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005436 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005437#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005438/* confdefs.h. */
5439_ACEOF
5440cat confdefs.h >>conftest.$ac_ext
5441cat >>conftest.$ac_ext <<_ACEOF
5442/* end confdefs.h. */
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005443/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005444 which can conflict with char $ac_func (); below.
5445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5446 <limits.h> exists even on freestanding compilers. */
5447#ifdef __STDC__
5448# include <limits.h>
5449#else
5450# include <assert.h>
5451#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005452/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005453#ifdef __cplusplus
5454extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005455{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005456#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005457/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005458 builtin and then its argument prototype would still apply. */
5459char $ac_func ();
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005460/* The GNU C library defines this for functions which it implements
5461 to always fail with ENOSYS. Some functions are actually named
5462 something starting with __ and the normal name is an alias. */
5463#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5464choke me
5465#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005466char (*f) () = $ac_func;
5467#endif
5468#ifdef __cplusplus
5469}
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005470#endif
5471
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005472int
5473main ()
5474{
5475return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005476 ;
5477 return 0;
5478}
5479_ACEOF
5480rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005482 (eval $ac_link) 2>&5
5483 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005485 (exit $ac_status); } &&
5486 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005488 (eval $ac_try) 2>&5
5489 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005491 (exit $ac_status); }; }; then
5492 eval "$as_ac_var=yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005493else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005494 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005495sed 's/^/| /' conftest.$ac_ext >&5
5496
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005497eval "$as_ac_var=no"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005498fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005499rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005500fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005502echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5503if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005504 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005505#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005506_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005507
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005508else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005509
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005510echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005511echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5512if test "${ac_cv_lib_socket_connect+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005514else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005515 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005516LIBS="-lsocket $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005517cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005518#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005519/* confdefs.h. */
5520_ACEOF
5521cat confdefs.h >>conftest.$ac_ext
5522cat >>conftest.$ac_ext <<_ACEOF
5523/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005524
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005525/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005526#ifdef __cplusplus
5527extern "C"
5528#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005529/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005530 builtin and then its argument prototype would still apply. */
5531char connect ();
5532int
5533main ()
5534{
5535connect ();
5536 ;
5537 return 0;
5538}
5539_ACEOF
5540rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005542 (eval $ac_link) 2>&5
5543 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005545 (exit $ac_status); } &&
5546 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005548 (eval $ac_try) 2>&5
5549 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005551 (exit $ac_status); }; }; then
5552 ac_cv_lib_socket_connect=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005553else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005554 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005555sed 's/^/| /' conftest.$ac_ext >&5
5556
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005557ac_cv_lib_socket_connect=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005558fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005559rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5560LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005561fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005562echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005563echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5564if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005565 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005566#define HAVE_LIBSOCKET 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005567_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005568
5569 LIBS="-lsocket $LIBS"
5570
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005571fi
5572
5573fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00005574done
5575
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005576
Alexandre Julliardc5552742002-04-03 20:24:44 +00005577for ac_func in inet_aton
5578do
5579as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005580echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005581echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5582if eval "test \"\${$as_ac_var+set}\" = set"; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5584else
5585 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005586#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005587/* confdefs.h. */
5588_ACEOF
5589cat confdefs.h >>conftest.$ac_ext
5590cat >>conftest.$ac_ext <<_ACEOF
5591/* end confdefs.h. */
Alexandre Julliardc5552742002-04-03 20:24:44 +00005592/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005593 which can conflict with char $ac_func (); below.
5594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5595 <limits.h> exists even on freestanding compilers. */
5596#ifdef __STDC__
5597# include <limits.h>
5598#else
5599# include <assert.h>
5600#endif
Alexandre Julliardc5552742002-04-03 20:24:44 +00005601/* Override any gcc2 internal prototype to avoid an error. */
5602#ifdef __cplusplus
5603extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005604{
Alexandre Julliardc5552742002-04-03 20:24:44 +00005605#endif
5606/* We use char because int might match the return type of a gcc2
5607 builtin and then its argument prototype would still apply. */
5608char $ac_func ();
Alexandre Julliardc5552742002-04-03 20:24:44 +00005609/* The GNU C library defines this for functions which it implements
5610 to always fail with ENOSYS. Some functions are actually named
5611 something starting with __ and the normal name is an alias. */
5612#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5613choke me
5614#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005615char (*f) () = $ac_func;
5616#endif
5617#ifdef __cplusplus
5618}
Alexandre Julliardc5552742002-04-03 20:24:44 +00005619#endif
5620
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005621int
5622main ()
5623{
5624return f != $ac_func;
Alexandre Julliardc5552742002-04-03 20:24:44 +00005625 ;
5626 return 0;
5627}
5628_ACEOF
5629rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005631 (eval $ac_link) 2>&5
5632 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005634 (exit $ac_status); } &&
5635 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005637 (eval $ac_try) 2>&5
5638 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005640 (exit $ac_status); }; }; then
5641 eval "$as_ac_var=yes"
5642else
5643 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005644sed 's/^/| /' conftest.$ac_ext >&5
5645
Alexandre Julliardc5552742002-04-03 20:24:44 +00005646eval "$as_ac_var=no"
5647fi
5648rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5649fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005651echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5652if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005653 cat >>confdefs.h <<_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00005654#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005655_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00005656
5657else
5658
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005659echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005660echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5661if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5663else
5664 ac_check_lib_save_LIBS=$LIBS
5665LIBS="-lresolv $LIBS"
5666cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005667#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005668/* confdefs.h. */
5669_ACEOF
5670cat confdefs.h >>conftest.$ac_ext
5671cat >>conftest.$ac_ext <<_ACEOF
5672/* end confdefs.h. */
Francois Gouget3b943bc2002-04-01 21:05:15 +00005673
5674/* Override any gcc2 internal prototype to avoid an error. */
5675#ifdef __cplusplus
5676extern "C"
5677#endif
5678/* We use char because int might match the return type of a gcc2
5679 builtin and then its argument prototype would still apply. */
5680char inet_aton ();
5681int
5682main ()
5683{
5684inet_aton ();
5685 ;
5686 return 0;
5687}
5688_ACEOF
5689rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005691 (eval $ac_link) 2>&5
5692 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005694 (exit $ac_status); } &&
5695 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005697 (eval $ac_try) 2>&5
5698 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005700 (exit $ac_status); }; }; then
5701 ac_cv_lib_resolv_inet_aton=yes
5702else
5703 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005704sed 's/^/| /' conftest.$ac_ext >&5
5705
Francois Gouget3b943bc2002-04-01 21:05:15 +00005706ac_cv_lib_resolv_inet_aton=no
5707fi
5708rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5709LIBS=$ac_check_lib_save_LIBS
5710fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005711echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005712echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5713if test $ac_cv_lib_resolv_inet_aton = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005714 cat >>confdefs.h <<_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00005715#define HAVE_LIBRESOLV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005716_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00005717
5718 LIBS="-lresolv $LIBS"
5719
5720fi
5721
Alexandre Julliardc5552742002-04-03 20:24:44 +00005722fi
5723done
5724
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005725
5726echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005727echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5728if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005730else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005731 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005732LIBS="-lxpg4 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005733cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005734#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005735/* confdefs.h. */
5736_ACEOF
5737cat confdefs.h >>conftest.$ac_ext
5738cat >>conftest.$ac_ext <<_ACEOF
5739/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005740
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005741/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005742#ifdef __cplusplus
5743extern "C"
5744#endif
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005745/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005746 builtin and then its argument prototype would still apply. */
5747char _xpg4_setrunelocale ();
5748int
5749main ()
5750{
5751_xpg4_setrunelocale ();
5752 ;
5753 return 0;
5754}
5755_ACEOF
5756rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005758 (eval $ac_link) 2>&5
5759 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005761 (exit $ac_status); } &&
5762 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005764 (eval $ac_try) 2>&5
5765 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005767 (exit $ac_status); }; }; then
5768 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005769else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005770 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005771sed 's/^/| /' conftest.$ac_ext >&5
5772
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005773ac_cv_lib_xpg4__xpg4_setrunelocale=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005774fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005775rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5776LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005777fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005778echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005779echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5780if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005781 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005782#define HAVE_LIBXPG4 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005783_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005784
5785 LIBS="-lxpg4 $LIBS"
5786
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005787fi
5788
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005789
5790echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005791echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5792if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005794else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005795 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005796LIBS="-lmmap $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005797cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005798#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005799/* confdefs.h. */
5800_ACEOF
5801cat confdefs.h >>conftest.$ac_ext
5802cat >>conftest.$ac_ext <<_ACEOF
5803/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005804
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005805/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005806#ifdef __cplusplus
5807extern "C"
5808#endif
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005809/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005810 builtin and then its argument prototype would still apply. */
5811char mmap ();
5812int
5813main ()
5814{
5815mmap ();
5816 ;
5817 return 0;
5818}
5819_ACEOF
5820rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005822 (eval $ac_link) 2>&5
5823 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005825 (exit $ac_status); } &&
5826 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005828 (eval $ac_try) 2>&5
5829 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005831 (exit $ac_status); }; }; then
5832 ac_cv_lib_mmap_mmap=yes
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005833else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005834 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005835sed 's/^/| /' conftest.$ac_ext >&5
5836
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005837ac_cv_lib_mmap_mmap=no
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005838fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005839rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5840LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005841fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005842echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005843echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5844if test $ac_cv_lib_mmap_mmap = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005845 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005846#define HAVE_LIBMMAP 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005847_ACEOF
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005848
5849 LIBS="-lmmap $LIBS"
5850
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005851fi
5852
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005853
Alexandre Julliardfa3a5362002-05-09 01:49:54 +00005854JPEGLIB=""
Alexandre Julliard562089b2001-12-31 22:28:35 +00005855
Alexandre Julliard11af04e2002-10-10 03:48:04 +00005856echo "$as_me:$LINENO: checking for egrep" >&5
5857echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5858if test "${ac_cv_prog_egrep+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5860else
5861 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5862 then ac_cv_prog_egrep='grep -E'
5863 else ac_cv_prog_egrep='egrep'
5864 fi
5865fi
5866echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5867echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5868 EGREP=$ac_cv_prog_egrep
5869
5870
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005871echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5872echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5873if test "${ac_cv_header_stdc+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005874 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00005875else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005876 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005877#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005878/* confdefs.h. */
5879_ACEOF
5880cat confdefs.h >>conftest.$ac_ext
5881cat >>conftest.$ac_ext <<_ACEOF
5882/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005883#include <stdlib.h>
5884#include <stdarg.h>
5885#include <string.h>
5886#include <float.h>
5887
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005888int
5889main ()
5890{
5891
5892 ;
5893 return 0;
5894}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005895_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005896rm -f conftest.$ac_objext
5897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005899 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005901 (exit $ac_status); } &&
5902 { ac_try='test -s conftest.$ac_objext'
5903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904 (eval $ac_try) 2>&5
5905 ac_status=$?
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005908 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005909else
5910 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005911sed 's/^/| /' conftest.$ac_ext >&5
5912
5913ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005914fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005915rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005916
5917if test $ac_cv_header_stdc = yes; then
5918 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5919 cat >conftest.$ac_ext <<_ACEOF
5920#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005921/* confdefs.h. */
5922_ACEOF
5923cat confdefs.h >>conftest.$ac_ext
5924cat >>conftest.$ac_ext <<_ACEOF
5925/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005926#include <string.h>
5927
5928_ACEOF
5929if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00005930 $EGREP "memchr" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005931 :
5932else
5933 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005934fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005935rm -f conftest*
5936
5937fi
5938
5939if test $ac_cv_header_stdc = yes; then
5940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5941 cat >conftest.$ac_ext <<_ACEOF
5942#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005943/* confdefs.h. */
5944_ACEOF
5945cat confdefs.h >>conftest.$ac_ext
5946cat >>conftest.$ac_ext <<_ACEOF
5947/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005948#include <stdlib.h>
5949
5950_ACEOF
5951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00005952 $EGREP "free" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005953 :
5954else
5955 ac_cv_header_stdc=no
5956fi
5957rm -f conftest*
5958
5959fi
5960
5961if test $ac_cv_header_stdc = yes; then
5962 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5963 if test "$cross_compiling" = yes; then
5964 :
5965else
5966 cat >conftest.$ac_ext <<_ACEOF
5967#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005968/* confdefs.h. */
5969_ACEOF
5970cat confdefs.h >>conftest.$ac_ext
5971cat >>conftest.$ac_ext <<_ACEOF
5972/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005973#include <ctype.h>
5974#if ((' ' & 0x0FF) == 0x020)
5975# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5976# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5977#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005978# define ISLOWER(c) \
5979 (('a' <= (c) && (c) <= 'i') \
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005980 || ('j' <= (c) && (c) <= 'r') \
5981 || ('s' <= (c) && (c) <= 'z'))
5982# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5983#endif
5984
5985#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5986int
5987main ()
5988{
5989 int i;
5990 for (i = 0; i < 256; i++)
5991 if (XOR (islower (i), ISLOWER (i))
5992 || toupper (i) != TOUPPER (i))
5993 exit(2);
5994 exit (0);
5995}
5996_ACEOF
5997rm -f conftest$ac_exeext
5998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999 (eval $ac_link) 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 (eval $ac_try) 2>&5
6005 ac_status=$?
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6008 :
6009else
6010 echo "$as_me: program exited with status $ac_status" >&5
6011echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006012sed 's/^/| /' conftest.$ac_ext >&5
6013
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006014( exit $ac_status )
6015ac_cv_header_stdc=no
6016fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006017rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006018fi
6019fi
6020fi
6021echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6022echo "${ECHO_T}$ac_cv_header_stdc" >&6
6023if test $ac_cv_header_stdc = yes; then
6024
6025cat >>confdefs.h <<\_ACEOF
6026#define STDC_HEADERS 1
6027_ACEOF
6028
6029fi
6030
6031# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6042 inttypes.h stdint.h unistd.h
6043do
6044as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6045echo "$as_me:$LINENO: checking for $ac_header" >&5
6046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6047if eval "test \"\${$as_ac_Header+set}\" = set"; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049else
6050 cat >conftest.$ac_ext <<_ACEOF
6051#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006052/* confdefs.h. */
6053_ACEOF
6054cat confdefs.h >>conftest.$ac_ext
6055cat >>conftest.$ac_ext <<_ACEOF
6056/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006057$ac_includes_default
6058
6059#include <$ac_header>
6060_ACEOF
6061rm -f conftest.$ac_objext
6062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6063 (eval $ac_compile) 2>&5
6064 ac_status=$?
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } &&
6067 { ac_try='test -s conftest.$ac_objext'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069 (eval $ac_try) 2>&5
6070 ac_status=$?
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; }; then
6073 eval "$as_ac_Header=yes"
6074else
6075 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006076sed 's/^/| /' conftest.$ac_ext >&5
6077
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006078eval "$as_ac_Header=no"
6079fi
6080rm -f conftest.$ac_objext conftest.$ac_ext
6081fi
6082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006083echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6084if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006085 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006086#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006087_ACEOF
6088
6089fi
6090
6091done
6092
6093
6094
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006095for ac_header in jpeglib.h
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006096do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006098if eval "test \"\${$as_ac_Header+set}\" = set"; then
6099 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6101if eval "test \"\${$as_ac_Header+set}\" = set"; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006103fi
6104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6105echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006106else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006107 # Is the header compilable?
6108echo "$as_me:$LINENO: checking $ac_header usability" >&5
6109echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6110cat >conftest.$ac_ext <<_ACEOF
6111#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006112/* confdefs.h. */
6113_ACEOF
6114cat confdefs.h >>conftest.$ac_ext
6115cat >>conftest.$ac_ext <<_ACEOF
6116/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006117$ac_includes_default
6118#include <$ac_header>
6119_ACEOF
6120rm -f conftest.$ac_objext
6121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6122 (eval $ac_compile) 2>&5
6123 ac_status=$?
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } &&
6126 { ac_try='test -s conftest.$ac_objext'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 (eval $ac_try) 2>&5
6129 ac_status=$?
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; }; then
6132 ac_header_compiler=yes
6133else
6134 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006135sed 's/^/| /' conftest.$ac_ext >&5
6136
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006137ac_header_compiler=no
6138fi
6139rm -f conftest.$ac_objext conftest.$ac_ext
6140echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6141echo "${ECHO_T}$ac_header_compiler" >&6
6142
6143# Is the header present?
6144echo "$as_me:$LINENO: checking $ac_header presence" >&5
6145echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6146cat >conftest.$ac_ext <<_ACEOF
6147#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006148/* confdefs.h. */
6149_ACEOF
6150cat confdefs.h >>conftest.$ac_ext
6151cat >>conftest.$ac_ext <<_ACEOF
6152/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006153#include <$ac_header>
6154_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006155if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6157 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006158 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006159 rm -f conftest.er1
6160 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006162 (exit $ac_status); } >/dev/null; then
6163 if test -s conftest.err; then
6164 ac_cpp_err=$ac_c_preproc_warn_flag
6165 else
6166 ac_cpp_err=
6167 fi
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006168else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006169 ac_cpp_err=yes
6170fi
6171if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006172 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006173else
6174 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006175sed 's/^/| /' conftest.$ac_ext >&5
6176
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006177 ac_header_preproc=no
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006178fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006179rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006180echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6181echo "${ECHO_T}$ac_header_preproc" >&6
6182
6183# So? What about this header?
6184case $ac_header_compiler:$ac_header_preproc in
6185 yes:no )
6186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6187echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006189echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6190 (
6191 cat <<\_ASBOX
6192## ------------------------------------ ##
6193## Report this to bug-autoconf@gnu.org. ##
6194## ------------------------------------ ##
6195_ASBOX
6196 ) |
6197 sed "s/^/$as_me: WARNING: /" >&2
6198 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006199 no:yes )
6200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6201echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6203echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006205echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6206 (
6207 cat <<\_ASBOX
6208## ------------------------------------ ##
6209## Report this to bug-autoconf@gnu.org. ##
6210## ------------------------------------ ##
6211_ASBOX
6212 ) |
6213 sed "s/^/$as_me: WARNING: /" >&2
6214 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006215esac
6216echo "$as_me:$LINENO: checking for $ac_header" >&5
6217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6218if eval "test \"\${$as_ac_Header+set}\" = set"; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6220else
6221 eval "$as_ac_Header=$ac_header_preproc"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006222fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006224echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006225
6226fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006227if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006228 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006229#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006230_ACEOF
6231 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006232echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6233if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006235else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006236 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006237LIBS="-ljpeg $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006238cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006239#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006240/* confdefs.h. */
6241_ACEOF
6242cat confdefs.h >>conftest.$ac_ext
6243cat >>conftest.$ac_ext <<_ACEOF
6244/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006245
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006246/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006247#ifdef __cplusplus
6248extern "C"
6249#endif
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006250/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006251 builtin and then its argument prototype would still apply. */
6252char jpeg_start_decompress ();
6253int
6254main ()
6255{
6256jpeg_start_decompress ();
6257 ;
6258 return 0;
6259}
6260_ACEOF
6261rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006263 (eval $ac_link) 2>&5
6264 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006266 (exit $ac_status); } &&
6267 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006269 (eval $ac_try) 2>&5
6270 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006272 (exit $ac_status); }; }; then
6273 ac_cv_lib_jpeg_jpeg_start_decompress=yes
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006274else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006275 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006276sed 's/^/| /' conftest.$ac_ext >&5
6277
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006278ac_cv_lib_jpeg_jpeg_start_decompress=no
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006279fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006280rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6281LIBS=$ac_check_lib_save_LIBS
6282fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006283echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006284echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6285if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006286
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006287cat >>confdefs.h <<\_ACEOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006288#define HAVE_LIBJPEG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006289_ACEOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006290
6291 JPEGLIB="-ljpeg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006292
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006293fi
6294
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006295
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006296fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006297
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006298done
6299
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006300
6301
6302
6303
Patrik Stridvall2941a212000-04-25 20:34:22 +00006304XFILES=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006305
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00006306OPENGLFILES=""
6307
Marcus Meissnerb63ab442001-06-08 19:02:57 +00006308GLU32FILES=""
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00006309
6310OPENGL_LIBS=""
Patrik Stridvallea584721998-11-01 16:22:07 +00006311if test "$have_x" = "yes"
6312then
Patrik Stridvall24110281999-02-04 10:09:54 +00006313 XLIB="-lXext -lX11"
Ove Kaaven1eb593c1999-02-14 09:34:46 +00006314 ac_save_CPPFLAGS="$CPPFLAGS"
6315 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00006316
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006317
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006318for ac_header in X11/Xlib.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00006319do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006320as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006321if eval "test \"\${$as_ac_Header+set}\" = set"; then
6322 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6324if eval "test \"\${$as_ac_Header+set}\" = set"; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006326fi
6327echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6328echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Lionel Ulmera1d6d241999-01-30 15:54:43 +00006329else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006330 # Is the header compilable?
6331echo "$as_me:$LINENO: checking $ac_header usability" >&5
6332echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6333cat >conftest.$ac_ext <<_ACEOF
6334#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006335/* confdefs.h. */
6336_ACEOF
6337cat confdefs.h >>conftest.$ac_ext
6338cat >>conftest.$ac_ext <<_ACEOF
6339/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006340$ac_includes_default
6341#include <$ac_header>
6342_ACEOF
6343rm -f conftest.$ac_objext
6344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6345 (eval $ac_compile) 2>&5
6346 ac_status=$?
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } &&
6349 { ac_try='test -s conftest.$ac_objext'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351 (eval $ac_try) 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
6355 ac_header_compiler=yes
6356else
6357 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006358sed 's/^/| /' conftest.$ac_ext >&5
6359
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006360ac_header_compiler=no
6361fi
6362rm -f conftest.$ac_objext conftest.$ac_ext
6363echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6364echo "${ECHO_T}$ac_header_compiler" >&6
6365
6366# Is the header present?
6367echo "$as_me:$LINENO: checking $ac_header presence" >&5
6368echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6369cat >conftest.$ac_ext <<_ACEOF
6370#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006371/* confdefs.h. */
6372_ACEOF
6373cat confdefs.h >>conftest.$ac_ext
6374cat >>conftest.$ac_ext <<_ACEOF
6375/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006376#include <$ac_header>
6377_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006378if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6380 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006381 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006382 rm -f conftest.er1
6383 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006385 (exit $ac_status); } >/dev/null; then
6386 if test -s conftest.err; then
6387 ac_cpp_err=$ac_c_preproc_warn_flag
6388 else
6389 ac_cpp_err=
6390 fi
Lionel Ulmera1d6d241999-01-30 15:54:43 +00006391else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006392 ac_cpp_err=yes
6393fi
6394if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006395 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006396else
6397 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006398sed 's/^/| /' conftest.$ac_ext >&5
6399
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006400 ac_header_preproc=no
Lionel Ulmera1d6d241999-01-30 15:54:43 +00006401fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006402rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006403echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6404echo "${ECHO_T}$ac_header_preproc" >&6
6405
6406# So? What about this header?
6407case $ac_header_compiler:$ac_header_preproc in
6408 yes:no )
6409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6410echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006412echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6413 (
6414 cat <<\_ASBOX
6415## ------------------------------------ ##
6416## Report this to bug-autoconf@gnu.org. ##
6417## ------------------------------------ ##
6418_ASBOX
6419 ) |
6420 sed "s/^/$as_me: WARNING: /" >&2
6421 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006422 no:yes )
6423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6424echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6426echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006428echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6429 (
6430 cat <<\_ASBOX
6431## ------------------------------------ ##
6432## Report this to bug-autoconf@gnu.org. ##
6433## ------------------------------------ ##
6434_ASBOX
6435 ) |
6436 sed "s/^/$as_me: WARNING: /" >&2
6437 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006438esac
6439echo "$as_me:$LINENO: checking for $ac_header" >&5
6440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6441if eval "test \"\${$as_ac_Header+set}\" = set"; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6443else
6444 eval "$as_ac_Header=$ac_header_preproc"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00006445fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006447echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006448
6449fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006450if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006451 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006452#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006453_ACEOF
6454
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006455
6456for ac_header in X11/XKBlib.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006457do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006458as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006459echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6461if eval "test \"\${$as_ac_Header+set}\" = set"; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006463else
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006464 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006465#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006466/* confdefs.h. */
6467_ACEOF
6468cat confdefs.h >>conftest.$ac_ext
6469cat >>conftest.$ac_ext <<_ACEOF
6470/* end confdefs.h. */
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006471#include <X11/Xlib.h>
6472
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006473#include <$ac_header>
6474_ACEOF
6475rm -f conftest.$ac_objext
6476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6477 (eval $ac_compile) 2>&5
6478 ac_status=$?
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } &&
6481 { ac_try='test -s conftest.$ac_objext'
6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 (eval $ac_try) 2>&5
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; }; then
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006487 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006488else
6489 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006490sed 's/^/| /' conftest.$ac_ext >&5
6491
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006492eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006493fi
6494rm -f conftest.$ac_objext conftest.$ac_ext
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006495fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006496echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006497echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6498if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006499 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006500#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006501_ACEOF
6502 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006503echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6504if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006506else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006507 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00006508LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006509cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006510#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006511/* confdefs.h. */
6512_ACEOF
6513cat confdefs.h >>conftest.$ac_ext
6514cat >>conftest.$ac_ext <<_ACEOF
6515/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006516
Patrik Stridvall24110281999-02-04 10:09:54 +00006517/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006518#ifdef __cplusplus
6519extern "C"
6520#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00006521/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006522 builtin and then its argument prototype would still apply. */
6523char XkbQueryExtension ();
6524int
6525main ()
6526{
6527XkbQueryExtension ();
6528 ;
6529 return 0;
6530}
6531_ACEOF
6532rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006534 (eval $ac_link) 2>&5
6535 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006537 (exit $ac_status); } &&
6538 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006540 (eval $ac_try) 2>&5
6541 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006543 (exit $ac_status); }; }; then
6544 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00006545else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006546 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006547sed 's/^/| /' conftest.$ac_ext >&5
6548
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006549ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006550fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006551rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6552LIBS=$ac_check_lib_save_LIBS
6553fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006554echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006555echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6556if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00006557
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006558cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006559#define HAVE_XKB 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006560_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00006561
Patrik Stridvall24110281999-02-04 10:09:54 +00006562fi
6563
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006564
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006565else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006566 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006567echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006568fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006569
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006570done
6571
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006572
6573
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006574for ac_header in X11/extensions/XShm.h
Patrik Stridvall24110281999-02-04 10:09:54 +00006575do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006576as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006577echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6579if eval "test \"\${$as_ac_Header+set}\" = set"; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006581else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006582 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006583#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006584/* confdefs.h. */
6585_ACEOF
6586cat confdefs.h >>conftest.$ac_ext
6587cat >>conftest.$ac_ext <<_ACEOF
6588/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006589#include <X11/Xlib.h>
6590
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006591#include <$ac_header>
6592_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006593rm -f conftest.$ac_objext
6594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006596 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } &&
6599 { ac_try='test -s conftest.$ac_objext'
6600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 (eval $ac_try) 2>&5
6602 ac_status=$?
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006605 eval "$as_ac_Header=yes"
6606else
6607 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006608sed 's/^/| /' conftest.$ac_ext >&5
6609
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006610eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00006611fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006612rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00006613fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006614echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006615echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6616if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006617 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006618#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006619_ACEOF
6620 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006621echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6622if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00006624else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006625 ac_check_lib_save_LIBS=$LIBS
Francois Jacques5b6879c2000-07-28 23:04:54 +00006626LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006627cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006628#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006629/* confdefs.h. */
6630_ACEOF
6631cat confdefs.h >>conftest.$ac_ext
6632cat >>conftest.$ac_ext <<_ACEOF
6633/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006634
Francois Jacques5b6879c2000-07-28 23:04:54 +00006635/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006636#ifdef __cplusplus
6637extern "C"
6638#endif
Francois Jacques5b6879c2000-07-28 23:04:54 +00006639/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006640 builtin and then its argument prototype would still apply. */
6641char XShmQueryExtension ();
6642int
6643main ()
6644{
6645XShmQueryExtension ();
6646 ;
6647 return 0;
6648}
6649_ACEOF
6650rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006652 (eval $ac_link) 2>&5
6653 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006655 (exit $ac_status); } &&
6656 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006658 (eval $ac_try) 2>&5
6659 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006661 (exit $ac_status); }; }; then
6662 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00006663else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006664 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006665sed 's/^/| /' conftest.$ac_ext >&5
6666
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006667ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00006668fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006669rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6670LIBS=$ac_check_lib_save_LIBS
6671fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006672echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006673echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6674if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00006675
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006676cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006677#define HAVE_LIBXXSHM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006678_ACEOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00006679
Francois Jacques5b6879c2000-07-28 23:04:54 +00006680fi
6681
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006682
Francois Jacques5b6879c2000-07-28 23:04:54 +00006683else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006684 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006685echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
Francois Jacques5b6879c2000-07-28 23:04:54 +00006686fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006687
Francois Jacques5b6879c2000-07-28 23:04:54 +00006688done
6689
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006690
6691
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006692for ac_header in X11/Xutil.h
6693do
6694as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6695echo "$as_me:$LINENO: checking for $ac_header" >&5
6696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6697if eval "test \"\${$as_ac_Header+set}\" = set"; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6699else
6700 cat >conftest.$ac_ext <<_ACEOF
6701#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006702/* confdefs.h. */
6703_ACEOF
6704cat confdefs.h >>conftest.$ac_ext
6705cat >>conftest.$ac_ext <<_ACEOF
6706/* end confdefs.h. */
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006707#include <X11/Xlib.h>
6708
6709#include <$ac_header>
6710_ACEOF
6711rm -f conftest.$ac_objext
6712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6713 (eval $ac_compile) 2>&5
6714 ac_status=$?
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } &&
6717 { ac_try='test -s conftest.$ac_objext'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719 (eval $ac_try) 2>&5
6720 ac_status=$?
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; }; then
6723 eval "$as_ac_Header=yes"
6724else
6725 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006726sed 's/^/| /' conftest.$ac_ext >&5
6727
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006728eval "$as_ac_Header=no"
6729fi
6730rm -f conftest.$ac_objext conftest.$ac_ext
6731fi
6732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6734if test `eval echo '${'$as_ac_Header'}'` = yes; then
6735 cat >>confdefs.h <<_ACEOF
6736#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6737_ACEOF
6738
6739fi
6740
6741done
6742
6743
6744
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006745for ac_header in X11/extensions/shape.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00006746do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006747as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006748echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6750if eval "test \"\${$as_ac_Header+set}\" = set"; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00006752else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006753 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006754#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006755/* confdefs.h. */
6756_ACEOF
6757cat confdefs.h >>conftest.$ac_ext
6758cat >>conftest.$ac_ext <<_ACEOF
6759/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006760#include <X11/Xlib.h>
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006761 #ifdef HAVE_X11_XUTIL_H
6762 # include <X11/Xutil.h>
6763 #endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006764
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006765#include <$ac_header>
6766_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006767rm -f conftest.$ac_objext
6768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6769 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006770 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try='test -s conftest.$ac_objext'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 (eval $ac_try) 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006779 eval "$as_ac_Header=yes"
6780else
6781 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006782sed 's/^/| /' conftest.$ac_ext >&5
6783
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006784eval "$as_ac_Header=no"
Francois Jacques5b6879c2000-07-28 23:04:54 +00006785fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006786rm -f conftest.$ac_objext conftest.$ac_ext
Francois Jacques5b6879c2000-07-28 23:04:54 +00006787fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6790if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006791 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006792#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006793_ACEOF
6794 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006795echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6796if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00006798else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006799 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00006800LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006801cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006802#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006803/* confdefs.h. */
6804_ACEOF
6805cat confdefs.h >>conftest.$ac_ext
6806cat >>conftest.$ac_ext <<_ACEOF
6807/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006808
Ove Kaavenc90fb252001-01-02 22:39:14 +00006809/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006810#ifdef __cplusplus
6811extern "C"
6812#endif
Ove Kaavenc90fb252001-01-02 22:39:14 +00006813/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006814 builtin and then its argument prototype would still apply. */
6815char XShapeQueryExtension ();
6816int
6817main ()
6818{
6819XShapeQueryExtension ();
6820 ;
6821 return 0;
6822}
6823_ACEOF
6824rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006826 (eval $ac_link) 2>&5
6827 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006829 (exit $ac_status); } &&
6830 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006832 (eval $ac_try) 2>&5
6833 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006835 (exit $ac_status); }; }; then
6836 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00006837else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006838 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006839sed 's/^/| /' conftest.$ac_ext >&5
6840
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006841ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00006842fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006843rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6844LIBS=$ac_check_lib_save_LIBS
6845fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006846echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006847echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6848if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00006849
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006850cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006851#define HAVE_LIBXSHAPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006852_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006853
Ove Kaavenc90fb252001-01-02 22:39:14 +00006854fi
6855
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006856
Ove Kaavenc90fb252001-01-02 22:39:14 +00006857else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006858 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006859echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
Ove Kaavenc90fb252001-01-02 22:39:14 +00006860fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006861
Ove Kaavenc90fb252001-01-02 22:39:14 +00006862done
6863
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006864
6865
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006866for ac_header in X11/extensions/xf86dga.h
Ove Kaavenc90fb252001-01-02 22:39:14 +00006867do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006868as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006869echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6871if eval "test \"\${$as_ac_Header+set}\" = set"; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00006873else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006874 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006875#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006876/* confdefs.h. */
6877_ACEOF
6878cat confdefs.h >>conftest.$ac_ext
6879cat >>conftest.$ac_ext <<_ACEOF
6880/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006881#include <X11/Xlib.h>
6882
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006883#include <$ac_header>
6884_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006885rm -f conftest.$ac_objext
6886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6887 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006888 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } &&
6891 { ac_try='test -s conftest.$ac_objext'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 (eval $ac_try) 2>&5
6894 ac_status=$?
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006897 eval "$as_ac_Header=yes"
6898else
6899 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006900sed 's/^/| /' conftest.$ac_ext >&5
6901
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006902eval "$as_ac_Header=no"
Ove Kaavenc90fb252001-01-02 22:39:14 +00006903fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006904rm -f conftest.$ac_objext conftest.$ac_ext
Ove Kaavenc90fb252001-01-02 22:39:14 +00006905fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006907echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6908if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006909 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006910#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006911_ACEOF
6912 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006913echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6914if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006916else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006917 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006918LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006919 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006920cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006921#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006922/* confdefs.h. */
6923_ACEOF
6924cat confdefs.h >>conftest.$ac_ext
6925cat >>conftest.$ac_ext <<_ACEOF
6926/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006927
Patrik Stridvall24110281999-02-04 10:09:54 +00006928/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006929#ifdef __cplusplus
6930extern "C"
6931#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00006932/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006933 builtin and then its argument prototype would still apply. */
6934char XDGAQueryExtension ();
6935int
6936main ()
6937{
6938XDGAQueryExtension ();
6939 ;
6940 return 0;
6941}
6942_ACEOF
6943rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006945 (eval $ac_link) 2>&5
6946 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006948 (exit $ac_status); } &&
6949 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006951 (eval $ac_try) 2>&5
6952 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006954 (exit $ac_status); }; }; then
6955 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006956else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006957 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006958sed 's/^/| /' conftest.$ac_ext >&5
6959
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006960ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006961fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006962rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6963LIBS=$ac_check_lib_save_LIBS
6964fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006965echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006966echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6967if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006968
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006969cat >>confdefs.h <<\_ACEOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006970#define HAVE_LIBXXF86DGA2 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006971_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006972
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006973 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006974
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006975else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006976 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006977echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6978if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006980else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006981 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006982LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6983 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006984cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006985#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006986/* confdefs.h. */
6987_ACEOF
6988cat confdefs.h >>conftest.$ac_ext
6989cat >>conftest.$ac_ext <<_ACEOF
6990/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006991
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006992/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006993#ifdef __cplusplus
6994extern "C"
6995#endif
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006996/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006997 builtin and then its argument prototype would still apply. */
6998char XF86DGAQueryExtension ();
6999int
7000main ()
7001{
7002XF86DGAQueryExtension ();
7003 ;
7004 return 0;
7005}
7006_ACEOF
7007rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007009 (eval $ac_link) 2>&5
7010 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007012 (exit $ac_status); } &&
7013 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007015 (eval $ac_try) 2>&5
7016 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007018 (exit $ac_status); }; }; then
7019 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007020else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007021 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007022sed 's/^/| /' conftest.$ac_ext >&5
7023
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007024ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007025fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007026rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7027LIBS=$ac_check_lib_save_LIBS
7028fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007029echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007030echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7031if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00007032
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007033cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00007034#define HAVE_LIBXXF86DGA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007035_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00007036
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007037 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007038
Patrik Stridvall24110281999-02-04 10:09:54 +00007039fi
7040
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007041
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007042fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007043
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007044
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007045else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007046 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007047echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007048fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007049
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007050done
7051
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007052
7053
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007054for ac_header in X11/extensions/xf86vmode.h
Patrik Stridvall24110281999-02-04 10:09:54 +00007055do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007056as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007057echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7059if eval "test \"\${$as_ac_Header+set}\" = set"; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007061else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007062 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007063#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007064/* confdefs.h. */
7065_ACEOF
7066cat confdefs.h >>conftest.$ac_ext
7067cat >>conftest.$ac_ext <<_ACEOF
7068/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007069#include <X11/Xlib.h>
7070
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007071#include <$ac_header>
7072_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007073rm -f conftest.$ac_objext
7074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7075 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007076 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } &&
7079 { ac_try='test -s conftest.$ac_objext'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 (eval $ac_try) 2>&5
7082 ac_status=$?
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007085 eval "$as_ac_Header=yes"
7086else
7087 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007088sed 's/^/| /' conftest.$ac_ext >&5
7089
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007090eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00007091fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007092rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00007093fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007095echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7096if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007097 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007098#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007099_ACEOF
7100 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007101echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7102if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007104else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007105 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007106LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7107 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007108cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007109#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007110/* confdefs.h. */
7111_ACEOF
7112cat confdefs.h >>conftest.$ac_ext
7113cat >>conftest.$ac_ext <<_ACEOF
7114/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007115
Patrik Stridvall24110281999-02-04 10:09:54 +00007116/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007117#ifdef __cplusplus
7118extern "C"
7119#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007120/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007121 builtin and then its argument prototype would still apply. */
7122char XF86VidModeQueryExtension ();
7123int
7124main ()
7125{
7126XF86VidModeQueryExtension ();
7127 ;
7128 return 0;
7129}
7130_ACEOF
7131rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007133 (eval $ac_link) 2>&5
7134 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007136 (exit $ac_status); } &&
7137 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007139 (eval $ac_try) 2>&5
7140 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007142 (exit $ac_status); }; }; then
7143 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007144else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007145 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007146sed 's/^/| /' conftest.$ac_ext >&5
7147
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007148ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007149fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007150rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7151LIBS=$ac_check_lib_save_LIBS
7152fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007153echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007154echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7155if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00007156
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007157cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00007158#define HAVE_LIBXXF86VM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007159_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007160
7161 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007162
Patrik Stridvall24110281999-02-04 10:09:54 +00007163fi
7164
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007165
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007166else
7167 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
7168echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007169fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007170
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007171done
Lionel Ulmer5c085701999-02-28 19:48:53 +00007172
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007173
7174
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007175for ac_header in X11/extensions/Xvlib.h
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007176do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007177as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007178echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7180if eval "test \"\${$as_ac_Header+set}\" = set"; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007182else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007183 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007184#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007185/* confdefs.h. */
7186_ACEOF
7187cat confdefs.h >>conftest.$ac_ext
7188cat >>conftest.$ac_ext <<_ACEOF
7189/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007190#include <X11/Xlib.h>
7191
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007192#include <$ac_header>
7193_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007194rm -f conftest.$ac_objext
7195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007197 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } &&
7200 { ac_try='test -s conftest.$ac_objext'
7201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202 (eval $ac_try) 2>&5
7203 ac_status=$?
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007206 eval "$as_ac_Header=yes"
7207else
7208 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007209sed 's/^/| /' conftest.$ac_ext >&5
7210
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007211eval "$as_ac_Header=no"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007212fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007213rm -f conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007214fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007215echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007216echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7217if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007218 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007219#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007220_ACEOF
7221 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007222echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7223if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007225else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007226 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007227LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7228 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007229cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007230#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007231/* confdefs.h. */
7232_ACEOF
7233cat confdefs.h >>conftest.$ac_ext
7234cat >>conftest.$ac_ext <<_ACEOF
7235/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007236
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007237/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007238#ifdef __cplusplus
7239extern "C"
7240#endif
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007241/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007242 builtin and then its argument prototype would still apply. */
7243char XvShmCreateImage ();
7244int
7245main ()
7246{
7247XvShmCreateImage ();
7248 ;
7249 return 0;
7250}
7251_ACEOF
7252rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007254 (eval $ac_link) 2>&5
7255 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007257 (exit $ac_status); } &&
7258 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007260 (eval $ac_try) 2>&5
7261 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007263 (exit $ac_status); }; }; then
7264 ac_cv_lib_Xv_XvShmCreateImage=yes
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007265else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007266 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007267sed 's/^/| /' conftest.$ac_ext >&5
7268
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007269ac_cv_lib_Xv_XvShmCreateImage=no
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007270fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007271rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7272LIBS=$ac_check_lib_save_LIBS
7273fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007274echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007275echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7276if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007277
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007278cat >>confdefs.h <<\_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007279#define HAVE_XVIDEO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007280_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007281
7282 X_PRE_LIBS="$X_PRE_LIBS -lXv"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007283
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007284fi
7285
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007286
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007287else
7288 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
7289echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007290fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007291
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007292done
7293
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007294
7295
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007296for ac_header in X11/extensions/Xrender.h
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007297do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007298as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007299echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7301if eval "test \"\${$as_ac_Header+set}\" = set"; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007303else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007304 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007305#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007306/* confdefs.h. */
7307_ACEOF
7308cat confdefs.h >>conftest.$ac_ext
7309cat >>conftest.$ac_ext <<_ACEOF
7310/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007311#include <X11/Xlib.h>
7312
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007313#include <$ac_header>
7314_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007315rm -f conftest.$ac_objext
7316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7317 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007318 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); } &&
7321 { ac_try='test -s conftest.$ac_objext'
7322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323 (eval $ac_try) 2>&5
7324 ac_status=$?
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007327 eval "$as_ac_Header=yes"
7328else
7329 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007330sed 's/^/| /' conftest.$ac_ext >&5
7331
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007332eval "$as_ac_Header=no"
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007333fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007334rm -f conftest.$ac_objext conftest.$ac_ext
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007335fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007337echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7338if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007339 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007340#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007341_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007342
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007343fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007344
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007345done
7346
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007347
7348
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007349fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007350
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007351done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007352
Alexandre Julliardb8074992002-11-21 21:51:24 +00007353 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007354 then
Francois Gouget42dcd972002-01-29 17:52:28 +00007355 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007356 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007357 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007358This prevents linking to OpenGL. Delete the file and restart configure." >&5
7359echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7360This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7361 { (exit 1); exit 1; }; }
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007362 fi
7363
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007364
7365
7366for ac_header in GL/gl.h GL/glx.h
Patrik Stridvall24110281999-02-04 10:09:54 +00007367do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007368as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007369if eval "test \"\${$as_ac_Header+set}\" = set"; then
7370 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7372if eval "test \"\${$as_ac_Header+set}\" = set"; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007374fi
7375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7376echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007377else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007378 # Is the header compilable?
7379echo "$as_me:$LINENO: checking $ac_header usability" >&5
7380echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7381cat >conftest.$ac_ext <<_ACEOF
7382#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007383/* confdefs.h. */
7384_ACEOF
7385cat confdefs.h >>conftest.$ac_ext
7386cat >>conftest.$ac_ext <<_ACEOF
7387/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007388$ac_includes_default
7389#include <$ac_header>
7390_ACEOF
7391rm -f conftest.$ac_objext
7392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7393 (eval $ac_compile) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } &&
7397 { ac_try='test -s conftest.$ac_objext'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 (eval $ac_try) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; }; then
7403 ac_header_compiler=yes
7404else
7405 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007406sed 's/^/| /' conftest.$ac_ext >&5
7407
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007408ac_header_compiler=no
7409fi
7410rm -f conftest.$ac_objext conftest.$ac_ext
7411echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7412echo "${ECHO_T}$ac_header_compiler" >&6
7413
7414# Is the header present?
7415echo "$as_me:$LINENO: checking $ac_header presence" >&5
7416echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7417cat >conftest.$ac_ext <<_ACEOF
7418#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007419/* confdefs.h. */
7420_ACEOF
7421cat confdefs.h >>conftest.$ac_ext
7422cat >>conftest.$ac_ext <<_ACEOF
7423/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007424#include <$ac_header>
7425_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007426if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7428 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007429 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007430 rm -f conftest.er1
7431 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007433 (exit $ac_status); } >/dev/null; then
7434 if test -s conftest.err; then
7435 ac_cpp_err=$ac_c_preproc_warn_flag
7436 else
7437 ac_cpp_err=
7438 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007439else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007440 ac_cpp_err=yes
7441fi
7442if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007443 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007444else
7445 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007446sed 's/^/| /' conftest.$ac_ext >&5
7447
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007448 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007449fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007450rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007451echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7452echo "${ECHO_T}$ac_header_preproc" >&6
7453
7454# So? What about this header?
7455case $ac_header_compiler:$ac_header_preproc in
7456 yes:no )
7457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7458echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007460echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7461 (
7462 cat <<\_ASBOX
7463## ------------------------------------ ##
7464## Report this to bug-autoconf@gnu.org. ##
7465## ------------------------------------ ##
7466_ASBOX
7467 ) |
7468 sed "s/^/$as_me: WARNING: /" >&2
7469 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007470 no:yes )
7471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7472echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7474echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007476echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7477 (
7478 cat <<\_ASBOX
7479## ------------------------------------ ##
7480## Report this to bug-autoconf@gnu.org. ##
7481## ------------------------------------ ##
7482_ASBOX
7483 ) |
7484 sed "s/^/$as_me: WARNING: /" >&2
7485 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007486esac
7487echo "$as_me:$LINENO: checking for $ac_header" >&5
7488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7489if eval "test \"\${$as_ac_Header+set}\" = set"; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7491else
7492 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00007493fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007495echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007496
Patrik Stridvall24110281999-02-04 10:09:54 +00007497fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007498if test `eval echo '${'$as_ac_Header'}'` = yes; then
7499 cat >>confdefs.h <<_ACEOF
7500#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7501_ACEOF
7502
7503fi
7504
Patrik Stridvall24110281999-02-04 10:09:54 +00007505done
7506
Marcus Meissner22a969b2000-08-08 20:46:50 +00007507 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007508 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007509
7510for ac_header in GL/glext.h
7511do
7512as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7513echo "$as_me:$LINENO: checking for $ac_header" >&5
7514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7515if eval "test \"\${$as_ac_Header+set}\" = set"; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7517else
7518 cat >conftest.$ac_ext <<_ACEOF
7519#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007520/* confdefs.h. */
7521_ACEOF
7522cat confdefs.h >>conftest.$ac_ext
7523cat >>conftest.$ac_ext <<_ACEOF
7524/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007525#include <GL/glx.h>
7526
7527#include <$ac_header>
7528_ACEOF
7529rm -f conftest.$ac_objext
7530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7531 (eval $ac_compile) 2>&5
7532 ac_status=$?
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } &&
7535 { ac_try='test -s conftest.$ac_objext'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 (eval $ac_try) 2>&5
7538 ac_status=$?
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; }; then
7541 eval "$as_ac_Header=yes"
7542else
7543 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007544sed 's/^/| /' conftest.$ac_ext >&5
7545
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007546eval "$as_ac_Header=no"
7547fi
7548rm -f conftest.$ac_objext conftest.$ac_ext
7549fi
7550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7551echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7552if test `eval echo '${'$as_ac_Header'}'` = yes; then
7553 cat >>confdefs.h <<_ACEOF
7554#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7555_ACEOF
7556
7557fi
7558
7559done
7560
7561 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007562echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7563if test "${wine_cv_opengl_version_OK+set}" = set; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00007565else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007566 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007567#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007568/* confdefs.h. */
7569_ACEOF
7570cat confdefs.h >>conftest.$ac_ext
7571cat >>conftest.$ac_ext <<_ACEOF
7572/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00007573#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007574int
7575main ()
7576{
Lionel Ulmer5c085701999-02-28 19:48:53 +00007577GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007578 ;
7579 return 0;
7580}
7581_ACEOF
7582rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007584 (eval $ac_compile) 2>&5
7585 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007587 (exit $ac_status); } &&
7588 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007590 (eval $ac_try) 2>&5
7591 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007593 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007594 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007595else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007596 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007597sed 's/^/| /' conftest.$ac_ext >&5
7598
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007599wine_cv_opengl_version_OK="no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007600
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007601fi
7602rm -f conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer5c085701999-02-28 19:48:53 +00007603
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007604fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007605echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007606echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7607
Alexandre Julliardb8074992002-11-21 21:51:24 +00007608 if test "$wine_cv_opengl_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007609 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007610 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007611echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7612if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007614else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007615 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner376ec882000-01-05 03:24:52 +00007616LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007617cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007618#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007619/* confdefs.h. */
7620_ACEOF
7621cat confdefs.h >>conftest.$ac_ext
7622cat >>conftest.$ac_ext <<_ACEOF
7623/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007624
Patrik Stridvall24110281999-02-04 10:09:54 +00007625/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007626#ifdef __cplusplus
7627extern "C"
7628#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007629/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007630 builtin and then its argument prototype would still apply. */
7631char glXCreateContext ();
7632int
7633main ()
7634{
7635glXCreateContext ();
7636 ;
7637 return 0;
7638}
7639_ACEOF
7640rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007642 (eval $ac_link) 2>&5
7643 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007645 (exit $ac_status); } &&
7646 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007648 (eval $ac_try) 2>&5
7649 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007651 (exit $ac_status); }; }; then
7652 ac_cv_lib_GL_glXCreateContext=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007653else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007654 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007655sed 's/^/| /' conftest.$ac_ext >&5
7656
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007657ac_cv_lib_GL_glXCreateContext=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007658fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007659rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7660LIBS=$ac_check_lib_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00007661fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007662echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007663echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7664if test $ac_cv_lib_GL_glXCreateContext = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00007665 OPENGL_LIBS="-lGL"
Patrik Stridvall24110281999-02-04 10:09:54 +00007666
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007667fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007668
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007669
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007670 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00007671 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00007672 OPENGLFILES='$(OPENGLFILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007673
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007674cat >>confdefs.h <<\_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00007675#define HAVE_OPENGL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007676_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00007677
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007678
7679 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007680echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7681if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007683else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007684 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007685LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007686cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007687#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007688/* confdefs.h. */
7689_ACEOF
7690cat confdefs.h >>conftest.$ac_ext
7691cat >>conftest.$ac_ext <<_ACEOF
7692/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007693
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007694/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007695#ifdef __cplusplus
7696extern "C"
7697#endif
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007698/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007699 builtin and then its argument prototype would still apply. */
7700char glXGetProcAddressARB ();
7701int
7702main ()
7703{
7704glXGetProcAddressARB ();
7705 ;
7706 return 0;
7707}
7708_ACEOF
7709rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007711 (eval $ac_link) 2>&5
7712 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007714 (exit $ac_status); } &&
7715 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007717 (eval $ac_try) 2>&5
7718 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007720 (exit $ac_status); }; }; then
7721 ac_cv_lib_GL_glXGetProcAddressARB=yes
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007722else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007723 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007724sed 's/^/| /' conftest.$ac_ext >&5
7725
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007726ac_cv_lib_GL_glXGetProcAddressARB=no
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007727fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007728rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7729LIBS=$ac_check_lib_save_LIBS
7730fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007731echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007732echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7733if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007734
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007735cat >>confdefs.h <<\_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007736#define HAVE_GLX_GETPROCADDRESS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007737_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007738
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007739fi
7740
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007741
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007742 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007743 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007744 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007745echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7746if test "${wine_cv_extension_prototypes+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer1434d872000-07-23 14:23:31 +00007748else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007749 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007750#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007751/* confdefs.h. */
7752_ACEOF
7753cat confdefs.h >>conftest.$ac_ext
7754cat >>conftest.$ac_ext <<_ACEOF
7755/* end confdefs.h. */
Lionel Ulmer1434d872000-07-23 14:23:31 +00007756#include <GL/gl.h>
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00007757 #ifdef HAVE_GL_GLEXT_H
7758 # include <GL/glext.h>
7759 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007760
7761int
7762main ()
7763{
Lionel Ulmer1434d872000-07-23 14:23:31 +00007764PFNGLCOLORTABLEEXTPROC test_proc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007765 ;
7766 return 0;
7767}
7768_ACEOF
7769rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007771 (eval $ac_compile) 2>&5
7772 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007774 (exit $ac_status); } &&
7775 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007777 (eval $ac_try) 2>&5
7778 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007780 (exit $ac_status); }; }; then
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007781 wine_cv_extension_prototypes="yes"
Lionel Ulmer1434d872000-07-23 14:23:31 +00007782else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007783 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007784sed 's/^/| /' conftest.$ac_ext >&5
7785
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007786wine_cv_extension_prototypes="no"
Lionel Ulmer1434d872000-07-23 14:23:31 +00007787
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007788fi
7789rm -f conftest.$ac_objext conftest.$ac_ext
7790
7791fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007792echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007793echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007794 if test "$wine_cv_extension_prototypes" = "yes"
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007795 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007796
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007797cat >>confdefs.h <<\_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007798#define HAVE_GLEXT_PROTOTYPES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007799_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007800
7801 fi
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007802 fi
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00007803
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007804 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007805 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007806echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7807if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007809else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007810 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00007811LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007812 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007813cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007814#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007815/* confdefs.h. */
7816_ACEOF
7817cat confdefs.h >>conftest.$ac_ext
7818cat >>conftest.$ac_ext <<_ACEOF
7819/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007820
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007821/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007822#ifdef __cplusplus
7823extern "C"
7824#endif
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007825/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007826 builtin and then its argument prototype would still apply. */
7827char gluLookAt ();
7828int
7829main ()
7830{
7831gluLookAt ();
7832 ;
7833 return 0;
7834}
7835_ACEOF
7836rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007838 (eval $ac_link) 2>&5
7839 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007841 (exit $ac_status); } &&
7842 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007844 (eval $ac_try) 2>&5
7845 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007847 (exit $ac_status); }; }; then
7848 ac_cv_lib_GLU_gluLookAt=yes
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007849else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007850 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007851sed 's/^/| /' conftest.$ac_ext >&5
7852
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007853ac_cv_lib_GLU_gluLookAt=no
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007854fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007855rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7856LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007857fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007858echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007859echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7860if test $ac_cv_lib_GLU_gluLookAt = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00007861 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007862 GLU32FILES='$(GLU32FILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007863
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007864fi
7865
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007866 fi
7867 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007868 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00007869
Francois Gouget6f670b12002-10-10 17:54:27 +00007870 NASLIBS=""
7871
7872
7873for ac_header in audio/audiolib.h
7874do
7875as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7876if eval "test \"\${$as_ac_Header+set}\" = set"; then
7877 echo "$as_me:$LINENO: checking for $ac_header" >&5
7878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7879if eval "test \"\${$as_ac_Header+set}\" = set"; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7881fi
7882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7883echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7884else
7885 # Is the header compilable?
7886echo "$as_me:$LINENO: checking $ac_header usability" >&5
7887echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7888cat >conftest.$ac_ext <<_ACEOF
7889#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007890/* confdefs.h. */
7891_ACEOF
7892cat confdefs.h >>conftest.$ac_ext
7893cat >>conftest.$ac_ext <<_ACEOF
7894/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00007895$ac_includes_default
7896#include <$ac_header>
7897_ACEOF
7898rm -f conftest.$ac_objext
7899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7900 (eval $ac_compile) 2>&5
7901 ac_status=$?
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); } &&
7904 { ac_try='test -s conftest.$ac_objext'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 (eval $ac_try) 2>&5
7907 ac_status=$?
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; }; then
7910 ac_header_compiler=yes
7911else
7912 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007913sed 's/^/| /' conftest.$ac_ext >&5
7914
Francois Gouget6f670b12002-10-10 17:54:27 +00007915ac_header_compiler=no
7916fi
7917rm -f conftest.$ac_objext conftest.$ac_ext
7918echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7919echo "${ECHO_T}$ac_header_compiler" >&6
7920
7921# Is the header present?
7922echo "$as_me:$LINENO: checking $ac_header presence" >&5
7923echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7924cat >conftest.$ac_ext <<_ACEOF
7925#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007926/* confdefs.h. */
7927_ACEOF
7928cat confdefs.h >>conftest.$ac_ext
7929cat >>conftest.$ac_ext <<_ACEOF
7930/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00007931#include <$ac_header>
7932_ACEOF
7933if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7935 ac_status=$?
7936 grep -v '^ *+' conftest.er1 >conftest.err
7937 rm -f conftest.er1
7938 cat conftest.err >&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } >/dev/null; then
7941 if test -s conftest.err; then
7942 ac_cpp_err=$ac_c_preproc_warn_flag
7943 else
7944 ac_cpp_err=
7945 fi
7946else
7947 ac_cpp_err=yes
7948fi
7949if test -z "$ac_cpp_err"; then
7950 ac_header_preproc=yes
7951else
7952 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007953sed 's/^/| /' conftest.$ac_ext >&5
7954
Francois Gouget6f670b12002-10-10 17:54:27 +00007955 ac_header_preproc=no
7956fi
7957rm -f conftest.err conftest.$ac_ext
7958echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7959echo "${ECHO_T}$ac_header_preproc" >&6
7960
7961# So? What about this header?
7962case $ac_header_compiler:$ac_header_preproc in
7963 yes:no )
7964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7965echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007967echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7968 (
7969 cat <<\_ASBOX
7970## ------------------------------------ ##
7971## Report this to bug-autoconf@gnu.org. ##
7972## ------------------------------------ ##
7973_ASBOX
7974 ) |
7975 sed "s/^/$as_me: WARNING: /" >&2
7976 ;;
Francois Gouget6f670b12002-10-10 17:54:27 +00007977 no:yes )
7978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7979echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7981echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007983echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7984 (
7985 cat <<\_ASBOX
7986## ------------------------------------ ##
7987## Report this to bug-autoconf@gnu.org. ##
7988## ------------------------------------ ##
7989_ASBOX
7990 ) |
7991 sed "s/^/$as_me: WARNING: /" >&2
7992 ;;
Francois Gouget6f670b12002-10-10 17:54:27 +00007993esac
7994echo "$as_me:$LINENO: checking for $ac_header" >&5
7995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7996if eval "test \"\${$as_ac_Header+set}\" = set"; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7998else
7999 eval "$as_ac_Header=$ac_header_preproc"
8000fi
8001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8003
8004fi
8005if test `eval echo '${'$as_ac_Header'}'` = yes; then
8006 cat >>confdefs.h <<_ACEOF
8007#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8008_ACEOF
8009
8010for ac_header in audio/soundlib.h
8011do
8012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8013echo "$as_me:$LINENO: checking for $ac_header" >&5
8014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8015if eval "test \"\${$as_ac_Header+set}\" = set"; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8017else
8018 cat >conftest.$ac_ext <<_ACEOF
8019#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008020/* confdefs.h. */
8021_ACEOF
8022cat confdefs.h >>conftest.$ac_ext
8023cat >>conftest.$ac_ext <<_ACEOF
8024/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008025#include <audio/audiolib.h>
8026
8027#include <$ac_header>
8028_ACEOF
8029rm -f conftest.$ac_objext
8030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8031 (eval $ac_compile) 2>&5
8032 ac_status=$?
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try='test -s conftest.$ac_objext'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 (eval $ac_try) 2>&5
8038 ac_status=$?
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; }; then
8041 eval "$as_ac_Header=yes"
8042else
8043 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008044sed 's/^/| /' conftest.$ac_ext >&5
8045
Francois Gouget6f670b12002-10-10 17:54:27 +00008046eval "$as_ac_Header=no"
8047fi
8048rm -f conftest.$ac_objext conftest.$ac_ext
8049fi
8050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8051echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8052if test `eval echo '${'$as_ac_Header'}'` = yes; then
8053 cat >>confdefs.h <<_ACEOF
8054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8055_ACEOF
8056
8057fi
8058
8059done
8060
8061 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8062echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8063if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8065else
8066 ac_check_lib_save_LIBS=$LIBS
8067LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8068cat >conftest.$ac_ext <<_ACEOF
8069#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008070/* confdefs.h. */
8071_ACEOF
8072cat confdefs.h >>conftest.$ac_ext
8073cat >>conftest.$ac_ext <<_ACEOF
8074/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008075
8076/* Override any gcc2 internal prototype to avoid an error. */
8077#ifdef __cplusplus
8078extern "C"
8079#endif
8080/* We use char because int might match the return type of a gcc2
8081 builtin and then its argument prototype would still apply. */
8082char AuCreateFlow ();
8083int
8084main ()
8085{
8086AuCreateFlow ();
8087 ;
8088 return 0;
8089}
8090_ACEOF
8091rm -f conftest.$ac_objext conftest$ac_exeext
8092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8093 (eval $ac_link) 2>&5
8094 ac_status=$?
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } &&
8097 { ac_try='test -s conftest$ac_exeext'
8098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099 (eval $ac_try) 2>&5
8100 ac_status=$?
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }; }; then
8103 ac_cv_lib_audio_AuCreateFlow=yes
8104else
8105 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008106sed 's/^/| /' conftest.$ac_ext >&5
8107
Francois Gouget6f670b12002-10-10 17:54:27 +00008108ac_cv_lib_audio_AuCreateFlow=no
8109fi
8110rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8111LIBS=$ac_check_lib_save_LIBS
8112fi
8113echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8114echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8115if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8116
8117cat >>confdefs.h <<\_ACEOF
8118#define HAVE_NAS 1
8119_ACEOF
8120
8121 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8122fi
8123
8124fi
8125
8126done
8127
8128
Ove Kaaven1eb593c1999-02-14 09:34:46 +00008129 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00008130 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00008131else
8132 XLIB=""
8133 X_CFLAGS=""
8134 X_LIBS=""
8135fi
Alexandre Julliard902da691995-11-05 14:39:02 +00008136
Alexandre Julliard48957682001-12-26 23:08:31 +00008137CURSESLIBS=""
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008138if test "x$with_curses" != "xno"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00008139then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008140
8141for ac_header in ncurses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008142do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008143as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008144if eval "test \"\${$as_ac_Header+set}\" = set"; then
8145 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8147if eval "test \"\${$as_ac_Header+set}\" = set"; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008149fi
8150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8151echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008152else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008153 # Is the header compilable?
8154echo "$as_me:$LINENO: checking $ac_header usability" >&5
8155echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8156cat >conftest.$ac_ext <<_ACEOF
8157#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008158/* confdefs.h. */
8159_ACEOF
8160cat confdefs.h >>conftest.$ac_ext
8161cat >>conftest.$ac_ext <<_ACEOF
8162/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008163$ac_includes_default
8164#include <$ac_header>
8165_ACEOF
8166rm -f conftest.$ac_objext
8167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8168 (eval $ac_compile) 2>&5
8169 ac_status=$?
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } &&
8172 { ac_try='test -s conftest.$ac_objext'
8173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174 (eval $ac_try) 2>&5
8175 ac_status=$?
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); }; }; then
8178 ac_header_compiler=yes
8179else
8180 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008181sed 's/^/| /' conftest.$ac_ext >&5
8182
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008183ac_header_compiler=no
8184fi
8185rm -f conftest.$ac_objext conftest.$ac_ext
8186echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8187echo "${ECHO_T}$ac_header_compiler" >&6
8188
8189# Is the header present?
8190echo "$as_me:$LINENO: checking $ac_header presence" >&5
8191echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8192cat >conftest.$ac_ext <<_ACEOF
8193#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008194/* confdefs.h. */
8195_ACEOF
8196cat confdefs.h >>conftest.$ac_ext
8197cat >>conftest.$ac_ext <<_ACEOF
8198/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008199#include <$ac_header>
8200_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008201if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8203 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008204 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008205 rm -f conftest.er1
8206 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008208 (exit $ac_status); } >/dev/null; then
8209 if test -s conftest.err; then
8210 ac_cpp_err=$ac_c_preproc_warn_flag
8211 else
8212 ac_cpp_err=
8213 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008214else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008215 ac_cpp_err=yes
8216fi
8217if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008218 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008219else
8220 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008221sed 's/^/| /' conftest.$ac_ext >&5
8222
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008223 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008224fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008225rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008226echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8227echo "${ECHO_T}$ac_header_preproc" >&6
8228
8229# So? What about this header?
8230case $ac_header_compiler:$ac_header_preproc in
8231 yes:no )
8232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8233echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008235echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8236 (
8237 cat <<\_ASBOX
8238## ------------------------------------ ##
8239## Report this to bug-autoconf@gnu.org. ##
8240## ------------------------------------ ##
8241_ASBOX
8242 ) |
8243 sed "s/^/$as_me: WARNING: /" >&2
8244 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008245 no:yes )
8246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8247echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8249echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008251echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8252 (
8253 cat <<\_ASBOX
8254## ------------------------------------ ##
8255## Report this to bug-autoconf@gnu.org. ##
8256## ------------------------------------ ##
8257_ASBOX
8258 ) |
8259 sed "s/^/$as_me: WARNING: /" >&2
8260 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008261esac
8262echo "$as_me:$LINENO: checking for $ac_header" >&5
8263echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8264if eval "test \"\${$as_ac_Header+set}\" = set"; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8266else
8267 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00008268fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008270echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008271
8272fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008273if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008274 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008275#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008276_ACEOF
8277 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008278echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8279if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008281else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008282 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008283LIBS="-lncurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008284cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008285#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008286/* confdefs.h. */
8287_ACEOF
8288cat confdefs.h >>conftest.$ac_ext
8289cat >>conftest.$ac_ext <<_ACEOF
8290/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008291
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008292/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008293#ifdef __cplusplus
8294extern "C"
8295#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008296/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008297 builtin and then its argument prototype would still apply. */
8298char waddch ();
8299int
8300main ()
8301{
8302waddch ();
8303 ;
8304 return 0;
8305}
8306_ACEOF
8307rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008309 (eval $ac_link) 2>&5
8310 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008312 (exit $ac_status); } &&
8313 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008315 (eval $ac_try) 2>&5
8316 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008318 (exit $ac_status); }; }; then
8319 ac_cv_lib_ncurses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008320else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008321 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008322sed 's/^/| /' conftest.$ac_ext >&5
8323
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008324ac_cv_lib_ncurses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008325fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008326rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8327LIBS=$ac_check_lib_save_LIBS
8328fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008329echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008330echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8331if test $ac_cv_lib_ncurses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008332
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008333cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00008334#define HAVE_LIBNCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008335_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008336
Alexandre Julliard48957682001-12-26 23:08:31 +00008337 CURSESLIBS="-lncurses"
Alexandre Julliard638f1691999-01-17 16:32:32 +00008338else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008339
8340for ac_header in curses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008341do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008343if eval "test \"\${$as_ac_Header+set}\" = set"; then
8344 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8346if eval "test \"\${$as_ac_Header+set}\" = set"; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008348fi
8349echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8350echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008351else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008352 # Is the header compilable?
8353echo "$as_me:$LINENO: checking $ac_header usability" >&5
8354echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8355cat >conftest.$ac_ext <<_ACEOF
8356#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008357/* confdefs.h. */
8358_ACEOF
8359cat confdefs.h >>conftest.$ac_ext
8360cat >>conftest.$ac_ext <<_ACEOF
8361/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008362$ac_includes_default
8363#include <$ac_header>
8364_ACEOF
8365rm -f conftest.$ac_objext
8366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8367 (eval $ac_compile) 2>&5
8368 ac_status=$?
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
8371 { ac_try='test -s conftest.$ac_objext'
8372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373 (eval $ac_try) 2>&5
8374 ac_status=$?
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8377 ac_header_compiler=yes
8378else
8379 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008380sed 's/^/| /' conftest.$ac_ext >&5
8381
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008382ac_header_compiler=no
8383fi
8384rm -f conftest.$ac_objext conftest.$ac_ext
8385echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8386echo "${ECHO_T}$ac_header_compiler" >&6
8387
8388# Is the header present?
8389echo "$as_me:$LINENO: checking $ac_header presence" >&5
8390echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8391cat >conftest.$ac_ext <<_ACEOF
8392#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008393/* confdefs.h. */
8394_ACEOF
8395cat confdefs.h >>conftest.$ac_ext
8396cat >>conftest.$ac_ext <<_ACEOF
8397/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008398#include <$ac_header>
8399_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8402 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008403 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008404 rm -f conftest.er1
8405 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008407 (exit $ac_status); } >/dev/null; then
8408 if test -s conftest.err; then
8409 ac_cpp_err=$ac_c_preproc_warn_flag
8410 else
8411 ac_cpp_err=
8412 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008413else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008414 ac_cpp_err=yes
8415fi
8416if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008417 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008418else
8419 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008420sed 's/^/| /' conftest.$ac_ext >&5
8421
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008422 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008423fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008424rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008425echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8426echo "${ECHO_T}$ac_header_preproc" >&6
8427
8428# So? What about this header?
8429case $ac_header_compiler:$ac_header_preproc in
8430 yes:no )
8431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8432echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008434echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8435 (
8436 cat <<\_ASBOX
8437## ------------------------------------ ##
8438## Report this to bug-autoconf@gnu.org. ##
8439## ------------------------------------ ##
8440_ASBOX
8441 ) |
8442 sed "s/^/$as_me: WARNING: /" >&2
8443 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008444 no:yes )
8445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8446echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8448echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008450echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8451 (
8452 cat <<\_ASBOX
8453## ------------------------------------ ##
8454## Report this to bug-autoconf@gnu.org. ##
8455## ------------------------------------ ##
8456_ASBOX
8457 ) |
8458 sed "s/^/$as_me: WARNING: /" >&2
8459 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008460esac
8461echo "$as_me:$LINENO: checking for $ac_header" >&5
8462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8463if eval "test \"\${$as_ac_Header+set}\" = set"; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
8465else
8466 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00008467fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008470
8471fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008472if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008473 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008475_ACEOF
8476 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008477echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8478if test "${ac_cv_lib_curses_waddch+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008480else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008481 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008482LIBS="-lcurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008483cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008484#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008485/* confdefs.h. */
8486_ACEOF
8487cat confdefs.h >>conftest.$ac_ext
8488cat >>conftest.$ac_ext <<_ACEOF
8489/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008490
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008491/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008492#ifdef __cplusplus
8493extern "C"
8494#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008495/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008496 builtin and then its argument prototype would still apply. */
8497char waddch ();
8498int
8499main ()
8500{
8501waddch ();
8502 ;
8503 return 0;
8504}
8505_ACEOF
8506rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008508 (eval $ac_link) 2>&5
8509 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008511 (exit $ac_status); } &&
8512 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008514 (eval $ac_try) 2>&5
8515 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008517 (exit $ac_status); }; }; then
8518 ac_cv_lib_curses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008519else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008520 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008521sed 's/^/| /' conftest.$ac_ext >&5
8522
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008523ac_cv_lib_curses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008524fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008525rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8526LIBS=$ac_check_lib_save_LIBS
8527fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008528echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008529echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
8530if test $ac_cv_lib_curses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008531
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008532cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00008533#define HAVE_LIBCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008534_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008535
Alexandre Julliard48957682001-12-26 23:08:31 +00008536 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008537fi
8538
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008539fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008540
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008541done
8542
8543fi
Alexandre Julliard48957682001-12-26 23:08:31 +00008544
Alexandre Julliard48957682001-12-26 23:08:31 +00008545fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008546
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008547done
8548
Alexandre Julliard48957682001-12-26 23:08:31 +00008549 saved_libs="$LIBS"
8550 LIBS="$CURSESLIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008551
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008552
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008553for ac_func in getbkgd resizeterm
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008554do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008555as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008556echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008557echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8558if eval "test \"\${$as_ac_var+set}\" = set"; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard638f1691999-01-17 16:32:32 +00008560else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008561 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008562#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008563/* confdefs.h. */
8564_ACEOF
8565cat confdefs.h >>conftest.$ac_ext
8566cat >>conftest.$ac_ext <<_ACEOF
8567/* end confdefs.h. */
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008568/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008569 which can conflict with char $ac_func (); below.
8570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8571 <limits.h> exists even on freestanding compilers. */
8572#ifdef __STDC__
8573# include <limits.h>
8574#else
8575# include <assert.h>
8576#endif
Alexandre Julliard638f1691999-01-17 16:32:32 +00008577/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008578#ifdef __cplusplus
8579extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008580{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008581#endif
Alexandre Julliard638f1691999-01-17 16:32:32 +00008582/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008583 builtin and then its argument prototype would still apply. */
8584char $ac_func ();
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008585/* The GNU C library defines this for functions which it implements
8586 to always fail with ENOSYS. Some functions are actually named
8587 something starting with __ and the normal name is an alias. */
8588#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8589choke me
8590#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008591char (*f) () = $ac_func;
8592#endif
8593#ifdef __cplusplus
8594}
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008595#endif
8596
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008597int
8598main ()
8599{
8600return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008601 ;
8602 return 0;
8603}
8604_ACEOF
8605rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008607 (eval $ac_link) 2>&5
8608 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008610 (exit $ac_status); } &&
8611 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008613 (eval $ac_try) 2>&5
8614 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008616 (exit $ac_status); }; }; then
8617 eval "$as_ac_var=yes"
Alexandre Julliard638f1691999-01-17 16:32:32 +00008618else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008619 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008620sed 's/^/| /' conftest.$ac_ext >&5
8621
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008622eval "$as_ac_var=no"
Alexandre Julliard638f1691999-01-17 16:32:32 +00008623fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008624rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard638f1691999-01-17 16:32:32 +00008625fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008627echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8628if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008629 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008630#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008631_ACEOF
Alexandre Julliard638f1691999-01-17 16:32:32 +00008632
Alexandre Julliard638f1691999-01-17 16:32:32 +00008633fi
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008634done
Alexandre Julliard638f1691999-01-17 16:32:32 +00008635
Alexandre Julliard48957682001-12-26 23:08:31 +00008636 LIBS="$saved_libs"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008637fi
8638
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008639
Shi Quan He6b0720f2002-03-21 02:58:39 +00008640# Extract the first word of "sane-config", so it can be a program name with args.
8641set dummy sane-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008642echo "$as_me:$LINENO: checking for $ac_word" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8644if test "${ac_cv_prog_sane_devel+set}" = set; then
8645 echo $ECHO_N "(cached) $ECHO_C" >&6
8646else
8647 if test -n "$sane_devel"; then
8648 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8649else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8651for as_dir in $PATH
8652do
8653 IFS=$as_save_IFS
8654 test -z "$as_dir" && as_dir=.
8655 for ac_exec_ext in '' $ac_executable_extensions; do
8656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8657 ac_cv_prog_sane_devel="sane-config"
8658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8659 break 2
8660 fi
8661done
Shi Quan He6b0720f2002-03-21 02:58:39 +00008662done
8663
8664 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8665fi
8666fi
8667sane_devel=$ac_cv_prog_sane_devel
8668if test -n "$sane_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008669 echo "$as_me:$LINENO: result: $sane_devel" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008670echo "${ECHO_T}$sane_devel" >&6
8671else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008672 echo "$as_me:$LINENO: result: no" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008673echo "${ECHO_T}no" >&6
8674fi
8675
8676if test "$sane_devel" = "no"
8677then
8678 SANELIBS=""
8679 SANEINCL=""
8680else
8681 SANELIBS="`$sane_devel --libs`"
8682 SANEINCL="`$sane_devel --cflags`"
8683 ac_save_CPPFLAGS="$CPPFLAGS"
8684 ac_save_LIBS="$LIBS"
8685 CPPFLAGS="$CPPFLAGS $SANEINCL"
8686 LIBS="$LIBS $SANELIBS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008687 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8688 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008689echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8690if test "${ac_cv_header_sane_sane_h+set}" = set; then
8691 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008692fi
8693echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8694echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00008695else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008696 # Is the header compilable?
8697echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8698echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8699cat >conftest.$ac_ext <<_ACEOF
8700#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008701/* confdefs.h. */
8702_ACEOF
8703cat confdefs.h >>conftest.$ac_ext
8704cat >>conftest.$ac_ext <<_ACEOF
8705/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008706$ac_includes_default
8707#include <sane/sane.h>
8708_ACEOF
8709rm -f conftest.$ac_objext
8710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8711 (eval $ac_compile) 2>&5
8712 ac_status=$?
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } &&
8715 { ac_try='test -s conftest.$ac_objext'
8716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717 (eval $ac_try) 2>&5
8718 ac_status=$?
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); }; }; then
8721 ac_header_compiler=yes
8722else
8723 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008724sed 's/^/| /' conftest.$ac_ext >&5
8725
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008726ac_header_compiler=no
8727fi
8728rm -f conftest.$ac_objext conftest.$ac_ext
8729echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8730echo "${ECHO_T}$ac_header_compiler" >&6
8731
8732# Is the header present?
8733echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8734echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8735cat >conftest.$ac_ext <<_ACEOF
8736#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008737/* confdefs.h. */
8738_ACEOF
8739cat confdefs.h >>conftest.$ac_ext
8740cat >>conftest.$ac_ext <<_ACEOF
8741/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +00008742#include <sane/sane.h>
8743_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008744if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8746 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008747 grep -v '^ *+' conftest.er1 >conftest.err
Shi Quan He6b0720f2002-03-21 02:58:39 +00008748 rm -f conftest.er1
8749 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008751 (exit $ac_status); } >/dev/null; then
8752 if test -s conftest.err; then
8753 ac_cpp_err=$ac_c_preproc_warn_flag
8754 else
8755 ac_cpp_err=
8756 fi
8757else
8758 ac_cpp_err=yes
8759fi
8760if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008761 ac_header_preproc=yes
Shi Quan He6b0720f2002-03-21 02:58:39 +00008762else
8763 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008764sed 's/^/| /' conftest.$ac_ext >&5
8765
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008766 ac_header_preproc=no
Shi Quan He6b0720f2002-03-21 02:58:39 +00008767fi
8768rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008769echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8770echo "${ECHO_T}$ac_header_preproc" >&6
8771
8772# So? What about this header?
8773case $ac_header_compiler:$ac_header_preproc in
8774 yes:no )
8775 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8776echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008778echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8779 (
8780 cat <<\_ASBOX
8781## ------------------------------------ ##
8782## Report this to bug-autoconf@gnu.org. ##
8783## ------------------------------------ ##
8784_ASBOX
8785 ) |
8786 sed "s/^/$as_me: WARNING: /" >&2
8787 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008788 no:yes )
8789 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8790echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8791 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8792echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8793 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008794echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8795 (
8796 cat <<\_ASBOX
8797## ------------------------------------ ##
8798## Report this to bug-autoconf@gnu.org. ##
8799## ------------------------------------ ##
8800_ASBOX
8801 ) |
8802 sed "s/^/$as_me: WARNING: /" >&2
8803 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008804esac
8805echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8806echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8807if test "${ac_cv_header_sane_sane_h+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8809else
8810 ac_cv_header_sane_sane_h=$ac_header_preproc
Shi Quan He6b0720f2002-03-21 02:58:39 +00008811fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008812echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008813echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008814
8815fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00008816if test $ac_cv_header_sane_sane_h = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008817 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008818echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8819if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8821else
8822 ac_check_lib_save_LIBS=$LIBS
8823LIBS="-lsane $LIBS"
8824cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008825#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008826/* confdefs.h. */
8827_ACEOF
8828cat confdefs.h >>conftest.$ac_ext
8829cat >>conftest.$ac_ext <<_ACEOF
8830/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +00008831
8832/* Override any gcc2 internal prototype to avoid an error. */
8833#ifdef __cplusplus
8834extern "C"
8835#endif
8836/* We use char because int might match the return type of a gcc2
8837 builtin and then its argument prototype would still apply. */
8838char sane_open ();
8839int
8840main ()
8841{
8842sane_open ();
8843 ;
8844 return 0;
8845}
8846_ACEOF
8847rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008849 (eval $ac_link) 2>&5
8850 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008852 (exit $ac_status); } &&
8853 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008855 (eval $ac_try) 2>&5
8856 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008858 (exit $ac_status); }; }; then
8859 ac_cv_lib_sane_sane_open=yes
8860else
8861 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008862sed 's/^/| /' conftest.$ac_ext >&5
8863
Shi Quan He6b0720f2002-03-21 02:58:39 +00008864ac_cv_lib_sane_sane_open=no
8865fi
8866rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8867LIBS=$ac_check_lib_save_LIBS
8868fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008869echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008870echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8871if test $ac_cv_lib_sane_sane_open = yes; then
8872
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008873cat >>confdefs.h <<\_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008874#define HAVE_SANE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008875_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008876
8877else
8878 SANELIBS=""
Alexandre Julliard96328b32002-03-31 19:23:41 +00008879 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00008880fi
8881
Alexandre Julliard96328b32002-03-31 19:23:41 +00008882else
8883 SANELIBS=""
8884 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00008885fi
8886
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008887
Shi Quan He6b0720f2002-03-21 02:58:39 +00008888 LIBS="$ac_save_LIBS"
8889 CPPFLAGS="$ac_save_CPPFLAGS"
8890fi
8891
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008892
8893
8894echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008895echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8896if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008898else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008899 ac_check_lib_save_LIBS=$LIBS
Dmitry Timoshkov8871a112001-11-06 22:26:53 +00008900LIBS="-lfreetype $X_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008901cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008902#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008903/* confdefs.h. */
8904_ACEOF
8905cat confdefs.h >>conftest.$ac_ext
8906cat >>conftest.$ac_ext <<_ACEOF
8907/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008908
Ian Pilcher563598d2001-05-16 20:56:05 +00008909/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008910#ifdef __cplusplus
8911extern "C"
8912#endif
Ian Pilcher563598d2001-05-16 20:56:05 +00008913/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008914 builtin and then its argument prototype would still apply. */
8915char FT_Init_FreeType ();
8916int
8917main ()
8918{
8919FT_Init_FreeType ();
8920 ;
8921 return 0;
8922}
8923_ACEOF
8924rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008926 (eval $ac_link) 2>&5
8927 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008929 (exit $ac_status); } &&
8930 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008932 (eval $ac_try) 2>&5
8933 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008935 (exit $ac_status); }; }; then
8936 ac_cv_lib_freetype_FT_Init_FreeType=yes
Ian Pilcher563598d2001-05-16 20:56:05 +00008937else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008938 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008939sed 's/^/| /' conftest.$ac_ext >&5
8940
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008941ac_cv_lib_freetype_FT_Init_FreeType=no
Ian Pilcher563598d2001-05-16 20:56:05 +00008942fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008943rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8944LIBS=$ac_check_lib_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +00008945fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008946echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008947echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8948if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
Ian Pilcher563598d2001-05-16 20:56:05 +00008949 ft_lib=yes
8950else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008951 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +00008952fi
8953
8954if test "$ft_lib" = "no"
8955then
Ian Pilcher563598d2001-05-16 20:56:05 +00008956 FREETYPEINCL=""
8957 wine_cv_msg_freetype=no
8958else
8959 # Extract the first word of "freetype-config", so it can be a program name with args.
8960set dummy freetype-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008961echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8963if test "${ac_cv_prog_ft_devel+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008965else
8966 if test -n "$ft_devel"; then
8967 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8968else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8970for as_dir in $PATH
8971do
8972 IFS=$as_save_IFS
8973 test -z "$as_dir" && as_dir=.
8974 for ac_exec_ext in '' $ac_executable_extensions; do
8975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8976 ac_cv_prog_ft_devel="freetype-config"
8977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8978 break 2
8979 fi
8980done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008981done
8982
Ian Pilcher563598d2001-05-16 20:56:05 +00008983 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8984fi
8985fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008986ft_devel=$ac_cv_prog_ft_devel
Ian Pilcher563598d2001-05-16 20:56:05 +00008987if test -n "$ft_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008988 echo "$as_me:$LINENO: result: $ft_devel" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008989echo "${ECHO_T}$ft_devel" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008990else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008991 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008992echo "${ECHO_T}no" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008993fi
8994
8995 if test "$ft_devel" = "no"
8996 then
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008997 # Extract the first word of "freetype2-config", so it can be a program name with args.
8998set dummy freetype2-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008999echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9001if test "${ac_cv_prog_ft_devel2+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009003else
9004 if test -n "$ft_devel2"; then
9005 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9006else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008for as_dir in $PATH
9009do
9010 IFS=$as_save_IFS
9011 test -z "$as_dir" && as_dir=.
9012 for ac_exec_ext in '' $ac_executable_extensions; do
9013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9014 ac_cv_prog_ft_devel2="freetype2-config"
9015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9016 break 2
9017 fi
9018done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009019done
9020
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009021 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9022fi
9023fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009024ft_devel2=$ac_cv_prog_ft_devel2
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009025if test -n "$ft_devel2"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009026 echo "$as_me:$LINENO: result: $ft_devel2" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009027echo "${ECHO_T}$ft_devel2" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009028else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009029 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009030echo "${ECHO_T}no" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009031fi
9032
9033 if test "$ft_devel2" = "freetype2-config"
9034 then
9035 ft_devel=$ft_devel2
9036 fi
9037 fi
9038 if test "$ft_devel" = "no"
9039 then
Ian Pilcher563598d2001-05-16 20:56:05 +00009040 FREETYPEINCL=""
9041 wine_cv_msg_freetype=yes
9042 else
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009043 FREETYPEINCL=`$ft_devel --cflags`
Ian Pilcher40432fe2001-06-06 21:05:23 +00009044 ac_save_CPPFLAGS="$CPPFLAGS"
9045 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009046
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009047
9048
9049
9050
9051
9052
9053
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009054for ac_header in freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +00009055 freetype/ftglyph.h \
9056 freetype/tttables.h \
9057 freetype/ftnames.h \
9058 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +00009059 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +00009060 freetype/ftoutln.h \
9061 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +00009062do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009063as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009064if eval "test \"\${$as_ac_Header+set}\" = set"; then
9065 echo "$as_me:$LINENO: checking for $ac_header" >&5
9066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9067if eval "test \"\${$as_ac_Header+set}\" = set"; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
9069fi
9070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9071echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9072else
9073 # Is the header compilable?
9074echo "$as_me:$LINENO: checking $ac_header usability" >&5
9075echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9076cat >conftest.$ac_ext <<_ACEOF
9077#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009078/* confdefs.h. */
9079_ACEOF
9080cat confdefs.h >>conftest.$ac_ext
9081cat >>conftest.$ac_ext <<_ACEOF
9082/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009083$ac_includes_default
9084#include <$ac_header>
9085_ACEOF
9086rm -f conftest.$ac_objext
9087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9088 (eval $ac_compile) 2>&5
9089 ac_status=$?
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } &&
9092 { ac_try='test -s conftest.$ac_objext'
9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 (eval $ac_try) 2>&5
9095 ac_status=$?
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; }; then
9098 ac_header_compiler=yes
9099else
9100 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009101sed 's/^/| /' conftest.$ac_ext >&5
9102
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009103ac_header_compiler=no
9104fi
9105rm -f conftest.$ac_objext conftest.$ac_ext
9106echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9107echo "${ECHO_T}$ac_header_compiler" >&6
9108
9109# Is the header present?
9110echo "$as_me:$LINENO: checking $ac_header presence" >&5
9111echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9112cat >conftest.$ac_ext <<_ACEOF
9113#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009114/* confdefs.h. */
9115_ACEOF
9116cat confdefs.h >>conftest.$ac_ext
9117cat >>conftest.$ac_ext <<_ACEOF
9118/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009119#include <$ac_header>
9120_ACEOF
9121if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9123 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009124 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009125 rm -f conftest.er1
9126 cat conftest.err >&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } >/dev/null; then
9129 if test -s conftest.err; then
9130 ac_cpp_err=$ac_c_preproc_warn_flag
9131 else
9132 ac_cpp_err=
9133 fi
9134else
9135 ac_cpp_err=yes
9136fi
9137if test -z "$ac_cpp_err"; then
9138 ac_header_preproc=yes
9139else
9140 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009141sed 's/^/| /' conftest.$ac_ext >&5
9142
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009143 ac_header_preproc=no
9144fi
9145rm -f conftest.err conftest.$ac_ext
9146echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9147echo "${ECHO_T}$ac_header_preproc" >&6
9148
9149# So? What about this header?
9150case $ac_header_compiler:$ac_header_preproc in
9151 yes:no )
9152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9153echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009155echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9156 (
9157 cat <<\_ASBOX
9158## ------------------------------------ ##
9159## Report this to bug-autoconf@gnu.org. ##
9160## ------------------------------------ ##
9161_ASBOX
9162 ) |
9163 sed "s/^/$as_me: WARNING: /" >&2
9164 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009165 no:yes )
9166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9167echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9169echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009171echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9172 (
9173 cat <<\_ASBOX
9174## ------------------------------------ ##
9175## Report this to bug-autoconf@gnu.org. ##
9176## ------------------------------------ ##
9177_ASBOX
9178 ) |
9179 sed "s/^/$as_me: WARNING: /" >&2
9180 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009181esac
9182echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9184if eval "test \"\${$as_ac_Header+set}\" = set"; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher40432fe2001-06-06 21:05:23 +00009186else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009187 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009188fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009190echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009191
Ian Pilcher40432fe2001-06-06 21:05:23 +00009192fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009193if test `eval echo '${'$as_ac_Header'}'` = yes; then
9194 cat >>confdefs.h <<_ACEOF
9195#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9196_ACEOF
9197
9198fi
9199
Ian Pilcher40432fe2001-06-06 21:05:23 +00009200done
9201
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009202 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009203#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009204/* confdefs.h. */
9205_ACEOF
9206cat confdefs.h >>conftest.$ac_ext
9207cat >>conftest.$ac_ext <<_ACEOF
9208/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +00009209#include <ft2build.h>
9210 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009211_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9214 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009215 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009216 rm -f conftest.er1
9217 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009219 (exit $ac_status); } >/dev/null; then
9220 if test -s conftest.err; then
9221 ac_cpp_err=$ac_c_preproc_warn_flag
9222 else
9223 ac_cpp_err=
9224 fi
9225else
9226 ac_cpp_err=yes
9227fi
9228if test -z "$ac_cpp_err"; then
9229
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009230cat >>confdefs.h <<\_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00009231#define HAVE_FREETYPE_FTTRIGON_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009232_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00009233
Huw D M Daviesc1d38132002-02-08 17:09:50 +00009234 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +00009235else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009236 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009237sed 's/^/| /' conftest.$ac_ext >&5
9238
Huw D M Daviesc1d38132002-02-08 17:09:50 +00009239 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +00009240fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009241rm -f conftest.err conftest.$ac_ext
Ian Pilcher40432fe2001-06-06 21:05:23 +00009242 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +00009243 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +00009244 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009245
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009246cat >>confdefs.h <<\_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +00009247#define HAVE_FREETYPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009248_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +00009249
9250 wine_cv_msg_freetype=no
9251 else
Huw D M Davies9b1d3722002-01-29 17:09:28 +00009252 FREETYPEINCL=""
9253 wine_cv_msg_freetype=yes
9254 fi
Ian Pilcher563598d2001-05-16 20:56:05 +00009255 fi
9256fi
9257
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009258
9259echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009260echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9261if test "${ac_cv_c_ppdev+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +00009263else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009264 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009265#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009266/* confdefs.h. */
9267_ACEOF
9268cat confdefs.h >>conftest.$ac_ext
9269cat >>conftest.$ac_ext <<_ACEOF
9270/* end confdefs.h. */
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009271#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009272int
9273main ()
9274{
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009275ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009276 ;
9277 return 0;
9278}
9279_ACEOF
9280rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009282 (eval $ac_compile) 2>&5
9283 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009285 (exit $ac_status); } &&
9286 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009288 (eval $ac_try) 2>&5
9289 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009291 (exit $ac_status); }; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009292 ac_cv_c_ppdev="yes"
9293else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009294 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009295sed 's/^/| /' conftest.$ac_ext >&5
9296
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009297ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009298fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009299rm -f conftest.$ac_objext conftest.$ac_ext
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009300
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009301fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009302echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009303echo "${ECHO_T}$ac_cv_c_ppdev" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009304if test "$ac_cv_c_ppdev" = "yes"
9305then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009306
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009307cat >>confdefs.h <<\_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009308#define HAVE_PPDEV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009309_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009310
9311fi
9312
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009313echo "$as_me:$LINENO: checking for va_copy" >&5
9314echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9315if test "${ac_cv_c_va_copy+set}" = set; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9317else
9318 cat >conftest.$ac_ext <<_ACEOF
9319#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009320/* confdefs.h. */
9321_ACEOF
9322cat confdefs.h >>conftest.$ac_ext
9323cat >>conftest.$ac_ext <<_ACEOF
9324/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009325#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009326int
9327main ()
9328{
9329va_list ap1, ap2;
9330 va_copy(ap1,ap2);
9331
9332 ;
9333 return 0;
9334}
9335_ACEOF
9336rm -f conftest.$ac_objext conftest$ac_exeext
9337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9338 (eval $ac_link) 2>&5
9339 ac_status=$?
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); } &&
9342 { ac_try='test -s conftest$ac_exeext'
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 (eval $ac_try) 2>&5
9345 ac_status=$?
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; }; then
9348 ac_cv_c_va_copy="yes"
9349else
9350 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009351sed 's/^/| /' conftest.$ac_ext >&5
9352
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009353ac_cv_c_va_copy="no"
9354fi
9355rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9356
9357fi
9358echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
9359echo "${ECHO_T}$ac_cv_c_va_copy" >&6
9360if test "$ac_cv_c_va_copy" = "yes"
9361then
9362
9363cat >>confdefs.h <<\_ACEOF
9364#define HAVE_VA_COPY 1
9365_ACEOF
9366
9367fi
9368echo "$as_me:$LINENO: checking for __va_copy" >&5
9369echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9370if test "${ac_cv_c___va_copy+set}" = set; then
9371 echo $ECHO_N "(cached) $ECHO_C" >&6
9372else
9373 cat >conftest.$ac_ext <<_ACEOF
9374#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009375/* confdefs.h. */
9376_ACEOF
9377cat confdefs.h >>conftest.$ac_ext
9378cat >>conftest.$ac_ext <<_ACEOF
9379/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009380#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009381int
9382main ()
9383{
9384va_list ap1, ap2;
9385 __va_copy(ap1,ap2);
9386
9387 ;
9388 return 0;
9389}
9390_ACEOF
9391rm -f conftest.$ac_objext conftest$ac_exeext
9392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393 (eval $ac_link) 2>&5
9394 ac_status=$?
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } &&
9397 { ac_try='test -s conftest$ac_exeext'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 (eval $ac_try) 2>&5
9400 ac_status=$?
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 ac_cv_c___va_copy="yes"
9404else
9405 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009406sed 's/^/| /' conftest.$ac_ext >&5
9407
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009408ac_cv_c___va_copy="no"
9409fi
9410rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9411
9412fi
9413echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
9414echo "${ECHO_T}$ac_cv_c___va_copy" >&6
9415if test "$ac_cv_c___va_copy" = "yes"
9416then
9417
9418cat >>confdefs.h <<\_ACEOF
9419#define HAVE___VA_COPY 1
9420_ACEOF
9421
9422fi
9423
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009424echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009425echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
9426if test "${ac_cv_c_ipx_gnu+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009428else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009429 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009430#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009431/* confdefs.h. */
9432_ACEOF
9433cat confdefs.h >>conftest.$ac_ext
9434cat >>conftest.$ac_ext <<_ACEOF
9435/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +00009436#include <sys/types.h>
9437 #ifdef HAVE_SYS_SOCKET_H
9438 # include <sys/socket.h>
9439 #endif
Pavel Roskin94d99641998-12-26 11:52:51 +00009440 #include <netipx/ipx.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009441int
9442main ()
9443{
Pavel Roskin94d99641998-12-26 11:52:51 +00009444((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009445 ;
9446 return 0;
9447}
9448_ACEOF
9449rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009451 (eval $ac_compile) 2>&5
9452 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009454 (exit $ac_status); } &&
9455 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009457 (eval $ac_try) 2>&5
9458 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009460 (exit $ac_status); }; }; then
Aaron Hopec23872d2000-01-15 23:43:21 +00009461 ac_cv_c_ipx_gnu="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00009462else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009463 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009464sed 's/^/| /' conftest.$ac_ext >&5
9465
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009466ac_cv_c_ipx_gnu="no"
Pavel Roskin94d99641998-12-26 11:52:51 +00009467fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009468rm -f conftest.$ac_objext conftest.$ac_ext
Pavel Roskin94d99641998-12-26 11:52:51 +00009469
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009470fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009471echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009472echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
Aaron Hopec23872d2000-01-15 23:43:21 +00009473if test "$ac_cv_c_ipx_gnu" = "yes"
9474then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009475
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009476cat >>confdefs.h <<\_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00009477#define HAVE_IPX_GNU 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009478_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00009479
9480fi
Pavel Roskin94d99641998-12-26 11:52:51 +00009481
9482if test "$ac_cv_c_ipx_gnu" = "no"
9483then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009484 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009485echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
9486if test "${ac_cv_c_ipx_linux+set}" = set; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +00009488else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009489 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009490#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009491/* confdefs.h. */
9492_ACEOF
9493cat confdefs.h >>conftest.$ac_ext
9494cat >>conftest.$ac_ext <<_ACEOF
9495/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +00009496#include <sys/types.h>
9497 #ifdef HAVE_SYS_SOCKET_H
9498 # include <sys/socket.h>
9499 #endif
Pavel Roskin94d99641998-12-26 11:52:51 +00009500 #include <asm/types.h>
9501 #include <linux/ipx.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009502int
9503main ()
9504{
Pavel Roskin94d99641998-12-26 11:52:51 +00009505((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009506 ;
9507 return 0;
9508}
9509_ACEOF
9510rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009512 (eval $ac_compile) 2>&5
9513 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009515 (exit $ac_status); } &&
9516 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009518 (eval $ac_try) 2>&5
9519 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009521 (exit $ac_status); }; }; then
Aaron Hopec23872d2000-01-15 23:43:21 +00009522 ac_cv_c_ipx_linux="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00009523else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009524 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009525sed 's/^/| /' conftest.$ac_ext >&5
9526
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009527ac_cv_c_ipx_linux="no"
Pavel Roskin94d99641998-12-26 11:52:51 +00009528fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009529rm -f conftest.$ac_objext conftest.$ac_ext
Pavel Roskin94d99641998-12-26 11:52:51 +00009530
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009531fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009532echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009533echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
Aaron Hopec23872d2000-01-15 23:43:21 +00009534 if test "$ac_cv_c_ipx_linux" = "yes"
9535 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009536
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009537cat >>confdefs.h <<\_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00009538#define HAVE_IPX_LINUX 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009539_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00009540
9541 fi
Pavel Roskin94d99641998-12-26 11:52:51 +00009542fi
9543
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009544
9545
9546
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009547for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009548do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009550if eval "test \"\${$as_ac_Header+set}\" = set"; then
9551 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9553if eval "test \"\${$as_ac_Header+set}\" = set"; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009555fi
9556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009558else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009559 # Is the header compilable?
9560echo "$as_me:$LINENO: checking $ac_header usability" >&5
9561echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9562cat >conftest.$ac_ext <<_ACEOF
9563#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009564/* confdefs.h. */
9565_ACEOF
9566cat confdefs.h >>conftest.$ac_ext
9567cat >>conftest.$ac_ext <<_ACEOF
9568/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009569$ac_includes_default
9570#include <$ac_header>
9571_ACEOF
9572rm -f conftest.$ac_objext
9573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9574 (eval $ac_compile) 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } &&
9578 { ac_try='test -s conftest.$ac_objext'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 (eval $ac_try) 2>&5
9581 ac_status=$?
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 ac_header_compiler=yes
9585else
9586 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009587sed 's/^/| /' conftest.$ac_ext >&5
9588
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009589ac_header_compiler=no
9590fi
9591rm -f conftest.$ac_objext conftest.$ac_ext
9592echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9593echo "${ECHO_T}$ac_header_compiler" >&6
9594
9595# Is the header present?
9596echo "$as_me:$LINENO: checking $ac_header presence" >&5
9597echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9598cat >conftest.$ac_ext <<_ACEOF
9599#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009600/* confdefs.h. */
9601_ACEOF
9602cat confdefs.h >>conftest.$ac_ext
9603cat >>conftest.$ac_ext <<_ACEOF
9604/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009605#include <$ac_header>
9606_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009607if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9609 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009610 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009611 rm -f conftest.er1
9612 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009614 (exit $ac_status); } >/dev/null; then
9615 if test -s conftest.err; then
9616 ac_cpp_err=$ac_c_preproc_warn_flag
9617 else
9618 ac_cpp_err=
9619 fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009620else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009621 ac_cpp_err=yes
9622fi
9623if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009624 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009625else
9626 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009627sed 's/^/| /' conftest.$ac_ext >&5
9628
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009629 ac_header_preproc=no
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009630fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009631rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009632echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9633echo "${ECHO_T}$ac_header_preproc" >&6
9634
9635# So? What about this header?
9636case $ac_header_compiler:$ac_header_preproc in
9637 yes:no )
9638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9639echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009641echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9642 (
9643 cat <<\_ASBOX
9644## ------------------------------------ ##
9645## Report this to bug-autoconf@gnu.org. ##
9646## ------------------------------------ ##
9647_ASBOX
9648 ) |
9649 sed "s/^/$as_me: WARNING: /" >&2
9650 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009651 no:yes )
9652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9653echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9655echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009657echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9658 (
9659 cat <<\_ASBOX
9660## ------------------------------------ ##
9661## Report this to bug-autoconf@gnu.org. ##
9662## ------------------------------------ ##
9663_ASBOX
9664 ) |
9665 sed "s/^/$as_me: WARNING: /" >&2
9666 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009667esac
9668echo "$as_me:$LINENO: checking for $ac_header" >&5
9669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9670if eval "test \"\${$as_ac_Header+set}\" = set"; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9672else
9673 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009674fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009676echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009677
9678fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009679if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009680 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009682_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00009683 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009684fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009685
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009686done
9687
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009688
9689echo "$as_me:$LINENO: checking for Open Sound System" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009690echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
9691if test "${ac_cv_c_opensoundsystem+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009693else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009694 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009695#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009696/* confdefs.h. */
9697_ACEOF
9698cat confdefs.h >>conftest.$ac_ext
9699cat >>conftest.$ac_ext <<_ACEOF
9700/* end confdefs.h. */
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009701
Todd Vierlingecc76691998-12-15 17:49:02 +00009702 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009703 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00009704 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009705 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00009706 #elif defined(HAVE_SOUNDCARD_H)
9707 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009708 #endif
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009709
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009710int
9711main ()
9712{
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009713
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009714
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00009715/* check for one of the Open Sound System specific SNDCTL_ defines */
9716#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009717#error No open sound system
9718#endif
9719
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009720 ;
9721 return 0;
9722}
9723_ACEOF
9724rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009726 (eval $ac_compile) 2>&5
9727 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009729 (exit $ac_status); } &&
9730 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009732 (eval $ac_try) 2>&5
9733 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009735 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009736 ac_cv_c_opensoundsystem="yes"
9737else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009738 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009739sed 's/^/| /' conftest.$ac_ext >&5
9740
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009741ac_cv_c_opensoundsystem="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009742fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009743rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009744fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009745echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009746echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009747
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009748if test "$ac_cv_c_opensoundsystem" = "yes"
9749then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009750
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009751cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009752#define HAVE_OSS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009753_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009754
9755fi
9756
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009757echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009758echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
9759if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +00009761else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009762 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009763#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009764/* confdefs.h. */
9765_ACEOF
9766cat confdefs.h >>conftest.$ac_ext
9767cat >>conftest.$ac_ext <<_ACEOF
9768/* end confdefs.h. */
Eric Pouech338d3b21999-05-22 18:52:21 +00009769
9770 #if defined(HAVE_SYS_SOUNDCARD_H)
9771 #include <sys/soundcard.h>
9772 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
9773 #include <machine/soundcard.h>
9774 #elif defined(HAVE_SOUNDCARD_H)
9775 #include <soundcard.h>
9776 #endif
Eric Pouech338d3b21999-05-22 18:52:21 +00009777
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009778int
9779main ()
9780{
Eric Pouech338d3b21999-05-22 18:52:21 +00009781
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009782
Eric Pouech338d3b21999-05-22 18:52:21 +00009783/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
9784#if !defined(SNDCTL_SEQ_SYNC)
9785#error No open sound system MIDI interface
9786#endif
9787
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009788 ;
9789 return 0;
9790}
9791_ACEOF
9792rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009794 (eval $ac_compile) 2>&5
9795 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009797 (exit $ac_status); } &&
9798 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009800 (eval $ac_try) 2>&5
9801 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009803 (exit $ac_status); }; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +00009804 ac_cv_c_opensoundsystem_midi="yes"
9805else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009806 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009807sed 's/^/| /' conftest.$ac_ext >&5
9808
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009809ac_cv_c_opensoundsystem_midi="no"
Eric Pouech338d3b21999-05-22 18:52:21 +00009810fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009811rm -f conftest.$ac_objext conftest.$ac_ext
Eric Pouech338d3b21999-05-22 18:52:21 +00009812fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009813echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009814echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +00009815
9816if test "$ac_cv_c_opensoundsystem_midi" = "yes"
9817then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009818
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009819cat >>confdefs.h <<\_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +00009820#define HAVE_OSS_MIDI 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009821_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +00009822
9823fi
9824
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009825# Extract the first word of "artsc-config", so it can be a program name with args.
9826set dummy artsc-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009827echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9829if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9831else
9832 case $ARTSCCONFIG in
9833 [\\/]* | ?:[\\/]*)
9834 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
9835 ;;
9836 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838for as_dir in $PATH
9839do
9840 IFS=$as_save_IFS
9841 test -z "$as_dir" && as_dir=.
9842 for ac_exec_ext in '' $ac_executable_extensions; do
9843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9844 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
9845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9846 break 2
9847 fi
9848done
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009849done
9850
9851 ;;
9852esac
9853fi
9854ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9855
9856if test -n "$ARTSCCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009857 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009858echo "${ECHO_T}$ARTSCCONFIG" >&6
9859else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009860 echo "$as_me:$LINENO: result: no" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009861echo "${ECHO_T}no" >&6
9862fi
9863
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009864echo "$as_me:$LINENO: checking for aRts Sound server" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009865echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9866if test "${ac_cv_c_artsserver+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868else
9869 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9870 then
9871 ac_cv_c_artsserver=no
9872 else
9873 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9874 ARTSC_LIBS=`$ARTSCCONFIG --libs`
9875 ac_cv_c_artsserver=no
9876 save_CFLAGS="$CFLAGS"
9877 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9878 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009879#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009880/* confdefs.h. */
9881_ACEOF
9882cat confdefs.h >>conftest.$ac_ext
9883cat >>conftest.$ac_ext <<_ACEOF
9884/* end confdefs.h. */
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009885
9886 #include <artsc.h>
9887
9888int
9889main ()
9890{
9891
9892 arts_stream_t stream;
9893
9894 ;
9895 return 0;
9896}
9897_ACEOF
9898rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009900 (eval $ac_compile) 2>&5
9901 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009903 (exit $ac_status); } &&
9904 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009906 (eval $ac_try) 2>&5
9907 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009909 (exit $ac_status); }; }; then
9910
9911 ac_cv_c_artsserver=yes
9912
9913else
9914 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009915sed 's/^/| /' conftest.$ac_ext >&5
9916
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009917fi
9918rm -f conftest.$ac_objext conftest.$ac_ext
9919 CFLAGS="$save_CFLAGS"
9920 fi
9921fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009922echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009923echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9924
9925if test "$ac_cv_c_artsserver" = "yes"
9926then
9927 ARTSLIBS=$ARTSC_LIBS
9928
9929 ARTSINCL=$ARTSC_CFLAGS
9930
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009931
9932
9933cat >>confdefs.h <<\_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009934#define HAVE_ARTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009935_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009936
9937fi
9938
Alexandre Julliardf92b7c02002-06-28 18:31:01 +00009939ALSALIBS=""
9940
9941
Marco Pietrobono0e79a412002-08-29 01:51:31 +00009942
9943for ac_header in alsa/asoundlib.h sys/asoundlib.h
Alexandre Julliardf92b7c02002-06-28 18:31:01 +00009944do
9945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9946if eval "test \"\${$as_ac_Header+set}\" = set"; then
9947 echo "$as_me:$LINENO: checking for $ac_header" >&5
9948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9949if eval "test \"\${$as_ac_Header+set}\" = set"; then
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
9951fi
9952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9954else
9955 # Is the header compilable?
9956echo "$as_me:$LINENO: checking $ac_header usability" >&5
9957echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9958cat >conftest.$ac_ext <<_ACEOF
9959#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009960/* confdefs.h. */
9961_ACEOF
9962cat confdefs.h >>conftest.$ac_ext
9963cat >>conftest.$ac_ext <<_ACEOF
9964/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +00009965$ac_includes_default
9966#include <$ac_header>
9967_ACEOF
9968rm -f conftest.$ac_objext
9969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9970 (eval $ac_compile) 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } &&
9974 { ac_try='test -s conftest.$ac_objext'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 (eval $ac_try) 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
9980 ac_header_compiler=yes
9981else
9982 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009983sed 's/^/| /' conftest.$ac_ext >&5
9984
Alexandre Julliardf92b7c02002-06-28 18:31:01 +00009985ac_header_compiler=no
9986fi
9987rm -f conftest.$ac_objext conftest.$ac_ext
9988echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9989echo "${ECHO_T}$ac_header_compiler" >&6
9990
9991# Is the header present?
9992echo "$as_me:$LINENO: checking $ac_header presence" >&5
9993echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9994cat >conftest.$ac_ext <<_ACEOF
9995#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009996/* confdefs.h. */
9997_ACEOF
9998cat confdefs.h >>conftest.$ac_ext
9999cat >>conftest.$ac_ext <<_ACEOF
10000/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010001#include <$ac_header>
10002_ACEOF
10003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10005 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010006 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010007 rm -f conftest.er1
10008 cat conftest.err >&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } >/dev/null; then
10011 if test -s conftest.err; then
10012 ac_cpp_err=$ac_c_preproc_warn_flag
10013 else
10014 ac_cpp_err=
10015 fi
10016else
10017 ac_cpp_err=yes
10018fi
10019if test -z "$ac_cpp_err"; then
10020 ac_header_preproc=yes
10021else
10022 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010023sed 's/^/| /' conftest.$ac_ext >&5
10024
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010025 ac_header_preproc=no
10026fi
10027rm -f conftest.err conftest.$ac_ext
10028echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10029echo "${ECHO_T}$ac_header_preproc" >&6
10030
10031# So? What about this header?
10032case $ac_header_compiler:$ac_header_preproc in
10033 yes:no )
10034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10035echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010037echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10038 (
10039 cat <<\_ASBOX
10040## ------------------------------------ ##
10041## Report this to bug-autoconf@gnu.org. ##
10042## ------------------------------------ ##
10043_ASBOX
10044 ) |
10045 sed "s/^/$as_me: WARNING: /" >&2
10046 ;;
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010047 no:yes )
10048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10049echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10051echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010053echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10054 (
10055 cat <<\_ASBOX
10056## ------------------------------------ ##
10057## Report this to bug-autoconf@gnu.org. ##
10058## ------------------------------------ ##
10059_ASBOX
10060 ) |
10061 sed "s/^/$as_me: WARNING: /" >&2
10062 ;;
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010063esac
10064echo "$as_me:$LINENO: checking for $ac_header" >&5
10065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10066if eval "test \"\${$as_ac_Header+set}\" = set"; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10068else
10069 eval "$as_ac_Header=$ac_header_preproc"
10070fi
10071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10072echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10073
10074fi
10075if test `eval echo '${'$as_ac_Header'}'` = yes; then
10076 cat >>confdefs.h <<_ACEOF
10077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10078_ACEOF
Marco Pietrobono0e79a412002-08-29 01:51:31 +000010079 break
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010080fi
10081
10082done
10083
Marco Pietrobono0e79a412002-08-29 01:51:31 +000010084if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010085then
10086 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
10087echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
10088if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10090else
10091 ac_check_lib_save_LIBS=$LIBS
10092LIBS="-lasound $LIBS"
10093cat >conftest.$ac_ext <<_ACEOF
10094#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010095/* confdefs.h. */
10096_ACEOF
10097cat confdefs.h >>conftest.$ac_ext
10098cat >>conftest.$ac_ext <<_ACEOF
10099/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010100
10101/* Override any gcc2 internal prototype to avoid an error. */
10102#ifdef __cplusplus
10103extern "C"
10104#endif
10105/* We use char because int might match the return type of a gcc2
10106 builtin and then its argument prototype would still apply. */
10107char snd_pcm_open ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010108int
10109main ()
10110{
10111snd_pcm_open ();
10112 ;
10113 return 0;
10114}
10115_ACEOF
10116rm -f conftest.$ac_objext conftest$ac_exeext
10117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10118 (eval $ac_link) 2>&5
10119 ac_status=$?
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); } &&
10122 { ac_try='test -s conftest$ac_exeext'
10123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124 (eval $ac_try) 2>&5
10125 ac_status=$?
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; }; then
10128 ac_cv_lib_asound_snd_pcm_open=yes
10129else
10130 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010131sed 's/^/| /' conftest.$ac_ext >&5
10132
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010133ac_cv_lib_asound_snd_pcm_open=no
10134fi
10135rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10136LIBS=$ac_check_lib_save_LIBS
10137fi
10138echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
10139echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
10140if test $ac_cv_lib_asound_snd_pcm_open = yes; then
10141
10142cat >>confdefs.h <<\_ACEOF
10143#define HAVE_ALSA 1
10144_ACEOF
10145
10146 ALSALIBS="-lasound"
10147fi
10148
10149fi
10150
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010151
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010152AUDIOIOLIBS=""
10153
10154
10155for ac_header in libaudioio.h
10156do
10157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10158if eval "test \"\${$as_ac_Header+set}\" = set"; then
10159 echo "$as_me:$LINENO: checking for $ac_header" >&5
10160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10161if eval "test \"\${$as_ac_Header+set}\" = set"; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10163fi
10164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10165echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10166else
10167 # Is the header compilable?
10168echo "$as_me:$LINENO: checking $ac_header usability" >&5
10169echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10170cat >conftest.$ac_ext <<_ACEOF
10171#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010172/* confdefs.h. */
10173_ACEOF
10174cat confdefs.h >>conftest.$ac_ext
10175cat >>conftest.$ac_ext <<_ACEOF
10176/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010177$ac_includes_default
10178#include <$ac_header>
10179_ACEOF
10180rm -f conftest.$ac_objext
10181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10182 (eval $ac_compile) 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } &&
10186 { ac_try='test -s conftest.$ac_objext'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10189 ac_status=$?
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10192 ac_header_compiler=yes
10193else
10194 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010195sed 's/^/| /' conftest.$ac_ext >&5
10196
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010197ac_header_compiler=no
10198fi
10199rm -f conftest.$ac_objext conftest.$ac_ext
10200echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10201echo "${ECHO_T}$ac_header_compiler" >&6
10202
10203# Is the header present?
10204echo "$as_me:$LINENO: checking $ac_header presence" >&5
10205echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10206cat >conftest.$ac_ext <<_ACEOF
10207#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010208/* confdefs.h. */
10209_ACEOF
10210cat confdefs.h >>conftest.$ac_ext
10211cat >>conftest.$ac_ext <<_ACEOF
10212/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010213#include <$ac_header>
10214_ACEOF
10215if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10217 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010218 grep -v '^ *+' conftest.er1 >conftest.err
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010219 rm -f conftest.er1
10220 cat conftest.err >&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } >/dev/null; then
10223 if test -s conftest.err; then
10224 ac_cpp_err=$ac_c_preproc_warn_flag
10225 else
10226 ac_cpp_err=
10227 fi
10228else
10229 ac_cpp_err=yes
10230fi
10231if test -z "$ac_cpp_err"; then
10232 ac_header_preproc=yes
10233else
10234 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010235sed 's/^/| /' conftest.$ac_ext >&5
10236
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010237 ac_header_preproc=no
10238fi
10239rm -f conftest.err conftest.$ac_ext
10240echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10241echo "${ECHO_T}$ac_header_preproc" >&6
10242
10243# So? What about this header?
10244case $ac_header_compiler:$ac_header_preproc in
10245 yes:no )
10246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10247echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010249echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10250 (
10251 cat <<\_ASBOX
10252## ------------------------------------ ##
10253## Report this to bug-autoconf@gnu.org. ##
10254## ------------------------------------ ##
10255_ASBOX
10256 ) |
10257 sed "s/^/$as_me: WARNING: /" >&2
10258 ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010259 no:yes )
10260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10261echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10263echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010265echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10266 (
10267 cat <<\_ASBOX
10268## ------------------------------------ ##
10269## Report this to bug-autoconf@gnu.org. ##
10270## ------------------------------------ ##
10271_ASBOX
10272 ) |
10273 sed "s/^/$as_me: WARNING: /" >&2
10274 ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010275esac
10276echo "$as_me:$LINENO: checking for $ac_header" >&5
10277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10278if eval "test \"\${$as_ac_Header+set}\" = set"; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10280else
10281 eval "$as_ac_Header=$ac_header_preproc"
10282fi
10283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10284echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10285
10286fi
10287if test `eval echo '${'$as_ac_Header'}'` = yes; then
10288 cat >>confdefs.h <<_ACEOF
10289#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10290_ACEOF
10291 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10292echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10293if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10295else
10296 ac_check_lib_save_LIBS=$LIBS
10297LIBS="-laudioio $LIBS"
10298cat >conftest.$ac_ext <<_ACEOF
10299#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010300/* confdefs.h. */
10301_ACEOF
10302cat confdefs.h >>conftest.$ac_ext
10303cat >>conftest.$ac_ext <<_ACEOF
10304/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010305
10306/* Override any gcc2 internal prototype to avoid an error. */
10307#ifdef __cplusplus
10308extern "C"
10309#endif
10310/* We use char because int might match the return type of a gcc2
10311 builtin and then its argument prototype would still apply. */
10312char AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010313int
10314main ()
10315{
10316AudioIOGetVersion ();
10317 ;
10318 return 0;
10319}
10320_ACEOF
10321rm -f conftest.$ac_objext conftest$ac_exeext
10322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10323 (eval $ac_link) 2>&5
10324 ac_status=$?
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } &&
10327 { ac_try='test -s conftest$ac_exeext'
10328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329 (eval $ac_try) 2>&5
10330 ac_status=$?
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; }; then
10333 ac_cv_lib_audioio_AudioIOGetVersion=yes
10334else
10335 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010336sed 's/^/| /' conftest.$ac_ext >&5
10337
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010338ac_cv_lib_audioio_AudioIOGetVersion=no
10339fi
10340rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10341LIBS=$ac_check_lib_save_LIBS
10342fi
10343echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10344echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
10345if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
10346 AUDIOIOLIBS="-laudioio"
10347
10348cat >>confdefs.h <<\_ACEOF
10349#define HAVE_LIBAUDIOIO 1
10350_ACEOF
10351
10352fi
10353
10354fi
10355
10356done
10357
10358
10359
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010360echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010361echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
10362if test "${ac_cv_mmap64_works+set}" = set; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010364else
10365 if test "$cross_compiling" = yes; then
10366 ac_cv_mmap64_works="no"
10367else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010368 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010369#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010370/* confdefs.h. */
10371_ACEOF
10372cat confdefs.h >>conftest.$ac_ext
10373cat >>conftest.$ac_ext <<_ACEOF
10374/* end confdefs.h. */
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010375
10376 #define _FILE_OFFSET_BITS 64
10377 #include <stdio.h>
10378 #include <unistd.h>
10379 #include <fcntl.h>
10380 #include <sys/mman.h>
10381 #include <errno.h>
10382
10383 int main(int argc,char **argv) {
10384 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
10385 if (fd == -1) exit(1);
10386
10387 unlink("conftest.map");
10388
10389 write(fd,"test",4);
10390
10391 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
10392 (errno == EINVAL)
10393 ) {
10394 exit(1);
10395 }
10396 close(fd);
10397 fprintf(stderr,"success!\n");
10398 exit(0);
10399 }
10400
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010401
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010402_ACEOF
10403rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010405 (eval $ac_link) 2>&5
10406 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010408 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010410 (eval $ac_try) 2>&5
10411 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010413 (exit $ac_status); }; }; then
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010414 ac_cv_mmap64_works="yes"
10415else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010416 echo "$as_me: program exited with status $ac_status" >&5
10417echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010418sed 's/^/| /' conftest.$ac_ext >&5
10419
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010420( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010421ac_cv_mmap64_works="no"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010422fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010423rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010424fi
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010425fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010426echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010427echo "${ECHO_T}$ac_cv_mmap64_works" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010428
10429if test "$ac_cv_mmap64_works" = "yes"
10430then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010431
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010432cat >>confdefs.h <<\_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010433#define _FILE_OFFSET_BITS 64
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010434_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010435
10436fi
10437
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010438
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010439if test "x${GCC}" = "xyes"
10440then
10441 CFLAGS="$CFLAGS -Wall"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010442 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010443echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
10444if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
10445 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010446else
10447 if test "$cross_compiling" = yes; then
10448 ac_cv_c_gcc_strength_bug="yes"
10449else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010450 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010451#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010452/* confdefs.h. */
10453_ACEOF
10454cat confdefs.h >>conftest.$ac_ext
10455cat >>conftest.$ac_ext <<_ACEOF
10456/* end confdefs.h. */
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010457
Eric Pouech5aee80f2000-11-11 00:31:39 +000010458int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010459int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000010460 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010461 unsigned int B = 3;
10462 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000010463 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000010464 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
10465 L[i] = 4;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010466
Eric Pouech5aee80f2000-11-11 00:31:39 +000010467 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010468}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010469_ACEOF
10470rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010472 (eval $ac_link) 2>&5
10473 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010477 (eval $ac_try) 2>&5
10478 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010480 (exit $ac_status); }; }; then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010481 ac_cv_c_gcc_strength_bug="no"
10482else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010483 echo "$as_me: program exited with status $ac_status" >&5
10484echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010485sed 's/^/| /' conftest.$ac_ext >&5
10486
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010487( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010488ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010489fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010490rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010491fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010492fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010493echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010494echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010495 if test "$ac_cv_c_gcc_strength_bug" = "yes"
10496 then
10497 CFLAGS="$CFLAGS -fno-strength-reduce"
10498 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010499
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010500 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010501echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
10502if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010504else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010505 ac_wine_try_cflags_saved=$CFLAGS
10506CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10507cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010508#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010509/* confdefs.h. */
10510_ACEOF
10511cat confdefs.h >>conftest.$ac_ext
10512cat >>conftest.$ac_ext <<_ACEOF
10513/* end confdefs.h. */
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010514
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010515int
10516main ()
10517{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010518
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010519 ;
10520 return 0;
10521}
10522_ACEOF
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010523rm -f conftest.$ac_objext conftest$ac_exeext
10524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10525 (eval $ac_link) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010526 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010528 (exit $ac_status); } &&
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010529 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010531 (eval $ac_try) 2>&5
10532 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010534 (exit $ac_status); }; }; then
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010535 ac_cv_c_gcc_stack_boundary="yes"
10536else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010537 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010538sed 's/^/| /' conftest.$ac_ext >&5
10539
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010540ac_cv_c_gcc_stack_boundary="no"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010541fi
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010542rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10543CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010544fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010545echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010546echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010547 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
10548 then
10549 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10550 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010551fi
10552
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010553
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010554echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
10555echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
10556if test "${ac_cv_asm_func_def+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010557 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000010558else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010559 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010560#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010561/* confdefs.h. */
10562_ACEOF
10563cat confdefs.h >>conftest.$ac_ext
10564cat >>conftest.$ac_ext <<_ACEOF
10565/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000010566void 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 +000010567
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010568int
10569main ()
10570{
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000010571
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010572 ;
10573 return 0;
10574}
10575_ACEOF
10576rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010578 (eval $ac_link) 2>&5
10579 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010581 (exit $ac_status); } &&
10582 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010584 (eval $ac_try) 2>&5
10585 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010587 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010588 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000010589else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010590 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010591sed 's/^/| /' conftest.$ac_ext >&5
10592
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010593cat >conftest.$ac_ext <<_ACEOF
10594#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010595/* confdefs.h. */
10596_ACEOF
10597cat confdefs.h >>conftest.$ac_ext
10598cat >>conftest.$ac_ext <<_ACEOF
10599/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000010600void 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 +000010601
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010602int
10603main ()
10604{
10605
10606 ;
10607 return 0;
10608}
10609_ACEOF
10610rm -f conftest.$ac_objext conftest$ac_exeext
10611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10612 (eval $ac_link) 2>&5
10613 ac_status=$?
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } &&
10616 { ac_try='test -s conftest$ac_exeext'
10617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618 (eval $ac_try) 2>&5
10619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010622 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010623else
10624 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010625sed 's/^/| /' conftest.$ac_ext >&5
10626
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010627cat >conftest.$ac_ext <<_ACEOF
10628#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010629/* confdefs.h. */
10630_ACEOF
10631cat confdefs.h >>conftest.$ac_ext
10632cat >>conftest.$ac_ext <<_ACEOF
10633/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000010634void 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 +000010635
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010636int
10637main ()
10638{
10639
10640 ;
10641 return 0;
10642}
10643_ACEOF
10644rm -f conftest.$ac_objext conftest$ac_exeext
10645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10646 (eval $ac_link) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); } &&
10650 { ac_try='test -s conftest$ac_exeext'
10651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; }; then
10656 ac_cv_asm_func_def=".type 2"
10657else
10658 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010659sed 's/^/| /' conftest.$ac_ext >&5
10660
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010661ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010662fi
10663rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010664fi
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010665rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10666fi
10667rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10668fi
10669echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
10670echo "${ECHO_T}$ac_cv_asm_func_def" >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010671
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010672
10673
10674case "$ac_cv_asm_func_def" in
10675 ".def")
10676 cat >>confdefs.h <<\_ACEOF
10677#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010678_ACEOF
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010679 ;;
10680 ".type @function")
10681 cat >>confdefs.h <<\_ACEOF
10682#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
10683_ACEOF
10684 ;;
10685 ".type 2")
10686 cat >>confdefs.h <<\_ACEOF
10687#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
10688_ACEOF
10689 ;;
10690 *)
10691 cat >>confdefs.h <<\_ACEOF
10692#define __ASM_FUNC(name) ""
10693_ACEOF
10694 ;;
10695esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010696
10697
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010698echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010699echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
10700if test "${ac_cv_c_extern_prefix+set}" = set; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010702else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010703 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010704#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010705/* confdefs.h. */
10706_ACEOF
10707cat confdefs.h >>conftest.$ac_ext
10708cat >>conftest.$ac_ext <<_ACEOF
10709/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000010710void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010711extern int ac_test;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010712int
10713main ()
10714{
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010715if (ac_test) return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010716 ;
10717 return 0;
10718}
10719_ACEOF
10720rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010722 (eval $ac_link) 2>&5
10723 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010725 (exit $ac_status); } &&
10726 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010728 (eval $ac_try) 2>&5
10729 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010731 (exit $ac_status); }; }; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010732 ac_cv_c_extern_prefix="yes"
10733else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010734 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010735sed 's/^/| /' conftest.$ac_ext >&5
10736
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010737ac_cv_c_extern_prefix="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010738fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010739rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010740fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010741echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010742echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010743
10744
10745
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010746if test "$ac_cv_c_extern_prefix" = "yes"
10747then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010748 cat >>confdefs.h <<\_ACEOF
10749#define __ASM_NAME(name) "_" name
10750_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010751
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010752else
10753 cat >>confdefs.h <<\_ACEOF
10754#define __ASM_NAME(name) name
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010755_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010756
10757fi
10758
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010759
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010760echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010761echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
10762if test "${ac_cv_c_asm_string+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010764else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010765 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010766#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010767/* confdefs.h. */
10768_ACEOF
10769cat confdefs.h >>conftest.$ac_ext
10770cat >>conftest.$ac_ext <<_ACEOF
10771/* end confdefs.h. */
Marcus Meissner49163d52002-08-20 00:26:40 +000010772void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010773
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010774int
10775main ()
10776{
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010777
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010778 ;
10779 return 0;
10780}
10781_ACEOF
10782rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010784 (eval $ac_link) 2>&5
10785 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010787 (exit $ac_status); } &&
10788 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010790 (eval $ac_try) 2>&5
10791 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010793 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010794 ac_cv_c_asm_string="yes"
10795else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010796 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010797sed 's/^/| /' conftest.$ac_ext >&5
10798
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010799ac_cv_c_asm_string="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010800fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010801rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010802fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010803echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010804echo "${ECHO_T}$ac_cv_c_asm_string" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010805if test "$ac_cv_c_asm_string" = "yes"
10806then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010807
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010808cat >>confdefs.h <<\_ACEOF
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010809#define HAVE_ASM_STRING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010810_ACEOF
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010811
10812fi
10813
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010814
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010815DLLEXT=""
10816
10817DLLFLAGS=""
10818
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010819DLLIBS=""
10820
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010821LDDLLFLAGS=""
10822
10823LDSHARED=""
10824
Alexandre Julliardada5e652002-12-12 22:03:14 +000010825LIBEXT="so"
10826
10827IMPLIBEXT="def"
10828
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010829
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010830case $host_os in
10831 cygwin*|mingw32*)
10832 if test -n "$ac_tool_prefix"; then
Alexandre Julliardada5e652002-12-12 22:03:14 +000010833 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10834set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10835echo "$as_me:$LINENO: checking for $ac_word" >&5
10836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10837if test "${ac_cv_prog_DLLTOOL+set}" = set; then
10838 echo $ECHO_N "(cached) $ECHO_C" >&6
10839else
10840 if test -n "$DLLTOOL"; then
10841 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10842else
10843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844for as_dir in $PATH
10845do
10846 IFS=$as_save_IFS
10847 test -z "$as_dir" && as_dir=.
10848 for ac_exec_ext in '' $ac_executable_extensions; do
10849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10850 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10852 break 2
10853 fi
10854done
10855done
10856
10857fi
10858fi
10859DLLTOOL=$ac_cv_prog_DLLTOOL
10860if test -n "$DLLTOOL"; then
10861 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
10862echo "${ECHO_T}$DLLTOOL" >&6
10863else
10864 echo "$as_me:$LINENO: result: no" >&5
10865echo "${ECHO_T}no" >&6
10866fi
10867
10868fi
10869if test -z "$ac_cv_prog_DLLTOOL"; then
10870 ac_ct_DLLTOOL=$DLLTOOL
10871 # Extract the first word of "dlltool", so it can be a program name with args.
10872set dummy dlltool; ac_word=$2
10873echo "$as_me:$LINENO: checking for $ac_word" >&5
10874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10875if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10877else
10878 if test -n "$ac_ct_DLLTOOL"; then
10879 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10880else
10881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882for as_dir in $PATH
10883do
10884 IFS=$as_save_IFS
10885 test -z "$as_dir" && as_dir=.
10886 for ac_exec_ext in '' $ac_executable_extensions; do
10887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10888 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10890 break 2
10891 fi
10892done
10893done
10894
10895 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
10896fi
10897fi
10898ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10899if test -n "$ac_ct_DLLTOOL"; then
10900 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
10901echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
10902else
10903 echo "$as_me:$LINENO: result: no" >&5
10904echo "${ECHO_T}no" >&6
10905fi
10906
10907 DLLTOOL=$ac_ct_DLLTOOL
10908else
10909 DLLTOOL="$ac_cv_prog_DLLTOOL"
10910fi
10911
10912 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010913 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
10914set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard466ae142002-05-07 18:33:47 +000010915echo "$as_me:$LINENO: checking for $ac_word" >&5
10916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10917if test "${ac_cv_prog_DLLWRAP+set}" = set; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10919else
10920 if test -n "$DLLWRAP"; then
10921 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
10922else
10923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10924for as_dir in $PATH
10925do
10926 IFS=$as_save_IFS
10927 test -z "$as_dir" && as_dir=.
10928 for ac_exec_ext in '' $ac_executable_extensions; do
10929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010930 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard466ae142002-05-07 18:33:47 +000010931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10932 break 2
10933 fi
10934done
10935done
10936
Alexandre Julliard466ae142002-05-07 18:33:47 +000010937fi
10938fi
10939DLLWRAP=$ac_cv_prog_DLLWRAP
10940if test -n "$DLLWRAP"; then
10941 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
10942echo "${ECHO_T}$DLLWRAP" >&6
10943else
10944 echo "$as_me:$LINENO: result: no" >&5
10945echo "${ECHO_T}no" >&6
10946fi
10947
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010948fi
10949if test -z "$ac_cv_prog_DLLWRAP"; then
10950 ac_ct_DLLWRAP=$DLLWRAP
10951 # Extract the first word of "dllwrap", so it can be a program name with args.
10952set dummy dllwrap; ac_word=$2
10953echo "$as_me:$LINENO: checking for $ac_word" >&5
10954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10955if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10957else
10958 if test -n "$ac_ct_DLLWRAP"; then
10959 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
10960else
10961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10962for as_dir in $PATH
10963do
10964 IFS=$as_save_IFS
10965 test -z "$as_dir" && as_dir=.
10966 for ac_exec_ext in '' $ac_executable_extensions; do
10967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10968 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
10969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10970 break 2
10971 fi
10972done
10973done
10974
10975 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
10976fi
10977fi
10978ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
10979if test -n "$ac_ct_DLLWRAP"; then
10980 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
10981echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
10982else
10983 echo "$as_me:$LINENO: result: no" >&5
10984echo "${ECHO_T}no" >&6
10985fi
10986
10987 DLLWRAP=$ac_ct_DLLWRAP
10988else
10989 DLLWRAP="$ac_cv_prog_DLLWRAP"
10990fi
10991
10992 if test "$DLLWRAP" = "false"; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010993 LIBEXT="a"
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010994 else
10995 LIBEXT="dll"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010996 fi
Alexandre Julliardada5e652002-12-12 22:03:14 +000010997 IMPLIBEXT="a"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010998 ;;
10999 *)
11000
11001for ac_header in dlfcn.h
11002do
11003as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11004if eval "test \"\${$as_ac_Header+set}\" = set"; then
11005 echo "$as_me:$LINENO: checking for $ac_header" >&5
11006echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11007if eval "test \"\${$as_ac_Header+set}\" = set"; then
11008 echo $ECHO_N "(cached) $ECHO_C" >&6
11009fi
11010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11011echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11012else
11013 # Is the header compilable?
11014echo "$as_me:$LINENO: checking $ac_header usability" >&5
11015echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11016cat >conftest.$ac_ext <<_ACEOF
11017#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011018/* confdefs.h. */
11019_ACEOF
11020cat confdefs.h >>conftest.$ac_ext
11021cat >>conftest.$ac_ext <<_ACEOF
11022/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011023$ac_includes_default
11024#include <$ac_header>
11025_ACEOF
11026rm -f conftest.$ac_objext
11027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11028 (eval $ac_compile) 2>&5
11029 ac_status=$?
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } &&
11032 { ac_try='test -s conftest.$ac_objext'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; }; then
11038 ac_header_compiler=yes
11039else
11040 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011041sed 's/^/| /' conftest.$ac_ext >&5
11042
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011043ac_header_compiler=no
11044fi
11045rm -f conftest.$ac_objext conftest.$ac_ext
11046echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11047echo "${ECHO_T}$ac_header_compiler" >&6
11048
11049# Is the header present?
11050echo "$as_me:$LINENO: checking $ac_header presence" >&5
11051echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11052cat >conftest.$ac_ext <<_ACEOF
11053#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011054/* confdefs.h. */
11055_ACEOF
11056cat confdefs.h >>conftest.$ac_ext
11057cat >>conftest.$ac_ext <<_ACEOF
11058/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011059#include <$ac_header>
11060_ACEOF
11061if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11063 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011064 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011065 rm -f conftest.er1
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } >/dev/null; then
11069 if test -s conftest.err; then
11070 ac_cpp_err=$ac_c_preproc_warn_flag
11071 else
11072 ac_cpp_err=
11073 fi
11074else
11075 ac_cpp_err=yes
11076fi
11077if test -z "$ac_cpp_err"; then
11078 ac_header_preproc=yes
11079else
11080 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011081sed 's/^/| /' conftest.$ac_ext >&5
11082
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011083 ac_header_preproc=no
11084fi
11085rm -f conftest.err conftest.$ac_ext
11086echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11087echo "${ECHO_T}$ac_header_preproc" >&6
11088
11089# So? What about this header?
11090case $ac_header_compiler:$ac_header_preproc in
11091 yes:no )
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11093echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011095echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11096 (
11097 cat <<\_ASBOX
11098## ------------------------------------ ##
11099## Report this to bug-autoconf@gnu.org. ##
11100## ------------------------------------ ##
11101_ASBOX
11102 ) |
11103 sed "s/^/$as_me: WARNING: /" >&2
11104 ;;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011105 no:yes )
11106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11107echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11109echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011111echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11112 (
11113 cat <<\_ASBOX
11114## ------------------------------------ ##
11115## Report this to bug-autoconf@gnu.org. ##
11116## ------------------------------------ ##
11117_ASBOX
11118 ) |
11119 sed "s/^/$as_me: WARNING: /" >&2
11120 ;;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011121esac
11122echo "$as_me:$LINENO: checking for $ac_header" >&5
11123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11124if eval "test \"\${$as_ac_Header+set}\" = set"; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11126else
11127 eval "$as_ac_Header=$ac_header_preproc"
11128fi
11129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11130echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11131
11132fi
11133if test `eval echo '${'$as_ac_Header'}'` = yes; then
11134 cat >>confdefs.h <<_ACEOF
11135#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11136_ACEOF
11137
11138for ac_func in dlopen
11139do
11140as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11141echo "$as_me:$LINENO: checking for $ac_func" >&5
11142echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11143if eval "test \"\${$as_ac_var+set}\" = set"; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11145else
11146 cat >conftest.$ac_ext <<_ACEOF
11147#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011148/* confdefs.h. */
11149_ACEOF
11150cat confdefs.h >>conftest.$ac_ext
11151cat >>conftest.$ac_ext <<_ACEOF
11152/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011153/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011154 which can conflict with char $ac_func (); below.
11155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11156 <limits.h> exists even on freestanding compilers. */
11157#ifdef __STDC__
11158# include <limits.h>
11159#else
11160# include <assert.h>
11161#endif
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011162/* Override any gcc2 internal prototype to avoid an error. */
11163#ifdef __cplusplus
11164extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011165{
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011166#endif
11167/* We use char because int might match the return type of a gcc2
11168 builtin and then its argument prototype would still apply. */
11169char $ac_func ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011170/* The GNU C library defines this for functions which it implements
11171 to always fail with ENOSYS. Some functions are actually named
11172 something starting with __ and the normal name is an alias. */
11173#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11174choke me
11175#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011176char (*f) () = $ac_func;
11177#endif
11178#ifdef __cplusplus
11179}
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011180#endif
11181
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011182int
11183main ()
11184{
11185return f != $ac_func;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011186 ;
11187 return 0;
11188}
11189_ACEOF
11190rm -f conftest.$ac_objext conftest$ac_exeext
11191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11192 (eval $ac_link) 2>&5
11193 ac_status=$?
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } &&
11196 { ac_try='test -s conftest$ac_exeext'
11197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198 (eval $ac_try) 2>&5
11199 ac_status=$?
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; }; then
11202 eval "$as_ac_var=yes"
11203else
11204 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011205sed 's/^/| /' conftest.$ac_ext >&5
11206
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011207eval "$as_ac_var=no"
11208fi
11209rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11210fi
11211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11212echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11213if test `eval echo '${'$as_ac_var'}'` = yes; then
11214 cat >>confdefs.h <<_ACEOF
11215#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11216_ACEOF
11217
11218else
11219 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11220echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11221if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11223else
11224 ac_check_lib_save_LIBS=$LIBS
11225LIBS="-ldl $LIBS"
11226cat >conftest.$ac_ext <<_ACEOF
11227#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011228/* confdefs.h. */
11229_ACEOF
11230cat confdefs.h >>conftest.$ac_ext
11231cat >>conftest.$ac_ext <<_ACEOF
11232/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011233
11234/* Override any gcc2 internal prototype to avoid an error. */
11235#ifdef __cplusplus
11236extern "C"
11237#endif
11238/* We use char because int might match the return type of a gcc2
11239 builtin and then its argument prototype would still apply. */
11240char dlopen ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011241int
11242main ()
11243{
11244dlopen ();
11245 ;
11246 return 0;
11247}
11248_ACEOF
11249rm -f conftest.$ac_objext conftest$ac_exeext
11250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11251 (eval $ac_link) 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } &&
11255 { ac_try='test -s conftest$ac_exeext'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
11261 ac_cv_lib_dl_dlopen=yes
11262else
11263 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011264sed 's/^/| /' conftest.$ac_ext >&5
11265
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011266ac_cv_lib_dl_dlopen=no
11267fi
11268rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11269LIBS=$ac_check_lib_save_LIBS
11270fi
11271echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11272echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11273if test $ac_cv_lib_dl_dlopen = yes; then
11274
11275cat >>confdefs.h <<\_ACEOF
11276#define HAVE_DLOPEN 1
11277_ACEOF
11278
11279 DLLIBS="-ldl"
11280else
11281 LIBEXT="a"
11282fi
11283
11284fi
11285done
11286
11287else
11288 LIBEXT="a"
11289fi
11290
11291done
11292
11293
11294 if test "$LIBEXT" = "so"
11295 then
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011296 DLLFLAGS="-fPIC"
11297 DLLEXT=".so"
Alexandre Julliard466ae142002-05-07 18:33:47 +000011298 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011299echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
11300if test "${ac_cv_c_dll_gnuelf+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011302else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011303 ac_wine_try_cflags_saved=$CFLAGS
11304CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
11305cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011306#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011307/* confdefs.h. */
11308_ACEOF
11309cat confdefs.h >>conftest.$ac_ext
11310cat >>conftest.$ac_ext <<_ACEOF
11311/* end confdefs.h. */
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011312
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011313int
11314main ()
11315{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011316
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011317 ;
11318 return 0;
11319}
11320_ACEOF
11321rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011323 (eval $ac_link) 2>&5
11324 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011326 (exit $ac_status); } &&
11327 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011329 (eval $ac_try) 2>&5
11330 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011332 (exit $ac_status); }; }; then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +000011333 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011334else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011335 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011336sed 's/^/| /' conftest.$ac_ext >&5
11337
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011338ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011339fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011340rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011341CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011342fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011343echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011344echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000011345 if test "$ac_cv_c_dll_gnuelf" = "yes"
11346 then
11347 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
11348 LDDLLFLAGS="-Wl,-Bsymbolic"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000011349 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
11350echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
11351if test "${ac_cv_c_dll_zdefs+set}" = set; then
11352 echo $ECHO_N "(cached) $ECHO_C" >&6
11353else
11354 ac_wine_try_cflags_saved=$CFLAGS
11355CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
11356cat >conftest.$ac_ext <<_ACEOF
11357#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011358/* confdefs.h. */
11359_ACEOF
11360cat confdefs.h >>conftest.$ac_ext
11361cat >>conftest.$ac_ext <<_ACEOF
11362/* end confdefs.h. */
Alexandre Julliardf2abe472002-11-21 04:13:35 +000011363
11364int
11365main ()
11366{
11367
11368 ;
11369 return 0;
11370}
11371_ACEOF
11372rm -f conftest.$ac_objext conftest$ac_exeext
11373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11374 (eval $ac_link) 2>&5
11375 ac_status=$?
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } &&
11378 { ac_try='test -s conftest$ac_exeext'
11379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380 (eval $ac_try) 2>&5
11381 ac_status=$?
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; }; then
11384 ac_cv_c_dll_zdefs="yes"
11385else
11386 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011387sed 's/^/| /' conftest.$ac_ext >&5
11388
Alexandre Julliardf2abe472002-11-21 04:13:35 +000011389ac_cv_c_dll_zdefs="no"
11390fi
11391rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11392CFLAGS=$ac_wine_try_cflags_saved
11393fi
11394echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
11395echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
11396 if test "$ac_cv_c_dll_zdefs" = "yes"
11397 then
11398 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
11399 fi
Alexandre Julliard466ae142002-05-07 18:33:47 +000011400 else
11401 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011402echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
11403if test "${ac_cv_c_dll_unixware+set}" = set; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierling4b992b01998-12-15 15:26:27 +000011405else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011406 ac_wine_try_cflags_saved=$CFLAGS
11407CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
11408cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011409#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011410/* confdefs.h. */
11411_ACEOF
11412cat confdefs.h >>conftest.$ac_ext
11413cat >>conftest.$ac_ext <<_ACEOF
11414/* end confdefs.h. */
Todd Vierling4b992b01998-12-15 15:26:27 +000011415
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011416int
11417main ()
11418{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011419
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011420 ;
11421 return 0;
11422}
11423_ACEOF
11424rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011426 (eval $ac_link) 2>&5
11427 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011429 (exit $ac_status); } &&
11430 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011432 (eval $ac_try) 2>&5
11433 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011435 (exit $ac_status); }; }; then
Ron Recorde977d6c1999-09-05 12:32:05 +000011436 ac_cv_c_dll_unixware="yes"
11437else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011438 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011439sed 's/^/| /' conftest.$ac_ext >&5
11440
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011441ac_cv_c_dll_unixware="no"
Ron Recorde977d6c1999-09-05 12:32:05 +000011442fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011443rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011444CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011445fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011446echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011447echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000011448 if test "$ac_cv_c_dll_unixware" = "yes"
11449 then
11450 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
11451 LDDLLFLAGS="-Wl,-B,symbolic"
11452 fi
11453 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011454 fi
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000011455
11456 CROSSTEST=""
11457
11458 if test "$cross_compiling" = "no"
11459 then
11460 for ac_prog in i586-mingw32msvc-gcc
11461do
11462 # Extract the first word of "$ac_prog", so it can be a program name with args.
11463set dummy $ac_prog; ac_word=$2
11464echo "$as_me:$LINENO: checking for $ac_word" >&5
11465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11466if test "${ac_cv_prog_CROSSCC+set}" = set; then
11467 echo $ECHO_N "(cached) $ECHO_C" >&6
11468else
11469 if test -n "$CROSSCC"; then
11470 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
11471else
11472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473for as_dir in $PATH
11474do
11475 IFS=$as_save_IFS
11476 test -z "$as_dir" && as_dir=.
11477 for ac_exec_ext in '' $ac_executable_extensions; do
11478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11479 ac_cv_prog_CROSSCC="$ac_prog"
11480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11481 break 2
11482 fi
11483done
11484done
11485
11486fi
11487fi
11488CROSSCC=$ac_cv_prog_CROSSCC
11489if test -n "$CROSSCC"; then
11490 echo "$as_me:$LINENO: result: $CROSSCC" >&5
11491echo "${ECHO_T}$CROSSCC" >&6
11492else
11493 echo "$as_me:$LINENO: result: no" >&5
11494echo "${ECHO_T}no" >&6
11495fi
11496
11497 test -n "$CROSSCC" && break
11498done
11499test -n "$CROSSCC" || CROSSCC="false"
11500
11501 for ac_prog in i586-mingw32msvc-dlltool
11502do
11503 # Extract the first word of "$ac_prog", so it can be a program name with args.
11504set dummy $ac_prog; ac_word=$2
11505echo "$as_me:$LINENO: checking for $ac_word" >&5
11506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11507if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509else
11510 if test -n "$DLLTOOL"; then
11511 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11512else
11513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514for as_dir in $PATH
11515do
11516 IFS=$as_save_IFS
11517 test -z "$as_dir" && as_dir=.
11518 for ac_exec_ext in '' $ac_executable_extensions; do
11519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11520 ac_cv_prog_DLLTOOL="$ac_prog"
11521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11522 break 2
11523 fi
11524done
11525done
11526
11527fi
11528fi
11529DLLTOOL=$ac_cv_prog_DLLTOOL
11530if test -n "$DLLTOOL"; then
11531 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11532echo "${ECHO_T}$DLLTOOL" >&6
11533else
11534 echo "$as_me:$LINENO: result: no" >&5
11535echo "${ECHO_T}no" >&6
11536fi
11537
11538 test -n "$DLLTOOL" && break
11539done
11540test -n "$DLLTOOL" || DLLTOOL="false"
11541
11542 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
11543 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011544 ;;
11545esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011546
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000011547if test "$LIBEXT" = "a"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011548 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011549It is currently not possible to build Wine without shared library
11550(.so) support to allow transparent switch between .so and .dll files.
11551If you are using Linux, you will need a newer binutils.
11552" >&5
11553echo "$as_me: error: could not find a way to build shared libraries.
11554It is currently not possible to build Wine without shared library
11555(.so) support to allow transparent switch between .so and .dll files.
11556If you are using Linux, you will need a newer binutils.
11557" >&2;}
11558 { (exit 1); exit 1; }; }
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000011559fi
11560
Alexandre Julliardfc01b722002-05-12 03:16:39 +000011561case $build_os in
11562 cygwin*|mingw32*)
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011563 LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\""
11564 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000011565 *)
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011566 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\""
11567 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000011568esac
11569
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011570CRTLIBS=""
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011571
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011572case $host_os in
11573 mingw32*)
11574 CRTLIBS="-lmsvcrt" ;;
11575esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011576
11577
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011578if test "$LIBEXT" = "so"
11579then
11580 # Extract the first word of "ldd", so it can be a program name with args.
11581set dummy ldd; ac_word=$2
11582echo "$as_me:$LINENO: checking for $ac_word" >&5
11583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11584if test "${ac_cv_path_LDD+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11586else
11587 case $LDD in
11588 [\\/]* | ?:[\\/]*)
11589 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
11590 ;;
11591 *)
11592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011593as_dummy="/sbin:/usr/sbin:$PATH"
11594for as_dir in $as_dummy
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011595do
11596 IFS=$as_save_IFS
11597 test -z "$as_dir" && as_dir=.
11598 for ac_exec_ext in '' $ac_executable_extensions; do
11599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11600 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
11601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11602 break 2
11603 fi
11604done
11605done
11606
11607 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
11608 ;;
11609esac
11610fi
11611LDD=$ac_cv_path_LDD
11612
11613if test -n "$LDD"; then
11614 echo "$as_me:$LINENO: result: $LDD" >&5
11615echo "${ECHO_T}$LDD" >&6
11616else
11617 echo "$as_me:$LINENO: result: no" >&5
11618echo "${ECHO_T}no" >&6
11619fi
11620
11621
11622echo "$as_me:$LINENO: checking for -lX11 soname" >&5
11623echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
11624if test "${ac_cv_lib_soname_X11+set}" = set; then
11625 echo $ECHO_N "(cached) $ECHO_C" >&6
11626else
11627 ac_get_soname_save_LIBS=$LIBS
11628LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
11629 cat >conftest.$ac_ext <<_ACEOF
11630#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011631/* confdefs.h. */
11632_ACEOF
11633cat confdefs.h >>conftest.$ac_ext
11634cat >>conftest.$ac_ext <<_ACEOF
11635/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011636
11637/* Override any gcc2 internal prototype to avoid an error. */
11638#ifdef __cplusplus
11639extern "C"
11640#endif
11641/* We use char because int might match the return type of a gcc2
11642 builtin and then its argument prototype would still apply. */
11643char XCreateWindow ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011644int
11645main ()
11646{
11647XCreateWindow ();
11648 ;
11649 return 0;
11650}
11651_ACEOF
11652rm -f conftest.$ac_objext conftest$ac_exeext
11653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11654 (eval $ac_link) 2>&5
11655 ac_status=$?
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); } &&
11658 { ac_try='test -s conftest$ac_exeext'
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11661 ac_status=$?
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; }; then
11664 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
11665 if test "x$ac_cv_lib_soname_X11" = "x"
11666 then
11667 ac_cv_lib_soname_X11="libX11.so"
11668 fi
11669else
11670 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011671sed 's/^/| /' conftest.$ac_ext >&5
11672
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011673ac_cv_lib_soname_X11="libX11.so"
11674fi
11675rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11676 LIBS=$ac_get_soname_save_LIBS
11677fi
11678echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
11679echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
11680if test "x$ac_cv_lib_soname_X11" != xNONE
11681then
11682cat >>confdefs.h <<_ACEOF
11683#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
11684_ACEOF
11685fi
11686
11687echo "$as_me:$LINENO: checking for -lXext soname" >&5
11688echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
11689if test "${ac_cv_lib_soname_Xext+set}" = set; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11691else
11692 ac_get_soname_save_LIBS=$LIBS
11693LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
11694 cat >conftest.$ac_ext <<_ACEOF
11695#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011696/* confdefs.h. */
11697_ACEOF
11698cat confdefs.h >>conftest.$ac_ext
11699cat >>conftest.$ac_ext <<_ACEOF
11700/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011701
11702/* Override any gcc2 internal prototype to avoid an error. */
11703#ifdef __cplusplus
11704extern "C"
11705#endif
11706/* We use char because int might match the return type of a gcc2
11707 builtin and then its argument prototype would still apply. */
11708char XextCreateExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011709int
11710main ()
11711{
11712XextCreateExtension ();
11713 ;
11714 return 0;
11715}
11716_ACEOF
11717rm -f conftest.$ac_objext conftest$ac_exeext
11718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11719 (eval $ac_link) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } &&
11723 { ac_try='test -s conftest$ac_exeext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
11730 if test "x$ac_cv_lib_soname_Xext" = "x"
11731 then
11732 ac_cv_lib_soname_Xext="libXext.so"
11733 fi
11734else
11735 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011736sed 's/^/| /' conftest.$ac_ext >&5
11737
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011738ac_cv_lib_soname_Xext="libXext.so"
11739fi
11740rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11741 LIBS=$ac_get_soname_save_LIBS
11742fi
11743echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
11744echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
11745if test "x$ac_cv_lib_soname_Xext" != xNONE
11746then
11747cat >>confdefs.h <<_ACEOF
11748#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
11749_ACEOF
11750fi
11751
11752echo "$as_me:$LINENO: checking for -lXrender soname" >&5
11753echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
11754if test "${ac_cv_lib_soname_Xrender+set}" = set; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11756else
11757 ac_get_soname_save_LIBS=$LIBS
11758LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
11759 cat >conftest.$ac_ext <<_ACEOF
11760#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011761/* confdefs.h. */
11762_ACEOF
11763cat confdefs.h >>conftest.$ac_ext
11764cat >>conftest.$ac_ext <<_ACEOF
11765/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011766
11767/* Override any gcc2 internal prototype to avoid an error. */
11768#ifdef __cplusplus
11769extern "C"
11770#endif
11771/* We use char because int might match the return type of a gcc2
11772 builtin and then its argument prototype would still apply. */
11773char XRenderQueryExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011774int
11775main ()
11776{
11777XRenderQueryExtension ();
11778 ;
11779 return 0;
11780}
11781_ACEOF
11782rm -f conftest.$ac_objext conftest$ac_exeext
11783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11784 (eval $ac_link) 2>&5
11785 ac_status=$?
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } &&
11788 { ac_try='test -s conftest$ac_exeext'
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11791 ac_status=$?
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; }; then
11794 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
11795 if test "x$ac_cv_lib_soname_Xrender" = "x"
11796 then
11797 ac_cv_lib_soname_Xrender="libXrender.so"
11798 fi
11799else
11800 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011801sed 's/^/| /' conftest.$ac_ext >&5
11802
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011803ac_cv_lib_soname_Xrender="libXrender.so"
11804fi
11805rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11806 LIBS=$ac_get_soname_save_LIBS
11807fi
11808echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
11809echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
11810if test "x$ac_cv_lib_soname_Xrender" != xNONE
11811then
11812cat >>confdefs.h <<_ACEOF
11813#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
11814_ACEOF
11815fi
11816
11817echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
11818echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
11819if test "${ac_cv_lib_soname_freetype+set}" = set; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11821else
11822 ac_get_soname_save_LIBS=$LIBS
11823LIBS="-lfreetype $X_LIBS $LIBS"
11824 cat >conftest.$ac_ext <<_ACEOF
11825#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011826/* confdefs.h. */
11827_ACEOF
11828cat confdefs.h >>conftest.$ac_ext
11829cat >>conftest.$ac_ext <<_ACEOF
11830/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011831
11832/* Override any gcc2 internal prototype to avoid an error. */
11833#ifdef __cplusplus
11834extern "C"
11835#endif
11836/* We use char because int might match the return type of a gcc2
11837 builtin and then its argument prototype would still apply. */
11838char FT_Init_FreeType ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011839int
11840main ()
11841{
11842FT_Init_FreeType ();
11843 ;
11844 return 0;
11845}
11846_ACEOF
11847rm -f conftest.$ac_objext conftest$ac_exeext
11848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11849 (eval $ac_link) 2>&5
11850 ac_status=$?
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } &&
11853 { ac_try='test -s conftest$ac_exeext'
11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11856 ac_status=$?
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; }; then
11859 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
11860 if test "x$ac_cv_lib_soname_freetype" = "x"
11861 then
11862 ac_cv_lib_soname_freetype="libfreetype.so"
11863 fi
11864else
11865 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011866sed 's/^/| /' conftest.$ac_ext >&5
11867
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011868ac_cv_lib_soname_freetype="libfreetype.so"
11869fi
11870rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11871 LIBS=$ac_get_soname_save_LIBS
11872fi
11873echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
11874echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
11875if test "x$ac_cv_lib_soname_freetype" != xNONE
11876then
11877cat >>confdefs.h <<_ACEOF
11878#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
11879_ACEOF
11880fi
Marcus Meissnerf061f762002-11-12 02:22:24 +000011881
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000011882echo "$as_me:$LINENO: checking for -lGL soname" >&5
11883echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
11884if test "${ac_cv_lib_soname_GL+set}" = set; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11886else
11887 ac_get_soname_save_LIBS=$LIBS
11888LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
11889 cat >conftest.$ac_ext <<_ACEOF
11890#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011891/* confdefs.h. */
11892_ACEOF
11893cat confdefs.h >>conftest.$ac_ext
11894cat >>conftest.$ac_ext <<_ACEOF
11895/* end confdefs.h. */
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000011896
11897/* Override any gcc2 internal prototype to avoid an error. */
11898#ifdef __cplusplus
11899extern "C"
11900#endif
11901/* We use char because int might match the return type of a gcc2
11902 builtin and then its argument prototype would still apply. */
11903char glXQueryExtension ();
11904int
11905main ()
11906{
11907glXQueryExtension ();
11908 ;
11909 return 0;
11910}
11911_ACEOF
11912rm -f conftest.$ac_objext conftest$ac_exeext
11913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11914 (eval $ac_link) 2>&5
11915 ac_status=$?
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -s conftest$ac_exeext'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; }; then
11924 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
11925 if test "x$ac_cv_lib_soname_GL" = "x"
11926 then
11927 ac_cv_lib_soname_GL="libGL.so"
11928 fi
11929else
11930 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011931sed 's/^/| /' conftest.$ac_ext >&5
11932
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000011933ac_cv_lib_soname_GL="libGL.so"
11934fi
11935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11936 LIBS=$ac_get_soname_save_LIBS
11937fi
11938echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
11939echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
11940if test "x$ac_cv_lib_soname_GL" != xNONE
11941then
11942cat >>confdefs.h <<_ACEOF
11943#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
11944_ACEOF
11945fi
11946
Marcus Meissnerf061f762002-11-12 02:22:24 +000011947echo "$as_me:$LINENO: checking for -lcups soname" >&5
11948echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
11949if test "${ac_cv_lib_soname_cups+set}" = set; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11951else
11952 ac_get_soname_save_LIBS=$LIBS
11953LIBS="-lcups $LIBS"
11954 cat >conftest.$ac_ext <<_ACEOF
11955#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011956/* confdefs.h. */
11957_ACEOF
11958cat confdefs.h >>conftest.$ac_ext
11959cat >>conftest.$ac_ext <<_ACEOF
11960/* end confdefs.h. */
Marcus Meissnerf061f762002-11-12 02:22:24 +000011961
11962/* Override any gcc2 internal prototype to avoid an error. */
11963#ifdef __cplusplus
11964extern "C"
11965#endif
11966/* We use char because int might match the return type of a gcc2
11967 builtin and then its argument prototype would still apply. */
11968char cupsGetDefault ();
11969int
11970main ()
11971{
11972cupsGetDefault ();
11973 ;
11974 return 0;
11975}
11976_ACEOF
11977rm -f conftest.$ac_objext conftest$ac_exeext
11978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11979 (eval $ac_link) 2>&5
11980 ac_status=$?
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
11983 { ac_try='test -s conftest$ac_exeext'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
11989 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
11990 if test "x$ac_cv_lib_soname_cups" = "x"
11991 then
11992 ac_cv_lib_soname_cups="libcups.so"
11993 fi
11994else
11995 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011996sed 's/^/| /' conftest.$ac_ext >&5
11997
Marcus Meissnerf061f762002-11-12 02:22:24 +000011998ac_cv_lib_soname_cups="libcups.so"
11999fi
12000rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12001 LIBS=$ac_get_soname_save_LIBS
12002fi
12003echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
12004echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
12005if test "x$ac_cv_lib_soname_cups" != xNONE
12006then
12007cat >>confdefs.h <<_ACEOF
12008#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12009_ACEOF
12010fi
Chris Morgan4691b182002-12-13 02:26:18 +000012011
12012echo "$as_me:$LINENO: checking for -ljack soname" >&5
12013echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
12014if test "${ac_cv_lib_soname_jack+set}" = set; then
12015 echo $ECHO_N "(cached) $ECHO_C" >&6
12016else
12017 ac_get_soname_save_LIBS=$LIBS
12018LIBS="-ljack $LIBS"
12019 cat >conftest.$ac_ext <<_ACEOF
12020#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012021/* confdefs.h. */
12022_ACEOF
12023cat confdefs.h >>conftest.$ac_ext
12024cat >>conftest.$ac_ext <<_ACEOF
12025/* end confdefs.h. */
Chris Morgan4691b182002-12-13 02:26:18 +000012026
12027/* Override any gcc2 internal prototype to avoid an error. */
12028#ifdef __cplusplus
12029extern "C"
12030#endif
12031/* We use char because int might match the return type of a gcc2
12032 builtin and then its argument prototype would still apply. */
12033char jack_client_new ();
12034int
12035main ()
12036{
12037jack_client_new ();
12038 ;
12039 return 0;
12040}
12041_ACEOF
12042rm -f conftest.$ac_objext conftest$ac_exeext
12043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12044 (eval $ac_link) 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); } &&
12048 { ac_try='test -s conftest$ac_exeext'
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; }; then
12054 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12055 if test "x$ac_cv_lib_soname_jack" = "x"
12056 then
12057 ac_cv_lib_soname_jack="libjack.so"
12058 fi
12059else
12060 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012061sed 's/^/| /' conftest.$ac_ext >&5
12062
Chris Morgan4691b182002-12-13 02:26:18 +000012063ac_cv_lib_soname_jack="libjack.so"
12064fi
12065rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12066 LIBS=$ac_get_soname_save_LIBS
12067fi
12068echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
12069echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
12070if test "x$ac_cv_lib_soname_jack" != xNONE
12071then
12072cat >>confdefs.h <<_ACEOF
12073#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
12074_ACEOF
12075fi
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012076fi
12077
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012078
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000012079
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012080wine_cv_libc_reentrant=no
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012081echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012082echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
12083if test "${wine_cv_libc_r___errno_location+set}" = set; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000012085else
12086 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012087 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000012088else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012089 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012090#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012091/* confdefs.h. */
12092_ACEOF
12093cat confdefs.h >>conftest.$ac_ext
12094cat >>conftest.$ac_ext <<_ACEOF
12095/* end confdefs.h. */
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000012096int myerrno = 0;
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000012097int *__errno_location(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000012098main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012099_ACEOF
12100rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012102 (eval $ac_link) 2>&5
12103 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012107 (eval $ac_try) 2>&5
12108 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012110 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000012111 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000012112else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012113 echo "$as_me: program exited with status $ac_status" >&5
12114echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012115sed 's/^/| /' conftest.$ac_ext >&5
12116
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012117( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012118wine_cv_libc_r___errno_location=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000012119fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012120rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000012121fi
Ulrich Weigand715a55e1999-04-18 13:19:56 +000012122fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012123echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012124echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012125if test "$wine_cv_libc_r___errno_location" = "yes"; then
12126 wine_cv_libc_reentrant=__errno_location
12127else
12128 echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012129echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
12130if test "${wine_cv_libc_r___error+set}" = set; then
12131 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +000012132else
12133 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012134 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +000012135else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012136 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012137#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012138/* confdefs.h. */
12139_ACEOF
12140cat confdefs.h >>conftest.$ac_ext
12141cat >>conftest.$ac_ext <<_ACEOF
12142/* end confdefs.h. */
Marcus Meissnerc2606381999-04-11 15:20:29 +000012143int myerrno = 0;
Marcus Meissnerc2606381999-04-11 15:20:29 +000012144int *__error(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000012145main(){close(333); close(333); exit(!myerrno);}
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 Julliard598412e2001-01-17 20:22:22 +000012158 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +000012159else
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 +000012165wine_cv_libc_r___error=no
Marcus Meissnerc2606381999-04-11 15:20:29 +000012166fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012167rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissnerc2606381999-04-11 15:20:29 +000012168fi
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000012169fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012170echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012171echo "${ECHO_T}$wine_cv_libc_r___error" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012172if test "$wine_cv_libc_r___error" = "yes"; then
12173 wine_cv_libc_reentrant=__error
12174else
12175 echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012176echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
12177if test "${wine_cv_libc_r____errno+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +000012179else
12180 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012181 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +000012182else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012183 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012184#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012185/* confdefs.h. */
12186_ACEOF
12187cat confdefs.h >>conftest.$ac_ext
12188cat >>conftest.$ac_ext <<_ACEOF
12189/* end confdefs.h. */
Ulrich Weigand715a55e1999-04-18 13:19:56 +000012190int myerrno = 0;
Ulrich Weigand715a55e1999-04-18 13:19:56 +000012191int *___errno(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000012192main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012193_ACEOF
12194rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012196 (eval $ac_link) 2>&5
12197 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012201 (eval $ac_try) 2>&5
12202 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012204 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000012205 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +000012206else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012207 echo "$as_me: program exited with status $ac_status" >&5
12208echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012209sed 's/^/| /' conftest.$ac_ext >&5
12210
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012211( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012212wine_cv_libc_r____errno=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +000012213fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012214rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +000012215fi
Ulrich Weigand715a55e1999-04-18 13:19:56 +000012216fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012217echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012218echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012219if test "$wine_cv_libc_r____errno" = "yes"; then
12220 wine_cv_libc_reentrant=___errno
12221else
12222 echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012223echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
12224if test "${wine_cv_libc_r___thr_errno+set}" = set; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
Ron Recorde977d6c1999-09-05 12:32:05 +000012226else
12227 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012228 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +000012229else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012230 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012231#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012232/* confdefs.h. */
12233_ACEOF
12234cat confdefs.h >>conftest.$ac_ext
12235cat >>conftest.$ac_ext <<_ACEOF
12236/* end confdefs.h. */
Ron Recorde977d6c1999-09-05 12:32:05 +000012237int myerrno = 0;
Ron Recorde977d6c1999-09-05 12:32:05 +000012238int *__thr_errno(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000012239main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012240_ACEOF
12241rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012243 (eval $ac_link) 2>&5
12244 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012248 (eval $ac_try) 2>&5
12249 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012251 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000012252 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +000012253else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012254 echo "$as_me: program exited with status $ac_status" >&5
12255echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012256sed 's/^/| /' conftest.$ac_ext >&5
12257
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012258( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012259wine_cv_libc_r___thr_errno=no
Ron Recorde977d6c1999-09-05 12:32:05 +000012260fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012261rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Ron Recorde977d6c1999-09-05 12:32:05 +000012262fi
Ron Recorde977d6c1999-09-05 12:32:05 +000012263fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012264echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012265echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012266if test "$wine_cv_libc_r___thr_errno" = "yes"; then
12267 wine_cv_libc_reentrant=__thr_errno
12268else
12269 echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012270echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
12271if test "${wine_cv_libc_r___errno+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
Bang Jun-Young33dff342001-05-07 18:21:10 +000012273else
12274 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012275 wine_cv_libc_r___errno=yes
Bang Jun-Young33dff342001-05-07 18:21:10 +000012276else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012277 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012278#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012279/* confdefs.h. */
12280_ACEOF
12281cat confdefs.h >>conftest.$ac_ext
12282cat >>conftest.$ac_ext <<_ACEOF
12283/* end confdefs.h. */
Bang Jun-Young33dff342001-05-07 18:21:10 +000012284int myerrno = 0;
Bang Jun-Young33dff342001-05-07 18:21:10 +000012285int *__errno(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000012286main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012287_ACEOF
12288rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012290 (eval $ac_link) 2>&5
12291 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012295 (eval $ac_try) 2>&5
12296 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012298 (exit $ac_status); }; }; then
Bang Jun-Young33dff342001-05-07 18:21:10 +000012299 wine_cv_libc_r___errno=yes
12300else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012301 echo "$as_me: program exited with status $ac_status" >&5
12302echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012303sed 's/^/| /' conftest.$ac_ext >&5
12304
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012305( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012306wine_cv_libc_r___errno=no
Bang Jun-Young33dff342001-05-07 18:21:10 +000012307fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012308rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bang Jun-Young33dff342001-05-07 18:21:10 +000012309fi
Bang Jun-Young33dff342001-05-07 18:21:10 +000012310fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012311echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012312echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012313if test "$wine_cv_libc_r___errno" = "yes"; then
12314 wine_cv_libc_reentrant=__errno
12315fi
12316
12317
12318fi
12319
12320fi
12321
12322fi
12323
Bang Jun-Young33dff342001-05-07 18:21:10 +000012324fi
12325
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012326
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012327if test "$wine_cv_libc_reentrant" != "no"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000012328then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012329
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012330cat >>confdefs.h <<_ACEOF
Alexandre Julliard598412e2001-01-17 20:22:22 +000012331#define ERRNO_LOCATION $wine_cv_libc_reentrant
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012332_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000012333
12334fi
12335
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012336
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000012337if test "$have_x" = "yes"
Patrik Stridvall24110281999-02-04 10:09:54 +000012338then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012339echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012340echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
12341if test "${wine_cv_x_reentrant+set}" = set; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000012343else
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000012344 libX11_check=none
12345 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
12346 if test -r $dir/libX11.so; then
12347 libX11_check="-D $dir/libX11.so"
12348 break
12349 fi
12350 if test -r $dir/libX11.a; then
12351 libX11_check="$dir/libX11.a"
12352 break
12353 fi
12354 done
12355 if test "$libX11_check" != "none"; then
12356 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
12357 then
12358 wine_cv_x_reentrant=yes
12359 else
12360 wine_cv_x_reentrant=no
12361 fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000012362 else
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000012363 wine_cv_x_reentrant=unknown
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012364 fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000012365fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012366echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012367echo "${ECHO_T}$wine_cv_x_reentrant" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +000012368fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012369
12370
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012371# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12372# for constant arguments. Useless!
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012373echo "$as_me:$LINENO: checking for working alloca.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012374echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12375if test "${ac_cv_working_alloca_h+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012377else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012378 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012379#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012380/* confdefs.h. */
12381_ACEOF
12382cat confdefs.h >>conftest.$ac_ext
12383cat >>conftest.$ac_ext <<_ACEOF
12384/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012385#include <alloca.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012386int
12387main ()
12388{
12389char *p = (char *) alloca (2 * sizeof (int));
12390 ;
12391 return 0;
12392}
12393_ACEOF
12394rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012396 (eval $ac_link) 2>&5
12397 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012399 (exit $ac_status); } &&
12400 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012402 (eval $ac_try) 2>&5
12403 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012405 (exit $ac_status); }; }; then
12406 ac_cv_working_alloca_h=yes
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012407else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012408 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012409sed 's/^/| /' conftest.$ac_ext >&5
12410
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012411ac_cv_working_alloca_h=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012412fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012413rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012414fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012415echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012416echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12417if test $ac_cv_working_alloca_h = yes; then
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012418
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012419cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012420#define HAVE_ALLOCA_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012421_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012422
12423fi
12424
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012425echo "$as_me:$LINENO: checking for alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012426echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12427if test "${ac_cv_func_alloca_works+set}" = set; then
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012429else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012430 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012431#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012432/* confdefs.h. */
12433_ACEOF
12434cat confdefs.h >>conftest.$ac_ext
12435cat >>conftest.$ac_ext <<_ACEOF
12436/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012437#ifdef __GNUC__
12438# define alloca __builtin_alloca
12439#else
Eric Pouech18ad24a2000-01-16 22:16:33 +000012440# ifdef _MSC_VER
12441# include <malloc.h>
12442# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012443# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000012444# if HAVE_ALLOCA_H
12445# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012446# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000012447# ifdef _AIX
12448 #pragma alloca
12449# else
12450# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012451char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +000012452# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012453# endif
12454# endif
12455# endif
12456#endif
12457
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012458int
12459main ()
12460{
12461char *p = (char *) alloca (1);
12462 ;
12463 return 0;
12464}
12465_ACEOF
12466rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012468 (eval $ac_link) 2>&5
12469 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012471 (exit $ac_status); } &&
12472 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012474 (eval $ac_try) 2>&5
12475 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012477 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012478 ac_cv_func_alloca_works=yes
12479else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012480 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012481sed 's/^/| /' conftest.$ac_ext >&5
12482
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012483ac_cv_func_alloca_works=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012484fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012485rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012486fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012487echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012488echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012489
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012490if test $ac_cv_func_alloca_works = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012491
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012492cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012493#define HAVE_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012494_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012495
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012496else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012497 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012498# that cause trouble. Some versions do not even contain alloca or
12499# contain a buggy version. If you still want to use their alloca,
12500# use ar to extract alloca.o from them instead of compiling alloca.c.
12501
12502ALLOCA=alloca.$ac_objext
12503
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012504cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012505#define C_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012506_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012507
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012508
12509echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012510echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12511if test "${ac_cv_os_cray+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012513else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012514 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012515#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012516/* confdefs.h. */
12517_ACEOF
12518cat confdefs.h >>conftest.$ac_ext
12519cat >>conftest.$ac_ext <<_ACEOF
12520/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012521#if defined(CRAY) && ! defined(CRAY2)
12522webecray
12523#else
12524wenotbecray
12525#endif
12526
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012527_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012529 $EGREP "webecray" >/dev/null 2>&1; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012530 ac_cv_os_cray=yes
12531else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012532 ac_cv_os_cray=no
12533fi
12534rm -f conftest*
12535
12536fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012537echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012538echo "${ECHO_T}$ac_cv_os_cray" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012539if test $ac_cv_os_cray = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012540 for ac_func in _getb67 GETB67 getb67; do
12541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012542echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012543echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12544if eval "test \"\${$as_ac_var+set}\" = set"; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012546else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012547 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012548#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012549/* confdefs.h. */
12550_ACEOF
12551cat confdefs.h >>conftest.$ac_ext
12552cat >>conftest.$ac_ext <<_ACEOF
12553/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012554/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012555 which can conflict with char $ac_func (); below.
12556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12557 <limits.h> exists even on freestanding compilers. */
12558#ifdef __STDC__
12559# include <limits.h>
12560#else
12561# include <assert.h>
12562#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012563/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012564#ifdef __cplusplus
12565extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012566{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012567#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +000012568/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012569 builtin and then its argument prototype would still apply. */
12570char $ac_func ();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012571/* The GNU C library defines this for functions which it implements
12572 to always fail with ENOSYS. Some functions are actually named
12573 something starting with __ and the normal name is an alias. */
12574#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12575choke me
12576#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012577char (*f) () = $ac_func;
12578#endif
12579#ifdef __cplusplus
12580}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012581#endif
12582
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012583int
12584main ()
12585{
12586return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012587 ;
12588 return 0;
12589}
12590_ACEOF
12591rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012593 (eval $ac_link) 2>&5
12594 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012596 (exit $ac_status); } &&
12597 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012599 (eval $ac_try) 2>&5
12600 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012602 (exit $ac_status); }; }; then
12603 eval "$as_ac_var=yes"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012604else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012605 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012606sed 's/^/| /' conftest.$ac_ext >&5
12607
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012608eval "$as_ac_var=no"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012609fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012610rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012611fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012613echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12614if test `eval echo '${'$as_ac_var'}'` = yes; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012615
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012616cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012617#define CRAY_STACKSEG_END $ac_func
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012618_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012619
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012620 break
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012621fi
12622
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012623 done
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012624fi
12625
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012626echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012627echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12628if test "${ac_cv_c_stack_direction+set}" = set; then
12629 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012630else
12631 if test "$cross_compiling" = yes; then
12632 ac_cv_c_stack_direction=0
12633else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012634 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012635#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012636/* confdefs.h. */
12637_ACEOF
12638cat confdefs.h >>conftest.$ac_ext
12639cat >>conftest.$ac_ext <<_ACEOF
12640/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012641int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012642find_stack_direction ()
12643{
12644 static char *addr = 0;
12645 auto char dummy;
12646 if (addr == 0)
12647 {
12648 addr = &dummy;
12649 return find_stack_direction ();
12650 }
12651 else
12652 return (&dummy > addr) ? 1 : -1;
12653}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012654
12655int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012656main ()
12657{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012658 exit (find_stack_direction () < 0);
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012659}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012660_ACEOF
12661rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012663 (eval $ac_link) 2>&5
12664 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012668 (eval $ac_try) 2>&5
12669 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012671 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012672 ac_cv_c_stack_direction=1
12673else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012674 echo "$as_me: program exited with status $ac_status" >&5
12675echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012676sed 's/^/| /' conftest.$ac_ext >&5
12677
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012678( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012679ac_cv_c_stack_direction=-1
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012680fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012681rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012682fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012683fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012684echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012685echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012686
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012687cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012688#define STACK_DIRECTION $ac_cv_c_stack_direction
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012689_ACEOF
12690
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012691
12692fi
12693
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
Steven Edwardsb9627c12002-05-05 21:03:44 +000012736
12737
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012738
12739
Alexandre Julliard142dab82002-07-01 18:17:30 +000012740
Patrik Stridvall6caeb722002-11-25 21:12:26 +000012741
12742
12743
12744
12745
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000012746
Brad Campbell5ac2a532002-12-13 23:30:54 +000012747
12748
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012749for ac_func in \
12750 _lwp_create \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012751 _pclose \
12752 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012753 _snprintf \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012754 _stricmp \
12755 _strnicmp \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012756 chsize \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012757 clone \
Andreas Mohra7ca2ba2001-01-12 23:07:11 +000012758 ecvt \
Brad Campbell5ac2a532002-12-13 23:30:54 +000012759 fcvt \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012760 finite \
12761 fpclass \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012762 ftruncate \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000012763 ftruncate64 \
Brad Campbell5ac2a532002-12-13 23:30:54 +000012764 gcvt \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012765 getnetbyaddr \
12766 getnetbyname \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000012767 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012768 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012769 getprotobyname \
12770 getprotobynumber \
Alexandre Julliard142dab82002-07-01 18:17:30 +000012771 getpwuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012772 getservbyport \
12773 getsockopt \
12774 inet_network \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000012775 lseek64 \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000012776 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012777 memmove \
Marcus Meissner786d2492002-07-29 23:55:39 +000012778 mkstemp \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000012779 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012780 pclose \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012781 popen \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012782 pread \
Patrik Stridvall6caeb722002-11-25 21:12:26 +000012783 pthread_getspecific \
12784 pthread_key_create \
12785 pthread_mutex_lock \
12786 pthread_mutex_unlock \
12787 pthread_setspecific \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000012788 pwrite \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012789 rfork \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012790 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012791 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012792 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012793 sigaltstack \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012794 snprintf \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012795 statfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012796 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012797 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012798 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012799 tcgetattr \
12800 timegm \
12801 usleep \
12802 vfscanf \
12803 wait4 \
12804 waitpid \
12805
12806do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012807as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012808echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012809echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12810if eval "test \"\${$as_ac_var+set}\" = set"; then
12811 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012812else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012813 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012814#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012815/* confdefs.h. */
12816_ACEOF
12817cat confdefs.h >>conftest.$ac_ext
12818cat >>conftest.$ac_ext <<_ACEOF
12819/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012820/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012821 which can conflict with char $ac_func (); below.
12822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12823 <limits.h> exists even on freestanding compilers. */
12824#ifdef __STDC__
12825# include <limits.h>
12826#else
12827# include <assert.h>
12828#endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012829/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012830#ifdef __cplusplus
12831extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012832{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012833#endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012834/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012835 builtin and then its argument prototype would still apply. */
12836char $ac_func ();
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012837/* The GNU C library defines this for functions which it implements
12838 to always fail with ENOSYS. Some functions are actually named
12839 something starting with __ and the normal name is an alias. */
12840#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12841choke me
12842#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012843char (*f) () = $ac_func;
12844#endif
12845#ifdef __cplusplus
12846}
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012847#endif
12848
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012849int
12850main ()
12851{
12852return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012853 ;
12854 return 0;
12855}
12856_ACEOF
12857rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012859 (eval $ac_link) 2>&5
12860 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012862 (exit $ac_status); } &&
12863 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012865 (eval $ac_try) 2>&5
12866 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012868 (exit $ac_status); }; }; then
12869 eval "$as_ac_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012870else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012871 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012872sed 's/^/| /' conftest.$ac_ext >&5
12873
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012874eval "$as_ac_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012875fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012876rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012877fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012879echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12880if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012881 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012882#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012883_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000012884
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012885fi
12886done
12887
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
Laurent Pinchart0314a652002-05-01 22:01:30 +000012949
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000012950
12951
12952
Alexandre Julliard127ec922002-05-07 01:51:30 +000012953
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000012954
Patrik Stridvall57bf4502002-08-26 21:53:24 +000012955
12956
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000012957
Chris Morgan4691b182002-12-13 02:26:18 +000012958
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012959for ac_header in \
Patrik Stridvall96336321999-10-24 22:13:47 +000012960 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012961 arpa/nameser.h \
Marcus Meissnerf061f762002-11-12 02:22:24 +000012962 cups/cups.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012963 direct.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012964 elf.h \
12965 float.h \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000012966 getopt.h \
Ulrich Weigand2e8e2332000-12-27 18:49:08 +000012967 ieeefp.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012968 io.h \
Chris Morgan4691b182002-12-13 02:26:18 +000012969 jack/jack.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012970 libio.h \
Hidenori Takeshima01f78aa2000-07-09 12:19:09 +000012971 libutil.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000012972 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012973 linux/cdrom.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000012974 linux/hdreg.h \
Marcus Meissnerc9b3b2e2000-12-12 00:38:58 +000012975 linux/input.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +000012976 linux/joystick.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000012977 linux/major.h \
Laurent Pinchart0314a652002-05-01 22:01:30 +000012978 linux/param.h \
Lawson Whitney533e7ee2002-02-19 18:41:56 +000012979 linux/serial.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012980 linux/ucdrom.h \
Hidenori Takeshima5d1a6382000-11-26 04:00:53 +000012981 netdb.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012982 netinet/in.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +000012983 netinet/in_systm.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000012984 netinet/tcp.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +000012985 pty.h \
Steven Edwardsff4525c2002-06-24 23:00:25 +000012986 pwd.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000012987 sched.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000012988 scsi/sg.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000012989 socket.h \
Bang Jun-Youngeda758e2001-12-14 22:47:19 +000012990 stdint.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012991 strings.h \
12992 sys/cdio.h \
Howard Abrams13277481999-07-10 13:16:29 +000012993 sys/errno.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012994 sys/file.h \
12995 sys/filio.h \
Michal Pasternak60983992002-03-29 18:04:43 +000012996 sys/inttypes.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000012997 sys/ioctl.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000012998 sys/ipc.h \
Eric Pouech624cbd72001-08-10 22:29:21 +000012999 sys/link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013000 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +000013001 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013002 sys/modem.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013003 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013004 sys/param.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000013005 sys/poll.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +000013006 sys/ptrace.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +000013007 sys/reg.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013008 sys/shm.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000013009 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013010 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013011 sys/sockio.h \
13012 sys/statfs.h \
13013 sys/strtio.h \
13014 sys/syscall.h \
Alexandre Julliard127ec922002-05-07 01:51:30 +000013015 sys/sysctl.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013016 sys/time.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000013017 sys/times.h \
Steven Edwards45e56812002-10-31 03:41:56 +000013018 sys/uio.h \
13019 sys/un.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013020 sys/v86.h \
13021 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013022 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013023 sys/vm86.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000013024 sys/wait.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013025 syscall.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000013026 termios.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013027 unistd.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000013028 utime.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013029
Alexandre Julliard02e90081998-01-04 17:49:09 +000013030do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013031as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013032if eval "test \"\${$as_ac_Header+set}\" = set"; then
13033 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13035if eval "test \"\${$as_ac_Header+set}\" = set"; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013037fi
13038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13039echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliard02e90081998-01-04 17:49:09 +000013040else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013041 # Is the header compilable?
13042echo "$as_me:$LINENO: checking $ac_header usability" >&5
13043echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13044cat >conftest.$ac_ext <<_ACEOF
13045#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013046/* confdefs.h. */
13047_ACEOF
13048cat confdefs.h >>conftest.$ac_ext
13049cat >>conftest.$ac_ext <<_ACEOF
13050/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013051$ac_includes_default
13052#include <$ac_header>
13053_ACEOF
13054rm -f conftest.$ac_objext
13055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13056 (eval $ac_compile) 2>&5
13057 ac_status=$?
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try='test -s conftest.$ac_objext'
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; }; then
13066 ac_header_compiler=yes
13067else
13068 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013069sed 's/^/| /' conftest.$ac_ext >&5
13070
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013071ac_header_compiler=no
13072fi
13073rm -f conftest.$ac_objext conftest.$ac_ext
13074echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13075echo "${ECHO_T}$ac_header_compiler" >&6
13076
13077# Is the header present?
13078echo "$as_me:$LINENO: checking $ac_header presence" >&5
13079echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13080cat >conftest.$ac_ext <<_ACEOF
13081#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013082/* confdefs.h. */
13083_ACEOF
13084cat confdefs.h >>conftest.$ac_ext
13085cat >>conftest.$ac_ext <<_ACEOF
13086/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013087#include <$ac_header>
13088_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13091 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013092 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013093 rm -f conftest.er1
13094 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013096 (exit $ac_status); } >/dev/null; then
13097 if test -s conftest.err; then
13098 ac_cpp_err=$ac_c_preproc_warn_flag
13099 else
13100 ac_cpp_err=
13101 fi
Alexandre Julliard02e90081998-01-04 17:49:09 +000013102else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013103 ac_cpp_err=yes
13104fi
13105if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013106 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013107else
13108 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013109sed 's/^/| /' conftest.$ac_ext >&5
13110
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013111 ac_header_preproc=no
Alexandre Julliard02e90081998-01-04 17:49:09 +000013112fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013113rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013114echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13115echo "${ECHO_T}$ac_header_preproc" >&6
13116
13117# So? What about this header?
13118case $ac_header_compiler:$ac_header_preproc in
13119 yes:no )
13120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13121echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013123echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13124 (
13125 cat <<\_ASBOX
13126## ------------------------------------ ##
13127## Report this to bug-autoconf@gnu.org. ##
13128## ------------------------------------ ##
13129_ASBOX
13130 ) |
13131 sed "s/^/$as_me: WARNING: /" >&2
13132 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013133 no:yes )
13134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13135echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13137echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013139echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13140 (
13141 cat <<\_ASBOX
13142## ------------------------------------ ##
13143## Report this to bug-autoconf@gnu.org. ##
13144## ------------------------------------ ##
13145_ASBOX
13146 ) |
13147 sed "s/^/$as_me: WARNING: /" >&2
13148 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013149esac
13150echo "$as_me:$LINENO: checking for $ac_header" >&5
13151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13152if eval "test \"\${$as_ac_Header+set}\" = set"; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13154else
13155 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliard02e90081998-01-04 17:49:09 +000013156fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013158echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013159
Alexandre Julliard02e90081998-01-04 17:49:09 +000013160fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013161if test `eval echo '${'$as_ac_Header'}'` = yes; then
13162 cat >>confdefs.h <<_ACEOF
13163#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13164_ACEOF
13165
13166fi
13167
Alexandre Julliard02e90081998-01-04 17:49:09 +000013168done
13169
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013170echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013171echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13172if test "${ac_cv_header_stat_broken+set}" = set; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013174else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013175 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013176#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013177/* confdefs.h. */
13178_ACEOF
13179cat confdefs.h >>conftest.$ac_ext
13180cat >>conftest.$ac_ext <<_ACEOF
13181/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013182#include <sys/types.h>
13183#include <sys/stat.h>
13184
13185#if defined(S_ISBLK) && defined(S_IFDIR)
13186# if S_ISBLK (S_IFDIR)
13187You lose.
13188# endif
13189#endif
13190
13191#if defined(S_ISBLK) && defined(S_IFCHR)
13192# if S_ISBLK (S_IFCHR)
13193You lose.
13194# endif
13195#endif
13196
13197#if defined(S_ISLNK) && defined(S_IFREG)
13198# if S_ISLNK (S_IFREG)
13199You lose.
13200# endif
13201#endif
13202
13203#if defined(S_ISSOCK) && defined(S_IFREG)
13204# if S_ISSOCK (S_IFREG)
13205You lose.
13206# endif
13207#endif
13208
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013209_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013211 $EGREP "You lose" >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013212 ac_cv_header_stat_broken=yes
13213else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013214 ac_cv_header_stat_broken=no
13215fi
13216rm -f conftest*
13217
13218fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013219echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013220echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013221if test $ac_cv_header_stat_broken = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013222
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013223cat >>confdefs.h <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013224#define STAT_MACROS_BROKEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013225_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013226
13227fi
13228
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013229
13230
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000013231
13232
13233for ac_header in sys/mount.h sys/user.h
13234do
13235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13236echo "$as_me:$LINENO: checking for $ac_header" >&5
13237echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13238if eval "test \"\${$as_ac_Header+set}\" = set"; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13240else
13241 cat >conftest.$ac_ext <<_ACEOF
13242#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013243/* confdefs.h. */
13244_ACEOF
13245cat confdefs.h >>conftest.$ac_ext
13246cat >>conftest.$ac_ext <<_ACEOF
13247/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000013248#include <sys/types.h>
13249 #if HAVE_SYS_PARAM_H
13250 # include <sys/param.h>
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000013251 #endif
13252
13253#include <$ac_header>
13254_ACEOF
13255rm -f conftest.$ac_objext
13256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13257 (eval $ac_compile) 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } &&
13261 { ac_try='test -s conftest.$ac_objext'
13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13264 ac_status=$?
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13267 eval "$as_ac_Header=yes"
13268else
13269 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013270sed 's/^/| /' conftest.$ac_ext >&5
13271
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000013272eval "$as_ac_Header=no"
13273fi
13274rm -f conftest.$ac_objext conftest.$ac_ext
13275fi
13276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13278if test `eval echo '${'$as_ac_Header'}'` = yes; then
13279 cat >>confdefs.h <<_ACEOF
13280#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13281_ACEOF
13282
13283fi
13284
13285done
13286
13287
13288
Gregg Mattinson044b5c42002-07-19 03:16:51 +000013289for ac_header in net/if.h
13290do
13291as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13292echo "$as_me:$LINENO: checking for $ac_header" >&5
13293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13294if eval "test \"\${$as_ac_Header+set}\" = set"; then
13295 echo $ECHO_N "(cached) $ECHO_C" >&6
13296else
13297 cat >conftest.$ac_ext <<_ACEOF
13298#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013299/* confdefs.h. */
13300_ACEOF
13301cat confdefs.h >>conftest.$ac_ext
13302cat >>conftest.$ac_ext <<_ACEOF
13303/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000013304#include <sys/types.h>
Gerald Pfeifer87c369d2002-07-23 02:02:02 +000013305 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000013306 # include <sys/socket.h>
13307 #endif
13308
13309#include <$ac_header>
13310_ACEOF
13311rm -f conftest.$ac_objext
13312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13313 (eval $ac_compile) 2>&5
13314 ac_status=$?
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } &&
13317 { ac_try='test -s conftest.$ac_objext'
13318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319 (eval $ac_try) 2>&5
13320 ac_status=$?
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; }; then
13323 eval "$as_ac_Header=yes"
13324else
13325 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013326sed 's/^/| /' conftest.$ac_ext >&5
13327
Gregg Mattinson044b5c42002-07-19 03:16:51 +000013328eval "$as_ac_Header=no"
13329fi
13330rm -f conftest.$ac_objext conftest.$ac_ext
13331fi
13332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13333echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13334if test `eval echo '${'$as_ac_Header'}'` = yes; then
13335 cat >>confdefs.h <<_ACEOF
13336#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13337_ACEOF
13338
13339fi
13340
13341done
13342
13343
13344
13345for ac_header in netinet/ip.h
13346do
13347as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13348echo "$as_me:$LINENO: checking for $ac_header" >&5
13349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13350if eval "test \"\${$as_ac_Header+set}\" = set"; then
13351 echo $ECHO_N "(cached) $ECHO_C" >&6
13352else
13353 cat >conftest.$ac_ext <<_ACEOF
13354#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013355/* confdefs.h. */
13356_ACEOF
13357cat confdefs.h >>conftest.$ac_ext
13358cat >>conftest.$ac_ext <<_ACEOF
13359/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000013360#include <sys/types.h>
13361 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000013362 # include <sys/socket.h>
13363 #endif
13364 #if HAVE_NETINET_IN_SYSTM_H
13365 # include <netinet/in_systm.h>
13366 #endif
13367
13368#include <$ac_header>
13369_ACEOF
13370rm -f conftest.$ac_objext
13371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13372 (eval $ac_compile) 2>&5
13373 ac_status=$?
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); } &&
13376 { ac_try='test -s conftest.$ac_objext'
13377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13378 (eval $ac_try) 2>&5
13379 ac_status=$?
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }; }; then
13382 eval "$as_ac_Header=yes"
13383else
13384 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013385sed 's/^/| /' conftest.$ac_ext >&5
13386
Gregg Mattinson044b5c42002-07-19 03:16:51 +000013387eval "$as_ac_Header=no"
13388fi
13389rm -f conftest.$ac_objext conftest.$ac_ext
13390fi
13391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13393if test `eval echo '${'$as_ac_Header'}'` = yes; then
13394 cat >>confdefs.h <<_ACEOF
13395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13396_ACEOF
13397
13398fi
13399
13400done
13401
13402
13403
13404for ac_header in resolv.h
13405do
13406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13407echo "$as_me:$LINENO: checking for $ac_header" >&5
13408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13409if eval "test \"\${$as_ac_Header+set}\" = set"; then
13410 echo $ECHO_N "(cached) $ECHO_C" >&6
13411else
13412 cat >conftest.$ac_ext <<_ACEOF
13413#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013414/* confdefs.h. */
13415_ACEOF
13416cat confdefs.h >>conftest.$ac_ext
13417cat >>conftest.$ac_ext <<_ACEOF
13418/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000013419#include <sys/types.h>
13420 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000013421 # include <sys/socket.h>
13422 #endif
13423
13424#include <$ac_header>
13425_ACEOF
13426rm -f conftest.$ac_objext
13427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13428 (eval $ac_compile) 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); } &&
13432 { ac_try='test -s conftest.$ac_objext'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
13438 eval "$as_ac_Header=yes"
13439else
13440 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013441sed 's/^/| /' conftest.$ac_ext >&5
13442
Gregg Mattinson044b5c42002-07-19 03:16:51 +000013443eval "$as_ac_Header=no"
13444fi
13445rm -f conftest.$ac_objext conftest.$ac_ext
13446fi
13447echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13448echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13449if test `eval echo '${'$as_ac_Header'}'` = yes; then
13450 cat >>confdefs.h <<_ACEOF
13451#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13452_ACEOF
13453
13454fi
13455
13456done
13457
13458
13459
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000013460for ac_header in ucontext.h
13461do
13462as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13463echo "$as_me:$LINENO: checking for $ac_header" >&5
13464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13465if eval "test \"\${$as_ac_Header+set}\" = set"; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13467else
13468 cat >conftest.$ac_ext <<_ACEOF
13469#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013470/* confdefs.h. */
13471_ACEOF
13472cat confdefs.h >>conftest.$ac_ext
13473cat >>conftest.$ac_ext <<_ACEOF
13474/* end confdefs.h. */
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000013475#include <signal.h>
13476
13477#include <$ac_header>
13478_ACEOF
13479rm -f conftest.$ac_objext
13480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13481 (eval $ac_compile) 2>&5
13482 ac_status=$?
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } &&
13485 { ac_try='test -s conftest.$ac_objext'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
13491 eval "$as_ac_Header=yes"
13492else
13493 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013494sed 's/^/| /' conftest.$ac_ext >&5
13495
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000013496eval "$as_ac_Header=no"
13497fi
13498rm -f conftest.$ac_objext conftest.$ac_ext
13499fi
13500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13501echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13502if test `eval echo '${'$as_ac_Header'}'` = yes; then
13503 cat >>confdefs.h <<_ACEOF
13504#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13505_ACEOF
13506
13507fi
13508
13509done
13510
13511
13512
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013513echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013514echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13515if test "${ac_cv_c_const+set}" = set; then
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
13517else
13518 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013519#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013520/* confdefs.h. */
13521_ACEOF
13522cat confdefs.h >>conftest.$ac_ext
13523cat >>conftest.$ac_ext <<_ACEOF
13524/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013525
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013526int
13527main ()
13528{
13529/* FIXME: Include the comments suggested by Paul. */
13530#ifndef __cplusplus
13531 /* Ultrix mips cc rejects this. */
13532 typedef int charset[2];
13533 const charset x;
13534 /* SunOS 4.1.1 cc rejects this. */
13535 char const *const *ccp;
13536 char **p;
13537 /* NEC SVR4.0.2 mips cc rejects this. */
13538 struct point {int x, y;};
13539 static struct point const zero = {0,0};
13540 /* AIX XL C 1.02.0.0 rejects this.
13541 It does not let you subtract one const X* pointer from another in
13542 an arm of an if-expression whose if-part is not a constant
13543 expression */
13544 const char *g = "string";
13545 ccp = &g + (g ? g-g : 0);
13546 /* HPUX 7.0 cc rejects these. */
13547 ++ccp;
13548 p = (char**) ccp;
13549 ccp = (char const *const *) p;
13550 { /* SCO 3.2v4 cc rejects this. */
13551 char *t;
13552 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013553
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013554 *t++ = 0;
13555 }
13556 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13557 int x[] = {25, 17};
13558 const int *foo = &x[0];
13559 ++foo;
13560 }
13561 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13562 typedef const int *iptr;
13563 iptr p = 0;
13564 ++p;
13565 }
13566 { /* AIX XL C 1.02.0.0 rejects this saying
13567 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13568 struct s { int j; const int *ap[3]; };
13569 struct s *b; b->j = 5;
13570 }
13571 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13572 const int foo = 10;
13573 }
13574#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013575
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013576 ;
13577 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013578}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013579_ACEOF
13580rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013582 (eval $ac_compile) 2>&5
13583 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013585 (exit $ac_status); } &&
13586 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013588 (eval $ac_try) 2>&5
13589 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013591 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013592 ac_cv_c_const=yes
13593else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013594 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013595sed 's/^/| /' conftest.$ac_ext >&5
13596
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013597ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013598fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013599rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013600fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013601echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013602echo "${ECHO_T}$ac_cv_c_const" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013603if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013604
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013605cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013606#define const
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013607_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013608
13609fi
13610
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013611echo "$as_me:$LINENO: checking for inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013612echo $ECHO_N "checking for inline... $ECHO_C" >&6
13613if test "${ac_cv_c_inline+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013615else
13616 ac_cv_c_inline=no
13617for ac_kw in inline __inline__ __inline; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013618 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013619#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013620/* confdefs.h. */
13621_ACEOF
13622cat confdefs.h >>conftest.$ac_ext
13623cat >>conftest.$ac_ext <<_ACEOF
13624/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013625#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013626typedef int foo_t;
13627static $ac_kw foo_t static_foo () {return 0; }
13628$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013629#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013630
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013631_ACEOF
13632rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013634 (eval $ac_compile) 2>&5
13635 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013637 (exit $ac_status); } &&
13638 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013640 (eval $ac_try) 2>&5
13641 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013643 (exit $ac_status); }; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013644 ac_cv_c_inline=$ac_kw; break
13645else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013646 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013647sed 's/^/| /' conftest.$ac_ext >&5
13648
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013649fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013650rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013651done
13652
13653fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013654echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013655echo "${ECHO_T}$ac_cv_c_inline" >&6
13656case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013657 inline | yes) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013658 no)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013659cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013660#define inline
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013661_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013662 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013663 *) cat >>confdefs.h <<_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013664#define inline $ac_cv_c_inline
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013665_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013666 ;;
13667esac
13668
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013669echo "$as_me:$LINENO: checking for mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013670echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13671if test "${ac_cv_type_mode_t+set}" = set; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13673else
13674 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013675#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013676/* confdefs.h. */
13677_ACEOF
13678cat confdefs.h >>conftest.$ac_ext
13679cat >>conftest.$ac_ext <<_ACEOF
13680/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013681$ac_includes_default
13682int
13683main ()
13684{
13685if ((mode_t *) 0)
13686 return 0;
13687if (sizeof (mode_t))
13688 return 0;
13689 ;
13690 return 0;
13691}
13692_ACEOF
13693rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013695 (eval $ac_compile) 2>&5
13696 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013698 (exit $ac_status); } &&
13699 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013701 (eval $ac_try) 2>&5
13702 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013704 (exit $ac_status); }; }; then
13705 ac_cv_type_mode_t=yes
13706else
13707 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013708sed 's/^/| /' conftest.$ac_ext >&5
13709
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013710ac_cv_type_mode_t=no
13711fi
13712rm -f conftest.$ac_objext conftest.$ac_ext
13713fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013714echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013715echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13716if test $ac_cv_type_mode_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013717
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013718cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013719#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013720_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013721
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013722
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013723fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013724echo "$as_me:$LINENO: checking for off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013725echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13726if test "${ac_cv_type_off_t+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13728else
13729 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013730#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013731/* confdefs.h. */
13732_ACEOF
13733cat confdefs.h >>conftest.$ac_ext
13734cat >>conftest.$ac_ext <<_ACEOF
13735/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013736$ac_includes_default
13737int
13738main ()
13739{
13740if ((off_t *) 0)
13741 return 0;
13742if (sizeof (off_t))
13743 return 0;
13744 ;
13745 return 0;
13746}
13747_ACEOF
13748rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013750 (eval $ac_compile) 2>&5
13751 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013753 (exit $ac_status); } &&
13754 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013756 (eval $ac_try) 2>&5
13757 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013759 (exit $ac_status); }; }; then
13760 ac_cv_type_off_t=yes
13761else
13762 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013763sed 's/^/| /' conftest.$ac_ext >&5
13764
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013765ac_cv_type_off_t=no
13766fi
13767rm -f conftest.$ac_objext conftest.$ac_ext
13768fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013769echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013770echo "${ECHO_T}$ac_cv_type_off_t" >&6
13771if test $ac_cv_type_off_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013772
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013773cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013774#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013775_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013776
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013777
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013778fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013779echo "$as_me:$LINENO: checking for pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013780echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13781if test "${ac_cv_type_pid_t+set}" = set; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13783else
13784 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013785#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013786/* confdefs.h. */
13787_ACEOF
13788cat confdefs.h >>conftest.$ac_ext
13789cat >>conftest.$ac_ext <<_ACEOF
13790/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013791$ac_includes_default
13792int
13793main ()
13794{
13795if ((pid_t *) 0)
13796 return 0;
13797if (sizeof (pid_t))
13798 return 0;
13799 ;
13800 return 0;
13801}
13802_ACEOF
13803rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013805 (eval $ac_compile) 2>&5
13806 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013808 (exit $ac_status); } &&
13809 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013811 (eval $ac_try) 2>&5
13812 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013814 (exit $ac_status); }; }; then
13815 ac_cv_type_pid_t=yes
13816else
13817 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013818sed 's/^/| /' conftest.$ac_ext >&5
13819
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013820ac_cv_type_pid_t=no
13821fi
13822rm -f conftest.$ac_objext conftest.$ac_ext
13823fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013824echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013825echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13826if test $ac_cv_type_pid_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013827
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013828cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013829#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013830_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013831
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013832
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013833fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013834echo "$as_me:$LINENO: checking for size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013835echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13836if test "${ac_cv_type_size_t+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13838else
13839 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013840#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013841/* confdefs.h. */
13842_ACEOF
13843cat confdefs.h >>conftest.$ac_ext
13844cat >>conftest.$ac_ext <<_ACEOF
13845/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013846$ac_includes_default
13847int
13848main ()
13849{
13850if ((size_t *) 0)
13851 return 0;
13852if (sizeof (size_t))
13853 return 0;
13854 ;
13855 return 0;
13856}
13857_ACEOF
13858rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013860 (eval $ac_compile) 2>&5
13861 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013863 (exit $ac_status); } &&
13864 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013866 (eval $ac_try) 2>&5
13867 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013869 (exit $ac_status); }; }; then
13870 ac_cv_type_size_t=yes
13871else
13872 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013873sed 's/^/| /' conftest.$ac_ext >&5
13874
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013875ac_cv_type_size_t=no
13876fi
13877rm -f conftest.$ac_objext conftest.$ac_ext
13878fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013879echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013880echo "${ECHO_T}$ac_cv_type_size_t" >&6
13881if test $ac_cv_type_size_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013882
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013883cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013884#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013885_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013886
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013887
13888fi
13889echo "$as_me:$LINENO: checking for ssize_t" >&5
13890echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13891if test "${ac_cv_type_ssize_t+set}" = set; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13893else
13894 cat >conftest.$ac_ext <<_ACEOF
13895#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013896/* confdefs.h. */
13897_ACEOF
13898cat confdefs.h >>conftest.$ac_ext
13899cat >>conftest.$ac_ext <<_ACEOF
13900/* end confdefs.h. */
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013901$ac_includes_default
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013902int
13903main ()
13904{
13905if ((ssize_t *) 0)
13906 return 0;
13907if (sizeof (ssize_t))
13908 return 0;
13909 ;
13910 return 0;
13911}
13912_ACEOF
13913rm -f conftest.$ac_objext
13914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13915 (eval $ac_compile) 2>&5
13916 ac_status=$?
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } &&
13919 { ac_try='test -s conftest.$ac_objext'
13920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13921 (eval $ac_try) 2>&5
13922 ac_status=$?
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); }; }; then
13925 ac_cv_type_ssize_t=yes
13926else
13927 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013928sed 's/^/| /' conftest.$ac_ext >&5
13929
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013930ac_cv_type_ssize_t=no
13931fi
13932rm -f conftest.$ac_objext conftest.$ac_ext
13933fi
13934echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13935echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13936if test $ac_cv_type_ssize_t = yes; then
13937
13938cat >>confdefs.h <<_ACEOF
13939#define HAVE_SSIZE_T 1
13940_ACEOF
13941
13942
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013943fi
13944
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013945echo "$as_me:$LINENO: checking for long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013946echo $ECHO_N "checking for long long... $ECHO_C" >&6
13947if test "${ac_cv_type_long_long+set}" = set; then
13948 echo $ECHO_N "(cached) $ECHO_C" >&6
13949else
13950 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013951#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013952/* confdefs.h. */
13953_ACEOF
13954cat confdefs.h >>conftest.$ac_ext
13955cat >>conftest.$ac_ext <<_ACEOF
13956/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013957$ac_includes_default
13958int
13959main ()
13960{
13961if ((long long *) 0)
13962 return 0;
13963if (sizeof (long long))
13964 return 0;
13965 ;
13966 return 0;
13967}
13968_ACEOF
13969rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013971 (eval $ac_compile) 2>&5
13972 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013974 (exit $ac_status); } &&
13975 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013977 (eval $ac_try) 2>&5
13978 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013980 (exit $ac_status); }; }; then
13981 ac_cv_type_long_long=yes
13982else
13983 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013984sed 's/^/| /' conftest.$ac_ext >&5
13985
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013986ac_cv_type_long_long=no
13987fi
13988rm -f conftest.$ac_objext conftest.$ac_ext
13989fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013990echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013991echo "${ECHO_T}$ac_cv_type_long_long" >&6
13992
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013993echo "$as_me:$LINENO: checking size of long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013994echo $ECHO_N "checking size of long long... $ECHO_C" >&6
13995if test "${ac_cv_sizeof_long_long+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13997else
13998 if test "$ac_cv_type_long_long" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013999 # The cast to unsigned long works around a bug in the HP C Compiler
14000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14002 # This bug is HP SR number 8606223364.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014003 if test "$cross_compiling" = yes; then
14004 # Depending upon the size, compute the lo and hi bounds.
14005cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014006#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014007/* confdefs.h. */
14008_ACEOF
14009cat confdefs.h >>conftest.$ac_ext
14010cat >>conftest.$ac_ext <<_ACEOF
14011/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014012$ac_includes_default
14013int
14014main ()
14015{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014016static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
14017test_array [0] = 0
14018
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014019 ;
14020 return 0;
14021}
14022_ACEOF
14023rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014025 (eval $ac_compile) 2>&5
14026 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014028 (exit $ac_status); } &&
14029 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014031 (eval $ac_try) 2>&5
14032 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014034 (exit $ac_status); }; }; then
14035 ac_lo=0 ac_mid=0
14036 while :; do
14037 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014038#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014039/* confdefs.h. */
14040_ACEOF
14041cat confdefs.h >>conftest.$ac_ext
14042cat >>conftest.$ac_ext <<_ACEOF
14043/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014044$ac_includes_default
14045int
14046main ()
14047{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014048static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14049test_array [0] = 0
14050
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014051 ;
14052 return 0;
14053}
14054_ACEOF
14055rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014057 (eval $ac_compile) 2>&5
14058 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014060 (exit $ac_status); } &&
14061 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014063 (eval $ac_try) 2>&5
14064 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014066 (exit $ac_status); }; }; then
14067 ac_hi=$ac_mid; break
14068else
14069 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014070sed 's/^/| /' conftest.$ac_ext >&5
14071
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014072ac_lo=`expr $ac_mid + 1`
14073 if test $ac_lo -le $ac_mid; then
14074 ac_lo= ac_hi=
14075 break
14076 fi
14077 ac_mid=`expr 2 '*' $ac_mid + 1`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014078fi
14079rm -f conftest.$ac_objext conftest.$ac_ext
14080 done
14081else
14082 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014083sed 's/^/| /' conftest.$ac_ext >&5
14084
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014085cat >conftest.$ac_ext <<_ACEOF
14086#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014087/* confdefs.h. */
14088_ACEOF
14089cat confdefs.h >>conftest.$ac_ext
14090cat >>conftest.$ac_ext <<_ACEOF
14091/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014092$ac_includes_default
14093int
14094main ()
14095{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014096static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
14097test_array [0] = 0
14098
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014099 ;
14100 return 0;
14101}
14102_ACEOF
14103rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014105 (eval $ac_compile) 2>&5
14106 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014108 (exit $ac_status); } &&
14109 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014111 (eval $ac_try) 2>&5
14112 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; }; then
14115 ac_hi=-1 ac_mid=-1
14116 while :; do
14117 cat >conftest.$ac_ext <<_ACEOF
14118#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014119/* confdefs.h. */
14120_ACEOF
14121cat confdefs.h >>conftest.$ac_ext
14122cat >>conftest.$ac_ext <<_ACEOF
14123/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014124$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014125int
14126main ()
14127{
14128static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
14129test_array [0] = 0
14130
14131 ;
14132 return 0;
14133}
14134_ACEOF
14135rm -f conftest.$ac_objext
14136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14137 (eval $ac_compile) 2>&5
14138 ac_status=$?
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } &&
14141 { ac_try='test -s conftest.$ac_objext'
14142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143 (eval $ac_try) 2>&5
14144 ac_status=$?
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014146 (exit $ac_status); }; }; then
14147 ac_lo=$ac_mid; break
14148else
14149 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014150sed 's/^/| /' conftest.$ac_ext >&5
14151
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014152ac_hi=`expr '(' $ac_mid ')' - 1`
14153 if test $ac_mid -le $ac_hi; then
14154 ac_lo= ac_hi=
14155 break
14156 fi
14157 ac_mid=`expr 2 '*' $ac_mid`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014158fi
14159rm -f conftest.$ac_objext conftest.$ac_ext
14160 done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014161else
14162 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014163sed 's/^/| /' conftest.$ac_ext >&5
14164
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014165ac_lo= ac_hi=
14166fi
14167rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014168fi
14169rm -f conftest.$ac_objext conftest.$ac_ext
14170# Binary search between lo and hi bounds.
14171while test "x$ac_lo" != "x$ac_hi"; do
14172 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14173 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014174#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014175/* confdefs.h. */
14176_ACEOF
14177cat confdefs.h >>conftest.$ac_ext
14178cat >>conftest.$ac_ext <<_ACEOF
14179/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014180$ac_includes_default
14181int
14182main ()
14183{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014184static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14185test_array [0] = 0
14186
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014187 ;
14188 return 0;
14189}
14190_ACEOF
14191rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014193 (eval $ac_compile) 2>&5
14194 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014196 (exit $ac_status); } &&
14197 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014199 (eval $ac_try) 2>&5
14200 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014202 (exit $ac_status); }; }; then
14203 ac_hi=$ac_mid
14204else
14205 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014206sed 's/^/| /' conftest.$ac_ext >&5
14207
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014208ac_lo=`expr '(' $ac_mid ')' + 1`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014209fi
14210rm -f conftest.$ac_objext conftest.$ac_ext
14211done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014212case $ac_lo in
14213?*) ac_cv_sizeof_long_long=$ac_lo;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014214'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14215See \`config.log' for more details." >&5
14216echo "$as_me: error: cannot compute sizeof (long long), 77
14217See \`config.log' for more details." >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014218 { (exit 1); exit 1; }; } ;;
14219esac
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014220else
14221 if test "$cross_compiling" = yes; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014222 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14223See \`config.log' for more details." >&5
14224echo "$as_me: error: cannot run test program while cross compiling
14225See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014226 { (exit 1); exit 1; }; }
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014227else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014228 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014229#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014230/* confdefs.h. */
14231_ACEOF
14232cat confdefs.h >>conftest.$ac_ext
14233cat >>conftest.$ac_ext <<_ACEOF
14234/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014235$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014236long longval () { return (long) (sizeof (long long)); }
14237unsigned long ulongval () { return (long) (sizeof (long long)); }
14238#include <stdio.h>
14239#include <stdlib.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014240int
14241main ()
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014242{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014243
14244 FILE *f = fopen ("conftest.val", "w");
14245 if (! f)
14246 exit (1);
14247 if (((long) (sizeof (long long))) < 0)
14248 {
14249 long i = longval ();
14250 if (i != ((long) (sizeof (long long))))
14251 exit (1);
14252 fprintf (f, "%ld\n", i);
14253 }
14254 else
14255 {
14256 unsigned long i = ulongval ();
14257 if (i != ((long) (sizeof (long long))))
14258 exit (1);
14259 fprintf (f, "%lu\n", i);
14260 }
14261 exit (ferror (f) || fclose (f) != 0);
14262
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014263 ;
14264 return 0;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014265}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014266_ACEOF
14267rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014269 (eval $ac_link) 2>&5
14270 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014274 (eval $ac_try) 2>&5
14275 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014277 (exit $ac_status); }; }; then
14278 ac_cv_sizeof_long_long=`cat conftest.val`
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014279else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014280 echo "$as_me: program exited with status $ac_status" >&5
14281echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014282sed 's/^/| /' conftest.$ac_ext >&5
14283
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014284( exit $ac_status )
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014285{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14286See \`config.log' for more details." >&5
14287echo "$as_me: error: cannot compute sizeof (long long), 77
14288See \`config.log' for more details." >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014289 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014290fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014291rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014292fi
14293fi
14294rm -f conftest.val
14295else
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014296 ac_cv_sizeof_long_long=0
14297fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014298fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014299echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014300echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014301cat >>confdefs.h <<_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014302#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014303_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014304
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014305
14306
14307echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014308echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
14309if test "${wine_cv_linux_input_h+set}" = set; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014311else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014312 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014313#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014314/* confdefs.h. */
14315_ACEOF
14316cat confdefs.h >>conftest.$ac_ext
14317cat >>conftest.$ac_ext <<_ACEOF
14318/* end confdefs.h. */
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014319
14320 #include <linux/input.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014321
14322int
14323main ()
14324{
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014325
14326 int foo = EVIOCGBIT(EV_ABS,42);
14327 int bar = BTN_PINKIE;
14328 int fortytwo = 42;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014329
14330 ;
14331 return 0;
14332}
14333_ACEOF
14334rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014336 (eval $ac_compile) 2>&5
14337 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014339 (exit $ac_status); } &&
14340 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014342 (eval $ac_try) 2>&5
14343 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014345 (exit $ac_status); }; }; then
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014346 wine_cv_linux_input_h=yes
14347else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014348 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014349sed 's/^/| /' conftest.$ac_ext >&5
14350
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014351wine_cv_linux_input_h=no
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014352fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014353rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014354
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014355fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014356echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014357echo "${ECHO_T}$wine_cv_linux_input_h" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014358 if test "$wine_cv_linux_input_h" = "yes"
14359 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014360
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014361cat >>confdefs.h <<\_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014362#define HAVE_CORRECT_LINUXINPUT_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014363_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014364
14365 fi
14366
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014367
14368echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014369echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
14370if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
14371 echo $ECHO_N "(cached) $ECHO_C" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000014372else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014373 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014374#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014375/* confdefs.h. */
14376_ACEOF
14377cat confdefs.h >>conftest.$ac_ext
14378cat >>conftest.$ac_ext <<_ACEOF
14379/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000014380
14381#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014382
14383int
14384main ()
14385{
Rein Klazesff7a61f2000-09-24 19:41:57 +000014386
14387 char *name=NULL;
14388 struct hostent he;
14389 struct hostent *result;
14390 char *buf=NULL;
14391 int bufsize=0;
14392 int res,errnr;
14393 char *addr=NULL;
14394 int addrlen=0;
14395 int addrtype=0;
14396 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14397 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014398
14399 ;
14400 return 0;
14401}
14402_ACEOF
14403rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014405 (eval $ac_compile) 2>&5
14406 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014408 (exit $ac_status); } &&
14409 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014411 (eval $ac_try) 2>&5
14412 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014414 (exit $ac_status); }; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +000014415 wine_cv_linux_gethostbyname_r_6=yes
14416else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014417 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014418sed 's/^/| /' conftest.$ac_ext >&5
14419
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014420wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000014421
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014422fi
14423rm -f conftest.$ac_objext conftest.$ac_ext
14424
14425fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014426echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014427echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000014428 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14429 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014430
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014431cat >>confdefs.h <<\_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000014432#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014433_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000014434
14435 fi
14436
Marcus Meissner028e9a11999-08-04 15:07:56 +000014437if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014438then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014439 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014440echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
14441if test "${wine_cv_linux_joystick_22_api+set}" = set; then
14442 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014443else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014444 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014445#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014446/* confdefs.h. */
14447_ACEOF
14448cat confdefs.h >>conftest.$ac_ext
14449cat >>conftest.$ac_ext <<_ACEOF
14450/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014451
Marcus Meissner028e9a11999-08-04 15:07:56 +000014452 #include <sys/ioctl.h>
14453 #include <linux/joystick.h>
14454
14455 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000014456 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14457 #error "no 2.2 header"
14458 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014459
14460int
14461main ()
14462{
Marcus Meissner028e9a11999-08-04 15:07:56 +000014463/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014464 ;
14465 return 0;
14466}
14467_ACEOF
14468rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014470 (eval $ac_compile) 2>&5
14471 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014473 (exit $ac_status); } &&
14474 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014476 (eval $ac_try) 2>&5
14477 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014479 (exit $ac_status); }; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +000014480 wine_cv_linux_joystick_22_api=yes
14481else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014482 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014483sed 's/^/| /' conftest.$ac_ext >&5
14484
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014485wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000014486fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014487rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000014488
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014489fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014490echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014491echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
Rein Klazes87d224a2000-04-24 17:33:49 +000014492 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000014493 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014494
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014495cat >>confdefs.h <<\_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000014496#define HAVE_LINUX_22_JOYSTICK_API 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014497_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000014498
14499 fi
14500fi
14501
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014502
Marcus Meissner028e9a11999-08-04 15:07:56 +000014503if test "$ac_cv_header_sys_vfs_h" = "yes"
14504then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014505 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014506echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
14507if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner028e9a11999-08-04 15:07:56 +000014509else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014510 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014511#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014512/* confdefs.h. */
14513_ACEOF
14514cat confdefs.h >>conftest.$ac_ext
14515cat >>conftest.$ac_ext <<_ACEOF
14516/* end confdefs.h. */
Marcus Meissner028e9a11999-08-04 15:07:56 +000014517
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014518 #include <sys/types.h>
14519 #ifdef HAVE_SYS_PARAM_H
14520 # include <sys/param.h>
14521 #endif
14522 #include <sys/vfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014523
14524int
14525main ()
14526{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014527
14528 struct statfs stfs;
14529
14530 memset(&stfs,0,sizeof(stfs));
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014531
14532 ;
14533 return 0;
14534}
14535_ACEOF
14536rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014538 (eval $ac_compile) 2>&5
14539 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014541 (exit $ac_status); } &&
14542 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014544 (eval $ac_try) 2>&5
14545 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014547 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014548 wine_cv_sys_vfs_has_statfs=yes
14549else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014550 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014551sed 's/^/| /' conftest.$ac_ext >&5
14552
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014553wine_cv_sys_vfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014554
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014555fi
14556rm -f conftest.$ac_objext conftest.$ac_ext
14557
14558fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014559echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014560echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014561 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
14562 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014563
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014564cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014565#define STATFS_DEFINED_BY_SYS_VFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014566_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014567
14568 fi
14569fi
14570
14571if test "$ac_cv_header_sys_statfs_h" = "yes"
14572then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014573 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014574echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
14575if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
14576 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014577else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014578 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014579#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014580/* confdefs.h. */
14581_ACEOF
14582cat confdefs.h >>conftest.$ac_ext
14583cat >>conftest.$ac_ext <<_ACEOF
14584/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014585
14586 #include <sys/types.h>
14587 #ifdef HAVE_SYS_PARAM_H
14588 # include <sys/param.h>
14589 #endif
14590 #include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014591
14592int
14593main ()
14594{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014595
14596 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014597
14598 ;
14599 return 0;
14600}
14601_ACEOF
14602rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014604 (eval $ac_compile) 2>&5
14605 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014607 (exit $ac_status); } &&
14608 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014610 (eval $ac_try) 2>&5
14611 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014613 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014614 wine_cv_sys_statfs_has_statfs=yes
14615else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014616 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014617sed 's/^/| /' conftest.$ac_ext >&5
14618
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014619wine_cv_sys_statfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014620
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014621fi
14622rm -f conftest.$ac_objext conftest.$ac_ext
14623
14624fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014625echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014626echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014627 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
14628 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014629
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014630cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014631#define STATFS_DEFINED_BY_SYS_STATFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014632_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014633
14634 fi
14635fi
14636
14637if test "$ac_cv_header_sys_mount_h" = "yes"
14638then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014639 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014640echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
14641if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014643else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014644 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014645#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014646/* confdefs.h. */
14647_ACEOF
14648cat confdefs.h >>conftest.$ac_ext
14649cat >>conftest.$ac_ext <<_ACEOF
14650/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014651
14652 #include <sys/types.h>
14653 #ifdef HAVE_SYS_PARAM_H
14654 # include <sys/param.h>
14655 #endif
14656 #include <sys/mount.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014657
14658int
14659main ()
14660{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014661
14662 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014663
14664 ;
14665 return 0;
14666}
14667_ACEOF
14668rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014670 (eval $ac_compile) 2>&5
14671 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014673 (exit $ac_status); } &&
14674 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014676 (eval $ac_try) 2>&5
14677 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014679 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014680 wine_cv_sys_mount_has_statfs=yes
14681else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014682 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014683sed 's/^/| /' conftest.$ac_ext >&5
14684
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014685wine_cv_sys_mount_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014686
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014687fi
14688rm -f conftest.$ac_objext conftest.$ac_ext
14689
14690fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014691echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014692echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014693 if test "$wine_cv_sys_mount_has_statfs" = "yes"
14694 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014695
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014696cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014697#define STATFS_DEFINED_BY_SYS_MOUNT 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014698_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014699
14700 fi
14701fi
14702
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014703
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014704echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014705echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
14706if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
14707 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014708else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014709 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014710#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014711/* confdefs.h. */
14712_ACEOF
14713cat confdefs.h >>conftest.$ac_ext
14714cat >>conftest.$ac_ext <<_ACEOF
14715/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014716#include <sys/types.h>
14717#ifdef HAVE_SYS_PARAM_H
14718# include <sys/param.h>
14719#endif
14720#ifdef STATFS_DEFINED_BY_SYS_MOUNT
14721# include <sys/mount.h>
14722#else
14723# ifdef STATFS_DEFINED_BY_SYS_VFS
14724# include <sys/vfs.h>
14725# else
14726# ifdef STATFS_DEFINED_BY_SYS_STATFS
14727# include <sys/statfs.h>
14728# endif
14729# endif
14730#endif
14731int
14732main ()
14733{
14734struct statfs s; s.f_bfree = 0
14735 ;
14736 return 0;
14737}
14738_ACEOF
14739rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014741 (eval $ac_compile) 2>&5
14742 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014744 (exit $ac_status); } &&
14745 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014747 (eval $ac_try) 2>&5
14748 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014750 (exit $ac_status); }; }; then
14751 ac_cv_c_statfs_f_bfree="yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014752else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014753 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014754sed 's/^/| /' conftest.$ac_ext >&5
14755
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014756ac_cv_c_statfs_f_bfree="no"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014757fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014758rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014759fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014760echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014761echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
14762if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014763
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014764cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014765#define STATFS_HAS_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014766_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014767
14768fi
14769
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014770
14771
14772echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014773echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
14774if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
14775 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014776else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014777 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014778#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014779/* confdefs.h. */
14780_ACEOF
14781cat confdefs.h >>conftest.$ac_ext
14782cat >>conftest.$ac_ext <<_ACEOF
14783/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014784#include <sys/types.h>
14785#ifdef HAVE_SYS_PARAM_H
14786# include <sys/param.h>
14787#endif
14788#ifdef STATFS_DEFINED_BY_SYS_MOUNT
14789# include <sys/mount.h>
14790#else
14791# ifdef STATFS_DEFINED_BY_SYS_VFS
14792# include <sys/vfs.h>
14793# else
14794# ifdef STATFS_DEFINED_BY_SYS_STATFS
14795# include <sys/statfs.h>
14796# endif
14797# endif
14798#endif
14799int
14800main ()
14801{
14802struct statfs s; s.f_bavail = 0
14803 ;
14804 return 0;
14805}
14806_ACEOF
14807rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014809 (eval $ac_compile) 2>&5
14810 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014812 (exit $ac_status); } &&
14813 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014815 (eval $ac_try) 2>&5
14816 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014818 (exit $ac_status); }; }; then
14819 ac_cv_c_statfs_f_bavail="yes"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014820else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014821 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014822sed 's/^/| /' conftest.$ac_ext >&5
14823
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014824ac_cv_c_statfs_f_bavail="no"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014825fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014826rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014827fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014828echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014829echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
14830if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014831
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014832cat >>confdefs.h <<\_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014833#define STATFS_HAS_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014834_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014835
14836fi
14837
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014838
14839
14840echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014841echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
14842if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
14843 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard829fe321998-07-26 14:27:39 +000014844else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014845 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014846#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014847/* confdefs.h. */
14848_ACEOF
14849cat confdefs.h >>conftest.$ac_ext
14850cat >>conftest.$ac_ext <<_ACEOF
14851/* end confdefs.h. */
Alexandre Julliard829fe321998-07-26 14:27:39 +000014852#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000014853#ifdef HAVE_SYS_SOCKET_H
14854# include <sys/socket.h>
14855#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014856int
14857main ()
14858{
14859struct msghdr s; s.msg_accrights = 0
14860 ;
14861 return 0;
14862}
14863_ACEOF
14864rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014866 (eval $ac_compile) 2>&5
14867 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014869 (exit $ac_status); } &&
14870 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014872 (eval $ac_try) 2>&5
14873 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014875 (exit $ac_status); }; }; then
14876 ac_cv_c_msghdr_msg_accrights="yes"
Alexandre Julliard829fe321998-07-26 14:27:39 +000014877else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014878 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014879sed 's/^/| /' conftest.$ac_ext >&5
14880
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014881ac_cv_c_msghdr_msg_accrights="no"
Alexandre Julliard829fe321998-07-26 14:27:39 +000014882fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014883rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard829fe321998-07-26 14:27:39 +000014884fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014885echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014886echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
14887if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
Alexandre Julliard829fe321998-07-26 14:27:39 +000014888
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014889cat >>confdefs.h <<\_ACEOF
Alexandre Julliard829fe321998-07-26 14:27:39 +000014890#define HAVE_MSGHDR_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014891_ACEOF
Alexandre Julliard829fe321998-07-26 14:27:39 +000014892
14893fi
14894
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014895
14896
14897echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014898echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
14899if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
14900 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014901else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014902 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014903#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014904/* confdefs.h. */
14905_ACEOF
14906cat confdefs.h >>conftest.$ac_ext
14907cat >>conftest.$ac_ext <<_ACEOF
14908/* end confdefs.h. */
Juergen Lock2d33ab92000-02-13 16:03:29 +000014909#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000014910#ifdef HAVE_SYS_SOCKET_H
14911# include <sys/socket.h>
14912#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014913int
14914main ()
14915{
14916struct sockaddr s; s.sa_len = 0
14917 ;
14918 return 0;
14919}
14920_ACEOF
14921rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014923 (eval $ac_compile) 2>&5
14924 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014926 (exit $ac_status); } &&
14927 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014929 (eval $ac_try) 2>&5
14930 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014932 (exit $ac_status); }; }; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000014933 ac_cv_c_sockaddr_sa_len="yes"
14934else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014935 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014936sed 's/^/| /' conftest.$ac_ext >&5
14937
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014938ac_cv_c_sockaddr_sa_len="no"
Patrik Stridvall09da9662001-07-08 22:30:50 +000014939fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014940rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall09da9662001-07-08 22:30:50 +000014941fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014942echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014943echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
14944if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000014945
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014946cat >>confdefs.h <<\_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000014947#define HAVE_SOCKADDR_SA_LEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014948_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000014949
14950fi
14951
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014952
14953
14954echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014955echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
14956if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
14957 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall09da9662001-07-08 22:30:50 +000014958else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014959 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014960#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014961/* confdefs.h. */
14962_ACEOF
14963cat confdefs.h >>conftest.$ac_ext
14964cat >>conftest.$ac_ext <<_ACEOF
14965/* end confdefs.h. */
Patrik Stridvall09da9662001-07-08 22:30:50 +000014966#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000014967#ifdef HAVE_SYS_SOCKET_H
14968# include <sys/socket.h>
14969#endif
14970#ifdef HAVE_SYS_UN_H
14971# include <sys/un.h>
14972#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014973int
14974main ()
14975{
14976struct sockaddr_un s; s.sun_len = 0
14977 ;
14978 return 0;
14979}
14980_ACEOF
14981rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014983 (eval $ac_compile) 2>&5
14984 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014986 (exit $ac_status); } &&
14987 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014989 (eval $ac_try) 2>&5
14990 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014992 (exit $ac_status); }; }; then
14993 ac_cv_c_sockaddr_un_sun_len="yes"
Juergen Lock2d33ab92000-02-13 16:03:29 +000014994else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014995 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014996sed 's/^/| /' conftest.$ac_ext >&5
14997
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014998ac_cv_c_sockaddr_un_sun_len="no"
Juergen Lock2d33ab92000-02-13 16:03:29 +000014999fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015000rm -f conftest.$ac_objext conftest.$ac_ext
Juergen Lock2d33ab92000-02-13 16:03:29 +000015001fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015002echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015003echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
15004if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
Juergen Lock2d33ab92000-02-13 16:03:29 +000015005
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015006cat >>confdefs.h <<\_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000015007#define HAVE_SOCKADDR_SUN_LEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015008_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000015009
15010fi
15011
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015012
15013
15014
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015015case $host_cpu in
Alexandre Julliard05783b52002-12-11 00:21:55 +000015016 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015017echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000015018if test "${ac_cv_cpp_def___i386__+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015019 echo $ECHO_N "(cached) $ECHO_C" >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000015020else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015021 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015022#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015023/* confdefs.h. */
15024_ACEOF
15025cat confdefs.h >>conftest.$ac_ext
15026cat >>conftest.$ac_ext <<_ACEOF
15027/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015028#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000015029yes
15030#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015031_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000015032if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015033 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000015034 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000015035else
Alexandre Julliard05783b52002-12-11 00:21:55 +000015036 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000015037fi
15038rm -f conftest*
15039
15040fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015041echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
15042echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
15043if test $ac_cv_cpp_def___i386__ = yes; then
15044 CFLAGS="$CFLAGS -D__i386__"
15045 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000015046fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015047 ;;
15048 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
Steven Edwards69b67862002-12-10 22:48:48 +000015049echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000015050if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
Steven Edwards69b67862002-12-10 22:48:48 +000015051 echo $ECHO_N "(cached) $ECHO_C" >&6
15052else
15053 cat >conftest.$ac_ext <<_ACEOF
15054#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015055/* confdefs.h. */
15056_ACEOF
15057cat confdefs.h >>conftest.$ac_ext
15058cat >>conftest.$ac_ext <<_ACEOF
15059/* end confdefs.h. */
Steven Edwards69b67862002-12-10 22:48:48 +000015060#ifndef __ALPHA__
15061yes
15062#endif
15063_ACEOF
15064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15065 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000015066 ac_cv_cpp_def___ALPHA__=yes
Steven Edwards69b67862002-12-10 22:48:48 +000015067else
Alexandre Julliard05783b52002-12-11 00:21:55 +000015068 ac_cv_cpp_def___ALPHA__=no
Steven Edwards69b67862002-12-10 22:48:48 +000015069fi
15070rm -f conftest*
15071
15072fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015073echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
15074echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
15075if test $ac_cv_cpp_def___ALPHA__ = yes; then
15076 CFLAGS="$CFLAGS -D__ALPHA__"
15077 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
Steven Edwards69b67862002-12-10 22:48:48 +000015078fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015079 ;;
15080 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015081echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000015082if test "${ac_cv_cpp_def___sparc__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015083 echo $ECHO_N "(cached) $ECHO_C" >&6
15084else
15085 cat >conftest.$ac_ext <<_ACEOF
15086#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015087/* confdefs.h. */
15088_ACEOF
15089cat confdefs.h >>conftest.$ac_ext
15090cat >>conftest.$ac_ext <<_ACEOF
15091/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015092#ifndef __sparc__
15093yes
15094#endif
15095_ACEOF
15096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015097 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000015098 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015099else
Alexandre Julliard05783b52002-12-11 00:21:55 +000015100 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015101fi
15102rm -f conftest*
15103
15104fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015105echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
15106echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
15107if test $ac_cv_cpp_def___sparc__ = yes; then
15108 CFLAGS="$CFLAGS -D__sparc__"
15109 LINTFLAGS="$LINTFLAGS -D__sparc__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015110fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015111 ;;
15112esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015113
15114case $host_vendor in
Alexandre Julliard05783b52002-12-11 00:21:55 +000015115 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015116echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000015117if test "${ac_cv_cpp_def___sun__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015118 echo $ECHO_N "(cached) $ECHO_C" >&6
15119else
15120 cat >conftest.$ac_ext <<_ACEOF
15121#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015122/* confdefs.h. */
15123_ACEOF
15124cat confdefs.h >>conftest.$ac_ext
15125cat >>conftest.$ac_ext <<_ACEOF
15126/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015127#ifndef __sun__
15128yes
15129#endif
15130_ACEOF
15131if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015132 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000015133 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015134else
Alexandre Julliard05783b52002-12-11 00:21:55 +000015135 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015136fi
15137rm -f conftest*
15138
15139fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015140echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
15141echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
15142if test $ac_cv_cpp_def___sun__ = yes; then
15143 CFLAGS="$CFLAGS -D__sun__"
15144 LINTFLAGS="$LINTFLAGS -D__sun__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015145fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015146 ;;
15147esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015148
15149
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015150
15151
15152
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015153 ac_config_commands="$ac_config_commands controls"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015154
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015155 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000015156
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015157 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000015158
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015159 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
Alexandre Julliard829fe321998-07-26 14:27:39 +000015160
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015161 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
François Gouget14259412001-11-06 20:57:11 +000015162
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015163 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
François Gouget14259412001-11-06 20:57:11 +000015164
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015165 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000015166
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015167 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015168
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015169 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015170
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015171 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015172
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015173 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000015174
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015175 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000015176
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015177 ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
Alexandre Julliard89118562002-03-27 21:13:40 +000015178
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015179 ac_config_commands="$ac_config_commands dlls/kernel/messages"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015180
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015181 ac_config_commands="$ac_config_commands dlls/user/dde"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015182
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015183 ac_config_commands="$ac_config_commands dlls/user/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015184
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015185 ac_config_commands="$ac_config_commands dlls/wineps/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015186
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015187 ac_config_commands="$ac_config_commands files"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015188
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015189 ac_config_commands="$ac_config_commands graphics"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015190
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015191 ac_config_commands="$ac_config_commands graphics/x11drv"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015192
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015193 ac_config_commands="$ac_config_commands if1632"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015194
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015195 ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015196
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015197 ac_config_commands="$ac_config_commands loader"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015198
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015199 ac_config_commands="$ac_config_commands loader/ne"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015200
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015201 ac_config_commands="$ac_config_commands memory"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015202
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015203 ac_config_commands="$ac_config_commands misc"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015204
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015205 ac_config_commands="$ac_config_commands msdos"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015206
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015207 ac_config_commands="$ac_config_commands objects"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015208
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015209 ac_config_commands="$ac_config_commands programs/regapi/tests"
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000015210
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015211 ac_config_commands="$ac_config_commands programs/regedit/tests"
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000015212
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015213 ac_config_commands="$ac_config_commands relay32"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015214
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015215 ac_config_commands="$ac_config_commands scheduler"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015216
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015217 ac_config_commands="$ac_config_commands win32"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015218
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015219 ac_config_commands="$ac_config_commands windows"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015220
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000015221
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000015222MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015223
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015224
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +000015225MAKE_DLL_RULES=dlls/Makedll.rules
15226
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015227
Alexandre Julliardedeee892002-08-09 01:22:40 +000015228MAKE_TEST_RULES=dlls/Maketest.rules
15229
15230
Alexandre Julliard626f4252000-11-10 23:35:20 +000015231MAKE_PROG_RULES=programs/Makeprog.rules
15232
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015233
Dmitry Timoshkov5a23a002003-01-02 19:34:14 +000015234 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/winejack/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile library/Makefile miscemu/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wpp/Makefile tools/wrc/Makefile unicode/Makefile"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015235
Alexandre Julliard626f4252000-11-10 23:35:20 +000015236
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015237cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015238# This file is a shell script that caches the results of configure
15239# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015240# scripts and configure runs, see configure's option --config-cache.
15241# It is not useful on other systems. If it contains results you don't
15242# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015243#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015244# config.status only pays attention to the cache file if you give it
15245# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015246#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015247# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015248# loading this file, other *unset* `ac_cv_foo' will be assigned the
15249# following values.
15250
15251_ACEOF
15252
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000015253# The following way of writing the cache mishandles newlines in values,
15254# but we know of no workaround that is simple, portable, and efficient.
15255# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015256# Ultrix sh set writes to stderr and can't be redirected directly,
15257# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015258{
15259 (set) 2>&1 |
15260 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15261 *ac_space=\ *)
15262 # `set' does not quote correctly, so add quotes (double-quote
15263 # substitution turns \\\\ into \\, and sed turns \\ into \).
15264 sed -n \
15265 "s/'/'\\\\''/g;
15266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15267 ;;
15268 *)
15269 # `set' quotes correctly as required by POSIX, so do not add quotes.
15270 sed -n \
15271 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15272 ;;
15273 esac;
15274} |
15275 sed '
15276 t clear
15277 : clear
15278 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15279 t end
15280 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15281 : end' >>confcache
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015282if diff $cache_file confcache >/dev/null 2>&1; then :; else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015283 if test -w $cache_file; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015284 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15285 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015286 else
15287 echo "not updating unwritable cache $cache_file"
15288 fi
15289fi
15290rm -f confcache
15291
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015292test "x$prefix" = xNONE && prefix=$ac_default_prefix
15293# Let make expand exec_prefix.
15294test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15295
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015296# VPATH may cause trouble with some makes, so we remove $(srcdir),
15297# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15298# trailing colons and then remove the whole line if VPATH becomes empty
15299# (actually we leave an empty line to preserve line numbers).
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015300if test "x$srcdir" = x.; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015301 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15302s/:*\$(srcdir):*/:/;
15303s/:*\${srcdir}:*/:/;
15304s/:*@srcdir@:*/:/;
15305s/^\([^=]*=[ ]*\):*/\1/;
15306s/:*$//;
15307s/^[^=]*=[ ]*$//;
15308}'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015309fi
15310
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015311DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015312
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015313ac_libobjs=
15314ac_ltlibobjs=
15315for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15316 # 1. Remove the extension, and $U if already installed.
15317 ac_i=`echo "$ac_i" |
15318 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15319 # 2. Add them.
15320 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15321 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15322done
15323LIBOBJS=$ac_libobjs
15324
15325LTLIBOBJS=$ac_ltlibobjs
15326
15327
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015328
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015329: ${CONFIG_STATUS=./config.status}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015330ac_clean_files_save=$ac_clean_files
15331ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015332{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015333echo "$as_me: creating $CONFIG_STATUS" >&6;}
15334cat >$CONFIG_STATUS <<_ACEOF
15335#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015336# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015337# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015338# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015339# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015340
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015341debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015342ac_cs_recheck=false
15343ac_cs_silent=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015344SHELL=\${CONFIG_SHELL-$SHELL}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015345_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015346
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015347cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015348## --------------------- ##
15349## M4sh Initialization. ##
15350## --------------------- ##
15351
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015352# Be Bourne compatible
15353if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15354 emulate sh
15355 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015356 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15357 # is contrary to our usage. Disable this feature.
15358 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015359elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15360 set -o posix
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000015361fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015362
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015363# Support unset when possible.
15364if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15365 as_unset=unset
15366else
15367 as_unset=false
15368fi
15369
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015370
15371# Work around bugs in pre-3.0 UWIN ksh.
15372$as_unset ENV MAIL MAILPATH
15373PS1='$ '
15374PS2='> '
15375PS4='+ '
15376
15377# NLS nuisances.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015378for as_var in \
15379 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15380 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15381 LC_TELEPHONE LC_TIME
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015382do
15383 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15384 eval $as_var=C; export $as_var
15385 else
15386 $as_unset $as_var
15387 fi
15388done
15389
15390# Required to use basename.
15391if expr a : '\(a\)' >/dev/null 2>&1; then
15392 as_expr=expr
15393else
15394 as_expr=false
15395fi
15396
15397if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15398 as_basename=basename
15399else
15400 as_basename=false
15401fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015402
15403
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015404# Name of the executable.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015405as_me=`$as_basename "$0" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15407 X"$0" : 'X\(//\)$' \| \
15408 X"$0" : 'X\(/\)$' \| \
15409 . : '\(.\)' 2>/dev/null ||
15410echo X/"$0" |
15411 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15412 /^X\/\(\/\/\)$/{ s//\1/; q; }
15413 /^X\/\(\/\).*/{ s//\1/; q; }
15414 s/.*/./; q'`
15415
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015416
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015417# PATH needs CR, and LINENO needs CR and PATH.
15418# Avoid depending upon Character Ranges.
15419as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15420as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15421as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15422as_cr_digits='0123456789'
15423as_cr_alnum=$as_cr_Letters$as_cr_digits
15424
15425# The user is always right.
15426if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015427 echo "#! /bin/sh" >conf$$.sh
15428 echo "exit 0" >>conf$$.sh
15429 chmod +x conf$$.sh
15430 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015431 PATH_SEPARATOR=';'
15432 else
15433 PATH_SEPARATOR=:
15434 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015435 rm -f conf$$.sh
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015436fi
15437
15438
15439 as_lineno_1=$LINENO
15440 as_lineno_2=$LINENO
15441 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15442 test "x$as_lineno_1" != "x$as_lineno_2" &&
15443 test "x$as_lineno_3" = "x$as_lineno_2" || {
15444 # Find who we are. Look in the path if we contain no path at all
15445 # relative or not.
15446 case $0 in
15447 *[\\/]* ) as_myself=$0 ;;
15448 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15449for as_dir in $PATH
15450do
15451 IFS=$as_save_IFS
15452 test -z "$as_dir" && as_dir=.
15453 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15454done
15455
15456 ;;
15457 esac
15458 # We did not find ourselves, most probably we were run as `sh COMMAND'
15459 # in which case we are not to be found in the path.
15460 if test "x$as_myself" = x; then
15461 as_myself=$0
15462 fi
15463 if test ! -f "$as_myself"; then
15464 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15465echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15466 { (exit 1); exit 1; }; }
15467 fi
15468 case $CONFIG_SHELL in
15469 '')
15470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15471for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15472do
15473 IFS=$as_save_IFS
15474 test -z "$as_dir" && as_dir=.
15475 for as_base in sh bash ksh sh5; do
15476 case $as_dir in
15477 /*)
15478 if ("$as_dir/$as_base" -c '
15479 as_lineno_1=$LINENO
15480 as_lineno_2=$LINENO
15481 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15482 test "x$as_lineno_1" != "x$as_lineno_2" &&
15483 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015484 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15485 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015486 CONFIG_SHELL=$as_dir/$as_base
15487 export CONFIG_SHELL
15488 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15489 fi;;
15490 esac
15491 done
15492done
15493;;
15494 esac
15495
15496 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15497 # uniformly replaced by the line number. The first 'sed' inserts a
15498 # line-number line before each line; the second 'sed' does the real
15499 # work. The second script uses 'N' to pair each line-number line
15500 # with the numbered line, and appends trailing '-' during
15501 # substitution so that $LINENO is not a special case at line end.
15502 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15503 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15504 sed '=' <$as_myself |
15505 sed '
15506 N
15507 s,$,-,
15508 : loop
15509 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15510 t loop
15511 s,-$,,
15512 s,^['$as_cr_digits']*\n,,
15513 ' >$as_me.lineno &&
15514 chmod +x $as_me.lineno ||
15515 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15516echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15517 { (exit 1); exit 1; }; }
15518
15519 # Don't try to exec as it changes $[0], causing all sort of problems
15520 # (the dirname of $[0] is not the place where we might find the
15521 # original and so on. Autoconf is especially sensible to this).
15522 . ./$as_me.lineno
15523 # Exit status is that of the last command.
15524 exit
15525}
15526
15527
15528case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15529 *c*,-n*) ECHO_N= ECHO_C='
15530' ECHO_T=' ' ;;
15531 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15532 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15533esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015534
15535if expr a : '\(a\)' >/dev/null 2>&1; then
15536 as_expr=expr
15537else
15538 as_expr=false
15539fi
15540
15541rm -f conf$$ conf$$.exe conf$$.file
15542echo >conf$$.file
15543if ln -s conf$$.file conf$$ 2>/dev/null; then
15544 # We could just check for DJGPP; but this test a) works b) is more generic
15545 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15546 if test -f conf$$.exe; then
15547 # Don't use ln at all; we don't have any links
15548 as_ln_s='cp -p'
15549 else
15550 as_ln_s='ln -s'
15551 fi
15552elif ln conf$$.file conf$$ 2>/dev/null; then
15553 as_ln_s=ln
15554else
15555 as_ln_s='cp -p'
15556fi
15557rm -f conf$$ conf$$.exe conf$$.file
15558
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015559if mkdir -p . 2>/dev/null; then
15560 as_mkdir_p=:
15561else
15562 as_mkdir_p=false
15563fi
15564
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015565as_executable_p="test -f"
15566
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015567# Sed expression to map a string onto a valid CPP name.
15568as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015569
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015570# Sed expression to map a string onto a valid variable name.
15571as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15572
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015573
15574# IFS
15575# We need space, tab and new line, in precisely that order.
15576as_nl='
15577'
15578IFS=" $as_nl"
15579
15580# CDPATH.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015581$as_unset CDPATH
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015582
15583exec 6>&1
15584
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015585# Open the log real soon, to keep \$[0] and so on meaningful, and to
15586# report actual input values of CONFIG_FILES etc. instead of their
15587# values after options handling. Logging --version etc. is OK.
15588exec 5>>config.log
15589{
15590 echo
15591 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15592## Running $as_me. ##
15593_ASBOX
15594} >&5
15595cat >&5 <<_CSEOF
15596
Alexandre Julliard9283bb32002-12-20 01:27:13 +000015597This file was extended by Wine $as_me 20021219, which was
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015598generated by GNU Autoconf 2.57. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015599
15600 CONFIG_FILES = $CONFIG_FILES
15601 CONFIG_HEADERS = $CONFIG_HEADERS
15602 CONFIG_LINKS = $CONFIG_LINKS
15603 CONFIG_COMMANDS = $CONFIG_COMMANDS
15604 $ $0 $@
15605
15606_CSEOF
15607echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15608echo >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015609_ACEOF
15610
15611# Files that config.status was made for.
15612if test -n "$ac_config_files"; then
15613 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15614fi
15615
15616if test -n "$ac_config_headers"; then
15617 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15618fi
15619
15620if test -n "$ac_config_links"; then
15621 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15622fi
15623
15624if test -n "$ac_config_commands"; then
15625 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15626fi
15627
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015628cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015629
15630ac_cs_usage="\
15631\`$as_me' instantiates files from templates according to the
15632current configuration.
15633
15634Usage: $0 [OPTIONS] [FILE]...
15635
15636 -h, --help print this help, then exit
15637 -V, --version print version number, then exit
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015638 -q, --quiet do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015639 -d, --debug don't remove temporary files
15640 --recheck update $as_me by reconfiguring in the same conditions
15641 --file=FILE[:TEMPLATE]
15642 instantiate the configuration file FILE
15643 --header=FILE[:TEMPLATE]
15644 instantiate the configuration header FILE
15645
15646Configuration files:
15647$config_files
15648
15649Configuration headers:
15650$config_headers
15651
15652Configuration commands:
15653$config_commands
15654
15655Report bugs to <bug-autoconf@gnu.org>."
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015656_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000015657
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015658cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015659ac_cs_version="\\
Alexandre Julliard9283bb32002-12-20 01:27:13 +000015660Wine config.status 20021219
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015661configured by $0, generated by GNU Autoconf 2.57,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015662 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015663
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015664Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15665Free Software Foundation, Inc.
15666This config.status script is free software; the Free Software Foundation
15667gives unlimited permission to copy, distribute and modify it."
15668srcdir=$srcdir
15669INSTALL="$INSTALL"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015670_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015671
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015672cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015673# If no file are specified by the user, then we need to provide default
15674# value. By we need to know if files were specified by the user.
15675ac_need_defaults=:
15676while test $# != 0
15677do
15678 case $1 in
15679 --*=*)
15680 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15681 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015682 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015683 ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015684 -*)
15685 ac_option=$1
15686 ac_optarg=$2
15687 ac_shift=shift
15688 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015689 *) # This is not an option, so the user has probably given explicit
15690 # arguments.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015691 ac_option=$1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015692 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015693 esac
15694
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015695 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015696 # Handling of the options.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015697_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015698cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015699 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15700 ac_cs_recheck=: ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015701 --version | --vers* | -V )
15702 echo "$ac_cs_version"; exit 0 ;;
15703 --he | --h)
15704 # Conflict between --help and --header
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015705 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015706Try \`$0 --help' for more information." >&5
15707echo "$as_me: error: ambiguous option: $1
15708Try \`$0 --help' for more information." >&2;}
15709 { (exit 1); exit 1; }; };;
15710 --help | --hel | -h )
15711 echo "$ac_cs_usage"; exit 0 ;;
15712 --debug | --d* | -d )
15713 debug=: ;;
15714 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015715 $ac_shift
15716 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015717 ac_need_defaults=false;;
15718 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015719 $ac_shift
15720 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015721 ac_need_defaults=false;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015722 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15723 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15724 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015725
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015726 # This is an error.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015727 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015728Try \`$0 --help' for more information." >&5
15729echo "$as_me: error: unrecognized option: $1
15730Try \`$0 --help' for more information." >&2;}
15731 { (exit 1); exit 1; }; } ;;
15732
15733 *) ac_config_targets="$ac_config_targets $1" ;;
15734
15735 esac
15736 shift
15737done
15738
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015739ac_configure_extra_args=
15740
15741if $ac_cs_silent; then
15742 exec 6>/dev/null
15743 ac_configure_extra_args="$ac_configure_extra_args --silent"
15744fi
15745
15746_ACEOF
15747cat >>$CONFIG_STATUS <<_ACEOF
15748if \$ac_cs_recheck; then
15749 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15750 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15751fi
15752
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015753_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015754
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015755
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015756
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015757
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015758
15759cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015760for ac_config_target in $ac_config_targets
15761do
15762 case "$ac_config_target" in
15763 # Handling of arguments.
15764 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
15765 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000015766 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015767 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
15768 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015769 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
15770 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000015771 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015772 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
15773 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
Patrik Stridvalld1447fa2002-11-19 00:47:12 +000015774 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
John K. Hohm34909c22002-05-14 21:50:56 +000015775 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015776 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
15777 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
15778 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
15779 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
Dmitry Timoshkov5a23a002003-01-02 19:34:14 +000015780 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
Sylvain Petreolle3a99d8b2002-06-25 23:23:03 +000015781 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
Raphael Junqueirae31ae922002-12-17 01:15:15 +000015782 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015783 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
15784 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
15785 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
15786 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
Ove Kaavend2d08f02002-06-14 00:39:44 +000015787 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015788 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
15789 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
15790 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
Francois Gougetd523a452002-12-05 19:19:41 +000015791 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015792 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
Patrik Stridvall928ecb42002-10-02 19:58:27 +000015793 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015794 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
15795 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
15796 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
15797 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
15798 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000015799 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015800 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
15801 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
15802 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
15803 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
Hidenori Takeshima0307f6d2002-03-23 20:18:11 +000015804 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
Eric Pouechbed67fc2002-05-22 02:00:05 +000015805 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
Hidenori Takeshimabcb9c462002-03-22 19:16:10 +000015806 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
Eric Pouechb706b232002-06-04 17:53:46 +000015807 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015808 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
15809 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
Mike McCormackf6be0442002-04-08 23:56:14 +000015810 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015811 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015812 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
Uwe Bonnesa768fa32002-10-30 23:49:03 +000015813 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015814 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
15815 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
Michael Günnewig288b8ee2002-10-08 00:40:05 +000015816 "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015817 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
Andriy Palamarchukb812c902002-09-11 02:35:17 +000015818 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015819 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
Jon Griffiths1da29712002-08-15 22:08:40 +000015820 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015821 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
15822 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
15823 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000015824 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015825 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
15826 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
15827 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
15828 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
15829 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
15830 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
15831 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
15832 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
15833 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
15834 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
15835 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
Greg Turnerac89cc22002-10-07 21:54:07 +000015836 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015837 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
15838 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
15839 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
15840 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
Andriy Palamarchuk5b5bea02002-08-27 01:34:33 +000015841 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015842 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
15843 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000015844 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
Patrik Stridvall4c692b92002-04-29 18:43:35 +000015845 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015846 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
15847 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
15848 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000015849 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015850 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
15851 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
Patrik Stridvall9398d9c2002-11-12 01:13:10 +000015852 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015853 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000015854 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015855 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
15856 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
15857 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
15858 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
15859 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
15860 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000015861 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015862 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
15863 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
15864 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
15865 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
15866 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
15867 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
15868 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
15869 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
Francois Gouget4ce28372002-11-04 23:47:49 +000015870 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015871 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
Eric Pouecha120ce02002-06-28 17:40:16 +000015872 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000015873 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000015874 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
15875 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
Chris Morgan4691b182002-12-13 02:26:18 +000015876 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015877 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
15878 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
15879 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000015880 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015881 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
Patrik Stridvall5caddc72002-12-17 01:49:16 +000015882 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015883 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
15884 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
15885 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
15886 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
15887 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015888 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15889 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015890 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015891 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
15892 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
15893 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
15894 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
15895 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
15896 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
Alexandre Julliardacfda142002-05-20 19:18:16 +000015897 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015898 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
15899 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
15900 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
15901 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
Andriy Palamarchuk4e2e1762002-04-11 23:58:40 +000015902 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
Andriy Palamarchuk2f0d85c2002-04-29 23:47:39 +000015903 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015904 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
Alexandre Julliardd77294a2002-12-02 21:17:04 +000015905 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
Alberto Massari15e8e0a2002-11-15 01:41:20 +000015906 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015907 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
15908 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
15909 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
15910 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
Alexandre Julliardf264bd32002-09-13 17:54:27 +000015911 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
Alexandre Julliard65a42162002-06-04 21:29:40 +000015912 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015913 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
Mike Wetherell0d8a9fa2002-05-05 20:31:54 +000015914 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015915 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
15916 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015917 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
15918 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
Alexandre Julliard7d4ee772002-07-16 03:20:45 +000015919 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015920 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
15921 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
15922 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
15923 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
Alexandre Julliardb7d3c792002-07-16 02:33:10 +000015924 "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015925 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015926 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015927 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015928 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
15929 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
15930 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
15931 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
15932 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
15933 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
15934 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
15935 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
15936 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
Alexandre Julliard89118562002-03-27 21:13:40 +000015937 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
15938 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
15939 "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015940 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
15941 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
15942 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
15943 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015944 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
15945 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
15946 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
15947 "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015948 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015949 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
15950 "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
15951 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
15952 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
15953 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
15954 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000015955 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000015956 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015957 "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
15958 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
15959 "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
15960 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015961 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015962 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015963echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15964 { (exit 1); exit 1; }; };;
15965 esac
15966done
15967
15968# If the user did not use the arguments to specify the items to instantiate,
15969# then the envvar interface is used. Set only those that are not.
15970# We use the long form for the default assignment because of an extremely
15971# bizarre bug on SunOS 4.1.3.
15972if $ac_need_defaults; then
15973 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15974 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15975 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15976fi
15977
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015978# Have a temporary directory for convenience. Make it in the build tree
15979# simply because there is no reason to put it here, and in addition,
15980# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015981# Create a temporary directory, and hook for its removal unless debugging.
15982$debug ||
15983{
15984 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15985 trap '{ (exit 1); exit 1; }' 1 2 13 15
15986}
15987
15988# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015989
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015990{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015991 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015992 test -n "$tmp" && test -d "$tmp"
15993} ||
15994{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015995 tmp=./confstat$$-$RANDOM
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015996 (umask 077 && mkdir $tmp)
15997} ||
15998{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015999 echo "$me: cannot create a temporary directory in ." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016000 { (exit 1); exit 1; }
16001}
16002
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016003_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016004
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016005cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016006
16007#
16008# CONFIG_FILES section.
16009#
16010
16011# No need to generate the scripts if there are no CONFIG_FILES.
16012# This happens for instance when ./config.status config.h
16013if test -n "\$CONFIG_FILES"; then
16014 # Protect against being on the right side of a sed subst in config.status.
16015 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16016 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16017s,@SHELL@,$SHELL,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016018s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16019s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16020s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16021s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16022s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16023s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016024s,@exec_prefix@,$exec_prefix,;t t
16025s,@prefix@,$prefix,;t t
16026s,@program_transform_name@,$program_transform_name,;t t
16027s,@bindir@,$bindir,;t t
16028s,@sbindir@,$sbindir,;t t
16029s,@libexecdir@,$libexecdir,;t t
16030s,@datadir@,$datadir,;t t
16031s,@sysconfdir@,$sysconfdir,;t t
16032s,@sharedstatedir@,$sharedstatedir,;t t
16033s,@localstatedir@,$localstatedir,;t t
16034s,@libdir@,$libdir,;t t
16035s,@includedir@,$includedir,;t t
16036s,@oldincludedir@,$oldincludedir,;t t
16037s,@infodir@,$infodir,;t t
16038s,@mandir@,$mandir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016039s,@build_alias@,$build_alias,;t t
16040s,@host_alias@,$host_alias,;t t
16041s,@target_alias@,$target_alias,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016042s,@DEFS@,$DEFS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016043s,@ECHO_C@,$ECHO_C,;t t
16044s,@ECHO_N@,$ECHO_N,;t t
16045s,@ECHO_T@,$ECHO_T,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016046s,@LIBS@,$LIBS,;t t
16047s,@OPTIONS@,$OPTIONS,;t t
Alexandre Julliardc728efc2002-10-02 02:34:09 +000016048s,@WIN16_FILES@,$WIN16_FILES,;t t
16049s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016050s,@build@,$build,;t t
16051s,@build_cpu@,$build_cpu,;t t
16052s,@build_vendor@,$build_vendor,;t t
16053s,@build_os@,$build_os,;t t
16054s,@host@,$host,;t t
16055s,@host_cpu@,$host_cpu,;t t
16056s,@host_vendor@,$host_vendor,;t t
16057s,@host_os@,$host_os,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016058s,@SET_MAKE@,$SET_MAKE,;t t
16059s,@CC@,$CC,;t t
16060s,@CFLAGS@,$CFLAGS,;t t
16061s,@LDFLAGS@,$LDFLAGS,;t t
16062s,@CPPFLAGS@,$CPPFLAGS,;t t
16063s,@ac_ct_CC@,$ac_ct_CC,;t t
16064s,@EXEEXT@,$EXEEXT,;t t
16065s,@OBJEXT@,$OBJEXT,;t t
16066s,@CPP@,$CPP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000016067s,@TOOLSDIR@,$TOOLSDIR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016068s,@X_CFLAGS@,$X_CFLAGS,;t t
16069s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16070s,@X_LIBS@,$X_LIBS,;t t
16071s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16072s,@YACC@,$YACC,;t t
16073s,@LEX@,$LEX,;t t
16074s,@LEXLIB@,$LEXLIB,;t t
16075s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
16076s,@XYACC@,$XYACC,;t t
16077s,@XLEX@,$XLEX,;t t
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +000016078s,@LD@,$LD,;t t
16079s,@ac_ct_LD@,$ac_ct_LD,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000016080s,@AR@,$AR,;t t
16081s,@ac_ct_AR@,$ac_ct_AR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016082s,@RANLIB@,$RANLIB,;t t
16083s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000016084s,@STRIP@,$STRIP,;t t
16085s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16086s,@WINDRES@,$WINDRES,;t t
16087s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016088s,@LN_S@,$LN_S,;t t
Alexandre Julliarddf234a92002-05-22 02:10:39 +000016089s,@LN@,$LN,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016090s,@C2MAN@,$C2MAN,;t t
16091s,@LDCONFIG@,$LDCONFIG,;t t
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016092s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16093s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16094s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016095s,@LINT@,$LINT,;t t
16096s,@LINTFLAGS@,$LINTFLAGS,;t t
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000016097s,@DB2HTML@,$DB2HTML,;t t
16098s,@DB2PDF@,$DB2PDF,;t t
16099s,@DB2PS@,$DB2PS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016100s,@JPEGLIB@,$JPEGLIB,;t t
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016101s,@EGREP@,$EGREP,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016102s,@XLIB@,$XLIB,;t t
16103s,@XFILES@,$XFILES,;t t
16104s,@OPENGLFILES@,$OPENGLFILES,;t t
16105s,@GLU32FILES@,$GLU32FILES,;t t
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000016106s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
Francois Gouget6f670b12002-10-10 17:54:27 +000016107s,@NASLIBS@,$NASLIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016108s,@CURSESLIBS@,$CURSESLIBS,;t t
Shi Quan He6b0720f2002-03-21 02:58:39 +000016109s,@sane_devel@,$sane_devel,;t t
16110s,@SANELIBS@,$SANELIBS,;t t
16111s,@SANEINCL@,$SANEINCL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016112s,@ft_devel@,$ft_devel,;t t
16113s,@ft_devel2@,$ft_devel2,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016114s,@FREETYPEINCL@,$FREETYPEINCL,;t t
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000016115s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
16116s,@ARTSLIBS@,$ARTSLIBS,;t t
16117s,@ARTSINCL@,$ARTSINCL,;t t
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000016118s,@ALSALIBS@,$ALSALIBS,;t t
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000016119s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000016120s,@DLLEXT@,$DLLEXT,;t t
16121s,@DLLFLAGS@,$DLLFLAGS,;t t
16122s,@DLLIBS@,$DLLIBS,;t t
16123s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
16124s,@LDSHARED@,$LDSHARED,;t t
Alexandre Julliardada5e652002-12-12 22:03:14 +000016125s,@LIBEXT@,$LIBEXT,;t t
16126s,@IMPLIBEXT@,$IMPLIBEXT,;t t
16127s,@DLLTOOL@,$DLLTOOL,;t t
16128s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016129s,@DLLWRAP@,$DLLWRAP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000016130s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000016131s,@CROSSTEST@,$CROSSTEST,;t t
16132s,@CROSSCC@,$CROSSCC,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016133s,@LDPATH@,$LDPATH,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000016134s,@CRTLIBS@,$CRTLIBS,;t t
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016135s,@LDD@,$LDD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016136s,@ALLOCA@,$ALLOCA,;t t
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016137s,@LIBOBJS@,$LIBOBJS,;t t
16138s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016139/@MAKE_RULES@/r $MAKE_RULES
16140s,@MAKE_RULES@,,;t t
16141/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
16142s,@MAKE_DLL_RULES@,,;t t
Alexandre Julliardedeee892002-08-09 01:22:40 +000016143/@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
16144s,@MAKE_TEST_RULES@,,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016145/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
16146s,@MAKE_PROG_RULES@,,;t t
16147CEOF
16148
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016149_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016150
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016151 cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016152 # Split the substitutions into bite-sized pieces for seds with
16153 # small command number limits, like on Digital OSF/1 and HP-UX.
16154 ac_max_sed_lines=48
16155 ac_sed_frag=1 # Number of current file.
16156 ac_beg=1 # First line for current file.
16157 ac_end=$ac_max_sed_lines # Line after last line for current file.
16158 ac_more_lines=:
16159 ac_sed_cmds=
16160 while $ac_more_lines; do
16161 if test $ac_beg -gt 1; then
16162 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16163 else
16164 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16165 fi
16166 if test ! -s $tmp/subs.frag; then
16167 ac_more_lines=false
16168 else
16169 # The purpose of the label and of the branching condition is to
16170 # speed up the sed processing (if there are no `@' at all, there
16171 # is no need to browse any of the substitutions).
16172 # These are the two extra sed commands mentioned above.
16173 (echo ':t
16174 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16175 if test -z "$ac_sed_cmds"; then
16176 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16177 else
16178 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16179 fi
16180 ac_sed_frag=`expr $ac_sed_frag + 1`
16181 ac_beg=$ac_end
16182 ac_end=`expr $ac_end + $ac_max_sed_lines`
16183 fi
16184 done
16185 if test -z "$ac_sed_cmds"; then
16186 ac_sed_cmds=cat
16187 fi
16188fi # test -n "$CONFIG_FILES"
16189
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016190_ACEOF
16191cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016192for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16193 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16194 case $ac_file in
16195 - | *:- | *:-:* ) # input from stdin
16196 cat >$tmp/stdin
16197 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16198 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16199 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16200 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16201 * ) ac_file_in=$ac_file.in ;;
16202 esac
16203
16204 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016205 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16206$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016207 X"$ac_file" : 'X\(//\)[^/]' \| \
16208 X"$ac_file" : 'X\(//\)$' \| \
16209 X"$ac_file" : 'X\(/\)' \| \
16210 . : '\(.\)' 2>/dev/null ||
16211echo X"$ac_file" |
16212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16214 /^X\(\/\/\)$/{ s//\1/; q; }
16215 /^X\(\/\).*/{ s//\1/; q; }
16216 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016217 { if $as_mkdir_p; then
16218 mkdir -p "$ac_dir"
16219 else
16220 as_dir="$ac_dir"
16221 as_dirs=
16222 while test ! -d "$as_dir"; do
16223 as_dirs="$as_dir $as_dirs"
16224 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16225$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16226 X"$as_dir" : 'X\(//\)[^/]' \| \
16227 X"$as_dir" : 'X\(//\)$' \| \
16228 X"$as_dir" : 'X\(/\)' \| \
16229 . : '\(.\)' 2>/dev/null ||
16230echo X"$as_dir" |
16231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16232 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16233 /^X\(\/\/\)$/{ s//\1/; q; }
16234 /^X\(\/\).*/{ s//\1/; q; }
16235 s/.*/./; q'`
16236 done
16237 test ! -n "$as_dirs" || mkdir $as_dirs
16238 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16239echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16240 { (exit 1); exit 1; }; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016241
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016242 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016243
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016244if test "$ac_dir" != .; then
16245 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16246 # A "../" for each directory in $ac_dir_suffix.
16247 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16248else
16249 ac_dir_suffix= ac_top_builddir=
16250fi
16251
16252case $srcdir in
16253 .) # No --srcdir option. We are building in place.
16254 ac_srcdir=.
16255 if test -z "$ac_top_builddir"; then
16256 ac_top_srcdir=.
16257 else
16258 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16259 fi ;;
16260 [\\/]* | ?:[\\/]* ) # Absolute path.
16261 ac_srcdir=$srcdir$ac_dir_suffix;
16262 ac_top_srcdir=$srcdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016263 *) # Relative path.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016264 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16265 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16266esac
16267# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16268# absolute.
16269ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016270ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016271ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16272ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16273
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016274
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016275 case $INSTALL in
16276 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016277 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000016278 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000016279
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016280 if test x"$ac_file" != x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016281 { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016282echo "$as_me: creating $ac_file" >&6;}
16283 rm -f "$ac_file"
16284 fi
16285 # Let's still pretend it is `configure' which instantiates (i.e., don't
16286 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016287 # /* config.h. Generated by config.status. */
16288 if test x"$ac_file" = x-; then
16289 configure_input=
16290 else
16291 configure_input="$ac_file. "
16292 fi
16293 configure_input=$configure_input"Generated from `echo $ac_file_in |
16294 sed 's,.*/,,'` by configure."
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000016295
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016296 # First look for the input files in the build tree, otherwise in the
16297 # src tree.
16298 ac_file_inputs=`IFS=:
16299 for f in $ac_file_in; do
16300 case $f in
16301 -) echo $tmp/stdin ;;
16302 [\\/$]*)
16303 # Absolute (can't be DOS-style, as IFS=:)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016304 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016305echo "$as_me: error: cannot find input file: $f" >&2;}
16306 { (exit 1); exit 1; }; }
16307 echo $f;;
16308 *) # Relative
16309 if test -f "$f"; then
16310 # Build tree
16311 echo $f
16312 elif test -f "$srcdir/$f"; then
16313 # Source tree
16314 echo $srcdir/$f
16315 else
16316 # /dev/null tree
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016317 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016318echo "$as_me: error: cannot find input file: $f" >&2;}
16319 { (exit 1); exit 1; }; }
16320 fi;;
16321 esac
16322 done` || { (exit 1); exit 1; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016323_ACEOF
16324cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016325 sed "$ac_vpsub
16326$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016327_ACEOF
16328cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016329:t
16330/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16331s,@configure_input@,$configure_input,;t t
16332s,@srcdir@,$ac_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016333s,@abs_srcdir@,$ac_abs_srcdir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016334s,@top_srcdir@,$ac_top_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016335s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16336s,@builddir@,$ac_builddir,;t t
16337s,@abs_builddir@,$ac_abs_builddir,;t t
16338s,@top_builddir@,$ac_top_builddir,;t t
16339s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016340s,@INSTALL@,$ac_INSTALL,;t t
16341" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16342 rm -f $tmp/stdin
16343 if test x"$ac_file" != x-; then
16344 mv $tmp/out $ac_file
16345 else
16346 cat $tmp/out
16347 rm -f $tmp/out
16348 fi
16349
16350done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016351_ACEOF
16352cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016353
16354#
16355# CONFIG_HEADER section.
16356#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016357
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016358# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16359# NAME is the cpp macro being defined and VALUE is the value it is being given.
16360#
16361# ac_d sets the value in "#define NAME VALUE" lines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016362ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16363ac_dB='[ ].*$,\1#\2'
16364ac_dC=' '
16365ac_dD=',;t'
16366# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16367ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16368ac_uB='$,\1#\2define\3'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016369ac_uC=' '
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016370ac_uD=',;t'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016371
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016372for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000016373 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016374 case $ac_file in
16375 - | *:- | *:-:* ) # input from stdin
16376 cat >$tmp/stdin
16377 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16378 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16379 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16380 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16381 * ) ac_file_in=$ac_file.in ;;
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016382 esac
16383
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016384 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016385echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016386
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016387 # First look for the input files in the build tree, otherwise in the
16388 # src tree.
16389 ac_file_inputs=`IFS=:
16390 for f in $ac_file_in; do
16391 case $f in
16392 -) echo $tmp/stdin ;;
16393 [\\/$]*)
16394 # Absolute (can't be DOS-style, as IFS=:)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016395 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016396echo "$as_me: error: cannot find input file: $f" >&2;}
16397 { (exit 1); exit 1; }; }
16398 echo $f;;
16399 *) # Relative
16400 if test -f "$f"; then
16401 # Build tree
16402 echo $f
16403 elif test -f "$srcdir/$f"; then
16404 # Source tree
16405 echo $srcdir/$f
16406 else
16407 # /dev/null tree
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016408 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016409echo "$as_me: error: cannot find input file: $f" >&2;}
16410 { (exit 1); exit 1; }; }
16411 fi;;
16412 esac
16413 done` || { (exit 1); exit 1; }
16414 # Remove the trailing spaces.
16415 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016416
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016417_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016418
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016419# Transform confdefs.h into two sed scripts, `conftest.defines' and
16420# `conftest.undefs', that substitutes the proper values into
16421# config.h.in to produce config.h. The first handles `#define'
16422# templates, and the second `#undef' templates.
16423# And first: Protect against being on the right side of a sed subst in
16424# config.status. Protect against being in an unquoted here document
16425# in config.status.
16426rm -f conftest.defines conftest.undefs
16427# Using a here document instead of a string reduces the quoting nightmare.
16428# Putting comments in sed scripts is not portable.
16429#
16430# `end' is used to avoid that the second main sed command (meant for
16431# 0-ary CPP macros) applies to n-ary macro definitions.
16432# See the Autoconf documentation for `clear'.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016433cat >confdef2sed.sed <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016434s/[\\&,]/\\&/g
16435s,[\\$`],\\&,g
16436t clear
16437: clear
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016438s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016439t end
16440s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16441: end
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016442_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016443# If some macros were called several times there might be several times
16444# the same #defines, which is useless. Nevertheless, we may not want to
16445# sort them, since we want the *last* AC-DEFINE to be honored.
16446uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16447sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16448rm -f confdef2sed.sed
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016449
16450# This sed command replaces #undef with comments. This is necessary, for
16451# example, in the case of _POSIX_SOURCE, which is predefined and required
16452# on some systems where configure will not decide to define it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016453cat >>conftest.undefs <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016454s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016455_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016456
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016457# Break up conftest.defines because some shells have a limit on the size
16458# of here documents, and old seds have small limits too (100 cmds).
16459echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016460echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016461echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16462echo ' :' >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016463rm -f conftest.tail
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016464while grep . conftest.defines >/dev/null
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016465do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016466 # Write a limited-size here document to $tmp/defines.sed.
16467 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16468 # Speed up: don't consider the non `#define' lines.
16469 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16470 # Work around the forget-to-reset-the-flag bug.
16471 echo 't clr' >>$CONFIG_STATUS
16472 echo ': clr' >>$CONFIG_STATUS
16473 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016474 echo 'CEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016475 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16476 rm -f $tmp/in
16477 mv $tmp/out $tmp/in
16478' >>$CONFIG_STATUS
16479 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16480 rm -f conftest.defines
16481 mv conftest.tail conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016482done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016483rm -f conftest.defines
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016484echo ' fi # grep' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016485echo >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016486
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016487# Break up conftest.undefs because some shells have a limit on the size
16488# of here documents, and old seds have small limits too (100 cmds).
16489echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16490rm -f conftest.tail
16491while grep . conftest.undefs >/dev/null
16492do
16493 # Write a limited-size here document to $tmp/undefs.sed.
16494 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16495 # Speed up: don't consider the non `#undef'
16496 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16497 # Work around the forget-to-reset-the-flag bug.
16498 echo 't clr' >>$CONFIG_STATUS
16499 echo ': clr' >>$CONFIG_STATUS
16500 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16501 echo 'CEOF
16502 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16503 rm -f $tmp/in
16504 mv $tmp/out $tmp/in
16505' >>$CONFIG_STATUS
16506 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16507 rm -f conftest.undefs
16508 mv conftest.tail conftest.undefs
16509done
16510rm -f conftest.undefs
16511
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016512cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016513 # Let's still pretend it is `configure' which instantiates (i.e., don't
16514 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016515 # /* config.h. Generated by config.status. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016516 if test x"$ac_file" = x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016517 echo "/* Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016518 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016519 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016520 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016521 cat $tmp/in >>$tmp/config.h
16522 rm -f $tmp/in
16523 if test x"$ac_file" != x-; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016524 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016525 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016526echo "$as_me: $ac_file is unchanged" >&6;}
16527 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016528 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16529$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016530 X"$ac_file" : 'X\(//\)[^/]' \| \
16531 X"$ac_file" : 'X\(//\)$' \| \
16532 X"$ac_file" : 'X\(/\)' \| \
16533 . : '\(.\)' 2>/dev/null ||
16534echo X"$ac_file" |
16535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16536 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16537 /^X\(\/\/\)$/{ s//\1/; q; }
16538 /^X\(\/\).*/{ s//\1/; q; }
16539 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016540 { if $as_mkdir_p; then
16541 mkdir -p "$ac_dir"
16542 else
16543 as_dir="$ac_dir"
16544 as_dirs=
16545 while test ! -d "$as_dir"; do
16546 as_dirs="$as_dir $as_dirs"
16547 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16548$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16549 X"$as_dir" : 'X\(//\)[^/]' \| \
16550 X"$as_dir" : 'X\(//\)$' \| \
16551 X"$as_dir" : 'X\(/\)' \| \
16552 . : '\(.\)' 2>/dev/null ||
16553echo X"$as_dir" |
16554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16555 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16556 /^X\(\/\/\)$/{ s//\1/; q; }
16557 /^X\(\/\).*/{ s//\1/; q; }
16558 s/.*/./; q'`
16559 done
16560 test ! -n "$as_dirs" || mkdir $as_dirs
16561 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16562echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16563 { (exit 1); exit 1; }; }; }
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016564
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016565 rm -f $ac_file
16566 mv $tmp/config.h $ac_file
16567 fi
16568 else
16569 cat $tmp/config.h
16570 rm -f $tmp/config.h
16571 fi
16572done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016573_ACEOF
16574cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016575
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016576#
16577# CONFIG_COMMANDS section.
16578#
16579for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16580 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16581 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016582 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16583$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16584 X"$ac_dest" : 'X\(//\)[^/]' \| \
16585 X"$ac_dest" : 'X\(//\)$' \| \
16586 X"$ac_dest" : 'X\(/\)' \| \
16587 . : '\(.\)' 2>/dev/null ||
16588echo X"$ac_dest" |
16589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16590 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16591 /^X\(\/\/\)$/{ s//\1/; q; }
16592 /^X\(\/\).*/{ s//\1/; q; }
16593 s/.*/./; q'`
16594 ac_builddir=.
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000016595
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016596if test "$ac_dir" != .; then
16597 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16598 # A "../" for each directory in $ac_dir_suffix.
16599 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016600else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016601 ac_dir_suffix= ac_top_builddir=
16602fi
16603
16604case $srcdir in
16605 .) # No --srcdir option. We are building in place.
16606 ac_srcdir=.
16607 if test -z "$ac_top_builddir"; then
16608 ac_top_srcdir=.
16609 else
16610 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16611 fi ;;
16612 [\\/]* | ?:[\\/]* ) # Absolute path.
16613 ac_srcdir=$srcdir$ac_dir_suffix;
16614 ac_top_srcdir=$srcdir ;;
16615 *) # Relative path.
16616 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16617 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16618esac
16619# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16620# absolute.
16621ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016622ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016623ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16624ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16625
16626
16627 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16628echo "$as_me: executing $ac_dest commands" >&6;}
16629 case $ac_dest in
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016630 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
16631echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016632 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
16633echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
16634 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
16635echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
16636 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
16637echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
16638 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
16639echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
16640 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
16641echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
16642 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
16643echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
16644 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
16645echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
16646 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
16647echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
16648 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
16649echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
16650 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
16651echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
16652 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
16653echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
16654 dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
16655echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
16656 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
16657echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016658 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
16659echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
16660 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
16661echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016662 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
16663echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016664 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
16665echo "$as_me: creating files" >&6;} && mkdir "files") ;;
16666 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
16667echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
16668 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
16669echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
16670 if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
16671echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016672 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
16673echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016674 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
16675echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
16676 loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
16677echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
16678 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
16679echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
16680 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
16681echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
16682 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
16683echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
16684 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
16685echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016686 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
16687echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000016688 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
16689echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016690 relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
16691echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
16692 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
16693echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
16694 win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
16695echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
16696 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
16697echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016698 esac
16699done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016700_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016701
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016702cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000016703
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016704{ (exit 0); exit 0; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016705_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016706chmod +x $CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016707ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016708
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016709
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016710# configure is writing to config.log, and then calls config.status.
16711# config.status does its own redirection, appending to config.log.
16712# Unfortunately, on DOS this fails, as config.log is still kept open
16713# by configure, so config.status won't be able to write to it; its
16714# output is simply discarded. So we exec the FD to /dev/null,
16715# effectively closing config.log, so it can be properly (re)opened and
16716# appended to by config.status. When coming back to configure, we
16717# need to make the FD available again.
16718if test "$no_create" != yes; then
16719 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016720 ac_config_status_args=
16721 test "$silent" = yes &&
16722 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016723 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016724 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016725 exec 5>>config.log
16726 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16727 # would make configure fail if this is the last instruction.
16728 $ac_cs_success || { (exit 1); exit 1; }
16729fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016730
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016731
Ove Kaaven8b4431f1999-01-23 13:59:11 +000016732if test "$have_x" = "no"
16733then
16734 echo
16735 echo "*** Warning: X development files not found. Wine will be built without"
16736 echo "*** X support, which currently does not work, and would probably not be"
16737 echo "*** what you want anyway. You will need to install devel packages of"
Alexandre Julliard18e4b5e2002-01-04 18:52:40 +000016738 echo "*** Xlib/Xfree86 at the very least."
Ove Kaaven8b4431f1999-01-23 13:59:11 +000016739fi
16740
Alexandre Julliard638f1691999-01-17 16:32:32 +000016741if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
16742then
16743 echo
16744 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
16745 echo "*** terminal resize support. Consider upgrading ncurses."
Alexandre Julliard638f1691999-01-17 16:32:32 +000016746fi
16747
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016748if test "$wine_cv_libc_reentrant" = "no"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000016749then
16750 echo
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016751 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
16752 echo "*** threading support. Consider upgrading libc to a more recent"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000016753 echo "*** reentrant version of libc."
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000016754fi
16755
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000016756if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
16757then
16758 echo
16759 echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
16760 echo "*** applications won't work properly. You should upgrade your X11 library."
16761fi
16762
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000016763if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000016764then
16765 echo
16766 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000016767 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
16768fi
16769
Ian Pilcher563598d2001-05-16 20:56:05 +000016770if test "$wine_cv_msg_freetype" = "yes"
16771then
16772 echo
16773 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016774 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
16775 echo "*** freetype-devel package (or its equivalent on your distribution) to"
16776 echo "*** enable Wine to use TrueType fonts."
Ian Pilcher563598d2001-05-16 20:56:05 +000016777fi
16778
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016779echo
Steffen Moeller1511bae1999-02-17 15:27:03 +000016780echo "Configure finished. Do 'make depend && make' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016781echo
16782