blob: 9cf7ffe7ba39448a5b5343a2d80b18dad2334eb1 [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 Julliard03e5ce32003-02-20 01:11:16 +00003# Generated by GNU Autoconf 2.57 for Wine 20030219.
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 Julliard03e5ce32003-02-20 01:11:16 +0000269PACKAGE_VERSION='20030219'
270PACKAGE_STRING='Wine 20030219'
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
Marcus Meissner728bedc2003-01-09 06:04:33 +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 AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN C2MAN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP CROSSTEST CROSSCC LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS'
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 Julliard03e5ce32003-02-20 01:11:16 +0000780\`configure' configures Wine 20030219 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 Julliard03e5ce32003-02-20 01:11:16 +0000845 short | recursive ) echo "Configuration of Wine 20030219:";;
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 Julliard03e5ce32003-02-20 01:11:16 +0000938Wine configure 20030219
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 Julliard03e5ce32003-02-20 01:11:16 +0000953It was created by Wine $as_me 20030219, 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
Marcus Meissner1d4db782003-01-09 00:46:54 +00004176 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4177set dummy ${ac_tool_prefix}as; ac_word=$2
4178echo "$as_me:$LINENO: checking for $ac_word" >&5
4179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180if test "${ac_cv_prog_AS+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4182else
4183 if test -n "$AS"; then
4184 ac_cv_prog_AS="$AS" # Let the user override the test.
4185else
4186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187for as_dir in $PATH
4188do
4189 IFS=$as_save_IFS
4190 test -z "$as_dir" && as_dir=.
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193 ac_cv_prog_AS="${ac_tool_prefix}as"
4194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4195 break 2
4196 fi
4197done
4198done
4199
4200fi
4201fi
4202AS=$ac_cv_prog_AS
4203if test -n "$AS"; then
4204 echo "$as_me:$LINENO: result: $AS" >&5
4205echo "${ECHO_T}$AS" >&6
4206else
4207 echo "$as_me:$LINENO: result: no" >&5
4208echo "${ECHO_T}no" >&6
4209fi
4210
4211fi
4212if test -z "$ac_cv_prog_AS"; then
4213 ac_ct_AS=$AS
4214 # Extract the first word of "as", so it can be a program name with args.
4215set dummy as; ac_word=$2
4216echo "$as_me:$LINENO: checking for $ac_word" >&5
4217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220else
4221 if test -n "$ac_ct_AS"; then
4222 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4223else
4224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225for as_dir in $PATH
4226do
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_prog_ac_ct_AS="as"
4232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 break 2
4234 fi
4235done
4236done
4237
4238 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="as"
4239fi
4240fi
4241ac_ct_AS=$ac_cv_prog_ac_ct_AS
4242if test -n "$ac_ct_AS"; then
4243 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4244echo "${ECHO_T}$ac_ct_AS" >&6
4245else
4246 echo "$as_me:$LINENO: result: no" >&5
4247echo "${ECHO_T}no" >&6
4248fi
4249
4250 AS=$ac_ct_AS
4251else
4252 AS="$ac_cv_prog_AS"
4253fi
4254
4255if test -n "$ac_tool_prefix"; then
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00004256 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4257set dummy ${ac_tool_prefix}ld; ac_word=$2
4258echo "$as_me:$LINENO: checking for $ac_word" >&5
4259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260if test "${ac_cv_prog_LD+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4262else
4263 if test -n "$LD"; then
4264 ac_cv_prog_LD="$LD" # Let the user override the test.
4265else
4266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH
4268do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273 ac_cv_prog_LD="${ac_tool_prefix}ld"
4274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4276 fi
4277done
4278done
4279
4280fi
4281fi
4282LD=$ac_cv_prog_LD
4283if test -n "$LD"; then
4284 echo "$as_me:$LINENO: result: $LD" >&5
4285echo "${ECHO_T}$LD" >&6
4286else
4287 echo "$as_me:$LINENO: result: no" >&5
4288echo "${ECHO_T}no" >&6
4289fi
4290
4291fi
4292if test -z "$ac_cv_prog_LD"; then
4293 ac_ct_LD=$LD
4294 # Extract the first word of "ld", so it can be a program name with args.
4295set dummy ld; ac_word=$2
4296echo "$as_me:$LINENO: checking for $ac_word" >&5
4297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300else
4301 if test -n "$ac_ct_LD"; then
4302 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4303else
4304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305for as_dir in $PATH
4306do
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_ac_ct_LD="ld"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4314 fi
4315done
4316done
4317
4318 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4319fi
4320fi
4321ac_ct_LD=$ac_cv_prog_ac_ct_LD
4322if test -n "$ac_ct_LD"; then
4323 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4324echo "${ECHO_T}$ac_ct_LD" >&6
4325else
4326 echo "$as_me:$LINENO: result: no" >&5
4327echo "${ECHO_T}no" >&6
4328fi
4329
4330 LD=$ac_ct_LD
4331else
4332 LD="$ac_cv_prog_LD"
4333fi
4334
4335if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004336 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4337set dummy ${ac_tool_prefix}ar; ac_word=$2
4338echo "$as_me:$LINENO: checking for $ac_word" >&5
4339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4340if test "${ac_cv_prog_AR+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4342else
4343 if test -n "$AR"; then
4344 ac_cv_prog_AR="$AR" # Let the user override the test.
4345else
4346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347for as_dir in $PATH
4348do
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4353 ac_cv_prog_AR="${ac_tool_prefix}ar"
4354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 break 2
4356 fi
4357done
4358done
4359
4360fi
4361fi
4362AR=$ac_cv_prog_AR
4363if test -n "$AR"; then
4364 echo "$as_me:$LINENO: result: $AR" >&5
4365echo "${ECHO_T}$AR" >&6
4366else
4367 echo "$as_me:$LINENO: result: no" >&5
4368echo "${ECHO_T}no" >&6
4369fi
4370
4371fi
4372if test -z "$ac_cv_prog_AR"; then
4373 ac_ct_AR=$AR
4374 # Extract the first word of "ar", so it can be a program name with args.
4375set dummy ar; ac_word=$2
4376echo "$as_me:$LINENO: checking for $ac_word" >&5
4377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4378if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4380else
4381 if test -n "$ac_ct_AR"; then
4382 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4383else
4384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385for as_dir in $PATH
4386do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391 ac_cv_prog_ac_ct_AR="ar"
4392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4393 break 2
4394 fi
4395done
4396done
4397
4398 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4399fi
4400fi
4401ac_ct_AR=$ac_cv_prog_ac_ct_AR
4402if test -n "$ac_ct_AR"; then
4403 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4404echo "${ECHO_T}$ac_ct_AR" >&6
4405else
4406 echo "$as_me:$LINENO: result: no" >&5
4407echo "${ECHO_T}no" >&6
4408fi
4409
4410 AR=$ac_ct_AR
4411else
4412 AR="$ac_cv_prog_AR"
4413fi
4414
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004415if test -n "$ac_tool_prefix"; then
4416 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4417set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004418echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4420if test "${ac_cv_prog_RANLIB+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004422else
4423 if test -n "$RANLIB"; then
4424 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4425else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427for as_dir in $PATH
4428do
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4433 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 break 2
4436 fi
4437done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004438done
4439
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004440fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004441fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004442RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004443if test -n "$RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004444 echo "$as_me:$LINENO: result: $RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004445echo "${ECHO_T}$RANLIB" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004446else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004447 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004448echo "${ECHO_T}no" >&6
4449fi
4450
4451fi
4452if test -z "$ac_cv_prog_RANLIB"; then
4453 ac_ct_RANLIB=$RANLIB
4454 # Extract the first word of "ranlib", so it can be a program name with args.
4455set dummy ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004456echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4458if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460else
4461 if test -n "$ac_ct_RANLIB"; then
4462 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4463else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465for as_dir in $PATH
4466do
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471 ac_cv_prog_ac_ct_RANLIB="ranlib"
4472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4474 fi
4475done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004476done
4477
4478 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4479fi
4480fi
4481ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4482if test -n "$ac_ct_RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004483 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004484echo "${ECHO_T}$ac_ct_RANLIB" >&6
4485else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004486 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004487echo "${ECHO_T}no" >&6
4488fi
4489
4490 RANLIB=$ac_ct_RANLIB
4491else
4492 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004493fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004494
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004495if test -n "$ac_tool_prefix"; then
4496 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4497set dummy ${ac_tool_prefix}strip; ac_word=$2
4498echo "$as_me:$LINENO: checking for $ac_word" >&5
4499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4500if test "${ac_cv_prog_STRIP+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502else
4503 if test -n "$STRIP"; then
4504 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4505else
4506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507for as_dir in $PATH
4508do
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 break 2
4516 fi
4517done
4518done
4519
4520fi
4521fi
4522STRIP=$ac_cv_prog_STRIP
4523if test -n "$STRIP"; then
4524 echo "$as_me:$LINENO: result: $STRIP" >&5
4525echo "${ECHO_T}$STRIP" >&6
4526else
4527 echo "$as_me:$LINENO: result: no" >&5
4528echo "${ECHO_T}no" >&6
4529fi
4530
4531fi
4532if test -z "$ac_cv_prog_STRIP"; then
4533 ac_ct_STRIP=$STRIP
4534 # Extract the first word of "strip", so it can be a program name with args.
4535set dummy strip; ac_word=$2
4536echo "$as_me:$LINENO: checking for $ac_word" >&5
4537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540else
4541 if test -n "$ac_ct_STRIP"; then
4542 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4543else
4544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545for as_dir in $PATH
4546do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551 ac_cv_prog_ac_ct_STRIP="strip"
4552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 break 2
4554 fi
4555done
4556done
4557
4558 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4559fi
4560fi
4561ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4562if test -n "$ac_ct_STRIP"; then
4563 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4564echo "${ECHO_T}$ac_ct_STRIP" >&6
4565else
4566 echo "$as_me:$LINENO: result: no" >&5
4567echo "${ECHO_T}no" >&6
4568fi
4569
4570 STRIP=$ac_ct_STRIP
4571else
4572 STRIP="$ac_cv_prog_STRIP"
4573fi
4574
4575if test -n "$ac_tool_prefix"; then
4576 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4577set dummy ${ac_tool_prefix}windres; ac_word=$2
4578echo "$as_me:$LINENO: checking for $ac_word" >&5
4579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4580if test "${ac_cv_prog_WINDRES+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582else
4583 if test -n "$WINDRES"; then
4584 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4585else
4586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587for as_dir in $PATH
4588do
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4596 fi
4597done
4598done
4599
4600fi
4601fi
4602WINDRES=$ac_cv_prog_WINDRES
4603if test -n "$WINDRES"; then
4604 echo "$as_me:$LINENO: result: $WINDRES" >&5
4605echo "${ECHO_T}$WINDRES" >&6
4606else
4607 echo "$as_me:$LINENO: result: no" >&5
4608echo "${ECHO_T}no" >&6
4609fi
4610
4611fi
4612if test -z "$ac_cv_prog_WINDRES"; then
4613 ac_ct_WINDRES=$WINDRES
4614 # Extract the first word of "windres", so it can be a program name with args.
4615set dummy windres; ac_word=$2
4616echo "$as_me:$LINENO: checking for $ac_word" >&5
4617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4618if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4620else
4621 if test -n "$ac_ct_WINDRES"; then
4622 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4623else
4624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625for as_dir in $PATH
4626do
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4631 ac_cv_prog_ac_ct_WINDRES="windres"
4632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 break 2
4634 fi
4635done
4636done
4637
4638 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4639fi
4640fi
4641ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4642if test -n "$ac_ct_WINDRES"; then
4643 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4644echo "${ECHO_T}$ac_ct_WINDRES" >&6
4645else
4646 echo "$as_me:$LINENO: result: no" >&5
4647echo "${ECHO_T}no" >&6
4648fi
4649
4650 WINDRES=$ac_ct_WINDRES
4651else
4652 WINDRES="$ac_cv_prog_WINDRES"
4653fi
4654
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004655echo "$as_me:$LINENO: checking whether ln -s works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004656echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4657LN_S=$as_ln_s
4658if test "$LN_S" = "ln -s"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004659 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004660echo "${ECHO_T}yes" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00004661else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004662 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004663echo "${ECHO_T}no, using $LN_S" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00004664fi
4665
Alexandre Julliarddf234a92002-05-22 02:10:39 +00004666echo "$as_me:$LINENO: checking whether ln works" >&5
4667echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4668rm -f conf$$ conf$$.file
4669echo >conf$$.file
4670if ln conf$$.file conf$$ 2>/dev/null; then
4671 LN=ln
4672
4673 echo "$as_me:$LINENO: result: yes" >&5
4674echo "${ECHO_T}yes" >&6
4675else
4676 LN="cp -p"
4677
4678 echo "$as_me:$LINENO: result: no, using $LN" >&5
4679echo "${ECHO_T}no, using $LN" >&6
4680fi
4681rm -f conf$$ conf$$.file
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004682# Extract the first word of "c2man", so it can be a program name with args.
4683set dummy c2man; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004684echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4686if test "${ac_cv_prog_C2MAN+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004688else
4689 if test -n "$C2MAN"; then
4690 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4691else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693for as_dir in $PATH
4694do
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4699 ac_cv_prog_C2MAN="c2man"
4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4702 fi
4703done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004704done
4705
Mike McCormacke0df32f2000-08-11 21:15:21 +00004706 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004707fi
4708fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004709C2MAN=$ac_cv_prog_C2MAN
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004710if test -n "$C2MAN"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004711 echo "$as_me:$LINENO: result: $C2MAN" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004712echo "${ECHO_T}$C2MAN" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004713else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004714 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004715echo "${ECHO_T}no" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004716fi
4717
James Juranffe6b761999-06-12 08:21:57 +00004718# Extract the first word of "ldconfig", so it can be a program name with args.
4719set dummy ldconfig; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004720echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4722if test "${ac_cv_path_LDCONFIG+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
James Juranffe6b761999-06-12 08:21:57 +00004724else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004725 case $LDCONFIG in
4726 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00004727 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4728 ;;
4729 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00004731for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004732do
4733 IFS=$as_save_IFS
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4737 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 break 2
4740 fi
4741done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004742done
4743
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004744 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00004745 ;;
4746esac
4747fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004748LDCONFIG=$ac_cv_path_LDCONFIG
4749
James Juranffe6b761999-06-12 08:21:57 +00004750if test -n "$LDCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004751 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004752echo "${ECHO_T}$LDCONFIG" >&6
James Juranffe6b761999-06-12 08:21:57 +00004753else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004754 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004755echo "${ECHO_T}no" >&6
James Juranffe6b761999-06-12 08:21:57 +00004756fi
4757
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004758# Find a good install program. We prefer a C program (faster),
4759# so one script is as good as another. But avoid the broken or
4760# incompatible versions:
4761# SysV /etc/install, /usr/sbin/install
4762# SunOS /usr/etc/install
4763# IRIX /sbin/install
4764# AIX /bin/install
4765# AmigaOS /C/install, which installs bootblocks on floppy discs
4766# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4767# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4768# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4769# ./install, which can be erroneously created by make from ./install.sh.
4770echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4771echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4772if test -z "$INSTALL"; then
4773if test "${ac_cv_path_install+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4775else
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777for as_dir in $PATH
4778do
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 # Account for people who put trailing slashes in PATH elements.
4782case $as_dir/ in
4783 ./ | .// | /cC/* | \
4784 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4785 /usr/ucb/* ) ;;
4786 *)
4787 # OSF1 and SCO ODT 3.0 have their own names for install.
4788 # Don't use installbsd from OSF since it installs stuff as root
4789 # by default.
4790 for ac_prog in ginstall scoinst install; do
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4793 if test $ac_prog = install &&
4794 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4795 # AIX install. It has an incompatible calling convention.
4796 :
4797 elif test $ac_prog = install &&
4798 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4799 # program-specific install script used by HP pwplus--don't use.
4800 :
4801 else
4802 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4803 break 3
4804 fi
4805 fi
4806 done
4807 done
4808 ;;
4809esac
4810done
4811
4812
4813fi
4814 if test "${ac_cv_path_install+set}" = set; then
4815 INSTALL=$ac_cv_path_install
4816 else
4817 # As a last resort, use the slow shell script. We don't cache a
4818 # path for INSTALL within a source directory, because that will
4819 # break other packages using the cache if that directory is
4820 # removed, or if the path is relative.
4821 INSTALL=$ac_install_sh
4822 fi
4823fi
4824echo "$as_me:$LINENO: result: $INSTALL" >&5
4825echo "${ECHO_T}$INSTALL" >&6
4826
4827# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4828# It thinks the first close brace ends the variable substitution.
4829test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4830
4831test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4832
4833test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4834
4835case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00004836 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004837 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4838esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004839
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004840for ac_prog in lclint lint
4841do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004842 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004843set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004844echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4846if test "${ac_cv_prog_LINT+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004848else
4849 if test -n "$LINT"; then
4850 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4851else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853for as_dir in $PATH
4854do
4855 IFS=$as_save_IFS
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859 ac_cv_prog_LINT="$ac_prog"
4860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 break 2
4862 fi
4863done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004864done
4865
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004866fi
4867fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004868LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004869if test -n "$LINT"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004870 echo "$as_me:$LINENO: result: $LINT" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004871echo "${ECHO_T}$LINT" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004872else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004873 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004874echo "${ECHO_T}no" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004875fi
4876
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004877 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004878done
4879
4880if test "$LINT" = "lint"
4881then
4882 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4883 fi
4884
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004885
4886
Vincent Béron1d8cb6e2002-11-23 01:20:02 +00004887for ac_prog in docbook2html db2html
4888do
4889 # Extract the first word of "$ac_prog", so it can be a program name with args.
4890set dummy $ac_prog; ac_word=$2
4891echo "$as_me:$LINENO: checking for $ac_word" >&5
4892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893if test "${ac_cv_prog_DB2HTML+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4895else
4896 if test -n "$DB2HTML"; then
4897 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4898else
4899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900for as_dir in $PATH
4901do
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4906 ac_cv_prog_DB2HTML="$ac_prog"
4907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 break 2
4909 fi
4910done
4911done
4912
4913fi
4914fi
4915DB2HTML=$ac_cv_prog_DB2HTML
4916if test -n "$DB2HTML"; then
4917 echo "$as_me:$LINENO: result: $DB2HTML" >&5
4918echo "${ECHO_T}$DB2HTML" >&6
4919else
4920 echo "$as_me:$LINENO: result: no" >&5
4921echo "${ECHO_T}no" >&6
4922fi
4923
4924 test -n "$DB2HTML" && break
4925done
4926test -n "$DB2HTML" || DB2HTML="false"
4927
4928
4929
4930for ac_prog in docbook2pdf db2pdf
4931do
4932 # Extract the first word of "$ac_prog", so it can be a program name with args.
4933set dummy $ac_prog; ac_word=$2
4934echo "$as_me:$LINENO: checking for $ac_word" >&5
4935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4936if test "${ac_cv_prog_DB2PDF+set}" = set; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4938else
4939 if test -n "$DB2PDF"; then
4940 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4941else
4942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943for as_dir in $PATH
4944do
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4949 ac_cv_prog_DB2PDF="$ac_prog"
4950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 break 2
4952 fi
4953done
4954done
4955
4956fi
4957fi
4958DB2PDF=$ac_cv_prog_DB2PDF
4959if test -n "$DB2PDF"; then
4960 echo "$as_me:$LINENO: result: $DB2PDF" >&5
4961echo "${ECHO_T}$DB2PDF" >&6
4962else
4963 echo "$as_me:$LINENO: result: no" >&5
4964echo "${ECHO_T}no" >&6
4965fi
4966
4967 test -n "$DB2PDF" && break
4968done
4969test -n "$DB2PDF" || DB2PDF="false"
4970
4971
4972
4973for ac_prog in docbook2ps db2ps
4974do
4975 # Extract the first word of "$ac_prog", so it can be a program name with args.
4976set dummy $ac_prog; ac_word=$2
4977echo "$as_me:$LINENO: checking for $ac_word" >&5
4978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979if test "${ac_cv_prog_DB2PS+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4981else
4982 if test -n "$DB2PS"; then
4983 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4984else
4985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986for as_dir in $PATH
4987do
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992 ac_cv_prog_DB2PS="$ac_prog"
4993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4995 fi
4996done
4997done
4998
4999fi
5000fi
5001DB2PS=$ac_cv_prog_DB2PS
5002if test -n "$DB2PS"; then
5003 echo "$as_me:$LINENO: result: $DB2PS" >&5
5004echo "${ECHO_T}$DB2PS" >&6
5005else
5006 echo "$as_me:$LINENO: result: no" >&5
5007echo "${ECHO_T}no" >&6
5008fi
5009
5010 test -n "$DB2PS" && break
5011done
5012test -n "$DB2PS" || DB2PS="false"
5013
5014
5015
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005016
5017
5018echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005019echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5020if test "${ac_cv_lib_m_sqrt+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00005022else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005023 ac_check_lib_save_LIBS=$LIBS
Howard Abrams13277481999-07-10 13:16:29 +00005024LIBS="-lm $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005025cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005026#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005027/* confdefs.h. */
5028_ACEOF
5029cat confdefs.h >>conftest.$ac_ext
5030cat >>conftest.$ac_ext <<_ACEOF
5031/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005032
Howard Abrams13277481999-07-10 13:16:29 +00005033/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005034#ifdef __cplusplus
5035extern "C"
5036#endif
Howard Abrams13277481999-07-10 13:16:29 +00005037/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005038 builtin and then its argument prototype would still apply. */
5039char sqrt ();
5040int
5041main ()
5042{
5043sqrt ();
5044 ;
5045 return 0;
5046}
5047_ACEOF
5048rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005050 (eval $ac_link) 2>&5
5051 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005053 (exit $ac_status); } &&
5054 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005056 (eval $ac_try) 2>&5
5057 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005059 (exit $ac_status); }; }; then
5060 ac_cv_lib_m_sqrt=yes
Howard Abrams13277481999-07-10 13:16:29 +00005061else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005062 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005063sed 's/^/| /' conftest.$ac_ext >&5
5064
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005065ac_cv_lib_m_sqrt=no
Howard Abrams13277481999-07-10 13:16:29 +00005066fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005067rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5068LIBS=$ac_check_lib_save_LIBS
Howard Abrams13277481999-07-10 13:16:29 +00005069fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005070echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005071echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5072if test $ac_cv_lib_m_sqrt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005073 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005074#define HAVE_LIBM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005075_ACEOF
Howard Abrams13277481999-07-10 13:16:29 +00005076
5077 LIBS="-lm $LIBS"
5078
Howard Abrams13277481999-07-10 13:16:29 +00005079fi
5080
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005081
5082echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005083echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5084if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00005086else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005087 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005088LIBS="-li386 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005089cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005090#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005091/* confdefs.h. */
5092_ACEOF
5093cat confdefs.h >>conftest.$ac_ext
5094cat >>conftest.$ac_ext <<_ACEOF
5095/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005096
Alexandre Julliard59730ae1996-03-24 16:20:51 +00005097/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005098#ifdef __cplusplus
5099extern "C"
5100#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005101/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005102 builtin and then its argument prototype would still apply. */
5103char i386_set_ldt ();
5104int
5105main ()
5106{
5107i386_set_ldt ();
5108 ;
5109 return 0;
5110}
5111_ACEOF
5112rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005114 (eval $ac_link) 2>&5
5115 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005117 (exit $ac_status); } &&
5118 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005120 (eval $ac_try) 2>&5
5121 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005123 (exit $ac_status); }; }; then
5124 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00005125else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005126 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005127sed 's/^/| /' conftest.$ac_ext >&5
5128
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005129ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00005130fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005131rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5132LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005133fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005134echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005135echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5136if test $ac_cv_lib_i386_i386_set_ldt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005137 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005138#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005139_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00005140
5141 LIBS="-li386 $LIBS"
5142
Alexandre Julliard02e90081998-01-04 17:49:09 +00005143fi
5144
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005145
5146echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005147echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5148if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00005150else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005151 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005152LIBS="-lossaudio $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005153cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005154#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005155/* confdefs.h. */
5156_ACEOF
5157cat confdefs.h >>conftest.$ac_ext
5158cat >>conftest.$ac_ext <<_ACEOF
5159/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005160
Todd Vierlingecc76691998-12-15 17:49:02 +00005161/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005162#ifdef __cplusplus
5163extern "C"
5164#endif
Todd Vierlingecc76691998-12-15 17:49:02 +00005165/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005166 builtin and then its argument prototype would still apply. */
5167char _oss_ioctl ();
5168int
5169main ()
5170{
5171_oss_ioctl ();
5172 ;
5173 return 0;
5174}
5175_ACEOF
5176rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005178 (eval $ac_link) 2>&5
5179 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005181 (exit $ac_status); } &&
5182 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005184 (eval $ac_try) 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); }; }; then
5188 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00005189else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005190 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005191sed 's/^/| /' conftest.$ac_ext >&5
5192
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005193ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00005194fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005195rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5196LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005197fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005198echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005199echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5200if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005201 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005202#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005203_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00005204
5205 LIBS="-lossaudio $LIBS"
5206
Todd Vierlingecc76691998-12-15 17:49:02 +00005207fi
5208
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005209
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005210for ac_func in iswalnum
Patrik Stridvallea584721998-11-01 16:22:07 +00005211do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005212as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005213echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005214echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5215if eval "test \"\${$as_ac_var+set}\" = set"; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00005217else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005218 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005219#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005220/* confdefs.h. */
5221_ACEOF
5222cat confdefs.h >>conftest.$ac_ext
5223cat >>conftest.$ac_ext <<_ACEOF
5224/* end confdefs.h. */
Patrik Stridvallea584721998-11-01 16:22:07 +00005225/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005226 which can conflict with char $ac_func (); below.
5227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5228 <limits.h> exists even on freestanding compilers. */
5229#ifdef __STDC__
5230# include <limits.h>
5231#else
5232# include <assert.h>
5233#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00005234/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005235#ifdef __cplusplus
5236extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005237{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005238#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00005239/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005240 builtin and then its argument prototype would still apply. */
5241char $ac_func ();
Patrik Stridvallea584721998-11-01 16:22:07 +00005242/* The GNU C library defines this for functions which it implements
5243 to always fail with ENOSYS. Some functions are actually named
5244 something starting with __ and the normal name is an alias. */
5245#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5246choke me
5247#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005248char (*f) () = $ac_func;
5249#endif
5250#ifdef __cplusplus
5251}
Patrik Stridvallea584721998-11-01 16:22:07 +00005252#endif
5253
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005254int
5255main ()
5256{
5257return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005258 ;
5259 return 0;
5260}
5261_ACEOF
5262rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005264 (eval $ac_link) 2>&5
5265 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005267 (exit $ac_status); } &&
5268 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005270 (eval $ac_try) 2>&5
5271 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005273 (exit $ac_status); }; }; then
5274 eval "$as_ac_var=yes"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005275else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005276 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005277sed 's/^/| /' conftest.$ac_ext >&5
5278
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005279eval "$as_ac_var=no"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005280fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005281rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005282fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005284echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5285if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005286 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005287#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005288_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005289
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005290else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005291
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005292echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005293echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5294if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005296else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005297 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005298LIBS="-lw $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005299cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005300#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005301/* confdefs.h. */
5302_ACEOF
5303cat confdefs.h >>conftest.$ac_ext
5304cat >>conftest.$ac_ext <<_ACEOF
5305/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005306
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005307/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005308#ifdef __cplusplus
5309extern "C"
5310#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005311/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005312 builtin and then its argument prototype would still apply. */
5313char iswalnum ();
5314int
5315main ()
5316{
5317iswalnum ();
5318 ;
5319 return 0;
5320}
5321_ACEOF
5322rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005324 (eval $ac_link) 2>&5
5325 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005327 (exit $ac_status); } &&
5328 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005330 (eval $ac_try) 2>&5
5331 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005333 (exit $ac_status); }; }; then
5334 ac_cv_lib_w_iswalnum=yes
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005335else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005336 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005337sed 's/^/| /' conftest.$ac_ext >&5
5338
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005339ac_cv_lib_w_iswalnum=no
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005340fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005341rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5342LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005343fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005344echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005345echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5346if test $ac_cv_lib_w_iswalnum = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005347 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005348#define HAVE_LIBW 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005349_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005350
5351 LIBS="-lw $LIBS"
5352
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005353fi
5354
5355fi
5356done
5357
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005358
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005359for ac_func in gethostbyname
5360do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005361as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005362echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005363echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5364if eval "test \"\${$as_ac_var+set}\" = set"; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005366else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005367 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005368#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005369/* confdefs.h. */
5370_ACEOF
5371cat confdefs.h >>conftest.$ac_ext
5372cat >>conftest.$ac_ext <<_ACEOF
5373/* end confdefs.h. */
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005374/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005375 which can conflict with char $ac_func (); below.
5376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5377 <limits.h> exists even on freestanding compilers. */
5378#ifdef __STDC__
5379# include <limits.h>
5380#else
5381# include <assert.h>
5382#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005383/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005384#ifdef __cplusplus
5385extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005386{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005387#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005388/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005389 builtin and then its argument prototype would still apply. */
5390char $ac_func ();
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005391/* The GNU C library defines this for functions which it implements
5392 to always fail with ENOSYS. Some functions are actually named
5393 something starting with __ and the normal name is an alias. */
5394#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5395choke me
5396#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005397char (*f) () = $ac_func;
5398#endif
5399#ifdef __cplusplus
5400}
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005401#endif
5402
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005403int
5404main ()
5405{
5406return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005407 ;
5408 return 0;
5409}
5410_ACEOF
5411rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005413 (eval $ac_link) 2>&5
5414 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005416 (exit $ac_status); } &&
5417 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005419 (eval $ac_try) 2>&5
5420 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005422 (exit $ac_status); }; }; then
5423 eval "$as_ac_var=yes"
Patrik Stridvallea584721998-11-01 16:22:07 +00005424else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005425 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005426sed 's/^/| /' conftest.$ac_ext >&5
5427
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005428eval "$as_ac_var=no"
Patrik Stridvallea584721998-11-01 16:22:07 +00005429fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005430rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvallea584721998-11-01 16:22:07 +00005431fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005433echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5434if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005435 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005436#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005437_ACEOF
Patrik Stridvallea584721998-11-01 16:22:07 +00005438
Patrik Stridvallea584721998-11-01 16:22:07 +00005439else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005440
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005441echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005442echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5443if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00005445else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005446 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005447LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005448cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005449#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005450/* confdefs.h. */
5451_ACEOF
5452cat confdefs.h >>conftest.$ac_ext
5453cat >>conftest.$ac_ext <<_ACEOF
5454/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005455
Patrik Stridvallea584721998-11-01 16:22:07 +00005456/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005457#ifdef __cplusplus
5458extern "C"
5459#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00005460/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005461 builtin and then its argument prototype would still apply. */
5462char gethostbyname ();
5463int
5464main ()
5465{
5466gethostbyname ();
5467 ;
5468 return 0;
5469}
5470_ACEOF
5471rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005473 (eval $ac_link) 2>&5
5474 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005476 (exit $ac_status); } &&
5477 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005479 (eval $ac_try) 2>&5
5480 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005482 (exit $ac_status); }; }; then
5483 ac_cv_lib_nsl_gethostbyname=yes
Patrik Stridvallea584721998-11-01 16:22:07 +00005484else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005485 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005486sed 's/^/| /' conftest.$ac_ext >&5
5487
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005488ac_cv_lib_nsl_gethostbyname=no
Patrik Stridvallea584721998-11-01 16:22:07 +00005489fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005490rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5491LIBS=$ac_check_lib_save_LIBS
Patrik Stridvallea584721998-11-01 16:22:07 +00005492fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005493echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005494echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5495if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005496 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005497#define HAVE_LIBNSL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005498_ACEOF
Ron Recorde977d6c1999-09-05 12:32:05 +00005499
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005500 LIBS="-lnsl $LIBS"
5501
Ron Recorde977d6c1999-09-05 12:32:05 +00005502fi
5503
Patrik Stridvallea584721998-11-01 16:22:07 +00005504fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00005505done
5506
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005507
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005508for ac_func in connect
5509do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005511echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5513if eval "test \"\${$as_ac_var+set}\" = set"; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005515else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005516 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005517#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005518/* confdefs.h. */
5519_ACEOF
5520cat confdefs.h >>conftest.$ac_ext
5521cat >>conftest.$ac_ext <<_ACEOF
5522/* end confdefs.h. */
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005523/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005524 which can conflict with char $ac_func (); below.
5525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5526 <limits.h> exists even on freestanding compilers. */
5527#ifdef __STDC__
5528# include <limits.h>
5529#else
5530# include <assert.h>
5531#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005532/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005533#ifdef __cplusplus
5534extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005535{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005536#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005537/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005538 builtin and then its argument prototype would still apply. */
5539char $ac_func ();
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005540/* The GNU C library defines this for functions which it implements
5541 to always fail with ENOSYS. Some functions are actually named
5542 something starting with __ and the normal name is an alias. */
5543#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5544choke me
5545#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005546char (*f) () = $ac_func;
5547#endif
5548#ifdef __cplusplus
5549}
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005550#endif
5551
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005552int
5553main ()
5554{
5555return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005556 ;
5557 return 0;
5558}
5559_ACEOF
5560rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005562 (eval $ac_link) 2>&5
5563 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005565 (exit $ac_status); } &&
5566 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005568 (eval $ac_try) 2>&5
5569 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005571 (exit $ac_status); }; }; then
5572 eval "$as_ac_var=yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005573else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005574 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005575sed 's/^/| /' conftest.$ac_ext >&5
5576
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005577eval "$as_ac_var=no"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005578fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005579rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005580fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005582echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5583if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005584 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005585#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005586_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005587
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005588else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005589
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005590echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005591echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5592if test "${ac_cv_lib_socket_connect+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005594else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005595 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005596LIBS="-lsocket $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005597cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005598#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005599/* confdefs.h. */
5600_ACEOF
5601cat confdefs.h >>conftest.$ac_ext
5602cat >>conftest.$ac_ext <<_ACEOF
5603/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005604
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005605/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005606#ifdef __cplusplus
5607extern "C"
5608#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005609/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005610 builtin and then its argument prototype would still apply. */
5611char connect ();
5612int
5613main ()
5614{
5615connect ();
5616 ;
5617 return 0;
5618}
5619_ACEOF
5620rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005622 (eval $ac_link) 2>&5
5623 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005625 (exit $ac_status); } &&
5626 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005628 (eval $ac_try) 2>&5
5629 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005631 (exit $ac_status); }; }; then
5632 ac_cv_lib_socket_connect=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005633else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005634 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005635sed 's/^/| /' conftest.$ac_ext >&5
5636
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005637ac_cv_lib_socket_connect=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005638fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005639rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5640LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005641fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005642echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005643echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5644if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005645 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005646#define HAVE_LIBSOCKET 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005647_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005648
5649 LIBS="-lsocket $LIBS"
5650
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005651fi
5652
5653fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00005654done
5655
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005656
Alexandre Julliardc5552742002-04-03 20:24:44 +00005657for ac_func in inet_aton
5658do
5659as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005660echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005661echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5662if eval "test \"\${$as_ac_var+set}\" = set"; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5664else
5665 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005666#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005667/* confdefs.h. */
5668_ACEOF
5669cat confdefs.h >>conftest.$ac_ext
5670cat >>conftest.$ac_ext <<_ACEOF
5671/* end confdefs.h. */
Alexandre Julliardc5552742002-04-03 20:24:44 +00005672/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005673 which can conflict with char $ac_func (); below.
5674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5675 <limits.h> exists even on freestanding compilers. */
5676#ifdef __STDC__
5677# include <limits.h>
5678#else
5679# include <assert.h>
5680#endif
Alexandre Julliardc5552742002-04-03 20:24:44 +00005681/* Override any gcc2 internal prototype to avoid an error. */
5682#ifdef __cplusplus
5683extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005684{
Alexandre Julliardc5552742002-04-03 20:24:44 +00005685#endif
5686/* We use char because int might match the return type of a gcc2
5687 builtin and then its argument prototype would still apply. */
5688char $ac_func ();
Alexandre Julliardc5552742002-04-03 20:24:44 +00005689/* The GNU C library defines this for functions which it implements
5690 to always fail with ENOSYS. Some functions are actually named
5691 something starting with __ and the normal name is an alias. */
5692#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5693choke me
5694#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005695char (*f) () = $ac_func;
5696#endif
5697#ifdef __cplusplus
5698}
Alexandre Julliardc5552742002-04-03 20:24:44 +00005699#endif
5700
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005701int
5702main ()
5703{
5704return f != $ac_func;
Alexandre Julliardc5552742002-04-03 20:24:44 +00005705 ;
5706 return 0;
5707}
5708_ACEOF
5709rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005711 (eval $ac_link) 2>&5
5712 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005714 (exit $ac_status); } &&
5715 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005717 (eval $ac_try) 2>&5
5718 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005720 (exit $ac_status); }; }; then
5721 eval "$as_ac_var=yes"
5722else
5723 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005724sed 's/^/| /' conftest.$ac_ext >&5
5725
Alexandre Julliardc5552742002-04-03 20:24:44 +00005726eval "$as_ac_var=no"
5727fi
5728rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5729fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005731echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5732if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005733 cat >>confdefs.h <<_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00005734#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005735_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00005736
5737else
5738
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005739echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005740echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5741if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5743else
5744 ac_check_lib_save_LIBS=$LIBS
5745LIBS="-lresolv $LIBS"
5746cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005747#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005748/* confdefs.h. */
5749_ACEOF
5750cat confdefs.h >>conftest.$ac_ext
5751cat >>conftest.$ac_ext <<_ACEOF
5752/* end confdefs.h. */
Francois Gouget3b943bc2002-04-01 21:05:15 +00005753
5754/* Override any gcc2 internal prototype to avoid an error. */
5755#ifdef __cplusplus
5756extern "C"
5757#endif
5758/* We use char because int might match the return type of a gcc2
5759 builtin and then its argument prototype would still apply. */
5760char inet_aton ();
5761int
5762main ()
5763{
5764inet_aton ();
5765 ;
5766 return 0;
5767}
5768_ACEOF
5769rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005771 (eval $ac_link) 2>&5
5772 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005774 (exit $ac_status); } &&
5775 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005777 (eval $ac_try) 2>&5
5778 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005780 (exit $ac_status); }; }; then
5781 ac_cv_lib_resolv_inet_aton=yes
5782else
5783 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005784sed 's/^/| /' conftest.$ac_ext >&5
5785
Francois Gouget3b943bc2002-04-01 21:05:15 +00005786ac_cv_lib_resolv_inet_aton=no
5787fi
5788rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5789LIBS=$ac_check_lib_save_LIBS
5790fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005791echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005792echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5793if test $ac_cv_lib_resolv_inet_aton = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005794 cat >>confdefs.h <<_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00005795#define HAVE_LIBRESOLV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005796_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00005797
5798 LIBS="-lresolv $LIBS"
5799
5800fi
5801
Alexandre Julliardc5552742002-04-03 20:24:44 +00005802fi
5803done
5804
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005805
5806echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005807echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5808if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005810else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005811 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005812LIBS="-lxpg4 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005813cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005814#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005815/* confdefs.h. */
5816_ACEOF
5817cat confdefs.h >>conftest.$ac_ext
5818cat >>conftest.$ac_ext <<_ACEOF
5819/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005820
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005821/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005822#ifdef __cplusplus
5823extern "C"
5824#endif
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005825/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005826 builtin and then its argument prototype would still apply. */
5827char _xpg4_setrunelocale ();
5828int
5829main ()
5830{
5831_xpg4_setrunelocale ();
5832 ;
5833 return 0;
5834}
5835_ACEOF
5836rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005838 (eval $ac_link) 2>&5
5839 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005841 (exit $ac_status); } &&
5842 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005844 (eval $ac_try) 2>&5
5845 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005847 (exit $ac_status); }; }; then
5848 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005849else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005850 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005851sed 's/^/| /' conftest.$ac_ext >&5
5852
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005853ac_cv_lib_xpg4__xpg4_setrunelocale=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005854fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005855rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5856LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005857fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005858echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005859echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5860if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005861 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005862#define HAVE_LIBXPG4 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005863_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005864
5865 LIBS="-lxpg4 $LIBS"
5866
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005867fi
5868
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005869
5870echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005871echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5872if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005874else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005875 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005876LIBS="-lmmap $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005877cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005878#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005879/* confdefs.h. */
5880_ACEOF
5881cat confdefs.h >>conftest.$ac_ext
5882cat >>conftest.$ac_ext <<_ACEOF
5883/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005884
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005885/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005886#ifdef __cplusplus
5887extern "C"
5888#endif
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005889/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005890 builtin and then its argument prototype would still apply. */
5891char mmap ();
5892int
5893main ()
5894{
5895mmap ();
5896 ;
5897 return 0;
5898}
5899_ACEOF
5900rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005902 (eval $ac_link) 2>&5
5903 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005905 (exit $ac_status); } &&
5906 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005908 (eval $ac_try) 2>&5
5909 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005911 (exit $ac_status); }; }; then
5912 ac_cv_lib_mmap_mmap=yes
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005913else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005914 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005915sed 's/^/| /' conftest.$ac_ext >&5
5916
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005917ac_cv_lib_mmap_mmap=no
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005918fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005919rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5920LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005921fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005922echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005923echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5924if test $ac_cv_lib_mmap_mmap = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005925 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005926#define HAVE_LIBMMAP 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005927_ACEOF
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005928
5929 LIBS="-lmmap $LIBS"
5930
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005931fi
5932
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005933
Alexandre Julliardfa3a5362002-05-09 01:49:54 +00005934JPEGLIB=""
Alexandre Julliard562089b2001-12-31 22:28:35 +00005935
Alexandre Julliard11af04e2002-10-10 03:48:04 +00005936echo "$as_me:$LINENO: checking for egrep" >&5
5937echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5938if test "${ac_cv_prog_egrep+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5940else
5941 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5942 then ac_cv_prog_egrep='grep -E'
5943 else ac_cv_prog_egrep='egrep'
5944 fi
5945fi
5946echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5947echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5948 EGREP=$ac_cv_prog_egrep
5949
5950
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005951echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5952echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5953if test "${ac_cv_header_stdc+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005954 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00005955else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005956 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005957#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005958/* confdefs.h. */
5959_ACEOF
5960cat confdefs.h >>conftest.$ac_ext
5961cat >>conftest.$ac_ext <<_ACEOF
5962/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005963#include <stdlib.h>
5964#include <stdarg.h>
5965#include <string.h>
5966#include <float.h>
5967
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005968int
5969main ()
5970{
5971
5972 ;
5973 return 0;
5974}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005975_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005976rm -f conftest.$ac_objext
5977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5978 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005979 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005981 (exit $ac_status); } &&
5982 { ac_try='test -s conftest.$ac_objext'
5983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 (eval $ac_try) 2>&5
5985 ac_status=$?
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005988 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005989else
5990 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005991sed 's/^/| /' conftest.$ac_ext >&5
5992
5993ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005994fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005995rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005996
5997if test $ac_cv_header_stdc = yes; then
5998 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5999 cat >conftest.$ac_ext <<_ACEOF
6000#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006001/* confdefs.h. */
6002_ACEOF
6003cat confdefs.h >>conftest.$ac_ext
6004cat >>conftest.$ac_ext <<_ACEOF
6005/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006006#include <string.h>
6007
6008_ACEOF
6009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006010 $EGREP "memchr" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006011 :
6012else
6013 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00006014fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006015rm -f conftest*
6016
6017fi
6018
6019if test $ac_cv_header_stdc = yes; then
6020 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6021 cat >conftest.$ac_ext <<_ACEOF
6022#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006023/* confdefs.h. */
6024_ACEOF
6025cat confdefs.h >>conftest.$ac_ext
6026cat >>conftest.$ac_ext <<_ACEOF
6027/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006028#include <stdlib.h>
6029
6030_ACEOF
6031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006032 $EGREP "free" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006033 :
6034else
6035 ac_cv_header_stdc=no
6036fi
6037rm -f conftest*
6038
6039fi
6040
6041if test $ac_cv_header_stdc = yes; then
6042 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6043 if test "$cross_compiling" = yes; then
6044 :
6045else
6046 cat >conftest.$ac_ext <<_ACEOF
6047#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006048/* confdefs.h. */
6049_ACEOF
6050cat confdefs.h >>conftest.$ac_ext
6051cat >>conftest.$ac_ext <<_ACEOF
6052/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006053#include <ctype.h>
6054#if ((' ' & 0x0FF) == 0x020)
6055# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6056# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6057#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006058# define ISLOWER(c) \
6059 (('a' <= (c) && (c) <= 'i') \
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006060 || ('j' <= (c) && (c) <= 'r') \
6061 || ('s' <= (c) && (c) <= 'z'))
6062# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6063#endif
6064
6065#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6066int
6067main ()
6068{
6069 int i;
6070 for (i = 0; i < 256; i++)
6071 if (XOR (islower (i), ISLOWER (i))
6072 || toupper (i) != TOUPPER (i))
6073 exit(2);
6074 exit (0);
6075}
6076_ACEOF
6077rm -f conftest$ac_exeext
6078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6079 (eval $ac_link) 2>&5
6080 ac_status=$?
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 (eval $ac_try) 2>&5
6085 ac_status=$?
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; }; then
6088 :
6089else
6090 echo "$as_me: program exited with status $ac_status" >&5
6091echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006092sed 's/^/| /' conftest.$ac_ext >&5
6093
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006094( exit $ac_status )
6095ac_cv_header_stdc=no
6096fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006097rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006098fi
6099fi
6100fi
6101echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6102echo "${ECHO_T}$ac_cv_header_stdc" >&6
6103if test $ac_cv_header_stdc = yes; then
6104
6105cat >>confdefs.h <<\_ACEOF
6106#define STDC_HEADERS 1
6107_ACEOF
6108
6109fi
6110
6111# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6122 inttypes.h stdint.h unistd.h
6123do
6124as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6125echo "$as_me:$LINENO: checking for $ac_header" >&5
6126echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6127if eval "test \"\${$as_ac_Header+set}\" = set"; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6129else
6130 cat >conftest.$ac_ext <<_ACEOF
6131#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006132/* confdefs.h. */
6133_ACEOF
6134cat confdefs.h >>conftest.$ac_ext
6135cat >>conftest.$ac_ext <<_ACEOF
6136/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006137$ac_includes_default
6138
6139#include <$ac_header>
6140_ACEOF
6141rm -f conftest.$ac_objext
6142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6143 (eval $ac_compile) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } &&
6147 { ac_try='test -s conftest.$ac_objext'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6153 eval "$as_ac_Header=yes"
6154else
6155 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006156sed 's/^/| /' conftest.$ac_ext >&5
6157
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006158eval "$as_ac_Header=no"
6159fi
6160rm -f conftest.$ac_objext conftest.$ac_ext
6161fi
6162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006163echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6164if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006165 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006166#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006167_ACEOF
6168
6169fi
6170
6171done
6172
6173
6174
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006175for ac_header in jpeglib.h
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006176do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006177as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006178if eval "test \"\${$as_ac_Header+set}\" = set"; then
6179 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6181if eval "test \"\${$as_ac_Header+set}\" = set"; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006183fi
6184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6185echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006186else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006187 # Is the header compilable?
6188echo "$as_me:$LINENO: checking $ac_header usability" >&5
6189echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6190cat >conftest.$ac_ext <<_ACEOF
6191#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006192/* confdefs.h. */
6193_ACEOF
6194cat confdefs.h >>conftest.$ac_ext
6195cat >>conftest.$ac_ext <<_ACEOF
6196/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006197$ac_includes_default
6198#include <$ac_header>
6199_ACEOF
6200rm -f conftest.$ac_objext
6201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6202 (eval $ac_compile) 2>&5
6203 ac_status=$?
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } &&
6206 { ac_try='test -s conftest.$ac_objext'
6207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 (eval $ac_try) 2>&5
6209 ac_status=$?
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }; }; then
6212 ac_header_compiler=yes
6213else
6214 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006215sed 's/^/| /' conftest.$ac_ext >&5
6216
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006217ac_header_compiler=no
6218fi
6219rm -f conftest.$ac_objext conftest.$ac_ext
6220echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6221echo "${ECHO_T}$ac_header_compiler" >&6
6222
6223# Is the header present?
6224echo "$as_me:$LINENO: checking $ac_header presence" >&5
6225echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6226cat >conftest.$ac_ext <<_ACEOF
6227#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006228/* confdefs.h. */
6229_ACEOF
6230cat confdefs.h >>conftest.$ac_ext
6231cat >>conftest.$ac_ext <<_ACEOF
6232/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006233#include <$ac_header>
6234_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006235if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6237 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006238 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006239 rm -f conftest.er1
6240 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006242 (exit $ac_status); } >/dev/null; then
6243 if test -s conftest.err; then
6244 ac_cpp_err=$ac_c_preproc_warn_flag
6245 else
6246 ac_cpp_err=
6247 fi
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006248else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006249 ac_cpp_err=yes
6250fi
6251if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006252 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006253else
6254 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006255sed 's/^/| /' conftest.$ac_ext >&5
6256
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006257 ac_header_preproc=no
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006258fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006259rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006260echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6261echo "${ECHO_T}$ac_header_preproc" >&6
6262
6263# So? What about this header?
6264case $ac_header_compiler:$ac_header_preproc in
6265 yes:no )
6266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6267echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006269echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6270 (
6271 cat <<\_ASBOX
6272## ------------------------------------ ##
6273## Report this to bug-autoconf@gnu.org. ##
6274## ------------------------------------ ##
6275_ASBOX
6276 ) |
6277 sed "s/^/$as_me: WARNING: /" >&2
6278 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006279 no:yes )
6280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6281echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6283echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006285echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6286 (
6287 cat <<\_ASBOX
6288## ------------------------------------ ##
6289## Report this to bug-autoconf@gnu.org. ##
6290## ------------------------------------ ##
6291_ASBOX
6292 ) |
6293 sed "s/^/$as_me: WARNING: /" >&2
6294 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006295esac
6296echo "$as_me:$LINENO: checking for $ac_header" >&5
6297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6298if eval "test \"\${$as_ac_Header+set}\" = set"; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6300else
6301 eval "$as_ac_Header=$ac_header_preproc"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006302fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006304echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006305
6306fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006307if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006308 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006309#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006310_ACEOF
6311 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006312echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6313if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006315else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006316 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006317LIBS="-ljpeg $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006318cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006319#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006320/* confdefs.h. */
6321_ACEOF
6322cat confdefs.h >>conftest.$ac_ext
6323cat >>conftest.$ac_ext <<_ACEOF
6324/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006325
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006326/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006327#ifdef __cplusplus
6328extern "C"
6329#endif
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006330/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006331 builtin and then its argument prototype would still apply. */
6332char jpeg_start_decompress ();
6333int
6334main ()
6335{
6336jpeg_start_decompress ();
6337 ;
6338 return 0;
6339}
6340_ACEOF
6341rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006343 (eval $ac_link) 2>&5
6344 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006346 (exit $ac_status); } &&
6347 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006349 (eval $ac_try) 2>&5
6350 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006352 (exit $ac_status); }; }; then
6353 ac_cv_lib_jpeg_jpeg_start_decompress=yes
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006354else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006355 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006356sed 's/^/| /' conftest.$ac_ext >&5
6357
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006358ac_cv_lib_jpeg_jpeg_start_decompress=no
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006359fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006360rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6361LIBS=$ac_check_lib_save_LIBS
6362fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006363echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006364echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6365if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006366
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006367cat >>confdefs.h <<\_ACEOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006368#define HAVE_LIBJPEG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006369_ACEOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006370
6371 JPEGLIB="-ljpeg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006372
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006373fi
6374
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006375
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006376fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006377
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006378done
6379
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006380
Marcus Meissner728bedc2003-01-09 06:04:33 +00006381GIFLIB=""
6382
6383
6384for ac_header in gif_lib.h
6385do
6386as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6387if eval "test \"\${$as_ac_Header+set}\" = set"; then
6388 echo "$as_me:$LINENO: checking for $ac_header" >&5
6389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6390if eval "test \"\${$as_ac_Header+set}\" = set"; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6392fi
6393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6395else
6396 # Is the header compilable?
6397echo "$as_me:$LINENO: checking $ac_header usability" >&5
6398echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6399cat >conftest.$ac_ext <<_ACEOF
6400#line $LINENO "configure"
6401/* confdefs.h. */
6402_ACEOF
6403cat confdefs.h >>conftest.$ac_ext
6404cat >>conftest.$ac_ext <<_ACEOF
6405/* end confdefs.h. */
6406$ac_includes_default
6407#include <$ac_header>
6408_ACEOF
6409rm -f conftest.$ac_objext
6410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411 (eval $ac_compile) 2>&5
6412 ac_status=$?
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } &&
6415 { ac_try='test -s conftest.$ac_objext'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 (eval $ac_try) 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6421 ac_header_compiler=yes
6422else
6423 echo "$as_me: failed program was:" >&5
6424sed 's/^/| /' conftest.$ac_ext >&5
6425
6426ac_header_compiler=no
6427fi
6428rm -f conftest.$ac_objext conftest.$ac_ext
6429echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6430echo "${ECHO_T}$ac_header_compiler" >&6
6431
6432# Is the header present?
6433echo "$as_me:$LINENO: checking $ac_header presence" >&5
6434echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6435cat >conftest.$ac_ext <<_ACEOF
6436#line $LINENO "configure"
6437/* confdefs.h. */
6438_ACEOF
6439cat confdefs.h >>conftest.$ac_ext
6440cat >>conftest.$ac_ext <<_ACEOF
6441/* end confdefs.h. */
6442#include <$ac_header>
6443_ACEOF
6444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6446 ac_status=$?
6447 grep -v '^ *+' conftest.er1 >conftest.err
6448 rm -f conftest.er1
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } >/dev/null; then
6452 if test -s conftest.err; then
6453 ac_cpp_err=$ac_c_preproc_warn_flag
6454 else
6455 ac_cpp_err=
6456 fi
6457else
6458 ac_cpp_err=yes
6459fi
6460if test -z "$ac_cpp_err"; then
6461 ac_header_preproc=yes
6462else
6463 echo "$as_me: failed program was:" >&5
6464sed 's/^/| /' conftest.$ac_ext >&5
6465
6466 ac_header_preproc=no
6467fi
6468rm -f conftest.err conftest.$ac_ext
6469echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6470echo "${ECHO_T}$ac_header_preproc" >&6
6471
6472# So? What about this header?
6473case $ac_header_compiler:$ac_header_preproc in
6474 yes:no )
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6476echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6478echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6479 (
6480 cat <<\_ASBOX
6481## ------------------------------------ ##
6482## Report this to bug-autoconf@gnu.org. ##
6483## ------------------------------------ ##
6484_ASBOX
6485 ) |
6486 sed "s/^/$as_me: WARNING: /" >&2
6487 ;;
6488 no:yes )
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6492echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6494echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6495 (
6496 cat <<\_ASBOX
6497## ------------------------------------ ##
6498## Report this to bug-autoconf@gnu.org. ##
6499## ------------------------------------ ##
6500_ASBOX
6501 ) |
6502 sed "s/^/$as_me: WARNING: /" >&2
6503 ;;
6504esac
6505echo "$as_me:$LINENO: checking for $ac_header" >&5
6506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6507if eval "test \"\${$as_ac_Header+set}\" = set"; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6509else
6510 eval "$as_ac_Header=$ac_header_preproc"
6511fi
6512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6514
6515fi
6516if test `eval echo '${'$as_ac_Header'}'` = yes; then
6517 cat >>confdefs.h <<_ACEOF
6518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6519_ACEOF
6520 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
6521echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
6522if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6524else
6525 ac_check_lib_save_LIBS=$LIBS
6526LIBS="-lungif $LIBS"
6527cat >conftest.$ac_ext <<_ACEOF
6528#line $LINENO "configure"
6529/* confdefs.h. */
6530_ACEOF
6531cat confdefs.h >>conftest.$ac_ext
6532cat >>conftest.$ac_ext <<_ACEOF
6533/* end confdefs.h. */
6534
6535/* Override any gcc2 internal prototype to avoid an error. */
6536#ifdef __cplusplus
6537extern "C"
6538#endif
6539/* We use char because int might match the return type of a gcc2
6540 builtin and then its argument prototype would still apply. */
6541char DGifOpen ();
6542int
6543main ()
6544{
6545DGifOpen ();
6546 ;
6547 return 0;
6548}
6549_ACEOF
6550rm -f conftest.$ac_objext conftest$ac_exeext
6551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6552 (eval $ac_link) 2>&5
6553 ac_status=$?
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } &&
6556 { ac_try='test -s conftest$ac_exeext'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 (eval $ac_try) 2>&5
6559 ac_status=$?
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
6562 ac_cv_lib_ungif_DGifOpen=yes
6563else
6564 echo "$as_me: failed program was:" >&5
6565sed 's/^/| /' conftest.$ac_ext >&5
6566
6567ac_cv_lib_ungif_DGifOpen=no
6568fi
6569rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6570LIBS=$ac_check_lib_save_LIBS
6571fi
6572echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
6573echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
6574if test $ac_cv_lib_ungif_DGifOpen = yes; then
6575
6576cat >>confdefs.h <<\_ACEOF
6577#define HAVE_LIBGIF 1
6578_ACEOF
6579
6580 GIFLIB="-lungif"
6581else
6582 echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
6583echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
6584if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586else
6587 ac_check_lib_save_LIBS=$LIBS
6588LIBS="-lgif $LIBS"
6589cat >conftest.$ac_ext <<_ACEOF
6590#line $LINENO "configure"
6591/* confdefs.h. */
6592_ACEOF
6593cat confdefs.h >>conftest.$ac_ext
6594cat >>conftest.$ac_ext <<_ACEOF
6595/* end confdefs.h. */
6596
6597/* Override any gcc2 internal prototype to avoid an error. */
6598#ifdef __cplusplus
6599extern "C"
6600#endif
6601/* We use char because int might match the return type of a gcc2
6602 builtin and then its argument prototype would still apply. */
6603char DGifOpen ();
6604int
6605main ()
6606{
6607DGifOpen ();
6608 ;
6609 return 0;
6610}
6611_ACEOF
6612rm -f conftest.$ac_objext conftest$ac_exeext
6613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6614 (eval $ac_link) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } &&
6618 { ac_try='test -s conftest$ac_exeext'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 (eval $ac_try) 2>&5
6621 ac_status=$?
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; }; then
6624 ac_cv_lib_gif_DGifOpen=yes
6625else
6626 echo "$as_me: failed program was:" >&5
6627sed 's/^/| /' conftest.$ac_ext >&5
6628
6629ac_cv_lib_gif_DGifOpen=no
6630fi
6631rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6632LIBS=$ac_check_lib_save_LIBS
6633fi
6634echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
6635echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
6636if test $ac_cv_lib_gif_DGifOpen = yes; then
6637 cat >>confdefs.h <<\_ACEOF
6638#define HAVE_LIBGIF 1
6639_ACEOF
6640
6641 GIFLIB="-lgif"
6642fi
6643
6644fi
6645
6646fi
6647
6648done
6649
6650
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006651
6652
6653
Patrik Stridvall2941a212000-04-25 20:34:22 +00006654XFILES=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006655
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00006656OPENGLFILES=""
6657
Marcus Meissnerb63ab442001-06-08 19:02:57 +00006658GLU32FILES=""
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00006659
6660OPENGL_LIBS=""
Patrik Stridvallea584721998-11-01 16:22:07 +00006661if test "$have_x" = "yes"
6662then
Patrik Stridvall24110281999-02-04 10:09:54 +00006663 XLIB="-lXext -lX11"
Ove Kaaven1eb593c1999-02-14 09:34:46 +00006664 ac_save_CPPFLAGS="$CPPFLAGS"
6665 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00006666
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006667
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006668for ac_header in X11/Xlib.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00006669do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006670as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006671if eval "test \"\${$as_ac_Header+set}\" = set"; then
6672 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6674if eval "test \"\${$as_ac_Header+set}\" = set"; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006676fi
6677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6678echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Lionel Ulmera1d6d241999-01-30 15:54:43 +00006679else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006680 # Is the header compilable?
6681echo "$as_me:$LINENO: checking $ac_header usability" >&5
6682echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6683cat >conftest.$ac_ext <<_ACEOF
6684#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006685/* confdefs.h. */
6686_ACEOF
6687cat confdefs.h >>conftest.$ac_ext
6688cat >>conftest.$ac_ext <<_ACEOF
6689/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006690$ac_includes_default
6691#include <$ac_header>
6692_ACEOF
6693rm -f conftest.$ac_objext
6694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6695 (eval $ac_compile) 2>&5
6696 ac_status=$?
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); } &&
6699 { ac_try='test -s conftest.$ac_objext'
6700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 (eval $ac_try) 2>&5
6702 ac_status=$?
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; }; then
6705 ac_header_compiler=yes
6706else
6707 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006708sed 's/^/| /' conftest.$ac_ext >&5
6709
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006710ac_header_compiler=no
6711fi
6712rm -f conftest.$ac_objext conftest.$ac_ext
6713echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6714echo "${ECHO_T}$ac_header_compiler" >&6
6715
6716# Is the header present?
6717echo "$as_me:$LINENO: checking $ac_header presence" >&5
6718echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6719cat >conftest.$ac_ext <<_ACEOF
6720#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006721/* confdefs.h. */
6722_ACEOF
6723cat confdefs.h >>conftest.$ac_ext
6724cat >>conftest.$ac_ext <<_ACEOF
6725/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006726#include <$ac_header>
6727_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006728if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6730 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006731 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006732 rm -f conftest.er1
6733 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006735 (exit $ac_status); } >/dev/null; then
6736 if test -s conftest.err; then
6737 ac_cpp_err=$ac_c_preproc_warn_flag
6738 else
6739 ac_cpp_err=
6740 fi
Lionel Ulmera1d6d241999-01-30 15:54:43 +00006741else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006742 ac_cpp_err=yes
6743fi
6744if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006745 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006746else
6747 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006748sed 's/^/| /' conftest.$ac_ext >&5
6749
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006750 ac_header_preproc=no
Lionel Ulmera1d6d241999-01-30 15:54:43 +00006751fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006752rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006753echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6754echo "${ECHO_T}$ac_header_preproc" >&6
6755
6756# So? What about this header?
6757case $ac_header_compiler:$ac_header_preproc in
6758 yes:no )
6759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6760echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006762echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6763 (
6764 cat <<\_ASBOX
6765## ------------------------------------ ##
6766## Report this to bug-autoconf@gnu.org. ##
6767## ------------------------------------ ##
6768_ASBOX
6769 ) |
6770 sed "s/^/$as_me: WARNING: /" >&2
6771 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006772 no:yes )
6773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6774echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6776echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006778echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6779 (
6780 cat <<\_ASBOX
6781## ------------------------------------ ##
6782## Report this to bug-autoconf@gnu.org. ##
6783## ------------------------------------ ##
6784_ASBOX
6785 ) |
6786 sed "s/^/$as_me: WARNING: /" >&2
6787 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006788esac
6789echo "$as_me:$LINENO: checking for $ac_header" >&5
6790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6791if eval "test \"\${$as_ac_Header+set}\" = set"; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6793else
6794 eval "$as_ac_Header=$ac_header_preproc"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00006795fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006798
6799fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006800if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006801 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006802#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006803_ACEOF
6804
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006805
6806for ac_header in X11/XKBlib.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006807do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006808as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006809echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6811if eval "test \"\${$as_ac_Header+set}\" = set"; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006813else
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006814 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006815#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006816/* confdefs.h. */
6817_ACEOF
6818cat confdefs.h >>conftest.$ac_ext
6819cat >>conftest.$ac_ext <<_ACEOF
6820/* end confdefs.h. */
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006821#include <X11/Xlib.h>
6822
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006823#include <$ac_header>
6824_ACEOF
6825rm -f conftest.$ac_objext
6826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6827 (eval $ac_compile) 2>&5
6828 ac_status=$?
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } &&
6831 { ac_try='test -s conftest.$ac_objext'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 (eval $ac_try) 2>&5
6834 ac_status=$?
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; }; then
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006837 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006838else
6839 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006840sed 's/^/| /' conftest.$ac_ext >&5
6841
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006842eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006843fi
6844rm -f conftest.$ac_objext conftest.$ac_ext
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006845fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6848if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006849 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006850#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006851_ACEOF
6852 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006853echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6854if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006856else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006857 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00006858LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006859cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006860#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006861/* confdefs.h. */
6862_ACEOF
6863cat confdefs.h >>conftest.$ac_ext
6864cat >>conftest.$ac_ext <<_ACEOF
6865/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006866
Patrik Stridvall24110281999-02-04 10:09:54 +00006867/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006868#ifdef __cplusplus
6869extern "C"
6870#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00006871/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006872 builtin and then its argument prototype would still apply. */
6873char XkbQueryExtension ();
6874int
6875main ()
6876{
6877XkbQueryExtension ();
6878 ;
6879 return 0;
6880}
6881_ACEOF
6882rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006884 (eval $ac_link) 2>&5
6885 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006887 (exit $ac_status); } &&
6888 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006890 (eval $ac_try) 2>&5
6891 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006893 (exit $ac_status); }; }; then
6894 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00006895else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006896 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006897sed 's/^/| /' conftest.$ac_ext >&5
6898
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006899ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006900fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006901rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6902LIBS=$ac_check_lib_save_LIBS
6903fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006904echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006905echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6906if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00006907
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006908cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006909#define HAVE_XKB 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006910_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00006911
Patrik Stridvall24110281999-02-04 10:09:54 +00006912fi
6913
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006914
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006915else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006916 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006917echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006918fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006919
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006920done
6921
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006922
6923
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006924for ac_header in X11/extensions/XShm.h
Patrik Stridvall24110281999-02-04 10:09:54 +00006925do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006926as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006927echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6929if eval "test \"\${$as_ac_Header+set}\" = set"; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006931else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006932 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006933#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006934/* confdefs.h. */
6935_ACEOF
6936cat confdefs.h >>conftest.$ac_ext
6937cat >>conftest.$ac_ext <<_ACEOF
6938/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006939#include <X11/Xlib.h>
6940
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006941#include <$ac_header>
6942_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006943rm -f conftest.$ac_objext
6944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6945 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006946 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } &&
6949 { ac_try='test -s conftest.$ac_objext'
6950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 (eval $ac_try) 2>&5
6952 ac_status=$?
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006955 eval "$as_ac_Header=yes"
6956else
6957 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006958sed 's/^/| /' conftest.$ac_ext >&5
6959
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006960eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00006961fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006962rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00006963fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6966if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006967 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006968#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006969_ACEOF
6970 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006971echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6972if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00006974else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006975 ac_check_lib_save_LIBS=$LIBS
Francois Jacques5b6879c2000-07-28 23:04:54 +00006976LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006977cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006978#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006979/* confdefs.h. */
6980_ACEOF
6981cat confdefs.h >>conftest.$ac_ext
6982cat >>conftest.$ac_ext <<_ACEOF
6983/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006984
Francois Jacques5b6879c2000-07-28 23:04:54 +00006985/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006986#ifdef __cplusplus
6987extern "C"
6988#endif
Francois Jacques5b6879c2000-07-28 23:04:54 +00006989/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006990 builtin and then its argument prototype would still apply. */
6991char XShmQueryExtension ();
6992int
6993main ()
6994{
6995XShmQueryExtension ();
6996 ;
6997 return 0;
6998}
6999_ACEOF
7000rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007002 (eval $ac_link) 2>&5
7003 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007005 (exit $ac_status); } &&
7006 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007008 (eval $ac_try) 2>&5
7009 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007011 (exit $ac_status); }; }; then
7012 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00007013else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007014 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007015sed 's/^/| /' conftest.$ac_ext >&5
7016
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007017ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00007018fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007019rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7020LIBS=$ac_check_lib_save_LIBS
7021fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007022echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007023echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7024if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00007025
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007026cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007027#define HAVE_LIBXXSHM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007028_ACEOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00007029
Francois Jacques5b6879c2000-07-28 23:04:54 +00007030fi
7031
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007032
Francois Jacques5b6879c2000-07-28 23:04:54 +00007033else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007034 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007035echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
Francois Jacques5b6879c2000-07-28 23:04:54 +00007036fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007037
Francois Jacques5b6879c2000-07-28 23:04:54 +00007038done
7039
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007040
7041
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007042for ac_header in X11/Xutil.h
7043do
7044as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7045echo "$as_me:$LINENO: checking for $ac_header" >&5
7046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7047if eval "test \"\${$as_ac_Header+set}\" = set"; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7049else
7050 cat >conftest.$ac_ext <<_ACEOF
7051#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007052/* confdefs.h. */
7053_ACEOF
7054cat confdefs.h >>conftest.$ac_ext
7055cat >>conftest.$ac_ext <<_ACEOF
7056/* end confdefs.h. */
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007057#include <X11/Xlib.h>
7058
7059#include <$ac_header>
7060_ACEOF
7061rm -f conftest.$ac_objext
7062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7063 (eval $ac_compile) 2>&5
7064 ac_status=$?
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } &&
7067 { ac_try='test -s conftest.$ac_objext'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069 (eval $ac_try) 2>&5
7070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; }; then
7073 eval "$as_ac_Header=yes"
7074else
7075 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007076sed 's/^/| /' conftest.$ac_ext >&5
7077
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007078eval "$as_ac_Header=no"
7079fi
7080rm -f conftest.$ac_objext conftest.$ac_ext
7081fi
7082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7083echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7084if test `eval echo '${'$as_ac_Header'}'` = yes; then
7085 cat >>confdefs.h <<_ACEOF
7086#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7087_ACEOF
7088
7089fi
7090
7091done
7092
7093
7094
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007095for ac_header in X11/extensions/shape.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00007096do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007098echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7100if eval "test \"\${$as_ac_Header+set}\" = set"; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00007102else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007103 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007104#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007105/* confdefs.h. */
7106_ACEOF
7107cat confdefs.h >>conftest.$ac_ext
7108cat >>conftest.$ac_ext <<_ACEOF
7109/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007110#include <X11/Xlib.h>
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007111 #ifdef HAVE_X11_XUTIL_H
7112 # include <X11/Xutil.h>
7113 #endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007114
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007115#include <$ac_header>
7116_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007117rm -f conftest.$ac_objext
7118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7119 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007120 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } &&
7123 { ac_try='test -s conftest.$ac_objext'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 (eval $ac_try) 2>&5
7126 ac_status=$?
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007129 eval "$as_ac_Header=yes"
7130else
7131 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007132sed 's/^/| /' conftest.$ac_ext >&5
7133
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007134eval "$as_ac_Header=no"
Francois Jacques5b6879c2000-07-28 23:04:54 +00007135fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007136rm -f conftest.$ac_objext conftest.$ac_ext
Francois Jacques5b6879c2000-07-28 23:04:54 +00007137fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007139echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7140if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007141 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007142#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007143_ACEOF
7144 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007145echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7146if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00007148else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007149 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00007150LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007151cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007152#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007153/* confdefs.h. */
7154_ACEOF
7155cat confdefs.h >>conftest.$ac_ext
7156cat >>conftest.$ac_ext <<_ACEOF
7157/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007158
Ove Kaavenc90fb252001-01-02 22:39:14 +00007159/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007160#ifdef __cplusplus
7161extern "C"
7162#endif
Ove Kaavenc90fb252001-01-02 22:39:14 +00007163/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007164 builtin and then its argument prototype would still apply. */
7165char XShapeQueryExtension ();
7166int
7167main ()
7168{
7169XShapeQueryExtension ();
7170 ;
7171 return 0;
7172}
7173_ACEOF
7174rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007176 (eval $ac_link) 2>&5
7177 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007179 (exit $ac_status); } &&
7180 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007182 (eval $ac_try) 2>&5
7183 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007185 (exit $ac_status); }; }; then
7186 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00007187else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007188 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007189sed 's/^/| /' conftest.$ac_ext >&5
7190
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007191ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00007192fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007193rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7194LIBS=$ac_check_lib_save_LIBS
7195fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007196echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007197echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7198if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00007199
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007200cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007201#define HAVE_LIBXSHAPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007202_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007203
Ove Kaavenc90fb252001-01-02 22:39:14 +00007204fi
7205
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007206
Ove Kaavenc90fb252001-01-02 22:39:14 +00007207else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007208 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007209echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
Ove Kaavenc90fb252001-01-02 22:39:14 +00007210fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007211
Ove Kaavenc90fb252001-01-02 22:39:14 +00007212done
7213
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007214
7215
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007216for ac_header in X11/extensions/xf86dga.h
Ove Kaavenc90fb252001-01-02 22:39:14 +00007217do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007218as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007219echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7221if eval "test \"\${$as_ac_Header+set}\" = set"; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00007223else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007224 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007225#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007226/* confdefs.h. */
7227_ACEOF
7228cat confdefs.h >>conftest.$ac_ext
7229cat >>conftest.$ac_ext <<_ACEOF
7230/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007231#include <X11/Xlib.h>
7232
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007233#include <$ac_header>
7234_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007235rm -f conftest.$ac_objext
7236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7237 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007238 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } &&
7241 { ac_try='test -s conftest.$ac_objext'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 (eval $ac_try) 2>&5
7244 ac_status=$?
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007247 eval "$as_ac_Header=yes"
7248else
7249 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007250sed 's/^/| /' conftest.$ac_ext >&5
7251
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007252eval "$as_ac_Header=no"
Ove Kaavenc90fb252001-01-02 22:39:14 +00007253fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007254rm -f conftest.$ac_objext conftest.$ac_ext
Ove Kaavenc90fb252001-01-02 22:39:14 +00007255fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7258if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007259 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007261_ACEOF
7262 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007263echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7264if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007266else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007267 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner10ad97c2000-04-09 14:30:50 +00007268LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007269 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007270cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007271#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007272/* confdefs.h. */
7273_ACEOF
7274cat confdefs.h >>conftest.$ac_ext
7275cat >>conftest.$ac_ext <<_ACEOF
7276/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007277
Patrik Stridvall24110281999-02-04 10:09:54 +00007278/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007279#ifdef __cplusplus
7280extern "C"
7281#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007282/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007283 builtin and then its argument prototype would still apply. */
7284char XDGAQueryExtension ();
7285int
7286main ()
7287{
7288XDGAQueryExtension ();
7289 ;
7290 return 0;
7291}
7292_ACEOF
7293rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007295 (eval $ac_link) 2>&5
7296 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007298 (exit $ac_status); } &&
7299 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007301 (eval $ac_try) 2>&5
7302 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007304 (exit $ac_status); }; }; then
7305 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007306else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007307 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007308sed 's/^/| /' conftest.$ac_ext >&5
7309
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007310ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007311fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007312rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7313LIBS=$ac_check_lib_save_LIBS
7314fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007315echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007316echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7317if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007318
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007319cat >>confdefs.h <<\_ACEOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007320#define HAVE_LIBXXF86DGA2 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007321_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00007322
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007323 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007324
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007325else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007326 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007327echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7328if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007330else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007331 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007332LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7333 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007334cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007335#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007336/* confdefs.h. */
7337_ACEOF
7338cat confdefs.h >>conftest.$ac_ext
7339cat >>conftest.$ac_ext <<_ACEOF
7340/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007341
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007342/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007343#ifdef __cplusplus
7344extern "C"
7345#endif
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007346/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007347 builtin and then its argument prototype would still apply. */
7348char XF86DGAQueryExtension ();
7349int
7350main ()
7351{
7352XF86DGAQueryExtension ();
7353 ;
7354 return 0;
7355}
7356_ACEOF
7357rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007359 (eval $ac_link) 2>&5
7360 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007362 (exit $ac_status); } &&
7363 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007365 (eval $ac_try) 2>&5
7366 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007368 (exit $ac_status); }; }; then
7369 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007370else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007371 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007372sed 's/^/| /' conftest.$ac_ext >&5
7373
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007374ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007375fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007376rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7377LIBS=$ac_check_lib_save_LIBS
7378fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007379echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007380echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7381if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00007382
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007383cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00007384#define HAVE_LIBXXF86DGA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007385_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00007386
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007387 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007388
Patrik Stridvall24110281999-02-04 10:09:54 +00007389fi
7390
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007391
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007392fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007393
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007394
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007395else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007396 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007397echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007398fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007399
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007400done
7401
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007402
7403
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007404for ac_header in X11/extensions/xf86vmode.h
Patrik Stridvall24110281999-02-04 10:09:54 +00007405do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007407echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7409if eval "test \"\${$as_ac_Header+set}\" = set"; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007411else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007412 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007413#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007414/* confdefs.h. */
7415_ACEOF
7416cat confdefs.h >>conftest.$ac_ext
7417cat >>conftest.$ac_ext <<_ACEOF
7418/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007419#include <X11/Xlib.h>
7420
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007421#include <$ac_header>
7422_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007423rm -f conftest.$ac_objext
7424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7425 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007426 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } &&
7429 { ac_try='test -s conftest.$ac_objext'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 (eval $ac_try) 2>&5
7432 ac_status=$?
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007435 eval "$as_ac_Header=yes"
7436else
7437 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007438sed 's/^/| /' conftest.$ac_ext >&5
7439
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007440eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00007441fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007442rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00007443fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007444echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007445echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7446if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007447 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007448#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007449_ACEOF
7450 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007451echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7452if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007454else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007455 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007456LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7457 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007458cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007459#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007460/* confdefs.h. */
7461_ACEOF
7462cat confdefs.h >>conftest.$ac_ext
7463cat >>conftest.$ac_ext <<_ACEOF
7464/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007465
Patrik Stridvall24110281999-02-04 10:09:54 +00007466/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007467#ifdef __cplusplus
7468extern "C"
7469#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007470/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007471 builtin and then its argument prototype would still apply. */
7472char XF86VidModeQueryExtension ();
7473int
7474main ()
7475{
7476XF86VidModeQueryExtension ();
7477 ;
7478 return 0;
7479}
7480_ACEOF
7481rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007483 (eval $ac_link) 2>&5
7484 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007486 (exit $ac_status); } &&
7487 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007489 (eval $ac_try) 2>&5
7490 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007492 (exit $ac_status); }; }; then
7493 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007494else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007495 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007496sed 's/^/| /' conftest.$ac_ext >&5
7497
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007498ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007499fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007500rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7501LIBS=$ac_check_lib_save_LIBS
7502fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007503echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007504echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7505if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00007506
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007507cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00007508#define HAVE_LIBXXF86VM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007509_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007510
7511 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007512
Patrik Stridvall24110281999-02-04 10:09:54 +00007513fi
7514
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007515
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007516else
7517 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
7518echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007519fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007520
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007521done
Lionel Ulmer5c085701999-02-28 19:48:53 +00007522
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007523
7524
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007525for ac_header in X11/extensions/Xvlib.h
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007526do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007527as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007528echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7530if eval "test \"\${$as_ac_Header+set}\" = set"; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007532else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007533 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007534#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007535/* confdefs.h. */
7536_ACEOF
7537cat confdefs.h >>conftest.$ac_ext
7538cat >>conftest.$ac_ext <<_ACEOF
7539/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007540#include <X11/Xlib.h>
7541
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007542#include <$ac_header>
7543_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007544rm -f conftest.$ac_objext
7545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7546 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007547 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } &&
7550 { ac_try='test -s conftest.$ac_objext'
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552 (eval $ac_try) 2>&5
7553 ac_status=$?
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007556 eval "$as_ac_Header=yes"
7557else
7558 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007559sed 's/^/| /' conftest.$ac_ext >&5
7560
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007561eval "$as_ac_Header=no"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007562fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007563rm -f conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007564fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007566echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7567if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007568 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007569#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007570_ACEOF
7571 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007572echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7573if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007575else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007576 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007577LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7578 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007579cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007580#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007581/* confdefs.h. */
7582_ACEOF
7583cat confdefs.h >>conftest.$ac_ext
7584cat >>conftest.$ac_ext <<_ACEOF
7585/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007586
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007587/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007588#ifdef __cplusplus
7589extern "C"
7590#endif
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007591/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007592 builtin and then its argument prototype would still apply. */
7593char XvShmCreateImage ();
7594int
7595main ()
7596{
7597XvShmCreateImage ();
7598 ;
7599 return 0;
7600}
7601_ACEOF
7602rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007604 (eval $ac_link) 2>&5
7605 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007607 (exit $ac_status); } &&
7608 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007610 (eval $ac_try) 2>&5
7611 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007613 (exit $ac_status); }; }; then
7614 ac_cv_lib_Xv_XvShmCreateImage=yes
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007615else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007616 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007617sed 's/^/| /' conftest.$ac_ext >&5
7618
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007619ac_cv_lib_Xv_XvShmCreateImage=no
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007620fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007621rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7622LIBS=$ac_check_lib_save_LIBS
7623fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007624echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007625echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7626if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007627
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007628cat >>confdefs.h <<\_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007629#define HAVE_XVIDEO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007630_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007631
7632 X_PRE_LIBS="$X_PRE_LIBS -lXv"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007633
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007634fi
7635
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007636
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007637else
7638 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
7639echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007640fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007641
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007642done
7643
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007644
7645
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007646for ac_header in X11/extensions/Xrender.h
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007647do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007648as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007649echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7651if eval "test \"\${$as_ac_Header+set}\" = set"; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007653else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007654 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007655#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007656/* confdefs.h. */
7657_ACEOF
7658cat confdefs.h >>conftest.$ac_ext
7659cat >>conftest.$ac_ext <<_ACEOF
7660/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007661#include <X11/Xlib.h>
7662
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007663#include <$ac_header>
7664_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007665rm -f conftest.$ac_objext
7666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7667 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007668 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } &&
7671 { ac_try='test -s conftest.$ac_objext'
7672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 (eval $ac_try) 2>&5
7674 ac_status=$?
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007677 eval "$as_ac_Header=yes"
7678else
7679 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007680sed 's/^/| /' conftest.$ac_ext >&5
7681
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007682eval "$as_ac_Header=no"
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007683fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007684rm -f conftest.$ac_objext conftest.$ac_ext
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007685fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007687echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7688if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007689 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007690#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007691_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007692
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007693fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007694
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007695done
7696
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007697
7698
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007699fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007700
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007701done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007702
Alexandre Julliardb8074992002-11-21 21:51:24 +00007703 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007704 then
Francois Gouget42dcd972002-01-29 17:52:28 +00007705 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007706 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007707 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007708This prevents linking to OpenGL. Delete the file and restart configure." >&5
7709echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7710This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7711 { (exit 1); exit 1; }; }
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007712 fi
7713
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007714
7715
7716for ac_header in GL/gl.h GL/glx.h
Patrik Stridvall24110281999-02-04 10:09:54 +00007717do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007718as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007719if eval "test \"\${$as_ac_Header+set}\" = set"; then
7720 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7722if eval "test \"\${$as_ac_Header+set}\" = set"; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007724fi
7725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7726echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007727else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007728 # Is the header compilable?
7729echo "$as_me:$LINENO: checking $ac_header usability" >&5
7730echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7731cat >conftest.$ac_ext <<_ACEOF
7732#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007733/* confdefs.h. */
7734_ACEOF
7735cat confdefs.h >>conftest.$ac_ext
7736cat >>conftest.$ac_ext <<_ACEOF
7737/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007738$ac_includes_default
7739#include <$ac_header>
7740_ACEOF
7741rm -f conftest.$ac_objext
7742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7743 (eval $ac_compile) 2>&5
7744 ac_status=$?
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); } &&
7747 { ac_try='test -s conftest.$ac_objext'
7748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749 (eval $ac_try) 2>&5
7750 ac_status=$?
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); }; }; then
7753 ac_header_compiler=yes
7754else
7755 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007756sed 's/^/| /' conftest.$ac_ext >&5
7757
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007758ac_header_compiler=no
7759fi
7760rm -f conftest.$ac_objext conftest.$ac_ext
7761echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7762echo "${ECHO_T}$ac_header_compiler" >&6
7763
7764# Is the header present?
7765echo "$as_me:$LINENO: checking $ac_header presence" >&5
7766echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7767cat >conftest.$ac_ext <<_ACEOF
7768#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007769/* confdefs.h. */
7770_ACEOF
7771cat confdefs.h >>conftest.$ac_ext
7772cat >>conftest.$ac_ext <<_ACEOF
7773/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007774#include <$ac_header>
7775_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007776if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7778 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007779 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007780 rm -f conftest.er1
7781 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007783 (exit $ac_status); } >/dev/null; then
7784 if test -s conftest.err; then
7785 ac_cpp_err=$ac_c_preproc_warn_flag
7786 else
7787 ac_cpp_err=
7788 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007789else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007790 ac_cpp_err=yes
7791fi
7792if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007793 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007794else
7795 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007796sed 's/^/| /' conftest.$ac_ext >&5
7797
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007798 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007799fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007800rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007801echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7802echo "${ECHO_T}$ac_header_preproc" >&6
7803
7804# So? What about this header?
7805case $ac_header_compiler:$ac_header_preproc in
7806 yes:no )
7807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7808echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7811 (
7812 cat <<\_ASBOX
7813## ------------------------------------ ##
7814## Report this to bug-autoconf@gnu.org. ##
7815## ------------------------------------ ##
7816_ASBOX
7817 ) |
7818 sed "s/^/$as_me: WARNING: /" >&2
7819 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007820 no:yes )
7821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7822echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7824echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007826echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7827 (
7828 cat <<\_ASBOX
7829## ------------------------------------ ##
7830## Report this to bug-autoconf@gnu.org. ##
7831## ------------------------------------ ##
7832_ASBOX
7833 ) |
7834 sed "s/^/$as_me: WARNING: /" >&2
7835 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007836esac
7837echo "$as_me:$LINENO: checking for $ac_header" >&5
7838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7839if eval "test \"\${$as_ac_Header+set}\" = set"; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7841else
7842 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00007843fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007844echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007845echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007846
Patrik Stridvall24110281999-02-04 10:09:54 +00007847fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007848if test `eval echo '${'$as_ac_Header'}'` = yes; then
7849 cat >>confdefs.h <<_ACEOF
7850#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7851_ACEOF
7852
7853fi
7854
Patrik Stridvall24110281999-02-04 10:09:54 +00007855done
7856
Marcus Meissner22a969b2000-08-08 20:46:50 +00007857 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007858 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007859
7860for ac_header in GL/glext.h
7861do
7862as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7863echo "$as_me:$LINENO: checking for $ac_header" >&5
7864echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7865if eval "test \"\${$as_ac_Header+set}\" = set"; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7867else
7868 cat >conftest.$ac_ext <<_ACEOF
7869#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007870/* confdefs.h. */
7871_ACEOF
7872cat confdefs.h >>conftest.$ac_ext
7873cat >>conftest.$ac_ext <<_ACEOF
7874/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007875#include <GL/glx.h>
7876
7877#include <$ac_header>
7878_ACEOF
7879rm -f conftest.$ac_objext
7880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7881 (eval $ac_compile) 2>&5
7882 ac_status=$?
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } &&
7885 { ac_try='test -s conftest.$ac_objext'
7886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887 (eval $ac_try) 2>&5
7888 ac_status=$?
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; }; then
7891 eval "$as_ac_Header=yes"
7892else
7893 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007894sed 's/^/| /' conftest.$ac_ext >&5
7895
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007896eval "$as_ac_Header=no"
7897fi
7898rm -f conftest.$ac_objext conftest.$ac_ext
7899fi
7900echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7901echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7902if test `eval echo '${'$as_ac_Header'}'` = yes; then
7903 cat >>confdefs.h <<_ACEOF
7904#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7905_ACEOF
7906
7907fi
7908
7909done
7910
7911 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007912echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7913if test "${wine_cv_opengl_version_OK+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00007915else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007916 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007917#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007918/* confdefs.h. */
7919_ACEOF
7920cat confdefs.h >>conftest.$ac_ext
7921cat >>conftest.$ac_ext <<_ACEOF
7922/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00007923#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007924int
7925main ()
7926{
Lionel Ulmer5c085701999-02-28 19:48:53 +00007927GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007928 ;
7929 return 0;
7930}
7931_ACEOF
7932rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007934 (eval $ac_compile) 2>&5
7935 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007937 (exit $ac_status); } &&
7938 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007940 (eval $ac_try) 2>&5
7941 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007943 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007944 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007945else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007946 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007947sed 's/^/| /' conftest.$ac_ext >&5
7948
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007949wine_cv_opengl_version_OK="no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007950
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007951fi
7952rm -f conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer5c085701999-02-28 19:48:53 +00007953
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007954fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007955echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007956echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7957
Alexandre Julliardb8074992002-11-21 21:51:24 +00007958 if test "$wine_cv_opengl_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007959 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007960 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007961echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7962if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007964else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007965 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner376ec882000-01-05 03:24:52 +00007966LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007967cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007968#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007969/* confdefs.h. */
7970_ACEOF
7971cat confdefs.h >>conftest.$ac_ext
7972cat >>conftest.$ac_ext <<_ACEOF
7973/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007974
Patrik Stridvall24110281999-02-04 10:09:54 +00007975/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007976#ifdef __cplusplus
7977extern "C"
7978#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007979/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007980 builtin and then its argument prototype would still apply. */
7981char glXCreateContext ();
7982int
7983main ()
7984{
7985glXCreateContext ();
7986 ;
7987 return 0;
7988}
7989_ACEOF
7990rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007992 (eval $ac_link) 2>&5
7993 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007995 (exit $ac_status); } &&
7996 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007998 (eval $ac_try) 2>&5
7999 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008001 (exit $ac_status); }; }; then
8002 ac_cv_lib_GL_glXCreateContext=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00008003else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008004 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008005sed 's/^/| /' conftest.$ac_ext >&5
8006
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008007ac_cv_lib_GL_glXCreateContext=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008008fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008009rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8010LIBS=$ac_check_lib_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00008011fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008012echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008013echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8014if test $ac_cv_lib_GL_glXCreateContext = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008015 OPENGL_LIBS="-lGL"
Patrik Stridvall24110281999-02-04 10:09:54 +00008016
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008017fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008018
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008019
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008020 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00008021 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00008022 OPENGLFILES='$(OPENGLFILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008023
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008024cat >>confdefs.h <<\_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008025#define HAVE_OPENGL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008026_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008027
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008028
8029 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008030echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8031if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8032 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008033else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008034 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008035LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008036cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008037#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008038/* confdefs.h. */
8039_ACEOF
8040cat confdefs.h >>conftest.$ac_ext
8041cat >>conftest.$ac_ext <<_ACEOF
8042/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008043
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008044/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008045#ifdef __cplusplus
8046extern "C"
8047#endif
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008048/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008049 builtin and then its argument prototype would still apply. */
8050char glXGetProcAddressARB ();
8051int
8052main ()
8053{
8054glXGetProcAddressARB ();
8055 ;
8056 return 0;
8057}
8058_ACEOF
8059rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008061 (eval $ac_link) 2>&5
8062 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008064 (exit $ac_status); } &&
8065 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008067 (eval $ac_try) 2>&5
8068 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008070 (exit $ac_status); }; }; then
8071 ac_cv_lib_GL_glXGetProcAddressARB=yes
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008072else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008073 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008074sed 's/^/| /' conftest.$ac_ext >&5
8075
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008076ac_cv_lib_GL_glXGetProcAddressARB=no
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008077fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008078rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8079LIBS=$ac_check_lib_save_LIBS
8080fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008081echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008082echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8083if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008084
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008085cat >>confdefs.h <<\_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008086#define HAVE_GLX_GETPROCADDRESS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008087_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008088
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008089fi
8090
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008091
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008092 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008093 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008094 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008095echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8096if test "${wine_cv_extension_prototypes+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer1434d872000-07-23 14:23:31 +00008098else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008099 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008100#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008101/* confdefs.h. */
8102_ACEOF
8103cat confdefs.h >>conftest.$ac_ext
8104cat >>conftest.$ac_ext <<_ACEOF
8105/* end confdefs.h. */
Lionel Ulmer1434d872000-07-23 14:23:31 +00008106#include <GL/gl.h>
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008107 #ifdef HAVE_GL_GLEXT_H
8108 # include <GL/glext.h>
8109 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008110
8111int
8112main ()
8113{
Lionel Ulmer1434d872000-07-23 14:23:31 +00008114PFNGLCOLORTABLEEXTPROC test_proc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008115 ;
8116 return 0;
8117}
8118_ACEOF
8119rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008121 (eval $ac_compile) 2>&5
8122 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008124 (exit $ac_status); } &&
8125 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008127 (eval $ac_try) 2>&5
8128 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008130 (exit $ac_status); }; }; then
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008131 wine_cv_extension_prototypes="yes"
Lionel Ulmer1434d872000-07-23 14:23:31 +00008132else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008133 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008134sed 's/^/| /' conftest.$ac_ext >&5
8135
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008136wine_cv_extension_prototypes="no"
Lionel Ulmer1434d872000-07-23 14:23:31 +00008137
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008138fi
8139rm -f conftest.$ac_objext conftest.$ac_ext
8140
8141fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008142echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008143echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008144 if test "$wine_cv_extension_prototypes" = "yes"
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008145 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008146
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008147cat >>confdefs.h <<\_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008148#define HAVE_GLEXT_PROTOTYPES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008149_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008150
8151 fi
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008152 fi
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00008153
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008154 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008155 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008156echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8157if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008159else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008160 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008161LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008162 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008163cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008164#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008165/* confdefs.h. */
8166_ACEOF
8167cat confdefs.h >>conftest.$ac_ext
8168cat >>conftest.$ac_ext <<_ACEOF
8169/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008170
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008171/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008172#ifdef __cplusplus
8173extern "C"
8174#endif
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008175/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008176 builtin and then its argument prototype would still apply. */
8177char gluLookAt ();
8178int
8179main ()
8180{
8181gluLookAt ();
8182 ;
8183 return 0;
8184}
8185_ACEOF
8186rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008188 (eval $ac_link) 2>&5
8189 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008191 (exit $ac_status); } &&
8192 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008194 (eval $ac_try) 2>&5
8195 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008197 (exit $ac_status); }; }; then
8198 ac_cv_lib_GLU_gluLookAt=yes
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008199else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008200 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008201sed 's/^/| /' conftest.$ac_ext >&5
8202
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008203ac_cv_lib_GLU_gluLookAt=no
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008204fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008205rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8206LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008207fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008208echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008209echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8210if test $ac_cv_lib_GLU_gluLookAt = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008211 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008212 GLU32FILES='$(GLU32FILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008213
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008214fi
8215
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008216 fi
8217 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008218 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00008219
Francois Gouget6f670b12002-10-10 17:54:27 +00008220 NASLIBS=""
8221
8222
8223for ac_header in audio/audiolib.h
8224do
8225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8226if eval "test \"\${$as_ac_Header+set}\" = set"; then
8227 echo "$as_me:$LINENO: checking for $ac_header" >&5
8228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8229if eval "test \"\${$as_ac_Header+set}\" = set"; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8231fi
8232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8233echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8234else
8235 # Is the header compilable?
8236echo "$as_me:$LINENO: checking $ac_header usability" >&5
8237echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8238cat >conftest.$ac_ext <<_ACEOF
8239#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008240/* confdefs.h. */
8241_ACEOF
8242cat confdefs.h >>conftest.$ac_ext
8243cat >>conftest.$ac_ext <<_ACEOF
8244/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008245$ac_includes_default
8246#include <$ac_header>
8247_ACEOF
8248rm -f conftest.$ac_objext
8249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8250 (eval $ac_compile) 2>&5
8251 ac_status=$?
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try='test -s conftest.$ac_objext'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 (eval $ac_try) 2>&5
8257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
8260 ac_header_compiler=yes
8261else
8262 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008263sed 's/^/| /' conftest.$ac_ext >&5
8264
Francois Gouget6f670b12002-10-10 17:54:27 +00008265ac_header_compiler=no
8266fi
8267rm -f conftest.$ac_objext conftest.$ac_ext
8268echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8269echo "${ECHO_T}$ac_header_compiler" >&6
8270
8271# Is the header present?
8272echo "$as_me:$LINENO: checking $ac_header presence" >&5
8273echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8274cat >conftest.$ac_ext <<_ACEOF
8275#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008276/* confdefs.h. */
8277_ACEOF
8278cat confdefs.h >>conftest.$ac_ext
8279cat >>conftest.$ac_ext <<_ACEOF
8280/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008281#include <$ac_header>
8282_ACEOF
8283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8285 ac_status=$?
8286 grep -v '^ *+' conftest.er1 >conftest.err
8287 rm -f conftest.er1
8288 cat conftest.err >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } >/dev/null; then
8291 if test -s conftest.err; then
8292 ac_cpp_err=$ac_c_preproc_warn_flag
8293 else
8294 ac_cpp_err=
8295 fi
8296else
8297 ac_cpp_err=yes
8298fi
8299if test -z "$ac_cpp_err"; then
8300 ac_header_preproc=yes
8301else
8302 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008303sed 's/^/| /' conftest.$ac_ext >&5
8304
Francois Gouget6f670b12002-10-10 17:54:27 +00008305 ac_header_preproc=no
8306fi
8307rm -f conftest.err conftest.$ac_ext
8308echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8309echo "${ECHO_T}$ac_header_preproc" >&6
8310
8311# So? What about this header?
8312case $ac_header_compiler:$ac_header_preproc in
8313 yes:no )
8314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8315echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008317echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8318 (
8319 cat <<\_ASBOX
8320## ------------------------------------ ##
8321## Report this to bug-autoconf@gnu.org. ##
8322## ------------------------------------ ##
8323_ASBOX
8324 ) |
8325 sed "s/^/$as_me: WARNING: /" >&2
8326 ;;
Francois Gouget6f670b12002-10-10 17:54:27 +00008327 no:yes )
8328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8329echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8331echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008333echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8334 (
8335 cat <<\_ASBOX
8336## ------------------------------------ ##
8337## Report this to bug-autoconf@gnu.org. ##
8338## ------------------------------------ ##
8339_ASBOX
8340 ) |
8341 sed "s/^/$as_me: WARNING: /" >&2
8342 ;;
Francois Gouget6f670b12002-10-10 17:54:27 +00008343esac
8344echo "$as_me:$LINENO: checking for $ac_header" >&5
8345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8346if eval "test \"\${$as_ac_Header+set}\" = set"; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8348else
8349 eval "$as_ac_Header=$ac_header_preproc"
8350fi
8351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8353
8354fi
8355if test `eval echo '${'$as_ac_Header'}'` = yes; then
8356 cat >>confdefs.h <<_ACEOF
8357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8358_ACEOF
8359
8360for ac_header in audio/soundlib.h
8361do
8362as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8363echo "$as_me:$LINENO: checking for $ac_header" >&5
8364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8365if eval "test \"\${$as_ac_Header+set}\" = set"; then
8366 echo $ECHO_N "(cached) $ECHO_C" >&6
8367else
8368 cat >conftest.$ac_ext <<_ACEOF
8369#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008370/* confdefs.h. */
8371_ACEOF
8372cat confdefs.h >>conftest.$ac_ext
8373cat >>conftest.$ac_ext <<_ACEOF
8374/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008375#include <audio/audiolib.h>
8376
8377#include <$ac_header>
8378_ACEOF
8379rm -f conftest.$ac_objext
8380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8381 (eval $ac_compile) 2>&5
8382 ac_status=$?
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } &&
8385 { ac_try='test -s conftest.$ac_objext'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 (eval $ac_try) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; }; then
8391 eval "$as_ac_Header=yes"
8392else
8393 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008394sed 's/^/| /' conftest.$ac_ext >&5
8395
Francois Gouget6f670b12002-10-10 17:54:27 +00008396eval "$as_ac_Header=no"
8397fi
8398rm -f conftest.$ac_objext conftest.$ac_ext
8399fi
8400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8401echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8402if test `eval echo '${'$as_ac_Header'}'` = yes; then
8403 cat >>confdefs.h <<_ACEOF
8404#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8405_ACEOF
8406
8407fi
8408
8409done
8410
8411 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8412echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8413if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8415else
8416 ac_check_lib_save_LIBS=$LIBS
8417LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8418cat >conftest.$ac_ext <<_ACEOF
8419#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008420/* confdefs.h. */
8421_ACEOF
8422cat confdefs.h >>conftest.$ac_ext
8423cat >>conftest.$ac_ext <<_ACEOF
8424/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008425
8426/* Override any gcc2 internal prototype to avoid an error. */
8427#ifdef __cplusplus
8428extern "C"
8429#endif
8430/* We use char because int might match the return type of a gcc2
8431 builtin and then its argument prototype would still apply. */
8432char AuCreateFlow ();
8433int
8434main ()
8435{
8436AuCreateFlow ();
8437 ;
8438 return 0;
8439}
8440_ACEOF
8441rm -f conftest.$ac_objext conftest$ac_exeext
8442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8443 (eval $ac_link) 2>&5
8444 ac_status=$?
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } &&
8447 { ac_try='test -s conftest$ac_exeext'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 (eval $ac_try) 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; }; then
8453 ac_cv_lib_audio_AuCreateFlow=yes
8454else
8455 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008456sed 's/^/| /' conftest.$ac_ext >&5
8457
Francois Gouget6f670b12002-10-10 17:54:27 +00008458ac_cv_lib_audio_AuCreateFlow=no
8459fi
8460rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8461LIBS=$ac_check_lib_save_LIBS
8462fi
8463echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8464echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8465if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8466
8467cat >>confdefs.h <<\_ACEOF
8468#define HAVE_NAS 1
8469_ACEOF
8470
8471 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8472fi
8473
8474fi
8475
8476done
8477
8478
Ove Kaaven1eb593c1999-02-14 09:34:46 +00008479 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00008480 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00008481else
8482 XLIB=""
8483 X_CFLAGS=""
8484 X_LIBS=""
8485fi
Alexandre Julliard902da691995-11-05 14:39:02 +00008486
Alexandre Julliard48957682001-12-26 23:08:31 +00008487CURSESLIBS=""
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008488if test "x$with_curses" != "xno"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00008489then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008490
8491for ac_header in ncurses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008492do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008493as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008494if eval "test \"\${$as_ac_Header+set}\" = set"; then
8495 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8497if eval "test \"\${$as_ac_Header+set}\" = set"; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008499fi
8500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8501echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008502else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008503 # Is the header compilable?
8504echo "$as_me:$LINENO: checking $ac_header usability" >&5
8505echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8506cat >conftest.$ac_ext <<_ACEOF
8507#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008508/* confdefs.h. */
8509_ACEOF
8510cat confdefs.h >>conftest.$ac_ext
8511cat >>conftest.$ac_ext <<_ACEOF
8512/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008513$ac_includes_default
8514#include <$ac_header>
8515_ACEOF
8516rm -f conftest.$ac_objext
8517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8518 (eval $ac_compile) 2>&5
8519 ac_status=$?
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } &&
8522 { ac_try='test -s conftest.$ac_objext'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 (eval $ac_try) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; }; then
8528 ac_header_compiler=yes
8529else
8530 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008531sed 's/^/| /' conftest.$ac_ext >&5
8532
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008533ac_header_compiler=no
8534fi
8535rm -f conftest.$ac_objext conftest.$ac_ext
8536echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8537echo "${ECHO_T}$ac_header_compiler" >&6
8538
8539# Is the header present?
8540echo "$as_me:$LINENO: checking $ac_header presence" >&5
8541echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8542cat >conftest.$ac_ext <<_ACEOF
8543#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008544/* confdefs.h. */
8545_ACEOF
8546cat confdefs.h >>conftest.$ac_ext
8547cat >>conftest.$ac_ext <<_ACEOF
8548/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008549#include <$ac_header>
8550_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8553 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008554 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008555 rm -f conftest.er1
8556 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008558 (exit $ac_status); } >/dev/null; then
8559 if test -s conftest.err; then
8560 ac_cpp_err=$ac_c_preproc_warn_flag
8561 else
8562 ac_cpp_err=
8563 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008564else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008565 ac_cpp_err=yes
8566fi
8567if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008568 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008569else
8570 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008571sed 's/^/| /' conftest.$ac_ext >&5
8572
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008573 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008574fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008575rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008576echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8577echo "${ECHO_T}$ac_header_preproc" >&6
8578
8579# So? What about this header?
8580case $ac_header_compiler:$ac_header_preproc in
8581 yes:no )
8582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8583echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008585echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8586 (
8587 cat <<\_ASBOX
8588## ------------------------------------ ##
8589## Report this to bug-autoconf@gnu.org. ##
8590## ------------------------------------ ##
8591_ASBOX
8592 ) |
8593 sed "s/^/$as_me: WARNING: /" >&2
8594 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008595 no:yes )
8596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8597echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8599echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008601echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8602 (
8603 cat <<\_ASBOX
8604## ------------------------------------ ##
8605## Report this to bug-autoconf@gnu.org. ##
8606## ------------------------------------ ##
8607_ASBOX
8608 ) |
8609 sed "s/^/$as_me: WARNING: /" >&2
8610 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008611esac
8612echo "$as_me:$LINENO: checking for $ac_header" >&5
8613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8614if eval "test \"\${$as_ac_Header+set}\" = set"; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8616else
8617 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00008618fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008620echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008621
8622fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008623if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008624 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008625#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008626_ACEOF
8627 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008628echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8629if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008631else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008632 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008633LIBS="-lncurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008634cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008635#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008636/* confdefs.h. */
8637_ACEOF
8638cat confdefs.h >>conftest.$ac_ext
8639cat >>conftest.$ac_ext <<_ACEOF
8640/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008641
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008642/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008643#ifdef __cplusplus
8644extern "C"
8645#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008646/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008647 builtin and then its argument prototype would still apply. */
8648char waddch ();
8649int
8650main ()
8651{
8652waddch ();
8653 ;
8654 return 0;
8655}
8656_ACEOF
8657rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008659 (eval $ac_link) 2>&5
8660 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008662 (exit $ac_status); } &&
8663 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008665 (eval $ac_try) 2>&5
8666 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008668 (exit $ac_status); }; }; then
8669 ac_cv_lib_ncurses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008670else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008671 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008672sed 's/^/| /' conftest.$ac_ext >&5
8673
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008674ac_cv_lib_ncurses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008675fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008676rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8677LIBS=$ac_check_lib_save_LIBS
8678fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008679echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008680echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8681if test $ac_cv_lib_ncurses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008682
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008683cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00008684#define HAVE_LIBNCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008685_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008686
Alexandre Julliard48957682001-12-26 23:08:31 +00008687 CURSESLIBS="-lncurses"
Alexandre Julliard638f1691999-01-17 16:32:32 +00008688else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008689
8690for ac_header in curses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008691do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008692as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008693if eval "test \"\${$as_ac_Header+set}\" = set"; then
8694 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8696if eval "test \"\${$as_ac_Header+set}\" = set"; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008698fi
8699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008701else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008702 # Is the header compilable?
8703echo "$as_me:$LINENO: checking $ac_header usability" >&5
8704echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8705cat >conftest.$ac_ext <<_ACEOF
8706#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008707/* confdefs.h. */
8708_ACEOF
8709cat confdefs.h >>conftest.$ac_ext
8710cat >>conftest.$ac_ext <<_ACEOF
8711/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008712$ac_includes_default
8713#include <$ac_header>
8714_ACEOF
8715rm -f conftest.$ac_objext
8716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8717 (eval $ac_compile) 2>&5
8718 ac_status=$?
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try='test -s conftest.$ac_objext'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723 (eval $ac_try) 2>&5
8724 ac_status=$?
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; }; then
8727 ac_header_compiler=yes
8728else
8729 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008730sed 's/^/| /' conftest.$ac_ext >&5
8731
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008732ac_header_compiler=no
8733fi
8734rm -f conftest.$ac_objext conftest.$ac_ext
8735echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8736echo "${ECHO_T}$ac_header_compiler" >&6
8737
8738# Is the header present?
8739echo "$as_me:$LINENO: checking $ac_header presence" >&5
8740echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8741cat >conftest.$ac_ext <<_ACEOF
8742#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008743/* confdefs.h. */
8744_ACEOF
8745cat confdefs.h >>conftest.$ac_ext
8746cat >>conftest.$ac_ext <<_ACEOF
8747/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008748#include <$ac_header>
8749_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008750if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8752 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008753 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008754 rm -f conftest.er1
8755 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008757 (exit $ac_status); } >/dev/null; then
8758 if test -s conftest.err; then
8759 ac_cpp_err=$ac_c_preproc_warn_flag
8760 else
8761 ac_cpp_err=
8762 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008763else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008764 ac_cpp_err=yes
8765fi
8766if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008767 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008768else
8769 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008770sed 's/^/| /' conftest.$ac_ext >&5
8771
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008772 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008773fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008774rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008775echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8776echo "${ECHO_T}$ac_header_preproc" >&6
8777
8778# So? What about this header?
8779case $ac_header_compiler:$ac_header_preproc in
8780 yes:no )
8781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8782echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008784echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8785 (
8786 cat <<\_ASBOX
8787## ------------------------------------ ##
8788## Report this to bug-autoconf@gnu.org. ##
8789## ------------------------------------ ##
8790_ASBOX
8791 ) |
8792 sed "s/^/$as_me: WARNING: /" >&2
8793 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008794 no:yes )
8795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8796echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8798echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8801 (
8802 cat <<\_ASBOX
8803## ------------------------------------ ##
8804## Report this to bug-autoconf@gnu.org. ##
8805## ------------------------------------ ##
8806_ASBOX
8807 ) |
8808 sed "s/^/$as_me: WARNING: /" >&2
8809 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008810esac
8811echo "$as_me:$LINENO: checking for $ac_header" >&5
8812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8813if eval "test \"\${$as_ac_Header+set}\" = set"; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8815else
8816 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00008817fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008819echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008820
8821fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008822if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008823 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008824#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008825_ACEOF
8826 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008827echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8828if test "${ac_cv_lib_curses_waddch+set}" = set; then
8829 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008830else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008831 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008832LIBS="-lcurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008833cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008834#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008835/* confdefs.h. */
8836_ACEOF
8837cat confdefs.h >>conftest.$ac_ext
8838cat >>conftest.$ac_ext <<_ACEOF
8839/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008840
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008841/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008842#ifdef __cplusplus
8843extern "C"
8844#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008845/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008846 builtin and then its argument prototype would still apply. */
8847char waddch ();
8848int
8849main ()
8850{
8851waddch ();
8852 ;
8853 return 0;
8854}
8855_ACEOF
8856rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008858 (eval $ac_link) 2>&5
8859 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008861 (exit $ac_status); } &&
8862 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008864 (eval $ac_try) 2>&5
8865 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008867 (exit $ac_status); }; }; then
8868 ac_cv_lib_curses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008869else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008870 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008871sed 's/^/| /' conftest.$ac_ext >&5
8872
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008873ac_cv_lib_curses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008874fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008875rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8876LIBS=$ac_check_lib_save_LIBS
8877fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008878echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008879echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
8880if test $ac_cv_lib_curses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008881
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008882cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00008883#define HAVE_LIBCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008884_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008885
Alexandre Julliard48957682001-12-26 23:08:31 +00008886 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008887fi
8888
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008889fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008890
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008891done
8892
8893fi
Alexandre Julliard48957682001-12-26 23:08:31 +00008894
Alexandre Julliard48957682001-12-26 23:08:31 +00008895fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008896
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008897done
8898
Alexandre Julliard48957682001-12-26 23:08:31 +00008899 saved_libs="$LIBS"
8900 LIBS="$CURSESLIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008901
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008902
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008903for ac_func in getbkgd resizeterm
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008904do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008905as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008906echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008907echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8908if eval "test \"\${$as_ac_var+set}\" = set"; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard638f1691999-01-17 16:32:32 +00008910else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008911 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008912#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008913/* confdefs.h. */
8914_ACEOF
8915cat confdefs.h >>conftest.$ac_ext
8916cat >>conftest.$ac_ext <<_ACEOF
8917/* end confdefs.h. */
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008918/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008919 which can conflict with char $ac_func (); below.
8920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8921 <limits.h> exists even on freestanding compilers. */
8922#ifdef __STDC__
8923# include <limits.h>
8924#else
8925# include <assert.h>
8926#endif
Alexandre Julliard638f1691999-01-17 16:32:32 +00008927/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008928#ifdef __cplusplus
8929extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008930{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008931#endif
Alexandre Julliard638f1691999-01-17 16:32:32 +00008932/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008933 builtin and then its argument prototype would still apply. */
8934char $ac_func ();
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008935/* The GNU C library defines this for functions which it implements
8936 to always fail with ENOSYS. Some functions are actually named
8937 something starting with __ and the normal name is an alias. */
8938#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8939choke me
8940#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008941char (*f) () = $ac_func;
8942#endif
8943#ifdef __cplusplus
8944}
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008945#endif
8946
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008947int
8948main ()
8949{
8950return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008951 ;
8952 return 0;
8953}
8954_ACEOF
8955rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008957 (eval $ac_link) 2>&5
8958 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008960 (exit $ac_status); } &&
8961 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008963 (eval $ac_try) 2>&5
8964 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008966 (exit $ac_status); }; }; then
8967 eval "$as_ac_var=yes"
Alexandre Julliard638f1691999-01-17 16:32:32 +00008968else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008969 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008970sed 's/^/| /' conftest.$ac_ext >&5
8971
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008972eval "$as_ac_var=no"
Alexandre Julliard638f1691999-01-17 16:32:32 +00008973fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008974rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard638f1691999-01-17 16:32:32 +00008975fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008977echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8978if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008979 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008980#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008981_ACEOF
Alexandre Julliard638f1691999-01-17 16:32:32 +00008982
Alexandre Julliard638f1691999-01-17 16:32:32 +00008983fi
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008984done
Alexandre Julliard638f1691999-01-17 16:32:32 +00008985
Alexandre Julliard48957682001-12-26 23:08:31 +00008986 LIBS="$saved_libs"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008987fi
8988
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008989
Shi Quan He6b0720f2002-03-21 02:58:39 +00008990# Extract the first word of "sane-config", so it can be a program name with args.
8991set dummy sane-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008992echo "$as_me:$LINENO: checking for $ac_word" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8994if test "${ac_cv_prog_sane_devel+set}" = set; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8996else
8997 if test -n "$sane_devel"; then
8998 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8999else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001for as_dir in $PATH
9002do
9003 IFS=$as_save_IFS
9004 test -z "$as_dir" && as_dir=.
9005 for ac_exec_ext in '' $ac_executable_extensions; do
9006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9007 ac_cv_prog_sane_devel="sane-config"
9008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9009 break 2
9010 fi
9011done
Shi Quan He6b0720f2002-03-21 02:58:39 +00009012done
9013
9014 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9015fi
9016fi
9017sane_devel=$ac_cv_prog_sane_devel
9018if test -n "$sane_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009019 echo "$as_me:$LINENO: result: $sane_devel" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009020echo "${ECHO_T}$sane_devel" >&6
9021else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009022 echo "$as_me:$LINENO: result: no" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009023echo "${ECHO_T}no" >&6
9024fi
9025
9026if test "$sane_devel" = "no"
9027then
9028 SANELIBS=""
9029 SANEINCL=""
9030else
9031 SANELIBS="`$sane_devel --libs`"
9032 SANEINCL="`$sane_devel --cflags`"
9033 ac_save_CPPFLAGS="$CPPFLAGS"
9034 ac_save_LIBS="$LIBS"
9035 CPPFLAGS="$CPPFLAGS $SANEINCL"
9036 LIBS="$LIBS $SANELIBS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009037 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9038 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009039echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9040if test "${ac_cv_header_sane_sane_h+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009042fi
9043echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9044echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00009045else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009046 # Is the header compilable?
9047echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9048echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9049cat >conftest.$ac_ext <<_ACEOF
9050#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009051/* confdefs.h. */
9052_ACEOF
9053cat confdefs.h >>conftest.$ac_ext
9054cat >>conftest.$ac_ext <<_ACEOF
9055/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009056$ac_includes_default
9057#include <sane/sane.h>
9058_ACEOF
9059rm -f conftest.$ac_objext
9060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9061 (eval $ac_compile) 2>&5
9062 ac_status=$?
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); } &&
9065 { ac_try='test -s conftest.$ac_objext'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 (eval $ac_try) 2>&5
9068 ac_status=$?
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; }; then
9071 ac_header_compiler=yes
9072else
9073 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009074sed 's/^/| /' conftest.$ac_ext >&5
9075
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009076ac_header_compiler=no
9077fi
9078rm -f conftest.$ac_objext conftest.$ac_ext
9079echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9080echo "${ECHO_T}$ac_header_compiler" >&6
9081
9082# Is the header present?
9083echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9084echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9085cat >conftest.$ac_ext <<_ACEOF
9086#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009087/* confdefs.h. */
9088_ACEOF
9089cat confdefs.h >>conftest.$ac_ext
9090cat >>conftest.$ac_ext <<_ACEOF
9091/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +00009092#include <sane/sane.h>
9093_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009094if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9096 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009097 grep -v '^ *+' conftest.er1 >conftest.err
Shi Quan He6b0720f2002-03-21 02:58:39 +00009098 rm -f conftest.er1
9099 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009101 (exit $ac_status); } >/dev/null; then
9102 if test -s conftest.err; then
9103 ac_cpp_err=$ac_c_preproc_warn_flag
9104 else
9105 ac_cpp_err=
9106 fi
9107else
9108 ac_cpp_err=yes
9109fi
9110if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009111 ac_header_preproc=yes
Shi Quan He6b0720f2002-03-21 02:58:39 +00009112else
9113 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009114sed 's/^/| /' conftest.$ac_ext >&5
9115
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009116 ac_header_preproc=no
Shi Quan He6b0720f2002-03-21 02:58:39 +00009117fi
9118rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009119echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9120echo "${ECHO_T}$ac_header_preproc" >&6
9121
9122# So? What about this header?
9123case $ac_header_compiler:$ac_header_preproc in
9124 yes:no )
9125 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9126echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9127 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009128echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9129 (
9130 cat <<\_ASBOX
9131## ------------------------------------ ##
9132## Report this to bug-autoconf@gnu.org. ##
9133## ------------------------------------ ##
9134_ASBOX
9135 ) |
9136 sed "s/^/$as_me: WARNING: /" >&2
9137 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009138 no:yes )
9139 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9140echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9141 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
9142echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
9143 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009144echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9145 (
9146 cat <<\_ASBOX
9147## ------------------------------------ ##
9148## Report this to bug-autoconf@gnu.org. ##
9149## ------------------------------------ ##
9150_ASBOX
9151 ) |
9152 sed "s/^/$as_me: WARNING: /" >&2
9153 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009154esac
9155echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9156echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9157if test "${ac_cv_header_sane_sane_h+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9159else
9160 ac_cv_header_sane_sane_h=$ac_header_preproc
Shi Quan He6b0720f2002-03-21 02:58:39 +00009161fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009162echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009163echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009164
9165fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009166if test $ac_cv_header_sane_sane_h = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009167 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009168echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9169if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9171else
9172 ac_check_lib_save_LIBS=$LIBS
9173LIBS="-lsane $LIBS"
9174cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009175#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009176/* confdefs.h. */
9177_ACEOF
9178cat confdefs.h >>conftest.$ac_ext
9179cat >>conftest.$ac_ext <<_ACEOF
9180/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +00009181
9182/* Override any gcc2 internal prototype to avoid an error. */
9183#ifdef __cplusplus
9184extern "C"
9185#endif
9186/* We use char because int might match the return type of a gcc2
9187 builtin and then its argument prototype would still apply. */
9188char sane_open ();
9189int
9190main ()
9191{
9192sane_open ();
9193 ;
9194 return 0;
9195}
9196_ACEOF
9197rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009199 (eval $ac_link) 2>&5
9200 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009202 (exit $ac_status); } &&
9203 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009205 (eval $ac_try) 2>&5
9206 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009208 (exit $ac_status); }; }; then
9209 ac_cv_lib_sane_sane_open=yes
9210else
9211 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009212sed 's/^/| /' conftest.$ac_ext >&5
9213
Shi Quan He6b0720f2002-03-21 02:58:39 +00009214ac_cv_lib_sane_sane_open=no
9215fi
9216rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9217LIBS=$ac_check_lib_save_LIBS
9218fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009219echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009220echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9221if test $ac_cv_lib_sane_sane_open = yes; then
9222
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009223cat >>confdefs.h <<\_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009224#define HAVE_SANE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009225_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009226
9227else
9228 SANELIBS=""
Alexandre Julliard96328b32002-03-31 19:23:41 +00009229 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00009230fi
9231
Alexandre Julliard96328b32002-03-31 19:23:41 +00009232else
9233 SANELIBS=""
9234 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00009235fi
9236
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009237
Shi Quan He6b0720f2002-03-21 02:58:39 +00009238 LIBS="$ac_save_LIBS"
9239 CPPFLAGS="$ac_save_CPPFLAGS"
9240fi
9241
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009242
9243
9244echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009245echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9246if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9247 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00009248else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009249 ac_check_lib_save_LIBS=$LIBS
Dmitry Timoshkov8871a112001-11-06 22:26:53 +00009250LIBS="-lfreetype $X_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009251cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009252#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009253/* confdefs.h. */
9254_ACEOF
9255cat confdefs.h >>conftest.$ac_ext
9256cat >>conftest.$ac_ext <<_ACEOF
9257/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009258
Ian Pilcher563598d2001-05-16 20:56:05 +00009259/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009260#ifdef __cplusplus
9261extern "C"
9262#endif
Ian Pilcher563598d2001-05-16 20:56:05 +00009263/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009264 builtin and then its argument prototype would still apply. */
9265char FT_Init_FreeType ();
9266int
9267main ()
9268{
9269FT_Init_FreeType ();
9270 ;
9271 return 0;
9272}
9273_ACEOF
9274rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009276 (eval $ac_link) 2>&5
9277 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009279 (exit $ac_status); } &&
9280 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009282 (eval $ac_try) 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); }; }; then
9286 ac_cv_lib_freetype_FT_Init_FreeType=yes
Ian Pilcher563598d2001-05-16 20:56:05 +00009287else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009288 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009289sed 's/^/| /' conftest.$ac_ext >&5
9290
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009291ac_cv_lib_freetype_FT_Init_FreeType=no
Ian Pilcher563598d2001-05-16 20:56:05 +00009292fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009293rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9294LIBS=$ac_check_lib_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +00009295fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009296echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009297echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
9298if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
Ian Pilcher563598d2001-05-16 20:56:05 +00009299 ft_lib=yes
9300else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009301 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +00009302fi
9303
9304if test "$ft_lib" = "no"
9305then
Ian Pilcher563598d2001-05-16 20:56:05 +00009306 FREETYPEINCL=""
9307 wine_cv_msg_freetype=no
9308else
9309 # Extract the first word of "freetype-config", so it can be a program name with args.
9310set dummy freetype-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009311echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9313if test "${ac_cv_prog_ft_devel+set}" = set; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00009315else
9316 if test -n "$ft_devel"; then
9317 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9318else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9320for as_dir in $PATH
9321do
9322 IFS=$as_save_IFS
9323 test -z "$as_dir" && as_dir=.
9324 for ac_exec_ext in '' $ac_executable_extensions; do
9325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9326 ac_cv_prog_ft_devel="freetype-config"
9327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9328 break 2
9329 fi
9330done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009331done
9332
Ian Pilcher563598d2001-05-16 20:56:05 +00009333 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
9334fi
9335fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009336ft_devel=$ac_cv_prog_ft_devel
Ian Pilcher563598d2001-05-16 20:56:05 +00009337if test -n "$ft_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009338 echo "$as_me:$LINENO: result: $ft_devel" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009339echo "${ECHO_T}$ft_devel" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00009340else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009341 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009342echo "${ECHO_T}no" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00009343fi
9344
9345 if test "$ft_devel" = "no"
9346 then
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009347 # Extract the first word of "freetype2-config", so it can be a program name with args.
9348set dummy freetype2-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009349echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9351if test "${ac_cv_prog_ft_devel2+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009353else
9354 if test -n "$ft_devel2"; then
9355 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9356else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358for as_dir in $PATH
9359do
9360 IFS=$as_save_IFS
9361 test -z "$as_dir" && as_dir=.
9362 for ac_exec_ext in '' $ac_executable_extensions; do
9363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9364 ac_cv_prog_ft_devel2="freetype2-config"
9365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9366 break 2
9367 fi
9368done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009369done
9370
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009371 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9372fi
9373fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009374ft_devel2=$ac_cv_prog_ft_devel2
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009375if test -n "$ft_devel2"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009376 echo "$as_me:$LINENO: result: $ft_devel2" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009377echo "${ECHO_T}$ft_devel2" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009378else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009379 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009380echo "${ECHO_T}no" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009381fi
9382
9383 if test "$ft_devel2" = "freetype2-config"
9384 then
9385 ft_devel=$ft_devel2
9386 fi
9387 fi
9388 if test "$ft_devel" = "no"
9389 then
Ian Pilcher563598d2001-05-16 20:56:05 +00009390 FREETYPEINCL=""
9391 wine_cv_msg_freetype=yes
9392 else
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009393 FREETYPEINCL=`$ft_devel --cflags`
Ian Pilcher40432fe2001-06-06 21:05:23 +00009394 ac_save_CPPFLAGS="$CPPFLAGS"
9395 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009396
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009397
9398
9399
9400
9401
9402
9403
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009404for ac_header in freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +00009405 freetype/ftglyph.h \
9406 freetype/tttables.h \
9407 freetype/ftnames.h \
9408 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +00009409 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +00009410 freetype/ftoutln.h \
9411 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +00009412do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009414if eval "test \"\${$as_ac_Header+set}\" = set"; then
9415 echo "$as_me:$LINENO: checking for $ac_header" >&5
9416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9417if eval "test \"\${$as_ac_Header+set}\" = set"; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9419fi
9420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9421echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9422else
9423 # Is the header compilable?
9424echo "$as_me:$LINENO: checking $ac_header usability" >&5
9425echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9426cat >conftest.$ac_ext <<_ACEOF
9427#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009428/* confdefs.h. */
9429_ACEOF
9430cat confdefs.h >>conftest.$ac_ext
9431cat >>conftest.$ac_ext <<_ACEOF
9432/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009433$ac_includes_default
9434#include <$ac_header>
9435_ACEOF
9436rm -f conftest.$ac_objext
9437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9438 (eval $ac_compile) 2>&5
9439 ac_status=$?
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } &&
9442 { ac_try='test -s conftest.$ac_objext'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 (eval $ac_try) 2>&5
9445 ac_status=$?
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; }; then
9448 ac_header_compiler=yes
9449else
9450 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009451sed 's/^/| /' conftest.$ac_ext >&5
9452
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009453ac_header_compiler=no
9454fi
9455rm -f conftest.$ac_objext conftest.$ac_ext
9456echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9457echo "${ECHO_T}$ac_header_compiler" >&6
9458
9459# Is the header present?
9460echo "$as_me:$LINENO: checking $ac_header presence" >&5
9461echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9462cat >conftest.$ac_ext <<_ACEOF
9463#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009464/* confdefs.h. */
9465_ACEOF
9466cat confdefs.h >>conftest.$ac_ext
9467cat >>conftest.$ac_ext <<_ACEOF
9468/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009469#include <$ac_header>
9470_ACEOF
9471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9473 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009474 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009475 rm -f conftest.er1
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } >/dev/null; then
9479 if test -s conftest.err; then
9480 ac_cpp_err=$ac_c_preproc_warn_flag
9481 else
9482 ac_cpp_err=
9483 fi
9484else
9485 ac_cpp_err=yes
9486fi
9487if test -z "$ac_cpp_err"; then
9488 ac_header_preproc=yes
9489else
9490 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009491sed 's/^/| /' conftest.$ac_ext >&5
9492
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009493 ac_header_preproc=no
9494fi
9495rm -f conftest.err conftest.$ac_ext
9496echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9497echo "${ECHO_T}$ac_header_preproc" >&6
9498
9499# So? What about this header?
9500case $ac_header_compiler:$ac_header_preproc in
9501 yes:no )
9502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9503echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009505echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9506 (
9507 cat <<\_ASBOX
9508## ------------------------------------ ##
9509## Report this to bug-autoconf@gnu.org. ##
9510## ------------------------------------ ##
9511_ASBOX
9512 ) |
9513 sed "s/^/$as_me: WARNING: /" >&2
9514 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009515 no:yes )
9516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9517echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9519echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009521echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9522 (
9523 cat <<\_ASBOX
9524## ------------------------------------ ##
9525## Report this to bug-autoconf@gnu.org. ##
9526## ------------------------------------ ##
9527_ASBOX
9528 ) |
9529 sed "s/^/$as_me: WARNING: /" >&2
9530 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009531esac
9532echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9534if eval "test \"\${$as_ac_Header+set}\" = set"; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher40432fe2001-06-06 21:05:23 +00009536else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009537 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009538fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009541
Ian Pilcher40432fe2001-06-06 21:05:23 +00009542fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009543if test `eval echo '${'$as_ac_Header'}'` = yes; then
9544 cat >>confdefs.h <<_ACEOF
9545#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9546_ACEOF
9547
9548fi
9549
Ian Pilcher40432fe2001-06-06 21:05:23 +00009550done
9551
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009552 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009553#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009554/* confdefs.h. */
9555_ACEOF
9556cat confdefs.h >>conftest.$ac_ext
9557cat >>conftest.$ac_ext <<_ACEOF
9558/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +00009559#include <ft2build.h>
9560 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009561_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009562if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9564 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009565 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009566 rm -f conftest.er1
9567 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009569 (exit $ac_status); } >/dev/null; then
9570 if test -s conftest.err; then
9571 ac_cpp_err=$ac_c_preproc_warn_flag
9572 else
9573 ac_cpp_err=
9574 fi
9575else
9576 ac_cpp_err=yes
9577fi
9578if test -z "$ac_cpp_err"; then
9579
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009580cat >>confdefs.h <<\_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00009581#define HAVE_FREETYPE_FTTRIGON_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009582_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00009583
Huw D M Daviesc1d38132002-02-08 17:09:50 +00009584 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +00009585else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009586 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009587sed 's/^/| /' conftest.$ac_ext >&5
9588
Huw D M Daviesc1d38132002-02-08 17:09:50 +00009589 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +00009590fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009591rm -f conftest.err conftest.$ac_ext
Ian Pilcher40432fe2001-06-06 21:05:23 +00009592 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +00009593 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +00009594 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009595
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009596cat >>confdefs.h <<\_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +00009597#define HAVE_FREETYPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009598_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +00009599
9600 wine_cv_msg_freetype=no
9601 else
Huw D M Davies9b1d3722002-01-29 17:09:28 +00009602 FREETYPEINCL=""
9603 wine_cv_msg_freetype=yes
9604 fi
Ian Pilcher563598d2001-05-16 20:56:05 +00009605 fi
9606fi
9607
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009608
9609echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009610echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9611if test "${ac_cv_c_ppdev+set}" = set; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +00009613else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009614 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009615#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009616/* confdefs.h. */
9617_ACEOF
9618cat confdefs.h >>conftest.$ac_ext
9619cat >>conftest.$ac_ext <<_ACEOF
9620/* end confdefs.h. */
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009621#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009622int
9623main ()
9624{
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009625ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009626 ;
9627 return 0;
9628}
9629_ACEOF
9630rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009632 (eval $ac_compile) 2>&5
9633 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009635 (exit $ac_status); } &&
9636 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009638 (eval $ac_try) 2>&5
9639 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009641 (exit $ac_status); }; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009642 ac_cv_c_ppdev="yes"
9643else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009644 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009645sed 's/^/| /' conftest.$ac_ext >&5
9646
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009647ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009648fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009649rm -f conftest.$ac_objext conftest.$ac_ext
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009650
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009651fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009652echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009653echo "${ECHO_T}$ac_cv_c_ppdev" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009654if test "$ac_cv_c_ppdev" = "yes"
9655then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009656
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009657cat >>confdefs.h <<\_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009658#define HAVE_PPDEV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009659_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009660
9661fi
9662
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009663echo "$as_me:$LINENO: checking for va_copy" >&5
9664echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9665if test "${ac_cv_c_va_copy+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667else
9668 cat >conftest.$ac_ext <<_ACEOF
9669#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009670/* confdefs.h. */
9671_ACEOF
9672cat confdefs.h >>conftest.$ac_ext
9673cat >>conftest.$ac_ext <<_ACEOF
9674/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009675#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009676int
9677main ()
9678{
9679va_list ap1, ap2;
9680 va_copy(ap1,ap2);
9681
9682 ;
9683 return 0;
9684}
9685_ACEOF
9686rm -f conftest.$ac_objext conftest$ac_exeext
9687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9688 (eval $ac_link) 2>&5
9689 ac_status=$?
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
9692 { ac_try='test -s conftest$ac_exeext'
9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694 (eval $ac_try) 2>&5
9695 ac_status=$?
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; }; then
9698 ac_cv_c_va_copy="yes"
9699else
9700 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009701sed 's/^/| /' conftest.$ac_ext >&5
9702
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009703ac_cv_c_va_copy="no"
9704fi
9705rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9706
9707fi
9708echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
9709echo "${ECHO_T}$ac_cv_c_va_copy" >&6
9710if test "$ac_cv_c_va_copy" = "yes"
9711then
9712
9713cat >>confdefs.h <<\_ACEOF
9714#define HAVE_VA_COPY 1
9715_ACEOF
9716
9717fi
9718echo "$as_me:$LINENO: checking for __va_copy" >&5
9719echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9720if test "${ac_cv_c___va_copy+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9722else
9723 cat >conftest.$ac_ext <<_ACEOF
9724#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009725/* confdefs.h. */
9726_ACEOF
9727cat confdefs.h >>conftest.$ac_ext
9728cat >>conftest.$ac_ext <<_ACEOF
9729/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009730#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009731int
9732main ()
9733{
9734va_list ap1, ap2;
9735 __va_copy(ap1,ap2);
9736
9737 ;
9738 return 0;
9739}
9740_ACEOF
9741rm -f conftest.$ac_objext conftest$ac_exeext
9742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9743 (eval $ac_link) 2>&5
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } &&
9747 { ac_try='test -s conftest$ac_exeext'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 (eval $ac_try) 2>&5
9750 ac_status=$?
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
9753 ac_cv_c___va_copy="yes"
9754else
9755 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009756sed 's/^/| /' conftest.$ac_ext >&5
9757
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009758ac_cv_c___va_copy="no"
9759fi
9760rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9761
9762fi
9763echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
9764echo "${ECHO_T}$ac_cv_c___va_copy" >&6
9765if test "$ac_cv_c___va_copy" = "yes"
9766then
9767
9768cat >>confdefs.h <<\_ACEOF
9769#define HAVE___VA_COPY 1
9770_ACEOF
9771
9772fi
9773
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009774
9775
9776
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009777for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009778do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009779as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009780if eval "test \"\${$as_ac_Header+set}\" = set"; then
9781 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9783if eval "test \"\${$as_ac_Header+set}\" = set"; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009785fi
9786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9787echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009788else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009789 # Is the header compilable?
9790echo "$as_me:$LINENO: checking $ac_header usability" >&5
9791echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9792cat >conftest.$ac_ext <<_ACEOF
9793#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009794/* confdefs.h. */
9795_ACEOF
9796cat confdefs.h >>conftest.$ac_ext
9797cat >>conftest.$ac_ext <<_ACEOF
9798/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009799$ac_includes_default
9800#include <$ac_header>
9801_ACEOF
9802rm -f conftest.$ac_objext
9803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9804 (eval $ac_compile) 2>&5
9805 ac_status=$?
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } &&
9808 { ac_try='test -s conftest.$ac_objext'
9809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810 (eval $ac_try) 2>&5
9811 ac_status=$?
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9814 ac_header_compiler=yes
9815else
9816 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009817sed 's/^/| /' conftest.$ac_ext >&5
9818
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009819ac_header_compiler=no
9820fi
9821rm -f conftest.$ac_objext conftest.$ac_ext
9822echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9823echo "${ECHO_T}$ac_header_compiler" >&6
9824
9825# Is the header present?
9826echo "$as_me:$LINENO: checking $ac_header presence" >&5
9827echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9828cat >conftest.$ac_ext <<_ACEOF
9829#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009830/* confdefs.h. */
9831_ACEOF
9832cat confdefs.h >>conftest.$ac_ext
9833cat >>conftest.$ac_ext <<_ACEOF
9834/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009835#include <$ac_header>
9836_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009837if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9839 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009840 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009841 rm -f conftest.er1
9842 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009844 (exit $ac_status); } >/dev/null; then
9845 if test -s conftest.err; then
9846 ac_cpp_err=$ac_c_preproc_warn_flag
9847 else
9848 ac_cpp_err=
9849 fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009850else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009851 ac_cpp_err=yes
9852fi
9853if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009854 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009855else
9856 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009857sed 's/^/| /' conftest.$ac_ext >&5
9858
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009859 ac_header_preproc=no
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009860fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009861rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009862echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9863echo "${ECHO_T}$ac_header_preproc" >&6
9864
9865# So? What about this header?
9866case $ac_header_compiler:$ac_header_preproc in
9867 yes:no )
9868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9869echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009871echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9872 (
9873 cat <<\_ASBOX
9874## ------------------------------------ ##
9875## Report this to bug-autoconf@gnu.org. ##
9876## ------------------------------------ ##
9877_ASBOX
9878 ) |
9879 sed "s/^/$as_me: WARNING: /" >&2
9880 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009881 no:yes )
9882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009887echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9888 (
9889 cat <<\_ASBOX
9890## ------------------------------------ ##
9891## Report this to bug-autoconf@gnu.org. ##
9892## ------------------------------------ ##
9893_ASBOX
9894 ) |
9895 sed "s/^/$as_me: WARNING: /" >&2
9896 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009897esac
9898echo "$as_me:$LINENO: checking for $ac_header" >&5
9899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9900if eval "test \"\${$as_ac_Header+set}\" = set"; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9902else
9903 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009904fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009905echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009906echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009907
9908fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009909if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009910 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009911#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009912_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00009913 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009914fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009915
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009916done
9917
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009918
9919echo "$as_me:$LINENO: checking for Open Sound System" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009920echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
9921if test "${ac_cv_c_opensoundsystem+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009923else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009924 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009925#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009926/* confdefs.h. */
9927_ACEOF
9928cat confdefs.h >>conftest.$ac_ext
9929cat >>conftest.$ac_ext <<_ACEOF
9930/* end confdefs.h. */
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009931
Todd Vierlingecc76691998-12-15 17:49:02 +00009932 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009933 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00009934 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009935 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00009936 #elif defined(HAVE_SOUNDCARD_H)
9937 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009938 #endif
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009939
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009940int
9941main ()
9942{
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009943
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009944
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00009945/* check for one of the Open Sound System specific SNDCTL_ defines */
9946#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009947#error No open sound system
9948#endif
9949
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009950 ;
9951 return 0;
9952}
9953_ACEOF
9954rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009956 (eval $ac_compile) 2>&5
9957 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009959 (exit $ac_status); } &&
9960 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009962 (eval $ac_try) 2>&5
9963 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009965 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009966 ac_cv_c_opensoundsystem="yes"
9967else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009968 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009969sed 's/^/| /' conftest.$ac_ext >&5
9970
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009971ac_cv_c_opensoundsystem="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009972fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009973rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009974fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009975echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009976echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009977
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009978if test "$ac_cv_c_opensoundsystem" = "yes"
9979then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009980
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009981cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009982#define HAVE_OSS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009983_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009984
9985fi
9986
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009987echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009988echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
9989if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +00009991else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009992 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009993#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009994/* confdefs.h. */
9995_ACEOF
9996cat confdefs.h >>conftest.$ac_ext
9997cat >>conftest.$ac_ext <<_ACEOF
9998/* end confdefs.h. */
Eric Pouech338d3b21999-05-22 18:52:21 +00009999
10000 #if defined(HAVE_SYS_SOUNDCARD_H)
10001 #include <sys/soundcard.h>
10002 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10003 #include <machine/soundcard.h>
10004 #elif defined(HAVE_SOUNDCARD_H)
10005 #include <soundcard.h>
10006 #endif
Eric Pouech338d3b21999-05-22 18:52:21 +000010007
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010008int
10009main ()
10010{
Eric Pouech338d3b21999-05-22 18:52:21 +000010011
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010012
Eric Pouech338d3b21999-05-22 18:52:21 +000010013/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
10014#if !defined(SNDCTL_SEQ_SYNC)
10015#error No open sound system MIDI interface
10016#endif
10017
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010018 ;
10019 return 0;
10020}
10021_ACEOF
10022rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010024 (eval $ac_compile) 2>&5
10025 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010027 (exit $ac_status); } &&
10028 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010030 (eval $ac_try) 2>&5
10031 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010033 (exit $ac_status); }; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +000010034 ac_cv_c_opensoundsystem_midi="yes"
10035else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010036 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010037sed 's/^/| /' conftest.$ac_ext >&5
10038
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010039ac_cv_c_opensoundsystem_midi="no"
Eric Pouech338d3b21999-05-22 18:52:21 +000010040fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010041rm -f conftest.$ac_objext conftest.$ac_ext
Eric Pouech338d3b21999-05-22 18:52:21 +000010042fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010043echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010044echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +000010045
10046if test "$ac_cv_c_opensoundsystem_midi" = "yes"
10047then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010048
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010049cat >>confdefs.h <<\_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +000010050#define HAVE_OSS_MIDI 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010051_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +000010052
10053fi
10054
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010055# Extract the first word of "artsc-config", so it can be a program name with args.
10056set dummy artsc-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010057echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10059if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10061else
10062 case $ARTSCCONFIG in
10063 [\\/]* | ?:[\\/]*)
10064 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
10065 ;;
10066 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10068for as_dir in $PATH
10069do
10070 IFS=$as_save_IFS
10071 test -z "$as_dir" && as_dir=.
10072 for ac_exec_ext in '' $ac_executable_extensions; do
10073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10074 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
10075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10076 break 2
10077 fi
10078done
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010079done
10080
10081 ;;
10082esac
10083fi
10084ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
10085
10086if test -n "$ARTSCCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010087 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010088echo "${ECHO_T}$ARTSCCONFIG" >&6
10089else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010090 echo "$as_me:$LINENO: result: no" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010091echo "${ECHO_T}no" >&6
10092fi
10093
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010094echo "$as_me:$LINENO: checking for aRts Sound server" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010095echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
10096if test "${ac_cv_c_artsserver+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10098else
10099 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
10100 then
10101 ac_cv_c_artsserver=no
10102 else
10103 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
10104 ARTSC_LIBS=`$ARTSCCONFIG --libs`
10105 ac_cv_c_artsserver=no
10106 save_CFLAGS="$CFLAGS"
10107 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
10108 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010109#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010110/* confdefs.h. */
10111_ACEOF
10112cat confdefs.h >>conftest.$ac_ext
10113cat >>conftest.$ac_ext <<_ACEOF
10114/* end confdefs.h. */
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010115
10116 #include <artsc.h>
10117
10118int
10119main ()
10120{
10121
10122 arts_stream_t stream;
10123
10124 ;
10125 return 0;
10126}
10127_ACEOF
10128rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010130 (eval $ac_compile) 2>&5
10131 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010133 (exit $ac_status); } &&
10134 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010136 (eval $ac_try) 2>&5
10137 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010139 (exit $ac_status); }; }; then
10140
10141 ac_cv_c_artsserver=yes
10142
10143else
10144 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010145sed 's/^/| /' conftest.$ac_ext >&5
10146
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010147fi
10148rm -f conftest.$ac_objext conftest.$ac_ext
10149 CFLAGS="$save_CFLAGS"
10150 fi
10151fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010152echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010153echo "${ECHO_T}$ac_cv_c_artsserver" >&6
10154
10155if test "$ac_cv_c_artsserver" = "yes"
10156then
10157 ARTSLIBS=$ARTSC_LIBS
10158
10159 ARTSINCL=$ARTSC_CFLAGS
10160
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010161
10162
10163cat >>confdefs.h <<\_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010164#define HAVE_ARTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010165_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010166
10167fi
10168
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010169ALSALIBS=""
10170
10171
Marco Pietrobono0e79a412002-08-29 01:51:31 +000010172
10173for ac_header in alsa/asoundlib.h sys/asoundlib.h
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010174do
10175as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10176if eval "test \"\${$as_ac_Header+set}\" = set"; then
10177 echo "$as_me:$LINENO: checking for $ac_header" >&5
10178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10179if eval "test \"\${$as_ac_Header+set}\" = set"; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10181fi
10182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10183echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10184else
10185 # Is the header compilable?
10186echo "$as_me:$LINENO: checking $ac_header usability" >&5
10187echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10188cat >conftest.$ac_ext <<_ACEOF
10189#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010190/* confdefs.h. */
10191_ACEOF
10192cat confdefs.h >>conftest.$ac_ext
10193cat >>conftest.$ac_ext <<_ACEOF
10194/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010195$ac_includes_default
10196#include <$ac_header>
10197_ACEOF
10198rm -f conftest.$ac_objext
10199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10200 (eval $ac_compile) 2>&5
10201 ac_status=$?
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } &&
10204 { ac_try='test -s conftest.$ac_objext'
10205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10206 (eval $ac_try) 2>&5
10207 ac_status=$?
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; }; then
10210 ac_header_compiler=yes
10211else
10212 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010213sed 's/^/| /' conftest.$ac_ext >&5
10214
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010215ac_header_compiler=no
10216fi
10217rm -f conftest.$ac_objext conftest.$ac_ext
10218echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10219echo "${ECHO_T}$ac_header_compiler" >&6
10220
10221# Is the header present?
10222echo "$as_me:$LINENO: checking $ac_header presence" >&5
10223echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10224cat >conftest.$ac_ext <<_ACEOF
10225#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010226/* confdefs.h. */
10227_ACEOF
10228cat confdefs.h >>conftest.$ac_ext
10229cat >>conftest.$ac_ext <<_ACEOF
10230/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010231#include <$ac_header>
10232_ACEOF
10233if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10235 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010236 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } >/dev/null; then
10241 if test -s conftest.err; then
10242 ac_cpp_err=$ac_c_preproc_warn_flag
10243 else
10244 ac_cpp_err=
10245 fi
10246else
10247 ac_cpp_err=yes
10248fi
10249if test -z "$ac_cpp_err"; then
10250 ac_header_preproc=yes
10251else
10252 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010253sed 's/^/| /' conftest.$ac_ext >&5
10254
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010255 ac_header_preproc=no
10256fi
10257rm -f conftest.err conftest.$ac_ext
10258echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10259echo "${ECHO_T}$ac_header_preproc" >&6
10260
10261# So? What about this header?
10262case $ac_header_compiler:$ac_header_preproc in
10263 yes:no )
10264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10265echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010267echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10268 (
10269 cat <<\_ASBOX
10270## ------------------------------------ ##
10271## Report this to bug-autoconf@gnu.org. ##
10272## ------------------------------------ ##
10273_ASBOX
10274 ) |
10275 sed "s/^/$as_me: WARNING: /" >&2
10276 ;;
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010277 no:yes )
10278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10279echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10281echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010283echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10284 (
10285 cat <<\_ASBOX
10286## ------------------------------------ ##
10287## Report this to bug-autoconf@gnu.org. ##
10288## ------------------------------------ ##
10289_ASBOX
10290 ) |
10291 sed "s/^/$as_me: WARNING: /" >&2
10292 ;;
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010293esac
10294echo "$as_me:$LINENO: checking for $ac_header" >&5
10295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10296if eval "test \"\${$as_ac_Header+set}\" = set"; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10298else
10299 eval "$as_ac_Header=$ac_header_preproc"
10300fi
10301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10302echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10303
10304fi
10305if test `eval echo '${'$as_ac_Header'}'` = yes; then
10306 cat >>confdefs.h <<_ACEOF
10307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10308_ACEOF
Marco Pietrobono0e79a412002-08-29 01:51:31 +000010309 break
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010310fi
10311
10312done
10313
Marco Pietrobono0e79a412002-08-29 01:51:31 +000010314if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010315then
10316 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
10317echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
10318if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10320else
10321 ac_check_lib_save_LIBS=$LIBS
10322LIBS="-lasound $LIBS"
10323cat >conftest.$ac_ext <<_ACEOF
10324#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010325/* confdefs.h. */
10326_ACEOF
10327cat confdefs.h >>conftest.$ac_ext
10328cat >>conftest.$ac_ext <<_ACEOF
10329/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010330
10331/* Override any gcc2 internal prototype to avoid an error. */
10332#ifdef __cplusplus
10333extern "C"
10334#endif
10335/* We use char because int might match the return type of a gcc2
10336 builtin and then its argument prototype would still apply. */
10337char snd_pcm_open ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010338int
10339main ()
10340{
10341snd_pcm_open ();
10342 ;
10343 return 0;
10344}
10345_ACEOF
10346rm -f conftest.$ac_objext conftest$ac_exeext
10347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10348 (eval $ac_link) 2>&5
10349 ac_status=$?
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } &&
10352 { ac_try='test -s conftest$ac_exeext'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10355 ac_status=$?
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; }; then
10358 ac_cv_lib_asound_snd_pcm_open=yes
10359else
10360 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010361sed 's/^/| /' conftest.$ac_ext >&5
10362
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010363ac_cv_lib_asound_snd_pcm_open=no
10364fi
10365rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10366LIBS=$ac_check_lib_save_LIBS
10367fi
10368echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
10369echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
10370if test $ac_cv_lib_asound_snd_pcm_open = yes; then
10371
10372cat >>confdefs.h <<\_ACEOF
10373#define HAVE_ALSA 1
10374_ACEOF
10375
10376 ALSALIBS="-lasound"
10377fi
10378
10379fi
10380
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010381
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010382AUDIOIOLIBS=""
10383
10384
10385for ac_header in libaudioio.h
10386do
10387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10388if eval "test \"\${$as_ac_Header+set}\" = set"; then
10389 echo "$as_me:$LINENO: checking for $ac_header" >&5
10390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10391if eval "test \"\${$as_ac_Header+set}\" = set"; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10393fi
10394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10396else
10397 # Is the header compilable?
10398echo "$as_me:$LINENO: checking $ac_header usability" >&5
10399echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10400cat >conftest.$ac_ext <<_ACEOF
10401#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010402/* confdefs.h. */
10403_ACEOF
10404cat confdefs.h >>conftest.$ac_ext
10405cat >>conftest.$ac_ext <<_ACEOF
10406/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010407$ac_includes_default
10408#include <$ac_header>
10409_ACEOF
10410rm -f conftest.$ac_objext
10411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10412 (eval $ac_compile) 2>&5
10413 ac_status=$?
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } &&
10416 { ac_try='test -s conftest.$ac_objext'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; }; then
10422 ac_header_compiler=yes
10423else
10424 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010425sed 's/^/| /' conftest.$ac_ext >&5
10426
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010427ac_header_compiler=no
10428fi
10429rm -f conftest.$ac_objext conftest.$ac_ext
10430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10431echo "${ECHO_T}$ac_header_compiler" >&6
10432
10433# Is the header present?
10434echo "$as_me:$LINENO: checking $ac_header presence" >&5
10435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10436cat >conftest.$ac_ext <<_ACEOF
10437#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010438/* confdefs.h. */
10439_ACEOF
10440cat confdefs.h >>conftest.$ac_ext
10441cat >>conftest.$ac_ext <<_ACEOF
10442/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010443#include <$ac_header>
10444_ACEOF
10445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10447 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010448 grep -v '^ *+' conftest.er1 >conftest.err
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010449 rm -f conftest.er1
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } >/dev/null; then
10453 if test -s conftest.err; then
10454 ac_cpp_err=$ac_c_preproc_warn_flag
10455 else
10456 ac_cpp_err=
10457 fi
10458else
10459 ac_cpp_err=yes
10460fi
10461if test -z "$ac_cpp_err"; then
10462 ac_header_preproc=yes
10463else
10464 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010465sed 's/^/| /' conftest.$ac_ext >&5
10466
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010467 ac_header_preproc=no
10468fi
10469rm -f conftest.err conftest.$ac_ext
10470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10471echo "${ECHO_T}$ac_header_preproc" >&6
10472
10473# So? What about this header?
10474case $ac_header_compiler:$ac_header_preproc in
10475 yes:no )
10476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010479echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10480 (
10481 cat <<\_ASBOX
10482## ------------------------------------ ##
10483## Report this to bug-autoconf@gnu.org. ##
10484## ------------------------------------ ##
10485_ASBOX
10486 ) |
10487 sed "s/^/$as_me: WARNING: /" >&2
10488 ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010489 no:yes )
10490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10491echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10493echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010495echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10496 (
10497 cat <<\_ASBOX
10498## ------------------------------------ ##
10499## Report this to bug-autoconf@gnu.org. ##
10500## ------------------------------------ ##
10501_ASBOX
10502 ) |
10503 sed "s/^/$as_me: WARNING: /" >&2
10504 ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010505esac
10506echo "$as_me:$LINENO: checking for $ac_header" >&5
10507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10508if eval "test \"\${$as_ac_Header+set}\" = set"; then
10509 echo $ECHO_N "(cached) $ECHO_C" >&6
10510else
10511 eval "$as_ac_Header=$ac_header_preproc"
10512fi
10513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10515
10516fi
10517if test `eval echo '${'$as_ac_Header'}'` = yes; then
10518 cat >>confdefs.h <<_ACEOF
10519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10520_ACEOF
10521 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10522echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10523if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10525else
10526 ac_check_lib_save_LIBS=$LIBS
10527LIBS="-laudioio $LIBS"
10528cat >conftest.$ac_ext <<_ACEOF
10529#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010530/* confdefs.h. */
10531_ACEOF
10532cat confdefs.h >>conftest.$ac_ext
10533cat >>conftest.$ac_ext <<_ACEOF
10534/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010535
10536/* Override any gcc2 internal prototype to avoid an error. */
10537#ifdef __cplusplus
10538extern "C"
10539#endif
10540/* We use char because int might match the return type of a gcc2
10541 builtin and then its argument prototype would still apply. */
10542char AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010543int
10544main ()
10545{
10546AudioIOGetVersion ();
10547 ;
10548 return 0;
10549}
10550_ACEOF
10551rm -f conftest.$ac_objext conftest$ac_exeext
10552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10553 (eval $ac_link) 2>&5
10554 ac_status=$?
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } &&
10557 { ac_try='test -s conftest$ac_exeext'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10560 ac_status=$?
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; }; then
10563 ac_cv_lib_audioio_AudioIOGetVersion=yes
10564else
10565 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010566sed 's/^/| /' conftest.$ac_ext >&5
10567
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010568ac_cv_lib_audioio_AudioIOGetVersion=no
10569fi
10570rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10571LIBS=$ac_check_lib_save_LIBS
10572fi
10573echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10574echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
10575if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
10576 AUDIOIOLIBS="-laudioio"
10577
10578cat >>confdefs.h <<\_ACEOF
10579#define HAVE_LIBAUDIOIO 1
10580_ACEOF
10581
10582fi
10583
10584fi
10585
10586done
10587
10588
10589
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010590echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010591echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
10592if test "${ac_cv_mmap64_works+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010594else
10595 if test "$cross_compiling" = yes; then
10596 ac_cv_mmap64_works="no"
10597else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010598 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010599#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010600/* confdefs.h. */
10601_ACEOF
10602cat confdefs.h >>conftest.$ac_ext
10603cat >>conftest.$ac_ext <<_ACEOF
10604/* end confdefs.h. */
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010605
10606 #define _FILE_OFFSET_BITS 64
10607 #include <stdio.h>
10608 #include <unistd.h>
10609 #include <fcntl.h>
10610 #include <sys/mman.h>
10611 #include <errno.h>
10612
10613 int main(int argc,char **argv) {
10614 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
10615 if (fd == -1) exit(1);
10616
10617 unlink("conftest.map");
10618
10619 write(fd,"test",4);
10620
10621 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
10622 (errno == EINVAL)
10623 ) {
10624 exit(1);
10625 }
10626 close(fd);
10627 fprintf(stderr,"success!\n");
10628 exit(0);
10629 }
10630
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010631
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010632_ACEOF
10633rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010635 (eval $ac_link) 2>&5
10636 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010640 (eval $ac_try) 2>&5
10641 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010643 (exit $ac_status); }; }; then
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010644 ac_cv_mmap64_works="yes"
10645else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010646 echo "$as_me: program exited with status $ac_status" >&5
10647echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010648sed 's/^/| /' conftest.$ac_ext >&5
10649
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010650( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010651ac_cv_mmap64_works="no"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010652fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010653rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010654fi
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010655fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010656echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010657echo "${ECHO_T}$ac_cv_mmap64_works" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010658
10659if test "$ac_cv_mmap64_works" = "yes"
10660then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010661
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010662cat >>confdefs.h <<\_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010663#define _FILE_OFFSET_BITS 64
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010664_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010665
10666fi
10667
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010668
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010669if test "x${GCC}" = "xyes"
10670then
Alexandre Julliardf8aa3b52003-01-23 21:32:35 +000010671 CFLAGS="$CFLAGS -Wall -Wpointer-arith"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010672 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010673echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
10674if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010676else
10677 if test "$cross_compiling" = yes; then
10678 ac_cv_c_gcc_strength_bug="yes"
10679else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010680 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010681#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010682/* confdefs.h. */
10683_ACEOF
10684cat confdefs.h >>conftest.$ac_ext
10685cat >>conftest.$ac_ext <<_ACEOF
10686/* end confdefs.h. */
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010687
Eric Pouech5aee80f2000-11-11 00:31:39 +000010688int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010689int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000010690 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010691 unsigned int B = 3;
10692 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000010693 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000010694 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
10695 L[i] = 4;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010696
Eric Pouech5aee80f2000-11-11 00:31:39 +000010697 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010698}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010699_ACEOF
10700rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010702 (eval $ac_link) 2>&5
10703 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010707 (eval $ac_try) 2>&5
10708 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010710 (exit $ac_status); }; }; then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010711 ac_cv_c_gcc_strength_bug="no"
10712else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010713 echo "$as_me: program exited with status $ac_status" >&5
10714echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010715sed 's/^/| /' conftest.$ac_ext >&5
10716
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010717( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010718ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010719fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010720rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010721fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010722fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010723echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010724echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010725 if test "$ac_cv_c_gcc_strength_bug" = "yes"
10726 then
10727 CFLAGS="$CFLAGS -fno-strength-reduce"
10728 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010729
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010730 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010731echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
10732if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010734else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010735 ac_wine_try_cflags_saved=$CFLAGS
10736CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10737cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010738#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010739/* confdefs.h. */
10740_ACEOF
10741cat confdefs.h >>conftest.$ac_ext
10742cat >>conftest.$ac_ext <<_ACEOF
10743/* end confdefs.h. */
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010744
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010745int
10746main ()
10747{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010748
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010749 ;
10750 return 0;
10751}
10752_ACEOF
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010753rm -f conftest.$ac_objext conftest$ac_exeext
10754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10755 (eval $ac_link) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010756 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010758 (exit $ac_status); } &&
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010759 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010761 (eval $ac_try) 2>&5
10762 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010764 (exit $ac_status); }; }; then
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010765 ac_cv_c_gcc_stack_boundary="yes"
10766else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010767 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010768sed 's/^/| /' conftest.$ac_ext >&5
10769
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010770ac_cv_c_gcc_stack_boundary="no"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010771fi
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010772rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10773CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010774fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010775echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010776echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010777 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
10778 then
10779 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10780 fi
Alexandre Julliard14bd1202003-01-09 00:42:26 +000010781
10782 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
10783echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
10784if test "${ac_cv_c_gcc_gstabs+set}" = set; then
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
10786else
10787 ac_wine_try_cflags_saved=$CFLAGS
10788CFLAGS="$CFLAGS -gstabs+"
10789cat >conftest.$ac_ext <<_ACEOF
10790#line $LINENO "configure"
10791/* confdefs.h. */
10792_ACEOF
10793cat confdefs.h >>conftest.$ac_ext
10794cat >>conftest.$ac_ext <<_ACEOF
10795/* end confdefs.h. */
10796
10797int
10798main ()
10799{
10800
10801 ;
10802 return 0;
10803}
10804_ACEOF
10805rm -f conftest.$ac_objext conftest$ac_exeext
10806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10807 (eval $ac_link) 2>&5
10808 ac_status=$?
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } &&
10811 { ac_try='test -s conftest$ac_exeext'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; }; then
10817 ac_cv_c_gcc_gstabs="yes"
10818else
10819 echo "$as_me: failed program was:" >&5
10820sed 's/^/| /' conftest.$ac_ext >&5
10821
10822ac_cv_c_gcc_gstabs="no"
10823fi
10824rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10825CFLAGS=$ac_wine_try_cflags_saved
10826fi
10827echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
10828echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
10829 if test "$ac_cv_c_gcc_gstabs" = "yes"
10830 then
10831 CFLAGS="$CFLAGS -gstabs+"
10832 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010833fi
10834
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010835
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010836echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
10837echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
10838if test "${ac_cv_asm_func_def+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010839 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000010840else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010841 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010842#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010843/* confdefs.h. */
10844_ACEOF
10845cat confdefs.h >>conftest.$ac_ext
10846cat >>conftest.$ac_ext <<_ACEOF
10847/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000010848void 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 +000010849
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010850int
10851main ()
10852{
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000010853
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010854 ;
10855 return 0;
10856}
10857_ACEOF
10858rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010860 (eval $ac_link) 2>&5
10861 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010863 (exit $ac_status); } &&
10864 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010866 (eval $ac_try) 2>&5
10867 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010869 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010870 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000010871else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010872 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010873sed 's/^/| /' conftest.$ac_ext >&5
10874
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010875cat >conftest.$ac_ext <<_ACEOF
10876#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010877/* confdefs.h. */
10878_ACEOF
10879cat confdefs.h >>conftest.$ac_ext
10880cat >>conftest.$ac_ext <<_ACEOF
10881/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000010882void 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 +000010883
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010884int
10885main ()
10886{
10887
10888 ;
10889 return 0;
10890}
10891_ACEOF
10892rm -f conftest.$ac_objext conftest$ac_exeext
10893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10894 (eval $ac_link) 2>&5
10895 ac_status=$?
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } &&
10898 { ac_try='test -s conftest$ac_exeext'
10899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900 (eval $ac_try) 2>&5
10901 ac_status=$?
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010904 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010905else
10906 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010907sed 's/^/| /' conftest.$ac_ext >&5
10908
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010909cat >conftest.$ac_ext <<_ACEOF
10910#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010911/* confdefs.h. */
10912_ACEOF
10913cat confdefs.h >>conftest.$ac_ext
10914cat >>conftest.$ac_ext <<_ACEOF
10915/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000010916void 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 +000010917
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010918int
10919main ()
10920{
10921
10922 ;
10923 return 0;
10924}
10925_ACEOF
10926rm -f conftest.$ac_objext conftest$ac_exeext
10927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10928 (eval $ac_link) 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } &&
10932 { ac_try='test -s conftest$ac_exeext'
10933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934 (eval $ac_try) 2>&5
10935 ac_status=$?
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; }; then
10938 ac_cv_asm_func_def=".type 2"
10939else
10940 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010941sed 's/^/| /' conftest.$ac_ext >&5
10942
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010943ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010944fi
10945rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010946fi
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010947rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10948fi
10949rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10950fi
10951echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
10952echo "${ECHO_T}$ac_cv_asm_func_def" >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010953
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010954
10955
10956case "$ac_cv_asm_func_def" in
10957 ".def")
10958 cat >>confdefs.h <<\_ACEOF
10959#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010960_ACEOF
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010961 ;;
10962 ".type @function")
10963 cat >>confdefs.h <<\_ACEOF
10964#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
10965_ACEOF
10966 ;;
10967 ".type 2")
10968 cat >>confdefs.h <<\_ACEOF
10969#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
10970_ACEOF
10971 ;;
10972 *)
10973 cat >>confdefs.h <<\_ACEOF
10974#define __ASM_FUNC(name) ""
10975_ACEOF
10976 ;;
10977esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010978
10979
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010980echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010981echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
10982if test "${ac_cv_c_extern_prefix+set}" = set; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010984else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010985 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010986#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010987/* confdefs.h. */
10988_ACEOF
10989cat confdefs.h >>conftest.$ac_ext
10990cat >>conftest.$ac_ext <<_ACEOF
10991/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000010992void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010993extern int ac_test;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010994int
10995main ()
10996{
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010997if (ac_test) return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010998 ;
10999 return 0;
11000}
11001_ACEOF
11002rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011004 (eval $ac_link) 2>&5
11005 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011007 (exit $ac_status); } &&
11008 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011010 (eval $ac_try) 2>&5
11011 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011013 (exit $ac_status); }; }; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000011014 ac_cv_c_extern_prefix="yes"
11015else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011016 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011017sed 's/^/| /' conftest.$ac_ext >&5
11018
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011019ac_cv_c_extern_prefix="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000011020fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011021rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000011022fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011023echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011024echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011025
11026
11027
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000011028if test "$ac_cv_c_extern_prefix" = "yes"
11029then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011030 cat >>confdefs.h <<\_ACEOF
11031#define __ASM_NAME(name) "_" name
11032_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011033
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011034else
11035 cat >>confdefs.h <<\_ACEOF
11036#define __ASM_NAME(name) name
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011037_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000011038
11039fi
11040
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011041
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011042echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011043echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
11044if test "${ac_cv_c_asm_string+set}" = set; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011046else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011047 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011048#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011049/* confdefs.h. */
11050_ACEOF
11051cat confdefs.h >>conftest.$ac_ext
11052cat >>conftest.$ac_ext <<_ACEOF
11053/* end confdefs.h. */
Marcus Meissner49163d52002-08-20 00:26:40 +000011054void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011055
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011056int
11057main ()
11058{
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011059
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011060 ;
11061 return 0;
11062}
11063_ACEOF
11064rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011066 (eval $ac_link) 2>&5
11067 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011069 (exit $ac_status); } &&
11070 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011072 (eval $ac_try) 2>&5
11073 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011075 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011076 ac_cv_c_asm_string="yes"
11077else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011078 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011079sed 's/^/| /' conftest.$ac_ext >&5
11080
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011081ac_cv_c_asm_string="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011082fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011083rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011084fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011085echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011086echo "${ECHO_T}$ac_cv_c_asm_string" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011087if test "$ac_cv_c_asm_string" = "yes"
11088then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011089
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011090cat >>confdefs.h <<\_ACEOF
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011091#define HAVE_ASM_STRING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011092_ACEOF
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011093
11094fi
11095
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011096
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011097DLLEXT=""
11098
11099DLLFLAGS=""
11100
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011101DLLIBS=""
11102
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011103LDDLLFLAGS=""
11104
11105LDSHARED=""
11106
Alexandre Julliardada5e652002-12-12 22:03:14 +000011107LIBEXT="so"
11108
11109IMPLIBEXT="def"
11110
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011111
Alexandre Julliardfc01b722002-05-12 03:16:39 +000011112case $host_os in
11113 cygwin*|mingw32*)
11114 if test -n "$ac_tool_prefix"; then
Alexandre Julliardada5e652002-12-12 22:03:14 +000011115 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11116set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11117echo "$as_me:$LINENO: checking for $ac_word" >&5
11118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11119if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11121else
11122 if test -n "$DLLTOOL"; then
11123 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11124else
11125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126for as_dir in $PATH
11127do
11128 IFS=$as_save_IFS
11129 test -z "$as_dir" && as_dir=.
11130 for ac_exec_ext in '' $ac_executable_extensions; do
11131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11132 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11134 break 2
11135 fi
11136done
11137done
11138
11139fi
11140fi
11141DLLTOOL=$ac_cv_prog_DLLTOOL
11142if test -n "$DLLTOOL"; then
11143 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11144echo "${ECHO_T}$DLLTOOL" >&6
11145else
11146 echo "$as_me:$LINENO: result: no" >&5
11147echo "${ECHO_T}no" >&6
11148fi
11149
11150fi
11151if test -z "$ac_cv_prog_DLLTOOL"; then
11152 ac_ct_DLLTOOL=$DLLTOOL
11153 # Extract the first word of "dlltool", so it can be a program name with args.
11154set dummy dlltool; ac_word=$2
11155echo "$as_me:$LINENO: checking for $ac_word" >&5
11156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11157if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11159else
11160 if test -n "$ac_ct_DLLTOOL"; then
11161 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11162else
11163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164for as_dir in $PATH
11165do
11166 IFS=$as_save_IFS
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11170 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11172 break 2
11173 fi
11174done
11175done
11176
11177 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
11178fi
11179fi
11180ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11181if test -n "$ac_ct_DLLTOOL"; then
11182 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11183echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
11184else
11185 echo "$as_me:$LINENO: result: no" >&5
11186echo "${ECHO_T}no" >&6
11187fi
11188
11189 DLLTOOL=$ac_ct_DLLTOOL
11190else
11191 DLLTOOL="$ac_cv_prog_DLLTOOL"
11192fi
11193
11194 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000011195 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
11196set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard466ae142002-05-07 18:33:47 +000011197echo "$as_me:$LINENO: checking for $ac_word" >&5
11198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11199if test "${ac_cv_prog_DLLWRAP+set}" = set; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11201else
11202 if test -n "$DLLWRAP"; then
11203 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
11204else
11205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11206for as_dir in $PATH
11207do
11208 IFS=$as_save_IFS
11209 test -z "$as_dir" && as_dir=.
11210 for ac_exec_ext in '' $ac_executable_extensions; do
11211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000011212 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard466ae142002-05-07 18:33:47 +000011213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11214 break 2
11215 fi
11216done
11217done
11218
Alexandre Julliard466ae142002-05-07 18:33:47 +000011219fi
11220fi
11221DLLWRAP=$ac_cv_prog_DLLWRAP
11222if test -n "$DLLWRAP"; then
11223 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
11224echo "${ECHO_T}$DLLWRAP" >&6
11225else
11226 echo "$as_me:$LINENO: result: no" >&5
11227echo "${ECHO_T}no" >&6
11228fi
11229
Alexandre Julliardfc01b722002-05-12 03:16:39 +000011230fi
11231if test -z "$ac_cv_prog_DLLWRAP"; then
11232 ac_ct_DLLWRAP=$DLLWRAP
11233 # Extract the first word of "dllwrap", so it can be a program name with args.
11234set dummy dllwrap; ac_word=$2
11235echo "$as_me:$LINENO: checking for $ac_word" >&5
11236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11237if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11239else
11240 if test -n "$ac_ct_DLLWRAP"; then
11241 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
11242else
11243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11244for as_dir in $PATH
11245do
11246 IFS=$as_save_IFS
11247 test -z "$as_dir" && as_dir=.
11248 for ac_exec_ext in '' $ac_executable_extensions; do
11249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11250 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
11251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11252 break 2
11253 fi
11254done
11255done
11256
11257 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
11258fi
11259fi
11260ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
11261if test -n "$ac_ct_DLLWRAP"; then
11262 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
11263echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
11264else
11265 echo "$as_me:$LINENO: result: no" >&5
11266echo "${ECHO_T}no" >&6
11267fi
11268
11269 DLLWRAP=$ac_ct_DLLWRAP
11270else
11271 DLLWRAP="$ac_cv_prog_DLLWRAP"
11272fi
11273
11274 if test "$DLLWRAP" = "false"; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011275 LIBEXT="a"
Alexandre Julliardfc01b722002-05-12 03:16:39 +000011276 else
11277 LIBEXT="dll"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011278 fi
Alexandre Julliardada5e652002-12-12 22:03:14 +000011279 IMPLIBEXT="a"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011280 ;;
11281 *)
11282
11283for ac_header in dlfcn.h
11284do
11285as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11286if eval "test \"\${$as_ac_Header+set}\" = set"; then
11287 echo "$as_me:$LINENO: checking for $ac_header" >&5
11288echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11289if eval "test \"\${$as_ac_Header+set}\" = set"; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11291fi
11292echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11293echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11294else
11295 # Is the header compilable?
11296echo "$as_me:$LINENO: checking $ac_header usability" >&5
11297echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11298cat >conftest.$ac_ext <<_ACEOF
11299#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011300/* confdefs.h. */
11301_ACEOF
11302cat confdefs.h >>conftest.$ac_ext
11303cat >>conftest.$ac_ext <<_ACEOF
11304/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011305$ac_includes_default
11306#include <$ac_header>
11307_ACEOF
11308rm -f conftest.$ac_objext
11309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11310 (eval $ac_compile) 2>&5
11311 ac_status=$?
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } &&
11314 { ac_try='test -s conftest.$ac_objext'
11315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316 (eval $ac_try) 2>&5
11317 ac_status=$?
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; }; then
11320 ac_header_compiler=yes
11321else
11322 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011323sed 's/^/| /' conftest.$ac_ext >&5
11324
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011325ac_header_compiler=no
11326fi
11327rm -f conftest.$ac_objext conftest.$ac_ext
11328echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11329echo "${ECHO_T}$ac_header_compiler" >&6
11330
11331# Is the header present?
11332echo "$as_me:$LINENO: checking $ac_header presence" >&5
11333echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11334cat >conftest.$ac_ext <<_ACEOF
11335#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011336/* confdefs.h. */
11337_ACEOF
11338cat confdefs.h >>conftest.$ac_ext
11339cat >>conftest.$ac_ext <<_ACEOF
11340/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011341#include <$ac_header>
11342_ACEOF
11343if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11345 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011346 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011347 rm -f conftest.er1
11348 cat conftest.err >&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } >/dev/null; then
11351 if test -s conftest.err; then
11352 ac_cpp_err=$ac_c_preproc_warn_flag
11353 else
11354 ac_cpp_err=
11355 fi
11356else
11357 ac_cpp_err=yes
11358fi
11359if test -z "$ac_cpp_err"; then
11360 ac_header_preproc=yes
11361else
11362 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011363sed 's/^/| /' conftest.$ac_ext >&5
11364
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011365 ac_header_preproc=no
11366fi
11367rm -f conftest.err conftest.$ac_ext
11368echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11369echo "${ECHO_T}$ac_header_preproc" >&6
11370
11371# So? What about this header?
11372case $ac_header_compiler:$ac_header_preproc in
11373 yes:no )
11374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11375echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011377echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11378 (
11379 cat <<\_ASBOX
11380## ------------------------------------ ##
11381## Report this to bug-autoconf@gnu.org. ##
11382## ------------------------------------ ##
11383_ASBOX
11384 ) |
11385 sed "s/^/$as_me: WARNING: /" >&2
11386 ;;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011387 no:yes )
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11389echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11391echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011393echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11394 (
11395 cat <<\_ASBOX
11396## ------------------------------------ ##
11397## Report this to bug-autoconf@gnu.org. ##
11398## ------------------------------------ ##
11399_ASBOX
11400 ) |
11401 sed "s/^/$as_me: WARNING: /" >&2
11402 ;;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011403esac
11404echo "$as_me:$LINENO: checking for $ac_header" >&5
11405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11406if eval "test \"\${$as_ac_Header+set}\" = set"; then
11407 echo $ECHO_N "(cached) $ECHO_C" >&6
11408else
11409 eval "$as_ac_Header=$ac_header_preproc"
11410fi
11411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11412echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11413
11414fi
11415if test `eval echo '${'$as_ac_Header'}'` = yes; then
11416 cat >>confdefs.h <<_ACEOF
11417#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11418_ACEOF
11419
11420for ac_func in dlopen
11421do
11422as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11423echo "$as_me:$LINENO: checking for $ac_func" >&5
11424echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11425if eval "test \"\${$as_ac_var+set}\" = set"; then
11426 echo $ECHO_N "(cached) $ECHO_C" >&6
11427else
11428 cat >conftest.$ac_ext <<_ACEOF
11429#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011430/* confdefs.h. */
11431_ACEOF
11432cat confdefs.h >>conftest.$ac_ext
11433cat >>conftest.$ac_ext <<_ACEOF
11434/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011435/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011436 which can conflict with char $ac_func (); below.
11437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11438 <limits.h> exists even on freestanding compilers. */
11439#ifdef __STDC__
11440# include <limits.h>
11441#else
11442# include <assert.h>
11443#endif
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011444/* Override any gcc2 internal prototype to avoid an error. */
11445#ifdef __cplusplus
11446extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011447{
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011448#endif
11449/* We use char because int might match the return type of a gcc2
11450 builtin and then its argument prototype would still apply. */
11451char $ac_func ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011452/* The GNU C library defines this for functions which it implements
11453 to always fail with ENOSYS. Some functions are actually named
11454 something starting with __ and the normal name is an alias. */
11455#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11456choke me
11457#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011458char (*f) () = $ac_func;
11459#endif
11460#ifdef __cplusplus
11461}
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011462#endif
11463
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011464int
11465main ()
11466{
11467return f != $ac_func;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011468 ;
11469 return 0;
11470}
11471_ACEOF
11472rm -f conftest.$ac_objext conftest$ac_exeext
11473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11474 (eval $ac_link) 2>&5
11475 ac_status=$?
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); } &&
11478 { ac_try='test -s conftest$ac_exeext'
11479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480 (eval $ac_try) 2>&5
11481 ac_status=$?
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; }; then
11484 eval "$as_ac_var=yes"
11485else
11486 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011487sed 's/^/| /' conftest.$ac_ext >&5
11488
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011489eval "$as_ac_var=no"
11490fi
11491rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11492fi
11493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11494echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11495if test `eval echo '${'$as_ac_var'}'` = yes; then
11496 cat >>confdefs.h <<_ACEOF
11497#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11498_ACEOF
11499
11500else
11501 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11502echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11503if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11504 echo $ECHO_N "(cached) $ECHO_C" >&6
11505else
11506 ac_check_lib_save_LIBS=$LIBS
11507LIBS="-ldl $LIBS"
11508cat >conftest.$ac_ext <<_ACEOF
11509#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011510/* confdefs.h. */
11511_ACEOF
11512cat confdefs.h >>conftest.$ac_ext
11513cat >>conftest.$ac_ext <<_ACEOF
11514/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011515
11516/* Override any gcc2 internal prototype to avoid an error. */
11517#ifdef __cplusplus
11518extern "C"
11519#endif
11520/* We use char because int might match the return type of a gcc2
11521 builtin and then its argument prototype would still apply. */
11522char dlopen ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011523int
11524main ()
11525{
11526dlopen ();
11527 ;
11528 return 0;
11529}
11530_ACEOF
11531rm -f conftest.$ac_objext conftest$ac_exeext
11532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11533 (eval $ac_link) 2>&5
11534 ac_status=$?
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); } &&
11537 { ac_try='test -s conftest$ac_exeext'
11538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539 (eval $ac_try) 2>&5
11540 ac_status=$?
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; }; then
11543 ac_cv_lib_dl_dlopen=yes
11544else
11545 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011546sed 's/^/| /' conftest.$ac_ext >&5
11547
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011548ac_cv_lib_dl_dlopen=no
11549fi
11550rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11551LIBS=$ac_check_lib_save_LIBS
11552fi
11553echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11554echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11555if test $ac_cv_lib_dl_dlopen = yes; then
11556
11557cat >>confdefs.h <<\_ACEOF
11558#define HAVE_DLOPEN 1
11559_ACEOF
11560
11561 DLLIBS="-ldl"
11562else
11563 LIBEXT="a"
11564fi
11565
11566fi
11567done
11568
11569else
11570 LIBEXT="a"
11571fi
11572
11573done
11574
11575
11576 if test "$LIBEXT" = "so"
11577 then
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011578 DLLFLAGS="-fPIC"
11579 DLLEXT=".so"
Alexandre Julliard466ae142002-05-07 18:33:47 +000011580 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011581echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
11582if test "${ac_cv_c_dll_gnuelf+set}" = set; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011584else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011585 ac_wine_try_cflags_saved=$CFLAGS
11586CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
11587cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011588#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011589/* confdefs.h. */
11590_ACEOF
11591cat confdefs.h >>conftest.$ac_ext
11592cat >>conftest.$ac_ext <<_ACEOF
11593/* end confdefs.h. */
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011594
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011595int
11596main ()
11597{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011598
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011599 ;
11600 return 0;
11601}
11602_ACEOF
11603rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011605 (eval $ac_link) 2>&5
11606 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011608 (exit $ac_status); } &&
11609 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011611 (eval $ac_try) 2>&5
11612 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011614 (exit $ac_status); }; }; then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +000011615 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011616else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011617 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011618sed 's/^/| /' conftest.$ac_ext >&5
11619
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011620ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011621fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011622rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011623CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011624fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011625echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011626echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000011627 if test "$ac_cv_c_dll_gnuelf" = "yes"
11628 then
11629 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
11630 LDDLLFLAGS="-Wl,-Bsymbolic"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000011631 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
11632echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
11633if test "${ac_cv_c_dll_zdefs+set}" = set; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11635else
11636 ac_wine_try_cflags_saved=$CFLAGS
11637CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
11638cat >conftest.$ac_ext <<_ACEOF
11639#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011640/* confdefs.h. */
11641_ACEOF
11642cat confdefs.h >>conftest.$ac_ext
11643cat >>conftest.$ac_ext <<_ACEOF
11644/* end confdefs.h. */
Alexandre Julliardf2abe472002-11-21 04:13:35 +000011645
11646int
11647main ()
11648{
11649
11650 ;
11651 return 0;
11652}
11653_ACEOF
11654rm -f conftest.$ac_objext conftest$ac_exeext
11655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11656 (eval $ac_link) 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } &&
11660 { ac_try='test -s conftest$ac_exeext'
11661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662 (eval $ac_try) 2>&5
11663 ac_status=$?
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; }; then
11666 ac_cv_c_dll_zdefs="yes"
11667else
11668 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011669sed 's/^/| /' conftest.$ac_ext >&5
11670
Alexandre Julliardf2abe472002-11-21 04:13:35 +000011671ac_cv_c_dll_zdefs="no"
11672fi
11673rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11674CFLAGS=$ac_wine_try_cflags_saved
11675fi
11676echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
11677echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
11678 if test "$ac_cv_c_dll_zdefs" = "yes"
11679 then
11680 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
11681 fi
Alexandre Julliard466ae142002-05-07 18:33:47 +000011682 else
11683 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011684echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
11685if test "${ac_cv_c_dll_unixware+set}" = set; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierling4b992b01998-12-15 15:26:27 +000011687else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011688 ac_wine_try_cflags_saved=$CFLAGS
11689CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
11690cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011691#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011692/* confdefs.h. */
11693_ACEOF
11694cat confdefs.h >>conftest.$ac_ext
11695cat >>conftest.$ac_ext <<_ACEOF
11696/* end confdefs.h. */
Todd Vierling4b992b01998-12-15 15:26:27 +000011697
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011698int
11699main ()
11700{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011701
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011702 ;
11703 return 0;
11704}
11705_ACEOF
11706rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011708 (eval $ac_link) 2>&5
11709 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011711 (exit $ac_status); } &&
11712 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011714 (eval $ac_try) 2>&5
11715 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011717 (exit $ac_status); }; }; then
Ron Recorde977d6c1999-09-05 12:32:05 +000011718 ac_cv_c_dll_unixware="yes"
11719else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011720 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011721sed 's/^/| /' conftest.$ac_ext >&5
11722
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011723ac_cv_c_dll_unixware="no"
Ron Recorde977d6c1999-09-05 12:32:05 +000011724fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011725rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011726CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011727fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011728echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011729echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000011730 if test "$ac_cv_c_dll_unixware" = "yes"
11731 then
11732 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
11733 LDDLLFLAGS="-Wl,-B,symbolic"
11734 fi
11735 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011736 fi
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000011737
11738 CROSSTEST=""
11739
11740 if test "$cross_compiling" = "no"
11741 then
11742 for ac_prog in i586-mingw32msvc-gcc
11743do
11744 # Extract the first word of "$ac_prog", so it can be a program name with args.
11745set dummy $ac_prog; ac_word=$2
11746echo "$as_me:$LINENO: checking for $ac_word" >&5
11747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11748if test "${ac_cv_prog_CROSSCC+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11750else
11751 if test -n "$CROSSCC"; then
11752 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
11753else
11754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11755for as_dir in $PATH
11756do
11757 IFS=$as_save_IFS
11758 test -z "$as_dir" && as_dir=.
11759 for ac_exec_ext in '' $ac_executable_extensions; do
11760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11761 ac_cv_prog_CROSSCC="$ac_prog"
11762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11763 break 2
11764 fi
11765done
11766done
11767
11768fi
11769fi
11770CROSSCC=$ac_cv_prog_CROSSCC
11771if test -n "$CROSSCC"; then
11772 echo "$as_me:$LINENO: result: $CROSSCC" >&5
11773echo "${ECHO_T}$CROSSCC" >&6
11774else
11775 echo "$as_me:$LINENO: result: no" >&5
11776echo "${ECHO_T}no" >&6
11777fi
11778
11779 test -n "$CROSSCC" && break
11780done
11781test -n "$CROSSCC" || CROSSCC="false"
11782
11783 for ac_prog in i586-mingw32msvc-dlltool
11784do
11785 # Extract the first word of "$ac_prog", so it can be a program name with args.
11786set dummy $ac_prog; ac_word=$2
11787echo "$as_me:$LINENO: checking for $ac_word" >&5
11788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11789if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11791else
11792 if test -n "$DLLTOOL"; then
11793 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11794else
11795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796for as_dir in $PATH
11797do
11798 IFS=$as_save_IFS
11799 test -z "$as_dir" && as_dir=.
11800 for ac_exec_ext in '' $ac_executable_extensions; do
11801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11802 ac_cv_prog_DLLTOOL="$ac_prog"
11803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11804 break 2
11805 fi
11806done
11807done
11808
11809fi
11810fi
11811DLLTOOL=$ac_cv_prog_DLLTOOL
11812if test -n "$DLLTOOL"; then
11813 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11814echo "${ECHO_T}$DLLTOOL" >&6
11815else
11816 echo "$as_me:$LINENO: result: no" >&5
11817echo "${ECHO_T}no" >&6
11818fi
11819
11820 test -n "$DLLTOOL" && break
11821done
11822test -n "$DLLTOOL" || DLLTOOL="false"
11823
11824 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
11825 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011826 ;;
11827esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011828
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000011829if test "$LIBEXT" = "a"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011830 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011831It is currently not possible to build Wine without shared library
11832(.so) support to allow transparent switch between .so and .dll files.
11833If you are using Linux, you will need a newer binutils.
11834" >&5
11835echo "$as_me: error: could not find a way to build shared libraries.
11836It is currently not possible to build Wine without shared library
11837(.so) support to allow transparent switch between .so and .dll files.
11838If you are using Linux, you will need a newer binutils.
11839" >&2;}
11840 { (exit 1); exit 1; }; }
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000011841fi
11842
Alexandre Julliardfc01b722002-05-12 03:16:39 +000011843case $build_os in
11844 cygwin*|mingw32*)
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011845 LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\""
11846 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000011847 *)
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011848 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\""
11849 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000011850esac
11851
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011852CRTLIBS=""
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011853
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011854case $host_os in
11855 mingw32*)
11856 CRTLIBS="-lmsvcrt" ;;
11857esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011858
11859
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011860if test "$LIBEXT" = "so"
11861then
11862 # Extract the first word of "ldd", so it can be a program name with args.
11863set dummy ldd; ac_word=$2
11864echo "$as_me:$LINENO: checking for $ac_word" >&5
11865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11866if test "${ac_cv_path_LDD+set}" = set; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
11868else
11869 case $LDD in
11870 [\\/]* | ?:[\\/]*)
11871 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
11872 ;;
11873 *)
11874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011875as_dummy="/sbin:/usr/sbin:$PATH"
11876for as_dir in $as_dummy
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011877do
11878 IFS=$as_save_IFS
11879 test -z "$as_dir" && as_dir=.
11880 for ac_exec_ext in '' $ac_executable_extensions; do
11881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11882 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
11883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11884 break 2
11885 fi
11886done
11887done
11888
11889 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
11890 ;;
11891esac
11892fi
11893LDD=$ac_cv_path_LDD
11894
11895if test -n "$LDD"; then
11896 echo "$as_me:$LINENO: result: $LDD" >&5
11897echo "${ECHO_T}$LDD" >&6
11898else
11899 echo "$as_me:$LINENO: result: no" >&5
11900echo "${ECHO_T}no" >&6
11901fi
11902
11903
11904echo "$as_me:$LINENO: checking for -lX11 soname" >&5
11905echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
11906if test "${ac_cv_lib_soname_X11+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11908else
11909 ac_get_soname_save_LIBS=$LIBS
11910LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
11911 cat >conftest.$ac_ext <<_ACEOF
11912#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011913/* confdefs.h. */
11914_ACEOF
11915cat confdefs.h >>conftest.$ac_ext
11916cat >>conftest.$ac_ext <<_ACEOF
11917/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011918
11919/* Override any gcc2 internal prototype to avoid an error. */
11920#ifdef __cplusplus
11921extern "C"
11922#endif
11923/* We use char because int might match the return type of a gcc2
11924 builtin and then its argument prototype would still apply. */
11925char XCreateWindow ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011926int
11927main ()
11928{
11929XCreateWindow ();
11930 ;
11931 return 0;
11932}
11933_ACEOF
11934rm -f conftest.$ac_objext conftest$ac_exeext
11935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11936 (eval $ac_link) 2>&5
11937 ac_status=$?
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -s conftest$ac_exeext'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
11946 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
11947 if test "x$ac_cv_lib_soname_X11" = "x"
11948 then
11949 ac_cv_lib_soname_X11="libX11.so"
11950 fi
11951else
11952 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011953sed 's/^/| /' conftest.$ac_ext >&5
11954
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011955ac_cv_lib_soname_X11="libX11.so"
11956fi
11957rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11958 LIBS=$ac_get_soname_save_LIBS
11959fi
11960echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
11961echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
11962if test "x$ac_cv_lib_soname_X11" != xNONE
11963then
11964cat >>confdefs.h <<_ACEOF
11965#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
11966_ACEOF
11967fi
11968
11969echo "$as_me:$LINENO: checking for -lXext soname" >&5
11970echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
11971if test "${ac_cv_lib_soname_Xext+set}" = set; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11973else
11974 ac_get_soname_save_LIBS=$LIBS
11975LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
11976 cat >conftest.$ac_ext <<_ACEOF
11977#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011978/* confdefs.h. */
11979_ACEOF
11980cat confdefs.h >>conftest.$ac_ext
11981cat >>conftest.$ac_ext <<_ACEOF
11982/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011983
11984/* Override any gcc2 internal prototype to avoid an error. */
11985#ifdef __cplusplus
11986extern "C"
11987#endif
11988/* We use char because int might match the return type of a gcc2
11989 builtin and then its argument prototype would still apply. */
11990char XextCreateExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011991int
11992main ()
11993{
11994XextCreateExtension ();
11995 ;
11996 return 0;
11997}
11998_ACEOF
11999rm -f conftest.$ac_objext conftest$ac_exeext
12000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12001 (eval $ac_link) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } &&
12005 { ac_try='test -s conftest$ac_exeext'
12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12008 ac_status=$?
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12011 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12012 if test "x$ac_cv_lib_soname_Xext" = "x"
12013 then
12014 ac_cv_lib_soname_Xext="libXext.so"
12015 fi
12016else
12017 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012018sed 's/^/| /' conftest.$ac_ext >&5
12019
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012020ac_cv_lib_soname_Xext="libXext.so"
12021fi
12022rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12023 LIBS=$ac_get_soname_save_LIBS
12024fi
12025echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
12026echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
12027if test "x$ac_cv_lib_soname_Xext" != xNONE
12028then
12029cat >>confdefs.h <<_ACEOF
12030#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
12031_ACEOF
12032fi
12033
12034echo "$as_me:$LINENO: checking for -lXrender soname" >&5
12035echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
12036if test "${ac_cv_lib_soname_Xrender+set}" = set; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12038else
12039 ac_get_soname_save_LIBS=$LIBS
12040LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
12041 cat >conftest.$ac_ext <<_ACEOF
12042#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012043/* confdefs.h. */
12044_ACEOF
12045cat confdefs.h >>conftest.$ac_ext
12046cat >>conftest.$ac_ext <<_ACEOF
12047/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012048
12049/* Override any gcc2 internal prototype to avoid an error. */
12050#ifdef __cplusplus
12051extern "C"
12052#endif
12053/* We use char because int might match the return type of a gcc2
12054 builtin and then its argument prototype would still apply. */
12055char XRenderQueryExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012056int
12057main ()
12058{
12059XRenderQueryExtension ();
12060 ;
12061 return 0;
12062}
12063_ACEOF
12064rm -f conftest.$ac_objext conftest$ac_exeext
12065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12066 (eval $ac_link) 2>&5
12067 ac_status=$?
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
12070 { ac_try='test -s conftest$ac_exeext'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12076 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12077 if test "x$ac_cv_lib_soname_Xrender" = "x"
12078 then
12079 ac_cv_lib_soname_Xrender="libXrender.so"
12080 fi
12081else
12082 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012083sed 's/^/| /' conftest.$ac_ext >&5
12084
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012085ac_cv_lib_soname_Xrender="libXrender.so"
12086fi
12087rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12088 LIBS=$ac_get_soname_save_LIBS
12089fi
12090echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
12091echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
12092if test "x$ac_cv_lib_soname_Xrender" != xNONE
12093then
12094cat >>confdefs.h <<_ACEOF
12095#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
12096_ACEOF
12097fi
12098
12099echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
12100echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
12101if test "${ac_cv_lib_soname_freetype+set}" = set; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12103else
12104 ac_get_soname_save_LIBS=$LIBS
12105LIBS="-lfreetype $X_LIBS $LIBS"
12106 cat >conftest.$ac_ext <<_ACEOF
12107#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012108/* confdefs.h. */
12109_ACEOF
12110cat confdefs.h >>conftest.$ac_ext
12111cat >>conftest.$ac_ext <<_ACEOF
12112/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012113
12114/* Override any gcc2 internal prototype to avoid an error. */
12115#ifdef __cplusplus
12116extern "C"
12117#endif
12118/* We use char because int might match the return type of a gcc2
12119 builtin and then its argument prototype would still apply. */
12120char FT_Init_FreeType ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012121int
12122main ()
12123{
12124FT_Init_FreeType ();
12125 ;
12126 return 0;
12127}
12128_ACEOF
12129rm -f conftest.$ac_objext conftest$ac_exeext
12130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12131 (eval $ac_link) 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } &&
12135 { ac_try='test -s conftest$ac_exeext'
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12138 ac_status=$?
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; }; then
12141 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12142 if test "x$ac_cv_lib_soname_freetype" = "x"
12143 then
12144 ac_cv_lib_soname_freetype="libfreetype.so"
12145 fi
12146else
12147 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012148sed 's/^/| /' conftest.$ac_ext >&5
12149
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012150ac_cv_lib_soname_freetype="libfreetype.so"
12151fi
12152rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12153 LIBS=$ac_get_soname_save_LIBS
12154fi
12155echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
12156echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
12157if test "x$ac_cv_lib_soname_freetype" != xNONE
12158then
12159cat >>confdefs.h <<_ACEOF
12160#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
12161_ACEOF
12162fi
Marcus Meissnerf061f762002-11-12 02:22:24 +000012163
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000012164echo "$as_me:$LINENO: checking for -lGL soname" >&5
12165echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
12166if test "${ac_cv_lib_soname_GL+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12168else
12169 ac_get_soname_save_LIBS=$LIBS
12170LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
12171 cat >conftest.$ac_ext <<_ACEOF
12172#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012173/* confdefs.h. */
12174_ACEOF
12175cat confdefs.h >>conftest.$ac_ext
12176cat >>conftest.$ac_ext <<_ACEOF
12177/* end confdefs.h. */
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000012178
12179/* Override any gcc2 internal prototype to avoid an error. */
12180#ifdef __cplusplus
12181extern "C"
12182#endif
12183/* We use char because int might match the return type of a gcc2
12184 builtin and then its argument prototype would still apply. */
12185char glXQueryExtension ();
12186int
12187main ()
12188{
12189glXQueryExtension ();
12190 ;
12191 return 0;
12192}
12193_ACEOF
12194rm -f conftest.$ac_objext conftest$ac_exeext
12195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12196 (eval $ac_link) 2>&5
12197 ac_status=$?
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -s conftest$ac_exeext'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
12206 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12207 if test "x$ac_cv_lib_soname_GL" = "x"
12208 then
12209 ac_cv_lib_soname_GL="libGL.so"
12210 fi
12211else
12212 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012213sed 's/^/| /' conftest.$ac_ext >&5
12214
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000012215ac_cv_lib_soname_GL="libGL.so"
12216fi
12217rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12218 LIBS=$ac_get_soname_save_LIBS
12219fi
12220echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
12221echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
12222if test "x$ac_cv_lib_soname_GL" != xNONE
12223then
12224cat >>confdefs.h <<_ACEOF
12225#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
12226_ACEOF
12227fi
12228
Marcus Meissnerf061f762002-11-12 02:22:24 +000012229echo "$as_me:$LINENO: checking for -lcups soname" >&5
12230echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
12231if test "${ac_cv_lib_soname_cups+set}" = set; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12233else
12234 ac_get_soname_save_LIBS=$LIBS
12235LIBS="-lcups $LIBS"
12236 cat >conftest.$ac_ext <<_ACEOF
12237#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012238/* confdefs.h. */
12239_ACEOF
12240cat confdefs.h >>conftest.$ac_ext
12241cat >>conftest.$ac_ext <<_ACEOF
12242/* end confdefs.h. */
Marcus Meissnerf061f762002-11-12 02:22:24 +000012243
12244/* Override any gcc2 internal prototype to avoid an error. */
12245#ifdef __cplusplus
12246extern "C"
12247#endif
12248/* We use char because int might match the return type of a gcc2
12249 builtin and then its argument prototype would still apply. */
12250char cupsGetDefault ();
12251int
12252main ()
12253{
12254cupsGetDefault ();
12255 ;
12256 return 0;
12257}
12258_ACEOF
12259rm -f conftest.$ac_objext conftest$ac_exeext
12260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12261 (eval $ac_link) 2>&5
12262 ac_status=$?
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } &&
12265 { ac_try='test -s conftest$ac_exeext'
12266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267 (eval $ac_try) 2>&5
12268 ac_status=$?
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; }; then
12271 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12272 if test "x$ac_cv_lib_soname_cups" = "x"
12273 then
12274 ac_cv_lib_soname_cups="libcups.so"
12275 fi
12276else
12277 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012278sed 's/^/| /' conftest.$ac_ext >&5
12279
Marcus Meissnerf061f762002-11-12 02:22:24 +000012280ac_cv_lib_soname_cups="libcups.so"
12281fi
12282rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12283 LIBS=$ac_get_soname_save_LIBS
12284fi
12285echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
12286echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
12287if test "x$ac_cv_lib_soname_cups" != xNONE
12288then
12289cat >>confdefs.h <<_ACEOF
12290#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12291_ACEOF
12292fi
Chris Morgan4691b182002-12-13 02:26:18 +000012293
12294echo "$as_me:$LINENO: checking for -ljack soname" >&5
12295echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
12296if test "${ac_cv_lib_soname_jack+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12298else
12299 ac_get_soname_save_LIBS=$LIBS
12300LIBS="-ljack $LIBS"
12301 cat >conftest.$ac_ext <<_ACEOF
12302#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012303/* confdefs.h. */
12304_ACEOF
12305cat confdefs.h >>conftest.$ac_ext
12306cat >>conftest.$ac_ext <<_ACEOF
12307/* end confdefs.h. */
Chris Morgan4691b182002-12-13 02:26:18 +000012308
12309/* Override any gcc2 internal prototype to avoid an error. */
12310#ifdef __cplusplus
12311extern "C"
12312#endif
12313/* We use char because int might match the return type of a gcc2
12314 builtin and then its argument prototype would still apply. */
12315char jack_client_new ();
12316int
12317main ()
12318{
12319jack_client_new ();
12320 ;
12321 return 0;
12322}
12323_ACEOF
12324rm -f conftest.$ac_objext conftest$ac_exeext
12325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12326 (eval $ac_link) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } &&
12330 { ac_try='test -s conftest$ac_exeext'
12331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332 (eval $ac_try) 2>&5
12333 ac_status=$?
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; }; then
12336 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12337 if test "x$ac_cv_lib_soname_jack" = "x"
12338 then
12339 ac_cv_lib_soname_jack="libjack.so"
12340 fi
12341else
12342 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012343sed 's/^/| /' conftest.$ac_ext >&5
12344
Chris Morgan4691b182002-12-13 02:26:18 +000012345ac_cv_lib_soname_jack="libjack.so"
12346fi
12347rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12348 LIBS=$ac_get_soname_save_LIBS
12349fi
12350echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
12351echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
12352if test "x$ac_cv_lib_soname_jack" != xNONE
12353then
12354cat >>confdefs.h <<_ACEOF
12355#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
12356_ACEOF
12357fi
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012358fi
12359
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012360
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000012361
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012362wine_cv_libc_reentrant=no
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012363echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012364echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
12365if test "${wine_cv_libc_r___errno_location+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000012367else
12368 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012369 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000012370else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012371 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012372#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012373/* confdefs.h. */
12374_ACEOF
12375cat confdefs.h >>conftest.$ac_ext
12376cat >>conftest.$ac_ext <<_ACEOF
12377/* end confdefs.h. */
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000012378int myerrno = 0;
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000012379int *__errno_location(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000012380main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012381_ACEOF
12382rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012384 (eval $ac_link) 2>&5
12385 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012389 (eval $ac_try) 2>&5
12390 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012392 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000012393 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000012394else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012395 echo "$as_me: program exited with status $ac_status" >&5
12396echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012397sed 's/^/| /' conftest.$ac_ext >&5
12398
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012399( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012400wine_cv_libc_r___errno_location=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000012401fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012402rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000012403fi
Ulrich Weigand715a55e1999-04-18 13:19:56 +000012404fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012405echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012406echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012407if test "$wine_cv_libc_r___errno_location" = "yes"; then
12408 wine_cv_libc_reentrant=__errno_location
12409else
12410 echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012411echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
12412if test "${wine_cv_libc_r___error+set}" = set; then
12413 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +000012414else
12415 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012416 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +000012417else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012418 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012419#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012420/* confdefs.h. */
12421_ACEOF
12422cat confdefs.h >>conftest.$ac_ext
12423cat >>conftest.$ac_ext <<_ACEOF
12424/* end confdefs.h. */
Marcus Meissnerc2606381999-04-11 15:20:29 +000012425int myerrno = 0;
Marcus Meissnerc2606381999-04-11 15:20:29 +000012426int *__error(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000012427main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012428_ACEOF
12429rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012431 (eval $ac_link) 2>&5
12432 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012436 (eval $ac_try) 2>&5
12437 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012439 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000012440 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +000012441else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012442 echo "$as_me: program exited with status $ac_status" >&5
12443echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012444sed 's/^/| /' conftest.$ac_ext >&5
12445
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012446( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012447wine_cv_libc_r___error=no
Marcus Meissnerc2606381999-04-11 15:20:29 +000012448fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012449rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissnerc2606381999-04-11 15:20:29 +000012450fi
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000012451fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012452echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012453echo "${ECHO_T}$wine_cv_libc_r___error" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012454if test "$wine_cv_libc_r___error" = "yes"; then
12455 wine_cv_libc_reentrant=__error
12456else
12457 echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012458echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
12459if test "${wine_cv_libc_r____errno+set}" = set; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +000012461else
12462 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012463 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +000012464else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012465 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012466#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012467/* confdefs.h. */
12468_ACEOF
12469cat confdefs.h >>conftest.$ac_ext
12470cat >>conftest.$ac_ext <<_ACEOF
12471/* end confdefs.h. */
Ulrich Weigand715a55e1999-04-18 13:19:56 +000012472int myerrno = 0;
Ulrich Weigand715a55e1999-04-18 13:19:56 +000012473int *___errno(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000012474main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012475_ACEOF
12476rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012478 (eval $ac_link) 2>&5
12479 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012483 (eval $ac_try) 2>&5
12484 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012486 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000012487 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +000012488else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012489 echo "$as_me: program exited with status $ac_status" >&5
12490echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012491sed 's/^/| /' conftest.$ac_ext >&5
12492
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012493( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012494wine_cv_libc_r____errno=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +000012495fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012496rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +000012497fi
Ulrich Weigand715a55e1999-04-18 13:19:56 +000012498fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012499echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012500echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012501if test "$wine_cv_libc_r____errno" = "yes"; then
12502 wine_cv_libc_reentrant=___errno
12503else
12504 echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012505echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
12506if test "${wine_cv_libc_r___thr_errno+set}" = set; then
12507 echo $ECHO_N "(cached) $ECHO_C" >&6
Ron Recorde977d6c1999-09-05 12:32:05 +000012508else
12509 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012510 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +000012511else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012512 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012513#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012514/* confdefs.h. */
12515_ACEOF
12516cat confdefs.h >>conftest.$ac_ext
12517cat >>conftest.$ac_ext <<_ACEOF
12518/* end confdefs.h. */
Ron Recorde977d6c1999-09-05 12:32:05 +000012519int myerrno = 0;
Ron Recorde977d6c1999-09-05 12:32:05 +000012520int *__thr_errno(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000012521main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012522_ACEOF
12523rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012525 (eval $ac_link) 2>&5
12526 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012530 (eval $ac_try) 2>&5
12531 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012533 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000012534 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +000012535else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012536 echo "$as_me: program exited with status $ac_status" >&5
12537echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012538sed 's/^/| /' conftest.$ac_ext >&5
12539
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012540( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012541wine_cv_libc_r___thr_errno=no
Ron Recorde977d6c1999-09-05 12:32:05 +000012542fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012543rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Ron Recorde977d6c1999-09-05 12:32:05 +000012544fi
Ron Recorde977d6c1999-09-05 12:32:05 +000012545fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012546echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012547echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012548if test "$wine_cv_libc_r___thr_errno" = "yes"; then
12549 wine_cv_libc_reentrant=__thr_errno
12550else
12551 echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012552echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
12553if test "${wine_cv_libc_r___errno+set}" = set; then
12554 echo $ECHO_N "(cached) $ECHO_C" >&6
Bang Jun-Young33dff342001-05-07 18:21:10 +000012555else
12556 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012557 wine_cv_libc_r___errno=yes
Bang Jun-Young33dff342001-05-07 18:21:10 +000012558else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012559 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012560#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012561/* confdefs.h. */
12562_ACEOF
12563cat confdefs.h >>conftest.$ac_ext
12564cat >>conftest.$ac_ext <<_ACEOF
12565/* end confdefs.h. */
Bang Jun-Young33dff342001-05-07 18:21:10 +000012566int myerrno = 0;
Bang Jun-Young33dff342001-05-07 18:21:10 +000012567int *__errno(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000012568main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012569_ACEOF
12570rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012572 (eval $ac_link) 2>&5
12573 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012577 (eval $ac_try) 2>&5
12578 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012580 (exit $ac_status); }; }; then
Bang Jun-Young33dff342001-05-07 18:21:10 +000012581 wine_cv_libc_r___errno=yes
12582else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012583 echo "$as_me: program exited with status $ac_status" >&5
12584echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012585sed 's/^/| /' conftest.$ac_ext >&5
12586
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012587( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012588wine_cv_libc_r___errno=no
Bang Jun-Young33dff342001-05-07 18:21:10 +000012589fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012590rm -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 +000012591fi
Bang Jun-Young33dff342001-05-07 18:21:10 +000012592fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012593echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012594echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012595if test "$wine_cv_libc_r___errno" = "yes"; then
12596 wine_cv_libc_reentrant=__errno
12597fi
12598
12599
12600fi
12601
12602fi
12603
12604fi
12605
Bang Jun-Young33dff342001-05-07 18:21:10 +000012606fi
12607
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012608
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012609if test "$wine_cv_libc_reentrant" != "no"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000012610then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012611
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012612cat >>confdefs.h <<_ACEOF
Alexandre Julliard598412e2001-01-17 20:22:22 +000012613#define ERRNO_LOCATION $wine_cv_libc_reentrant
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012614_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000012615
12616fi
12617
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012618
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000012619if test "$have_x" = "yes"
Patrik Stridvall24110281999-02-04 10:09:54 +000012620then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012621echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012622echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
12623if test "${wine_cv_x_reentrant+set}" = set; then
12624 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000012625else
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000012626 libX11_check=none
12627 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
12628 if test -r $dir/libX11.so; then
12629 libX11_check="-D $dir/libX11.so"
12630 break
12631 fi
12632 if test -r $dir/libX11.a; then
12633 libX11_check="$dir/libX11.a"
12634 break
12635 fi
12636 done
12637 if test "$libX11_check" != "none"; then
12638 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
12639 then
12640 wine_cv_x_reentrant=yes
12641 else
12642 wine_cv_x_reentrant=no
12643 fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000012644 else
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000012645 wine_cv_x_reentrant=unknown
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012646 fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000012647fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012648echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012649echo "${ECHO_T}$wine_cv_x_reentrant" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +000012650fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012651
12652
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012653# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12654# for constant arguments. Useless!
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012655echo "$as_me:$LINENO: checking for working alloca.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012656echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12657if test "${ac_cv_working_alloca_h+set}" = set; then
12658 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012659else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012660 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012661#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012662/* confdefs.h. */
12663_ACEOF
12664cat confdefs.h >>conftest.$ac_ext
12665cat >>conftest.$ac_ext <<_ACEOF
12666/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012667#include <alloca.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012668int
12669main ()
12670{
12671char *p = (char *) alloca (2 * sizeof (int));
12672 ;
12673 return 0;
12674}
12675_ACEOF
12676rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012678 (eval $ac_link) 2>&5
12679 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012681 (exit $ac_status); } &&
12682 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012684 (eval $ac_try) 2>&5
12685 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012687 (exit $ac_status); }; }; then
12688 ac_cv_working_alloca_h=yes
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012689else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012690 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012691sed 's/^/| /' conftest.$ac_ext >&5
12692
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012693ac_cv_working_alloca_h=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012694fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012695rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012696fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012697echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012698echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12699if test $ac_cv_working_alloca_h = yes; then
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012700
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012701cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012702#define HAVE_ALLOCA_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012703_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012704
12705fi
12706
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012707echo "$as_me:$LINENO: checking for alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012708echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12709if test "${ac_cv_func_alloca_works+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012711else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012712 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012713#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012714/* confdefs.h. */
12715_ACEOF
12716cat confdefs.h >>conftest.$ac_ext
12717cat >>conftest.$ac_ext <<_ACEOF
12718/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012719#ifdef __GNUC__
12720# define alloca __builtin_alloca
12721#else
Eric Pouech18ad24a2000-01-16 22:16:33 +000012722# ifdef _MSC_VER
12723# include <malloc.h>
12724# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012725# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000012726# if HAVE_ALLOCA_H
12727# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012728# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000012729# ifdef _AIX
12730 #pragma alloca
12731# else
12732# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012733char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +000012734# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012735# endif
12736# endif
12737# endif
12738#endif
12739
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012740int
12741main ()
12742{
12743char *p = (char *) alloca (1);
12744 ;
12745 return 0;
12746}
12747_ACEOF
12748rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012750 (eval $ac_link) 2>&5
12751 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012753 (exit $ac_status); } &&
12754 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012756 (eval $ac_try) 2>&5
12757 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012759 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012760 ac_cv_func_alloca_works=yes
12761else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012762 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012763sed 's/^/| /' conftest.$ac_ext >&5
12764
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012765ac_cv_func_alloca_works=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012766fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012767rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012768fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012769echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012770echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012771
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012772if test $ac_cv_func_alloca_works = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012773
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012774cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012775#define HAVE_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012776_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012777
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012778else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012779 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012780# that cause trouble. Some versions do not even contain alloca or
12781# contain a buggy version. If you still want to use their alloca,
12782# use ar to extract alloca.o from them instead of compiling alloca.c.
12783
12784ALLOCA=alloca.$ac_objext
12785
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012786cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012787#define C_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012788_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012789
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012790
12791echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012792echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12793if test "${ac_cv_os_cray+set}" = set; then
12794 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012795else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012796 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012797#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012798/* confdefs.h. */
12799_ACEOF
12800cat confdefs.h >>conftest.$ac_ext
12801cat >>conftest.$ac_ext <<_ACEOF
12802/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012803#if defined(CRAY) && ! defined(CRAY2)
12804webecray
12805#else
12806wenotbecray
12807#endif
12808
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012809_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012811 $EGREP "webecray" >/dev/null 2>&1; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012812 ac_cv_os_cray=yes
12813else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012814 ac_cv_os_cray=no
12815fi
12816rm -f conftest*
12817
12818fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012819echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012820echo "${ECHO_T}$ac_cv_os_cray" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012821if test $ac_cv_os_cray = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012822 for ac_func in _getb67 GETB67 getb67; do
12823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012824echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012825echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12826if eval "test \"\${$as_ac_var+set}\" = set"; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012828else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012829 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012830#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012831/* confdefs.h. */
12832_ACEOF
12833cat confdefs.h >>conftest.$ac_ext
12834cat >>conftest.$ac_ext <<_ACEOF
12835/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012836/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012837 which can conflict with char $ac_func (); below.
12838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12839 <limits.h> exists even on freestanding compilers. */
12840#ifdef __STDC__
12841# include <limits.h>
12842#else
12843# include <assert.h>
12844#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012845/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012846#ifdef __cplusplus
12847extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012848{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012849#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +000012850/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012851 builtin and then its argument prototype would still apply. */
12852char $ac_func ();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012853/* The GNU C library defines this for functions which it implements
12854 to always fail with ENOSYS. Some functions are actually named
12855 something starting with __ and the normal name is an alias. */
12856#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12857choke me
12858#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012859char (*f) () = $ac_func;
12860#endif
12861#ifdef __cplusplus
12862}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012863#endif
12864
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012865int
12866main ()
12867{
12868return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012869 ;
12870 return 0;
12871}
12872_ACEOF
12873rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012875 (eval $ac_link) 2>&5
12876 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012878 (exit $ac_status); } &&
12879 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012881 (eval $ac_try) 2>&5
12882 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012884 (exit $ac_status); }; }; then
12885 eval "$as_ac_var=yes"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012886else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012887 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012888sed 's/^/| /' conftest.$ac_ext >&5
12889
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012890eval "$as_ac_var=no"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012891fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012892rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012893fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012895echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12896if test `eval echo '${'$as_ac_var'}'` = yes; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012897
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012898cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012899#define CRAY_STACKSEG_END $ac_func
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012900_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012901
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012902 break
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012903fi
12904
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012905 done
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012906fi
12907
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012908echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012909echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12910if test "${ac_cv_c_stack_direction+set}" = set; then
12911 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012912else
12913 if test "$cross_compiling" = yes; then
12914 ac_cv_c_stack_direction=0
12915else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012916 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012917#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012918/* confdefs.h. */
12919_ACEOF
12920cat confdefs.h >>conftest.$ac_ext
12921cat >>conftest.$ac_ext <<_ACEOF
12922/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012923int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012924find_stack_direction ()
12925{
12926 static char *addr = 0;
12927 auto char dummy;
12928 if (addr == 0)
12929 {
12930 addr = &dummy;
12931 return find_stack_direction ();
12932 }
12933 else
12934 return (&dummy > addr) ? 1 : -1;
12935}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012936
12937int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012938main ()
12939{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012940 exit (find_stack_direction () < 0);
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012941}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012942_ACEOF
12943rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012945 (eval $ac_link) 2>&5
12946 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012950 (eval $ac_try) 2>&5
12951 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012953 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012954 ac_cv_c_stack_direction=1
12955else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012956 echo "$as_me: program exited with status $ac_status" >&5
12957echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012958sed 's/^/| /' conftest.$ac_ext >&5
12959
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012960( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012961ac_cv_c_stack_direction=-1
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012962fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012963rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012964fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012965fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012966echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012967echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012968
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012969cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012970#define STACK_DIRECTION $ac_cv_c_stack_direction
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012971_ACEOF
12972
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012973
12974fi
12975
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
Steven Edwardsb9627c12002-05-05 21:03:44 +000013018
13019
Steven Edwards0a8e15a2002-05-10 01:33:40 +000013020
13021
Alexandre Julliard142dab82002-07-01 18:17:30 +000013022
Patrik Stridvall6caeb722002-11-25 21:12:26 +000013023
13024
13025
13026
13027
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000013028
Brad Campbell5ac2a532002-12-13 23:30:54 +000013029
13030
Steven Edwardsbe514b92003-01-14 19:35:03 +000013031
13032
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013033for ac_func in \
13034 _lwp_create \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013035 _pclose \
13036 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000013037 _snprintf \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013038 _stricmp \
13039 _strnicmp \
Steven Edwardsbe514b92003-01-14 19:35:03 +000013040 _vsnprintf \
Steven Edwardsb9627c12002-05-05 21:03:44 +000013041 chsize \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013042 clone \
Andreas Mohra7ca2ba2001-01-12 23:07:11 +000013043 ecvt \
Brad Campbell5ac2a532002-12-13 23:30:54 +000013044 fcvt \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000013045 finite \
13046 fpclass \
Steven Edwardsb9627c12002-05-05 21:03:44 +000013047 ftruncate \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000013048 ftruncate64 \
Brad Campbell5ac2a532002-12-13 23:30:54 +000013049 gcvt \
Patrik Stridvallb9010211999-11-13 22:23:35 +000013050 getnetbyaddr \
13051 getnetbyname \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000013052 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013053 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +000013054 getprotobyname \
13055 getprotobynumber \
Alexandre Julliard142dab82002-07-01 18:17:30 +000013056 getpwuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000013057 getservbyport \
13058 getsockopt \
13059 inet_network \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000013060 lseek64 \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000013061 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013062 memmove \
Marcus Meissner786d2492002-07-29 23:55:39 +000013063 mkstemp \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000013064 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013065 pclose \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013066 popen \
Steven Edwardsb9627c12002-05-05 21:03:44 +000013067 pread \
Patrik Stridvall6caeb722002-11-25 21:12:26 +000013068 pthread_getspecific \
13069 pthread_key_create \
13070 pthread_mutex_lock \
13071 pthread_mutex_unlock \
13072 pthread_setspecific \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000013073 pwrite \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013074 rfork \
Patrik Stridvallb9010211999-11-13 22:23:35 +000013075 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013076 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +000013077 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013078 sigaltstack \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000013079 snprintf \
Patrik Stridvallb9010211999-11-13 22:23:35 +000013080 statfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000013081 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013082 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000013083 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013084 tcgetattr \
13085 timegm \
13086 usleep \
13087 vfscanf \
Steven Edwardsbe514b92003-01-14 19:35:03 +000013088 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013089 wait4 \
13090 waitpid \
13091
13092do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013093as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013094echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013095echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13096if eval "test \"\${$as_ac_var+set}\" = set"; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013098else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013099 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013100#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013101/* confdefs.h. */
13102_ACEOF
13103cat confdefs.h >>conftest.$ac_ext
13104cat >>conftest.$ac_ext <<_ACEOF
13105/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013106/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013107 which can conflict with char $ac_func (); below.
13108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13109 <limits.h> exists even on freestanding compilers. */
13110#ifdef __STDC__
13111# include <limits.h>
13112#else
13113# include <assert.h>
13114#endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013115/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013116#ifdef __cplusplus
13117extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013118{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013119#endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013120/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013121 builtin and then its argument prototype would still apply. */
13122char $ac_func ();
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013123/* The GNU C library defines this for functions which it implements
13124 to always fail with ENOSYS. Some functions are actually named
13125 something starting with __ and the normal name is an alias. */
13126#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13127choke me
13128#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013129char (*f) () = $ac_func;
13130#endif
13131#ifdef __cplusplus
13132}
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013133#endif
13134
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013135int
13136main ()
13137{
13138return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013139 ;
13140 return 0;
13141}
13142_ACEOF
13143rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013145 (eval $ac_link) 2>&5
13146 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013148 (exit $ac_status); } &&
13149 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013151 (eval $ac_try) 2>&5
13152 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013154 (exit $ac_status); }; }; then
13155 eval "$as_ac_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013156else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013157 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013158sed 's/^/| /' conftest.$ac_ext >&5
13159
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013160eval "$as_ac_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013161fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013162rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013163fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013165echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13166if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013167 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013168#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013169_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013170
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013171fi
13172done
13173
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
Laurent Pinchart0314a652002-05-01 22:01:30 +000013235
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000013236
13237
13238
Alexandre Julliard127ec922002-05-07 01:51:30 +000013239
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000013240
Patrik Stridvall57bf4502002-08-26 21:53:24 +000013241
13242
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000013243
Chris Morgan4691b182002-12-13 02:26:18 +000013244
Alexandre Julliardb6938952003-01-13 18:41:40 +000013245
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013246for ac_header in \
Patrik Stridvall96336321999-10-24 22:13:47 +000013247 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013248 arpa/nameser.h \
Marcus Meissnerf061f762002-11-12 02:22:24 +000013249 cups/cups.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013250 direct.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013251 elf.h \
13252 float.h \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000013253 getopt.h \
Ulrich Weigand2e8e2332000-12-27 18:49:08 +000013254 ieeefp.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013255 io.h \
Chris Morgan4691b182002-12-13 02:26:18 +000013256 jack/jack.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013257 libio.h \
Hidenori Takeshima01f78aa2000-07-09 12:19:09 +000013258 libutil.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013259 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013260 linux/cdrom.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000013261 linux/hdreg.h \
Marcus Meissnerc9b3b2e2000-12-12 00:38:58 +000013262 linux/input.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +000013263 linux/joystick.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000013264 linux/major.h \
Laurent Pinchart0314a652002-05-01 22:01:30 +000013265 linux/param.h \
Lawson Whitney533e7ee2002-02-19 18:41:56 +000013266 linux/serial.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013267 linux/ucdrom.h \
Hidenori Takeshima5d1a6382000-11-26 04:00:53 +000013268 netdb.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013269 netinet/in.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +000013270 netinet/in_systm.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013271 netinet/tcp.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +000013272 pty.h \
Steven Edwardsff4525c2002-06-24 23:00:25 +000013273 pwd.h \
Alexandre Julliardb6938952003-01-13 18:41:40 +000013274 regex.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013275 sched.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000013276 scsi/sg.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013277 socket.h \
Bang Jun-Youngeda758e2001-12-14 22:47:19 +000013278 stdint.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013279 strings.h \
13280 sys/cdio.h \
Howard Abrams13277481999-07-10 13:16:29 +000013281 sys/errno.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013282 sys/file.h \
13283 sys/filio.h \
Michal Pasternak60983992002-03-29 18:04:43 +000013284 sys/inttypes.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000013285 sys/ioctl.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013286 sys/ipc.h \
Eric Pouech624cbd72001-08-10 22:29:21 +000013287 sys/link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013288 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +000013289 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013290 sys/modem.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013291 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013292 sys/param.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000013293 sys/poll.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +000013294 sys/ptrace.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +000013295 sys/reg.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013296 sys/shm.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000013297 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013298 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013299 sys/sockio.h \
13300 sys/statfs.h \
13301 sys/strtio.h \
13302 sys/syscall.h \
Alexandre Julliard127ec922002-05-07 01:51:30 +000013303 sys/sysctl.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013304 sys/time.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000013305 sys/times.h \
Steven Edwards45e56812002-10-31 03:41:56 +000013306 sys/uio.h \
13307 sys/un.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013308 sys/v86.h \
13309 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013310 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013311 sys/vm86.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000013312 sys/wait.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013313 syscall.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000013314 termios.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013315 unistd.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000013316 utime.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013317
Alexandre Julliard02e90081998-01-04 17:49:09 +000013318do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013319as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013320if eval "test \"\${$as_ac_Header+set}\" = set"; then
13321 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13323if eval "test \"\${$as_ac_Header+set}\" = set"; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013325fi
13326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13327echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliard02e90081998-01-04 17:49:09 +000013328else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013329 # Is the header compilable?
13330echo "$as_me:$LINENO: checking $ac_header usability" >&5
13331echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13332cat >conftest.$ac_ext <<_ACEOF
13333#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013334/* confdefs.h. */
13335_ACEOF
13336cat confdefs.h >>conftest.$ac_ext
13337cat >>conftest.$ac_ext <<_ACEOF
13338/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013339$ac_includes_default
13340#include <$ac_header>
13341_ACEOF
13342rm -f conftest.$ac_objext
13343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13344 (eval $ac_compile) 2>&5
13345 ac_status=$?
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } &&
13348 { ac_try='test -s conftest.$ac_objext'
13349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350 (eval $ac_try) 2>&5
13351 ac_status=$?
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; }; then
13354 ac_header_compiler=yes
13355else
13356 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013357sed 's/^/| /' conftest.$ac_ext >&5
13358
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013359ac_header_compiler=no
13360fi
13361rm -f conftest.$ac_objext conftest.$ac_ext
13362echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13363echo "${ECHO_T}$ac_header_compiler" >&6
13364
13365# Is the header present?
13366echo "$as_me:$LINENO: checking $ac_header presence" >&5
13367echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13368cat >conftest.$ac_ext <<_ACEOF
13369#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013370/* confdefs.h. */
13371_ACEOF
13372cat confdefs.h >>conftest.$ac_ext
13373cat >>conftest.$ac_ext <<_ACEOF
13374/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013375#include <$ac_header>
13376_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013377if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13379 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013380 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013381 rm -f conftest.er1
13382 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013384 (exit $ac_status); } >/dev/null; then
13385 if test -s conftest.err; then
13386 ac_cpp_err=$ac_c_preproc_warn_flag
13387 else
13388 ac_cpp_err=
13389 fi
Alexandre Julliard02e90081998-01-04 17:49:09 +000013390else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013391 ac_cpp_err=yes
13392fi
13393if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013394 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013395else
13396 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013397sed 's/^/| /' conftest.$ac_ext >&5
13398
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013399 ac_header_preproc=no
Alexandre Julliard02e90081998-01-04 17:49:09 +000013400fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013401rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013402echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13403echo "${ECHO_T}$ac_header_preproc" >&6
13404
13405# So? What about this header?
13406case $ac_header_compiler:$ac_header_preproc in
13407 yes:no )
13408 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13409echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013411echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13412 (
13413 cat <<\_ASBOX
13414## ------------------------------------ ##
13415## Report this to bug-autoconf@gnu.org. ##
13416## ------------------------------------ ##
13417_ASBOX
13418 ) |
13419 sed "s/^/$as_me: WARNING: /" >&2
13420 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013421 no:yes )
13422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13423echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13425echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013427echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13428 (
13429 cat <<\_ASBOX
13430## ------------------------------------ ##
13431## Report this to bug-autoconf@gnu.org. ##
13432## ------------------------------------ ##
13433_ASBOX
13434 ) |
13435 sed "s/^/$as_me: WARNING: /" >&2
13436 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013437esac
13438echo "$as_me:$LINENO: checking for $ac_header" >&5
13439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13440if eval "test \"\${$as_ac_Header+set}\" = set"; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13442else
13443 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliard02e90081998-01-04 17:49:09 +000013444fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013445echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013446echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013447
Alexandre Julliard02e90081998-01-04 17:49:09 +000013448fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013449if 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
Alexandre Julliard02e90081998-01-04 17:49:09 +000013456done
13457
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013458echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013459echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13460if test "${ac_cv_header_stat_broken+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013462else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013463 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013464#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013465/* confdefs.h. */
13466_ACEOF
13467cat confdefs.h >>conftest.$ac_ext
13468cat >>conftest.$ac_ext <<_ACEOF
13469/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013470#include <sys/types.h>
13471#include <sys/stat.h>
13472
13473#if defined(S_ISBLK) && defined(S_IFDIR)
13474# if S_ISBLK (S_IFDIR)
13475You lose.
13476# endif
13477#endif
13478
13479#if defined(S_ISBLK) && defined(S_IFCHR)
13480# if S_ISBLK (S_IFCHR)
13481You lose.
13482# endif
13483#endif
13484
13485#if defined(S_ISLNK) && defined(S_IFREG)
13486# if S_ISLNK (S_IFREG)
13487You lose.
13488# endif
13489#endif
13490
13491#if defined(S_ISSOCK) && defined(S_IFREG)
13492# if S_ISSOCK (S_IFREG)
13493You lose.
13494# endif
13495#endif
13496
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013497_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013498if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013499 $EGREP "You lose" >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013500 ac_cv_header_stat_broken=yes
13501else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013502 ac_cv_header_stat_broken=no
13503fi
13504rm -f conftest*
13505
13506fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013507echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013508echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013509if test $ac_cv_header_stat_broken = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013510
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013511cat >>confdefs.h <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013512#define STAT_MACROS_BROKEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013513_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013514
13515fi
13516
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013517
13518
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000013519
13520
13521for ac_header in sys/mount.h sys/user.h
13522do
13523as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13524echo "$as_me:$LINENO: checking for $ac_header" >&5
13525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13526if eval "test \"\${$as_ac_Header+set}\" = set"; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13528else
13529 cat >conftest.$ac_ext <<_ACEOF
13530#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013531/* confdefs.h. */
13532_ACEOF
13533cat confdefs.h >>conftest.$ac_ext
13534cat >>conftest.$ac_ext <<_ACEOF
13535/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000013536#include <sys/types.h>
13537 #if HAVE_SYS_PARAM_H
13538 # include <sys/param.h>
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000013539 #endif
13540
13541#include <$ac_header>
13542_ACEOF
13543rm -f conftest.$ac_objext
13544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13545 (eval $ac_compile) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } &&
13549 { ac_try='test -s conftest.$ac_objext'
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
13555 eval "$as_ac_Header=yes"
13556else
13557 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013558sed 's/^/| /' conftest.$ac_ext >&5
13559
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000013560eval "$as_ac_Header=no"
13561fi
13562rm -f conftest.$ac_objext conftest.$ac_ext
13563fi
13564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13565echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13566if test `eval echo '${'$as_ac_Header'}'` = yes; then
13567 cat >>confdefs.h <<_ACEOF
13568#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13569_ACEOF
13570
13571fi
13572
13573done
13574
13575
13576
Gregg Mattinson044b5c42002-07-19 03:16:51 +000013577for ac_header in net/if.h
13578do
13579as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13580echo "$as_me:$LINENO: checking for $ac_header" >&5
13581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13582if eval "test \"\${$as_ac_Header+set}\" = set"; then
13583 echo $ECHO_N "(cached) $ECHO_C" >&6
13584else
13585 cat >conftest.$ac_ext <<_ACEOF
13586#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013587/* confdefs.h. */
13588_ACEOF
13589cat confdefs.h >>conftest.$ac_ext
13590cat >>conftest.$ac_ext <<_ACEOF
13591/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000013592#include <sys/types.h>
Gerald Pfeifer87c369d2002-07-23 02:02:02 +000013593 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000013594 # include <sys/socket.h>
13595 #endif
13596
13597#include <$ac_header>
13598_ACEOF
13599rm -f conftest.$ac_objext
13600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13601 (eval $ac_compile) 2>&5
13602 ac_status=$?
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); } &&
13605 { ac_try='test -s conftest.$ac_objext'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; }; then
13611 eval "$as_ac_Header=yes"
13612else
13613 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013614sed 's/^/| /' conftest.$ac_ext >&5
13615
Gregg Mattinson044b5c42002-07-19 03:16:51 +000013616eval "$as_ac_Header=no"
13617fi
13618rm -f conftest.$ac_objext conftest.$ac_ext
13619fi
13620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13622if test `eval echo '${'$as_ac_Header'}'` = yes; then
13623 cat >>confdefs.h <<_ACEOF
13624#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13625_ACEOF
13626
13627fi
13628
13629done
13630
13631
13632
13633for ac_header in netinet/ip.h
13634do
13635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13636echo "$as_me:$LINENO: checking for $ac_header" >&5
13637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13638if eval "test \"\${$as_ac_Header+set}\" = set"; then
13639 echo $ECHO_N "(cached) $ECHO_C" >&6
13640else
13641 cat >conftest.$ac_ext <<_ACEOF
13642#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013643/* confdefs.h. */
13644_ACEOF
13645cat confdefs.h >>conftest.$ac_ext
13646cat >>conftest.$ac_ext <<_ACEOF
13647/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000013648#include <sys/types.h>
13649 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000013650 # include <sys/socket.h>
13651 #endif
13652 #if HAVE_NETINET_IN_SYSTM_H
13653 # include <netinet/in_systm.h>
13654 #endif
13655
13656#include <$ac_header>
13657_ACEOF
13658rm -f conftest.$ac_objext
13659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13660 (eval $ac_compile) 2>&5
13661 ac_status=$?
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } &&
13664 { ac_try='test -s conftest.$ac_objext'
13665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666 (eval $ac_try) 2>&5
13667 ac_status=$?
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; }; then
13670 eval "$as_ac_Header=yes"
13671else
13672 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013673sed 's/^/| /' conftest.$ac_ext >&5
13674
Gregg Mattinson044b5c42002-07-19 03:16:51 +000013675eval "$as_ac_Header=no"
13676fi
13677rm -f conftest.$ac_objext conftest.$ac_ext
13678fi
13679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13680echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13681if test `eval echo '${'$as_ac_Header'}'` = yes; then
13682 cat >>confdefs.h <<_ACEOF
13683#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13684_ACEOF
13685
13686fi
13687
13688done
13689
13690
13691
13692for ac_header in resolv.h
13693do
13694as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13695echo "$as_me:$LINENO: checking for $ac_header" >&5
13696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13697if eval "test \"\${$as_ac_Header+set}\" = set"; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13699else
13700 cat >conftest.$ac_ext <<_ACEOF
13701#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013702/* confdefs.h. */
13703_ACEOF
13704cat confdefs.h >>conftest.$ac_ext
13705cat >>conftest.$ac_ext <<_ACEOF
13706/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000013707#include <sys/types.h>
13708 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000013709 # include <sys/socket.h>
13710 #endif
13711
13712#include <$ac_header>
13713_ACEOF
13714rm -f conftest.$ac_objext
13715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13716 (eval $ac_compile) 2>&5
13717 ac_status=$?
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } &&
13720 { ac_try='test -s conftest.$ac_objext'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13726 eval "$as_ac_Header=yes"
13727else
13728 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013729sed 's/^/| /' conftest.$ac_ext >&5
13730
Gregg Mattinson044b5c42002-07-19 03:16:51 +000013731eval "$as_ac_Header=no"
13732fi
13733rm -f conftest.$ac_objext conftest.$ac_ext
13734fi
13735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13737if test `eval echo '${'$as_ac_Header'}'` = yes; then
13738 cat >>confdefs.h <<_ACEOF
13739#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13740_ACEOF
13741
13742fi
13743
13744done
13745
13746
13747
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000013748for ac_header in ucontext.h
13749do
13750as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13751echo "$as_me:$LINENO: checking for $ac_header" >&5
13752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13753if eval "test \"\${$as_ac_Header+set}\" = set"; then
13754 echo $ECHO_N "(cached) $ECHO_C" >&6
13755else
13756 cat >conftest.$ac_ext <<_ACEOF
13757#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013758/* confdefs.h. */
13759_ACEOF
13760cat confdefs.h >>conftest.$ac_ext
13761cat >>conftest.$ac_ext <<_ACEOF
13762/* end confdefs.h. */
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000013763#include <signal.h>
13764
13765#include <$ac_header>
13766_ACEOF
13767rm -f conftest.$ac_objext
13768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13769 (eval $ac_compile) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } &&
13773 { ac_try='test -s conftest.$ac_objext'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
13779 eval "$as_ac_Header=yes"
13780else
13781 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013782sed 's/^/| /' conftest.$ac_ext >&5
13783
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000013784eval "$as_ac_Header=no"
13785fi
13786rm -f conftest.$ac_objext conftest.$ac_ext
13787fi
13788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13790if test `eval echo '${'$as_ac_Header'}'` = yes; then
13791 cat >>confdefs.h <<_ACEOF
13792#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13793_ACEOF
13794
13795fi
13796
13797done
13798
13799
13800
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000013801echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
13802echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
13803if test "${ac_cv_c_ipx_gnu+set}" = set; then
13804 echo $ECHO_N "(cached) $ECHO_C" >&6
13805else
13806 cat >conftest.$ac_ext <<_ACEOF
13807#line $LINENO "configure"
13808/* confdefs.h. */
13809_ACEOF
13810cat confdefs.h >>conftest.$ac_ext
13811cat >>conftest.$ac_ext <<_ACEOF
13812/* end confdefs.h. */
13813#include <sys/types.h>
13814 #ifdef HAVE_SYS_SOCKET_H
13815 # include <sys/socket.h>
13816 #endif
13817 #include <netipx/ipx.h>
13818int
13819main ()
13820{
13821((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
13822 ;
13823 return 0;
13824}
13825_ACEOF
13826rm -f conftest.$ac_objext
13827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13828 (eval $ac_compile) 2>&5
13829 ac_status=$?
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); } &&
13832 { ac_try='test -s conftest.$ac_objext'
13833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834 (eval $ac_try) 2>&5
13835 ac_status=$?
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; }; then
13838 ac_cv_c_ipx_gnu="yes"
13839else
13840 echo "$as_me: failed program was:" >&5
13841sed 's/^/| /' conftest.$ac_ext >&5
13842
13843ac_cv_c_ipx_gnu="no"
13844fi
13845rm -f conftest.$ac_objext conftest.$ac_ext
13846
13847fi
13848echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
13849echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
13850if test "$ac_cv_c_ipx_gnu" = "yes"
13851then
13852
13853cat >>confdefs.h <<\_ACEOF
13854#define HAVE_IPX_GNU 1
13855_ACEOF
13856
13857fi
13858
13859if test "$ac_cv_c_ipx_gnu" = "no"
13860then
13861 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
13862echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
13863if test "${ac_cv_c_ipx_linux+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13865else
13866 cat >conftest.$ac_ext <<_ACEOF
13867#line $LINENO "configure"
13868/* confdefs.h. */
13869_ACEOF
13870cat confdefs.h >>conftest.$ac_ext
13871cat >>conftest.$ac_ext <<_ACEOF
13872/* end confdefs.h. */
13873#include <sys/types.h>
13874 #ifdef HAVE_SYS_SOCKET_H
13875 # include <sys/socket.h>
13876 #endif
13877 #include <asm/types.h>
13878 #include <linux/ipx.h>
13879int
13880main ()
13881{
13882((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
13883 ;
13884 return 0;
13885}
13886_ACEOF
13887rm -f conftest.$ac_objext
13888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13889 (eval $ac_compile) 2>&5
13890 ac_status=$?
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } &&
13893 { ac_try='test -s conftest.$ac_objext'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }; then
13899 ac_cv_c_ipx_linux="yes"
13900else
13901 echo "$as_me: failed program was:" >&5
13902sed 's/^/| /' conftest.$ac_ext >&5
13903
13904ac_cv_c_ipx_linux="no"
13905fi
13906rm -f conftest.$ac_objext conftest.$ac_ext
13907
13908fi
13909echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
13910echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
13911 if test "$ac_cv_c_ipx_linux" = "yes"
13912 then
13913
13914cat >>confdefs.h <<\_ACEOF
13915#define HAVE_IPX_LINUX 1
13916_ACEOF
13917
13918 fi
13919fi
13920
13921
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013922echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013923echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13924if test "${ac_cv_c_const+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13926else
13927 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013928#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013929/* confdefs.h. */
13930_ACEOF
13931cat confdefs.h >>conftest.$ac_ext
13932cat >>conftest.$ac_ext <<_ACEOF
13933/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013934
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013935int
13936main ()
13937{
13938/* FIXME: Include the comments suggested by Paul. */
13939#ifndef __cplusplus
13940 /* Ultrix mips cc rejects this. */
13941 typedef int charset[2];
13942 const charset x;
13943 /* SunOS 4.1.1 cc rejects this. */
13944 char const *const *ccp;
13945 char **p;
13946 /* NEC SVR4.0.2 mips cc rejects this. */
13947 struct point {int x, y;};
13948 static struct point const zero = {0,0};
13949 /* AIX XL C 1.02.0.0 rejects this.
13950 It does not let you subtract one const X* pointer from another in
13951 an arm of an if-expression whose if-part is not a constant
13952 expression */
13953 const char *g = "string";
13954 ccp = &g + (g ? g-g : 0);
13955 /* HPUX 7.0 cc rejects these. */
13956 ++ccp;
13957 p = (char**) ccp;
13958 ccp = (char const *const *) p;
13959 { /* SCO 3.2v4 cc rejects this. */
13960 char *t;
13961 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013962
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013963 *t++ = 0;
13964 }
13965 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13966 int x[] = {25, 17};
13967 const int *foo = &x[0];
13968 ++foo;
13969 }
13970 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13971 typedef const int *iptr;
13972 iptr p = 0;
13973 ++p;
13974 }
13975 { /* AIX XL C 1.02.0.0 rejects this saying
13976 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13977 struct s { int j; const int *ap[3]; };
13978 struct s *b; b->j = 5;
13979 }
13980 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13981 const int foo = 10;
13982 }
13983#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013984
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013985 ;
13986 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013987}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013988_ACEOF
13989rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013991 (eval $ac_compile) 2>&5
13992 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013994 (exit $ac_status); } &&
13995 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013997 (eval $ac_try) 2>&5
13998 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014000 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014001 ac_cv_c_const=yes
14002else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014003 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014004sed 's/^/| /' conftest.$ac_ext >&5
14005
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014006ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014007fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014008rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014009fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014010echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014011echo "${ECHO_T}$ac_cv_c_const" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014012if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014013
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014014cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014015#define const
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014016_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014017
14018fi
14019
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014020echo "$as_me:$LINENO: checking for inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014021echo $ECHO_N "checking for inline... $ECHO_C" >&6
14022if test "${ac_cv_c_inline+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014024else
14025 ac_cv_c_inline=no
14026for ac_kw in inline __inline__ __inline; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014027 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014028#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014029/* confdefs.h. */
14030_ACEOF
14031cat confdefs.h >>conftest.$ac_ext
14032cat >>conftest.$ac_ext <<_ACEOF
14033/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014034#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014035typedef int foo_t;
14036static $ac_kw foo_t static_foo () {return 0; }
14037$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014038#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014039
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014040_ACEOF
14041rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014043 (eval $ac_compile) 2>&5
14044 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014046 (exit $ac_status); } &&
14047 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014049 (eval $ac_try) 2>&5
14050 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014052 (exit $ac_status); }; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014053 ac_cv_c_inline=$ac_kw; break
14054else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014055 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014056sed 's/^/| /' conftest.$ac_ext >&5
14057
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014058fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014059rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014060done
14061
14062fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014063echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014064echo "${ECHO_T}$ac_cv_c_inline" >&6
14065case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014066 inline | yes) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014067 no)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014068cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014069#define inline
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014070_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014071 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014072 *) cat >>confdefs.h <<_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014073#define inline $ac_cv_c_inline
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014074_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014075 ;;
14076esac
14077
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014078echo "$as_me:$LINENO: checking for mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014079echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
14080if test "${ac_cv_type_mode_t+set}" = set; then
14081 echo $ECHO_N "(cached) $ECHO_C" >&6
14082else
14083 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014084#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014085/* confdefs.h. */
14086_ACEOF
14087cat confdefs.h >>conftest.$ac_ext
14088cat >>conftest.$ac_ext <<_ACEOF
14089/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014090$ac_includes_default
14091int
14092main ()
14093{
14094if ((mode_t *) 0)
14095 return 0;
14096if (sizeof (mode_t))
14097 return 0;
14098 ;
14099 return 0;
14100}
14101_ACEOF
14102rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014104 (eval $ac_compile) 2>&5
14105 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014107 (exit $ac_status); } &&
14108 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014110 (eval $ac_try) 2>&5
14111 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014113 (exit $ac_status); }; }; then
14114 ac_cv_type_mode_t=yes
14115else
14116 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014117sed 's/^/| /' conftest.$ac_ext >&5
14118
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014119ac_cv_type_mode_t=no
14120fi
14121rm -f conftest.$ac_objext conftest.$ac_ext
14122fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014123echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014124echo "${ECHO_T}$ac_cv_type_mode_t" >&6
14125if test $ac_cv_type_mode_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014126
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014127cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014128#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014129_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014130
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014131
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014132fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014133echo "$as_me:$LINENO: checking for off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014134echo $ECHO_N "checking for off_t... $ECHO_C" >&6
14135if test "${ac_cv_type_off_t+set}" = set; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14137else
14138 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014139#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014140/* confdefs.h. */
14141_ACEOF
14142cat confdefs.h >>conftest.$ac_ext
14143cat >>conftest.$ac_ext <<_ACEOF
14144/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014145$ac_includes_default
14146int
14147main ()
14148{
14149if ((off_t *) 0)
14150 return 0;
14151if (sizeof (off_t))
14152 return 0;
14153 ;
14154 return 0;
14155}
14156_ACEOF
14157rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014159 (eval $ac_compile) 2>&5
14160 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014162 (exit $ac_status); } &&
14163 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014165 (eval $ac_try) 2>&5
14166 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014168 (exit $ac_status); }; }; then
14169 ac_cv_type_off_t=yes
14170else
14171 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014172sed 's/^/| /' conftest.$ac_ext >&5
14173
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014174ac_cv_type_off_t=no
14175fi
14176rm -f conftest.$ac_objext conftest.$ac_ext
14177fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014178echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014179echo "${ECHO_T}$ac_cv_type_off_t" >&6
14180if test $ac_cv_type_off_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014181
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014182cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014183#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014184_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014185
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014186
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014187fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014188echo "$as_me:$LINENO: checking for pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014189echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14190if test "${ac_cv_type_pid_t+set}" = set; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
14192else
14193 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014194#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014195/* confdefs.h. */
14196_ACEOF
14197cat confdefs.h >>conftest.$ac_ext
14198cat >>conftest.$ac_ext <<_ACEOF
14199/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014200$ac_includes_default
14201int
14202main ()
14203{
14204if ((pid_t *) 0)
14205 return 0;
14206if (sizeof (pid_t))
14207 return 0;
14208 ;
14209 return 0;
14210}
14211_ACEOF
14212rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014214 (eval $ac_compile) 2>&5
14215 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014217 (exit $ac_status); } &&
14218 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014220 (eval $ac_try) 2>&5
14221 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014223 (exit $ac_status); }; }; then
14224 ac_cv_type_pid_t=yes
14225else
14226 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014227sed 's/^/| /' conftest.$ac_ext >&5
14228
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014229ac_cv_type_pid_t=no
14230fi
14231rm -f conftest.$ac_objext conftest.$ac_ext
14232fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014233echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014234echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14235if test $ac_cv_type_pid_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014236
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014237cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014238#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014239_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014240
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014241
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014242fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014243echo "$as_me:$LINENO: checking for size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014244echo $ECHO_N "checking for size_t... $ECHO_C" >&6
14245if test "${ac_cv_type_size_t+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14247else
14248 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014249#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014250/* confdefs.h. */
14251_ACEOF
14252cat confdefs.h >>conftest.$ac_ext
14253cat >>conftest.$ac_ext <<_ACEOF
14254/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014255$ac_includes_default
14256int
14257main ()
14258{
14259if ((size_t *) 0)
14260 return 0;
14261if (sizeof (size_t))
14262 return 0;
14263 ;
14264 return 0;
14265}
14266_ACEOF
14267rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014269 (eval $ac_compile) 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); } &&
14273 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014275 (eval $ac_try) 2>&5
14276 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014278 (exit $ac_status); }; }; then
14279 ac_cv_type_size_t=yes
14280else
14281 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014282sed 's/^/| /' conftest.$ac_ext >&5
14283
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014284ac_cv_type_size_t=no
14285fi
14286rm -f conftest.$ac_objext conftest.$ac_ext
14287fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014288echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014289echo "${ECHO_T}$ac_cv_type_size_t" >&6
14290if test $ac_cv_type_size_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014291
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014292cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014293#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014294_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014295
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014296
14297fi
14298echo "$as_me:$LINENO: checking for ssize_t" >&5
14299echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14300if test "${ac_cv_type_ssize_t+set}" = set; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14302else
14303 cat >conftest.$ac_ext <<_ACEOF
14304#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014305/* confdefs.h. */
14306_ACEOF
14307cat confdefs.h >>conftest.$ac_ext
14308cat >>conftest.$ac_ext <<_ACEOF
14309/* end confdefs.h. */
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014310$ac_includes_default
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014311int
14312main ()
14313{
14314if ((ssize_t *) 0)
14315 return 0;
14316if (sizeof (ssize_t))
14317 return 0;
14318 ;
14319 return 0;
14320}
14321_ACEOF
14322rm -f conftest.$ac_objext
14323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14324 (eval $ac_compile) 2>&5
14325 ac_status=$?
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -s conftest.$ac_objext'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14331 ac_status=$?
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
14334 ac_cv_type_ssize_t=yes
14335else
14336 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014337sed 's/^/| /' conftest.$ac_ext >&5
14338
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014339ac_cv_type_ssize_t=no
14340fi
14341rm -f conftest.$ac_objext conftest.$ac_ext
14342fi
14343echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14344echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14345if test $ac_cv_type_ssize_t = yes; then
14346
14347cat >>confdefs.h <<_ACEOF
14348#define HAVE_SSIZE_T 1
14349_ACEOF
14350
14351
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014352fi
14353
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014354echo "$as_me:$LINENO: checking for long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014355echo $ECHO_N "checking for long long... $ECHO_C" >&6
14356if test "${ac_cv_type_long_long+set}" = set; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14358else
14359 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014360#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014361/* confdefs.h. */
14362_ACEOF
14363cat confdefs.h >>conftest.$ac_ext
14364cat >>conftest.$ac_ext <<_ACEOF
14365/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014366$ac_includes_default
14367int
14368main ()
14369{
14370if ((long long *) 0)
14371 return 0;
14372if (sizeof (long long))
14373 return 0;
14374 ;
14375 return 0;
14376}
14377_ACEOF
14378rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014380 (eval $ac_compile) 2>&5
14381 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014383 (exit $ac_status); } &&
14384 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014386 (eval $ac_try) 2>&5
14387 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014389 (exit $ac_status); }; }; then
14390 ac_cv_type_long_long=yes
14391else
14392 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014393sed 's/^/| /' conftest.$ac_ext >&5
14394
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014395ac_cv_type_long_long=no
14396fi
14397rm -f conftest.$ac_objext conftest.$ac_ext
14398fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014399echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014400echo "${ECHO_T}$ac_cv_type_long_long" >&6
14401
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014402echo "$as_me:$LINENO: checking size of long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014403echo $ECHO_N "checking size of long long... $ECHO_C" >&6
14404if test "${ac_cv_sizeof_long_long+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14406else
14407 if test "$ac_cv_type_long_long" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014408 # The cast to unsigned long works around a bug in the HP C Compiler
14409 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14410 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14411 # This bug is HP SR number 8606223364.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014412 if test "$cross_compiling" = yes; then
14413 # Depending upon the size, compute the lo and hi bounds.
14414cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014415#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014416/* confdefs.h. */
14417_ACEOF
14418cat confdefs.h >>conftest.$ac_ext
14419cat >>conftest.$ac_ext <<_ACEOF
14420/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014421$ac_includes_default
14422int
14423main ()
14424{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014425static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
14426test_array [0] = 0
14427
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014428 ;
14429 return 0;
14430}
14431_ACEOF
14432rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014434 (eval $ac_compile) 2>&5
14435 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014437 (exit $ac_status); } &&
14438 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014440 (eval $ac_try) 2>&5
14441 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014443 (exit $ac_status); }; }; then
14444 ac_lo=0 ac_mid=0
14445 while :; do
14446 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014447#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014448/* confdefs.h. */
14449_ACEOF
14450cat confdefs.h >>conftest.$ac_ext
14451cat >>conftest.$ac_ext <<_ACEOF
14452/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014453$ac_includes_default
14454int
14455main ()
14456{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014457static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14458test_array [0] = 0
14459
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014460 ;
14461 return 0;
14462}
14463_ACEOF
14464rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014466 (eval $ac_compile) 2>&5
14467 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014469 (exit $ac_status); } &&
14470 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014472 (eval $ac_try) 2>&5
14473 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014475 (exit $ac_status); }; }; then
14476 ac_hi=$ac_mid; break
14477else
14478 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014479sed 's/^/| /' conftest.$ac_ext >&5
14480
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014481ac_lo=`expr $ac_mid + 1`
14482 if test $ac_lo -le $ac_mid; then
14483 ac_lo= ac_hi=
14484 break
14485 fi
14486 ac_mid=`expr 2 '*' $ac_mid + 1`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014487fi
14488rm -f conftest.$ac_objext conftest.$ac_ext
14489 done
14490else
14491 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014492sed 's/^/| /' conftest.$ac_ext >&5
14493
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014494cat >conftest.$ac_ext <<_ACEOF
14495#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014496/* confdefs.h. */
14497_ACEOF
14498cat confdefs.h >>conftest.$ac_ext
14499cat >>conftest.$ac_ext <<_ACEOF
14500/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014501$ac_includes_default
14502int
14503main ()
14504{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014505static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
14506test_array [0] = 0
14507
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014508 ;
14509 return 0;
14510}
14511_ACEOF
14512rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014514 (eval $ac_compile) 2>&5
14515 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014517 (exit $ac_status); } &&
14518 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014520 (eval $ac_try) 2>&5
14521 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; }; then
14524 ac_hi=-1 ac_mid=-1
14525 while :; do
14526 cat >conftest.$ac_ext <<_ACEOF
14527#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014528/* confdefs.h. */
14529_ACEOF
14530cat confdefs.h >>conftest.$ac_ext
14531cat >>conftest.$ac_ext <<_ACEOF
14532/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014533$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014534int
14535main ()
14536{
14537static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
14538test_array [0] = 0
14539
14540 ;
14541 return 0;
14542}
14543_ACEOF
14544rm -f conftest.$ac_objext
14545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14546 (eval $ac_compile) 2>&5
14547 ac_status=$?
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } &&
14550 { ac_try='test -s conftest.$ac_objext'
14551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552 (eval $ac_try) 2>&5
14553 ac_status=$?
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014555 (exit $ac_status); }; }; then
14556 ac_lo=$ac_mid; break
14557else
14558 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014559sed 's/^/| /' conftest.$ac_ext >&5
14560
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014561ac_hi=`expr '(' $ac_mid ')' - 1`
14562 if test $ac_mid -le $ac_hi; then
14563 ac_lo= ac_hi=
14564 break
14565 fi
14566 ac_mid=`expr 2 '*' $ac_mid`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014567fi
14568rm -f conftest.$ac_objext conftest.$ac_ext
14569 done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014570else
14571 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014572sed 's/^/| /' conftest.$ac_ext >&5
14573
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014574ac_lo= ac_hi=
14575fi
14576rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014577fi
14578rm -f conftest.$ac_objext conftest.$ac_ext
14579# Binary search between lo and hi bounds.
14580while test "x$ac_lo" != "x$ac_hi"; do
14581 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14582 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014583#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014584/* confdefs.h. */
14585_ACEOF
14586cat confdefs.h >>conftest.$ac_ext
14587cat >>conftest.$ac_ext <<_ACEOF
14588/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014589$ac_includes_default
14590int
14591main ()
14592{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014593static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14594test_array [0] = 0
14595
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014596 ;
14597 return 0;
14598}
14599_ACEOF
14600rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014602 (eval $ac_compile) 2>&5
14603 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014605 (exit $ac_status); } &&
14606 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014608 (eval $ac_try) 2>&5
14609 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014611 (exit $ac_status); }; }; then
14612 ac_hi=$ac_mid
14613else
14614 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014615sed 's/^/| /' conftest.$ac_ext >&5
14616
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014617ac_lo=`expr '(' $ac_mid ')' + 1`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014618fi
14619rm -f conftest.$ac_objext conftest.$ac_ext
14620done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014621case $ac_lo in
14622?*) ac_cv_sizeof_long_long=$ac_lo;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014623'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14624See \`config.log' for more details." >&5
14625echo "$as_me: error: cannot compute sizeof (long long), 77
14626See \`config.log' for more details." >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014627 { (exit 1); exit 1; }; } ;;
14628esac
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014629else
14630 if test "$cross_compiling" = yes; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014631 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14632See \`config.log' for more details." >&5
14633echo "$as_me: error: cannot run test program while cross compiling
14634See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014635 { (exit 1); exit 1; }; }
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014636else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014637 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014638#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014639/* confdefs.h. */
14640_ACEOF
14641cat confdefs.h >>conftest.$ac_ext
14642cat >>conftest.$ac_ext <<_ACEOF
14643/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014644$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014645long longval () { return (long) (sizeof (long long)); }
14646unsigned long ulongval () { return (long) (sizeof (long long)); }
14647#include <stdio.h>
14648#include <stdlib.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014649int
14650main ()
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014651{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014652
14653 FILE *f = fopen ("conftest.val", "w");
14654 if (! f)
14655 exit (1);
14656 if (((long) (sizeof (long long))) < 0)
14657 {
14658 long i = longval ();
14659 if (i != ((long) (sizeof (long long))))
14660 exit (1);
14661 fprintf (f, "%ld\n", i);
14662 }
14663 else
14664 {
14665 unsigned long i = ulongval ();
14666 if (i != ((long) (sizeof (long long))))
14667 exit (1);
14668 fprintf (f, "%lu\n", i);
14669 }
14670 exit (ferror (f) || fclose (f) != 0);
14671
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014672 ;
14673 return 0;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014674}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014675_ACEOF
14676rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014678 (eval $ac_link) 2>&5
14679 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014683 (eval $ac_try) 2>&5
14684 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014686 (exit $ac_status); }; }; then
14687 ac_cv_sizeof_long_long=`cat conftest.val`
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014688else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014689 echo "$as_me: program exited with status $ac_status" >&5
14690echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014691sed 's/^/| /' conftest.$ac_ext >&5
14692
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014693( exit $ac_status )
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014694{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14695See \`config.log' for more details." >&5
14696echo "$as_me: error: cannot compute sizeof (long long), 77
14697See \`config.log' for more details." >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014698 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014699fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014700rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014701fi
14702fi
14703rm -f conftest.val
14704else
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014705 ac_cv_sizeof_long_long=0
14706fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014707fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014708echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014709echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014710cat >>confdefs.h <<_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014711#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014712_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014713
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014714
14715
14716echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014717echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
14718if test "${wine_cv_linux_input_h+set}" = set; then
14719 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014720else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014721 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014722#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014723/* confdefs.h. */
14724_ACEOF
14725cat confdefs.h >>conftest.$ac_ext
14726cat >>conftest.$ac_ext <<_ACEOF
14727/* end confdefs.h. */
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014728
14729 #include <linux/input.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014730
14731int
14732main ()
14733{
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014734
14735 int foo = EVIOCGBIT(EV_ABS,42);
14736 int bar = BTN_PINKIE;
14737 int fortytwo = 42;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014738
14739 ;
14740 return 0;
14741}
14742_ACEOF
14743rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014745 (eval $ac_compile) 2>&5
14746 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014748 (exit $ac_status); } &&
14749 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014751 (eval $ac_try) 2>&5
14752 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014754 (exit $ac_status); }; }; then
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014755 wine_cv_linux_input_h=yes
14756else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014757 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014758sed 's/^/| /' conftest.$ac_ext >&5
14759
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014760wine_cv_linux_input_h=no
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014761fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014762rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014763
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014764fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014765echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014766echo "${ECHO_T}$wine_cv_linux_input_h" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014767 if test "$wine_cv_linux_input_h" = "yes"
14768 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014769
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014770cat >>confdefs.h <<\_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014771#define HAVE_CORRECT_LINUXINPUT_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014772_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014773
14774 fi
14775
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014776
14777echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014778echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
14779if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
14780 echo $ECHO_N "(cached) $ECHO_C" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000014781else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014782 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014783#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014784/* confdefs.h. */
14785_ACEOF
14786cat confdefs.h >>conftest.$ac_ext
14787cat >>conftest.$ac_ext <<_ACEOF
14788/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000014789
14790#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014791
14792int
14793main ()
14794{
Rein Klazesff7a61f2000-09-24 19:41:57 +000014795
14796 char *name=NULL;
14797 struct hostent he;
14798 struct hostent *result;
14799 char *buf=NULL;
14800 int bufsize=0;
14801 int res,errnr;
14802 char *addr=NULL;
14803 int addrlen=0;
14804 int addrtype=0;
14805 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14806 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014807
14808 ;
14809 return 0;
14810}
14811_ACEOF
14812rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014814 (eval $ac_compile) 2>&5
14815 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014817 (exit $ac_status); } &&
14818 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014820 (eval $ac_try) 2>&5
14821 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014823 (exit $ac_status); }; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +000014824 wine_cv_linux_gethostbyname_r_6=yes
14825else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014826 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014827sed 's/^/| /' conftest.$ac_ext >&5
14828
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014829wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000014830
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014831fi
14832rm -f conftest.$ac_objext conftest.$ac_ext
14833
14834fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014835echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014836echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000014837 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14838 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014839
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014840cat >>confdefs.h <<\_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000014841#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014842_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000014843
14844 fi
14845
Marcus Meissner028e9a11999-08-04 15:07:56 +000014846if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014847then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014848 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014849echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
14850if test "${wine_cv_linux_joystick_22_api+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014852else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014853 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014854#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014855/* confdefs.h. */
14856_ACEOF
14857cat confdefs.h >>conftest.$ac_ext
14858cat >>conftest.$ac_ext <<_ACEOF
14859/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014860
Marcus Meissner028e9a11999-08-04 15:07:56 +000014861 #include <sys/ioctl.h>
14862 #include <linux/joystick.h>
14863
14864 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000014865 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14866 #error "no 2.2 header"
14867 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014868
14869int
14870main ()
14871{
Marcus Meissner028e9a11999-08-04 15:07:56 +000014872/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014873 ;
14874 return 0;
14875}
14876_ACEOF
14877rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014879 (eval $ac_compile) 2>&5
14880 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014882 (exit $ac_status); } &&
14883 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014885 (eval $ac_try) 2>&5
14886 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014888 (exit $ac_status); }; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +000014889 wine_cv_linux_joystick_22_api=yes
14890else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014891 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014892sed 's/^/| /' conftest.$ac_ext >&5
14893
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014894wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000014895fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014896rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000014897
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014898fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014899echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014900echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
Rein Klazes87d224a2000-04-24 17:33:49 +000014901 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000014902 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014903
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014904cat >>confdefs.h <<\_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000014905#define HAVE_LINUX_22_JOYSTICK_API 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014906_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000014907
14908 fi
14909fi
14910
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014911
Marcus Meissner028e9a11999-08-04 15:07:56 +000014912if test "$ac_cv_header_sys_vfs_h" = "yes"
14913then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014914 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014915echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
14916if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
14917 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner028e9a11999-08-04 15:07:56 +000014918else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014919 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014920#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014921/* confdefs.h. */
14922_ACEOF
14923cat confdefs.h >>conftest.$ac_ext
14924cat >>conftest.$ac_ext <<_ACEOF
14925/* end confdefs.h. */
Marcus Meissner028e9a11999-08-04 15:07:56 +000014926
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014927 #include <sys/types.h>
14928 #ifdef HAVE_SYS_PARAM_H
14929 # include <sys/param.h>
14930 #endif
14931 #include <sys/vfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014932
14933int
14934main ()
14935{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014936
14937 struct statfs stfs;
14938
14939 memset(&stfs,0,sizeof(stfs));
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014940
14941 ;
14942 return 0;
14943}
14944_ACEOF
14945rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014947 (eval $ac_compile) 2>&5
14948 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014950 (exit $ac_status); } &&
14951 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014953 (eval $ac_try) 2>&5
14954 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014956 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014957 wine_cv_sys_vfs_has_statfs=yes
14958else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014959 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014960sed 's/^/| /' conftest.$ac_ext >&5
14961
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014962wine_cv_sys_vfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014963
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014964fi
14965rm -f conftest.$ac_objext conftest.$ac_ext
14966
14967fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014968echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014969echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014970 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
14971 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014972
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014973cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014974#define STATFS_DEFINED_BY_SYS_VFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014975_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014976
14977 fi
14978fi
14979
14980if test "$ac_cv_header_sys_statfs_h" = "yes"
14981then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014982 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014983echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
14984if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014986else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014987 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014988#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014989/* confdefs.h. */
14990_ACEOF
14991cat confdefs.h >>conftest.$ac_ext
14992cat >>conftest.$ac_ext <<_ACEOF
14993/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014994
14995 #include <sys/types.h>
14996 #ifdef HAVE_SYS_PARAM_H
14997 # include <sys/param.h>
14998 #endif
14999 #include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015000
15001int
15002main ()
15003{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015004
15005 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015006
15007 ;
15008 return 0;
15009}
15010_ACEOF
15011rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015013 (eval $ac_compile) 2>&5
15014 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015016 (exit $ac_status); } &&
15017 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015019 (eval $ac_try) 2>&5
15020 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015022 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015023 wine_cv_sys_statfs_has_statfs=yes
15024else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015025 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015026sed 's/^/| /' conftest.$ac_ext >&5
15027
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015028wine_cv_sys_statfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015029
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015030fi
15031rm -f conftest.$ac_objext conftest.$ac_ext
15032
15033fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015034echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015035echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015036 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
15037 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015038
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015039cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015040#define STATFS_DEFINED_BY_SYS_STATFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015041_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015042
15043 fi
15044fi
15045
15046if test "$ac_cv_header_sys_mount_h" = "yes"
15047then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015048 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015049echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
15050if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
15051 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015052else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015053 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015054#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. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015060
15061 #include <sys/types.h>
15062 #ifdef HAVE_SYS_PARAM_H
15063 # include <sys/param.h>
15064 #endif
15065 #include <sys/mount.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015066
15067int
15068main ()
15069{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015070
15071 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015072
15073 ;
15074 return 0;
15075}
15076_ACEOF
15077rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015079 (eval $ac_compile) 2>&5
15080 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015082 (exit $ac_status); } &&
15083 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015085 (eval $ac_try) 2>&5
15086 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015088 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015089 wine_cv_sys_mount_has_statfs=yes
15090else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015091 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015092sed 's/^/| /' conftest.$ac_ext >&5
15093
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015094wine_cv_sys_mount_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015095
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015096fi
15097rm -f conftest.$ac_objext conftest.$ac_ext
15098
15099fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015100echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015101echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015102 if test "$wine_cv_sys_mount_has_statfs" = "yes"
15103 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015104
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015105cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015106#define STATFS_DEFINED_BY_SYS_MOUNT 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015107_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015108
15109 fi
15110fi
15111
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015112
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015113echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015114echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
15115if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015117else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015118 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015119#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015120/* confdefs.h. */
15121_ACEOF
15122cat confdefs.h >>conftest.$ac_ext
15123cat >>conftest.$ac_ext <<_ACEOF
15124/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015125#include <sys/types.h>
15126#ifdef HAVE_SYS_PARAM_H
15127# include <sys/param.h>
15128#endif
15129#ifdef STATFS_DEFINED_BY_SYS_MOUNT
15130# include <sys/mount.h>
15131#else
15132# ifdef STATFS_DEFINED_BY_SYS_VFS
15133# include <sys/vfs.h>
15134# else
15135# ifdef STATFS_DEFINED_BY_SYS_STATFS
15136# include <sys/statfs.h>
15137# endif
15138# endif
15139#endif
15140int
15141main ()
15142{
15143struct statfs s; s.f_bfree = 0
15144 ;
15145 return 0;
15146}
15147_ACEOF
15148rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015150 (eval $ac_compile) 2>&5
15151 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015153 (exit $ac_status); } &&
15154 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015156 (eval $ac_try) 2>&5
15157 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015159 (exit $ac_status); }; }; then
15160 ac_cv_c_statfs_f_bfree="yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015161else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015162 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015163sed 's/^/| /' conftest.$ac_ext >&5
15164
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015165ac_cv_c_statfs_f_bfree="no"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015166fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015167rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015168fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015169echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015170echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
15171if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015172
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015173cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015174#define STATFS_HAS_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015175_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015176
15177fi
15178
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015179
15180
15181echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015182echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
15183if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
15184 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000015185else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015186 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015187#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015188/* confdefs.h. */
15189_ACEOF
15190cat confdefs.h >>conftest.$ac_ext
15191cat >>conftest.$ac_ext <<_ACEOF
15192/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015193#include <sys/types.h>
15194#ifdef HAVE_SYS_PARAM_H
15195# include <sys/param.h>
15196#endif
15197#ifdef STATFS_DEFINED_BY_SYS_MOUNT
15198# include <sys/mount.h>
15199#else
15200# ifdef STATFS_DEFINED_BY_SYS_VFS
15201# include <sys/vfs.h>
15202# else
15203# ifdef STATFS_DEFINED_BY_SYS_STATFS
15204# include <sys/statfs.h>
15205# endif
15206# endif
15207#endif
15208int
15209main ()
15210{
15211struct statfs s; s.f_bavail = 0
15212 ;
15213 return 0;
15214}
15215_ACEOF
15216rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015218 (eval $ac_compile) 2>&5
15219 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015221 (exit $ac_status); } &&
15222 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015224 (eval $ac_try) 2>&5
15225 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015227 (exit $ac_status); }; }; then
15228 ac_cv_c_statfs_f_bavail="yes"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000015229else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015230 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015231sed 's/^/| /' conftest.$ac_ext >&5
15232
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015233ac_cv_c_statfs_f_bavail="no"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000015234fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015235rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000015236fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015237echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015238echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
15239if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000015240
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015241cat >>confdefs.h <<\_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000015242#define STATFS_HAS_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015243_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000015244
15245fi
15246
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015247
15248
15249echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015250echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
15251if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
15252 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard829fe321998-07-26 14:27:39 +000015253else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015254 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015255#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015256/* confdefs.h. */
15257_ACEOF
15258cat confdefs.h >>conftest.$ac_ext
15259cat >>conftest.$ac_ext <<_ACEOF
15260/* end confdefs.h. */
Alexandre Julliard829fe321998-07-26 14:27:39 +000015261#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000015262#ifdef HAVE_SYS_SOCKET_H
15263# include <sys/socket.h>
15264#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015265int
15266main ()
15267{
15268struct msghdr s; s.msg_accrights = 0
15269 ;
15270 return 0;
15271}
15272_ACEOF
15273rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015275 (eval $ac_compile) 2>&5
15276 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015278 (exit $ac_status); } &&
15279 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015281 (eval $ac_try) 2>&5
15282 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015284 (exit $ac_status); }; }; then
15285 ac_cv_c_msghdr_msg_accrights="yes"
Alexandre Julliard829fe321998-07-26 14:27:39 +000015286else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015287 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015288sed 's/^/| /' conftest.$ac_ext >&5
15289
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015290ac_cv_c_msghdr_msg_accrights="no"
Alexandre Julliard829fe321998-07-26 14:27:39 +000015291fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015292rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard829fe321998-07-26 14:27:39 +000015293fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015294echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015295echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
15296if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
Alexandre Julliard829fe321998-07-26 14:27:39 +000015297
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015298cat >>confdefs.h <<\_ACEOF
Alexandre Julliard829fe321998-07-26 14:27:39 +000015299#define HAVE_MSGHDR_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015300_ACEOF
Alexandre Julliard829fe321998-07-26 14:27:39 +000015301
15302fi
15303
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015304
15305
15306echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015307echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
15308if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
15309 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000015310else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015311 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015312#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015313/* confdefs.h. */
15314_ACEOF
15315cat confdefs.h >>conftest.$ac_ext
15316cat >>conftest.$ac_ext <<_ACEOF
15317/* end confdefs.h. */
Juergen Lock2d33ab92000-02-13 16:03:29 +000015318#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000015319#ifdef HAVE_SYS_SOCKET_H
15320# include <sys/socket.h>
15321#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015322int
15323main ()
15324{
15325struct sockaddr s; s.sa_len = 0
15326 ;
15327 return 0;
15328}
15329_ACEOF
15330rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015332 (eval $ac_compile) 2>&5
15333 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015335 (exit $ac_status); } &&
15336 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015338 (eval $ac_try) 2>&5
15339 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015341 (exit $ac_status); }; }; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000015342 ac_cv_c_sockaddr_sa_len="yes"
15343else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015344 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015345sed 's/^/| /' conftest.$ac_ext >&5
15346
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015347ac_cv_c_sockaddr_sa_len="no"
Patrik Stridvall09da9662001-07-08 22:30:50 +000015348fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015349rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall09da9662001-07-08 22:30:50 +000015350fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015351echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015352echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
15353if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000015354
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015355cat >>confdefs.h <<\_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000015356#define HAVE_SOCKADDR_SA_LEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015357_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000015358
15359fi
15360
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015361
15362
15363echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015364echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
15365if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
15366 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall09da9662001-07-08 22:30:50 +000015367else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015368 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015369#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015370/* confdefs.h. */
15371_ACEOF
15372cat confdefs.h >>conftest.$ac_ext
15373cat >>conftest.$ac_ext <<_ACEOF
15374/* end confdefs.h. */
Patrik Stridvall09da9662001-07-08 22:30:50 +000015375#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000015376#ifdef HAVE_SYS_SOCKET_H
15377# include <sys/socket.h>
15378#endif
15379#ifdef HAVE_SYS_UN_H
15380# include <sys/un.h>
15381#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015382int
15383main ()
15384{
15385struct sockaddr_un s; s.sun_len = 0
15386 ;
15387 return 0;
15388}
15389_ACEOF
15390rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015392 (eval $ac_compile) 2>&5
15393 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015395 (exit $ac_status); } &&
15396 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015398 (eval $ac_try) 2>&5
15399 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015401 (exit $ac_status); }; }; then
15402 ac_cv_c_sockaddr_un_sun_len="yes"
Juergen Lock2d33ab92000-02-13 16:03:29 +000015403else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015404 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015405sed 's/^/| /' conftest.$ac_ext >&5
15406
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015407ac_cv_c_sockaddr_un_sun_len="no"
Juergen Lock2d33ab92000-02-13 16:03:29 +000015408fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015409rm -f conftest.$ac_objext conftest.$ac_ext
Juergen Lock2d33ab92000-02-13 16:03:29 +000015410fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015411echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015412echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
15413if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
Juergen Lock2d33ab92000-02-13 16:03:29 +000015414
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015415cat >>confdefs.h <<\_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000015416#define HAVE_SOCKADDR_SUN_LEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015417_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000015418
15419fi
15420
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015421
15422
15423
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015424case $host_cpu in
Alexandre Julliard05783b52002-12-11 00:21:55 +000015425 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015426echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000015427if test "${ac_cv_cpp_def___i386__+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015428 echo $ECHO_N "(cached) $ECHO_C" >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000015429else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015430 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015431#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015432/* confdefs.h. */
15433_ACEOF
15434cat confdefs.h >>conftest.$ac_ext
15435cat >>conftest.$ac_ext <<_ACEOF
15436/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015437#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000015438yes
15439#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015440_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000015441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015442 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000015443 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000015444else
Alexandre Julliard05783b52002-12-11 00:21:55 +000015445 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000015446fi
15447rm -f conftest*
15448
15449fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015450echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
15451echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
15452if test $ac_cv_cpp_def___i386__ = yes; then
15453 CFLAGS="$CFLAGS -D__i386__"
15454 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000015455fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015456 ;;
15457 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
Steven Edwards69b67862002-12-10 22:48:48 +000015458echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000015459if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
Steven Edwards69b67862002-12-10 22:48:48 +000015460 echo $ECHO_N "(cached) $ECHO_C" >&6
15461else
15462 cat >conftest.$ac_ext <<_ACEOF
15463#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015464/* confdefs.h. */
15465_ACEOF
15466cat confdefs.h >>conftest.$ac_ext
15467cat >>conftest.$ac_ext <<_ACEOF
15468/* end confdefs.h. */
Steven Edwards69b67862002-12-10 22:48:48 +000015469#ifndef __ALPHA__
15470yes
15471#endif
15472_ACEOF
15473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15474 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000015475 ac_cv_cpp_def___ALPHA__=yes
Steven Edwards69b67862002-12-10 22:48:48 +000015476else
Alexandre Julliard05783b52002-12-11 00:21:55 +000015477 ac_cv_cpp_def___ALPHA__=no
Steven Edwards69b67862002-12-10 22:48:48 +000015478fi
15479rm -f conftest*
15480
15481fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015482echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
15483echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
15484if test $ac_cv_cpp_def___ALPHA__ = yes; then
15485 CFLAGS="$CFLAGS -D__ALPHA__"
15486 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
Steven Edwards69b67862002-12-10 22:48:48 +000015487fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015488 ;;
15489 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015490echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000015491if test "${ac_cv_cpp_def___sparc__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015492 echo $ECHO_N "(cached) $ECHO_C" >&6
15493else
15494 cat >conftest.$ac_ext <<_ACEOF
15495#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015496/* confdefs.h. */
15497_ACEOF
15498cat confdefs.h >>conftest.$ac_ext
15499cat >>conftest.$ac_ext <<_ACEOF
15500/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015501#ifndef __sparc__
15502yes
15503#endif
15504_ACEOF
15505if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015506 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000015507 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015508else
Alexandre Julliard05783b52002-12-11 00:21:55 +000015509 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015510fi
15511rm -f conftest*
15512
15513fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015514echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
15515echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
15516if test $ac_cv_cpp_def___sparc__ = yes; then
15517 CFLAGS="$CFLAGS -D__sparc__"
15518 LINTFLAGS="$LINTFLAGS -D__sparc__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015519fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015520 ;;
15521esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015522
15523case $host_vendor in
Alexandre Julliard05783b52002-12-11 00:21:55 +000015524 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015525echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000015526if test "${ac_cv_cpp_def___sun__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015527 echo $ECHO_N "(cached) $ECHO_C" >&6
15528else
15529 cat >conftest.$ac_ext <<_ACEOF
15530#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015531/* confdefs.h. */
15532_ACEOF
15533cat confdefs.h >>conftest.$ac_ext
15534cat >>conftest.$ac_ext <<_ACEOF
15535/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015536#ifndef __sun__
15537yes
15538#endif
15539_ACEOF
15540if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015541 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000015542 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015543else
Alexandre Julliard05783b52002-12-11 00:21:55 +000015544 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015545fi
15546rm -f conftest*
15547
15548fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015549echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
15550echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
15551if test $ac_cv_cpp_def___sun__ = yes; then
15552 CFLAGS="$CFLAGS -D__sun__"
15553 LINTFLAGS="$LINTFLAGS -D__sun__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015554fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015555 ;;
15556esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015557
15558
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015559
15560
15561
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015562 ac_config_commands="$ac_config_commands controls"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015563
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015564 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000015565
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015566 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000015567
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015568 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
Alexandre Julliard829fe321998-07-26 14:27:39 +000015569
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015570 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
François Gouget14259412001-11-06 20:57:11 +000015571
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015572 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
François Gouget14259412001-11-06 20:57:11 +000015573
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015574 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000015575
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015576 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015577
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015578 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015579
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015580 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015581
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015582 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000015583
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015584 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000015585
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015586 ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
Alexandre Julliard89118562002-03-27 21:13:40 +000015587
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015588 ac_config_commands="$ac_config_commands dlls/kernel/messages"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015589
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015590 ac_config_commands="$ac_config_commands dlls/user/dde"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015591
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015592 ac_config_commands="$ac_config_commands dlls/user/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015593
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015594 ac_config_commands="$ac_config_commands dlls/wineps/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015595
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015596 ac_config_commands="$ac_config_commands files"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015597
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015598 ac_config_commands="$ac_config_commands graphics"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015599
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015600 ac_config_commands="$ac_config_commands graphics/x11drv"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015601
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015602 ac_config_commands="$ac_config_commands if1632"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015603
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015604 ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015605
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015606 ac_config_commands="$ac_config_commands loader"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015607
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015608 ac_config_commands="$ac_config_commands loader/ne"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015609
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015610 ac_config_commands="$ac_config_commands memory"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015611
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015612 ac_config_commands="$ac_config_commands misc"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015613
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015614 ac_config_commands="$ac_config_commands msdos"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015615
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015616 ac_config_commands="$ac_config_commands objects"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015617
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015618 ac_config_commands="$ac_config_commands programs/regapi/tests"
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000015619
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015620 ac_config_commands="$ac_config_commands programs/regedit/tests"
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000015621
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015622 ac_config_commands="$ac_config_commands relay32"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015623
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015624 ac_config_commands="$ac_config_commands scheduler"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015625
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015626 ac_config_commands="$ac_config_commands win32"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015627
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015628 ac_config_commands="$ac_config_commands windows"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015629
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000015630
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000015631MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015632
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015633
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +000015634MAKE_DLL_RULES=dlls/Makedll.rules
15635
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015636
Alexandre Julliardedeee892002-08-09 01:22:40 +000015637MAKE_TEST_RULES=dlls/Maketest.rules
15638
15639
Alexandre Julliard626f4252000-11-10 23:35:20 +000015640MAKE_PROG_RULES=programs/Makeprog.rules
15641
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015642
Enrico Horneaae7052003-01-24 01:08:15 +000015643 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3dim/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/winejack/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile library/Makefile miscemu/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wpp/Makefile tools/wrc/Makefile unicode/Makefile"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015644
Alexandre Julliard626f4252000-11-10 23:35:20 +000015645
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015646cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015647# This file is a shell script that caches the results of configure
15648# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015649# scripts and configure runs, see configure's option --config-cache.
15650# It is not useful on other systems. If it contains results you don't
15651# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015652#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015653# config.status only pays attention to the cache file if you give it
15654# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015655#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015656# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015657# loading this file, other *unset* `ac_cv_foo' will be assigned the
15658# following values.
15659
15660_ACEOF
15661
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000015662# The following way of writing the cache mishandles newlines in values,
15663# but we know of no workaround that is simple, portable, and efficient.
15664# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015665# Ultrix sh set writes to stderr and can't be redirected directly,
15666# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015667{
15668 (set) 2>&1 |
15669 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15670 *ac_space=\ *)
15671 # `set' does not quote correctly, so add quotes (double-quote
15672 # substitution turns \\\\ into \\, and sed turns \\ into \).
15673 sed -n \
15674 "s/'/'\\\\''/g;
15675 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15676 ;;
15677 *)
15678 # `set' quotes correctly as required by POSIX, so do not add quotes.
15679 sed -n \
15680 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15681 ;;
15682 esac;
15683} |
15684 sed '
15685 t clear
15686 : clear
15687 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15688 t end
15689 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15690 : end' >>confcache
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015691if diff $cache_file confcache >/dev/null 2>&1; then :; else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015692 if test -w $cache_file; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015693 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15694 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015695 else
15696 echo "not updating unwritable cache $cache_file"
15697 fi
15698fi
15699rm -f confcache
15700
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015701test "x$prefix" = xNONE && prefix=$ac_default_prefix
15702# Let make expand exec_prefix.
15703test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15704
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015705# VPATH may cause trouble with some makes, so we remove $(srcdir),
15706# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15707# trailing colons and then remove the whole line if VPATH becomes empty
15708# (actually we leave an empty line to preserve line numbers).
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015709if test "x$srcdir" = x.; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015710 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15711s/:*\$(srcdir):*/:/;
15712s/:*\${srcdir}:*/:/;
15713s/:*@srcdir@:*/:/;
15714s/^\([^=]*=[ ]*\):*/\1/;
15715s/:*$//;
15716s/^[^=]*=[ ]*$//;
15717}'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015718fi
15719
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015720DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015721
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015722ac_libobjs=
15723ac_ltlibobjs=
15724for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15725 # 1. Remove the extension, and $U if already installed.
15726 ac_i=`echo "$ac_i" |
15727 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15728 # 2. Add them.
15729 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15730 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15731done
15732LIBOBJS=$ac_libobjs
15733
15734LTLIBOBJS=$ac_ltlibobjs
15735
15736
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015737
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015738: ${CONFIG_STATUS=./config.status}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015739ac_clean_files_save=$ac_clean_files
15740ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015741{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015742echo "$as_me: creating $CONFIG_STATUS" >&6;}
15743cat >$CONFIG_STATUS <<_ACEOF
15744#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015745# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015746# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015747# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015748# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015749
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015750debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015751ac_cs_recheck=false
15752ac_cs_silent=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015753SHELL=\${CONFIG_SHELL-$SHELL}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015754_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015755
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015756cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015757## --------------------- ##
15758## M4sh Initialization. ##
15759## --------------------- ##
15760
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015761# Be Bourne compatible
15762if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15763 emulate sh
15764 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015765 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15766 # is contrary to our usage. Disable this feature.
15767 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015768elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15769 set -o posix
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000015770fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015771
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015772# Support unset when possible.
15773if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15774 as_unset=unset
15775else
15776 as_unset=false
15777fi
15778
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015779
15780# Work around bugs in pre-3.0 UWIN ksh.
15781$as_unset ENV MAIL MAILPATH
15782PS1='$ '
15783PS2='> '
15784PS4='+ '
15785
15786# NLS nuisances.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015787for as_var in \
15788 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15789 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15790 LC_TELEPHONE LC_TIME
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015791do
15792 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15793 eval $as_var=C; export $as_var
15794 else
15795 $as_unset $as_var
15796 fi
15797done
15798
15799# Required to use basename.
15800if expr a : '\(a\)' >/dev/null 2>&1; then
15801 as_expr=expr
15802else
15803 as_expr=false
15804fi
15805
15806if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15807 as_basename=basename
15808else
15809 as_basename=false
15810fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015811
15812
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015813# Name of the executable.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015814as_me=`$as_basename "$0" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015815$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15816 X"$0" : 'X\(//\)$' \| \
15817 X"$0" : 'X\(/\)$' \| \
15818 . : '\(.\)' 2>/dev/null ||
15819echo X/"$0" |
15820 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15821 /^X\/\(\/\/\)$/{ s//\1/; q; }
15822 /^X\/\(\/\).*/{ s//\1/; q; }
15823 s/.*/./; q'`
15824
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015825
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015826# PATH needs CR, and LINENO needs CR and PATH.
15827# Avoid depending upon Character Ranges.
15828as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15829as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15830as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15831as_cr_digits='0123456789'
15832as_cr_alnum=$as_cr_Letters$as_cr_digits
15833
15834# The user is always right.
15835if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015836 echo "#! /bin/sh" >conf$$.sh
15837 echo "exit 0" >>conf$$.sh
15838 chmod +x conf$$.sh
15839 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015840 PATH_SEPARATOR=';'
15841 else
15842 PATH_SEPARATOR=:
15843 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015844 rm -f conf$$.sh
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015845fi
15846
15847
15848 as_lineno_1=$LINENO
15849 as_lineno_2=$LINENO
15850 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15851 test "x$as_lineno_1" != "x$as_lineno_2" &&
15852 test "x$as_lineno_3" = "x$as_lineno_2" || {
15853 # Find who we are. Look in the path if we contain no path at all
15854 # relative or not.
15855 case $0 in
15856 *[\\/]* ) as_myself=$0 ;;
15857 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15858for as_dir in $PATH
15859do
15860 IFS=$as_save_IFS
15861 test -z "$as_dir" && as_dir=.
15862 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15863done
15864
15865 ;;
15866 esac
15867 # We did not find ourselves, most probably we were run as `sh COMMAND'
15868 # in which case we are not to be found in the path.
15869 if test "x$as_myself" = x; then
15870 as_myself=$0
15871 fi
15872 if test ! -f "$as_myself"; then
15873 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15874echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15875 { (exit 1); exit 1; }; }
15876 fi
15877 case $CONFIG_SHELL in
15878 '')
15879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15880for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15881do
15882 IFS=$as_save_IFS
15883 test -z "$as_dir" && as_dir=.
15884 for as_base in sh bash ksh sh5; do
15885 case $as_dir in
15886 /*)
15887 if ("$as_dir/$as_base" -c '
15888 as_lineno_1=$LINENO
15889 as_lineno_2=$LINENO
15890 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15891 test "x$as_lineno_1" != "x$as_lineno_2" &&
15892 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015893 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15894 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015895 CONFIG_SHELL=$as_dir/$as_base
15896 export CONFIG_SHELL
15897 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15898 fi;;
15899 esac
15900 done
15901done
15902;;
15903 esac
15904
15905 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15906 # uniformly replaced by the line number. The first 'sed' inserts a
15907 # line-number line before each line; the second 'sed' does the real
15908 # work. The second script uses 'N' to pair each line-number line
15909 # with the numbered line, and appends trailing '-' during
15910 # substitution so that $LINENO is not a special case at line end.
15911 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15912 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15913 sed '=' <$as_myself |
15914 sed '
15915 N
15916 s,$,-,
15917 : loop
15918 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15919 t loop
15920 s,-$,,
15921 s,^['$as_cr_digits']*\n,,
15922 ' >$as_me.lineno &&
15923 chmod +x $as_me.lineno ||
15924 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15925echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15926 { (exit 1); exit 1; }; }
15927
15928 # Don't try to exec as it changes $[0], causing all sort of problems
15929 # (the dirname of $[0] is not the place where we might find the
15930 # original and so on. Autoconf is especially sensible to this).
15931 . ./$as_me.lineno
15932 # Exit status is that of the last command.
15933 exit
15934}
15935
15936
15937case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15938 *c*,-n*) ECHO_N= ECHO_C='
15939' ECHO_T=' ' ;;
15940 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15941 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15942esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015943
15944if expr a : '\(a\)' >/dev/null 2>&1; then
15945 as_expr=expr
15946else
15947 as_expr=false
15948fi
15949
15950rm -f conf$$ conf$$.exe conf$$.file
15951echo >conf$$.file
15952if ln -s conf$$.file conf$$ 2>/dev/null; then
15953 # We could just check for DJGPP; but this test a) works b) is more generic
15954 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15955 if test -f conf$$.exe; then
15956 # Don't use ln at all; we don't have any links
15957 as_ln_s='cp -p'
15958 else
15959 as_ln_s='ln -s'
15960 fi
15961elif ln conf$$.file conf$$ 2>/dev/null; then
15962 as_ln_s=ln
15963else
15964 as_ln_s='cp -p'
15965fi
15966rm -f conf$$ conf$$.exe conf$$.file
15967
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015968if mkdir -p . 2>/dev/null; then
15969 as_mkdir_p=:
15970else
15971 as_mkdir_p=false
15972fi
15973
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015974as_executable_p="test -f"
15975
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015976# Sed expression to map a string onto a valid CPP name.
15977as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015978
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015979# Sed expression to map a string onto a valid variable name.
15980as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15981
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015982
15983# IFS
15984# We need space, tab and new line, in precisely that order.
15985as_nl='
15986'
15987IFS=" $as_nl"
15988
15989# CDPATH.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015990$as_unset CDPATH
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015991
15992exec 6>&1
15993
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015994# Open the log real soon, to keep \$[0] and so on meaningful, and to
15995# report actual input values of CONFIG_FILES etc. instead of their
15996# values after options handling. Logging --version etc. is OK.
15997exec 5>>config.log
15998{
15999 echo
16000 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16001## Running $as_me. ##
16002_ASBOX
16003} >&5
16004cat >&5 <<_CSEOF
16005
Alexandre Julliard03e5ce32003-02-20 01:11:16 +000016006This file was extended by Wine $as_me 20030219, which was
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016007generated by GNU Autoconf 2.57. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016008
16009 CONFIG_FILES = $CONFIG_FILES
16010 CONFIG_HEADERS = $CONFIG_HEADERS
16011 CONFIG_LINKS = $CONFIG_LINKS
16012 CONFIG_COMMANDS = $CONFIG_COMMANDS
16013 $ $0 $@
16014
16015_CSEOF
16016echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16017echo >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016018_ACEOF
16019
16020# Files that config.status was made for.
16021if test -n "$ac_config_files"; then
16022 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16023fi
16024
16025if test -n "$ac_config_headers"; then
16026 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16027fi
16028
16029if test -n "$ac_config_links"; then
16030 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16031fi
16032
16033if test -n "$ac_config_commands"; then
16034 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16035fi
16036
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016037cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016038
16039ac_cs_usage="\
16040\`$as_me' instantiates files from templates according to the
16041current configuration.
16042
16043Usage: $0 [OPTIONS] [FILE]...
16044
16045 -h, --help print this help, then exit
16046 -V, --version print version number, then exit
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016047 -q, --quiet do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016048 -d, --debug don't remove temporary files
16049 --recheck update $as_me by reconfiguring in the same conditions
16050 --file=FILE[:TEMPLATE]
16051 instantiate the configuration file FILE
16052 --header=FILE[:TEMPLATE]
16053 instantiate the configuration header FILE
16054
16055Configuration files:
16056$config_files
16057
16058Configuration headers:
16059$config_headers
16060
16061Configuration commands:
16062$config_commands
16063
16064Report bugs to <bug-autoconf@gnu.org>."
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016065_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000016066
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016067cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016068ac_cs_version="\\
Alexandre Julliard03e5ce32003-02-20 01:11:16 +000016069Wine config.status 20030219
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016070configured by $0, generated by GNU Autoconf 2.57,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016071 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016072
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016073Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16074Free Software Foundation, Inc.
16075This config.status script is free software; the Free Software Foundation
16076gives unlimited permission to copy, distribute and modify it."
16077srcdir=$srcdir
16078INSTALL="$INSTALL"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016079_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016080
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016081cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016082# If no file are specified by the user, then we need to provide default
16083# value. By we need to know if files were specified by the user.
16084ac_need_defaults=:
16085while test $# != 0
16086do
16087 case $1 in
16088 --*=*)
16089 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16090 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016091 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016092 ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016093 -*)
16094 ac_option=$1
16095 ac_optarg=$2
16096 ac_shift=shift
16097 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016098 *) # This is not an option, so the user has probably given explicit
16099 # arguments.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016100 ac_option=$1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016101 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016102 esac
16103
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016104 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016105 # Handling of the options.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016106_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016107cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016108 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16109 ac_cs_recheck=: ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016110 --version | --vers* | -V )
16111 echo "$ac_cs_version"; exit 0 ;;
16112 --he | --h)
16113 # Conflict between --help and --header
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016114 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016115Try \`$0 --help' for more information." >&5
16116echo "$as_me: error: ambiguous option: $1
16117Try \`$0 --help' for more information." >&2;}
16118 { (exit 1); exit 1; }; };;
16119 --help | --hel | -h )
16120 echo "$ac_cs_usage"; exit 0 ;;
16121 --debug | --d* | -d )
16122 debug=: ;;
16123 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016124 $ac_shift
16125 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016126 ac_need_defaults=false;;
16127 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016128 $ac_shift
16129 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016130 ac_need_defaults=false;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16132 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16133 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016134
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016135 # This is an error.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016136 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016137Try \`$0 --help' for more information." >&5
16138echo "$as_me: error: unrecognized option: $1
16139Try \`$0 --help' for more information." >&2;}
16140 { (exit 1); exit 1; }; } ;;
16141
16142 *) ac_config_targets="$ac_config_targets $1" ;;
16143
16144 esac
16145 shift
16146done
16147
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016148ac_configure_extra_args=
16149
16150if $ac_cs_silent; then
16151 exec 6>/dev/null
16152 ac_configure_extra_args="$ac_configure_extra_args --silent"
16153fi
16154
16155_ACEOF
16156cat >>$CONFIG_STATUS <<_ACEOF
16157if \$ac_cs_recheck; then
16158 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16159 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16160fi
16161
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016162_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016163
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016164
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016165
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016166
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016167
16168cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016169for ac_config_target in $ac_config_targets
16170do
16171 case "$ac_config_target" in
16172 # Handling of arguments.
16173 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16174 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000016175 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016176 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16177 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016178 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
16179 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000016180 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016181 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
16182 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
Patrik Stridvalld1447fa2002-11-19 00:47:12 +000016183 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
John K. Hohm34909c22002-05-14 21:50:56 +000016184 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016185 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
16186 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
16187 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
16188 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
Dmitry Timoshkov5a23a002003-01-02 19:34:14 +000016189 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
Sylvain Petreolle3a99d8b2002-06-25 23:23:03 +000016190 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
Enrico Horneaae7052003-01-24 01:08:15 +000016191 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
Raphael Junqueirae31ae922002-12-17 01:15:15 +000016192 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016193 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
16194 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
16195 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
16196 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
Ove Kaavend2d08f02002-06-14 00:39:44 +000016197 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016198 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
16199 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
16200 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
Francois Gougetd523a452002-12-05 19:19:41 +000016201 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016202 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
Patrik Stridvall928ecb42002-10-02 19:58:27 +000016203 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016204 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
16205 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
16206 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
16207 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
16208 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000016209 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016210 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
16211 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
16212 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
16213 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
Hidenori Takeshima0307f6d2002-03-23 20:18:11 +000016214 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
Eric Pouechbed67fc2002-05-22 02:00:05 +000016215 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
Hidenori Takeshimabcb9c462002-03-22 19:16:10 +000016216 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
Eric Pouechb706b232002-06-04 17:53:46 +000016217 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016218 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
16219 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
Mike McCormackf6be0442002-04-08 23:56:14 +000016220 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016221 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016222 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
Uwe Bonnesa768fa32002-10-30 23:49:03 +000016223 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016224 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
16225 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
Michael Günnewig288b8ee2002-10-08 00:40:05 +000016226 "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016227 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
Andriy Palamarchukb812c902002-09-11 02:35:17 +000016228 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016229 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
Jon Griffiths1da29712002-08-15 22:08:40 +000016230 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016231 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
16232 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
16233 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000016234 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016235 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
16236 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
16237 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
16238 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
16239 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
16240 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
16241 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
16242 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
16243 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
16244 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
16245 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
Greg Turnerac89cc22002-10-07 21:54:07 +000016246 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016247 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
16248 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
16249 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
16250 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
Andriy Palamarchuk5b5bea02002-08-27 01:34:33 +000016251 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016252 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
16253 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000016254 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
Patrik Stridvall4c692b92002-04-29 18:43:35 +000016255 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016256 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
16257 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
16258 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000016259 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016260 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
16261 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
Patrik Stridvall9398d9c2002-11-12 01:13:10 +000016262 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016263 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000016264 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016265 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
16266 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
16267 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
16268 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
16269 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
16270 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000016271 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016272 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
16273 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
16274 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
16275 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
16276 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
16277 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
16278 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
16279 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
Francois Gouget4ce28372002-11-04 23:47:49 +000016280 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016281 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
Eric Pouecha120ce02002-06-28 17:40:16 +000016282 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000016283 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000016284 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
16285 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
Chris Morgan4691b182002-12-13 02:26:18 +000016286 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016287 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
16288 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
16289 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000016290 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016291 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
Stefan Leichter88b11062003-01-15 00:50:48 +000016292 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
Patrik Stridvall5caddc72002-12-17 01:49:16 +000016293 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016294 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
16295 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
16296 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
16297 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
16298 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016299 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16300 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016301 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016302 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
16303 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
16304 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
16305 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
16306 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
16307 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
Alexandre Julliardacfda142002-05-20 19:18:16 +000016308 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016309 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
16310 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
16311 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
16312 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
Andriy Palamarchuk4e2e1762002-04-11 23:58:40 +000016313 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
Andriy Palamarchuk2f0d85c2002-04-29 23:47:39 +000016314 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016315 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
Alexandre Julliardd77294a2002-12-02 21:17:04 +000016316 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
Alberto Massari15e8e0a2002-11-15 01:41:20 +000016317 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
Dan Kegelba02ae42003-01-21 20:14:36 +000016318 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016319 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
16320 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
16321 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
Shachar Shemesh175d0592003-01-04 02:52:05 +000016322 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016323 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
Alexandre Julliardf264bd32002-09-13 17:54:27 +000016324 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
Alexandre Julliard65a42162002-06-04 21:29:40 +000016325 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016326 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
Mike Wetherell0d8a9fa2002-05-05 20:31:54 +000016327 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016328 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
16329 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016330 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
16331 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
Alexandre Julliard7d4ee772002-07-16 03:20:45 +000016332 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016333 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
16334 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
16335 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
16336 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
Alexandre Julliardb7d3c792002-07-16 02:33:10 +000016337 "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016338 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016339 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016340 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016341 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
16342 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
16343 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
16344 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
16345 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
16346 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
16347 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
16348 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
16349 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
Alexandre Julliard89118562002-03-27 21:13:40 +000016350 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
16351 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
16352 "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016353 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
16354 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
16355 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
16356 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016357 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
16358 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
16359 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
16360 "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016361 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016362 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
16363 "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
16364 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
16365 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
16366 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
16367 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000016368 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000016369 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016370 "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
16371 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
16372 "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
16373 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016374 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016375 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016376echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16377 { (exit 1); exit 1; }; };;
16378 esac
16379done
16380
16381# If the user did not use the arguments to specify the items to instantiate,
16382# then the envvar interface is used. Set only those that are not.
16383# We use the long form for the default assignment because of an extremely
16384# bizarre bug on SunOS 4.1.3.
16385if $ac_need_defaults; then
16386 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16387 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16388 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16389fi
16390
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016391# Have a temporary directory for convenience. Make it in the build tree
16392# simply because there is no reason to put it here, and in addition,
16393# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016394# Create a temporary directory, and hook for its removal unless debugging.
16395$debug ||
16396{
16397 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16398 trap '{ (exit 1); exit 1; }' 1 2 13 15
16399}
16400
16401# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016402
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016403{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016404 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016405 test -n "$tmp" && test -d "$tmp"
16406} ||
16407{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016408 tmp=./confstat$$-$RANDOM
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016409 (umask 077 && mkdir $tmp)
16410} ||
16411{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016412 echo "$me: cannot create a temporary directory in ." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016413 { (exit 1); exit 1; }
16414}
16415
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016416_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016417
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016418cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016419
16420#
16421# CONFIG_FILES section.
16422#
16423
16424# No need to generate the scripts if there are no CONFIG_FILES.
16425# This happens for instance when ./config.status config.h
16426if test -n "\$CONFIG_FILES"; then
16427 # Protect against being on the right side of a sed subst in config.status.
16428 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16429 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16430s,@SHELL@,$SHELL,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016431s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16432s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16433s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16434s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16435s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16436s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016437s,@exec_prefix@,$exec_prefix,;t t
16438s,@prefix@,$prefix,;t t
16439s,@program_transform_name@,$program_transform_name,;t t
16440s,@bindir@,$bindir,;t t
16441s,@sbindir@,$sbindir,;t t
16442s,@libexecdir@,$libexecdir,;t t
16443s,@datadir@,$datadir,;t t
16444s,@sysconfdir@,$sysconfdir,;t t
16445s,@sharedstatedir@,$sharedstatedir,;t t
16446s,@localstatedir@,$localstatedir,;t t
16447s,@libdir@,$libdir,;t t
16448s,@includedir@,$includedir,;t t
16449s,@oldincludedir@,$oldincludedir,;t t
16450s,@infodir@,$infodir,;t t
16451s,@mandir@,$mandir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016452s,@build_alias@,$build_alias,;t t
16453s,@host_alias@,$host_alias,;t t
16454s,@target_alias@,$target_alias,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016455s,@DEFS@,$DEFS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016456s,@ECHO_C@,$ECHO_C,;t t
16457s,@ECHO_N@,$ECHO_N,;t t
16458s,@ECHO_T@,$ECHO_T,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016459s,@LIBS@,$LIBS,;t t
16460s,@OPTIONS@,$OPTIONS,;t t
Alexandre Julliardc728efc2002-10-02 02:34:09 +000016461s,@WIN16_FILES@,$WIN16_FILES,;t t
16462s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016463s,@build@,$build,;t t
16464s,@build_cpu@,$build_cpu,;t t
16465s,@build_vendor@,$build_vendor,;t t
16466s,@build_os@,$build_os,;t t
16467s,@host@,$host,;t t
16468s,@host_cpu@,$host_cpu,;t t
16469s,@host_vendor@,$host_vendor,;t t
16470s,@host_os@,$host_os,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016471s,@SET_MAKE@,$SET_MAKE,;t t
16472s,@CC@,$CC,;t t
16473s,@CFLAGS@,$CFLAGS,;t t
16474s,@LDFLAGS@,$LDFLAGS,;t t
16475s,@CPPFLAGS@,$CPPFLAGS,;t t
16476s,@ac_ct_CC@,$ac_ct_CC,;t t
16477s,@EXEEXT@,$EXEEXT,;t t
16478s,@OBJEXT@,$OBJEXT,;t t
16479s,@CPP@,$CPP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000016480s,@TOOLSDIR@,$TOOLSDIR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016481s,@X_CFLAGS@,$X_CFLAGS,;t t
16482s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16483s,@X_LIBS@,$X_LIBS,;t t
16484s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16485s,@YACC@,$YACC,;t t
16486s,@LEX@,$LEX,;t t
16487s,@LEXLIB@,$LEXLIB,;t t
16488s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
16489s,@XYACC@,$XYACC,;t t
16490s,@XLEX@,$XLEX,;t t
Marcus Meissner1d4db782003-01-09 00:46:54 +000016491s,@AS@,$AS,;t t
16492s,@ac_ct_AS@,$ac_ct_AS,;t t
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +000016493s,@LD@,$LD,;t t
16494s,@ac_ct_LD@,$ac_ct_LD,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000016495s,@AR@,$AR,;t t
16496s,@ac_ct_AR@,$ac_ct_AR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016497s,@RANLIB@,$RANLIB,;t t
16498s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000016499s,@STRIP@,$STRIP,;t t
16500s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16501s,@WINDRES@,$WINDRES,;t t
16502s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016503s,@LN_S@,$LN_S,;t t
Alexandre Julliarddf234a92002-05-22 02:10:39 +000016504s,@LN@,$LN,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016505s,@C2MAN@,$C2MAN,;t t
16506s,@LDCONFIG@,$LDCONFIG,;t t
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016507s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16508s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16509s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016510s,@LINT@,$LINT,;t t
16511s,@LINTFLAGS@,$LINTFLAGS,;t t
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000016512s,@DB2HTML@,$DB2HTML,;t t
16513s,@DB2PDF@,$DB2PDF,;t t
16514s,@DB2PS@,$DB2PS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016515s,@JPEGLIB@,$JPEGLIB,;t t
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016516s,@EGREP@,$EGREP,;t t
Marcus Meissner728bedc2003-01-09 06:04:33 +000016517s,@GIFLIB@,$GIFLIB,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016518s,@XLIB@,$XLIB,;t t
16519s,@XFILES@,$XFILES,;t t
16520s,@OPENGLFILES@,$OPENGLFILES,;t t
16521s,@GLU32FILES@,$GLU32FILES,;t t
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000016522s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
Francois Gouget6f670b12002-10-10 17:54:27 +000016523s,@NASLIBS@,$NASLIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016524s,@CURSESLIBS@,$CURSESLIBS,;t t
Shi Quan He6b0720f2002-03-21 02:58:39 +000016525s,@sane_devel@,$sane_devel,;t t
16526s,@SANELIBS@,$SANELIBS,;t t
16527s,@SANEINCL@,$SANEINCL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016528s,@ft_devel@,$ft_devel,;t t
16529s,@ft_devel2@,$ft_devel2,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016530s,@FREETYPEINCL@,$FREETYPEINCL,;t t
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000016531s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
16532s,@ARTSLIBS@,$ARTSLIBS,;t t
16533s,@ARTSINCL@,$ARTSINCL,;t t
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000016534s,@ALSALIBS@,$ALSALIBS,;t t
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000016535s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000016536s,@DLLEXT@,$DLLEXT,;t t
16537s,@DLLFLAGS@,$DLLFLAGS,;t t
16538s,@DLLIBS@,$DLLIBS,;t t
16539s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
16540s,@LDSHARED@,$LDSHARED,;t t
Alexandre Julliardada5e652002-12-12 22:03:14 +000016541s,@LIBEXT@,$LIBEXT,;t t
16542s,@IMPLIBEXT@,$IMPLIBEXT,;t t
16543s,@DLLTOOL@,$DLLTOOL,;t t
16544s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016545s,@DLLWRAP@,$DLLWRAP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000016546s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000016547s,@CROSSTEST@,$CROSSTEST,;t t
16548s,@CROSSCC@,$CROSSCC,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016549s,@LDPATH@,$LDPATH,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000016550s,@CRTLIBS@,$CRTLIBS,;t t
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016551s,@LDD@,$LDD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016552s,@ALLOCA@,$ALLOCA,;t t
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016553s,@LIBOBJS@,$LIBOBJS,;t t
16554s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016555/@MAKE_RULES@/r $MAKE_RULES
16556s,@MAKE_RULES@,,;t t
16557/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
16558s,@MAKE_DLL_RULES@,,;t t
Alexandre Julliardedeee892002-08-09 01:22:40 +000016559/@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
16560s,@MAKE_TEST_RULES@,,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016561/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
16562s,@MAKE_PROG_RULES@,,;t t
16563CEOF
16564
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016565_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016566
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016567 cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016568 # Split the substitutions into bite-sized pieces for seds with
16569 # small command number limits, like on Digital OSF/1 and HP-UX.
16570 ac_max_sed_lines=48
16571 ac_sed_frag=1 # Number of current file.
16572 ac_beg=1 # First line for current file.
16573 ac_end=$ac_max_sed_lines # Line after last line for current file.
16574 ac_more_lines=:
16575 ac_sed_cmds=
16576 while $ac_more_lines; do
16577 if test $ac_beg -gt 1; then
16578 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16579 else
16580 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16581 fi
16582 if test ! -s $tmp/subs.frag; then
16583 ac_more_lines=false
16584 else
16585 # The purpose of the label and of the branching condition is to
16586 # speed up the sed processing (if there are no `@' at all, there
16587 # is no need to browse any of the substitutions).
16588 # These are the two extra sed commands mentioned above.
16589 (echo ':t
16590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16591 if test -z "$ac_sed_cmds"; then
16592 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16593 else
16594 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16595 fi
16596 ac_sed_frag=`expr $ac_sed_frag + 1`
16597 ac_beg=$ac_end
16598 ac_end=`expr $ac_end + $ac_max_sed_lines`
16599 fi
16600 done
16601 if test -z "$ac_sed_cmds"; then
16602 ac_sed_cmds=cat
16603 fi
16604fi # test -n "$CONFIG_FILES"
16605
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016606_ACEOF
16607cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016608for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16609 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16610 case $ac_file in
16611 - | *:- | *:-:* ) # input from stdin
16612 cat >$tmp/stdin
16613 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16614 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16615 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16616 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16617 * ) ac_file_in=$ac_file.in ;;
16618 esac
16619
16620 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016621 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16622$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016623 X"$ac_file" : 'X\(//\)[^/]' \| \
16624 X"$ac_file" : 'X\(//\)$' \| \
16625 X"$ac_file" : 'X\(/\)' \| \
16626 . : '\(.\)' 2>/dev/null ||
16627echo X"$ac_file" |
16628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16629 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16630 /^X\(\/\/\)$/{ s//\1/; q; }
16631 /^X\(\/\).*/{ s//\1/; q; }
16632 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016633 { if $as_mkdir_p; then
16634 mkdir -p "$ac_dir"
16635 else
16636 as_dir="$ac_dir"
16637 as_dirs=
16638 while test ! -d "$as_dir"; do
16639 as_dirs="$as_dir $as_dirs"
16640 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16641$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16642 X"$as_dir" : 'X\(//\)[^/]' \| \
16643 X"$as_dir" : 'X\(//\)$' \| \
16644 X"$as_dir" : 'X\(/\)' \| \
16645 . : '\(.\)' 2>/dev/null ||
16646echo X"$as_dir" |
16647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16649 /^X\(\/\/\)$/{ s//\1/; q; }
16650 /^X\(\/\).*/{ s//\1/; q; }
16651 s/.*/./; q'`
16652 done
16653 test ! -n "$as_dirs" || mkdir $as_dirs
16654 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16655echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16656 { (exit 1); exit 1; }; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016657
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016658 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016659
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016660if test "$ac_dir" != .; then
16661 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16662 # A "../" for each directory in $ac_dir_suffix.
16663 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16664else
16665 ac_dir_suffix= ac_top_builddir=
16666fi
16667
16668case $srcdir in
16669 .) # No --srcdir option. We are building in place.
16670 ac_srcdir=.
16671 if test -z "$ac_top_builddir"; then
16672 ac_top_srcdir=.
16673 else
16674 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16675 fi ;;
16676 [\\/]* | ?:[\\/]* ) # Absolute path.
16677 ac_srcdir=$srcdir$ac_dir_suffix;
16678 ac_top_srcdir=$srcdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016679 *) # Relative path.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016680 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16681 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16682esac
16683# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16684# absolute.
16685ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016686ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016687ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16688ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16689
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016690
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016691 case $INSTALL in
16692 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016693 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000016694 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000016695
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016696 if test x"$ac_file" != x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016697 { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016698echo "$as_me: creating $ac_file" >&6;}
16699 rm -f "$ac_file"
16700 fi
16701 # Let's still pretend it is `configure' which instantiates (i.e., don't
16702 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016703 # /* config.h. Generated by config.status. */
16704 if test x"$ac_file" = x-; then
16705 configure_input=
16706 else
16707 configure_input="$ac_file. "
16708 fi
16709 configure_input=$configure_input"Generated from `echo $ac_file_in |
16710 sed 's,.*/,,'` by configure."
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000016711
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016712 # First look for the input files in the build tree, otherwise in the
16713 # src tree.
16714 ac_file_inputs=`IFS=:
16715 for f in $ac_file_in; do
16716 case $f in
16717 -) echo $tmp/stdin ;;
16718 [\\/$]*)
16719 # Absolute (can't be DOS-style, as IFS=:)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016720 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016721echo "$as_me: error: cannot find input file: $f" >&2;}
16722 { (exit 1); exit 1; }; }
16723 echo $f;;
16724 *) # Relative
16725 if test -f "$f"; then
16726 # Build tree
16727 echo $f
16728 elif test -f "$srcdir/$f"; then
16729 # Source tree
16730 echo $srcdir/$f
16731 else
16732 # /dev/null tree
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016733 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016734echo "$as_me: error: cannot find input file: $f" >&2;}
16735 { (exit 1); exit 1; }; }
16736 fi;;
16737 esac
16738 done` || { (exit 1); exit 1; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016739_ACEOF
16740cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016741 sed "$ac_vpsub
16742$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016743_ACEOF
16744cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016745:t
16746/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16747s,@configure_input@,$configure_input,;t t
16748s,@srcdir@,$ac_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016749s,@abs_srcdir@,$ac_abs_srcdir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016750s,@top_srcdir@,$ac_top_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016751s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16752s,@builddir@,$ac_builddir,;t t
16753s,@abs_builddir@,$ac_abs_builddir,;t t
16754s,@top_builddir@,$ac_top_builddir,;t t
16755s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016756s,@INSTALL@,$ac_INSTALL,;t t
16757" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16758 rm -f $tmp/stdin
16759 if test x"$ac_file" != x-; then
16760 mv $tmp/out $ac_file
16761 else
16762 cat $tmp/out
16763 rm -f $tmp/out
16764 fi
16765
16766done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016767_ACEOF
16768cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016769
16770#
16771# CONFIG_HEADER section.
16772#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016773
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016774# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16775# NAME is the cpp macro being defined and VALUE is the value it is being given.
16776#
16777# ac_d sets the value in "#define NAME VALUE" lines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016778ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16779ac_dB='[ ].*$,\1#\2'
16780ac_dC=' '
16781ac_dD=',;t'
16782# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16783ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16784ac_uB='$,\1#\2define\3'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016785ac_uC=' '
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016786ac_uD=',;t'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016787
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016788for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000016789 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016790 case $ac_file in
16791 - | *:- | *:-:* ) # input from stdin
16792 cat >$tmp/stdin
16793 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16794 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16795 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16796 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16797 * ) ac_file_in=$ac_file.in ;;
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016798 esac
16799
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016800 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016801echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016802
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016803 # First look for the input files in the build tree, otherwise in the
16804 # src tree.
16805 ac_file_inputs=`IFS=:
16806 for f in $ac_file_in; do
16807 case $f in
16808 -) echo $tmp/stdin ;;
16809 [\\/$]*)
16810 # Absolute (can't be DOS-style, as IFS=:)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016811 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016812echo "$as_me: error: cannot find input file: $f" >&2;}
16813 { (exit 1); exit 1; }; }
16814 echo $f;;
16815 *) # Relative
16816 if test -f "$f"; then
16817 # Build tree
16818 echo $f
16819 elif test -f "$srcdir/$f"; then
16820 # Source tree
16821 echo $srcdir/$f
16822 else
16823 # /dev/null tree
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016824 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016825echo "$as_me: error: cannot find input file: $f" >&2;}
16826 { (exit 1); exit 1; }; }
16827 fi;;
16828 esac
16829 done` || { (exit 1); exit 1; }
16830 # Remove the trailing spaces.
16831 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016832
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016833_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016834
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016835# Transform confdefs.h into two sed scripts, `conftest.defines' and
16836# `conftest.undefs', that substitutes the proper values into
16837# config.h.in to produce config.h. The first handles `#define'
16838# templates, and the second `#undef' templates.
16839# And first: Protect against being on the right side of a sed subst in
16840# config.status. Protect against being in an unquoted here document
16841# in config.status.
16842rm -f conftest.defines conftest.undefs
16843# Using a here document instead of a string reduces the quoting nightmare.
16844# Putting comments in sed scripts is not portable.
16845#
16846# `end' is used to avoid that the second main sed command (meant for
16847# 0-ary CPP macros) applies to n-ary macro definitions.
16848# See the Autoconf documentation for `clear'.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016849cat >confdef2sed.sed <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016850s/[\\&,]/\\&/g
16851s,[\\$`],\\&,g
16852t clear
16853: clear
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016854s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016855t end
16856s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16857: end
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016858_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016859# If some macros were called several times there might be several times
16860# the same #defines, which is useless. Nevertheless, we may not want to
16861# sort them, since we want the *last* AC-DEFINE to be honored.
16862uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16863sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16864rm -f confdef2sed.sed
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016865
16866# This sed command replaces #undef with comments. This is necessary, for
16867# example, in the case of _POSIX_SOURCE, which is predefined and required
16868# on some systems where configure will not decide to define it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016869cat >>conftest.undefs <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016870s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016871_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016872
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016873# Break up conftest.defines because some shells have a limit on the size
16874# of here documents, and old seds have small limits too (100 cmds).
16875echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016876echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016877echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16878echo ' :' >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016879rm -f conftest.tail
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016880while grep . conftest.defines >/dev/null
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016881do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016882 # Write a limited-size here document to $tmp/defines.sed.
16883 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16884 # Speed up: don't consider the non `#define' lines.
16885 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16886 # Work around the forget-to-reset-the-flag bug.
16887 echo 't clr' >>$CONFIG_STATUS
16888 echo ': clr' >>$CONFIG_STATUS
16889 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016890 echo 'CEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016891 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16892 rm -f $tmp/in
16893 mv $tmp/out $tmp/in
16894' >>$CONFIG_STATUS
16895 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16896 rm -f conftest.defines
16897 mv conftest.tail conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016898done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016899rm -f conftest.defines
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016900echo ' fi # grep' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016901echo >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016902
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016903# Break up conftest.undefs because some shells have a limit on the size
16904# of here documents, and old seds have small limits too (100 cmds).
16905echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16906rm -f conftest.tail
16907while grep . conftest.undefs >/dev/null
16908do
16909 # Write a limited-size here document to $tmp/undefs.sed.
16910 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16911 # Speed up: don't consider the non `#undef'
16912 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16913 # Work around the forget-to-reset-the-flag bug.
16914 echo 't clr' >>$CONFIG_STATUS
16915 echo ': clr' >>$CONFIG_STATUS
16916 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16917 echo 'CEOF
16918 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16919 rm -f $tmp/in
16920 mv $tmp/out $tmp/in
16921' >>$CONFIG_STATUS
16922 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16923 rm -f conftest.undefs
16924 mv conftest.tail conftest.undefs
16925done
16926rm -f conftest.undefs
16927
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016928cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016929 # Let's still pretend it is `configure' which instantiates (i.e., don't
16930 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016931 # /* config.h. Generated by config.status. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016932 if test x"$ac_file" = x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016933 echo "/* Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016934 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016935 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016936 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016937 cat $tmp/in >>$tmp/config.h
16938 rm -f $tmp/in
16939 if test x"$ac_file" != x-; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016940 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016941 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016942echo "$as_me: $ac_file is unchanged" >&6;}
16943 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016944 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16945$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016946 X"$ac_file" : 'X\(//\)[^/]' \| \
16947 X"$ac_file" : 'X\(//\)$' \| \
16948 X"$ac_file" : 'X\(/\)' \| \
16949 . : '\(.\)' 2>/dev/null ||
16950echo X"$ac_file" |
16951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16952 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16953 /^X\(\/\/\)$/{ s//\1/; q; }
16954 /^X\(\/\).*/{ s//\1/; q; }
16955 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016956 { if $as_mkdir_p; then
16957 mkdir -p "$ac_dir"
16958 else
16959 as_dir="$ac_dir"
16960 as_dirs=
16961 while test ! -d "$as_dir"; do
16962 as_dirs="$as_dir $as_dirs"
16963 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16964$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16965 X"$as_dir" : 'X\(//\)[^/]' \| \
16966 X"$as_dir" : 'X\(//\)$' \| \
16967 X"$as_dir" : 'X\(/\)' \| \
16968 . : '\(.\)' 2>/dev/null ||
16969echo X"$as_dir" |
16970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16971 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16972 /^X\(\/\/\)$/{ s//\1/; q; }
16973 /^X\(\/\).*/{ s//\1/; q; }
16974 s/.*/./; q'`
16975 done
16976 test ! -n "$as_dirs" || mkdir $as_dirs
16977 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16978echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16979 { (exit 1); exit 1; }; }; }
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016980
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016981 rm -f $ac_file
16982 mv $tmp/config.h $ac_file
16983 fi
16984 else
16985 cat $tmp/config.h
16986 rm -f $tmp/config.h
16987 fi
16988done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016989_ACEOF
16990cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016991
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016992#
16993# CONFIG_COMMANDS section.
16994#
16995for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16996 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16997 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016998 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16999$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17000 X"$ac_dest" : 'X\(//\)[^/]' \| \
17001 X"$ac_dest" : 'X\(//\)$' \| \
17002 X"$ac_dest" : 'X\(/\)' \| \
17003 . : '\(.\)' 2>/dev/null ||
17004echo X"$ac_dest" |
17005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17006 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17007 /^X\(\/\/\)$/{ s//\1/; q; }
17008 /^X\(\/\).*/{ s//\1/; q; }
17009 s/.*/./; q'`
17010 ac_builddir=.
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000017011
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017012if test "$ac_dir" != .; then
17013 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17014 # A "../" for each directory in $ac_dir_suffix.
17015 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017016else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017017 ac_dir_suffix= ac_top_builddir=
17018fi
17019
17020case $srcdir in
17021 .) # No --srcdir option. We are building in place.
17022 ac_srcdir=.
17023 if test -z "$ac_top_builddir"; then
17024 ac_top_srcdir=.
17025 else
17026 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17027 fi ;;
17028 [\\/]* | ?:[\\/]* ) # Absolute path.
17029 ac_srcdir=$srcdir$ac_dir_suffix;
17030 ac_top_srcdir=$srcdir ;;
17031 *) # Relative path.
17032 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17033 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17034esac
17035# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17036# absolute.
17037ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017038ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017039ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17040ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17041
17042
17043 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17044echo "$as_me: executing $ac_dest commands" >&6;}
17045 case $ac_dest in
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000017046 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
17047echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017048 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
17049echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
17050 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
17051echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
17052 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
17053echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
17054 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
17055echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
17056 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
17057echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
17058 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
17059echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
17060 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
17061echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
17062 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
17063echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
17064 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
17065echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
17066 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
17067echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
17068 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
17069echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
17070 dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
17071echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
17072 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
17073echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017074 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
17075echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
17076 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
17077echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017078 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
17079echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000017080 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
17081echo "$as_me: creating files" >&6;} && mkdir "files") ;;
17082 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
17083echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
17084 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
17085echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
17086 if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
17087echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017088 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
17089echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000017090 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
17091echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
17092 loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
17093echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
17094 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
17095echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
17096 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
17097echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
17098 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
17099echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
17100 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
17101echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017102 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
17103echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000017104 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
17105echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000017106 relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
17107echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
17108 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
17109echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
17110 win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
17111echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
17112 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
17113echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017114 esac
17115done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017116_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017117
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017118cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000017119
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017120{ (exit 0); exit 0; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017121_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017122chmod +x $CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017123ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017124
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017125
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017126# configure is writing to config.log, and then calls config.status.
17127# config.status does its own redirection, appending to config.log.
17128# Unfortunately, on DOS this fails, as config.log is still kept open
17129# by configure, so config.status won't be able to write to it; its
17130# output is simply discarded. So we exec the FD to /dev/null,
17131# effectively closing config.log, so it can be properly (re)opened and
17132# appended to by config.status. When coming back to configure, we
17133# need to make the FD available again.
17134if test "$no_create" != yes; then
17135 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017136 ac_config_status_args=
17137 test "$silent" = yes &&
17138 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017139 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017140 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017141 exec 5>>config.log
17142 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17143 # would make configure fail if this is the last instruction.
17144 $ac_cs_success || { (exit 1); exit 1; }
17145fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017146
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017147
Ove Kaaven8b4431f1999-01-23 13:59:11 +000017148if test "$have_x" = "no"
17149then
17150 echo
17151 echo "*** Warning: X development files not found. Wine will be built without"
17152 echo "*** X support, which currently does not work, and would probably not be"
17153 echo "*** what you want anyway. You will need to install devel packages of"
Alexandre Julliard18e4b5e2002-01-04 18:52:40 +000017154 echo "*** Xlib/Xfree86 at the very least."
Ove Kaaven8b4431f1999-01-23 13:59:11 +000017155fi
17156
Alexandre Julliard638f1691999-01-17 16:32:32 +000017157if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
17158then
17159 echo
17160 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
17161 echo "*** terminal resize support. Consider upgrading ncurses."
Alexandre Julliard638f1691999-01-17 16:32:32 +000017162fi
17163
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017164if test "$wine_cv_libc_reentrant" = "no"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000017165then
17166 echo
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017167 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
17168 echo "*** threading support. Consider upgrading libc to a more recent"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000017169 echo "*** reentrant version of libc."
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000017170fi
17171
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000017172if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
17173then
17174 echo
17175 echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
17176 echo "*** applications won't work properly. You should upgrade your X11 library."
17177fi
17178
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000017179if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000017180then
17181 echo
17182 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000017183 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
17184fi
17185
Ian Pilcher563598d2001-05-16 20:56:05 +000017186if test "$wine_cv_msg_freetype" = "yes"
17187then
17188 echo
17189 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017190 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
17191 echo "*** freetype-devel package (or its equivalent on your distribution) to"
17192 echo "*** enable Wine to use TrueType fonts."
Ian Pilcher563598d2001-05-16 20:56:05 +000017193fi
17194
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017195echo
Steffen Moeller1511bae1999-02-17 15:27:03 +000017196echo "Configure finished. Do 'make depend && make' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017197echo
17198